Fixing PR number in Changelogs
[gcc.git] / gcc / ChangeLog
1 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
2
3 PR rtl-optimization/56999
4 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5 related code.
6 (lra_coalesce): Remove split_origin_bitmap and related code.
7 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
8 ranges if necessary.
9
10 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
11
12 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
13 New array.
14 (ix86_expand_call): Remove clobbered_registers array and use
15 x86_64_ms_sysv_extra_clobbered_registers instead.
16 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
17 Declare here.
18 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
19 predicate.
20 * config/i386/i386.md (*call_rex64_ms_sysv): Use
21 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
22 (*call_value_rex64_ms_sysv): Ditto.
23
24 2013-04-18 Cary Coutant <ccoutant@google.com>
25
26 * dwarf2out.c (output_pubnames): Check die_perennial_p of
27 parent instead of die_mark.
28
29 2013-04-18 Diego Novillo <dnovillo@google.com>
30
31 * gimple.c (create_gimple_tmp): New.
32 (get_expr_type): New.
33 (build_assign): New.
34 (build_type_cast): New.
35 * gimple.h (enum ssa_mode): Define.
36 (gimple_seq_set_location): New.
37 * asan.c (build_check_stmt): Change some gimple_build_* calls
38 to use build_assign and build_type_cast.
39
40 2013-04-18 Richard Biener <rguenther@suse.de>
41
42 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
43 handle negative step. Remove redundant checks.
44 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
45 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
46 for negative step and grouped loads fail to vectorize.
47
48 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
49
50 * emit-rtl.c (reset_insn_used_flags): New function.
51 (reset_all_used_flags): Use it.
52 (verify_insn_sharing): New function.
53 (verify_rtl_sharing): Fix verification for SEQUENCEs.
54
55 2013-04-18 Jakub Jelinek <jakub@redhat.com>
56
57 PR tree-optimization/56984
58 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
59 and (x >> M) >= N don't register any assertion if N << M is the
60 minimum value.
61
62 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
63
64 * lower-subreg.c (resolve_simple_move): If called self-recursive,
65 do not delete_insn insns that have not yet been emitted, only
66 unlink them with remove_insn.
67 * df-scan.c (df_insn_delete): Revert r197492.
68
69 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
70
71 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
72 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
73
74 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
75
76 * config/arm/arm.md (movsicc_insn): Convert define_insn into
77 define_insn_and_split.
78 (and_scc,ior_scc,negscc): Likewise.
79 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
80
81 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
82
83 * config/arm/arm.c (use_return_insn): Return 0 for targets that
84 can benefit from using a sequence of LDRD instructions in epilogue
85 instead of a single LDM instruction.
86
87 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
88
89 PR 45688
90 * doc/extend.texi: Fix typo.
91
92 2013-04-17 Richard Biener <rguenther@suse.de>
93
94 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
95 (vect_build_slp_tree): ... here.
96 (vect_build_slp_tree_1): Compute which stmts of the SLP group
97 match. Remove special-casing of mismatched complex loads.
98 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
99 re-try the match with swapped commutative operands.
100 (vect_supported_load_permutation_p): Remove special-casing of
101 mismatched complex loads.
102 (vect_analyze_slp_instance): Adjust.
103
104 2013-04-17 Richard Biener <rguenther@suse.de>
105
106 PR rtl-optimization/56921
107 * cfgloop.h (struct loop): Add simple_loop_desc member.
108 (struct niter_desc): Mark with GTY(()).
109 (simple_loop_desc): Do not use aux field but simple_loop_desc.
110 * loop-iv.c (get_simple_loop_desc): Likewise.
111 (free_simple_loop_desc): Likewise.
112
113 Revert
114 2013-04-16 Richard Biener <rguenther@suse.de>
115
116 PR rtl-optimization/56921
117 * loop-init.c (pass_rtl_move_loop_invariants): Add
118 TODO_do_not_ggc_collect to todo_flags_finish.
119 (pass_rtl_unswitch): Same.
120 (pass_rtl_unroll_and_peel_loops): Same.
121 (pass_rtl_doloop): Same.
122
123 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
124
125 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
126 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
127 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
128 references.
129 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
130 * tree-streamer.c (record_common_node): Adjust reference in comment.
131
132 2013-04-17 Terry Guo <terry.guo@arm.com>
133
134 * config/arm/cortex-m4.md: Add a new bypass.
135
136 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
137
138 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
139 New pattern.
140 (*subs_<optab><mode>_multp2): New pattern.
141 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
142 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
143
144 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
145
146 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
147 (*subs_mul_imm_<mode>): New pattern.
148
149 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
150
151 PR target/56948
152 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
153 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
154 (vsx_movti_32bit): Change j->wa to O->wa.
155
156 2013-04-16 Richard Biener <rguenther@suse.de>
157
158 PR rtl-optimization/56921
159 * loop-init.c (pass_rtl_move_loop_invariants): Add
160 TODO_do_not_ggc_collect to todo_flags_finish.
161 (pass_rtl_unswitch): Same.
162 (pass_rtl_unroll_and_peel_loops): Same.
163 (pass_rtl_doloop): Same.
164
165 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
166
167 * config/arm/arm.c (emit_multi_reg_push): New declaration
168 for an existing function.
169 (arm_emit_strd_push): New function.
170 (arm_expand_prologue): Used here.
171 (arm_emit_ldrd_pop): New function.
172 (arm_expand_epilogue): Used here.
173 (arm_get_frame_offsets): Update condition.
174 (arm_emit_multi_reg_pop): Add a special case for load of a single
175 register with writeback.
176
177 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
178
179 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
180 description.
181
182 2013-04-16 Richard Biener <rguenther@suse.de>
183
184 PR tree-optimization/56756
185 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
186 (first_mem_ref_loc): New.
187 (execute_sm): Place the load temporarily before a previous
188 access instead of in the latch edge to ensure its SSA dependencies
189 are defined at points dominating the load.
190
191 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
192
193 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
194 correct fix by moving header and footer insn to the footer of
195 the merged basic block. Clear BB_END of the merged-away block.
196
197 PR middle-end/43631
198 * emit-rtl.c (make_note_raw): New function.
199 (link_insn_into_chain): New static inline function.
200 (add_insn): Use it.
201 (add_insn_before, add_insn_after): Factor insn chain linking code...
202 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
203 using link_insn_into_chain.
204 (note_outside_basic_block_p): New helper function for emit_note_after
205 and emit_note_before.
206 (emit_note_after): Use nobb variant of add_insn_after if the note
207 should not be contained in a basic block.
208 (emit_note_before): Use nobb variant of add_insn_before if the note
209 should not be contained in a basic block.
210 (emit_note_copy): Use make_note_raw.
211 (emit_note): Likewise.
212 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
213 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
214 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
215 the moved barrier the tail of the basic block it follows.
216 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
217
218 2013-04-15 Jakub Jelinek <jakub@redhat.com>
219
220 PR tree-optimization/56962
221 * gimple-ssa-strength-reduction.c (record_increment): Only set
222 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
223 either rhs1 or rhs2 is equal to c->base_expr.
224
225 2013-04-15 Richard Biener <rguenther@suse.de>
226
227 PR tree-optimization/56933
228 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
229 member.
230 (GROUP_READ_WRITE_DEPENDENCE): Remove.
231 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
232 * tree-vect-data-refs.c (vect_analyze_group_access): Move
233 dependence check ...
234 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
235 ... here.
236 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
237 GROUP_READ_WRITE_DEPENDENCE.
238
239 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
240
241 * emit-rtl.c (reset_all_used_flags): New function.
242 (verify_rtl_sharing): Call reset_all_used_flags before and after
243 performing the checks.
244
245 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
246
247 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
248 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
249 * config/arm/constraints.md (De): New constraint.
250 * config/arm/neon.md (anddi3_neon): Delete.
251 (neon_vand<mode>): Expand to standard anddi3 pattern.
252 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
253 Move earlier in the file.
254 (neon_inv_logic_op2): Likewise.
255 (arm_anddi_operand_neon): New predicate.
256
257 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
258
259 * configure.ac (gcc_cv_ld_as_needed): Set
260 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
261 Use -z ignore, -z record on *-*-solaris2*.
262 (HAVE_LD_AS_NEEDED): Update comment.
263 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
264 * configure: Regenerate.
265 * config.in: Regenerate.
266 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
267 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
268 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
269 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
270 equivalents. Fix markup.
271 * doc/tm.texi: Regenerate.
272
273 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
274
275 * config/i386/i386.opt: New option mstack-protector-guard=.
276 * config/i386/i386-opts.h: Add enum stack_protector_guard.
277 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
278 TARGET_SSP_TLS_GUARD.
279 * config/i386/i386.c (ix86_option_override_internal): Set
280 ix86_stack_protector_guard.
281 * config/i386/i386.md (stack_protect_set): Enable for
282 TARGET_SSP_TLS_GUARD only.
283 (stack_protect_set_<mode>): Ditto.
284 (stack_protect_test): Ditto.
285 (stack_protect_test_<mode>): Ditto.
286 * doc/invoke.texi (i386 Option): Document.
287
288 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
289
290 PR target/56890
291 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
292 (S_MODES): Set H_MODE bit.
293 (SF_MODES): Set only S_MODE and SF_MODE bits.
294 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
295 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
296 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
297 <MODE_FLOAT>: Likewise.
298
299 2013-04-15 Joey Ye <joey.ye@arm.com>
300
301 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
302
303 2013-04-15 Joey Ye <joey.ye@arm.com>
304
305 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
306 for real far jump.
307 (thumb_far_jump_used_p): Count instruction size and set
308 far_jump_used.
309
310 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
311
312 * reorg.c (fill_simple_delay_slots): Reindent block of code.
313 * resource.c (mark_target_live_regs): Reformat conditional block.
314
315 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
316
317 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
318 notes, they are emitted only just before final.
319 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
320
321 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
322
323 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
324 * cfgrtl.c (delete_insn): Call it here instead.
325 * lra-spills.c (lra_final_code_change): Use delete_insn.
326 * haifa-sched.c (sched_remove_insn): Likewise.
327 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
328 returning to the nop pool.
329 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
330 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
331
332 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
333
334 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
335 * doc/tm.texi: Regenerated.
336
337 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
338
339 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
340 QImode checks.
341
342 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
343
344 * df-core.c (df_find_def): Compare register numbers.
345 (df_find_use): Likewise.
346
347 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
348
349 PR target/56903
350 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
351 lra_in_progress for return.
352
353 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
354
355 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
356 define_insn into define_insn_and_split and emit movsicc patterns.
357
358 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
359
360 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
361
362 2013-04-12 Richard Biener <rguenther@suse.de>
363
364 * tree-pass.h (TODO_do_not_ggc_collect): New.
365 * passes.c (execute_one_ipa_transform_pass): Honor
366 TODO_do_not_ggc_collect.
367 (execute_one_pass): Likewise.
368
369 Revert
370 2013-04-10 Richard Biener <rguenther@suse.de>
371
372 * passes.c (init_optimization_passes): Remove reload pass.
373 * ira.c (do_reload): Merge into ...
374 (ira): ... this.
375 (rest_of_handle_reload): Remove.
376 (pass_reload): Likewise.
377 * config/i386/i386.c (ix86_option_override): Refer to ira instead
378 of reload for vzeroupper pass placement.
379
380 2013-04-12 Jakub Jelinek <jakub@redhat.com>
381
382 PR tree-optimization/56918
383 PR tree-optimization/56920
384 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
385 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
386 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
387 use wide_mul_with_sign method.
388
389 2013-04-12 Richard Biener <rguenther@suse.de>
390
391 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
392 not be considered a gimple constant.
393
394 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
395
396 * fold-const.c (const_binop): Handle vector shifts by a scalar.
397 (fold_binary_loc): Call const_binop also for mixed vector-scalar
398 operations.
399
400 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
401 Jakub Jelinek <jakub@redhat.com>
402
403 * opts.c: Include diagnostic-color.h.
404 (common_handle_option): Handle OPT_fdiagnostics_color_.
405 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
406 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
407 (diagnostic-color.o): New.
408 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
409 (diagnostic_color_rule): New enum.
410 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
411 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
412 the location string.
413 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
414 either NULL, or color kind.
415 * diagnostic-color.c: New file.
416 * diagnostic-color.h: New file.
417 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
418 arguments.
419 * doc/invoke.texi (-fdiagnostics-color): Document.
420 * pretty-print.h (pp_show_color): Define.
421 (struct pretty_print_info): Add show_color field.
422 * diagnostic.c: Include diagnostic-color.h.
423 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
424 macros. Colorize error:, warning: etc. strings and also the location
425 string.
426 (diagnostic_show_locus): Colorize the caret line.
427 * pretty-print.c: Include diagnostic-color.h.
428 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
429 inside of %< %> quotes or quoted through q format modifier.
430
431 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
432
433 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
434
435 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
436
437 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
438 code in CC_NZ mode.
439 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
440 pattern.
441
442 2013-04-11 Marek Polacek <polacek@redhat.com>
443
444 PR tree-optimization/48184
445 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
446
447 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
448
449 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
450 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
451 (skip_simple_arithmetic): Tidy up.
452 * tree.h (skip_simple_constant_arithmetic): Declare.
453
454 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
455
456 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
457
458 2013-04-11 Richard Biener <rguenther@suse.de>
459
460 * tree-vect-loop.c (get_initial_def_for_induction): Properly
461 generate vector constants.
462
463 2013-04-11 Richard Biener <rguenther@suse.de>
464
465 PR tree-optimization/56878
466 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
467 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
468 New function.
469 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
470 Prefer to align the DR with the most invariant base address.
471
472 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
473
474 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
475 comment.
476
477 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
478
479 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
480 floating-point vector comparisons against 0.
481
482 2013-04-11 Jakub Jelinek <jakub@redhat.com>
483
484 PR tree-optimization/56899
485 * fold-const.c (extract_muldiv_1): Apply distributive law
486 only if TYPE_OVERFLOW_WRAPS (ctype).
487
488 2013-04-11 Bin Cheng <bin.cheng@arm.com>
489
490 PR target/56124
491 * ira-costs.c (scan_one_insn): Check whether the source rtx of
492 loading has side effect.
493
494 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
495
496 * config/sparc/sparc.c: Include tree-pass.h.
497 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
498 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
499 head of file. Change return type. Split off gate function.
500 (sparc_gate_work_around_errata): New function.
501 (pass_work_around_errata): New pass definition.
502 (insert_pass_work_around_errata) New pass insert definition to
503 insert pass_work_around_errata just after delayed-branch scheduling.
504 (sparc_option_override): Insert the pass.
505 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
506
507 2013-04-10 David S. Miller <davem@davemloft.net>
508
509 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
510 or -mcpu=hypersparc.
511
512 * target.def (cstore_mode): New hook.
513 * target.h: Include insn-codes.h
514 * targhooks.c: Likewise.
515 (default_cstore_mode): New function.
516 * targhooks.h: Declare it.
517 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
518 * doc/tm.texi: Rebuild.
519 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
520 target hook, rather than inspecting the insn_data.
521 * config/sparc/sparc.c (sparc_cstore_mode): New function.
522 (TARGET_CSTORE_MODE): Redefine.
523 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
524 result patterns.
525 * config/sparc/predicates.md (cstore_result_operand): New special
526 predicate.
527 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
528 Use it for operand 0.
529 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
530 (*snesi_special): Likewise.
531 (*snesi_zero): Likewise.
532 (*seqsi_zero): Likewise.
533 (*sltu_insn): Likewise.
534 (*sgeu_insn): Likewise.
535 (*seqdi_special): Make operand 0 and comparison operation be of
536 DImode.
537 (*snedi_special): Likewise.
538 (*snedi_special_vis3): Likewise.
539 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
540 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
541 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
542 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
543 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
544 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
545 (*sltu_extend_sp64): Likewise.
546 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
547 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
548 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
549 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
550 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
551
552 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
553
554 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
555 (aarch64_start_file): Use the new function.
556
557 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
558 Jason Merrill <jason@redhat.com>
559
560 * common.opt: Add -gdwarf.
561 * opts.c (common_handle_option): Handle it.
562 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
563
564 2013-04-10 Richard Biener <rguenther@suse.de>
565
566 * passes.c (execute_todo): Do not call ggc_collect conditional here.
567 (execute_one_ipa_transform_pass): But unconditionally here.
568 (execute_one_pass): And here.
569 (init_optimization_passes): Remove reload pass.
570 * tree-pass.h (TODO_ggc_collect): Remove.
571 (pass_reload): Likewise.
572 * ira.c (do_reload): Merge into ...
573 (ira): ... this.
574 (rest_of_handle_reload): Remove.
575 (pass_reload): Likewise.
576 * config/i386/i386.c (ix86_option_override): Refer to ira instead
577 of reload for vzeroupper pass placement.
578 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
579 and todo_flags_finish of all passes.
580
581 2013-04-10 Richard Biener <rguenther@suse.de>
582
583 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
584 first_const_oprnd field, rename first_def_type to first_op_type.
585 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
586 (vect_get_and_check_slp_defs): Always use the type of the
587 operand. Allow mixed vect_external_def, vect_constant_def types.
588 (vect_get_constant_vectors): Handle mixed vect_external_def,
589 vect_constant_def types.
590
591 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
592
593 PR tree-optimization/55524
594 * tree-ssa-math-opts.c
595 (convert_mult_to_fma): Don't use an fms construct
596 when we don't have an fms operation, but fnma, and it looks
597 likely that we'll be able to use the latter.
598
599 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
600
601 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
602 function.
603 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
604 inline fail caused by overwritable functions.
605
606 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
607
608 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
609 unnecessary bits in the constant power of two case.
610
611 2013-04-10 Richard Biener <rguenther@suse.de>
612
613 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
614 broken code swapping operands.
615 (vect_build_slp_tree): Do not compute load permutations here.
616 (vect_analyze_slp_instance): Compute load permutations here,
617 after building the SLP tree.
618
619 2013-04-09 Christian Bruel <christian.bruel@st.com>
620
621 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
622 of next/prev_real_insn.
623
624 2013-04-09 Jan Hubicka <jh@suse.cz>
625
626 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
627 Drop aliased parameter.
628 (function_and_variable_visibility): Do not handle alias pairs.
629 * cgraph.c (varpool_externally_visible_p): Update prototype.
630 * varpool.c (varpool_add_new_variable): Update.
631
632 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
633
634 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
635
636 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
637
638 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
639
640 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
641
642 2013-04-09 Marek Polacek <polacek@redhat.com>
643
644 PR tree-optimization/48762
645 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
646
647 2013-04-09 Richard Biener <rguenther@suse.de>
648
649 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
650 dealing with cost.
651 (vect_build_slp_tree): Likewise.
652 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
653 calculating the cost of a SLP instance.
654 (vect_analyze_slp_instance): Use it from here, after building
655 the SLP tree.
656
657 2013-04-09 Jakub Jelinek <jakub@redhat.com>
658
659 PR middle-end/56883
660 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
661 expand_omp_for_static_chunk): Use simple_p = true in
662 force_gimple_operand_gsi calls when assigning to addressable decls.
663
664 2013-04-09 Jeff Law <law@redhat.com>
665
666 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
667 when the boolean was created by converting a wider object which
668 had a boolean range.
669
670 2013-04-09 Richard Biener <rguenther@suse.de>
671
672 * tree-vectorizer.h (slp_void_p): Remove.
673 (slp_tree): Typedef before _slp_tree declaration.
674 (struct _slp_tree): Use a vector of slp_tree as children.
675 (vect_get_place_in_interleaving_chain): Remove.
676 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
677 Move ...
678 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
679 and make static.
680 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
681 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
682 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
683 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
684 Use slp_node instead of slp_void_p and adjust.
685
686 2013-04-09 Richard Biener <rguenther@suse.de>
687
688 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
689 work that is not necessary.
690
691 2013-04-09 Jakub Jelinek <jakub@redhat.com>
692
693 PR tree-optimization/56854
694 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
695 forward into clobber stmts if it would change MEM_REF lhs into
696 non-MEM_REF.
697
698 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
699
700 * tree.c (type_hash_lookup, type_hash_add): Make static.
701 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
702
703 2013-04-09 Richard Biener <rguenther@suse.de>
704
705 * tree.h (unsave_expr_now): Remove.
706 * tree-inline.c (mark_local_for_remap_r): Remove.
707 (unsave_expr_1): Likewise.
708 (unsave_r): Likewise.
709 (unsave_expr_now): Likewise.
710 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
711 (propagate_tree_value): Likewise.
712
713 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
714
715 * doc/rtl.texi (sequence): Rewrite documentation to match the
716 current use of SEQUENCE rtl objects.
717 * rtl.def (SEQUENCE): Likewise.
718
719 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
720 Update documentation.
721 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
722 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
723
724 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
725
726 2013-04-08 Teresa Johnson <tejohnson@google.com>
727
728 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
729 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
730 methods.
731 (estimate_edge_size_and_time): Add comment to suggest using rounding
732 methods.
733 (estimate_node_size_and_time): Ditto.
734 (remap_edge_change_prob): Use helper rounding divide methods.
735 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
736 (gimple_mod_pow2_value_transform): Ditto.
737 (gimple_mod_subtract_transform): Ditto.
738 (gimple_ic_transform): Ditto.
739 (gimple_stringops_transform): Ditto.
740 * stmt.c (conditional_probability): Ditto.
741 (emit_case_dispatch_table): Ditto.
742 * lto-cgraph.c (merge_profile_summaries): Ditto.
743 * tree-optimize.c (execute_fixup_cfg): Ditto.
744 * cfgcleanup.c (try_forward_edges): Ditto.
745 * cfgloopmanip.c (scale_loop_profile): Ditto.
746 (loopify): Ditto.
747 (duplicate_loop_to_header_edge): Ditto.
748 (lv_adjust_loop_entry_edge): Ditto.
749 * tree-vect-loop.c (vect_transform_loop): Ditto.
750 * profile.c (compute_branch_probabilities): Ditto.
751 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
752 * lto-streamer-in.c (input_cfg): Ditto.
753 * gimple-streamer-in.c (input_bb): Ditto.
754 * ipa-cp.c (update_profiling_info): Ditto.
755 (update_specialized_profile): Ditto.
756 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
757 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
758 rounding methods.
759 * sched-rgn.c (compute_dom_prob_ps): Ditto.
760 (compute_trg_info): Ditto.
761 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
762 (purge_dead_edges): Ditto.
763 * loop-unswitch.c (unswitch_loop): Ditto.
764 * cgraphclones.c (cgraph_clone_edge): Ditto.
765 (cgraph_clone_node): Ditto.
766 * tree-inline.c (copy_bb): Ditto.
767 (copy_edges_for_bb): Ditto.
768 (initialize_cfun): Ditto.
769 (copy_cfg_body): Ditto.
770 (expand_call_inline): Ditto.
771
772 2013-04-08 Kai Tietz <ktietz@redhat.com>
773
774 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
775 TARGET_CYGWIN64 by TARGET_64BIT.
776
777 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
778
779 * config/epiphany/epiphany.md (GPR_1): New constant.
780 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
781 * config/epiphany/epiphany.c (gen_compare_reg):
782 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
783 is already in place.
784 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
785 Don't require being called during rtl expansion; If y operlaps r0,
786 return 0.
787 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
788 (epiphany_expand_epilogue): Likewise.
789
790 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
791 Don't use CC_FPmode for ORDERED / UNORDERED.
792 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
793
794 * config/epiphany/constraints.md (CnL): New constraint.
795 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
796 * config/epiphany/predicates.md (add_operand): Allow 1024.
797
798 * config/epiphany/epiphany.md (logical_op): New code iterator.
799 (op_mnc): New code attribute.
800 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
801 (mov_f+1, mov_f+2): New peephole2 patterns.
802
803 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
804 (cstoresi4): Also allow re-use of zero result when doing a NE
805 comparison to a non-zero operand.
806 Use (clobber (scratch)) for first insn if the gpr output is not needed.
807
808 * config/epiphany/epiphany.md (<insn_opname>v2si3):
809 Use gen_addsi3_i / gen_subsi3_i.
810
811 2013-04-08 Jakub Jelinek <jakub@redhat.com>
812
813 PR c++/34949
814 PR c++/50243
815 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
816 contain anything but clobbers, at most one __builtin_stack_restore,
817 optionally debug stmts and final resx, and if it has at least one
818 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
819 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
820 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
821 which isn't defaut definition, remove them.
822 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
823 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
824 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
825 with MEM_REF LHS with SSA_NAME address.
826
827 2013-04-08 Jeff Law <law@redhat.com>
828
829 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
830
831 2013-04-08 Richard Biener <rguenther@suse.de>
832
833 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
834 extra newline.
835 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
836 determined vector type.
837 (vect_analyze_data_refs): Likewise.
838 (vect_get_new_vect_var): Adjust.
839 (vect_create_destination_var): Preserve SSA name versions.
840 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
841 not dump anything here.
842
843 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
844
845 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
846 Add member lr_slot_known.
847 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
848 if necessary.
849 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
850 Remove code that sets lr_slot_offset according to what a previous
851 version of epiphany_emit_save_restore used to do.
852 (epiphany_emit_save_restore): When doing an lr save or restore,
853 set/verify lr_slot_known and lr_slot_offset.
854
855 2013-04-08 Xinyu Qi <xyqi@marvell.com>
856
857 PR target/54338
858 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
859 in ALL_REGS.
860
861 2013-04-08 Richard Biener <rguenther@suse.de>
862
863 * alias.c (find_base_term): Fix thinko in previous change.
864
865 2013-04-08 Jakub Jelinek <jakub@redhat.com>
866
867 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
868 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
869 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
870 if possible to compute val.
871 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
872 For QImode integers don't require anything about precision. Use
873 const_with_all_bytes_same to find out if the constant doesn't have
874 repeated bytes in it.
875
876 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
877
878 * config/s390/s390.c (s390_expand_insv): Only accept insertions
879 within mode size.
880
881 2013-04-08 Marek Polacek <polacek@redhat.com>
882
883 PR rtl-optimization/48182
884 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
885 value to 1.
886
887 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
888
889 PR target/55487
890 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
891 nuses, make sure we have a label.
892
893 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
894
895 PR target/56843
896 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
897 (rs6000_emit_swdiv_low_precision): Remove.
898 (rs6000_emit_swdiv): Rewrite to handle between one and four
899 iterations of Newton-Raphson generally; modify required number of
900 iterations for some cases.
901 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
902
903 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
904
905 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
906 set-but-unused variable.
907
908 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
909 basic blocks of released function bodies garbage-collectable.
910
911 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
912 (struct rtl_opt_pass): Add TODO_df_finish.
913
914 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
915
916 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
917
918 * config/arm/constraints.md (q): New constraint.
919 * config/arm/ldrdstrd.md: New file.
920 * config/arm/arm.md (ldrdstrd.md) New include.
921 (arm_movdi): Use "q" instead of "r" constraint
922 for double-word memory access.
923 (movdf_soft_insn): Likewise.
924 * config/arm/vfp.md (movdi_vfp): Likewise.
925 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
926 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
927 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
928 (mem_ok_for_ldrd_strd): Likewise.
929 (output_move_double): Update assertion.
930
931 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
932
933 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
934
935 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
936
937 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
938 define_insn_and_split.
939 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
940
941 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
942
943 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
944 define_insn_and_split.
945 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
946 (shiftsi3_compare): New pattern.
947 (rrx): New pattern.
948 * config/arm/unspecs.md (UNSPEC_RRX): New.
949
950 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
951
952 * config/arm/arm.md (negdi_extendsidi): New pattern.
953 (negdi_zero_extendsidi): Likewise.
954
955 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
956
957 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
958 define_insn_and_split.
959 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
960 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
961
962 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
963
964 * config/arm/arm.md (arm_subdi3): Convert define_insn into
965 define_insn_and_split.
966 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
967 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
968
969 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
970
971 * config/arm/arm.md (subsi3_carryin): New pattern.
972 (subsi3_carryin_const): Likewise.
973 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
974 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
975
976 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
977
978 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
979
980 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
981
982 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
983 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
984
985 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
986
987 * config/arm/arm.c (arm_expand_builtin): Change fcode
988 type to unsigned int.
989
990 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
991
992 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
993
994 2013-04-04 Ian Lance Taylor <iant@google.com>
995
996 * doc/standards.texi (Standards): The Go frontend supports the Go 1
997 language standard.
998
999 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
1000
1001 PR middle-end/56729
1002 * df-scan.c (df_insn_delete): Disable failing assert.
1003
1004 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1005
1006 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
1007 New function prototype.
1008 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
1009 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
1010 (arm_builtin_vectorized_function): New function.
1011
1012 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1013
1014 * config/arm/arm_neon_builtins.def: New file.
1015 * config/arm/arm.c (neon_builtin_data): Move contents to
1016 arm_neon_builtins.def.
1017 (enum arm_builtins): Include neon builtin definitions.
1018 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
1019 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
1020
1021 2013-04-04 Marek Polacek <polacek@redhat.com>
1022
1023 PR tree-optimization/48186
1024 * predict.c (maybe_hot_frequency_p): Return false if
1025 HOT_BB_FREQUENCY_FRACTION is 0.
1026 (cgraph_maybe_hot_edge_p): Likewise.
1027
1028 2013-04-04 Richard Biener <rguenther@suse.de>
1029
1030 PR tree-optimization/56826
1031 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
1032 more accurately.
1033
1034 2013-04-04 Richard Biener <rguenther@suse.de>
1035
1036 PR tree-optimization/56213
1037 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
1038 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
1039
1040 2013-04-04 Richard Biener <rguenther@suse.de>
1041
1042 PR tree-optimization/56837
1043 * tree-loop-distribution.c (classify_partition): For non-zero
1044 values require that the value has the same precision as its
1045 mode to be useful as memset value.
1046
1047 2013-04-03 Nick Clifton <nickc@redhat.com>
1048
1049 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
1050 (fmssf4): Use fmsf.s on E3V5 architectures.
1051 (fnmasf4): Use fnmaf.s on E3V5 architectures.
1052 (fnmssf4): Use fnmsf.s on E3V5 architectures.
1053
1054 2013-04-03 Jeff Law <law@redhat.com>
1055
1056 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
1057 (lra-eliminations.o): Likewise.
1058
1059 2013-04-03 Teresa Johnson <tejohnson@google.com>
1060
1061 * gcov-io.c (compute_working_sets): Moved most of body of old
1062 compute_working_sets here from profile.c.
1063 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
1064 (gcov_working_set_t): Moved typedef here from basic-block.h
1065 (compute_working_set): Declare.
1066 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
1067 (get_working_sets): Renamed from compute_working_set,
1068 replace most of body with call to new compute_working_sets.
1069 (get_exec_counts): Replace call to compute_working_sets
1070 to get_working_sets.
1071 * profile.h (get_working_sets): Renamed from compute_working_set.
1072 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
1073 to get_working_sets.
1074 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
1075 * gcov-dump.c (dump_working_sets): New function.
1076
1077 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
1078
1079 * hwint.c (sext_hwi, zext_hwi): New functions.
1080 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
1081 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
1082 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
1083 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
1084 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
1085 (sext_hwi, zext_hwi): New functions.
1086
1087 2013-04-03 Jeff Law <law@redhat.com>
1088
1089 PR tree-optimization/56799
1090 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
1091 back test for widening conversion erroneously dropped in prior change.
1092
1093 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1094
1095 PR target/56809
1096 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
1097 instead of next_real_insn.
1098
1099 2013-04-03 Marek Polacek <polacek@redhat.com>
1100
1101 PR sanitizer/55702
1102 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
1103
1104 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1105
1106 PR target/56809
1107 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
1108 next_real_insn.
1109 (thumb1_output_casesi): Likewise.
1110 (thumb2_output_casesi): Likewise.
1111
1112 2013-04-03 Richard Biener <rguenther@suse.de>
1113
1114 PR tree-optimization/56817
1115 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1116 Split out ...
1117 (tree_unroll_loops_completely_1): ... new function to manually
1118 walk the loop tree, properly defering outer loops of unrolled
1119 loops to later iterations.
1120
1121 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1122
1123 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
1124 (vectorizable_load): Likewise.
1125 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1126 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
1127
1128 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1129
1130 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
1131 BIT_FIELD_REF.
1132
1133 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1134
1135 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
1136
1137 2013-04-03 Bin Cheng <bin.cheng@arm.com>
1138
1139 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
1140
1141 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1142
1143 PR tree-optimization/56790
1144 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
1145 folding.
1146
1147 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1148
1149 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
1150 Handle VEC_MERGE.
1151 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
1152 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
1153 equal arguments.
1154
1155 2013-04-03 Jakub Jelinek <jakub@redhat.com>
1156
1157 PR c/19449
1158 * tree.h (force_folding_builtin_constant_p): New decl.
1159 * builtins.c (force_folding_builtin_constant_p): New variable.
1160 (fold_builtin_constant_p): Fold immediately also if
1161 force_folding_builtin_constant_p.
1162
1163 2013-04-03 Richard Biener <rguenther@suse.de>
1164
1165 PR tree-optimization/56812
1166 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1167 DRs of the same interleaving chain are independent.
1168
1169 2013-04-02 Jason Merrill <jason@redhat.com>
1170
1171 * gdbinit.in (pbb): Use debug fn.
1172
1173 2013-04-02 Lawrence Crowl <crowl@google.com>
1174
1175 * sese.h (struct ivtype_map_elt_s): Remove unused.
1176 (extern debug_ivtype_map): Remove unused.
1177 (extern eq_ivtype_map_elts): Remove unused.
1178 * sese.c (debug_ivtype_map): Removed unused.
1179 (debug_ivtype_map_1): Removed unused.
1180 (debug_ivtype_elt): Remove unused.
1181 (eq_ivtype_map_elts): Remove unused.
1182
1183
1184 2013-04-02 Kai Tietz <ktietz@redhat.com>
1185
1186 PR target/52790
1187 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
1188 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
1189 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
1190 function.
1191 (legitimize_pe_coff_symbol): Likewise.
1192 (is_imported_p): New helper-function.
1193 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
1194 for Windows x64 targets.
1195 (ix86_expand_prologue): Optimize for pe-coff targets.
1196 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
1197 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
1198 medium/large code-model.
1199 (legitimize_pic_address): Likewise.
1200 (legitimize_tls_address): Likewise.
1201 (ix86_expand_call): Likewise.
1202 (x86_output_mi_thunk): Likewise.
1203 (get_dllimport_decl): Add new beimport argument.
1204 (construct_plt_address): Don't assert for x64 pe-coff targets.
1205 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
1206 targets.
1207 (SYMBOL_FLAG_STUBVAR): New macro.
1208 (SYMBOL_REF_STUBVAR_P): Likewise.
1209 * config/i386/winnt.c (stub_list): New structure.
1210 (stub_head): New local variable.
1211 (i386_pe_record_stub): New function.
1212 (i386_pe_file_end): Emit refptr-stubs.
1213
1214 2013-04-02 Jakub Jelinek <jakub@redhat.com>
1215
1216 PR rtl-optimization/56745
1217 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
1218 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
1219
1220 PR c++/34949
1221 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
1222 and both of them are MEM_REFs, just compare first argument for
1223 equality and attempt to deal even with differing offsets.
1224
1225 PR c++/34949
1226 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
1227 of gimple_clobber_p to be MEM_REF.
1228 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
1229 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
1230 after gimplification.
1231 * asan.c (get_mem_ref_of_assignment): Don't instrument
1232 gimple_clobber_p stmts.
1233 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
1234 gimple_clobber_p stmt if they have MEM_REF lhs and
1235 are dead because of another gimple_clobber_p stmt.
1236 * tree-ssa-live.c (clear_unused_block_pointer): Treat
1237 gimple_clobber_p stmts like debug stmts.
1238 (remove_unused_locals): Remove clobbers with MEM_REF lhs
1239 that refer to unused VAR_DECLs or uninitialized values.
1240 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
1241 gimple_clobber_p stmts if they refer to removed parameters.
1242 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
1243 formatting.
1244
1245 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
1246
1247 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
1248 using SWI48 mode attribute.
1249
1250 2013-04-02 Wei Mi <wmi@google.com>
1251
1252 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
1253 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
1254 *<rotate_insn><mode>3_mask in i386.md.
1255
1256 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
1257
1258 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
1259
1260 2013-04-02 Richard Biener <rguenther@suse.de>
1261
1262 PR tree-optimization/56778
1263 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1264 Runtime alias tests are not supported for gather loads.
1265 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
1266 stmts referenced from SSA operands before updating SSA form.
1267
1268 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
1269 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1270
1271 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
1272 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
1273 * config/arm/cortex-a53.md: New file.
1274 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
1275 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
1276 * config/arm/arm.c (arm_issue_rate): Likewise.
1277 * config/arm/arm-tune.md: Regenerate
1278 * config/arm/arm-tables.opt: Regenerate.
1279 * config/arm/arm-cores.def: Add cortex-a53.
1280
1281 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
1282
1283 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
1284 non-static link.
1285
1286 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
1287
1288 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
1289 scalar load/store operations using B/H registers.
1290 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
1291
1292 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
1293
1294 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
1295 scalar move.
1296 * config/aarch64/aarch64.c
1297 (aarch64_simd_scalar_immediate_valid_for_move): New.
1298 * config/aarch64/aarch64-protos.h
1299 (aarch64_simd_scalar_immediate_valid_for_move): New.
1300 * config/aarch64/constraints.md (Dh, Dq): New.
1301 * config/aarch64/iterators.md (hq): New.
1302
1303 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
1304
1305 * reorg.c (get_branch_condition): Deal with conditional returns.
1306 (fill_simple_delay_slots): Remove dead code dealing with jumps.
1307
1308 2013-04-01 Wei Mi <wmi@google.com>
1309
1310 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
1311 Truncate operand 2 using %b asm operand modifier.
1312 (*<shift_insn><mode>3_mask): Ditto.
1313 (*<rotate_insn><mode>3_mask): Ditto.
1314
1315 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
1316
1317 PR middle-end/56798
1318 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
1319
1320 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
1321
1322 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
1323 of next_real_insn.
1324 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
1325
1326 2013-03-30 Lawrence Crowl <crowl@google.com>
1327
1328 * dse.c (clear_alias_sets): Remove never set.
1329 (disqualified_clear_alias_sets): Remove never set.
1330 (clear_alias_mode_pool): Remove never set.
1331 (dse_step0): Remove condition that is never true.
1332 (canon_address): Remove condition that is never true.
1333 (dse_step7): Remove condition that is never true.
1334 (rest_of_handle_dse): Remove condition that is never true.
1335 (rest_of_handle_dse::did_global): Remove never read from above.
1336 (dse_step2_spill): Remove never called from above.
1337 (dse_step5_spill): Remove never called from above.
1338
1339 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
1340
1341 * doc/md.texi (Standard Names) <casesi>: Update documentation for
1342 JUMP_TABLE_DATA changes.
1343 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
1344 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
1345 (Insns) <jump_table_data>: New entry.
1346 * doc/tm.texi: Regenerate.
1347
1348 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
1349
1350 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
1351 for table jump at the end of a basic block using tablejump_p.
1352 * targhooks.c (default_invalid_within_doloop): Likewise.
1353 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
1354 target hook implementation that is identical to the default hook.
1355 (rs6000_invalid_within_doloop): Remove.
1356
1357 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
1358 unused variable from tablejump_p call.
1359
1360 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
1361 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
1362 (INSN_DELETED_P): Likewise.
1363 (emit_jump_table_data): New prototype.
1364 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
1365 after 4th as unused.
1366 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
1367 * sched-vis.c (print_insn): Likewise.
1368 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
1369 insn for compatibility with back ends that use next_active_insn to
1370 identify jump table data.
1371 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
1372 (remove_insn): Likewise.
1373 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
1374 to be emitted.
1375 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
1376 (emit_jump_table_data): New function.
1377
1378 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
1379 basic block, a JUMP_TABLE_DATA never is.
1380 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
1381 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
1382 off from code handling real insns.
1383 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
1384 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
1385 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
1386 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
1387 is not a NONDEBUG_INSN_P.
1388 * ira-costs.c (scan_one_insn): Likewise.
1389 * jump.c (mark_all_labels): Likewise.
1390 (mark_jump_label_1): Likewise.
1391 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1392 * lra.c (get_insn_freq): Expect all insns reaching here to be in
1393 a basic block.
1394 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
1395 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
1396 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
1397 JUMP_TABLE_DATA_P insns.
1398 (calculate_elim_costs_all_insns): Likewise.
1399 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
1400 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
1401 (delete_output_reload): Code style fixups.
1402 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
1403 insn flags on this non-insn.
1404 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
1405 as scheduling barriers, for pre-change compatibility.
1406 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
1407 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
1408
1409 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
1410 redundant JUMP_TABLE_DATA_P test.
1411 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
1412 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1413 (frv_for_each_packet): Likewise.
1414 * config/i386/i386.c (min_insn_size): Likewise.
1415 (ix86_avoid_jump_mispredicts): Likewise.
1416 * config/m32r/m32r.c (m32r_is_insn): Likewise.
1417 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
1418 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1419 (mips16_insn_length): Robustify.
1420 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
1421 (mips16_split_long_branches): Likewise.
1422 * config/pa/pa.c (pa_combine_instructions): Likewise.
1423 * config/rs6000/rs6000.c (get_next_active_insn): Treat
1424 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
1425 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
1426 as contributing to pool range lengths.
1427 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
1428 Remove redundant JUMP_TABLE_DATA_P test.
1429 (sh_loop_align): Likewise.
1430 (split_branches): Likewise.
1431 (sh_insn_length_adjustment): Likewise.
1432 * config/spu/spu.c (get_branch_target): Likewise.
1433
1434 2013-03-29 Jan Hubicka <jh@suse.cz>
1435
1436 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
1437 gcov streaming; stream hot bb threshold to ltrans.
1438 * predict.c (get_hot_bb_threshold): Break out from ....
1439 (maybe_hot_count_p): ... here.
1440 (set_hot_bb_threshold): New function.
1441 * lto-section-in.c (lto_section_name): Add profile.
1442 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
1443 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
1444 and data-streamer.h
1445 (histogram_entry): New structure.
1446 (histogram, histogram_pool): New global vars.
1447 (histogram_hash): New structure.
1448 (histogram_hash::hash): New method.
1449 (histogram_hash::equal): Likewise.
1450 (account_time_size): New function.
1451 (cmp_counts): New function.
1452 (dump_histogram): New function.
1453 (ipa_profile_generate_summary): New function.
1454 (ipa_profile_write_summary): New function.
1455 (ipa_profile_read_summary): New function.
1456 (ipa_profile): Decide on threshold.
1457 (pass_ipa_profile): Add ipa_profile_write_summary and
1458 ipa_profile_read_summary.
1459 * Makefile.in (ipa.o): Update dependencies.
1460 * lto-streamer.h (LTO_section_ipa_profile): New section.
1461
1462 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
1463
1464 * tree.h (VAR_P): New.
1465
1466 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
1467
1468 PR lto/56777
1469 * doc/invoke.texi ([-fwhole-program]): Fix typo.
1470
1471 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
1472
1473 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
1474 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1475 (control_flow_insn_p): Likewise.
1476 * cfgrtl.c (duplicate_insn_chain): Likewise.
1477 * final.c (get_attr_length_1): Likewise.
1478 (shorten_branches): Likewise.
1479 (final_scan_insn): Likewise.
1480 * function.c (instantiate_virtual_regs): Likewise.
1481 * gcse.c (insert_insn_end_basic_block): Likewise.
1482 * ira-costs.c (scan_one_insn): Likewise.
1483 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1484 * lra.c (check_rtl): Likewise.
1485 * reload1.c (elimination_costs_in_insn): Likewise.
1486 * reorg.c (follow_jumps): Likewise.
1487
1488 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
1489 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1490 (thumb_far_jump_used_p): Likewise.
1491 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
1492 (workaround_speculation): Likewise.
1493 (add_sched_insns_for_speculation): Likewise.
1494 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
1495 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1496 (frv_for_each_packet): Likewise.
1497 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
1498 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
1499 (final_emit_insn_group_barriers): Likewise.
1500 * config/m32r/m32r.c (m32r_is_insn): Likewise.
1501 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1502 (mips16_insn_length): Likewise.
1503 * config/pa/pa.c (pa_reorg): Likewise.
1504 (pa_combine_instructions): Likewise.
1505 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
1506 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
1507 (sh_reorg): Likewise.
1508 (split_branches): Likewise.
1509 * config/spu/spu.c (get_branch_target): Likewise.
1510
1511 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
1512 JUMP_TABLE_DATA_P.
1513
1514 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
1515
1516 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
1517 Fix declaration name.
1518
1519 2013-03-28 Lawrence Crowl <crowl@google.com>
1520
1521 * graphds.h (struct graph.indicies): Remove unused.
1522 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
1523 (SCOP_ORIGINAL_PDDRS): Remove unused.
1524 * sese.h (extern insert_loop_close_phis): Removed unused.
1525 (extern insert_guard_phis): Removed unused.
1526 (extern ivtype_map_elt_info): Removed unused.
1527 (new_ivtype_map_elt): Removed unused.
1528 * sese.c (ivtype_map_elt_info): Removed unused.
1529
1530 2013-03-28 Lawrence Crowl <crowl@google.com>
1531
1532 * Makefile.in: Add several missing include dependences.
1533 (DUMPFILE_H): New.
1534 (test-dump.o): New. This object is not added to any executable,
1535 but is present for ad-hoc testing.
1536 * bitmap.c
1537 (debug (const bitmap_head_def &)): New.
1538 (debug (const bitmap_head_def *)): New.
1539 * bitmap.h
1540 (extern debug (const bitmap_head_def &)): New.
1541 (extern debug (const bitmap_head_def *)): New.
1542 * cfg.c
1543 (debug (edge_def &)): New.
1544 (debug (edge_def *)): New.
1545 * cfghooks.c
1546 (debug (basic_block_def &)): New.
1547 (debug (basic_block_def *)): New.
1548 * dumpfile.h
1549 (dump_node (const_tree, int, FILE *)): Correct source file.
1550 * dwarf2out.c
1551 (debug (die_struct &)): New.
1552 (debug (die_struct *)): New.
1553 * dwarf2out.h
1554 (extern debug (die_struct &)): New.
1555 (extern debug (die_struct *)): New.
1556 * gimple-pretty-print.c
1557 (debug (gimple_statement_d &)): New.
1558 (debug (gimple_statement_d *)): New.
1559 * gimple-pretty-print.h
1560 (extern debug (gimple_statement_d &)): New.
1561 (extern debug (gimple_statement_d *)): New.
1562 * ira-build.c
1563 (debug (ira_allocno_copy &)): New.
1564 (debug (ira_allocno_copy *)): New.
1565 (debug (ira_allocno &)): New.
1566 (debug (ira_allocno *)): New.
1567 * ira-int.h
1568 (extern debug (ira_allocno_copy &)): New.
1569 (extern debug (ira_allocno_copy *)): New.
1570 (extern debug (ira_allocno &)): New.
1571 (extern debug (ira_allocno *)): New.
1572 * ira-lives.c
1573 (debug (live_range &)): New.
1574 (debug (live_range *)): New.
1575 * lra-int.h
1576 (debug (lra_live_range &)): New.
1577 (debug (lra_live_range *)): New.
1578 * lra-lives.c
1579 (debug (lra_live_range &)): New.
1580 (debug (lra_live_range *)): New.
1581 * omega.c
1582 (debug (omega_pb_d &)): New.
1583 (debug (omega_pb_d *)): New.
1584 * omega.h
1585 (extern debug (omega_pb_d &)): New.
1586 (extern debug (omega_pb_d *)): New.
1587 * print-rtl.c
1588 (debug (const rtx_def &)): New.
1589 (debug (const rtx_def *)): New.
1590 * print-tree.c
1591 (debug_tree (tree): Move within file.
1592 (debug_raw (const tree_node &)): New.
1593 (debug_raw (const tree_node *)): New.
1594 (dump_tree_via_hooks (const tree_node *, int)): New.
1595 (debug (const tree_node &)): New.
1596 (debug (const tree_node *)): New.
1597 (debug_verbose (const tree_node &)): New.
1598 (debug_verbose (const tree_node *)): New.
1599 (debug_head (const tree_node &)): New.
1600 (debug_head (const tree_node *)): New.
1601 (debug_body (const tree_node &)): New.
1602 (debug_body (const tree_node *)): New.
1603 (debug_vec_tree (tree): Move and reimplement in terms of dump.
1604 (debug (vec<tree, va_gc> &)): New.
1605 (debug (vec<tree, va_gc> *)): New.
1606 * rtl.h
1607 (extern debug (const rtx_def &)): New.
1608 (extern debug (const rtx_def *)): New.
1609 * sbitmap.c
1610 (debug_raw (simple_bitmap_def &)): New.
1611 (debug_raw (simple_bitmap_def *)): New.
1612 (debug (simple_bitmap_def &)): New.
1613 (debug (simple_bitmap_def *)): New.
1614 * sbitmap.h
1615 (extern debug (simple_bitmap_def &)): New.
1616 (extern debug (simple_bitmap_def *)): New.
1617 (extern debug_raw (simple_bitmap_def &)): New.
1618 (extern debug_raw (simple_bitmap_def *)): New.
1619 * sel-sched-dump.c
1620 (debug (vinsn_def &)): New.
1621 (debug (vinsn_def *)): New.
1622 (debug_verbose (vinsn_def &)): New.
1623 (debug_verbose (vinsn_def *)): New.
1624 (debug (expr_def &)): New.
1625 (debug (expr_def *)): New.
1626 (debug_verbose (expr_def &)): New.
1627 (debug_verbose (expr_def *)): New.
1628 (debug (vec<rtx> &)): New.
1629 (debug (vec<rtx> *)): New.
1630 * sel-sched-dump.h
1631 (extern debug (vinsn_def &)): New.
1632 (extern debug (vinsn_def *)): New.
1633 (extern debug_verbose (vinsn_def &)): New.
1634 (extern debug_verbose (vinsn_def *)): New.
1635 (extern debug (expr_def &)): New.
1636 (extern debug (expr_def *)): New.
1637 (extern debug_verbose (expr_def &)): New.
1638 (extern debug_verbose (expr_def *)): New.
1639 (extern debug (vec<rtx> &)): New.
1640 (extern debug (vec<rtx> *)): New.
1641 * sel-sched-ir.h
1642 (_list_iter_cond_expr): Make inline instead of static.
1643 * sreal.c
1644 (debug (sreal &)): New.
1645 (debug (sreal *)): New.
1646 * sreal.h
1647 (extern debug (sreal &)): New.
1648 (extern debug (sreal *)): New.
1649 * tree.h
1650 (extern debug_raw (const tree_node &)): New.
1651 (extern debug_raw (const tree_node *)): New.
1652 (extern debug (const tree_node &)): New.
1653 (extern debug (const tree_node *)): New.
1654 (extern debug_verbose (const tree_node &)): New.
1655 (extern debug_verbose (const tree_node *)): New.
1656 (extern debug_head (const tree_node &)): New.
1657 (extern debug_head (const tree_node *)): New.
1658 (extern debug_body (const tree_node &)): New.
1659 (extern debug_body (const tree_node *)): New.
1660 (extern debug (vec<tree, va_gc> &)): New.
1661 (extern debug (vec<tree, va_gc> *)): New.
1662 * tree-cfg.c
1663 (debug (struct loop &)): New.
1664 (debug (struct loop *)): New.
1665 (debug_verbose (struct loop &)): New.
1666 (debug_verbose (struct loop *)): New.
1667 * tree-dump.c: Add header dependence.
1668 * tree-flow.h
1669 (extern debug (struct loop &)): New.
1670 (extern debug (struct loop *)): New.
1671 (extern debug_verbose (struct loop &)): New.
1672 (extern debug_verbose (struct loop *)): New.
1673 * tree-data-ref.c
1674 (debug (data_reference &)): New.
1675 (debug (data_reference *)): New.
1676 (debug (vec<data_reference_p> &)): New.
1677 (debug (vec<data_reference_p> *)): New.
1678 (debug (vec<ddr_p> &)): New.
1679 (debug (vec<ddr_p> *)): New.
1680 * tree-data-ref.h
1681 (extern debug (data_reference &)): New.
1682 (extern debug (data_reference *)): New.
1683 (extern debug (vec<data_reference_p> &)): New.
1684 (extern debug (vec<data_reference_p> *)): New.
1685 (extern debug (vec<ddr_p> &)): New.
1686 (extern debug (vec<ddr_p> *)): New.
1687 * tree-ssa-alias.c
1688 (debug (pt_solution &)): New.
1689 (debug (pt_solution *)): New.
1690 * tree-ssa-alias.h
1691 (extern debug (pt_solution &)): New.
1692 (extern debug (pt_solution *)): New.
1693 * tree-ssa-alias.c
1694 (debug (_var_map &)): New.
1695 (debug (_var_map *)): New.
1696 (debug (tree_live_info_d &)): New.
1697 (debug (tree_live_info_d *)): New.
1698 * tree-ssa-alias.h
1699 (extern debug (_var_map &)): New.
1700 (extern debug (_var_map *)): New.
1701 (extern debug (tree_live_info_d &)): New.
1702 (extern debug (tree_live_info_d *)): New.
1703
1704 2013-03-28 Jan Hubicka <jh@suse.cz>
1705
1706 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
1707
1708 2013-03-28 Ian Bolton <ian.bolton@arm.com>
1709
1710 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
1711 record only when desired or required.
1712
1713 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
1714
1715 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
1716 *vec_extractv2di_1_rex64. Use x64 isa attribute.
1717
1718 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1719
1720 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
1721 (*andsi3_compare0_uxtw): New pattern.
1722 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
1723 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
1724
1725 2013-03-28 Jan Hubicka <jh@suse.cz>
1726
1727 * data-streamer-in.c (streamer_read_gcov_count): New function.
1728 * gimple-streamer-out.c: Include value-prof.h.
1729 (output_gimple_stmt): Output histogram.
1730 (output_bb): Use streamer_write_gcov_count.
1731 * value-prof.c: Include data-streamer.h
1732 (dump_histogram_value): Add HIST_TYPE_MAX.
1733 (stream_out_histogram_value): New function.
1734 (stream_in_histogram_value): New function.
1735 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
1736 (stream_out_histogram_value, stream_in_histogram_value): Declare.
1737 * data-streamer-out.c (streamer_write_gcov_count): New function.
1738 (streamer_write_gcov_count_stream): New function.
1739 * lto-cgraph.c (lto_output_edge): Update counter streaming.
1740 (lto_output_node): Likewise.
1741 (input_node, input_edge): Likewise.
1742 * lto-streamer-out.c (output_cfg): Update streaming.
1743 * lto-streamer-in.c (input_cfg): Likewise.
1744 * data-streamer.h (streamer_write_gcov_count,
1745 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
1746 * gimple-streamer-in.c: Include value-prof.h
1747 (input_gimple_stmt): Input histograms.
1748 (input_bb): Update profile streaming.
1749
1750 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
1751
1752 * genmodes.c (emit_max_int): New function.
1753 (emit_insn_modes_h): Added call to emit_max_function.
1754 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
1755 Added doc.
1756 * machmode.def: Fixed comment.
1757
1758 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
1759
1760 * combine.c (try_combine): Removed useless assert.
1761 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
1762
1763 2013-03-28 Marek Polacek <polacek@redhat.com>
1764 Richard Biener <rguenther@suse.de>
1765
1766 PR tree-optimization/56695
1767 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
1768 build signed result of a vector comparison.
1769 * tree-cfg.c (verify_gimple_comparison): Check that a result
1770 of a vector comparison has signed type.
1771
1772 2013-03-28 Richard Biener <rguenther@suse.de>
1773
1774 PR tree-optimization/37021
1775 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
1776 do not restrict gaps between groups.
1777 * tree-vect-stmts.c (vectorizable_load): Properly account for
1778 a gap between groups.
1779
1780 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
1781
1782 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
1783 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
1784 is not enabled.
1785
1786 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
1787
1788 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
1789 * doc/extend.texi (Named Address Spaces): Ditto.
1790 (Variable Attributes): Ditto.
1791
1792 2013-03-27 Kai Tietz <ktietz@redhat.com>
1793
1794 * config.build: Add support for cygwin x64 target.
1795 * config.gcc: Likewise.
1796 * config.host: Likewise.
1797 * configure.ac: Likewise
1798 * configure: Regenerated.
1799
1800 2013-03-27 Kai Tietz <ktietz@redhat.com>
1801
1802 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
1803 * config/i386/t-cygwin-w64: New file.
1804 * config/i386/cygwin-w64.h: New file.
1805 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
1806 and add support for x64-cygwin target.
1807 (CPP_SPEC): Likewise.
1808 (CXX_WRAP_SPEC_LIST): Undefine before define.
1809 (LIBGCJ_SONAME): Use 15 as version.
1810
1811 2013-03-27 Richard Biener <rguenther@suse.de>
1812
1813 PR tree-optimization/56716
1814 * tree-ssa-structalias.c (perform_var_substitution): Adjust
1815 dumping for ref nodes.
1816
1817 2013-03-27 Martin Jambor <mjambor@suse.cz>
1818
1819 PR tree-optimization/55334
1820 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
1821 restricted pointers to arrays.
1822
1823 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1824
1825 * Makefile.in (.SUFFIXES): Add .cc.
1826 (.c.o): Apply same recipe for implicit rule .cc.o.
1827
1828 2013-03-27 Richard Biener <rguenther@suse.de>
1829
1830 PR tree-optimization/37021
1831 * tree-vect-data-refs.c (vect_check_strided_load): Allow
1832 REALPART/IMAGPART_EXPRs around the supported refs.
1833 * tree-ssa-structalias.c (find_func_aliases): Assume that
1834 floating-point values are not used to transfer pointers.
1835
1836 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1837
1838 * target.def (TARGET_HAS_IFUNC_P): New target hook.
1839 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
1840 * doc/tm.texi: Regenerate.
1841 * targhooks.h (default_has_ifunc_p): New.
1842 * targhooks.c (default_has_ifunc_p): Ditto.
1843 * config/linux-protos.h: New file.
1844 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
1845 this hook for linux which disables support of indirect functions in
1846 android.
1847 * config/linux-android.c: New file.
1848 * config/t-linux-android.c: Ditto.
1849 * config.gcc: Added new object file linux-android.o.
1850 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
1851 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
1852 * varasm.c (do_assemble_alias): Likewise.
1853 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
1854 doesn't support indirect functions.
1855 * configure: Regenerate.
1856
1857 2013-03-27 Bin Cheng <bin.cheng@arm.com>
1858
1859 PR target/56102
1860 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
1861 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
1862 mult-word mode.
1863
1864 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1865
1866 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
1867
1868 2013-03-27 Terry Guo <terry.guo@arm.com>
1869
1870 * config/arm/arm-cores.def: Added core cortex-r7.
1871 * config/arm/arm-tune.md: Regenerated.
1872 * config/arm/arm-tables.opt: Regenerated.
1873 * doc/invoke.texi: Added entry for core cortex-r7.
1874
1875 2013-03-27 Walter Lee <walt@tilera.com>
1876
1877 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
1878 double-decrement of next_scratch_regno.
1879
1880 2013-03-27 Walter Lee <walt@tilera.com>
1881
1882 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
1883 input operands.
1884 (insn_v1mulus): Ditto.
1885 (insn_v2muls): Ditto.
1886
1887 2013-03-27 Walter Lee <walt@tilera.com>
1888
1889 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
1890 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
1891
1892 2013-03-27 Walter Lee <walt@tilera.com>
1893
1894 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
1895 (*sibcall_value): Ditto.
1896
1897 2013-03-27 Walter Lee <walt@tilera.com>
1898
1899 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
1900 (insn_mnz_v8qi): ... this ...
1901 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
1902 vector equivalent.
1903 (insn_v<n>mnz): Replaced by ...
1904 (insn_v1mnz): ... this ...
1905 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
1906 equivalent.
1907 (insn_mz_<mode>): Replaced by ...
1908 (insn_mz_v8qi): ... this ...
1909 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
1910 vector equivalent.
1911 (insn_v<n>mz): Replaced by ...
1912 (insn_v1mz): ... this ...
1913 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
1914 equivalent.
1915
1916 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
1917
1918 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
1919
1920 2013-03-26 Roland McGrath <mcgrathr@google.com>
1921
1922 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
1923 than fprintf with a non-constant, non-format string.
1924
1925 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
1926
1927 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
1928 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
1929 operand 0 predicate.
1930 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
1931 attribute. Use general_x64nomem_operand as operand 1 predicate.
1932 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
1933 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
1934 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
1935 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
1936 (mov<mode>_insv_1): Remove expander. Merge insn with
1937 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
1938 Use general_x64nomem_operand as operand 1 predicate.
1939 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
1940 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
1941 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
1942 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
1943 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
1944 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
1945 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
1946 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
1947 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
1948 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
1949 (general_x64nomem_operand): Ditto.
1950
1951 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
1952
1953 * config/rtems.opt: Add -pthread option.
1954
1955 2013-03-26 Richard Biener <rguenther@suse.de>
1956
1957 * alias.c (find_base_term): Avoid redundant and not used recursion.
1958 (base_alias_check): Get the initial base term from the caller.
1959 (true_dependence_1): Compute and pass base terms to base_alias_check.
1960 (write_dependence_p): Likewise.
1961 (may_alias_p): Likewise.
1962
1963 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
1964
1965 * config/aarch64/aarch64.c (aarch64_classify_address): Support
1966 PC-relative load in SI modes and above only.
1967
1968 2013-03-26 Xinyu Qi <xyqi@marvell.com>
1969
1970 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
1971 * config/arm/iwmmxt.md (WCGR0): Update.
1972 (WCGR1, WCGR2, WCGR3): Likewise.
1973
1974 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
1975
1976 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
1977 Use x64 and nox64 isa attributes.
1978
1979 2013-03-26 Richard Biener <rguenther@suse.de>
1980
1981 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
1982 alignment computations and rely on get_object_alignment_1
1983 for the !TYPE_P case.
1984 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
1985
1986 2013-03-26 Walter Lee <walt@tilera.com>
1987
1988 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
1989 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
1990
1991 2013-03-25 Jeff Law <law@redhat.com>
1992
1993 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
1994 check for INTEGRAL_TYPE_P that was missing due to checking in
1995 wrong version of prior patch.
1996
1997 2013-03-25 Walter Lee <walt@tilera.com>
1998
1999 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
2000 TILEGX_INSN_SHUFFLEBYTES1.
2001 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
2002 shufflebytes1.
2003 (tilegx_builtins): Ditto.
2004 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
2005
2006 2013-03-25 Walter Lee <walt@tilera.com>
2007
2008 * config/tilegx/tilegx.md (floatsisf2): New pattern.
2009 (floatunssisf2): New pattern.
2010 (floatsidf2): New pattern.
2011 (floatunssidf2): New pattern.
2012
2013 2013-03-25 Walter Lee <walt@tilera.com>
2014
2015 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
2016 tests for constraint J, K, N, P.
2017
2018 2013-03-25 Walter Lee <walt@tilera.com>
2019
2020 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
2021 Use indirect/pcrel encoding.
2022 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
2023 Ditto.
2024
2025 2013-03-25 Steve Ellcey <sellcey@mips.com>
2026
2027 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
2028 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
2029 * config/mips/mips.c (mips_option_override): Set IMADD default.
2030 * config/mips/mips.h (PTF_AVOID_IMADD): New.
2031 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
2032 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
2033 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
2034 * doc/invoke.texi (-mimadd/-mno-imadd): New.
2035
2036 2013-03-25 Jeff Law <law@redhat.com>
2037
2038 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
2039 slightly to avoid creating and folding useless trees. Simplify
2040 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
2041
2042 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
2043
2044 * config/i386/i386.md (*zero_extendsidi2): Merge with
2045 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
2046 * config/i386/predicates.md (x86_64_zext_operand): Rename from
2047 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
2048 targets. Clarify comment.
2049
2050 2013-03-25 Martin Jambor <mjambor@suse.cz>
2051
2052 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
2053 pass-through jump functions differently.
2054 (ipa_read_jump_function): Likewise. Also use setter functions to set
2055 up jump functions.
2056
2057 2013-03-25 Martin Jambor <mjambor@suse.cz>
2058
2059 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
2060 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
2061 process it.
2062 (ipa_get_indirect_edge_target): New function.
2063 (devirtualization_time_bonus): New parameter known_aggs, pass it to
2064 ipa_get_indirect_edge_target. Update all callers.
2065 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
2066 ipa_get_indirect_edge_target_1 instead of calling
2067 ipa_get_indirect_edge_target.
2068 (create_specialized_node): Pass aggvlas to
2069 ipcp_discover_new_direct_edges.
2070
2071 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2072
2073 * config/arm/arm.md (f_sels, f_seld): New types.
2074 (*cmov<mode>): New pattern.
2075 * config/arm/predicates.md (arm_vsel_comparison_operator): New
2076 predicate.
2077
2078 2013-03-25 Kai Tietz <ktietz@redhat.com>
2079
2080 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
2081 POSIX-printf for mingw-hosted builds.
2082
2083 2013-03-25 Richard Biener <rguenther@suse.de>
2084
2085 PR middle-end/56694
2086 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
2087 must-not-throw stmt location.
2088
2089 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2090
2091 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
2092 Emit load-acquire versions when acq is true.
2093 (arm_emit_store_exclusive): Add rel parameter.
2094 Emit store-release versions when rel is true.
2095 (arm_split_compare_and_swap): Use acquire-release instructions
2096 instead.
2097 of barriers when appropriate.
2098 (arm_split_atomic_op): Likewise.
2099 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
2100 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
2101 (VUNSPEC_SLX): Likewise.
2102 (VUNSPEC_LDA): Likewise.
2103 (VUNSPEC_STL): Likewise.
2104 * config/arm/sync.md (atomic_load<mode>): New pattern.
2105 (atomic_store<mode>): Likewise.
2106 (arm_load_acquire_exclusive<mode>): Likewise.
2107 (arm_load_acquire_exclusivesi): Likewise.
2108 (arm_load_acquire_exclusivedi): Likewise.
2109 (arm_store_release_exclusive<mode>): Likewise.
2110
2111 2013-03-25 Catherine Moore <clm@codesourcery.com>
2112
2113 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
2114 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
2115 * config/mip/predicates.md (lwsp_swsp_operand,
2116 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
2117 sb16_operand, db4_operand, db7_operand, ib3_operand,
2118 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
2119 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
2120 andi16_operand): New predicates.
2121 * config/mips/mips.md (compression): New attribute.
2122 (enabled): New attribute.
2123 (length): Consider compression in computing length.
2124 (shift_compression): New code attribute.
2125 (*add<mode>3): New operands. Record compression.
2126 (sub<mode>3): Likewise.
2127 (one_cmpl<mode>2): Likewise.
2128 (*and<mode>3): Likewise.
2129 (*ior<mode>3): Likewise.
2130 (unnamed pattern for xor): Likewise.
2131 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
2132 (*<optab><mode>3): Likewise.
2133 (*mov<mode>_internal: Likewise.
2134 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
2135 (mips_unsigned_immediate_p): New.
2136 (umips_lwsp_swsp_address_p): New.
2137 (m16_based_address_p): New.
2138 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
2139 (mips_unsigned_immediate_p): New prototype.
2140 (lwsp_swsp_address_p): New prototype.
2141 (m16_based_address_p): New prototype.
2142 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
2143 (mips_signed_immediate_p): New function.
2144 (m16_based_address_p): New function.
2145 (lwsp_swsp_address_p): New function.
2146 (mips_print_operand_punctuation): Recognize short delay slot insns
2147 for microMIPS.add<mode>3"
2148
2149 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2150
2151 PR target/56720
2152 * config/arm/iterators.md (v_cmp_result): New mode attribute.
2153 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
2154
2155 2013-03-25 Richard Biener <rguenther@suse.de>
2156
2157 PR tree-optimization/56689
2158 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
2159 any edge.
2160
2161 2013-03-25 Richard Biener <rguenther@suse.de>
2162
2163 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
2164 of bitmap.
2165 (memory_references): Likewise.
2166 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
2167 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
2168 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
2169 (gather_mem_refs_in_loops): Fold into ...
2170 (analyze_memory_references): ... this. Move initialization
2171 to tree_ssa_lim_initialize.
2172 (fill_always_executed_in): Rename to ...
2173 (fill_always_executed_in_1): ... this.
2174 (fill_always_executed_in): Move contains_call computation to
2175 this new function from ...
2176 (tree_ssa_lim_initialize): ... here.
2177 (tree_ssa_lim): Call fill_always_executed_in.
2178
2179 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
2180
2181 * postreload.c (reload_combine): Fix code detecting returns.
2182
2183 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
2184
2185 * function.c (emit_use_return_register_into_block): On cc0 targets,
2186 do not emit the sequence between cc0 setter and user.
2187
2188 2013-03-25 Kai Tietz <ktietz@redhat.com>
2189
2190 * config/i386/predicates.md (local_symbolic_operand): Interpret
2191 dll-imported symbols as none-local.
2192
2193 2013-03-25 Richard Biener <rguenther@suse.de>
2194
2195 * tree-ssa-loop-im.c (struct depend): Remove.
2196 (struct lim_aux_data): Make depends a vec of gimples.
2197 (free_lim_aux_data): Adjust.
2198 (add_dependency): Likewise.
2199 (set_level): Likewise.
2200
2201 2013-03-25 Richard Biener <rguenther@suse.de>
2202
2203 PR middle-end/56434
2204 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
2205 the pointer returned by calls with ECF_MALLOC set.
2206
2207 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
2208
2209 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
2210
2211 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
2212
2213 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2214 using MMXMODE mode iterator.
2215 (*move<mode>_internal): Merge with *movv2sf_internal and
2216 *movv2sf_internal_rex64 using MMXMODE mode iterator.
2217
2218 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
2219
2220 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
2221 (record_last_mem_set_info): Likewise.
2222
2223 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
2224 of XNEWVEC followed by memset.
2225 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
2226
2227 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
2228
2229 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2230 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
2231 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
2232 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
2233 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
2234 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
2235 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
2236 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
2237 BARRIER_P instead of GET_CODE.
2238
2239 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2240
2241 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
2242 inaccuracy in the probing code.
2243
2244 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
2245 (ctrapdi4): Likewise.
2246
2247 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2248
2249 * calls.c (expand_call): Add missing guard to code handling return
2250 of non-BLKmode structures in MSB.
2251 * function.c (expand_function_end): Likewise.
2252
2253 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2254
2255 * combine.c (try_combine): Adjust comment. Do not add the set of
2256 insn #0 if the destination indirectly is set or dies in insn #2.
2257 Tidy up code to distribute a new note.
2258
2259 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
2260
2261 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
2262 also for alternatives 16 and 17.
2263
2264 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
2265
2266 * config/i386/sse.md (*mov<mode>_internal): Merge with
2267 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
2268 Emit insn template depending on type attribute. Use
2269 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2270 movd instead of movq mnemonic for interunit moves. Rewrite mode
2271 attribute calculation. Remove unit attribute calculation.
2272 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
2273 Set prefix_data16 attribute for DImode ssemov types.
2274 Use Ym instead of y for SSE-MMX conversion alternatives.
2275 Reorder operand constraints.
2276
2277 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
2278
2279 * df.h (df_insn_delete): Adjust prototype.
2280 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
2281 and let it decide whether mark the basic block dirty.
2282 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
2283 * df-scan.c (df_insn_info_delete): New helper function, split
2284 off from df_insn_delete.
2285 (df_scan_free_bb_info): Use it.
2286 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
2287 Likewise.
2288 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
2289 that the insn is actually an insn and it has a non-NULL basic block.
2290 Do not mark basic block dirty if only deleting a DEBUG_INSN.
2291
2292 2013-03-22 Richard Biener <rguenther@suse.de>
2293
2294 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
2295 dep_ref members.
2296 (mem_ref_alloc): Do not allocate them.
2297 (refs_independent_p): Do not query or maintain a cache.
2298
2299 2013-03-22 Richard Biener <rguenther@suse.de>
2300
2301 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
2302 (gather_mem_refs_in_loops): Do not compute it.
2303 (analyze_memory_references): Do not allocate it.
2304 (tree_ssa_lim_finalize): Do not free it.
2305 (for_all_locs_in_loop): Do not query all_refs_in_loop.
2306
2307 2013-03-22 Richard Biener <rguenther@suse.de>
2308
2309 * is-a.h (as_a): Use gcc_checking_assert.
2310
2311 2013-03-22 Ian Bolton <ian.bolton@arm.com>
2312
2313 * config/aarch64/aarch64.c (aarch64_print_operand): New
2314 format specifier for printing a constant in hex.
2315 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
2316 format specifier for printing second operand.
2317
2318 2013-03-22 Richard Biener <rguenther@suse.de>
2319
2320 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
2321 bitmaps.
2322 (gather_mem_refs_in_loops): Perform store accumulation here.
2323 (create_vop_ref_mapping_loop): Remove.
2324 (create_vop_ref_mapping): Likewise.
2325 (analyze_memory_references): Initialize refs_stored_in_loop.
2326 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
2327 (record_indep_loop): Remove.
2328 (record_dep_loop): New function.
2329 (ref_indep_loop_p_1): Adjust to only walk over references
2330 in the loop, not its subloops.
2331 (ref_indep_loop_p): Rename to ...
2332 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
2333 maintaining a more fine-grained cache.
2334 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
2335 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
2336
2337 2013-03-22 Richard Biener <rguenther@suse.de>
2338
2339 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
2340 (struct mem_ref): Make accesses_in_loop a vec of a vec of
2341 aggregate mem_ref_loc.
2342 (free_mem_ref_locs): Inline into ...
2343 (memref_free): ... this and adjust.
2344 (mem_ref_alloc): Adjust.
2345 (mem_ref_locs_alloc): Remove.
2346 (record_mem_ref_loc): Adjust.
2347 (get_all_locs_in_loop): Rewrite into ...
2348 (for_all_locs_in_loop): ... this iterator.
2349 (rewrite_mem_ref_loc): New functor.
2350 (rewrite_mem_refs): Use for_all_locs_in_loop.
2351 (sm_set_flag_if_changed): New functor.
2352 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
2353 (ref_always_accessed): New functor.
2354 (ref_always_accessed_p): Use for_all_locs_in_loop.
2355
2356 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
2357
2358 * tree-pass.h (PROP_gimple_lvec): New.
2359 * passes.c (dump_properties): Handle PROP_gimple_lvec.
2360 (init_optimization_passes): Move pass_lower_vector.
2361 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
2362 PROP_gimple_lvec.
2363 (pass_lower_vector): Provide PROP_gimple_lvec.
2364 (pass_lower_vector_ssa): Likewise.
2365 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
2366
2367 2013-03-21 Mark Wielaard <mjw@redhat.com>
2368
2369 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
2370
2371 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
2372
2373 * config/i386/i386.md (*movdi_internal): Disparage slightly
2374 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
2375 conversion alternatives.
2376
2377 2013-03-21 Jakub Jelinek <jakub@redhat.com>
2378
2379 PR middle-end/48087
2380 * diagnostic.def (DK_WERROR): New kind.
2381 * diagnostic.h (werrorcount): Define.
2382 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
2383 promoted to DK_ERROR, increment DK_WERROR counter instead of
2384 DK_ERROR counter.
2385 * toplev.c (toplev_main): Call print_ignored_options even if
2386 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
2387 even if just werrorcount is non-zero.
2388
2389 PR debug/55608
2390 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
2391 on failure.
2392 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
2393 (string_cst_pool_decl): New function.
2394 (optimize_one_addr_into_implicit_ptr): New function.
2395 (resolve_addr_in_expr): Optimize DWARF location expression
2396 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
2397 which doesn't live in memory, but has DW_AT_location or
2398 DW_AT_const_value, or refers to a string literal, into
2399 DW_OP_GNU_implicit_pointer.
2400 (optimize_location_into_implicit_ptr): New function.
2401 (resolve_addr): If removing DW_AT_location of a variable because
2402 it was DW_OP_addr of address of the variable, but the variable doesn't
2403 live in memory, try to emit const value attribute for the initializer.
2404
2405 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
2406
2407 * tree.h (VECTOR_TYPE_P): New macro.
2408 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
2409 TYPE_MODE): Use it.
2410 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
2411 VEC_COND_EXPR cannot be lvalues.
2412 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
2413
2414 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
2415
2416 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
2417 Restrict the transformation to equal modes.
2418
2419 2013-03-21 Richard Biener <rguenther@suse.de>
2420
2421 PR tree-optimization/39326
2422 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
2423 (MEM_ANALYZABLE): Adjust.
2424 (record_mem_ref_loc): Move bitmap ops ...
2425 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
2426 unanalyzable refs, do not record locations for it.
2427 (analyze_memory_references): Allocate ref zero as shared
2428 unanalyzable ref.
2429 (refs_independent_p): Do not test for unanalyzed mems here.
2430 (ref_indep_loop_p_1): Special-case disambiguation against
2431 the unanalyzed ref.
2432 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
2433
2434 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
2435
2436 * config/arm/arm-protos.h (tune_params): Add
2437 prefer_neon_for_64bits field.
2438 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
2439 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
2440 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2441 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2442 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
2443 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2444 (arm_option_override): Handle -mneon-for-64bits new option.
2445 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
2446 (prefer_neon_for_64bits): Declare new variable.
2447 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
2448 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
2449 (arch_enabled): Handle new arch types. Remove support for onlya8
2450 and nota8.
2451 (one_cmpldi2): Use new arch names.
2452 (zero_extend<mode>di2, extend<mode>di2): Ditto.
2453 * config/arm/arm.opt (mneon-for-64bits): Add option.
2454 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
2455 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
2456 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
2457 of onlya8.
2458 * doc/invoke.texi (-mneon-for-64bits): Document.
2459
2460 2013-03-21 Richard Biener <rguenther@suse.de>
2461
2462 PR tree-optimization/39326
2463 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
2464 (sort_bbs_in_loop_postorder_cmp): New function.
2465 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
2466
2467 2013-03-21 Richard Biener <rguenther@suse.de>
2468
2469 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
2470 (vect_insert_into_interleaving_chain): Likewise.
2471 (vect_drs_dependent_in_basic_block): Inline ...
2472 (vect_slp_analyze_data_ref_dependence): ... here. New function,
2473 split out from ...
2474 (vect_analyze_data_ref_dependence): ... here. Simplify.
2475 (vect_check_interleaving): Simplify.
2476 (vect_analyze_data_ref_dependences): Likewise. Split out ...
2477 (vect_slp_analyze_data_ref_dependences): ... this new function.
2478 (dr_group_sort_cmp): New function.
2479 (vect_analyze_data_ref_accesses): Compute data-reference groups
2480 here instead of in vect_analyze_data_ref_dependence. Use
2481 a more efficient algorithm.
2482 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
2483 vect_slp_analyze_data_ref_dependences. Call
2484 vect_analyze_data_ref_accesses earlier.
2485 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2486 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
2487 (vect_slp_analyze_data_ref_dependences): New prototype.
2488
2489 2013-03-21 Richard Biener <rguenther@suse.de>
2490
2491 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
2492 ref is stored in the loop.
2493 (find_refs_for_sm): Walk only over all stores.
2494 (store_motion_loop): Allocate from lim_bitmap_obstack.
2495 (store_motion): Likewise.
2496
2497 2013-03-21 Richard Biener <rguenther@suse.de>
2498
2499 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
2500 Update virtual SSA form.
2501
2502 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2503
2504 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
2505 * configure: Regenerate.
2506 * config.in: Regenerate.
2507 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
2508 if !HAVE_LD_EH_FRAME_CIEV3.
2509
2510 2013-03-21 Richard Biener <rguenther@suse.de>
2511
2512 * tree-cfg.c (verify_expr_no_block): New function.
2513 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
2514 nor DECL_VALUE_EXPR have locations with associated blocks.
2515 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
2516 (clear_unused_block_pointer): Remove code dealing with
2517 blocks in DECL_DEBUG_EXPR locations.
2518
2519 2013-03-21 Richard Biener <rguenther@suse.de>
2520
2521 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
2522 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
2523 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
2524 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
2525 instead of DECL_DEBUG_EXPR_IS_FROM.
2526 * gimplify.c (gimplify_modify_expr): Likewise.
2527 * tree-cfg.c (verify_expr_location_1): Likewise.
2528 * tree-complex.c (create_one_component_var): Likewise.
2529 * tree-sra.c (create_access_replacement): Likewise.
2530 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
2531 (clear_unused_block_pointer): Likewise.
2532 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
2533 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2534 * var-tracking.c (var_debug_decl): Likewise.
2535 (track_expr_p): Likewise.
2536 * tree-inline.c (add_local_variables): Likewise. Set
2537 DECL_HAS_DEBUG_EXPR_P after copying it.
2538 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2539 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
2540
2541 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
2542
2543 PR bootstrap/56656
2544 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
2545 * configure: Regenerate.
2546 * config.in: Regenerate.
2547 * config/i386/i386.md (*movdf_internal): Use
2548 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2549 movd instead of movq mnemonic for interunit moves.
2550 (*movdi_internal): Ditto.
2551
2552 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2553
2554 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
2555 (abd<mode>_3): New pattern.
2556 (aba<mode>_3): New pattern.
2557 (fabd<mode>_3): New pattern.
2558
2559 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2560
2561 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
2562 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
2563 occurrence of REGISTER_PREFIX as its empty string.
2564
2565 2013-03-20 Jeff Law <law@redhat.com>
2566
2567 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
2568 addititional equivalences for equality comparisons between an SSA_NAME
2569 and a constant where the SSA_NAME was set from a widening conversion.
2570
2571 2013-03-20 Walter Lee <walt@tilera.com>
2572
2573 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
2574
2575 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
2576
2577 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
2578 depending on type attribute.
2579 (*movti_internal): Ditto.
2580 (*movtf_internal): Ditto.
2581 (*movxf_internal): Ditto.
2582 (*movdf_internal): Ditto.
2583 (*movsf_internal): Ditto.
2584
2585 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
2586
2587 * config/i386/i386.md (*movti_internal): Set prefix attribute to
2588 maybe_vex for sselog1 and ssemov types.
2589 (*movdi_internal): Reorder operand constraints.
2590 (*movsi_internal): Ditto. Set prefix attribute to
2591 maybe_vex for sselog1 and ssemov types.
2592 (*movtf_internal): Set prefix attribute to maybe_vex
2593 for sselog1 and ssemov types.
2594 (*movdf_internal): Ditto. Set prefix_data16 attribute for
2595 DImode ssemov types. Reorder operand constraints.
2596 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
2597 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
2598 attribute for SImode ssemov types. Reorder operand constraints.
2599
2600 2013-03-20 Martin Jambor <mjambor@suse.cz>
2601
2602 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
2603 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
2604
2605 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
2606
2607 * config/rs6000/predicates.md (indexed_address, update_address_mem
2608 update_indexed_address_mem): New predicates.
2609 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
2610 attribute for load/store instructions.
2611 * config/rs6000/dfp.md (movsd_store): Likewise.
2612 (movsd_load): Likewise.
2613 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
2614 (unnamed HI->DI extend define_insn): Likewise.
2615 (unnamed SI->DI extend define_insn): Likewise.
2616 (unnamed QI->SI extend define_insn): Likewise.
2617 (unnamed QI->HI extend define_insn): Likewise.
2618 (unnamed HI->SI extend define_insn): Likewise.
2619 (unnamed HI->SI extend define_insn): Likewise.
2620 (extendsfdf2_fpr): Likewise.
2621 (movsi_internal1): Likewise.
2622 (movsi_internal1_single): Likewise.
2623 (movhi_internal): Likewise.
2624 (movqi_internal): Likewise.
2625 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
2626 attribute for load/store instructions.
2627 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
2628 instructions.
2629 (mov<mode>_softfloat): Likewise.
2630 (mov<mode>_hardfloat32): Likewise.
2631 (mov<mode>_hardfloat64): Likewise.
2632 (mov<mode>_softfloat64): Likewise.
2633 (movdi_internal32): Likewise.
2634 (movdi_internal64): Likewise.
2635 (probe_stack_<mode>): Likewise.
2636
2637 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2638
2639 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
2640 floating point, and decimal floating point to reload iterator.
2641
2642 * config/rs6000/constraints.md (wl constraint): New constraints to
2643 return FLOAT_REGS if certain options are used to reduce the number
2644 of separate patterns that exist in the file.
2645 (wx constraint): Likewise.
2646 (wz constraint): Likewise.
2647
2648 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2649 -mdebug=reg, print wg, wl, wx, and wz constraints.
2650 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2651 Initialize the reload functions for 64-bit binary/decimal floating
2652 point types.
2653 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2654 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2655 create the buffer on the stack to overcome not having a 32-bit
2656 load and store.
2657 (rs6000_emit_move): Likewise.
2658 (rs6000_secondary_memory_needed_rtx): Likewise.
2659 (rs6000_alloc_sdmode_stack_slot): Likewise.
2660 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2661 via xxlxor, just like DFmode 0.0.
2662
2663 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
2664 define as 1 if we are running on a power7 or newer.
2665 (enum r6000_reg_class_enum): Add new constraints.
2666
2667 * config/rs6000/dfp.md (movsd): Delete, combine with binary
2668 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
2669 with other moves by using conditional constraits (wg). Use LFIWZX
2670 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
2671 (movsd splitter): Likewise.
2672 (movsd_hardfloat): Likewise.
2673 (movsd_softfloat): Likewise.
2674
2675 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
2676 binary and decimal floating point moves.
2677 (fmove_ok): New attributes to combine binary and decimal floating
2678 point moves, and to combine power6x (mfpgpr) moves along normal
2679 floating moves.
2680 (real_value_to_target): Likewise.
2681 (f32_lr): Likewise.
2682 (f32_lm): Likewise.
2683 (f32_li): Likewise.
2684 (f32_sr): Likewise.
2685 (f32_sm): Likewise.
2686 (f32_si): Likewise.
2687 (movsf): Combine binary and decimal floating point moves. Combine
2688 power6x (mfpgpr) moves with other moves by using conditional
2689 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
2690 (mov<mode> for SFmode/SDmode); Likewise.
2691 (SFmode/SDmode splitters): Likewise.
2692 (movsf_hardfloat): Likewise.
2693 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
2694 (movsf_softfloat): Likewise.
2695 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
2696
2697 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
2698 wx and wz constraints.
2699
2700 * config/rs6000/constraints.md (wg constraint): New constraint to
2701 return FLOAT_REGS if -mmfpgpr (power6x) was used.
2702
2703 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
2704 constraint.
2705
2706 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2707 -mdebug=reg, print wg, wl, wx, and wz constraints.
2708 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2709 Initialize the reload functions for 64-bit binary/decimal floating
2710 point types.
2711 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2712 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2713 create the buffer on the stack to overcome not having a 32-bit
2714 load and store.
2715 (rs6000_emit_move): Likewise.
2716 (rs6000_secondary_memory_needed_rtx): Likewise.
2717 (rs6000_alloc_sdmode_stack_slot): Likewise.
2718 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2719 via xxlxor, just like DFmode 0.0.
2720
2721 * config/rs6000/dfp.md (movdd): Delete, combine with binary
2722 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
2723 with other moves by using conditional constraits (wg). Use LFIWZX
2724 and STFIWX for loading SDmode on power7.
2725 (movdd splitters): Likewise.
2726 (movdd_hardfloat32): Likewise.
2727 (movdd_softfloat32): Likewise.
2728 (movdd_hardfloat64_mfpgpr): Likewise.
2729 (movdd_hardfloat64): Likewise.
2730 (movdd_softfloat64): Likewise.
2731
2732 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
2733 64-bit binary and decimal floating point moves.
2734 (FMOVE64X): Likewise.
2735 (movdf): Combine 64-bit binary and decimal floating point moves.
2736 Combine power6x (mfpgpr) moves with other moves by using
2737 conditional constraits (wg).
2738 (mov<mode> for DFmode/DDmode): Likewise.
2739 (DFmode/DDmode splitters): Likewise.
2740 (movdf_hardfloat32): Likewise.
2741 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
2742 (movdf_softfloat32): Likewise.
2743 (movdf_hardfloat64_mfpgpr): Likewise.
2744 (movdf_hardfloat64): Likewise.
2745 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
2746 (movdf_softfloat64): Likewise.
2747 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
2748 (reload_<mode>_load): Move to later in the file so they aren't in
2749 the middle of the floating point move insns.
2750 (reload_<mode>_store): Likewise.
2751
2752 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
2753 constraint.
2754
2755 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
2756 constraint if -mdebug=reg.
2757 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
2758 Enable using dd reload support if needed.
2759
2760 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
2761 binary and decimal floating point moves in rs6000.md.
2762 (movtd_internal): Likewise.
2763
2764 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
2765 decimal floating point moves.
2766 (movtf): Likewise.
2767 (movtf_internal): Likewise.
2768 (mov<mode>_internal, TDmode/TFmode): Likewise.
2769 (movtf_softfloat): Likewise.
2770 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
2771
2772 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
2773 movdi_internal64, using wg constraint for move direct operations.
2774 (movdi_internal64): Likewise.
2775
2776 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
2777 MODES_TIEABLE_P for selected modes. Print the numerical value of
2778 the various virtual registers. Use GPR/FPR first/last values,
2779 instead of hard coding the register numbers. Print which modes
2780 have reload functions registered.
2781 (rs6000_option_override_internal): If -mdebug=reg, trace the options
2782 settings before/after setting cpu, target and subtarget settings.
2783 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
2784 and for secondary reload failures in rs6000_secondary_reload_inner.
2785 (rs6000_secondary_reload_fail): Likewise.
2786 (rs6000_secondary_reload_inner): Likewise.
2787
2788 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
2789 macros for first/last GPR and FPR registers.
2790 (LAST_GPR_REGNO): Likewise.
2791 (FIRST_FPR_REGNO): Likewise.
2792 (LAST_FPR_REGNO): Likewise.
2793
2794 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
2795 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
2796 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
2797 (vcond<mode><mode>): Likewise.
2798 (vcondu<mode><mode>): Likewise.
2799 (vector_gtu<mode>): Likewise.
2800 (vector_gte<mode>): Likewise.
2801 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
2802 to prevent the compiler from converting DImode operations to TImode.
2803 (ior<mode>3): Likewise.
2804 (and<mode>3): Likewise.
2805 (one_cmpl<mode>2): Likewise.
2806 (nor<mode>3): Likewise.
2807 (andc<mode>3): Likewise.
2808
2809 * config/rs6000/constraints.md (wt constraint): New constraint
2810 that returns VSX_REGS if TImode is allowed in VSX registers.
2811
2812 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
2813 constant under VSX.
2814
2815 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
2816 similar to TImode, but it is restricted to being in the GPRs.
2817
2818 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
2819 TImode to occupy a single VSX register.
2820
2821 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
2822 -mvsx-timode for power7/power8.
2823 (power7 cpu): Likewise.
2824 (power8 cpu): Likewise.
2825
2826 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
2827 sure that TFmode/TDmode take up two registers if they are ever
2828 allowed in the upper VSX registers.
2829 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
2830 registers.
2831 (rs6000_init_hard_regno_mode_ok): Likewise.
2832 (rs6000_debug_reg_global): Add debugging for PTImode and wt
2833 constraint. Print if LRA is turned on.
2834 (rs6000_option_override_internal): Give an error if -mvsx-timode
2835 and VSX is not enabled.
2836 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
2837 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
2838 to reg+offset addressing. Use PTImode when checking offset
2839 addresses for validity.
2840 (reg_offset_addressing_ok_p): Likewise.
2841 (rs6000_legitimate_offset_address_p): Likewise.
2842 (rs6000_legitimize_address): Likewise.
2843 (rs6000_legitimize_reload_address): Likewise.
2844 (rs6000_legitimate_address_p): Likewise.
2845 (rs6000_eliminate_indexed_memrefs): Likewise.
2846 (rs6000_emit_move): Likewise.
2847 (rs6000_secondary_reload): Likewise.
2848 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
2849 reloads to fpr registers to continue to use reg+offset addressing,
2850 but 64-bit reloads to altivec registers need reg+reg addressing.
2851 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
2852 it. Treat LO_SUM like a PLUS operation.
2853 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
2854 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
2855 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
2856 registers to share a register with a smaller sized type, since VSX
2857 puts scalars in the upper 64-bits.
2858 (print_operand): Add support for PTImode.
2859 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
2860 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
2861 registers, but don't have arithmetic support.
2862 (rs6000_memory_move_cost): Add test for VSX.
2863 (rs6000_opt_masks): Add -mvsx-timode.
2864
2865 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
2866 for TImode.
2867 (VSs): Likewise.
2868 (VSr): Use wt constraint for TImode.
2869 (VSv): Drop TImode support.
2870 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
2871 (vsx_movti_64bit): Likewise.
2872 (vsx_movti_32bit): Likewise.
2873 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
2874 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
2875 one '?' on the appropriate output constraint. Do not allow TImode
2876 logical operations on 32-bit systems.
2877 (vsx_ior<mode>3): Likewise.
2878 (vsx_xor<mode>3): Likewise.
2879 (vsx_one_cmpl<mode>2): Likewise.
2880 (vsx_nor<mode>3): Likewise.
2881 (vsx_andc<mode>3): Likewise.
2882 (vsx_concat_<mode>): Likewise.
2883 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
2884
2885 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
2886 OPTION_MASK_VSX_TIMODE.
2887 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
2888 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
2889
2890 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
2891 (TI2 iterator): New iterator for TImode, PTImode.
2892 (wd mode attribute): Add values for vector types.
2893 (movti_string): Replace TI move operations with operations for TImode
2894 and PTImode. Add support for TImode being allowed in VSX registers.
2895 (mov<mode>_string, TImode/PTImode): Likewise.
2896 (movti_ppc64): Likewise.
2897 (mov<mode>_ppc64, TImode/PTImode): Likewise.
2898 (TI mode splitters): Likewise.
2899
2900 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
2901 constraint.
2902
2903 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
2904
2905 PR tree-optimization/56355
2906 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
2907 Also handle integers with undefined overflow.
2908
2909 2013-03-20 Catherine Moore <clm@codesourcery.com>
2910 Maciej W. Rozycki <macro@codesourcery.com>
2911 Tom de Vries <tom@codesourcery.com>
2912 Nathan Sidwell <nathan@codesourcery.com>
2913 Iain Sandoe <iain@codesourcery.com>
2914 Nathan Froyd <froydnj@codesourcery.com>
2915 Chao-ying Fu <fu@mips.com>
2916
2917 * doc/extend.texi: (micromips, nomicromips, nocompression):
2918 Document new function attributes.
2919 * doc/invoke.texi (minterlink-compressed, mmicromips,
2920 m14k, m14ke, m14kec): Document new options.
2921 (minterlink-mips16): Update documentation.
2922 * doc/md.texi (ZC, ZD): Document new constraints.
2923 * configure.ac (gcc_cv_as_micromips): Check if linker
2924 supports the .set micromips directive.
2925 * configure: Regenerate.
2926 * config.in: Regenerate.
2927 * config/mips/mips-tables.opt: Regenerate.
2928 * config/mips/micromips.md: New file.
2929 * constraints.md (ZC, ZD): New constraints.
2930 * config/mips/predicates.md (movep_src_register): New predicate.
2931 (movep_src_operand): New predicate.
2932 (non_volatile_mem_operand): New predicate.
2933 * config/mips/mips.md (multimem): New type.
2934 (length): Differentiate between 17-bit and 18-bit branch offsets.
2935 (MOVEP1, MOVEP2): New mode iterator.
2936 (mov_<load>l): Use ZC constraint.
2937 (mov_<load>r): Likewise.
2938 (mov_<store>l): Likewise.
2939 (mov_<store>r): Likewise.
2940 (*branch_equality<mode>_inverted): Add microMIPS support.
2941 (*branch_equality<mode>): Likewise.
2942 (*jump_absolute): Likewise.
2943 (indirect_jump_<mode>): Likewise.
2944 (tablejump_<mode>): Likewise.
2945 (<optab>_internal): Likewise.
2946 (sibcall_internal): Likewise.
2947 (sibcall_value_internal): Likewise.
2948 (prefetch): Use constraint ZD.
2949 * config/mips/mips.opt (minterlink-compressed): New option.
2950 (minterlink-mips16): Now an alias for minterlink-compressed.
2951 (mmicromips): New option.
2952 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2953 (compare_and_swap_12): Likewise.
2954 (sync_add<mode>): Likewise.
2955 (sync_<optab>_12): Likewise.
2956 (sync_old_<optab>_12): Likewise.
2957 (sync_new_<optab>_12): Likewise.
2958 (sync_nand_12): Likewise.
2959 (sync_old_nand_12): Likewise.
2960 (sync_new_nand_12): Likewise.
2961 (sync_sub<mode>): Likewise.
2962 (sync_old_add<mode>): Likewise.
2963 (sync_old_sub<mode>): Likewise.
2964 (sync_new_add<mode>): Likewise.
2965 (sync_new_sub<mode>): Likewise.
2966 (sync_<optab><mode>): Likewise.
2967 (sync_old_<optab><mode>): Likewise.
2968 (sync_new_<optab><mode>): Likewise.
2969 (sync_nand<mode>): Likewise.
2970 (sync_old_nand<mode>): Likewise.
2971 (sync_new_nand<mode>): Likewise.
2972 (sync_lock_test_and_set<mode>): Likewise.
2973 (test_and_set_12): Likewise.
2974 (atomic_compare_and_swap<mode>): Likewise.
2975 (atomic_exchange<mode>_llsc): Likewise.
2976 (atomic_fetch_add<mode>_llsc): Likewise.
2977 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2978 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2979 (umips_save_restore_pattern_p): Likewise.
2980 (umips_load_store_pair_p): Likewise.
2981 (umips_output_load_store_pair): Likewise.
2982 (umips_movep_target_p): Likewise.
2983 (umips_12bit_offset_address_p): Likewise.
2984 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2985 (mips_base_mips16): Rename this...
2986 (mips_base_compression_flags): ...to this. Update all uses.
2987 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2988 (mips_mips16_decl_p): Delete.
2989 (mips_nomips16_decl_p): Delete.
2990 (mips_get_compress_on_flags): New function.
2991 (mips_get_compress_off_flags): New function.
2992 (mips_get_compress_mode): New function.
2993 (mips_get_compress_on_name): New function.
2994 (mips_get_compress_off_name): New function.
2995 (mips_insert_attributes): Support multiple compression types.
2996 (mips_merge_decl_attributes): Likewise.
2997 (umips_12bit_offset_address_p): New function.
2998 (mips_start_function_definition): Emit .set micromips directive.
2999 (mips_call_may_need_jalx_p): New function.
3000 (mips_function_ok_for_sibcall): Add microMIPS support.
3001 (mips_print_operand_punctuation): Support short delay slots and
3002 compact jumps.
3003 (umips_swm_mask, umips_swm_encoding): New.
3004 (umips_build_save_restore): New function.
3005 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3006 (was_mips16_p): Remove.
3007 (old_compression_mode): New.
3008 (mips_set_compression_mode): New function.
3009 (mips_set_current_function): Add microMIPS support.
3010 (mips_option_override): Likewise.
3011 (umips_save_restore_pattern_p): New function.
3012 (umips_output_save_restore): New function.
3013 (umips_load_store_pair_p_1): New function.
3014 (umips_load_store_pair_p): New function.
3015 (umips_output_load_store_pair_1): New function.
3016 (umips_output_load_store_pair): New function.
3017 (umips_movep_target_p) New function.
3018 (mips_prepare_pch_save): Add microMIPS support.
3019 * config/mips/mips.h (TARGET_COMPRESSION): New.
3020 (TARGET_CPU_CPP_BUILTINS): Update macro
3021 to use new compression flags and to support microMIPS.
3022 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3023 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3024 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3025 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3026 (ASM_SPEC): Support mmicromips and mno-micromips.
3027 (M16STORE_REG_P): New macro.
3028 (MIPS_CALL): Support TARGET_MICROMIPS.
3029 (MICROMIPS_J): New macro.
3030 (mips_base_mips16): Rename this...
3031 (mips_base_compression_flags): ...to this.
3032 (UMIPS_12BIT_OFFSET_P): New macro.
3033 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3034 (MULTILIB_DIRNAMES): Likewise.
3035 2013-03-20 Richard Biener <rguenther@suse.de>
3036
3037 PR tree-optimization/56661
3038 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
3039 the result does not have to be distinct.
3040
3041 2013-03-20 Richard Biener <rguenther@suse.de>
3042
3043 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
3044 remap_gimple_op_r.
3045
3046 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3047 Steven Bosscher <steven@gcc.gnu.org>
3048
3049 PR rtl-optimization/56605
3050 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
3051
3052 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
3053
3054 PR bootstrap/56656
3055 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
3056 that require movd instead of movq.
3057
3058 2013-03-20 Richard Biener <rguenther@suse.de>
3059
3060 * tree-ssa-structalias.c (struct variable_info): Add pointer
3061 to the first field of an aggregate with sub-vars. Make
3062 this and the pointer to the next subfield its ID.
3063 (vi_next): New function.
3064 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
3065 storedanything_id, integer_id): Increment by one.
3066 (new_var_info, get_call_vi, lookup_call_clobber_vi,
3067 get_call_clobber_vi): Adjust.
3068 (solution_set_expand): Simplify and speedup.
3069 (solution_set_add): Inline into ...
3070 (set_union_with_increment): ... this. Adjust accordingly.
3071 (do_sd_constraint): Likewise.
3072 (do_ds_constraint): Likewise.
3073 (do_complex_constraint): Simplify.
3074 (build_pred_graph): Adjust.
3075 (solve_graph): Likewise. Simplify and speedup.
3076 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
3077 get_constraint_for_component_ref, get_constraint_for_1,
3078 first_vi_for_offset, first_or_preceding_vi_for_offset,
3079 create_function_info_for, create_variable_info_for_1,
3080 create_variable_info_for, intra_create_variable_infos): Adjust.
3081 (init_base_vars): Push NULL for ID zero.
3082 (compute_points_to_sets): Adjust.
3083
3084 2013-03-20 Richard Biener <rguenther@suse.de>
3085
3086 * cfgloop.c (verify_loop_structure): Streamline and avoid
3087 ICEing on corrupt loop tree.
3088 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
3089 loop tree.
3090
3091 2013-03-20 Richard Biener <rguenther@suse.de>
3092
3093 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
3094 check whether an SSA update is needed.
3095
3096 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
3097
3098 * config/mips/constraints.md (T): Rename to...
3099 (Yf): ...this.
3100 (U): Rename to...
3101 (Yd): ...this.
3102 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
3103 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
3104
3105 2013-03-19 Ian Bolton <ian.bolton@arm.com>
3106
3107 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
3108 (*subsi3_carryin_uxtw): Likewise.
3109
3110 2013-03-19 Ian Bolton <ian.bolton@arm.com>
3111
3112 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
3113 (*rorsi3_insn_uxtw): Likewise.
3114
3115 2013-03-19 Ian Bolton <ian.bolton@arm.com>
3116
3117 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
3118 (*extrsi5_insn_uxtw): Likewise.
3119
3120 2013-03-19 Richard Biener <rguenther@suse.de>
3121
3122 PR tree-optimization/56273
3123 * passes.c (init_optimization_passes): Move second VRP after DOM.
3124
3125 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
3126
3127 * config/i386/i386.md (*movti_internal): Merge from
3128 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
3129 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
3130 nox64 isa attributes.
3131
3132 2013-03-18 Richard Biener <rguenther@suse.de>
3133
3134 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
3135 (unite): Likewise.
3136 (merge_node_constraints): Likewise.
3137 (build_succ_graph): Likewise.
3138 (valid_graph_edge): Inline into single caller.
3139 (unify_nodes): Likewise. Use bitmap_set_bit return value
3140 and cache varinfo.
3141 (scc_visit): Fix formatting and variable use.
3142 (do_sd_constraint): Use gcc_checking_assert.
3143 (do_ds_constraint): Likewise.
3144 (do_complex_constraint): Likewise.
3145 (condense_visit): Likewise. Cleanup.
3146 (dump_pred_graph): New function.
3147 (perform_var_substitution): Dump the pred-graph before
3148 variable substitution.
3149 (find_equivalent_node): Use gcc_checking_assert.
3150 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
3151
3152 2013-03-18 Richard Biener <rguenther@suse.de>
3153
3154 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3155 Remove cond_expr_stmt_list argument and do not gimplify the
3156 built expression.
3157 (vect_loop_versioning): Adjust.
3158 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3159 Cleanup to use less temporaries.
3160 (vect_create_data_ref_ptr): Cleanup.
3161
3162 2013-03-18 Jakub Jelinek <jakub@redhat.com>
3163
3164 PR tree-optimization/56635
3165 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
3166 require types_compatible_p types.
3167
3168 2013-03-18 Nick Clifton <nickc@redhat.com>
3169
3170 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
3171 spurious backslash.
3172
3173 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
3174 Add missing line to comment describing function.
3175
3176 2013-03-18 Richard Biener <rguenther@suse.de>
3177
3178 PR tree-optimization/56210
3179 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3180 Handle string / character search functions.
3181 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3182
3183 2013-03-18 Richard Biener <rguenther@suse.de>
3184
3185 PR middle-end/56483
3186 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
3187 and implement properly.
3188 * gimple.h (gimple_cond_single_var_p): Remove.
3189
3190 2013-03-18 Richard Biener <rguenther@suse.de>
3191
3192 * tree-data-ref.h (find_data_references_in_loop): Declare.
3193 * tree-data-ref.c (get_references_in_stmt): Use a stack
3194 vector pre-allocated in the callers.
3195 (find_data_references_in_stmt): Adjust.
3196 (graphite_find_data_references_in_stmt): Likewise.
3197 (create_rdg_vertices): Likewise.
3198 (find_data_references_in_loop): Export.
3199 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
3200 Compute dependences here...
3201 (vect_analyze_data_refs): ...not here. When we encounter
3202 a non-vectorizable data reference in basic-block vectorization
3203 truncate the data reference vector. Do not bother to
3204 fixup data-dependence information for gather loads.
3205 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
3206 of data references, as reported.
3207
3208 2013-03-18 Richard Biener <rguenther@suse.de>
3209
3210 PR tree-optimization/3713
3211 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
3212 has_constants and expr.
3213 (stmt_has_constants): Properly valueize SSA names when deciding
3214 whether the stmt has constants.
3215
3216 2013-03-18 Richard Biener <rguenther@suse.de>
3217
3218 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
3219 whole function when there is nothing to do.
3220 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
3221 * tree-vectorizer.c (vectorize_loops): Update virtual and
3222 loop-closed SSA once.
3223 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
3224
3225 2013-03-18 Richard Biener <rguenther@suse.de>
3226
3227 PR middle-end/56113
3228 * domwalk.c (bb_postorder): New global static.
3229 (cmp_bb_postorder): New function.
3230 (walk_dominator_tree): Replace scheme imposing an order for
3231 visiting dominator sons by one sorting them at the time they
3232 are pushed on the stack.
3233
3234 2013-03-18 Richard Biener <rguenther@suse.de>
3235
3236 PR tree-optimization/39326
3237 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
3238 (struct mem_ref): Replace mem member with ao_ref typed member.
3239 (MEM_ANALYZABLE): Adjust.
3240 (memref_eq): Likewise.
3241 (mem_ref_alloc): Likewise.
3242 (gather_mem_refs_stmt): Likewise.
3243 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
3244 (execute_sm_if_changed_flag_set): Adjust.
3245 (execute_sm): Likewise.
3246 (ref_always_accessed_p): Likewise.
3247 (refs_independent_p): Likewise.
3248 (can_sm_ref_p): Likewise.
3249
3250 2013-03-18 Jakub Jelinek <jakub@redhat.com>
3251
3252 PR c/56566
3253 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
3254 return 1 even for !unsignedp.
3255
3256 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3257
3258 * config/i386/i386.md (isa): Add x64 and nox64.
3259 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
3260 (*pushtf): Enable *roF alternative for x64 isa only.
3261 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
3262 mode attribute of integer alternatives to DImode for TARGET_64BIT.
3263 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
3264 (*movtf_internal): Merge from *movtf_internal_rex64 and
3265 *movtf_internal_sse. Use x64 and nox64 isa attributes.
3266 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
3267 nox64 isa attributes.
3268 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
3269 nox64 isa attributes.
3270 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
3271
3272 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3273
3274 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3275
3276 2013-03-17 Jakub Jelinek <jakub@redhat.com>
3277
3278 PR target/56640
3279 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
3280 class names. Remove trailing comma after "ALL_REGS".
3281
3282 2013-03-16 Jan Hubicka <jh@suse.cz>
3283
3284 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
3285 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
3286 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
3287 of cgraph_get_create_node.
3288 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3289
3290 2013-03-16 Jason Merrill <jason@redhat.com>
3291
3292 PR debug/49090
3293 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
3294 with DW_AT_default_value.
3295
3296 2013-03-16 Jakub Jelinek <jakub@redhat.com>
3297
3298 * BASE-VER: Set to 4.9.0.
3299
3300 2013-03-14 Andi Kleen <ak@linux.intel.com>
3301
3302 PR target/56619
3303 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
3304 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
3305 Document _x* TSX intrinsics.
3306
3307 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
3308 David Holsgrove <david.holsgrove@xilinx.com>
3309
3310 * configure.ac: Add MicroBlaze TLS support detection.
3311 * configure: Regenerate.
3312 * config/microblaze/microblaze-protos.h
3313 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
3314 symbol_mentioned_p, label_mentioned_p): Add prototypes.
3315 * config/microblaze/microblaze.c (microblaze_address_type): Add
3316 ADDRESS_TLS and tls_reloc address types.
3317 (microblaze_address_info): Add tls_reloc.
3318 (TARGET_HAVE_TLS): Define.
3319 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
3320 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
3321 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
3322 load_tls_operand, microblaze_call_tls_get_addr,
3323 microblaze_legitimize_tls_address): New functions.
3324 (microblaze_classify_unspec): Handle UNSPEC_TLS.
3325 (get_base_reg): Use microblaze_tls_symbol_p.
3326 (microblaze_classify_address): Handle TLS.
3327 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
3328 label_mentioned_p and microblaze_tls_referenced_p.
3329 (microblaze_legitimize_address): Handle TLS.
3330 (microblaze_address_insns): Handle ADDRESS_TLS.
3331 (pic_address_needs_scratch): Handle TLS.
3332 (print_operand_address): Handle TLS.
3333 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
3334 (microblaze_expand_move): Handle TLS.
3335 (microblaze_legitimate_constant_p): Check
3336 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
3337 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3338 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
3339 (PIC_OFFSET_TABLE_REGNUM): Set.
3340 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
3341 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
3342 (addsi3, movsi_internal2, movdf_internal): Update constraints
3343 * config/microblaze/predicates.md (arith_plus_operand): Define
3344 (move_operand): Redefine as move_src_operand,
3345 check microblaze_tls_referenced_p.
3346
3347 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3348
3349 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
3350 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
3351
3352 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3353
3354 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
3355 CC mode for AND.
3356
3357 2013-03-14 Jakub Jelinek <jakub@redhat.com>
3358
3359 PR tree-optimization/53265
3360 * common.opt (Waggressive-loop-optimizations): New option.
3361 * tree-ssa-loop-niter.c: Include tree-pass.h.
3362 (do_warn_aggressive_loop_optimizations): New function.
3363 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
3364 if number_of_latch_executions returned constant.
3365 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
3366 early. If number_of_latch_executions returned constant, set
3367 nb_iterations_upper_bound back to it.
3368 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
3369 field.
3370 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
3371 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
3372
3373 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
3374 (MULTILIB_OSDIRNAMES): Set.
3375 * genmultilib: If defaultosdirname doesn't start with :: , set
3376 defaultosdirname2 instead, clear it and emit two . multilib_raw
3377 entries instead of just one.
3378
3379 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
3380
3381 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3382 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
3383 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3384 (SUBTARGET_OVERRIDE_OPTIONS): New.
3385
3386 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
3387
3388 PR target/49880
3389 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
3390 (musermode): Convert to Var(TARGET_USERMODE).
3391 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
3392 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
3393 * config/sh/sh.c (sh_option_override): Use
3394 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
3395 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
3396 condition.
3397 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
3398 TARGET_SH4.
3399 (udivsi3_i4_single, divsi3_i4_single): Use
3400 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
3401
3402 2013-03-13 Dave Korn <dave.korn.cygwin@....>
3403
3404 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
3405 default setting.
3406
3407 2013-03-13 Richard Biener <rguenther@suse.de>
3408
3409 PR tree-optimization/56608
3410 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
3411 calls when vectorizing basic-blocks.
3412
3413 2013-03-13 Jakub Jelinek <jakub@redhat.com>
3414
3415 PR plugins/45078
3416 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
3417 tm_file.
3418
3419 2013-03-12 Jakub Jelinek <jakub@redhat.com>
3420
3421 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
3422
3423 2013-03-11 Jan Hubicka <jh@suse.cz>
3424
3425 PR lto/56557
3426 * lto-streamer-out.c (output_symbol_p): Skip references from
3427 constructors of external variables.
3428
3429 2013-03-11 Jan Hubicka <jh@suse.cz>
3430
3431 PR middle-end/56571
3432 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
3433 from pseudos.
3434 * emit-rtl.c (verify_rtx_sharing): Likewise.
3435 (copy_insn_1): Likewise.
3436 * rtl.c (copy_rtx): Likewise.
3437
3438 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
3439
3440 PR target/56591
3441 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
3442 output_operand_lossage message.
3443
3444 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
3445
3446 PR target/56470
3447 * arm.c (shift_op): Validate RTL pattern on the fly.
3448 (arm_print_operand, case 'S'): Don't use shift_operator to validate
3449 the RTL.
3450
3451 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3452
3453 PR target/56347
3454 * config/pa/pa.md (call_value): Check for calls to powf and direct to
3455 new call patterns that clobber %fr12.
3456 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
3457 split and postreload patterns.
3458 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
3459 registers %fr12 and %fr12R as call used.
3460
3461 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
3462
3463 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
3464 (canon_address, record_store, replace_read, check_mem_read_rtx,
3465 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
3466 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
3467 rest_of_handle_dse): Likewise.
3468
3469 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3470
3471 PR middle-end/56524
3472 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
3473 Add base_optabs.
3474 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
3475 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
3476 (save_optabs_if_changed): Replace with...
3477 (init_tree_optimization_optabs): ...this.
3478 * optabs.c (save_optabs_if_changed): Rename to...
3479 (init_tree_optimization_optabs): ...this. Take the optimization node
3480 as argument. Do nothing if the base optabs are already correct.
3481 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
3482 to recompute optabs.
3483 * function.h (function): Remove optabs field.
3484 * function.c (invoke_set_current_function_hook): Call
3485 init_tree_optimization_optabs. Use the result to initialize
3486 this_fn_optabs.
3487
3488 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
3489
3490 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
3491 if GTMA_HAS_NO_INSTRUMENTATION.
3492 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
3493 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
3494 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
3495 * gimple-pretty-print.c (dump_gimple_transaction): Handle
3496 GTMA_HAS_NO_INSTRUMENTATION.
3497
3498 2013-03-08 Jakub Jelinek <jakub@redhat.com>
3499
3500 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
3501 libasan_preinit.o.
3502
3503 2013-03-08 Marek Polacek <polacek@redhat.com>
3504 Jakub Jelinek <jakub@redhat.com>
3505
3506 PR tree-optimization/56478
3507 * predict.c (is_comparison_with_loop_invariant_p): Change the
3508 type of loop_step to tree.
3509 (predict_loops): Adjust.
3510 (predict_iv_comparison): Perform the computations on double_ints.
3511
3512 2013-03-08 Richard Biener <rguenther@suse.de>
3513
3514 PR tree-optimization/56570
3515 * tree-cfg.c (verify_expr_location_1): Verify locations for
3516 DECL_DEBUG_EXPR.
3517 * tree-sra.c (create_access_replacement): Strip locations
3518 from DECL_DEBUG_EXPRs.
3519
3520 2013-03-08 Richard Biener <rguenther@suse.de>
3521
3522 * tree-inline.c (expand_call_inline): Do not associate
3523 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
3524 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
3525
3526 2013-03-08 Richard Biener <rguenther@suse.de>
3527
3528 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
3529 or block changes with -Og. Fix for location / block encoding
3530 changes and PHI arguments with locations.
3531
3532 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
3533
3534 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
3535 for all counters.
3536 (struct output_info): Likewise.
3537 (register_overhead): Remove bad gcc_assert.
3538 (bitmap_find_bit): If there is only a single bitmap element, do not
3539 count a miss as a search.
3540 (print_statistics): Update for counter type changes.
3541 (dump_bitmap_statistics): Likewise. Print headers such that they
3542 are properly lined up with the printed counters.
3543
3544 2013-03-07 Jakub Jelinek <jakub@redhat.com>
3545
3546 PR tree-optimization/56559
3547 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
3548 check that it has only a single use.
3549
3550 2013-03-07 Richard Biener <rguenther@suse.de>
3551
3552 * doc/invoke.texi (fwhole-program): Discourage use in combination
3553 with -flto.
3554
3555 2013-03-06 Jakub Jelinek <jakub@redhat.com>
3556
3557 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
3558
3559 PR tree-optimization/56539
3560 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
3561 instead of GSI_CONTINUE_LINKING as last argument to
3562 force_gimple_operand_gsi. Adjust function comment.
3563
3564 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
3565 aarch64-cores.def.
3566
3567 PR middle-end/56548
3568 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
3569 promoted mode, convert the result back to the original mode.
3570
3571 2013-03-06 Richard Biener <rguenther@suse.de>
3572
3573 PR middle-end/56294
3574 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
3575 (insert_updated_phi_nodes_compare_uids): New function.
3576 (update_ssa): Sort symbols_to_rename after UID before
3577 traversing it to insert PHI nodes.
3578
3579 2013-03-06 Richard Biener <rguenther@suse.de>
3580
3581 PR middle-end/50494
3582 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3583 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
3584
3585 Revert
3586 2013-02-13 Richard Biener <rguenther@suse.de>
3587
3588 PR lto/50494
3589 * varasm.c (output_constant_def_1): Get the decl representing
3590 the constant as argument.
3591 (output_constant_def): Wrap output_constant_def_1.
3592 (make_decl_rtl): Use output_constant_def_1 with the decl
3593 representing the constant.
3594 (build_constant_desc): Optionally re-use a decl already
3595 representing the constant.
3596 (tree_output_constant_def): Adjust.
3597
3598 2013-03-06 Joey Ye <joey.ye@arm.com>
3599
3600 PR lto/50293
3601 * gcc.c (convert_white_space): New function.
3602 (main): Handles white space in function name.
3603
3604 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
3605
3606 PR target/56529
3607 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
3608 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
3609 to SH_DIV_CALL_TABLE for TARGET_SH2.
3610 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
3611 list.
3612 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
3613 call-table options.
3614
3615 2013-03-05 Sterling Augustine <saugustine@google.com>
3616 Cary Coutant <ccoutant@google.com>
3617
3618 PR debug/55364
3619 * dwarf2out.c (resolve_addr): Don't call
3620 remove_loc_list_addr_table_entries a second time for the same
3621 expression.
3622
3623 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3624
3625 PR debug/56510
3626 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
3627 (avoid_complex_debug_insns): New function.
3628 (expand_debug_locations): Call it.
3629
3630 PR rtl-optimization/56484
3631 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
3632 lifetimes of hard registers on small register class machines.
3633
3634 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3635
3636 * config/microblaze/microblaze-protos.h: Rename
3637 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
3638 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
3639 fast_interrupt.
3640 (microblaze_fast_interrupt_function_p): New function.
3641 (microblaze_is_interrupt_handler): Rename to
3642 microblaze_is_interrupt_variant and add fast_interrupt check.
3643 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
3644 (save_restore_insns): Likewise.
3645 (compute_frame_size): Likewise.
3646 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
3647 (microblaze_globalize_label): Likewise.
3648 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
3649 * config/microblaze/microblaze.md: Use wrapper
3650 microblaze_is_interrupt_variant.
3651
3652 2013-03-05 Kai Tietz <ktietz@redhat.com>
3653
3654 * sdbout.c (sdbout_one_type): Switch to current function's section
3655 supporting cold/hot.
3656
3657 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3658
3659 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
3660 -mxl-reorder.
3661
3662 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3663
3664 PR middle-end/56461
3665 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
3666 if VALGRIND_GET_VBITS is defined, temporarily make object
3667 memory all defined, and restore previous valgrind addressability
3668 and definability afterwards. Free this_object at the end.
3669
3670 PR middle-end/56461
3671 * lra.c (lra): Call lra_clear_live_ranges if live_p,
3672 right before calling lra_create_live_ranges, also call it
3673 when clearing live_p. Only call lra_clear_live_ranges
3674 at the end if live_p.
3675
3676 PR middle-end/56461
3677 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
3678
3679 2013-03-05 Richard Biener <rguenther@suse.de>
3680
3681 PR tree-optimization/56521
3682 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
3683 value-id.
3684
3685 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
3686
3687 PR c++/55135
3688 * except.h (remove_unreachable_eh_regions): New prototype.
3689 * except.c (remove_eh_handler_splicer): New function, split out
3690 of remove_eh_handler.
3691 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
3692 warning about running it on many EH regions one at a time.
3693 (remove_unreachable_eh_regions_worker): New function, walk the
3694 EH tree in depth-first order and remove non-marked regions.
3695 (remove_unreachable_eh_regions): New function.
3696 * tree-eh.c (mark_reachable_handlers): New function, split out
3697 from remove_unreachable_handlers.
3698 (remove_unreachable_handlers): Use mark_reachable_handlers and
3699 remove_unreachable_eh_regions.
3700 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
3701 and remove_unreachable_eh_regions.
3702
3703 2013-03-05 Richard Biener <rguenther@suse.de>
3704
3705 PR middle-end/56525
3706 * loop-init.c (fix_loop_structure): Remove loops in two stages,
3707 not freeing them until the end.
3708
3709 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3710
3711 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
3712
3713 2013-03-05 Richard Biener <rguenther@suse.de>
3714
3715 PR tree-optimization/56270
3716 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
3717 of loads after scheduling an SLP instance.
3718
3719 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3720
3721 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
3722 tic6x.exp.
3723 (check_gcc_parallelize): Run guality.exp as a separate job from
3724 vect.exp with unsorted.exp and $(dg_target_exps) separately from
3725 struct-layout-1.exp with stackalign.exp.
3726
3727 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
3728
3729 PR middle-end/56461
3730 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
3731 load_index sbitmap even if some bit in it isn't set.
3732
3733 PR middle-end/56461
3734 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
3735 (discover_iteration_bound_by_body_walk): Change queues to
3736 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
3737 spelling in comment. Call safe_push on queues[bound_index] directly.
3738 Release queues[queue_index] in every iteration unconditionally.
3739 Release bounds vector.
3740
3741 PR middle-end/56461
3742 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
3743 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
3744 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
3745 inner_phis vector.
3746
3747 2013-03-05 Richard Biener <rguenther@suse.de>
3748
3749 PR lto/56515
3750 * tree-inline.c (remap_blocks_to_null): New function.
3751 (expand_call_inline): When expanding a call stmt without
3752 an associated block inline remap all callee blocks to NULL.
3753
3754 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3755
3756 PR rtl-optimization/56494
3757 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
3758 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
3759 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
3760
3761 PR middle-end/56461
3762 * sel-sched-ir.c (free_sched_pools): Release
3763 succs_info_pool.stack[succs_info_pool.max_top] vectors too
3764 if succs_info_pool.max_top isn't -1.
3765
3766 PR bootstrap/56509
3767 * opts.c (opts_obstack, opts_concat): Moved to...
3768 * opts-common.c (opts_obstack, opts_concat): ... here.
3769
3770 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3771
3772 PR middle-end/56461
3773 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
3774
3775 2013-03-04 Martin Jambor <mjambor@suse.cz>
3776
3777 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
3778 all appropriate places.
3779
3780 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
3781
3782 PR tree-optimization/56424
3783 * ipa-split.c (split_function): Do not set the RSO flag if result is
3784 not by reference and its type is a register type.
3785
3786 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
3787
3788 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
3789 (microblaze_legitimate_pic_operand): Likewise
3790 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
3791 new function microblaze_legitimate_pic_operand
3792 * config/microblaze/microblaze-protos.h
3793 (microblaze_legitimate_pic_operand): Declare.
3794
3795 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3796
3797 * config/microblaze/predicates.md (call_insn_simple_operand):
3798 New predicate for supported rtx code types.
3799 * config/microblaze/microblaze.md (call_internal1): Use
3800 call_insn_simple_operand predicate.
3801
3802 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3803
3804 PR middle-end/56461
3805 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
3806 partitions.ordered_remove.
3807
3808 PR middle-end/56461
3809 * tree-vect-stmts.c (vectorizable_conversion): Don't call
3810 vec_oprnds0.create (1) for modifier == NONE.
3811
3812 PR middle-end/56461
3813 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
3814 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
3815 vec_oprnds1 right before pushing anything to it for
3816 scalar_shift_arg.
3817
3818 PR middle-end/56461
3819 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
3820 set nbbs to 0 instead of having separate code path.
3821 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
3822 instead of false as last argument if returning NULL.
3823
3824 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
3825
3826 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
3827 the attribute is now called "target" instead of "option".
3828 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
3829 * doc/tm.texi.in (Target Attributes): Likewise document the correct
3830 attribute/pragma name for TARGET_OPTION_VALID_P and
3831 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
3832 * doc/tm.texi: Regenerated.
3833
3834 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
3835
3836 * config/microblaze/microblaze.c:
3837 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
3838 * config/microblaze/microblaze.h: Add -mxl-reorder to
3839 DRIVER_SELF_SPECS.
3840 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
3841 instructions emitted if TARGET_REORDER.
3842 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
3843 or 0 for -m/-mno case, but initialises as 2 to detect default use case
3844 separately.
3845
3846 2013-03-01 Xinliang David Li <davidxl@google.com>
3847
3848 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
3849 walk length.
3850
3851 2013-03-01 Jakub Jelinek <jakub@redhat.com>
3852
3853 PR middle-end/56461
3854 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
3855 vector even when returning true. Fix up function comment formatting.
3856
3857 PR middle-end/56461
3858 * ira-build.c (ira_loop_nodes_count): New variable.
3859 (create_loop_tree_nodes): Initialize it.
3860 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
3861
3862 PR middle-end/56461
3863 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
3864 method on dr_chain and result_chain.
3865 * tree-vect-stmts.c (vectorizable_store): Only call
3866 result_chain.create if j == 0.
3867
3868 PR middle-end/56461
3869 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
3870 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
3871 before overwriting it.
3872
3873 2013-03-01 Tobias Burnus <burnus@net-b.de>
3874
3875 * doc/extended.texi (C Extensions): Change order in @menu
3876 to match @node.
3877 (Other MIPS Built-in Functions): Move last MIPS entry before
3878 "picoChip Built-in Functions".
3879 (SH Built-in Functions): Move after RX Built-in Functions.
3880 * doc/gcc.texi (Introduction): Change order in @menu
3881 to match @node.
3882 * doc/md.texi (Constraints): Ditto.
3883 * gty.texi (Type Information): Ditto.
3884 (User-provided marking routines for template types): Make
3885 subsection.
3886 * doc/invoke.texi (AArch64 Options): Move before
3887 "Adapteva Epiphany Options".
3888
3889 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3890 Jakub Jelinek <jakub@redhat.com>
3891
3892 PR sanitizer/56454
3893 * asan.c (gate_asan): Lookup no_sanitize_address instead of
3894 no_address_safety_analysis attribute.
3895 * doc/extend.texi (no_address_safety_attribute): Rename to
3896 no_sanitize_address attribute, mention no_address_safety_analysis
3897 attribute as deprecated alias.
3898
3899 2013-02-28 Jakub Jelinek <jakub@redhat.com>
3900
3901 PR middle-end/56461
3902 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
3903 type to vec<vec<tree> > *.
3904 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
3905 to be vec<tree> instead of vec<tree> *, set vec_defs
3906 to vNULL and call vec_defs.create (number_of_vects), adjust other
3907 uses of vec_defs.
3908 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
3909 vectorizable_condition): Adjust vect_get_slp_defs callers.
3910
3911 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3912
3913 * config/aarch64/aarch64.c
3914 (aarch64_float_const_representable): Remove unused variable.
3915
3916 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3917
3918 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
3919
3920 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3921
3922 * config/aarch64/aarch64-builtins.c
3923 (aarch64_init_simd_builtins): Make static.
3924
3925 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3926
3927 * config/aarch64/aarch64.c
3928 (aarch64_simd_make_constant): Make static.
3929
3930 2013-02-28 Martin Jambor <mjambor@suse.cz>
3931
3932 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
3933 with no initialization to the RHS of debug statements.
3934
3935 2013-02-28 Martin Jambor <mjambor@suse.cz>
3936
3937 PR tree-optimization/56294
3938 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
3939 Adjust dumping.
3940 (get_access_replacement): Do not call create_access_replacement.
3941 Assert a replacement exists.
3942 (get_repl_default_def_ssa_name): Create the replacement declaration
3943 itself.
3944
3945 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3946
3947 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
3948 final_end_function.
3949
3950 2013-02-28 Marek Polacek <polacek@redhat.com>
3951
3952 PR rtl-optimization/56466
3953 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
3954 if we're changing a loop.
3955 (peel_loops_completely): Likewise.
3956
3957 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
3958
3959 PR c++/55813
3960 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
3961
3962 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3963
3964 PR target/56445
3965 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
3966 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
3967 INTX_FTYPE_FX, FX_FTYPE_INTX.
3968 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
3969
3970 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3971
3972 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
3973 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
3974 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
3975 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
3976 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
3977 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
3978 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
3979 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
3980 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
3981 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
3982 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
3983 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
3984 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
3985 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
3986 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
3987 (avrxmega6): Increase max flash segments from 5 to 6.
3988 * config/avr/t-multilib: Regenerate.
3989 * config/avr/avr-tables.opt: Regenerate.
3990 * doc/avr-mmcu.texi: Regenerate.
3991
3992 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3993
3994 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
3995 (avr_device_to_arch): Rename to avr_device_to_ld.
3996 (avr_device_to_as): New prototype.
3997 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
3998 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
3999 * config/avr/driver-avr.c (avr_device_to_as): New.
4000 (avr_device_to_arch): Rename to avr_device_to_ld.
4001
4002 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4003
4004 PR middle-end/56461
4005 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
4006 method on dr_chain and result_chain.
4007
4008 PR middle-end/56461
4009 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
4010 pointer_set_destroy on not_executed_last_iteration.
4011
4012 PR middle-end/56461
4013 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
4014
4015 PR middle-end/56461
4016 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
4017 FOR_EACH_DEFINED_FUNCTION when freeing state.
4018
4019 PR middle-end/56461
4020 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
4021 pool_free.
4022 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
4023 overwriting it.
4024
4025 PR middle-end/56461
4026 * ipa-cp.c (decide_whether_version_node): Call vec_free on
4027 known_aggs[i].items and release known_aggs vector.
4028
4029 PR middle-end/56461
4030 * ipa-reference.c (propagate): Free node_info even for alias nodes.
4031
4032 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4033
4034 * config/microblaze/microblaze.c (microblaze_emit_compare):
4035 Use xor for EQ/NE comparisions.
4036 * config/microblaze/microblaze.md (cstoresf4): Add constraints
4037 (cbranchsf4): Adjust operator to comparison_operator.
4038
4039 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4040
4041 PR middle-end/56461
4042 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
4043 vector.
4044 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
4045 vec_safe_push, always update *slot.
4046 (redirect_edge_var_map_clear): Use vec_free.
4047 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
4048 (free_var_map_entry): Use vec_free.
4049 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
4050 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
4051
4052 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
4053
4054 PR middle-end/45472
4055 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
4056 when the may_trap_p bit of the exprs being merged differs.
4057 Reorder tests for speculativeness in the logical and operator.
4058
4059 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4060
4061 * incpath.c (add_standard_paths): Use reconcat instead of concat
4062 where appropriate and avoid leaking memory.
4063
4064 * opts.h: Include obstack.h.
4065 (opts_concat): New prototype.
4066 (opts_obstack): New declaration.
4067 * opts.c (opts_concat): New function.
4068 (opts_obstack): New variable.
4069 (init_options_struct): Call gcc_init_obstack on opts_obstack.
4070 (finish_options): Use opts_concat instead of concat
4071 and XOBNEWVEC instead of XNEWVEC.
4072 * opts-common.c (generate_canonical_option, decode_cmdline_option,
4073 generate_option): Likewise.
4074 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
4075 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
4076
4077 PR target/56455
4078 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
4079 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
4080
4081 2013-02-26 Jakub Jelinek <jakub@redhat.com>
4082
4083 PR middle-end/56461
4084 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
4085
4086 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4087
4088 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
4089 (arm_block_move_unaligned_straight): Likewise.
4090 (arm_adjust_block_mem): Likewise.
4091
4092 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4093
4094 PR target/48901
4095 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
4096 temp, cond and label.
4097 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
4098
4099 PR target/52500
4100 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
4101 * config/c6x/c6x.h (dbx_register_map): Update declaration.
4102
4103 PR target/52501
4104 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
4105 of prologue/epilogue functions.
4106
4107 PR target/52550
4108 * config/tilegx/tilegx.c (tilegx_expand_prologue):
4109 Remove unused variable cfa_offset.
4110 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
4111
4112 PR target/54639
4113 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
4114 type promotion to unsigned.
4115
4116 PR target/54640
4117 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
4118 for HOST_WIDE_INT of 32 bit / same size as int.
4119 (arm_block_move_unaligned_straight): Likewise.
4120 (arm_adjust_block_mem): Likewise.
4121
4122 PR target/54662
4123 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
4124 ALL_CFLAGS.
4125
4126 2013-02-26 Marek Polacek <polacek@redhat.com>
4127
4128 PR tree-optimization/56426
4129 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
4130
4131 2013-02-26 Richard Biener <rguenther@suse.de>
4132
4133 PR target/56444
4134 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
4135 unused variable loops.
4136
4137 2013-02-26 Jakub Jelinek <jakub@redhat.com>
4138
4139 PR tree-optimization/56448
4140 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
4141 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
4142 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
4143 later operands of the references, or even first operand for
4144 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
4145
4146 PR tree-optimization/56443
4147 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
4148 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
4149 to type_for_mode langhook.
4150
4151 2013-02-25 Matt Turner <mattst88@gmail.com>
4152
4153 * doc/invoke.texi: Document r4700.
4154
4155 2013-02-25 Richard Biener <rguenther@suse.de>
4156
4157 PR tree-optimization/56175
4158 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
4159 split out from ...
4160 (simplify_bitwise_binary): ... here. Also guard the conversion
4161 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
4162
4163 2013-02-25 Catherine Moore <clm@codesourcery.com>
4164
4165 Revert:
4166 2013-02-24 Catherine Moore <clm@codesourcery.com>
4167 Maciej W. Rozycki <macro@codesourcery.com>
4168 Tom de Vries <tom@codesourcery.com>
4169 Nathan Sidwell <nathan@codesourcery.com>
4170 Iain Sandoe <iain@codesourcery.com>
4171 Nathan Froyd <froydnj@codesourcery.com>
4172 Chao-ying Fu <fu@mips.com>
4173
4174 * doc/extend.texi: (micromips, nomicromips, nocompression):
4175 Document new function attributes.
4176 * doc/invoke.texi (minterlink-compressed, mmicromips,
4177 m14k, m14ke, m14kec): Document new options.
4178 (minterlink-mips16): Update documentation.
4179 * doc/md.texi (ZC, ZD): Document new constraints.
4180 * configure.ac (gcc_cv_as_micromips): Check if linker
4181 supports the .set micromips directive.
4182 * configure: Regenerate.
4183 * config.in: Regenerate.
4184 * config/mips/mips-tables.opt: Regenerate.
4185 * config/mips/micromips.md: New file.
4186 * constraints.md (ZC, AD): New constraints.
4187 * config/mips/predicates.md (movep_src_register): New predicate.
4188 (movep_src_operand): New predicate.
4189 (non_volatile_mem_operand): New predicate.
4190 * config/mips/mips.md (multimem): New type.
4191 (length): Differentiate between 17-bit and 18-bit branch offsets.
4192 (MOVEP1, MOVEP2): New mode iterator.
4193 (mov_<load>l): Use ZC constraint.
4194 (mov_<load>r): Likewise.
4195 (mov_<store>l): Likewise.
4196 (mov_<store>r): Likewise.
4197 (*branch_equality<mode>_inverted): Add microMIPS support.
4198 (*branch_equality<mode>): Likewise.
4199 (*jump_absolute): Likewise.
4200 (indirect_jump_<mode>): Likewise.
4201 (tablejump_<mode>): Likewise.
4202 (<optab>_internal): Likewise.
4203 (sibcall_internal): Likewise.
4204 (sibcall_value_internal): Likewise.
4205 (prefetch): Use constraint ZD.
4206 * config/mips/mips.opt (minterlink-compressed): New option.
4207 (minterlink-mips16): Now an alias for minterlink-compressed.
4208 (mmicromips): New option.
4209 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4210 (compare_and_swap_12): Likewise.
4211 (sync_add<mode>): Likewise.
4212 (sync_<optab>_12): Likewise.
4213 (sync_old_<optab>_12): Likewise.
4214 (sync_new_<optab>_12): Likewise.
4215 (sync_nand_12): Likewise.
4216 (sync_old_nand_12): Likewise.
4217 (sync_new_nand_12): Likewise.
4218 (sync_sub<mode>): Likewise.
4219 (sync_old_add<mode>): Likewise.
4220 (sync_old_sub<mode>): Likewise.
4221 (sync_new_add<mode>): Likewise.
4222 (sync_new_sub<mode>): Likewise.
4223 (sync_<optab><mode>): Likewise.
4224 (sync_old_<optab><mode>): Likewise.
4225 (sync_new_<optab><mode>): Likewise.
4226 (sync_nand<mode>): Likewise.
4227 (sync_old_nand<mode>): Likewise.
4228 (sync_new_nand<mode>): Likewise.
4229 (sync_lock_test_and_set<mode>): Likewise.
4230 (test_and_set_12): Likewise.
4231 (atomic_compare_and_swap<mode>): Likewise.
4232 (atomic_exchange<mode>_llsc): Likewise.
4233 (atomic_fetch_add<mode>_llsc): Likewise.
4234 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4235 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4236 (umips_save_restore_pattern_p): Likewise.
4237 (umips_load_store_pair_p): Likewise.
4238 (umips_output_load_store_pair): Likewise.
4239 (umips_movep_target_p): Likewise.
4240 (umips_12bit_offset_address_p): Likewise.
4241 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4242 (mips_base_mips16): Rename this...
4243 (mips_base_compression_flags): ...to this. Update all uses.
4244 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4245 (mips_mips16_decl_p): Delete.
4246 (mips_nomips16_decl_p): Delete.
4247 (mips_get_compress_on_flags): New function.
4248 (mips_get_compress_off_flags): New function.
4249 (mips_get_compress_mode): New function.
4250 (mips_get_compress_on_name): New function.
4251 (mips_get_compress_off_name): New function.
4252 (mips_insert_attributes): Support multiple compression types.
4253 (mips_merge_decl_attributes): Likewise.
4254 (umips_12bit_offset_address_p): New function.
4255 (mips_start_function_definition): Emit .set micromips directive.
4256 (mips_call_may_need_jalx_p): New function.
4257 (mips_function_ok_for_sibcall): Add microMIPS support.
4258 (mips_print_operand_punctuation): Support short delay slots and
4259 compact jumps.
4260 (umips_swm_mask, umips_swm_encoding): New.
4261 (umips_build_save_restore): New function.
4262 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4263 (was_mips16_p): Remove.
4264 (old_compression_mode): New.
4265 (mips_set_compression_mode): New function.
4266 (mips_set_current_function): Add microMIPS support.
4267 (mips_option_override): Likewise.
4268 (umips_save_restore_pattern_p): New function.
4269 (umips_output_save_restore): New function.
4270 (umips_load_store_pair_p_1): New function.
4271 (umips_load_store_pair_p): New function.
4272 (umips_output_load_store_pair_1): New function.
4273 (umips_output_load_store_pair): New function.
4274 (umips_movep_target_p) New function.
4275 (mips_prepare_pch_save): Add microMIPS support.
4276 * config/mips/mips.h (TARGET_COMPRESSION): New.
4277 (TARGET_CPU_CPP_BUILTINS): Update macro
4278 to use new compression flags and to support microMIPS.
4279 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4280 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4281 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4282 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4283 (ASM_SPEC): Support mmicromips and mno-micromips.
4284 (M16STORE_REG_P): New macro.
4285 (MIPS_CALL): Support TARGET_MICROMIPS.
4286 (MICROMIPS_J): New macro.
4287 (mips_base_mips16): Rename this...
4288 (mips_base_compression_flags): ...to this.
4289 (UMIPS_12BIT_OFFSET_P): New macro.
4290 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4291 (MULTILIB_DIRNAMES): Likewise.
4292
4293 2013-02-25 Tom de Vries <tom@codesourcery.com>
4294
4295 PR rtl-optimization/56131
4296 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
4297 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
4298 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
4299
4300 2013-02-25 Tobias Burnus <burnus@net-b.de>
4301
4302 * doc/invoke.texi (-fsanitize=): Move from optimization
4303 to debugging options.
4304
4305 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
4306
4307 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
4308
4309 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
4310 Alexander Monakov <amonakov@ispras.ru>
4311
4312 PR middle-end/56077
4313 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
4314 flush pending lists also on non-jumps. Adjust comment.
4315
4316 2013-02-24 Catherine Moore <clm@codesourcery.com>
4317 Maciej W. Rozycki <macro@codesourcery.com>
4318 Tom de Vries <tom@codesourcery.com>
4319 Nathan Sidwell <nathan@codesourcery.com>
4320 Iain Sandoe <iain@codesourcery.com>
4321 Nathan Froyd <froydnj@codesourcery.com>
4322 Chao-ying Fu <fu@mips.com>
4323
4324 * doc/extend.texi: (micromips, nomicromips, nocompression):
4325 Document new function attributes.
4326 * doc/invoke.texi (minterlink-compressed, mmicromips,
4327 m14k, m14ke, m14kec): Document new options.
4328 (minterlink-mips16): Update documentation.
4329 * doc/md.texi (ZC, ZD): Document new constraints.
4330 * configure.ac (gcc_cv_as_micromips): Check if linker
4331 supports the .set micromips directive.
4332 * configure: Regenerate.
4333 * config.in: Regenerate.
4334 * config/mips/mips-tables.opt: Regenerate.
4335 * config/mips/micromips.md: New file.
4336 * constraints.md (ZC, AD): New constraints.
4337 * config/mips/predicates.md (movep_src_register): New predicate.
4338 (movep_src_operand): New predicate.
4339 (non_volatile_mem_operand): New predicate.
4340 * config/mips/mips.md (multimem): New type.
4341 (length): Differentiate between 17-bit and 18-bit branch offsets.
4342 (MOVEP1, MOVEP2): New mode iterator.
4343 (mov_<load>l): Use ZC constraint.
4344 (mov_<load>r): Likewise.
4345 (mov_<store>l): Likewise.
4346 (mov_<store>r): Likewise.
4347 (*branch_equality<mode>_inverted): Add microMIPS support.
4348 (*branch_equality<mode>): Likewise.
4349 (*jump_absolute): Likewise.
4350 (indirect_jump_<mode>): Likewise.
4351 (tablejump_<mode>): Likewise.
4352 (<optab>_internal): Likewise.
4353 (sibcall_internal): Likewise.
4354 (sibcall_value_internal): Likewise.
4355 (prefetch): Use constraint ZD.
4356 * config/mips/mips.opt (minterlink-compressed): New option.
4357 (minterlink-mips16): Now an alias for minterlink-compressed.
4358 (mmicromips): New option.
4359 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4360 (compare_and_swap_12): Likewise.
4361 (sync_add<mode>): Likewise.
4362 (sync_<optab>_12): Likewise.
4363 (sync_old_<optab>_12): Likewise.
4364 (sync_new_<optab>_12): Likewise.
4365 (sync_nand_12): Likewise.
4366 (sync_old_nand_12): Likewise.
4367 (sync_new_nand_12): Likewise.
4368 (sync_sub<mode>): Likewise.
4369 (sync_old_add<mode>): Likewise.
4370 (sync_old_sub<mode>): Likewise.
4371 (sync_new_add<mode>): Likewise.
4372 (sync_new_sub<mode>): Likewise.
4373 (sync_<optab><mode>): Likewise.
4374 (sync_old_<optab><mode>): Likewise.
4375 (sync_new_<optab><mode>): Likewise.
4376 (sync_nand<mode>): Likewise.
4377 (sync_old_nand<mode>): Likewise.
4378 (sync_new_nand<mode>): Likewise.
4379 (sync_lock_test_and_set<mode>): Likewise.
4380 (test_and_set_12): Likewise.
4381 (atomic_compare_and_swap<mode>): Likewise.
4382 (atomic_exchange<mode>_llsc): Likewise.
4383 (atomic_fetch_add<mode>_llsc): Likewise.
4384 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4385 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4386 (umips_save_restore_pattern_p): Likewise.
4387 (umips_load_store_pair_p): Likewise.
4388 (umips_output_load_store_pair): Likewise.
4389 (umips_movep_target_p): Likewise.
4390 (umips_12bit_offset_address_p): Likewise.
4391 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4392 (mips_base_mips16): Rename this...
4393 (mips_base_compression_flags): ...to this. Update all uses.
4394 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4395 (mips_mips16_decl_p): Delete.
4396 (mips_nomips16_decl_p): Delete.
4397 (mips_get_compress_on_flags): New function.
4398 (mips_get_compress_off_flags): New function.
4399 (mips_get_compress_mode): New function.
4400 (mips_get_compress_on_name): New function.
4401 (mips_get_compress_off_name): New function.
4402 (mips_insert_attributes): Support multiple compression types.
4403 (mips_merge_decl_attributes): Likewise.
4404 (umips_12bit_offset_address_p): New function.
4405 (mips_start_function_definition): Emit .set micromips directive.
4406 (mips_call_may_need_jalx_p): New function.
4407 (mips_function_ok_for_sibcall): Add microMIPS support.
4408 (mips_print_operand_punctuation): Support short delay slots and
4409 compact jumps.
4410 (umips_swm_mask, umips_swm_encoding): New.
4411 (umips_build_save_restore): New function.
4412 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4413 (was_mips16_p): Remove.
4414 (old_compression_mode): New.
4415 (mips_set_compression_mode): New function.
4416 (mips_set_current_function): Add microMIPS support.
4417 (mips_option_override): Likewise.
4418 (umips_save_restore_pattern_p): New function.
4419 (umips_output_save_restore): New function.
4420 (umips_load_store_pair_p_1): New function.
4421 (umips_load_store_pair_p): New function.
4422 (umips_output_load_store_pair_1): New function.
4423 (umips_output_load_store_pair): New function.
4424 (umips_movep_target_p) New function.
4425 (mips_prepare_pch_save): Add microMIPS support.
4426 * config/mips/mips.h (TARGET_COMPRESSION): New.
4427 (TARGET_CPU_CPP_BUILTINS): Update macro
4428 to use new compression flags and to support microMIPS.
4429 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4430 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4431 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4432 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4433 (ASM_SPEC): Support mmicromips and mno-micromips.
4434 (M16STORE_REG_P): New macro.
4435 (MIPS_CALL): Support TARGET_MICROMIPS.
4436 (MICROMIPS_J): New macro.
4437 (mips_base_mips16): Rename this...
4438 (mips_base_compression_flags): ...to this.
4439 (UMIPS_12BIT_OFFSET_P): New macro.
4440 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4441 (MULTILIB_DIRNAMES): Likewise.
4442
4443 2013-02-24 Jakub Jelinek <jakub@redhat.com>
4444
4445 PR target/52555
4446 * target-globals.c (save_target_globals): For init_reg_sets and
4447 target_reinit remporarily set this_fn_optabs to this_target_optabs.
4448
4449 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
4450
4451 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4452 * config/aarch64/t-aarch64
4453 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
4454
4455 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
4456
4457 PR inline-asm/56148
4458 * lra-constraints.c (process_alt_operands): Reload operand
4459 conflicting with earlier clobber only if no more other conflicting
4460 operands.
4461
4462 2013-02-22 Jakub Jelinek <jakub@redhat.com>
4463
4464 PR sanitizer/56393
4465 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
4466 if not linking a shared library.
4467
4468 2013-02-22 Seth LaForge <sethml@google.com>
4469
4470 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
4471
4472 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
4473
4474 * config/arm/arm.md (split for extendsidi): Update condition.
4475 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
4476 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
4477 (qhs_zextenddi_cstr): Likewise.
4478
4479 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4480
4481 PR middle-end/56420
4482 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
4483 avoid signed wrapping.
4484 (expand_mult): Handle properly multiplication by
4485 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
4486 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
4487 in the compiler if coeff is HOST_WIDE_INT_MIN.
4488 (expand_divmod): Don't make ext_op1 static, change it's type to
4489 uhwi. Avoid undefined behavior in -INTVAL (op1).
4490
4491 PR rtl-optimization/50339
4492 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
4493 field.
4494 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
4495 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
4496 into splitting_ashiftrt field.
4497 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
4498 ASHIFTRT.
4499 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
4500 choices.
4501
4502 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
4503
4504 PR middle-end/56108
4505 * trans-mem.c (execute_tm_mark): Do not expand transactions that
4506 are sure to go irrevocable.
4507
4508 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
4509
4510 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
4511 scalars are valid operands.
4512
4513 2013-02-21 Martin Jambor <mjambor@suse.cz>
4514
4515 PR tree-optimization/56310
4516 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
4517 only matching indices and non-negative final offsets.
4518 (intersect_aggregates_with_edge): Pass src_idx to
4519 agg_replacements_to_vector. Pass src_idx insstead of index to
4520 intersect_with_agg_replacements.
4521
4522 2013-02-21 Martin Jambor <mjambor@suse.cz>
4523
4524 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
4525 instead of hard-wired defaults.
4526
4527 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
4528
4529 * doc/invoke.texi (MIPS Options): Update documentation of the
4530 floating-point multiply-accumulate instruction restrictions.
4531
4532 2013-02-21 Kostya Serebryany <kcc@google.com>
4533
4534 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
4535 asan_shadow_offset on x86_64 linux.
4536
4537 2013-02-21 Richard Biener <rguenther@suse.de>
4538
4539 PR tree-optimization/56415
4540 Revert
4541 2013-02-11 Richard Biener <rguenther@suse.de>
4542
4543 PR tree-optimization/56273
4544 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4545 first VRP run.
4546
4547 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4548
4549 PR bootstrap/56258
4550 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
4551 instead of @itemx.
4552
4553 PR inline-asm/56405
4554 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
4555 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
4556
4557 2013-02-20 Jan Hubicka <jh@suse.cz>
4558
4559 PR tree-optimization/56265
4560 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
4561 when target is referenced for first time.
4562
4563 2013-02-20 Richard Biener <rguenther@suse.de>
4564
4565 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
4566 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
4567 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4568 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
4569 not return anything.
4570 (rename_ssa_copies): Do not remove unused locals.
4571 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
4572 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
4573 * passes.c (execute_function_todo): Do not schedule unused locals
4574 removal if cleanup_tree_cfg did something.
4575 * tree-ssa-live.c (remove_unused_locals): Dump statistics
4576 about the number of removed locals.
4577
4578 2013-02-20 Richard Biener <rguenther@suse.de>
4579
4580 PR tree-optimization/56398
4581 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
4582
4583 2013-02-20 Martin Jambor <mjambor@suse.cz>
4584
4585 PR tree-optimization/55334
4586 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
4587 restricted pointers to arrays.
4588
4589 2013-02-20 Richard Biener <rguenther@suse.de>
4590 Jakub Jelinek <jakub@redhat.com>
4591
4592 PR tree-optimization/56396
4593 * tree-ssa-ccp.c (n_const_val): New static variable.
4594 (get_value): Return NULL for SSA names we don't have a lattice
4595 entry for.
4596 (ccp_initialize): Initialize n_const_val.
4597 * tree-ssa-copy.c (n_copy_of): New static variable.
4598 (init_copy_prop): Initialize n_copy_of.
4599 (get_value): Return NULL_TREE for SSA names we don't have a
4600 lattice entry for.
4601
4602 2013-02-20 Martin Jambor <mjambor@suse.cz>
4603
4604 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
4605
4606 2013-02-20 Richard Biener <rguenther@suse.de>
4607
4608 * genpreds.c (write_lookup_constraint): Do not compare first
4609 letter of the constraint again.
4610
4611 2013-02-20 Richard Biener <rguenther@suse.de>
4612
4613 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
4614 and ceil_log2.
4615 (get_use_iv_cost): Terminate hashtable walk when coming across
4616 an empty entry.
4617
4618 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
4619
4620 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
4621 reassociation for avx2 targets.
4622
4623 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4624
4625 * config/microblaze/microblaze.c: microblaze_has_clz = 0
4626 Add version check for v8.10.a to enable microblaze_has_clz
4627 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
4628 version and TARGET_PATTERN_COMPARE check
4629 * config/microblaze/microblaze.md: New clzsi2 instruction
4630
4631 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4632
4633 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
4634 function before branching.
4635
4636 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4637
4638 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
4639 DUMP_INSN_RTX_UID.
4640 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
4641
4642 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4643
4644 PR middle-end/55889
4645 * sel-sched.c: Include ira.h.
4646 (implicit_clobber_conflict_p): New function.
4647 (moveup_expr): Use it.
4648 * Makefile.in (sel-sched.o): Depend on ira.h.
4649
4650 2013-02-19 Richard Biener <rguenther@suse.de>
4651
4652 PR tree-optimization/56384
4653 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
4654 (vn_hash_type): Split out from ...
4655 (vn_hash_constant_with_type): ... here.
4656 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
4657 (vn_phi_eq): Compare types from vn_phi_s structure.
4658 (vn_phi_lookup): Populate vn_phi_s type.
4659 (vn_phi_insert): Likewise.
4660
4661 2013-02-19 Jakub Jelinek <jakub@redhat.com>
4662
4663 PR tree-optimization/56350
4664 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
4665 if haven't found reduction or nested cycle operand, rather than
4666 asserting we must find it.
4667
4668 PR tree-optimization/56381
4669 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
4670 to fold_build3.
4671
4672 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
4673 Jakub Jelinek <jakub@redhat.com>
4674
4675 PR target/52555
4676 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
4677 (swap_optab_enable): Same.
4678 (init_all_optabs): Use argument instead of global.
4679 * tree.h (struct tree_optimization_option): New field target_optabs.
4680 * expr.h (init_all_optabs): Add argument to prototype.
4681 (TREE_OPTIMIZATION_OPTABS): New.
4682 (save_optabs_if_changed): Protoize.
4683 * optabs.h: Declare this_fn_optabs.
4684 * optabs.c (save_optabs_if_changed): New.
4685 Declare this_fn_optabs.
4686 (init_optabs): Add argument to init_all_optabs() call.
4687 * function.c (invoke_set_current_function_hook): Handle per
4688 function optabs.
4689 * function.h (struct function): New field optabs.
4690 * config/mips/mips.c (mips_set_mips16_mode): Handle when
4691 optimization_current_node has changed.
4692 * target-globals.h (save_target_globals_default_opts): Protoize.
4693 * target-globals.c (save_target_globals_default_opts): New.
4694
4695 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4696
4697 PR target/56347
4698 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
4699 registers %fr12 and %fr12R as call used.
4700
4701 PR target/56214
4702 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
4703 and HImode, require all displacements to be an integer multiple of
4704 their mode size.
4705 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
4706 only allow QImode and HImode when reload is in progress and strict is
4707 true. Likewise for symbolic addresses. Use base14_operand to check
4708 displacements in REG+BASE addresses.
4709
4710 2013-02-18 Richard Biener <rguenther@suse.de>
4711
4712 PR tree-optimization/56366
4713 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4714 handle sign-conversion of outer-loop initial induction value.
4715
4716 2013-02-18 Richard Biener <rguenther@suse.de>
4717
4718 PR middle-end/56349
4719 * cfghooks.c (merge_blocks): If we merge a latch into another
4720 block adjust references to it.
4721 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
4722 (verify_loop_structure): Verify that a recorded latch is in fact
4723 a latch.
4724
4725 2013-02-18 Richard Biener <rguenther@suse.de>
4726
4727 PR tree-optimization/56321
4728 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
4729 order SSA name release and virtual operand unlinking.
4730
4731 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4732
4733 * config/microblaze/microblaze.md (save_stack_block): Define.
4734 (restore_stack_block): Likewise.
4735
4736 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4737
4738 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
4739 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
4740 * config/microblaze/microblaze.c (microblaze_option_override):
4741 Bail out early for PIC modes when target does not support PIC.
4742
4743 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4744
4745 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
4746 Replace with a microblaze version.
4747 (microblaze_trampoline_init): Adapt for microblaze.
4748 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
4749 microblaze.
4750
4751 2013-02-16 Jakub Jelinek <jakub@redhat.com>
4752 Dodji Seketeli <dodji@redhat.com>
4753
4754 PR asan/56330
4755 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
4756 (instrument_mem_region_access): Do not forget to always put
4757 instrumentation of the of 'base' and 'base + len' in a "if (len !=
4758 0) statement, even for cases where either 'base' or 'base + len'
4759 are not instrumented -- because they have been previously
4760 instrumented. Simplify the logic by putting all the statements
4761 instrument 'base + len' inside a sequence, and then insert that
4762 sequence right before the current insertion point. Then, to
4763 instrument 'base + len', just get an iterator on that statement.
4764 And do not forget to update the pointer to iterator the function
4765 received as argument.
4766
4767 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
4768
4769 PR rtl-optimization/56348
4770 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
4771
4772 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
4773
4774 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
4775 (clean_graph_dump_file): Pass base to start_graph_dump.
4776
4777 2013-02-14 Richard Henderson <rth@redhat.com>
4778
4779 PR target/55941
4780 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
4781
4782 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
4783
4784 * collect2-aix.h: Define F_LOADONLY.
4785
4786 2013-02-14 Richard Biener <rguenther@suse.de>
4787
4788 PR lto/50494
4789 * varasm.c (output_constant_def_1): Get the decl representing
4790 the constant as argument.
4791 (output_constant_def): Wrap output_constant_def_1.
4792 (make_decl_rtl): Use output_constant_def_1 with the decl
4793 representing the constant.
4794 (build_constant_desc): Optionally re-use a decl already
4795 representing the constant.
4796 (tree_output_constant_def): Adjust.
4797
4798 2013-02-14 Dodji Seketeli <dodji@redhat.com>
4799
4800 Fix an asan crash
4801 * asan.c (instrument_builtin_call): Really put the length of the
4802 second source argument into src1_len.
4803
4804 2013-02-13 Jakub Jelinek <jakub@redhat.com>
4805
4806 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
4807 argument. If it is false, don't create edge from then_bb to
4808 fallthru_bb.
4809 (insert_if_then_before_iter): Pass true to it.
4810 (build_check_stmt): Pass false to it.
4811 (transform_statements): Flush hash table only on extended basic
4812 block boundaries, rather than at the beginning of every bb.
4813 Don't flush hash table on nonfreeing_call_p calls.
4814 * tree-flow.h (nonfreeing_call_p): New prototype.
4815 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
4816
4817 2013-02-13 David S. Miller <davem@davemloft.net>
4818
4819 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
4820
4821 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
4822
4823 PR target/56184
4824 * ira.c (max_regno_before_ira): Move from ...
4825 (ira): ... here.
4826 (fix_reg_equiv_init): Use max_regno_before_ira instead of
4827 vec_safe_length.
4828
4829 2013-02-13 Jakub Jelinek <jakub@redhat.com>
4830
4831 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
4832
4833 2013-02-13 Richard Biener <rguenther@suse.de>
4834
4835 PR lto/56295
4836 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
4837 globals in MEM_REFs.
4838
4839 2013-02-13 Richard Biener <rguenther@suse.de>
4840
4841 * loop-init.c (loop_optimizer_init): Clear loop state when
4842 re-initializing preserved loops.
4843 * loop-unswitch.c (unswitch_single_loop): Return whether
4844 we unswitched the loop. Do not verify loop state here.
4845 (unswitch_loops): When we unswitched a loop discover new loops.
4846
4847 2013-02-13 Kostya Serebryany <kcc@google.com>
4848
4849 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
4850 on x86_64 linux.
4851 * sanitizer.def: Rename __asan_init to __asan_init_v1.
4852
4853 2013-02-12 Dodji Seketeli <dodji@redhat.com>
4854
4855 Avoid instrumenting duplicated memory access in the same basic block
4856 * Makefile.in (asan.o): Add new dependency on hash-table.h
4857 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
4858 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
4859 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
4860 (free_mem_ref_resources, has_mem_ref_been_instrumented)
4861 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
4862 (get_mem_ref_of_assignment): New functions.
4863 (get_mem_refs_of_builtin_call): Extract from
4864 instrument_builtin_call and tweak a little bit to make it fit with
4865 the new signature.
4866 (instrument_builtin_call): Use the new
4867 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
4868 of is_gimple_builtin_call.
4869 (instrument_derefs, instrument_mem_region_access): Insert the
4870 instrumented memory reference into the hash table.
4871 (maybe_instrument_assignment): Renamed instrument_assignment into
4872 this, and change it to advance the iterator when instrumentation
4873 actually happened and return true in that case. This makes it
4874 homogeneous with maybe_instrument_assignment, and thus give a
4875 chance to callers to be more 'regular'.
4876 (transform_statements): Clear the memory reference hash table
4877 whenever we enter a new BB, when we cross a function call, or when
4878 we are done transforming statements. Use
4879 maybe_instrument_assignment instead of instrumentation. No more
4880 need to special case maybe_instrument_assignment and advance the
4881 iterator after calling it; it's now handled just like
4882 maybe_instrument_call. Update comment.
4883
4884 2013-02-13 Richard Biener <rguenther@suse.de>
4885
4886 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4887 Fix loop discovery code.
4888
4889 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
4890
4891 PR inline-asm/56148
4892 * lra-constraints.c (process_alt_operands): Match early clobber
4893 operand with itself. Check conflicts with earlyclobber only if
4894 the operand is not reloaded. Prefer to reload conflicting operand
4895 if earlyclobber and matching operands are the same.
4896
4897 2013-02-12 Richard Biener <rguenther@suse.de>
4898
4899 PR lto/56297
4900 * lto-streamer-out.c (write_symbol): Do not output symbols
4901 for hard register variables.
4902
4903 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
4904
4905 PR target/54222
4906 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
4907 (umulsidi3_insn, mulsidi3_insn): New insns.
4908
4909 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
4910
4911 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
4912 (struct tune_params): Add vec_costs field.
4913 * config/arm/arm.c (arm_builtin_vectorization_cost)
4914 (arm_add_stmt_cost): New functions.
4915 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
4916 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
4917 (arm_default_vec_cost): New struct of type cpu_vec_costs.
4918 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
4919 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
4920 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
4921 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
4922
4923 2013-02-12 Richard Biener <rguenther@suse.de>
4924
4925 PR lto/56295
4926 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
4927 decls again if possible.
4928
4929 2013-02-12 Richard Biener <rguenther@suse.de>
4930
4931 PR middle-end/56288
4932 * tree-ssa.c (verify_ssa_name): Fix check, move
4933 SSA_NAME_IN_FREE_LIST check up.
4934
4935 2013-02-12 Jakub Jelinek <jakub@redhat.com>
4936 Steven Bosscher <steven@gcc.gnu.org>
4937
4938 PR rtl-optimization/56151
4939 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
4940 equal to op0 or op1, and last_insn pattern is CODE operation
4941 with MEM dest and one of the operands matches that MEM.
4942
4943 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
4944
4945 * doc/extend.texi: Document Function Multiversioning and "default"
4946 parameter string to target attribute.
4947 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
4948 target attribute parameter is "default".
4949 (ix86_compare_version_priority): Remove checks for target attribute.
4950 (ix86_mangle_function_version_assembler_name): Change error to sorry.
4951 Remove check for target attribute equal to NULL. Add assert.
4952 (ix86_generate_version_dispatcher_body): Change error to sorry.
4953
4954 2013-02-11 Iain Sandoe <iain@codesourcery.com>
4955 Jack Howarth <howarth@bromo.med.uc.edu>
4956 Patrick Marlier <patrick.marlier@gmail.com>
4957
4958 PR libitm/55693
4959 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
4960 define ENDFILE_SPEC as TM_DESTRUCTOR.
4961 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
4962
4963 2013-02-11 Alexander Potapenko <glider@google.com>
4964 Jack Howarth <howarth@bromo.med.uc.edu>
4965 Jakub Jelinek <jakub@redhat.com>
4966
4967 PR sanitizer/55617
4968 * config/darwin.c (cdtor_record): Rename ctor_record.
4969 (sort_cdtor_records): Rename sort_ctor_records.
4970 (finalize_dtors): New routine to sort destructors by
4971 priority before use in assemble_integer.
4972 (machopic_asm_out_destructor): Use finalize_dtors if needed.
4973
4974 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
4975
4976 PR rtl-optimization/56275
4977 * simplify-rtx.c (avoid_constant_pool_reference): Check that
4978 offset is non-negative and less than cmode size before
4979 calling simplify_subreg.
4980
4981 2013-02-11 Richard Biener <rguenther@suse.de>
4982
4983 PR tree-optimization/56264
4984 * cfgloop.h (fix_loop_structure): Adjust prototype.
4985 * loop-init.c (fix_loop_structure): Return the number of
4986 newly discovered loops.
4987 * tree-cfgcleanup.c (repair_loop_structures): When new loops
4988 are discovered, do a full loop-closed SSA rewrite.
4989
4990 2013-02-11 Richard Biener <rguenther@suse.de>
4991
4992 PR tree-optimization/56273
4993 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4994 first VRP run.
4995 (check_array_ref): Fix missing newline in dumps.
4996 (search_for_addr_array): Likewise.
4997
4998 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
4999
5000 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
5001
5002 2013-02-09 Jakub Jelinek <jakub@redhat.com>
5003
5004 PR target/56256
5005 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
5006
5007 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
5008
5009 PR rtl-optimization/56246
5010 * lra-constraints.c (simplify_operand_subreg): Try to reuse
5011 reload pseudo.
5012 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
5013 constraints are satisfied.
5014
5015 2013-02-08 Jeff Law <law@redhat.com>
5016
5017 PR debug/53948
5018 * emit-rtl.c (reg_is_parm_p): New function.
5019 * regs.h (reg_is_parm_p): New prototype.
5020 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
5021 callee-clobbered registers.
5022
5023 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5024
5025 PR target/56043
5026 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
5027 If there is no implicit builtin declaration, just return NULL.
5028
5029 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5030
5031 * config/i386/sse.md (FMAMODEM): New mode iterator.
5032 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
5033 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
5034
5035 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5036
5037 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
5038 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
5039 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
5040
5041 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5042
5043 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
5044 (microblaze*-*-elf): Likewise.
5045 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
5046 LINK_SPEC.
5047 * config/microblaze/microblaze-c.c: Add builtin defines for
5048 _LITTLE_ENDIAN and _BIG_ENDIAN.
5049 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
5050 add to TARGET_DEFAULT flags.
5051 Expand ASM_SPEC and LINK_SPEC.
5052 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
5053 * config/microblaze/microblaze.md: Update extendsidi2 and
5054 movdi_internal instructions to use low-order / high-order reg
5055 print_operands.
5056 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
5057 options and inversemask / mask of LITTLE_ENDIAN.
5058 * config/microblaze/t-microblaze: Expand multilib options to
5059 include mlittle-endian (le) and update exceptions patterns.
5060
5061 2013-02-08 Jakub Jelinek <jakub@redhat.com>
5062
5063 PR rtl-optimization/56195
5064 * lra-constraints.c (get_reload_reg): Don't reuse regs
5065 if they have smaller mode than requested, if they have
5066 wider mode than requested, try to return a SUBREG.
5067
5068 PR tree-optimization/56250
5069 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
5070 if type is unsigned and code isn't MULT_EXPR.
5071
5072 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
5073
5074 PR tree-optimization/56064
5075 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
5076 bits according to mode.
5077 * fixed-value.h (fixed_from_double_int)
5078 (const_fixed_from_double_int): Adjust comments.
5079
5080 2013-02-08 Richard Biener <rguenther@suse.de>
5081
5082 PR lto/56231
5083 * lto-streamer.h (struct data_in): Remove current_file, current_line
5084 and current_col members.
5085 * lto-streamer-out.c (lto_output_location): Stream changed bits
5086 en-block for efficiency.
5087 * lto-streamer-in.c (clear_line_info): Remove.
5088 (lto_input_location): Cache current file, line and column
5089 globally via local statics. Read changed bits en-block.
5090 (input_function): Do not call clear_line_info.
5091 (lto_read_body): Likewise.
5092 (lto_input_toplevel_asms): Likewise.
5093
5094 2013-02-08 Michael Matz <matz@suse.de>
5095
5096 PR tree-optimization/52448
5097 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
5098 (nt_call_phase): New static.
5099 (add_or_mark_expr): Only mark accesses with newer phase than any
5100 call seen.
5101 (nonfreeing_call_p): New.
5102 (nt_init_block): Update nt_call_phase, mark blocks as visited.
5103 (nt_fini_block): Keep blocks marked as visited.
5104 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
5105
5106 2013-02-08 Richard Biener <rguenther@suse.de>
5107
5108 * ira.c (ira): Free broken dominator information.
5109
5110 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5111
5112 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
5113
5114 2013-02-08 Marek Polacek <polacek@redhat.com>
5115
5116 * cfgloop.c (verify_loop_structure): Add more checking of headers.
5117
5118 2013-02-08 Richard Biener <rguenther@suse.de>
5119
5120 PR middle-end/56181
5121 * cfgloop.h (flow_loops_find): Adjust.
5122 (bb_loop_header_p): Declare.
5123 * cfgloop.c (bb_loop_header_p): New function split out from ...
5124 (flow_loops_find): ... here. Adjust function signature,
5125 support incremental loop structure update.
5126 (verify_loop_structure): Cleanup. Verify a loop is a loop.
5127 * cfgloopmanip.c (fix_loop_structure): Move ...
5128 * loop-init.c (fix_loop_structure): ... here.
5129 (apply_loop_flags): Split out from ...
5130 (loop_optimizer_init): ... here.
5131 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
5132 in incremental mode, only remove dead loops here.
5133
5134 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
5135
5136 PR target/54222
5137 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
5138 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
5139 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
5140 (*round<mode>3.libgcc): New insns for fixed-modes.
5141 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
5142 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
5143 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
5144 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
5145 implementations. Define to __builtin_avr_absFX,
5146 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
5147 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
5148 __builtin_avr_countlsFX, respectively.
5149 * config/avr/avr-c.c (target.h): Include it.
5150 (enum avr_builtin_id): New enum.
5151 (avr_resolve_overloaded_builtin): New static function.
5152 (avr_register_target_pragmas): Use it to set
5153 targetm.resolve_overloaded_builtin.
5154 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
5155 tree nodes used by DEF_BUILTIN.
5156 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
5157 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
5158 <AVR_BUILTIN_xxBITS>: Same.
5159
5160 2013-02-08 Richard Biener <rguenther@suse.de>
5161
5162 * cfgloop.c (verify_loop_structure): Properly handle
5163 a loop exiting to another loop header.
5164 * ira-int.h (ira_loops): Remove.
5165 * ira.c (ira_loops): Remove.
5166 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
5167 (do_reload): Use loop_optimizer_finalize.
5168 * ira-build.c (create_loop_tree_nodes): Use get_loops and
5169 number_of_loops to access the loop tree.
5170 (more_one_region_p): Likewise.
5171 (finish_loop_tree_nodes): Likewise.
5172 (rebuild_regno_allocno_maps): Likewise.
5173 (mark_loops_for_removal): Likewise.
5174 (mark_all_loops_for_removal): Likewise.
5175 (remove_unnecessary_regions): Likewise.
5176 (ira_build): Likewise.
5177 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5178
5179 2013-02-08 Richard Biener <rguenther@suse.de>
5180
5181 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
5182 * ipa-pure-const.c (analyze_function): Avoid calling
5183 mark_irreducible_loops twice.
5184 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
5185
5186 2013-02-07 David S. Miller <davem@davemloft.net>
5187
5188 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
5189 on 'reg'.
5190 * var-tracking.c (vt_add_function_parameter): Test the presence of
5191 HAVE_window_save properly and do not remap argument registers when
5192 we have a leaf function.
5193
5194 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
5195
5196 PR bootstrap/56227
5197 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
5198 instead of "ll".
5199 * config/i386/i386.c (ix86_print_operand): Ditto.
5200
5201 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5202
5203 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5204
5205 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5206
5207 PR rtl-optimization/56225
5208 * lra-constraints.c (process_alt_operands): Check that reload hard
5209 reg can hold value for strict_low_part.
5210
5211 2013-02-07 Jakub Jelinek <jakub@redhat.com>
5212
5213 PR debug/56154
5214 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
5215 dwarf2out_end_function.
5216 (in_first_function_p, maybe_at_text_label_p,
5217 first_loclabel_num_not_at_text_label): New variables.
5218 (dwarf2out_var_location): In the first function find out
5219 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
5220 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
5221 functions.
5222
5223 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
5224
5225 PR rtl-optimization/56178
5226 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
5227 SUBREG of a register. Tidy up related block of code.
5228 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
5229 note if the source is a register or a SUBREG of a register.
5230
5231 2013-02-07 Jakub Jelinek <jakub@redhat.com>
5232
5233 PR target/56228
5234 * config/rs6000/rs6000.md (ptrm): New mode attr.
5235 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
5236 call_value_indirect_aix<pttrsize>,
5237 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
5238 m in constraints.
5239
5240 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5241
5242 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
5243 if -bnortl. Convert to strcmp and strncmp.
5244
5245 2013-02-07 Alan Modra <amodra@gmail.com>
5246
5247 PR target/54009
5248 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
5249 addresses won't wrap when offsetting.
5250 (rs6000_secondary_reload): Provide secondary reloads needed for
5251 wrapping LO_SUM addresses.
5252
5253 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
5254
5255 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
5256 MACH, just __MACH__.
5257
5258 2013-02-06 Richard Biener <rguenther@suse.de>
5259
5260 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
5261 instead of calling fix_loop_structure.
5262
5263 2013-02-06 Jakub Jelinek <jakub@redhat.com>
5264
5265 PR middle-end/56217
5266 * omp-low.c (use_pointer_for_field): Return false if
5267 lower_send_shared_vars doesn't generate any copy-out code.
5268
5269 2013-02-06 Tom de Vries <tom@codesourcery.com>
5270
5271 PR rtl-optimization/56131
5272 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
5273 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
5274 of the label is NULL. Add comment.
5275
5276 2013-02-05 Jakub Jelinek <jakub@redhat.com>
5277
5278 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
5279
5280 PR sanitizer/55374
5281 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
5282 (STATIC_LIBTSAN_LIBS): Likewise.
5283 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
5284 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
5285 is defined, don't add anything else beyond that.
5286 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
5287 (LINK_COMMAND_SPEC): Use them.
5288
5289 PR tree-optimization/56205
5290 * tree-stdarg.c (check_all_va_list_escapes): Return true if
5291 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
5292 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
5293
5294 2013-02-05 Richard Biener <rguenther@suse.de>
5295
5296 PR tree-optimization/53342
5297 PR tree-optimization/53185
5298 * tree-vectorizer.h (vect_check_strided_load): Remove.
5299 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
5300 not disallow peeling for vectorized strided loads.
5301 (vect_check_strided_load): Make static and simplify.
5302 (vect_analyze_data_refs): Adjust.
5303 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
5304 correctly when vectorizing strided loads.
5305
5306 2013-02-05 Richard Biener <rguenther@suse.de>
5307
5308 * doc/install.texi: Refer to ISL, not PPL.
5309
5310 2013-02-05 Jan Hubicka <jh@suse.cz>
5311
5312 PR tree-optimization/55789
5313 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
5314
5315 2013-02-05 Jan Hubicka <jh@suse.cz>
5316
5317 PR tree-optimization/55789
5318 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
5319 the dead call anyway.
5320
5321 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
5322
5323 PR sanitizer/55374
5324 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
5325
5326 2013-02-04 Alexander Potapenko <glider@google.com>
5327 Jack Howarth <howarth@bromo.med.uc.edu>
5328 Jakub Jelinek <jakub@redhat.com>
5329
5330 PR sanitizer/55617
5331 * config/darwin.c (sort_ctor_records): Stabilized qsort
5332 on constructor priority by using original position.
5333 (finalize_ctors): New routine to sort constructors by
5334 priority before use in assemble_integer.
5335 (machopic_asm_out_constructor): Use finalize_ctors if needed.
5336
5337 2013-02-04 Jakub Jelinek <jakub@redhat.com>
5338
5339 PR libstdc++/54314
5340 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
5341 about visibility on artificial decls.
5342 * config/sol2.c (solaris_assemble_visibility): Likewise.
5343
5344 2013-02-04 Kai Tietz <ktietz@redhat.com>
5345
5346 PR target/56186
5347 * config/i386/i386.c (function_value_ms_64): Add additional valtype
5348 argument and improve checking of return-argument types for 16-byte
5349 modes.
5350 (ix86_function_value_1): Add additional valtype argument on call
5351 of function_value_64.
5352 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
5353 handling infunction_value_64 function.
5354
5355 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5356
5357 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
5358
5359 2013-02-04 Richard Biener <rguenther@suse.de>
5360
5361 PR tree-optimization/56188
5362 * tree-ssa-structalias.c (label_visit): Consider case with
5363 initially non-empty points-to set.
5364 (perform_var_substitution): Dump node mapping and clean up.
5365
5366 2013-02-04 Richard Guenther <rguenther@suse.de>
5367
5368 PR lto/56168
5369 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
5370 node prevail as last resort.
5371 (lto_symtab_merge_decls): Remove guard on LTRANS here.
5372 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
5373
5374 2013-02-04 Richard Biener <rguenther@suse.de>
5375
5376 PR tree-optimization/56113
5377 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
5378 Merge into ...
5379 (equiv_class_lookup_or_add): ... this.
5380 (label_visit): Adjust and fix error in previous patch.
5381 (perform_var_substitution): Adjust.
5382
5383 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
5384
5385 * config/sh/divtab.c: Fix formatting and comments throughout the file.
5386 * config/sh/sh4-300.md: Likewise.
5387 * config/sh/sh4a.md: Likewise.
5388 * config/sh/constraints.md: Likewise.
5389 * config/sh/sh.md: Likewise.
5390 * config/sh/netbsd-elf.h: Likewise.
5391 * config/sh/predicates.md: Likewise.
5392 * config/sh/sh-protos.h: Likewise.
5393 * config/sh/ushmedia.h: Likewise.
5394 * config/sh/linux.h: Likewise.
5395 * config/sh/sh.c: Likewise.
5396 * config/sh/superh.h: Likewise.
5397 * config/sh/elf.h: Likewise.
5398 * config/sh/sh4.md: Likewise.
5399 * config/sh/sh.h: Likewise.
5400
5401 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5402
5403 * config/pa/constraints.md: Adjust unused letters. Change "T"
5404 constraint to match_test floating_point_store_memory_operand().
5405 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
5406 (base14_operand): New.
5407 (floating_point_store_memory_operand): New.
5408 (integer_store_memory_operand): Revise to use base14_operand and
5409 reg_plus_base_memory_operand.
5410 (move_dest_operand): Allow symbolic_memory_operands.
5411 (symbolic_memory_operand): Check for LO_SOM.
5412 (symbolic_operand): Change default case to break.
5413 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
5414 CONST_DOUBLE values to be reloaded by putting them into memory when
5415 the destination is a floating point register.
5416 (movdf): Remove code to handle CONST_DOUBLE.
5417 (movsf): Likewise.
5418 (reload_indf_r1): New.
5419 (reload_insf_r1): New.
5420 Consistently use "Q" and "T" constraints with integer and floating
5421 point move instructions, respectively.
5422 (movdi): Remove FAIL.
5423 Change predicate for source operand unamed DImode move from
5424 general_operand to move_src_operand.
5425 (umulsidi3): Change predicate for destination operand to
5426 register_operand.
5427 Likewise for similar unamed patterns.
5428 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
5429 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
5430 (hppa_legitimize_address): Simplify mask calculation.
5431 (pa_emit_move_sequence): Revised handling of secondary reloads from
5432 REG+D addresses for floating point loads and stores. Directly handle
5433 loading CONST0_RTX (mode) to a floating point register.
5434 (pa_secondary_reload): Handle reloading DF and SFmode constant values
5435 to floating point registers. Don't restrict secondary reloads to
5436 floating point registers to integer modes. Revise some comments and
5437 cleanup some code.
5438 (TARGET_LEGITIMATE_ADDRESS_P): Define.
5439 (pa_legitimate_address_p): New.
5440 (pa_legitimize_reload_address): New.
5441 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
5442 (STRICT_REG_OK_FOR_BASE_P): New.
5443 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
5444 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
5445
5446 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
5447 Andrew Dixie <andrewd@gentrack.com>
5448
5449 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
5450 flag set.
5451
5452 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
5453
5454 * expmed.c (extract_bit_field_1): Pass the full width of the
5455 structure to get_best_reg_extraction_insn.
5456
5457 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5458
5459 PR target/54601
5460 * configure.ac (use_cxa_atexit): Add AIX.
5461 * configure: Regenerate.
5462
5463 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
5464
5465 2013-02-01 Jakub Jelinek <jakub@redhat.com>
5466
5467 PR debug/54793
5468 * final.c (need_profile_function): New variable.
5469 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
5470 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
5471 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
5472 notes, targetm.asm_out.function_prologue doesn't emit anything,
5473 HAVE_prologue and profiler should be emitted before prologue,
5474 set need_profile_function instead of emitting it.
5475 (final_scan_insn): If need_profile_function, emit
5476 profile_function on the first NOTE_INSN_BASIC_BLOCK or
5477 NOTE_INSN_FUNCTION_BEG note.
5478
5479 2013-02-01 Richard Henderson <rth@redhat.com>
5480
5481 * config/rs6000/rs6000.md (smulditi3): New.
5482 (umulditi3): New.
5483
5484 * config/alpha/alpha.md (umulditi3): New.
5485
5486 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5487
5488 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
5489 (ASM_OUTPUT_ALIGNED_LOCAL): New.
5490
5491 2013-02-01 Richard Biener <rguenther@suse.de>
5492
5493 PR tree-optimization/56113
5494 * tree-ssa-structalias.c (label_visit): Reduce work for
5495 single-predecessor nodes.
5496
5497 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
5498
5499 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
5500 range isn't testing for zero.
5501
5502 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
5503
5504 PR middle-end/56113
5505 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
5506
5507 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
5508 Nick Clifton <nickc@redhat.com>
5509
5510 * config/v850/constraints.md (Q): Define as a memory constraint.
5511 * config/v850/predicates.md (label_ref_operand): New predicate.
5512 (e3v5_shift_operand): New predicate.
5513 (ior_operator): New predicate.
5514 * config/v850/t-v850: Add e3v5 multilib.
5515 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
5516 (v850_gen_movdi): Prototype.
5517 * config/v850/v850.c: Add support for e3v5 architecture.
5518 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
5519 TARGET_V850E_UP.
5520 (construct_save_jarl): Add e3v5 long JARL support.
5521 (v850_adjust_insn_length): New function. Adjust length of call
5522 insns when using e3v5 instructions.
5523 (v850_gen_movdi): New function: Generate instructions to move a
5524 DImode value.
5525 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
5526 (CPP_SPEC): Define __v850e3v5__ as appropriate.
5527 (TARGET_USE_FPU): Enable for e3v5.
5528 (CONST_OK_FOR_W): New macro.
5529 (ADJUST_INSN_LENGTH): Define.
5530 * config/v850/v850.md (UNSPEC_LOOP): Define.
5531 (attr cpu): Add v850e3v5.
5532 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
5533 (movdi): New pattern.
5534 (movdi_internal): New pattern.
5535 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
5536 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
5537 (cstoresf4): Likewise.
5538 (cstoredf4): Likewise.
5539 (insv): New pattern.
5540 (rotlso3_a): New pattern.
5541 (rotlsi3_b): New pattern
5542 (rotlsi3_v850e3v5): New pattern.
5543 (doloop_begin): New pattern.
5544 (fix_loop_counter): New pattern.
5545 (doloop_end): New pattern.
5546 (branch_normal): Add e3v5 long branch support.
5547 (branch_invert): Likewise.
5548 (branch_z_normal): Likewise.
5549 (branch_z_invert): Likewise.
5550 (branch_nz_normal): Likewise.
5551 (branch_nz_invert): Likewise.
5552 (call_internal_short): Add e3v5 register-indirect JARL support.
5553 (call_internal_long): Likewise.
5554 (call_value_internal_short): Likewise.
5555 (call_value_internal_long): Likewise.
5556 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
5557 (mloop): New option.
5558 * config.gcc: Add support for configuring v840e3v5 target.
5559 * doc/invoke.texi: Document new v850 specific command line options.
5560
5561 2013-01-31 Paul Koning <ni1d@arrl.net>
5562
5563 PR debug/55059
5564 PR debug/54508
5565 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
5566 children if parent is a class.
5567 (prune_unused_types_prune): Don't add DW_AT_declaration.
5568
5569 2013-01-31 Richard Biener <rguenther@suse.de>
5570
5571 PR tree-optimization/56157
5572 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
5573 match up operand with SLP child.
5574
5575 2013-01-31 Jason Merrill <jason@redhat.com>
5576
5577 PR debug/54410
5578 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
5579 parameters the first time.
5580 (gen_scheduled_generic_parms_dies): Check completeness here.
5581
5582 2013-01-31 Richard Biener <rguenther@suse.de>
5583
5584 PR middle-end/53073
5585 * common.opt (faggressive-loop-optimizations): New flag,
5586 enabled by default.
5587 * doc/invoke.texi (faggressive-loop-optimizations): Document.
5588 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
5589 infer_loop_bounds_from_undefined by it.
5590
5591 2013-01-31 Richard Biener <rguenther@suse.de>
5592
5593 PR tree-optimization/56150
5594 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
5595 visit virtual operands.
5596 (find_uses_to_rename_bb): Likewise.
5597
5598 2013-01-31 Richard Biener <rguenther@suse.de>
5599
5600 PR tree-optimization/56150
5601 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
5602 mixed store non-store stmts.
5603
5604 2013-01-30 Jakub Jelinek <jakub@redhat.com>
5605
5606 PR sanitizer/55374
5607 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
5608 LIBASAN_EARLY_SPEC is defined.
5609 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
5610 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
5611 before %o.
5612 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
5613
5614 PR c++/55742
5615 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
5616 invalid args instead of ICEing on it.
5617 (ix86_valid_target_attribute_tree): Return error_mark_node if
5618 ix86_valid_target_attribute_inner_p failed.
5619 (ix86_valid_target_attribute_p): Return false only if
5620 ix86_valid_target_attribute_tree returned error_mark_node. Allow
5621 target("default") attribute.
5622 (sorted_attr_string): Change argument from const char * to tree,
5623 merge in all target attribute arguments rather than just one.
5624 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
5625 instead of free. Avoid using strcat.
5626 (ix86_mangle_function_version_assembler_name): Mangle
5627 target("default") as if no target attribute is present. Adjust
5628 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
5629 instead of xmalloc and XDELETEVEC instead of free.
5630 (ix86_function_versions): Don't return true if one of the decls
5631 doesn't have target attribute. If they don't and one of the decls
5632 is DECL_FUNCTION_VERSIONED, report an error. Adjust
5633 sorted_attr_string caller. Use XDELETEVEC instead of free.
5634 (ix86_supports_function_versions): Remove.
5635 (make_name): Fix up formatting.
5636 (make_dispatcher_decl): Remove resolver_name and its initialization.
5637 Avoid leaking memory.
5638 (is_function_default_version): Return true if there is
5639 target("default") attribute rather than no target attribute at all.
5640 (make_resolver_func): Avoid leaking memory.
5641 (ix86_generate_version_dispatcher_body): Likewise.
5642 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
5643 * target.def (supports_function_versions): Remove.
5644 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
5645 * doc/tm.texi: Regenerated.
5646
5647 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
5648
5649 PR rtl-optimization/56144
5650 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
5651 for values with side effects.
5652
5653 2013-01-30 Richard Biener <rguenther@suse.de>
5654
5655 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
5656 (sparseset_pop): Likewise.
5657 * cfganal.c (compute_idf): Likewise. Increase work-stack size
5658 to be able to use quick_push in the worker loop.
5659
5660 2013-01-30 Marek Polacek <polacek@redhat.com>
5661
5662 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
5663
5664 2013-01-30 Richard Biener <rguenther@suse.de>
5665
5666 PR lto/56147
5667 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
5668
5669 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
5670
5671 PR tree-optimization/56064
5672 * fixed-value.c (fixed_from_double_int): New function.
5673 * fixed-value.h (fixed_from_double_int): New prototype.
5674 (const_fixed_from_double_int): New static inline function.
5675 * fold-const.c (native_interpret_fixed): New static function.
5676 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
5677 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
5678 (native_encode_fixed): New static function.
5679 (native_encode_expr) <FIXED_CST>: Use it.
5680 (native_interpret_int): Move double_int worker code to...
5681 * double-int.c (double_int::from_buffer): ...this new static method.
5682 * double-int.h (double_int::from_buffer): Prototype it.
5683
5684 2013-01-30 Richard Biener <rguenther@suse.de>
5685
5686 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
5687 New pointer-map and obstack.
5688 (init_alias_vars): Allocate pointer-map and obstack.
5689 (delete_points_to_sets): Free them.
5690 (find_what_var_points_to): Cache result.
5691 (find_what_p_points_to): Adjust for changed interface of
5692 find_what_var_points_to.
5693 (compute_points_to_sets): Likewise.
5694 (ipa_pta_execute): Likewise.
5695
5696 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5697
5698 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
5699 * configure: Regenerate.
5700 * config.in: Regenerate.
5701 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
5702 #nobits/#progbits if supported.
5703
5704 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
5705
5706 PR target/56121
5707 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
5708 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
5709 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
5710
5711 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5712
5713 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
5714 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
5715
5716 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5717
5718 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
5719 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
5720
5721 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5722
5723 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
5724 declaration.
5725 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
5726 * config/arm/cortex-a7.md: New bypasses using
5727 arm_mac_accumulator_is_result.
5728
5729 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5730
5731 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
5732 (cortex_a7_neon_mla): Likewise.
5733 (cortex_a7_fpfmad): New reservation.
5734 (cortex_a7_fpmacs): Use ffmas and update required units.
5735 (cortex_a7_fpmuld): Update required units and latency.
5736 (cortex_a7_fpmacd): Likewise.
5737 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
5738 (cortex_a7_neon). Likewise.
5739 (bypass) Update participating units.
5740
5741 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5742
5743 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
5744 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
5745 from fmac to ffma.
5746 * config/arm/vfp11.md (vfp_farith): Use ffmas.
5747 (vfp_fmul): Use ffmad.
5748 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
5749 (cortex_r4_fmacd): Use ffmad.
5750 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
5751 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
5752 (cortex_a9_fmacd): Use ffmad.
5753 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
5754 (cortex_a8_vfp_macd): Use ffmad.
5755 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
5756 (cortex_a5_fpmacd): Use ffmad.
5757 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
5758 (cortex_a15_vfp_macd): Use ffmad.
5759 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
5760
5761 2013-01-29 Jason Merrill <jason@redhat.com>
5762
5763 PR libstdc++/54314
5764 * varasm.c (default_assemble_visibility): Don't warn about
5765 visibility on artificial decls.
5766
5767 2013-01-29 Richard Biener <rguenther@suse.de>
5768
5769 PR tree-optimization/56113
5770 * tree-ssa-structalias.c (equiv_class_lookup): Also return
5771 the bitmap leader.
5772 (label_visit): Free duplicate bitmaps and record the leader instead.
5773 (perform_var_substitution): Adjust.
5774
5775 2013-01-29 Richard Biener <rguenther@suse.de>
5776
5777 PR tree-optimization/55270
5778 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
5779 the CFG, schedule loops for fixup.
5780
5781 2013-01-29 Nick Clifton <nickc@redhat.com>
5782
5783 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
5784 SP_REG.
5785
5786 2013-01-28 Leif Ekblad <leif@rdos.net>
5787
5788 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
5789 * config/i386/i386.h (TARGET_RDOS): New macro.
5790 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
5791 * config/i386/i386.c (ix86_option_override_internal): For 64bit
5792 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
5793 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
5794 DEFAULT_LARGE_SECTION_THRESHOLD.
5795 * config/i386/i386.md (R14_REG, R15_REG): New constants.
5796 * config/i386/rdos.h: New file.
5797 * config/i386/rdos64.h: New file.
5798
5799 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
5800
5801 PR other/54814
5802 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
5803 TEST_HARD_REG_BIT.
5804
5805 2013-01-28 Jakub Jelinek <jakub@redhat.com>
5806
5807 PR rtl-optimization/56117
5808 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
5809 call cselib_lookup_from_insn on the MEM before calling
5810 add_insn_mem_dependence.
5811
5812 2013-01-28 Richard Biener <rguenther@suse.de>
5813
5814 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
5815 to a stmt that didn't have one.
5816 (copy_phis_for_bb): Likewise for PHI arguments.
5817 (copy_debug_stmt): Likewise for debug stmts.
5818
5819 2013-01-28 Richard Biener <rguenther@suse.de>
5820
5821 PR tree-optimization/56034
5822 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
5823 (partition_builtin_p): Adjust.
5824 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
5825 it is the last partition.
5826 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
5827 up the vertex for the definition.
5828 (classify_partition): Classify whether a partition is a
5829 PKIND_REDUCTION, thus has uses outside of the loop.
5830 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
5831 Merge all PKIND_REDUCTION partitions into the last partition.
5832 (tree_loop_distribution): Seed partitions from reductions as well.
5833
5834 2013-01-28 Jakub Jelinek <jakub@redhat.com>
5835
5836 PR tree-optimization/56125
5837 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
5838 pow(x,c) into sqrt(x) * powi(x, n/2) or
5839 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
5840 optimizing for size.
5841 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
5842 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
5843 integer.
5844
5845 PR tree-optimization/56094
5846 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
5847 to UNKNOWN_LOCATION while gimplifying expr.
5848
5849 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
5850
5851 PR target/56114
5852 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
5853 operand 0 in movabs insn template for -masm=intel asm alternative.
5854 (*movabs<mode>_2): Ditto for operand 1.
5855
5856 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
5857
5858 PR target/54663
5859 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
5860 of microblaze-c.o
5861
5862 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5863
5864 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
5865 tm_file.
5866
5867 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5868
5869 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
5870 Undef to avoid warning.
5871
5872 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5873
5874 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
5875 * configure: Regenerate.
5876
5877 2013-01-25 Jakub Jelinek <jakub@redhat.com>
5878
5879 PR tree-optimization/56098
5880 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
5881 for stmts with volatile ops.
5882 (cond_store_replacement): Don't optimize if assign has volatile ops.
5883 (cond_if_else_store_replacement_1): Don't optimize if either
5884 then_assign or else_assign have volatile ops.
5885 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
5886 volatile ops.
5887
5888 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5889
5890 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
5891
5892 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5893
5894 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
5895 missing ':' in asm example.
5896
5897 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
5898
5899 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
5900 entries into lane and laneq entries.
5901 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
5902 Remove AdvSIMD scalar modes.
5903 (aarch64_sq<r>dmulh_laneq<mode>): New.
5904 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
5905 modes.
5906 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
5907 builtin implementations to relfect changes in RTL in aarch64-simd.md.
5908 * config/aarch64/iterators.md (VCOND): New.
5909 (VCONQ): New.
5910
5911 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5912
5913 PR target/54222
5914 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
5915 Add NULL LIBNAME argument to existing definitions.
5916 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
5917 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
5918 * config/avr/avr.c (DEF_BUILTIN): Same.
5919 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
5920 (avr_expand_builtin): Expand to a vanilla call if a libgcc
5921 implementation is available (DECL_ASSEMBLER_NAME is set).
5922 (avr_fold_absfx): New static function.
5923 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
5924 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
5925 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
5926 AVR_BUILTIN_ABSLLK.
5927 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
5928 (abshk, absk, abslk, absllk): Provide as static inline functions.
5929
5930 2013-01-25 Marek Polacek <polacek@redhat.com>
5931
5932 PR tree-optimization/56035
5933 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
5934
5935 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
5936
5937 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
5938 (*movtf_internal_rex64): Add (!o,C) alternative
5939 (*movxf_internal_rex64): Ditto.
5940 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
5941
5942 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
5943
5944 * doc/invoke.texi: fix typo.
5945 * doc/objc.texi: fix typo.
5946
5947 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
5948
5949 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
5950 for the first two alternatives.
5951
5952 2013-01-24 Diego Novillo <dnovillo@google.com>
5953
5954 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
5955 (ggc-zone.o): Remove.
5956 * configure.ac: Remove option --with-gc.
5957 * configure: Re-generate.
5958 * doc/install.texi: Remove documentation for --with-gc.
5959 * gengtype.c (write_enum_defn): Remove. Update all users.
5960 (write_Types_process_field): Remove generation of gt_e_* argument.
5961 (output_type_enum): Remove. Update all users.
5962 (write_enum_defn): Remove. Update all users.
5963 (enum alloc_zone): Remove. Update all users.
5964 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
5965 * ggc-common.c (ggc_splay_alloc): Remove first argument.
5966 Update all callers.
5967 (struct ptr_data): Remove field TYPE. Update all users.
5968 (gt_pch_note_object): Remove argument TYPE. Update all users.
5969 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
5970 Update all users.
5971 * ggc-none.c (ggc_alloc_typed_stat): Remove.
5972 (struct alloc_zone): Remove.
5973 (ggc_internal_alloc_zone_stat): Remove.
5974 (ggc_internal_cleared_alloc_zone_stat): Remove.
5975 * ggc-page.c (ggc_alloc_typed_stat): Remove.
5976 (ggc_pch_count_object): Remove last argument. Update all users.
5977 (ggc_pch_alloc_object): Remove last argument. Update all users.
5978 (struct alloc_zone): Remove.
5979 * ggc-zone.c: Remove.
5980 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
5981 (struct alloc_zone): Remove.
5982 (ggc_alloc_typed_stat): Remove.
5983 (ggc_alloc_typed): Remove.
5984 (ggc_splay_alloc): Remove first argument.
5985 (rtl_zone): Remove. Update all users.
5986 (tree_zone): Remove. Update all users.
5987 (tree_id_zone): Remove. Update all users.
5988 (ggc_internal_zone_alloc_stat): Remove. Update all users.
5989 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
5990 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
5991 * tree-ssanames.c: Remove references to zone allocator in comments.
5992
5993 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
5994
5995 * config/avr/avr.c (avr_out_fract): Make register numbers that
5996 might be outside of source operand signed.
5997
5998 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
5999
6000 * config/i386/constraints.md (Yf): New constraint.
6001 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
6002 of f constraint to conditionaly disable x87 register preferences.
6003 (*movdf_internal): Ditto.
6004 (*movsf_internal): Ditto.
6005
6006 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
6007
6008 PR inline-asm/55934
6009 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
6010 that have operands with impossible constraints.
6011 Add a FIXME for a speed-up opportunity.
6012 * lra-constraints.c (process_alt_operands): Verify that a class
6013 selected from constraints on asms is valid for the operand mode.
6014 (curr_insn_transform): Remove incorrect comment.
6015
6016 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
6017
6018 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
6019 TOC operand is a valid symbol ref in the constant pool.
6020
6021 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6022
6023 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
6024
6025 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
6026
6027 PR target/54222
6028 * config/avr/stdfix.h: New file.
6029 * t-avr (stdfix-gcc.h): New rule to build it.
6030 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
6031
6032 2013-01-23 Kostya Serebryany <kcc@google.com>
6033
6034 * config/darwin.h: remove dependency on
6035 CoreFoundation (asan on Mac OS).
6036
6037 2013-01-23 Jakub Jelinek <jakub@redhat.com>
6038
6039 PR target/49069
6040 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
6041 instead of cmpdi_operand for first comparison operand.
6042 Don't assert that comparison operands aren't both constants.
6043
6044 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6045
6046 * doc/install.texi (Downloading the Source): Update references to
6047 downloading separate components.
6048
6049 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6050
6051 * doc/extend.texi (__int128): Improve grammar.
6052
6053 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
6054
6055 PR target/56028
6056 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
6057 alternative to (o,r).
6058 (*movdi_internal_rex64): Remove (!o,n) alternative.
6059 (DImode immediate->memory splitter): Remove.
6060 (DImode immediate->memory peephole2): Remove.
6061 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
6062 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
6063 alternative to (!o,*r).
6064 (*movtf_internal_sse): New pattern.
6065 (*movxf_internal_rex64): New pattern.
6066 (*movxf_internal): Disable for TARGET_64BIT.
6067 (*movdf_internal_rex64): Remove (!o,F) alternative.
6068
6069 2013-01-22 Jakub Jelinek <jakub@redhat.com>
6070
6071 PR middle-end/56074
6072 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
6073 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
6074 * tree-vect-loop-manip.c (find_loop_location): Also ignore
6075 stmt locations where LOCATION_LOCUS of the stmt location is
6076 UNKNOWN_LOCATION or BUILTINS_LOCATION.
6077
6078 PR target/55686
6079 * config/i386/i386.md (UNSPEC_STOS): New.
6080 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
6081 *strsetqi_1): Add UNSPEC_STOS.
6082
6083 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
6084
6085 PR c++/56067
6086 * doc/invoke.texi: Remove left over -Wsynth example.
6087
6088 2013-01-21 Jakub Jelinek <jakub@redhat.com>
6089
6090 PR tree-optimization/56051
6091 * fold-const.c (fold_binary_loc): Don't fold
6092 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
6093 a narrowing conversion, or widening conversion from signed
6094 to unsigned.
6095
6096 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
6097
6098 PR rtl-optimization/56023
6099 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
6100 dependent on debug instruction.
6101
6102 2013-01-21 Martin Jambor <mjambor@suse.cz>
6103
6104 PR middle-end/56022
6105 * function.c (allocate_struct_function): Call
6106 invoke_set_current_function_hook earlier.
6107
6108 2013-01-21 Jakub Jelinek <jakub@redhat.com>
6109
6110 * reload1.c (init_reload): Only initialize reload_obstack
6111 during the first call.
6112
6113 2013-01-21 Marek Polacek <polacek@redhat.com>
6114
6115 * cfgloop.c (verify_loop_structure): Fix up grammar.
6116
6117 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
6118
6119 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
6120 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
6121
6122 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6123
6124 PR target/56058
6125 * config/arm/marvell-pj4.md: Update copyright year.
6126 Fix up use of alu to alu_reg and simple_alu_imm.
6127
6128 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
6129
6130 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
6131
6132 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
6133
6134 PR target/55433
6135 * lra-constraints.c (curr_insn_transform): Don't reuse original
6136 insn for secondary memory move when memory mode should be different.
6137
6138 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6139
6140 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
6141 atomic_storedi_1): New patterns.
6142
6143 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6144
6145 btver2 pipeline descriptions.
6146 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
6147 descriptions.
6148 * config/i386/i386.md (btver2_decode): New type attributes.
6149 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
6150 type attributes.
6151 * config/i386/btver2.md: New file describing btver2 pipelines.
6152
6153 2013-01-19 Andrew Pinski <apinski@cavium.com>
6154
6155 PR tree-optimization/52631
6156 * tree-ssa-sccvn (visit_use): Before looking up the original
6157 statement, try looking up the simplified expression.
6158
6159 2013-01-19 Anthony Green <green@moxielogic.com>
6160
6161 * config/moxie/moxie.c (moxie_expand_prologue): Set
6162 current_function_static_stack_size.
6163
6164 2013-01-18 Jakub Jelinek <jakub@redhat.com>
6165
6166 PR tree-optimization/56029
6167 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
6168 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
6169
6170 2013-01-18 Sharad Singhai <singhai@google.com>
6171
6172 PR tree-optimization/55995
6173 * dumpfile.c (dump_loc): Print location only if available.
6174 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
6175
6176 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
6177
6178 PR target/55433
6179 * lra-constraints.c (curr_insn_transform): Reuse original insn for
6180 secondary memory move.
6181 (inherit_reload_reg): Use rclass instead of cl for
6182 check_secondary_memory_needed_p.
6183
6184 2013-01-18 Jakub Jelinek <jakub@redhat.com>
6185
6186 PR middle-end/56015
6187 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
6188 the case where writing real complex part of target modifies op1.
6189
6190 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
6191
6192 * config/aarch64/aarch64-simd.md
6193 (aarch64_vcond_internal<mode>): Handle unordered cases.
6194 * config/aarch64/iterators.md (v_cmp_result): New.
6195
6196 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
6197 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6198
6199 * config/arm/marvell-pj4.md: New file.
6200 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
6201 * config/arm/arm.md (generic_sched): Add marvell_pj4.
6202 (generic_vfp): Likewise.
6203 * config/arm/arm-cores.def: Add marvell-pj4.
6204 * config/arm/arm-tune.md: Regenerate.
6205 * config/arm/arm-tables.opt: Regenerate.
6206 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
6207 * doc/invoke.texi: Document marvell-pj4.
6208
6209 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
6210
6211 * config/aarch64/arm_neon.h: Map scalar types to standard types.
6212
6213 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6214
6215 PR debug/54114
6216 PR debug/54402
6217 PR debug/49888
6218 * var-tracking.c (negative_power_of_two_p): New.
6219 (global_get_addr_cache, local_get_addr_cache): New.
6220 (get_addr_from_global_cache, get_addr_from_local_cache): New.
6221 (vt_canonicalize_addr): Rewrite using the above. Adjust the
6222 heading comment.
6223 (vt_stack_offset_p): Remove.
6224 (vt_canon_true_dep): Always canonicalize loc's address.
6225 (clobber_overlapping_mems): Make sure we have a MEM.
6226 (local_get_addr_clear_given_value): New.
6227 (val_reset): Clear local cached entries.
6228 (compute_bb_dataflow): Create and release the local cache.
6229 Disable duplicate MEMs clobbering.
6230 (emit_notes_in_bb): Clobber MEMs likewise.
6231 (vt_emit_notes): Create and release the local cache.
6232 (vt_initialize, vt_finalize): Create and release the global
6233 cache, respectively.
6234 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
6235
6236 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6237
6238 PR libmudflap/53359
6239 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
6240 not found in the symtab.
6241
6242 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6243
6244 PR debug/56006
6245 PR rtl-optimization/55547
6246 PR rtl-optimization/53827
6247 PR debug/53671
6248 PR debug/49888
6249 * alias.c (offset_overlap_p): New, factored out of...
6250 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
6251 the conservative special case for symbolic constants. Don't
6252 adjust zero sizes on alignment.
6253
6254 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
6255
6256 PR rtl-optimization/52573
6257 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
6258 REG_UNUSED for the same register.
6259
6260 2013-01-17 Richard Biener <rguenther@suse.de>
6261 Marek Polacek <polacek@redhat.com>
6262
6263 PR rtl-optimization/55833
6264 * loop-unswitch.c (unswitch_loops): Move loop verification...
6265 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
6266 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
6267 Set it to true when we're removing a loop from hierarchy tree in
6268 an irreducible region.
6269 (fix_bb_placements): Adjust caller.
6270 (fix_loop_placements): Likewise.
6271
6272 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
6273
6274 * config/avr/builtins.def (DEF_BUILTIN): Factor out
6275 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
6276 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
6277 Remove ID. Adjust comments.
6278 * config/avr/avr-c.c (avr_builtin_name): Remove.
6279 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
6280 * config/avr/avr.c (avr_tolower): New static function.
6281 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
6282 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
6283 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
6284 default expansion.
6285
6286 2013-01-17 Jan Hubicka <jh@suse.cz>
6287
6288 PR tree-optimization/55273
6289 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
6290
6291 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
6292
6293 PR target/55981
6294 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
6295 store through atomic_store<mode>_1.
6296 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
6297
6298 2013-01-17 Martin Jambor <mjambor@suse.cz>
6299
6300 PR tree-optimizations/55264
6301 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
6302 for virtual methods.
6303 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
6304 virtual methods before inlining is over.
6305 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
6306 virtual functions.
6307 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
6308 non-virtual.
6309
6310 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
6311
6312 PR rtl-optimization/56005
6313 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
6314 pending reads for prefetch.
6315
6316 2013-01-16 Ian Bolton <ian.bolton@arm.com>
6317
6318 * config/aarch64/aarch64.md
6319 (*cstoresi_neg_uxtw): New pattern.
6320 (*cmovsi_insn_uxtw): New pattern.
6321 (*<optab>si3_uxtw): New pattern.
6322 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
6323 (*<optab>si3_insn_uxtw): New pattern.
6324 (*bswapsi2_uxtw): New pattern.
6325
6326 2013-01-16 Richard Biener <rguenther@suse.de>
6327
6328 * tree-inline.c (tree_function_versioning): Remove set but
6329 never used variable.
6330
6331 2013-01-16 Richard Biener <rguenther@suse.de>
6332
6333 PR tree-optimization/55964
6334 * tree-flow.h (rename_variables_in_loop): Remove.
6335 (rename_variables_in_bb): Likewise.
6336 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
6337 (copy_loop_before): Adjust and delete update-ssa status.
6338 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
6339 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
6340 (rename_variables_in_loop): Remove.
6341 (slpeel_update_phis_for_duplicate_loop): Likewise.
6342 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
6343 use available cfg machinery instead of duplicating it.
6344 Update PHI nodes and perform poor-mans SSA update here.
6345 (slpeel_tree_peel_loop_to_edge): Adjust.
6346
6347 2013-01-16 Richard Biener <rguenther@suse.de>
6348
6349 PR tree-optimization/54767
6350 PR tree-optimization/53465
6351 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
6352 (vrp_visit_phi_node): For PHI arguments coming via backedges
6353 drop all symbolical range information.
6354 (execute_vrp): Compute backedges.
6355
6356 2013-01-16 Richard Biener <rguenther@suse.de>
6357
6358 * doc/install.texi: Update CLooG and ISL requirements to
6359 0.18.0 and 0.11.1.
6360
6361 2013-01-16 Christian Bruel <christian.bruel@st.com>
6362
6363 PR target/55301
6364 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
6365 (broken_move): Handle UNSPECV_SP_SWITCH_B.
6366 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
6367
6368 2013-01-16 DJ Delorie <dj@redhat.com>
6369
6370 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
6371 (UNSPECV_SP_SWITCH_E): New.
6372 (sp_switch_1): Change to an unspec.
6373 (sp_switch_2): Change to an unspec. Don't use post-inc when we
6374 replace $r15.
6375
6376 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
6377
6378 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
6379 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
6380 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
6381 (expand_mem_thread_fence): Ditto.
6382 (expand_mem_signal_fence): Ditto.
6383 (expand_atomic_load): Ditto.
6384 (expand_atomic_store): Ditto.
6385
6386 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
6387
6388 PR rtl-optimization/55547
6389 PR rtl-optimization/53827
6390 PR debug/53671
6391 PR debug/49888
6392 * alias.c (memrefs_conflict_p): Set sizes to negative after
6393 AND adjustments.
6394
6395 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6396
6397 PR target/55940
6398 * function.c (thread_prologue_and_epilogue_insns): Always
6399 add crtl->drap_reg to set_up_by_prologue.set, even if
6400 stack_realign_drap is false.
6401
6402 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6403
6404 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
6405 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
6406 *call): Fix indention.
6407
6408 2013-01-15 Tom de Vries <tom@codesourcery.com>
6409
6410 PR target/55876
6411 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
6412 Update comment.
6413
6414 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
6415
6416 PR rtl-optimization/55153
6417 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
6418
6419 2013-01-15 Martin Jambor <mjambor@suse.cz>
6420
6421 PR tree-optimization/55920
6422 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
6423 accesses as grp_to_be_debug_replaced.
6424
6425 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6426
6427 PR tree-optimization/55920
6428 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
6429 there is non-useless type conversion needed from debug rhs to lhs,
6430 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
6431
6432 2013-01-15 Joseph Myers <joseph@codesourcery.com>
6433 Mikael Pettersson <mikpe@it.uu.se>
6434
6435 PR target/43961
6436 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
6437 Thumb.
6438 (ASM_OUTPUT_CASE_LABEL): Remove.
6439 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
6440 * final.c (shorten_branches): Update alignment of labels before
6441 jump tables if CASE_VECTOR_SHORTEN_MODE.
6442
6443 2013-01-15 Richard Biener <rguenther@suse.de>
6444
6445 PR bootstrap/55961
6446 * system.h: Do not include gmp.h for building host tools.
6447
6448 2013-01-15 Richard Biener <rguenther@suse.de>
6449
6450 PR middle-end/55882
6451 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6452 account for bitpos when computing alignment.
6453
6454 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
6455
6456 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
6457 (ix86_target_macros_internal): Likewise.
6458
6459 * config/i386/i386.c (m_CORE2I7): Removed.
6460 (m_CORE_HASWELL): New macro.
6461 (m_CORE_ALL): Likewise.
6462 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
6463 (initial_ix86_arch_features): Likewise.
6464 (processor_target_table): Initializations for Core avx2.
6465 (cpu_names): New names "core-avx2".
6466 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
6467 PROCESSOR_CORE_HASWELL.
6468 (ix86_issue_rate): New case.
6469 (ia32_multipass_dfa_lookahead): Likewise.
6470 (ix86_sched_init_global): Likewise.
6471
6472 * config/i386/i386.h (TARGET_HASWELL): New macro.
6473 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
6474 (processor_type): New PROCESSOR_HASWELL.
6475
6476 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6477
6478 PR tree-optimization/55955
6479 * tree-vect-loop.c (vectorizable_reduction): Give up early on
6480 *SHIFT_EXPR and *ROTATE_EXPR codes.
6481
6482 PR tree-optimization/48766
6483 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
6484 -ftrapv disable -fwrapv.
6485
6486 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6487
6488 PR target/55974
6489 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
6490 etc. to 1 and not to __flash.
6491 Use LL suffix for __INT24_MAX__ with -mint8.
6492 Use ULL suffix for __UINT24_MAX__ with -mint8.
6493
6494 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6495
6496 * config/avr/avr-arch.h
6497 (struct base_arch_s): Use typedef avr_arch_t instead.
6498 (struct arch_info_s): Use typedef avr_arch_info_t instead.
6499 (struct mcu_type_s): Use typedef avr_mcu_t instead.
6500 * config/avr/avr.c: Same.
6501 * config/avr/avr-devices.c: Same.
6502 * config/avr/driver-avr.c: Same.
6503 * config/avr/gen-avr-mmcu-texi.c: Same.
6504 * config/avr/avr-mcus.def: Adjust comment.
6505
6506 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
6507
6508 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
6509 * config/aarch64/iterators.md (VALLDI): New.
6510
6511 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
6512 Andi Kleen <ak@linux.intel.com>
6513
6514 PR target/55948
6515 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
6516 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
6517 memmodel flag.
6518
6519 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6520
6521 * config/avr/avr-stdint.h: Remove trailing blanks.
6522 * config/avr/avr-log.h: Same.
6523 * config/avr/avr-arch.h: Same.
6524 * config/avr/avr-devices.c: Same.
6525 * config/avr/avr-dimode.md: Same.
6526 * config/avr/predicates.md: Same.
6527 * config/avr/avr-c.c: Same. And fix typo.
6528
6529 * config/avr/avr-protos.h: Same. And:
6530 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
6531 (init_cumulative_args): Rename to avr_init_cumulative_args.
6532 (expand_prologue): Rename to avr_expand_prologue.
6533 (expand_epilogue): Rename to avr_expand_epilogue.
6534 (adjust_insn_length): Rename to avr_adjust_insn_length.
6535 (notice_update_cc): Rename to avr_notice_update_cc.
6536 (final_prescan_insn): Rename to avr_final_prescan_insn.
6537 * config/avr/avr.c: Same.
6538 * config/avr/avr.h: Same.
6539 * config/avr/avr.md: Remove trailing blanks.
6540 (prologue): Use avr_expand_prologue.
6541 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
6542
6543 2013-01-14 Richard Biener <rguenther@suse.de>
6544
6545 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
6546 verify_location, collect_subblocks): New functions.
6547 (verify_gimple_in_cfg): Verify that locations only reference
6548 BLOCKs in the functions BLOCK tree.
6549
6550 2013-01-14 Richard Biener <rguenther@suse.de>
6551
6552 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
6553 PHI argument.
6554 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
6555 unshare reference.
6556 (insert_out_of_ssa_copy_on_edge): Likewise.
6557 (rewrite_close_phi_out_of_ssa): Likewise.
6558 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
6559 debug expressions.
6560 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
6561 propagated constants.
6562 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
6563 can not be shared.
6564
6565 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6566
6567 * config/avr/avr-modes.def: Add GPL copyright notice.
6568
6569 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
6570
6571 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
6572 MEMMODEL_MASK to determine memory model.
6573 (atomic_store<mode>): Ditto from operands[2].
6574 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
6575
6576 2013-01-13 Jakub Jelinek <jakub@redhat.com>
6577
6578 PR fortran/55935
6579 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
6580 (fold_gimple_assign): Don't call unshare_expr here.
6581 (fold_ctor_reference): Call unshare_expr.
6582
6583 2013-01-13 Terry Guo <terry.guo@arm.com>
6584
6585 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
6586 * doc/fragments.texi: Document MULTILIB_REUSE.
6587 * gcc.c (multilib_reuse): New internal spec.
6588 (set_multilib_dir): Also search multilib from multilib_reuse.
6589 * genmultilib (tmpmultilib3): Refactor code.
6590 (tmpmultilib4): Ditto.
6591 (multilib_reuse): New multilib argument.
6592
6593 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
6594
6595 * Makefile.in: Update copyright.
6596
6597 2013-01-12 Tom de Vries <tom@codesourcery.com>
6598
6599 PR middle-end/55890
6600 * calls.c (expand_call): Check if arg_nr is valid.
6601
6602 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6603
6604 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
6605 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
6606 documentation. Add missing '__' in front of
6607 __builtin_ia32_packssdw256.
6608
6609 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6610
6611 PR target/55719
6612 * config/s390/s390.c (s390_preferred_reload_class): Do not return
6613 NO_REGS for larl operands.
6614 (s390_reload_larl_operand): Use s390_load_address instead of
6615 emit_move_insn.
6616
6617 2013-01-11 Richard Biener <rguenther@suse.de>
6618
6619 * tree-cfg.c (verify_node_sharing_1): Split out from ...
6620 (verify_node_sharing): ... here.
6621 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
6622
6623 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
6624
6625 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
6626 Substitute TREECHECKING.
6627 * configure: Regenerate.
6628 * Makefile.in (TREECHECKING): New.
6629
6630 2013-01-11 Richard Guenther <rguenther@suse.de>
6631
6632 PR tree-optimization/44061
6633 * tree-vrp.c (extract_range_basic): Compute zero as
6634 value-range for __builtin_constant_p of function parameters.
6635
6636 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
6637
6638 Update copyright years.
6639
6640 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
6641
6642 PR rtl-optimization/55672
6643 * lra-eliminations.c (mark_not_eliminable): Permit addition with
6644 const to be eliminable.
6645
6646 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
6647
6648 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
6649 * configure: Regenerate.
6650
6651 2013-01-10 Richard Biener <rguenther@suse.de>
6652
6653 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
6654
6655 2013-01-10 Richard Biener <rguenther@suse.de>
6656
6657 PR bootstrap/55792
6658 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
6659 locations for virtual PHI arguments.
6660 (rewrite_update_phi_arguments): Likewise.
6661
6662 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
6663
6664 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
6665 on to assembler.
6666
6667 2013-01-10 Jakub Jelinek <jakub@redhat.com>
6668
6669 PR tree-optimization/55921
6670 * tree-complex.c (expand_complex_asm): New function.
6671 (expand_complex_operations_1): Call it for GIMPLE_ASM.
6672
6673 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6674
6675 PR target/55718
6676 * config/s390/s390.c (s390_symref_operand_p)
6677 (s390_loadrelative_operand_p): Merge the two functions.
6678 (s390_check_qrst_address, print_operand_address): Add parameters
6679 to s390_loadrelative_operand_p invokation.
6680 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
6681 (s390_reload_larl_operand, s390_secondary_reload): Use
6682 s390_loadrelative_operand_p instead of s390_symref_operand_p.
6683 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
6684
6685 2013-01-09 Mike Stump <mikestump@comcast.net>
6686
6687 * dse.c (record_store): Remove unnecessary assert.
6688
6689 2013-01-09 Jan Hubicka <jh@suse.cz>
6690
6691 PR tree-optimization/55569
6692 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
6693 * cfgloop.h (scale_loop_profile): Likewise.
6694
6695 2013-01-09 Jan Hubicka <jh@suse.cz>
6696
6697 PR lto/45375
6698 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
6699 functions.
6700 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
6701
6702 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
6703
6704 PR middle-end/55114
6705 * expr.h (maybe_emit_group_store): Declare.
6706 * expr.c (maybe_emit_group_store): New function.
6707 * builtins.c (expand_builtin_int_roundingfn): Call it.
6708 (expand_builtin_int_roundingfn_2): Likewise.
6709
6710 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
6711
6712 PR rtl-optimization/55829
6713 * lra-constraints.c (match_reload): Add code for absent output.
6714 (curr_insn_transform): Add code for reloads of matched inputs
6715 without output.
6716
6717 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
6718
6719 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
6720 attribute of movddup insn to DF.
6721 (*vec_interleave_lowv2df): Ditto.
6722 (vec_dupv2df): Ditto.
6723
6724 2013-01-09 Jan Hubicka <jh@suse.cz>
6725
6726 PR tree-optimiation/55875
6727 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
6728 EVERY_ITERATION parameter.
6729 (number_of_iterations_exit): Check if exit is executed every iteration.
6730 (idx_infer_loop_bounds): Similarly here.
6731 (n_of_executions_at_most): Simplify
6732 to only test for cases where statement is dominated by the
6733 particular bound; handle correctly the "postdominance" test.
6734 (scev_probably_wraps_p): Use max loop iterations info
6735 as a global bound first.
6736
6737 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
6738 Nick Clifton <nickc@redhat.com>
6739
6740 * config/v850/v850.md (cbranchsf4): New pattern.
6741 (cstoresf4): New pattern.
6742 (cbranchdf4): New pattern.
6743 (cstoredf4): New pattern.
6744 (movsicc): Disallow floating point comparisons.
6745 (cmpsf_le_insn): Fix order of operators.
6746 (cmpsf_lt_insn): Likewise.
6747 (cmpsf_eq_insn): Likewise.
6748 (cmpdf_le_insn): Likewise.
6749 (cmpdf_lt_insn): Likewise.
6750 (cmpdf_eq_insn): Likewise.
6751 (cmpsf_ge_insn): Use LE comparison.
6752 (cmpdf_ge_insn): Likewise.
6753 (cmpsf_gt_insn): Use LT comparison.
6754 (cmpdf_gt_insn): Likewise.
6755 (cmpsf_ne_insn): Delete pattern.
6756 (cmpdf_ne_insn): Delete pattern.
6757 * config/v850/v850.c (v850_gen_float_compare): Use
6758 gen_cmpdf_eq_insn for NE comparison.
6759 (v850_float_z_comparison_operator)
6760 (v850_float_nz_comparison_operator): Move from here ...
6761 * config/v850/predicates.md: ... to here. Move GT and GE
6762 comparisons into v850_float_z_comparison_operator.
6763 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
6764 Delete prototype.
6765 (v850_float_nz_comparison_operator): Likewise.
6766
6767 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6768
6769 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
6770 with calls to gen_insvsi/gen_insvdi.
6771
6772 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6773
6774 * config/i386/i386.c (initial_ix86_tune_features): Set up
6775 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
6776
6777 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
6778 Jakub Jelinek <jakub@redhat.com>
6779
6780 PR tree-optimization/48189
6781 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
6782 If nitercst is 0, don't predict the exit edge.
6783
6784 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6785
6786 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
6787 in asm_fprintf with reg_names.
6788 (aarch64_print_operand_address): Likewise.
6789 (aarch64_return_addr): Likewise.
6790 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
6791
6792 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6793
6794 * config/pa/pa.h (VAL_U6_BITS_P): Define.
6795 (INT_U6_BITS): Likewise.
6796 * config/pa/predicates.md (uint6_operand): New predicate.
6797 (shift5_operand, shift6_operand): Likewise.
6798 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
6799 arith32_operand.
6800 (lshrdi3): Use shift6_operand.
6801 (shrpsi4, shrpdi4): New insn patterns.
6802 (extzv): Delete expander.
6803 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
6804 predicates in unamed zero extract patterns. Tighten common constraint.
6805 (extv): Delete expander.
6806 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
6807 predicates in unamed sign extract patterns. Tighten common constraint.
6808 (insv): Delete expander.
6809 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
6810 predicates in unamed insert patterns. Tighten common constraint.
6811 Change uint32_operand predicate to uint6_operand predicate in unamed
6812 DImode pattern to insert constant values of type 1...1xxxx.
6813
6814 2013-01-04 Jan Hubicka <jh@suse.cz>
6815
6816 PR tree-optimization/55823
6817 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
6818 issue.
6819
6820 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6821 Uros Bizjak <ubizjak@gmail.com>
6822
6823 PR rtl-optimization/55845
6824 * df-problems.c (can_move_insns_across): Stop scanning at
6825 volatile_insn_p source instruction or give up if
6826 across_from .. across_to range contains any volatile_insn_p
6827 instructions.
6828
6829 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
6830
6831 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
6832 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
6833 Declare.
6834 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
6835 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
6836
6837 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6838
6839 PR fortran/55341
6840 * asan.c (asan_clear_shadow): New function.
6841 (asan_emit_stack_protection): Use it.
6842
6843 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
6844
6845 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
6846 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
6847 with tab instead of space.
6848
6849 2013-01-08 Nick Clifton <nickc@redhat.com>
6850
6851 * config/rl78/rl78.c (rl78_expand_prologue): Always select
6852 register bank 0 at the start of an interrupt handler.
6853 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
6854 MDBH registers.
6855
6856 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
6857
6858 * config/aarch64/aarch64-simd.md
6859 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
6860 (aarch64_simd_bsl): Likewise.
6861 (aarch64_vcond_internal<mode>): Likewise.
6862 (vcond<mode><mode>): Likewise.
6863 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
6864 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
6865
6866 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
6867
6868 * config/aarch64/aarch64-builtins.c
6869 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
6870
6871 2013-01-08 Martin Jambor <mjambor@suse.cz>
6872
6873 PR debug/55579
6874 * tree-sra.c (analyze_access_subtree): Return true also after
6875 potentially creating a debug-only replacement.
6876
6877 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6878
6879 PR middle-end/55890
6880 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
6881
6882 PR tree-optimization/54120
6883 * tree-vrp.c (range_fits_type_p): Don't allow
6884 src_precision < precision from signed vr to unsigned_p
6885 if vr->min or vr->max is negative.
6886 (simplify_float_conversion_using_ranges): Test can_float_p
6887 against CODE_FOR_nothing.
6888
6889 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6890 Richard Biener <rguenther@suse.de>
6891
6892 PR middle-end/55851
6893 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
6894 types instead of just INTEGER_TYPE types.
6895
6896 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
6897
6898 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
6899 TF_SIZE): Define.
6900
6901 2013-01-07 Steve Ellcey <sellcey@mips.com>
6902
6903 PR target/42661
6904 * config/mips/mips.opt: Change mad to mmad to match documentation.
6905
6906 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6907
6908 PR target/55897
6909 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
6910 .progmemx.data now.
6911
6912 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6913
6914 PR target/55897
6915 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
6916 (avr_addrspace_t): Add .section_name field.
6917 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
6918 array size.
6919 (avr_addrspace): Same. Initialize .section_name. Remove last
6920 NULL entry. Put __memx into .progmemx.data.
6921 (progmem_section_prefix): Remove.
6922 (avr_asm_init_sections): No need to initialize progmem_section.
6923 (avr_asm_named_section): Use avr_addrspace[].section_name to get
6924 section name prefix.
6925 (avr_asm_select_section): Ditto. And use get_unnamed_section to
6926 retrieve the progmem section.
6927 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
6928 boundary to run over avr_addrspace[].
6929 (avr_register_target_pragmas): Ditto.
6930
6931 2013-01-06 Jakub Jelinek <jakub@redhat.com>
6932
6933 * varasm.c (output_constant_def_contents): For asan_protect_global
6934 protected strings, adjust DECL_ALIGN if needed, before testing for
6935 anchored symbols.
6936 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
6937 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
6938 normal decls.
6939 (output_object_block): For asan protected decls, emit asan padding
6940 after their contents.
6941 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
6942 (asan_finish_file): Test it here instead.
6943
6944 2013-01-07 Nick Clifton <nickc@redhat.com>
6945 Matthias Klose <doko@debian.org>
6946 Doug Kwan <dougkwan@google.com>
6947 H.J. Lu <hongjiu.lu@intel.com>
6948
6949 PR driver/55470
6950 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
6951
6952 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
6953
6954 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
6955
6956 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
6957
6958 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
6959
6960 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6961
6962 PR target/54461
6963 * doc/install.texi (Cross-Compiler-Specific Options): Document
6964 --with-avrlibc.
6965
6966 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
6967
6968 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
6969 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
6970 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
6971 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
6972 vqmovun_high_s64): Fix source operand number and update copyright.
6973
6974 2013-01-07 Richard Biener <rguenther@suse.de>
6975
6976 PR middle-end/55890
6977 * gimple.h (gimple_call_builtin_p): New overload.
6978 * gimple.c (validate_call): New function.
6979 (gimple_call_builtin_p): Likewise.
6980 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6981 Use gimple_call_builtin_p.
6982 (find_func_clobbers): Likewise.
6983 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
6984 (strlen_optimize_stmt): Likewise.
6985
6986 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
6987
6988 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
6989 (vld1q_dup_*): Likewise.
6990 (vld1_*): Likewise.
6991 (vld1q_*): Likewise.
6992 (vld1_lane_*): Likewise.
6993 (vld1q_lane_*): Likewise.
6994
6995 2013-01-07 Richard Biener <rguenther@suse.de>
6996
6997 * lto-streamer.h (LTO_minor_version): Bump to 2.
6998
6999 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
7000
7001 * config/aarch64/aarch64-protos.h
7002 (aarch64_const_double_zero_rtx_p): Rename to...
7003 (aarch64_float_const_zero_rtx_p): ...this.
7004 (aarch64_float_const_representable_p): New.
7005 (aarch64_output_simd_mov_immediate): Likewise.
7006 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
7007 move immediate case.
7008 * config/aarch64/aarch64.c
7009 (aarch64_const_double_zero_rtx_p): Rename to...
7010 (aarch64_float_const_zero_rtx_p): ...this.
7011 (aarch64_print_operand): Allow printing of new constants.
7012 (aarch64_valid_floating_const): New.
7013 (aarch64_legitimate_constant_p): Check for valid floating-point
7014 constants.
7015 (aarch64_simd_valid_immediate): Likewise.
7016 (aarch64_vect_float_const_representable_p): New.
7017 (aarch64_float_const_representable_p): Likewise.
7018 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
7019 (aarch64_output_simd_mov_immediate): New.
7020 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
7021 (*movdf_aarch64): Likewise.
7022 * config/aarch64/constraints.md (Ufc): New.
7023 (Y): call aarch64_float_const_zero_rtx.
7024 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
7025
7026 2013-01-07 Richard Biener <rguenther@suse.de>
7027
7028 PR tree-optimization/55888
7029 PR tree-optimization/55862
7030 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
7031 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
7032 not if it is contained therein.
7033
7034 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7035
7036 * config/avr/t-avr: Typo.
7037
7038 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7039
7040 PR55243
7041 * config/avr/t-avr: Don't automatically rebuild
7042 $(srcdir)/config/avr/t-multilib
7043 $(srcdir)/config/avr/avr-tables.opt
7044 $(srcdir)/doc/avr-mmcu.texi
7045 (avr-mcus): New phony target to build them on request.
7046 (s-avr-mlib, s-avr-mmcu-texi): Remove.
7047 * avr/avr-mcus.def: Adjust comments.
7048
7049 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
7050
7051 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
7052
7053 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7054
7055 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
7056
7057 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7058
7059 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
7060
7061 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
7062
7063 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
7064 to generate profiling.
7065 * config/rs6000/aix64.h (LIB_SPEC): Same.
7066
7067 2013-01-04 Andrew Pinski <apinski@cavium.com>
7068
7069 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
7070 New function.
7071 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
7072
7073 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
7074
7075 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
7076 unconditionally.
7077 (ix86_expand_move): Ditto.
7078 (ix86_zero_extend_to_Pmode): Ditto.
7079 (ix86_expand_call): Ditto.
7080 (ix86_expand_special_args_builtin): Ditto.
7081 (ix86_expand_builtin): Ditto.
7082
7083 2013-01-04 Richard Biener <rguenther@suse.de>
7084
7085 PR tree-optimization/55862
7086 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
7087 translating them through PHI nodes.
7088
7089 2013-01-04 Martin Jambor <mjambor@suse.cz>
7090
7091 PR tree-optimization/55755
7092 * tree-sra.c (sra_modify_assign): Do not check that an access has no
7093 children when trying to avoid producing a VIEW_CONVERT_EXPR.
7094
7095 2013-01-04 Marek Polacek <polacek@redhat.com>
7096
7097 PR middle-end/55859
7098 * opts.c (default_options_optimization): Clarify error message.
7099
7100 2013-01-04 Richard Biener <rguenther@suse.de>
7101
7102 PR middle-end/55863
7103 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
7104 reassociation.
7105
7106 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7107
7108 PR target/53789
7109 * config/pa/pa.md (movsi): Revert previous change.
7110 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
7111 references.
7112
7113 2013-01-03 Richard Henderson <rth@redhat.com>
7114
7115 * config/i386/i386.c (ix86_expand_move): Always assign to op1
7116 after eliminating TLS symbols.
7117
7118 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
7119
7120 PR bootstrap/50167
7121 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
7122 * graphite-poly.c (debug_gmp_value): Likewise.
7123
7124 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
7125
7126 PR target/55712
7127 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
7128 selected code model, define __code_mode_small__, __code_model_medium__,
7129 __code_model_large__, __code_model_32__ or __code_model_kernel__.
7130 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
7131 xchg temporary register with %k. Declare temporary register as
7132 early clobbered.
7133 [__x86_64__]: For medium and large code models, preserve %rbx register.
7134
7135 2013-01-03 Richard Biener <rguenther@suse.de>
7136
7137 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
7138 (dump_subscript): Adjust.
7139 (finalize_ddr_dependent): Do not dump redundant info.
7140 (analyze_siv_subscript): Adjust.
7141 (subscript_dependence_tester): Likewise.
7142 (compute_affine_dependence): Likewise.
7143
7144 2013-01-03 Richard Biener <rguenther@suse.de>
7145
7146 Revert
7147 2013-01-03 Richard Biener <rguenther@suse.de>
7148
7149 PR tree-optimization/55857
7150 * tree-vect-stmts.c (vectorizable_load): Do not setup
7151 re-alignment for invariant loads.
7152
7153 2013-01-02 Richard Biener <rguenther@suse.de>
7154
7155 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7156 invariant load do not generate a vector load from the scalar location.
7157
7158 2013-01-03 Richard Biener <rguenther@suse.de>
7159
7160 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
7161 for not vectorizing.
7162 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7163 not build INDIRECT_REFs, call get_name once only.
7164 (vect_create_data_ref_ptr): Likewise. Dump base object kind
7165 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
7166
7167 2013-01-03 Richard Biener <rguenther@suse.de>
7168
7169 PR tree-optimization/55857
7170 * tree-vect-stmts.c (vectorizable_load): Do not setup
7171 re-alignment for invariant loads.
7172
7173 2013-01-03 Richard Biener <rguenther@suse.de>
7174
7175 PR lto/55848
7176 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
7177 prefer a built-in decl.
7178
7179 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7180
7181 * gcc.c (process_command): Update copyright notice dates.
7182 * gcov.c (print_version): Likewise.
7183 * gcov-dump.c (print_version): Likewise.
7184
7185 PR rtl-optimization/55838
7186 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
7187 iv0.step, iv1.step and step.
7188
7189 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7190 Marc Glisse <marc.glisse@inria.fr>
7191
7192 PR tree-optimization/55832
7193 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
7194 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
7195 integer_{one,zero}_node.
7196
7197 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7198
7199 PR debug/54402
7200 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
7201 * var-tracking.c (reverse_op): Don't add reverse ops to
7202 VALUEs that have already
7203 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
7204
7205 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
7206
7207 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
7208
7209 2013-01-02 Teresa Johnson <tejohnson@google.com>
7210
7211 * dumpfile.c (dump_loc): Print filename with location.
7212 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
7213 new location_t parameter to emit complete unroll message with
7214 new dump framework.
7215 (canonicalize_loop_induction_variables): Compute loops location
7216 and pass to try_unroll_loop_completely.
7217 * loop-unroll.c (report_unroll_peel): New function.
7218 (peel_loops_completely): Use new dump format with location
7219 for main dumpfile message, and invoke report_unroll_peel on success.
7220 (decide_unrolling_and_peeling): Ditto.
7221 (decide_peel_once_rolling): Remove old dumpfile message subsumed
7222 by report_unroll_peel.
7223 (decide_peel_completely): Ditto.
7224 (decide_unroll_constant_iterations): Ditto.
7225 (decide_unroll_runtime_iterations): Ditto.
7226 (decide_peel_simple): Ditto.
7227 (decide_unroll_stupid): Ditto.
7228 * cfgloop.c (get_loop_location): New function.
7229 * cfgloop.h (get_loop_location): Declare.
7230
7231 2013-01-02 Sriraman Tallam <tmsriram@google.com>
7232
7233 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
7234 NULL.
7235
7236 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7237
7238 PR middle-end/55198
7239 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
7240 BLKmode objects when EXPAND_MEMORY is specified.
7241
7242 2013-01-02 Sriraman Tallam <tmsriram@google.com>
7243
7244 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
7245 in loop predicate.
7246 (fold_builtin_cpu): Do not share cpu model decls across statements.
7247
7248 2013-01-02 Jason Merrill <jason@redhat.com>
7249
7250 PR c++/55804
7251 * tree.c (build_array_type_1): Revert earlier change.
7252
7253 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
7254
7255 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
7256 "cortex-a57".
7257 * config/aarch64/aarch64-tune.md: Re-generate.
7258
7259 2013-01-02 Richard Biener <rguenther@suse.de>
7260
7261 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7262 invariant load do not generate a vector load from the scalar location.
7263
7264 2013-01-02 Richard Biener <rguenther@suse.de>
7265
7266 PR bootstrap/55784
7267 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
7268 * configure: Regenerate.
7269
7270 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7271
7272 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
7273 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
7274 (expand_builtin_int_roundingfn_2): Keep the original target around
7275 for the fallback case.
7276
7277 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7278
7279 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
7280 to be clear for sign changes.
7281
7282 2013-01-01 Jan Hubicka <jh@suse.cz>
7283
7284 * ipa-inline-analysis.c: Fix formatting.
7285
7286 2013-01-01 Jakub Jelinek <jakub@redhat.com>
7287
7288 PR tree-optimization/55831
7289 * tree-vect-loop.c (get_initial_def_for_induction): Use
7290 gsi_after_labels instead of gsi_start_bb.
7291 \f
7292 Copyright (C) 2013 Free Software Foundation, Inc.
7293
7294 Copying and distribution of this file, with or without modification,
7295 are permitted in any medium without royalty provided the copyright
7296 notice and this notice are preserved.