2013-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobe0c5c322b72522e3b2f0f214cee0b1d3cc6507d0
1 2013-05-15  Richard Biener  <rguenther@suse.de>
3         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4         of MSG_OPTIMIZED_LOCATIONS.
5         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
6         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
7         message.
8         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
9         of MSG_OPTIMIZED_LOCATIONS.
10         (execute_vect_slp): Likewise.
11         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
12         (vect_create_cond_for_alias_checks): Likewise.
13         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
14         (vect_recog_widen_mult_pattern): Likewise.
15         (vect_recog_widen_sum_pattern): Likewise.
16         (vect_recog_over_widening_pattern): Likewise.
17         (vect_recog_widen_shift_pattern): Likewise.
18         (vect_recog_vector_vector_shift_pattern): Likewise.
19         (vect_recog_divmod_pattern): Likewise.
20         (vect_recog_mixed_size_cond_pattern): Likewise.
21         (vect_recog_bool_pattern): Likewise.
22         (vect_pattern_recog_1): Likewise.
24 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
27         non-functions to builtin_unreachable.
28         * ipa-inline-transform.c (inline_call): Do not assert estimates were
29         correct when new direct edges were discovered.
31 2013-05-15  Martin Jambor  <mjambor@suse.cz>
33         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
34         header, print symbol order instead of node uid, print more information
35         about indirect edge targets.
36         (ipa_make_edge_direct_to_target): Print symbol order instead of node
37         uids.
38         (ipa_make_edge_direct_to_target): Likewise.
39         (remove_described_reference): Likewise.
40         (propagate_controlled_uses): Likewise.
41         (ipa_print_node_params): Also print symbol order.
42         (ipcp_transform_function): Print symbol order instead of node uids.
43         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
44         (cgraph_get_create_real_symbol_node): Likewise.
45         * ipa-cp.c (print_lattice): Likewise.
46         (print_all_lattices): Likewise.
47         (determine_versionability): Likewise.
48         (initialize_node_lattices): Likewise.
49         (estimate_local_effects): Likewise.
50         (update_profiling_info): Likewise.
51         (create_specialized_node): Likewise.
52         (perhaps_add_new_callers): Likewise.
53         (decide_about_value): Likewise.
54         (decide_whether_version_node): Likewise.
55         (identify_dead_nodes): Likewise.
56         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
57         (dump_inline_summary): Likewise.
58         (estimate_node_size_and_time): Likewise.
59         (inline_analyze_function): Likewise.
60         * ipa-inline.c (report_inline_failed_reason): Likewise.
61         (want_early_inline_function_p): Likewise.
62         (edge_badness): Likewise.
63         (update_edge_key): Likewise.
64         (inline_small_functions): Likewise.  Add dumping of order to two other
65         dumps.
66         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
67         instead of node uids.
68         (propagate_pure_const): Likewise.
69         (propagate_pure_const): Likewise.
70         * ipa-utils.c (dump_cgraph_node_set): Likewise.
71         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
72         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
73         of node uids.
74         * tree-pretty-print.c (dump_function_header): Likewise.
75         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
76         Print symbol order instead of node uids.
78 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
80         * config/s390/s390.c (s390_register_move_cost): Don't impose the
81         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
83 2013-05-15  Richard Biener  <rguenther@suse.de>
85         PR tree-optimization/57275
86         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
87         return value for fail to do runtime alias checks for gather loads.
89 2013-05-15  Jan Hubicka  <jh@suse.cz>
91         PR lto/57038
92         PR lto/47375
93         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol; weakrefs are
94         not external.
95         (lto_symtab_merge_decls): Fix thinko when dealing with non-lto_symtab decls.
96         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
97         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
98         * varpool.c (dump_varpool_node): Dump more flags.
100 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
102         * config/i386/i386.c (processor_alias_table): Add instruction
103         FSGSBASE for AMD bdver3 architecture.
105 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
107         * tree.c (warn_deprecated_use): Print file:line using locus color.
108         * diagnostic.c (diagnostic_report_current_module): Print file:line
109         and file:line:column using locus color.
111 2013-05-14  Mike Stump  <mikestump@comcast.net>
113         * gdbinit.in: Add __null.
115 2013-05-14  Mike Stump  <mikestump@comcast.net>
117         * recog.h: Rename struct recog_data to Recog_data.
118         * recog.c: Likewise.
119         * reload.c (can_reload_into): Likewise.
120         * config/picochip/picochip.c: Likewise.
122 2013-05-14  Mike Stump  <mikestump@comcast.net>
124         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
126 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
128         * resource.h (struct resources): Remove unch_memory member.
129         (CLEAR_RESOURCE): Don't clear unch_memory.
130         * resource.c (mark_referenced_resources): Don't set it.
131         (mark_set_resources): Likewise.
132         (mark_target_live_regs): Don't clear it.
133         (init_resource_info): Likewise.
134         * reorg.c (resource_conflicts_p): Don't compare it.
135         (redundant_insn): Don't set it.
137         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
138         Remove prototypes.
139         * emit-rtl.c (next_label): Remove unused function.
140         (skip_consecutive_labels, link_cc0_insns): Move to ...
141         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
142         only place where these functions are used, and make them static.
144 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
146         * fold-const.c (fold_negate_expr): Handle vectors.
147         (fold_truth_not_expr): Make it static.
148         (fold_invert_truthvalue): New static function.
149         (invert_truthvalue_loc): Handle vectors. Do not call
150         fold_truth_not_expr directly.
151         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
152         <TRUTH_NOT_EXPR>: Do not cast to boolean.
153         (fold_comparison): Handle vector constants.
154         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
155         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
156         * tree.h (fold_truth_not_expr): Remove declaration.
158 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
160         * config/aarch64/aarch64-simd.md
161         (aarch64_vcond_internal<mode>): Rename to...
162         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
163         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
164         float modes. Clarify all iterator modes.
165         (vcond<mode><mode>): Use new name for vcond expanders.
166         (vcond<v_cmp_result><mode>): Likewise.
167         (vcondu<mode><mode>: Likewise.
168         * config/aarch64/iterators.md (VDQF_COND): New.
170 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
172         PR bootstrap/57266
173         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
174         variable for the shift amount. Check that we shift by non-negative
175         amounts.
177 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
179         PR target/42017
180         * config/arm/arm.h (EPILOGUE_USES): Only return true
181         for LR_REGNUM after epilogue_completed.
183 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
185         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
186         is error_mark_node.
188 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
190         PR target/57261
191         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
192         and Solaris 11+/x86 with gld.
193         * configure: Regenerate.
195 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
197         * expmed.c (expand_shift_1): Canonicalize rotates by
198         constant bitsize / 2 to bitsize - 1.
199         * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
200         case ROTATERT>: Likewise.
202         Revert:
203         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
205         * config/i386/i386.md (rotateinv): New code attr.
206         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
207         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
208         roll $31, %eax, etc.
210 2013-05-14  Richard Biener  <rguenther@suse.de>
212         PR middle-end/57235
213         * tree-eh.c (sink_clobbers): Give up for successors with
214         multiple predecessors and no virtual uses.
216 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
218         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
219         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
221 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
223         PR middle-end/57251
224         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
225         the case when both op0 and op1 have VOIDmode.
227 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
229         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
230         in multiply-accumulate mode.
232 2013-05-13  Guozhi Wei  <carrot@google.com>
234         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
236 2013-05-13  Kai Tietz  <ktietz@redhat.com>
238         PR target/56975
239         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
240         * config/i386/i386.h (TARGET_PECOFF): Define by default
241         as false.
242         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
243         * config/i386/i386.c (ix86_option_override_internal):
244         Likewise.
245         (ix86_expand_prologue): Likewise.
246         (ix86_expand_split_stack_prologue): Likewise.
247         (legitimate_pic_address_disp_p): Likewise.
248         (legitimize_pic_address): Likewise.
249         (legitimize_tls_address): Likewise.
250         (legitimize_pe_coff_symbol): Likewise.
251         (output_pic_addr_const): Likewise.
252         (construct_plt_address): Likewise.
253         (ix86_expand_call): Likewise.
254         (x86_output_mi_thunk): Likewise.
255         (x86_function_profiler): Likewise.
257 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
259         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
260         similar switch cases.
261         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
262         (aarch64_simd_mov_to_<mode>low): Delete.
263         (aarch64_simd_mov_to_<mode>high): Delete.
264         (move_lo_quad_<mode>): Add w<-r alternative.
265         (aarch64_simd_move_hi_quad_<mode>): Likewise.
266         (aarch64_simd_mov_from_*): Update type attribute.
267         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
268         statement.
270 2013-05-13  Jan Hubicka  <jh@suse.cz>
272         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
273         * config/i386/i386.c (ix86_compute_frame_layout,
274         ix86_expand_epilogue, emit_i387_cw_initialization, ix86_expand_vector_move_misalign,
275         ix86_fp_comparison_strategy, ix86_local_alignment): Fix use of size/speed predicates.
277 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
279         PR tree-optimization/45216
280         PR tree-optimization/57157
281         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
282         the (-Y) & (B - 1) variant if OP is |.
283         * expmed.c (expand_shift_1): For rotations by const0_rtx just
284         return shifted.  Use (-op1) & (prec - 1) as other_amount
285         instead of prec - op1.
287 2013-05-13  Martin Jambor  <mjambor@suse.cz>
289         PR middle-end/42371
290         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
291         (ipa_constant_data): New type.
292         (ipa_jump_func): Use ipa_constant_data to hold information about
293         constant jump functions.
294         (ipa_get_jf_constant): Adjust to jump function type changes.
295         (ipa_get_jf_constant_rdesc): New function.
296         (ipa_param_descriptor): New field controlled_uses.
297         (ipa_get_controlled_uses): New function.
298         (ipa_set_controlled_uses): Likewise.
299         * ipa-ref.h (ipa_find_reference): Declare.
300         * ipa-prop.c (ipa_cst_ref_desc): New type.
301         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
302         changes.
303         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
304         New parameter cs.  Adjust all callers.
305         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
306         (remove_described_reference): New function.
307         (jfunc_rdesc_usable): Likewise.
308         (try_make_edge_direct_simple_call): Decrement controlled use count,
309         attempt to remove reference if it hits zero.
310         (combine_controlled_uses_counters): New function.
311         (propagate_controlled_uses): Likewise.
312         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
313         (ipa_edge_duplication_hook): Duplicate reference descriptions.
314         (ipa_print_node_params): Print described use counter.
315         (ipa_write_jump_function): Adjust to jump function type changes.
316         (ipa_read_jump_function): New parameter CS, pass it to
317         ipa_set_jf_constant.  Adjust caller.
318         (ipa_write_node_info): Stream controlled use count
319         (ipa_read_node_info): Likewise.
320         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
321         asserting.
322         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
323         count.  Remove cloning-added reference if it reaches zero.
324         * ipa-ref.c (ipa_find_reference): New function.
326 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
328         * config/i386/i386.c (processor_target_table): Modified default 
329         alignment values for AMD BD and BT architectures.
331 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
333         * tree-vect-generic.c (uniform_vector_p): Move ...
334         * tree.c (uniform_vector_p): ... here.
335         * tree.h (uniform_vector_p): Declare it.
336         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
337         into a scalar.
339 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
341         PR tree-optimization/57230
342         * tree-ssa-strlen.c (handle_char_store): Record length for
343         array store from STRING_CST.
345         PR tree-optimization/57230
346         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
347         check.
349 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
351         * config/epiphany/epiphany.c (epiphany_init): Check size of
352         NUM_MODES_FOR_MODE_SWITCHING.
353         (epiphany_expand_prologue):
354         Remove CONFIG_REGNUM initial value handling code.
355         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
356         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
357         (emit_set_fp_mode, epiphany_mode_after): Likewise.
358         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
359         Don't return 1 for FP_MODE_NONE.
360         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
361         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
362         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
363         * config/epiphany/epiphany.md (save_config): New pattern.
365 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
367         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
369 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
371         * config/i386/i386.md (memory): Handle sseishft1.
372         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
373         (*vec_extractv2di_1): Ditto.
375 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
377         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
378         saved registers.
380 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
382         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
383         Add mthumb/march=armv7-a multilib.
384         Add mthumb/march=armv7-r multilib.
385         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
387 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
389         * config/v850/t-rtems: Add more multilibs.
391 2013-05-10  Richard Biener  <rguenther@suse.de>
393         PR tree-optimization/57214
394         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
395         not propagate from SSA names that occur in abnormal PHI nodes.
397 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
399         * stor-layout.c (element_precision): New function.
400         * machmode.h (element_precision): Declare it.
401         * tree.c (build_minus_one_cst): New function.
402         (element_precision): Likewise.
403         * tree.h (build_minus_one_cst): Declare new function.
404         (element_precision): Likewise.
405         * fold-const.c (operand_equal_p): Use element_precision.
406         (fold_binary_loc): Handle vector types.
407         * convert.c (convert_to_integer): Use element_precision.
408         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
409         separately.
411 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
413         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
414         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
415         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
416         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
417         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
418         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
419         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
420         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
421         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
422         (Uuw8): New constraints.
423         (Usb4): Move into alphabetical order.
424         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
425         (sd8_operand, ub8_operand, uw8_operand): New predicates.
426         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
427         previously unnamed patterns.
428         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
429         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
430         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
431         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
432         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
433         of specific lengths.
435 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
437         * config/i386/i386.md (rotateinv): New code attr.
438         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
439         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
440         roll $31, %eax, etc.
442         PR tree-optimization/45216
443         PR tree-optimization/57157
444         * tree-ssa-forwprop.c (simplify_rotate): New function.
445         (ssa_forward_propagate_and_combine): Call it.
447 2013-05-10  Richard Biener  <rguenther@suse.de>
449         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
450         disable peeling when we version for aliasing.
451         (vector_alignment_reachable_p): Honor explicit user alignment.
452         (vect_supportable_dr_alignment): Likewise.
453         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
454         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
455         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
456         then peeling to arrange for the cost-model check to come first.
458 2013-05-10  Alan Modra  <amodra@gmail.com>
460         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
461         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
462         * configure: Regenerate.
464 2013-05-10  Alan Modra  <amodra@gmail.com>
466         PR target/55033
467         * varasm.c (default_elf_select_section): Move !DECL_P check..
468         (get_named_section): ..to here before calling get_section_name.
469         Adjust assertion.
470         (default_section_type_flags): Add DECL_P check.
471         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
472         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
474 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
476         * config/epiphany/epiphany.c (epiphany_expand_prologue):
477         When using gen_stack_adjust_str with a register offset, add a
478         REG_FRAME_RELATED_EXPR note.
480 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
482         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
483         (*vec_extractv4si_zext_mem): Ditto.
484         (*vec_extractv2di): Add 0->x and x->x alternatives.
485         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
486         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
488 2013-05-09  Jason Merrill  <jason@redhat.com>
490         N3639 C++1y VLA support
491         * gimplify.c (gimplify_vla_decl): Don't touch an existing
492         DECL_VALUE_EXPR.
494         * tree.c (build_constructor_va): New.
495         * tree.h: Declare it.
497 2013-05-09  Martin Jambor  <mjambor@suse.cz>
499         PR lto/57084
500         * gimple-fold.c (canonicalize_constructor_val): Call
501         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
503 2013-05-09  Jan Hubicka  <jh@suse.cz>
504             Richard Biener  <rguenther@suse.de>
506         PR lto/54095
507         * symtab.c (symtab_make_decl_local): Do not add private names.
509 2013-05-09  Jan Hubicka  <jh@suse.cz>
511         PR lto/54095
512         * symtab.c (insert_to_assembler_name_hash): Handle clones.
513         (unlink_from_assembler_name_hash): Likewise.
514         (symtab_prevail_in_asm_name_hash, symtab_register_node,
515         symtab_unregister_node, symtab_initialize_asm_name_hash,
516         change_decl_assembler_name): Update.
518 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
520         * config/aarch64/aarch64.md: New movtf split.
521         (*movtf_aarch64): Update.
522         (aarch64_movdi_tilow): Handle TF modes and rename to
523         aarch64_movdi_<mode>low.
524         (aarch64_movdi_tihigh): Handle TF modes and rename to
525         aarch64_movdi_<mode>high
526         (aarch64_movtihigh_di): Handle TF modes and rename to
527         aarch64_mov<mode>high_di
528         (aarch64_movtilow_di): Handle TF modes and rename to
529         aarch64_mov<mode>low_di
530         (aarch64_movtilow_tilow): Remove spurious whitespace.
531         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
532         splits.
533         (aarch64_print_operand): Update.
535 2013-05-09  Alan Modra  <amodra@gmail.com>
537         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
538         powerpc64le.
539         * configure: Regenerate.
541 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
543         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
544         splitter preparation statements.
545         * config/i386/sse.md (*vec_extract* splitters): Ditto.
546         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
547         adjust_address_nv.
549 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
551         * gimple-ssa-strength-reduction.c (count_candidates): Change
552         return value to int.
553         (analyze_candidates_and_replace): Change type of length to int.
555 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
557         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
558         (*vec_extract<mode>): Use VI12_128 mode iterator.
559         (*vec_extract<mode>_mem): Ditto.
560         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
561         attribute.
563 2013-05-08  Diego Novillo  <dnovillo@google.com>
565         PR bootstrap/54659
567         Revert:
568         2012-08-17  Diego Novillo  <dnovillo@google.com>
570         PR bootstrap/54281
571         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
572         * config.in: Regenerate.
573         * configure: Regenerate.
574         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
576 2013-05-08  Jan Hubicka  <jh@suse.cz>
578         PR lto/54095
579         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
580         * cgraph.h (symtab_node_base): Add unique_name.
581         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
582         input_overwrite_node, input_varpool_node): Stream unique_name.
583         * cgraphclones.c (cgraph_create_virtual_clone,
584         cgraph_function_versioning): Set unique_name.
585         * ipa.c (function_and_variable_visibility): Set unique_name.
587 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
589         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
590         (alloc_cand_and_find_basis): Restrict conditional candidate
591         processing to CAND_MULTs.
593 2013-05-08  Jan Hubicka  <jh@suse.cz>
595         PR lto/54095
596         lto-symtab.c (lto_symtab_symbol_p): New function.
597         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
598         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
599         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
600         Skip static symbols.
602 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
604         PR tree-optimization/57200
605         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
606         Only call inform if the preceding warning_at returns true.
608 2013-05-07  Han Shen  <shenhan@google.com>
610         * cfgexpand.c (record_or_union_type_has_array_p): New function.
611         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
612         * common.opt (fstack-protector-strong): New option.
613         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
614         * doc/invoke.texi (Optimization Options): Document
615         "-fstack-protector-strong".
616         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
618 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
620         * config/mips/mips.c (mips_machine_reorg2): Return 0.
622 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
624         * ira.c (update_equiv_regs): Add insn having equiv memory even if
625         it is not lhs of the insn.
626         (setup_reg_equiv): Remove insn having equiv memory which it is not
627         lhs of the insn.
628         * lra-constraints.c (process_address): Try to improve generation
629         code for address base + disp.
630         (lra_constraints): Make correct the code for checking insn setting
631         up backward equivalence.  Remove insn only if it is in the init
632         insn list.
633         * lra-eliminations.c (update_reg_eliminate): Change return value.
634         (lra_eliminate): Use the result.
636 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
638         * config/i386/sse.md (ssescalarnummask): New mode attribute.
639         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
640         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
641         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
642         register target operands.
643         (*vec_extractv8hi_sse2): New pattern.
644         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
645         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
646         (*vec_extract<mode>_mem): New insn and split pattern.
648 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
650         * config/arm/arm.c (arm_asan_shadow_offset): New function.
651         (TARGET_ASAN_SHADOW_OFFSET): Define.
652         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
653         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
655 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
657         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
658         (incr_vec_index): Return -1 if increment not found.
659         (create_add_on_incoming_edge): Assert if increment not found.
660         (record_increment): Limit number of increments recorded.
661         (all_phi_incrs_profitable): Return false if an increment not found.
662         (replace_profitable_candidates): Don't process increments that were
663         not recorded.
664         (analyze_candidates_and_replace): Limit size of incr_vec.
666 2013-05-07  Richard Biener  <rguenther@suse.de>
668         * calls.c (special_function_p): setjmp-like functions are leaf.
669         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
670         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
672 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
674         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
675         (aarch64_simd_mov<mode>): New expander.
676         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
677         (aarch64_simd_mov_to_<mode>high): Likewise.
678         (aarch64_simd_mov_from_<mode>low): Likewise.
679         (aarch64_simd_mov_from_<mode>high): Likewise.
680         (aarch64_dup_lane<mode>): Update.
681         (aarch64_dup_lanedi): New instruction pattern.
682         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
683         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
685 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
687         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
688         (replace_mult_candidate): Remove unnecessary argument; remove
689         unnecessary parameter from call to introduce_cast_before_cand.
690         (replace_unconditional_candidate): Remove unnecessary parameter
691         from call to replace_mult_candidate.
692         (replace_conditional_candidate): Likewise.
693         (insert_initializers): Use make_temp_ssa_name.
694         (introduce_cast_before_cand): Remove unnecessary argument; use
695         make_temp_ssa_name.
696         (replace_one_candidate): Remove unnecessary argument; remove
697         unnecessary parameter from calls to introduce_cast_before_cand.
698         (replace_profitable_candidates): Remove unnecessary parameters
699         from calls to replace_one_candidate.
701 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
703         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
704         phi def as possibly hiding a basis for a CAND_ADD whose operands
705         have been commuted in the analysis.
706         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
708 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
710         * config/aarch64/aarch64.md
711         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
712         shift value between 0-4.
714 2013-05-07  Richard Biener  <rguenther@suse.de>
716         * double-int.h (rshift): New overload.
717         * double-int.c (rshift): New function.
718         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
719         (create_reference_ops_from_ref): Remove.
720         (vn_reference_insert): Use shared ops for constructing the
721         reference and copy it.
723 2013-05-07  Richard Biener  <rguenther@suse.de>
725         PR middle-end/57190
726         * tree-eh.c (sink_clobbers): Properly propagate
727         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
729 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
731         PR tree-optimization/57149
732         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
733         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
734         collect_phi_def_edges, execute_late_warn_uninitialized): Use
735         uninit_undefined_value_p instead of ssa_undefined_value_p.
737         PR debug/57184
738         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
739         for modifier == EXPAND_INITIALIZER.
741 2013-05-07  Anton Blanchard  <anton@samba.org>
743         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
744         for powerpc64 little endian.
745         * configure: Regenerate.
747 2013-05-06  Graham Stott  <grahams@btinternet.com>
749         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
750         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
751         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
752         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
754 2013-05-06  Graham Stott  <grahams@btinternet.com>
756         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
757         codes which allow non-lvalues.
759 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
761         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
762         components are all 1s.
763         (integer_minus_onep): New function.
764         * tree.h (integer_minus_onep): Declare it.
765         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
766         integer_minus_onep instead of integer_all_onesp.
768 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
770         PR target/52933
771         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
772         variations of these patterns.
774 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
776         * config/i386/i386.md (isa): Add x64_sse4 member.
777         (enabled): Handle x64_sse4.
778         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
779         instruction for 64bit SSE4_1 targets.  Update insn attributes.
780         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
781         instruction for SSE4_1 targets.  Update insn attributes.
782         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
783         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
784         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
785         const_1 selector.
786         (*vec_extractv4si): Rename from *sse4_1_pextrd.
787         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
788         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
790 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
792         PR target/57108
793         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
795 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
797         * final.c (do_assembler_dialects): Don't handle curly braces and
798         vertical bar escaped by % as dialect delimiters.
799         (output_asm_insn): Print curly braces and vertical bar if escaped
800         by % and ASSEMBLER_DIALECT defined.
801         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
802         * doc/tm.texi: Regenerated.
804 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
806         * config/mips/mips.c: Include tree-pass.h.
807         (mips_reorg): Split in pre- and post-dbr_schedule parts.
808         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
809         (pass_mips_machine_reorg2): New machine specific pass.
810         (insert_pass_mips_machine_reorg2): New pass plugin definition.
811         (mips_option_override): Register the new pass.
812         * rtl.h (cleanup_barriers): Remove prototype.
813         (dbr_schedule): Likewise.
814         * jump.c (cleanup_barriers): Make static.
815         * reorg.c (dbr_schedule): Likewise.
817 2013-05-06  Richard Biener  <rguenther@suse.de>
819         PR tree-optimization/57185
820         * tree-parloops.c (add_field_for_reduction): Handle anonymous
821         SSA names properly.
823 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
825         PR target/57106
826         * config/i386/i386.c (add_parameter_dependencies): Add dependence
827         between "first_arg" and "insn", not "last" and "insn".
829 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
831         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
832         (find_candidates_in_block): Re-enable slsr_process_phi.
833         (create_phi_basis): Fix double counting of candidate adjustment.
835 2013-05-06  Richard Biener  <rguenther@suse.de>
837         PR middle-end/57147
838         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
839         the edge is also fallthru, preserve it and just clear the
840         abnormal flag.
841         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
842         also complex, preserve that and just clear the fallthru flag.
843         * tree-inline.c (update_ssa_across_abnormal_edges): Also
844         update virtual operands.
846 2013-05-06  Alan Modra  <amodra@gmail.com>
848         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
849         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
850         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
851         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
852         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
853         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
855 2013-05-06  Alan Modra  <amodra@gmail.com>
857         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
858         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
859         (DEFAULT_ASM_ENDIAN): Define.
860         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
861         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
862         Update -K PIC clause from sysv4.h.
863         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
864         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
866 2013-05-06  Alan Modra  <amodra@gmail.com>
868         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
869         twice for little-endian.
870         (ashrdi3_no_power, ashrdi3): Support little-endian.
872 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
874         PR target/55303
875         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
876         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
877         related expanders.
878         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
879         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
880         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
881         New predicates.
883 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
884             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
886         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
887         * config/pa/pa.opt: Make mbig-switch a no-op.
888         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
889         (CASE_VECTOR_MODE): Always return SImode.
890         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
891         for the !TARGET_BIG_SWITCH case.
892         * config/pa/pa-linux.h: Likewise.
893         * config/pa/pa-openbsd.h: Likewise.
894         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
895         * config/pa/pa.md (short_jump): Remove define_insn.
896         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
897         (casesi0): Remove define_insn.
898         (type): Remove btable_branch.
899         (pa_combine_type): Likewise.
900         (in_nullified_branch_delay): Likewise.
901         (in_call_delay): Likewise.
902         (define_delay): Likewise.
903         (define_insn_reservation "Z3"): Likewise.
904         (define_insn_reservation "Z4"): Likewise.
905         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
906         (pa_adjust_insn_length): Remove adjustment for btable branches.
907         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
908         and mno-big-switch
910 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
912         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
913         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
914         Add m->r,x alternatives.
915         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
916         splitters using SWI48x mode iterator.
917         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
918         TARGET_64BIT.  Add m->x alternative.
919         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
920         Add o->x alternative.  Enable for TARGET_SSE.
921         (sse_storeq): Remove expander.
922         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
923         with memory input operand.
924         (*vec_extractv2di_1 splitter): New.
925         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
926         * config/i386/i386.md (ssevecmodelower): New mode attribute.
928 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
930         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
931         (INT_LOWPART): Delete.
932         (extract_MB): Adjust.
933         (extract_ME): Adjust.
934         (print_operand): Adjust.
936 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
938         * config/rs6000/predicates.md (reg_or_add_cint_operand,
939         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
940         (reg_or_logical_cint_operand, easy_fp_constant,
941         logical_const_operand): Delete "CONST_DOUBLE" case.
942         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
943         "HOST_BITS_PER_WIDE_INT == 64" test.
944         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
945         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
946         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
947         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
948         test.
949         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
950         CONST_DOUBLE DImode/VOIDmode case.
951         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
952         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
953         CONST_DOUBLE VOIDmode case.
954         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
955         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
956         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
957         Delete CONST_DOUBLE case.
958         (splitters for mov FMOVE64 const_double): Delete
959         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
960         "HOST_BITS_PER_WIDE_INT >= 64" test.
961         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
962         case.
963         (mov DI const_double): Delete.
965 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
967         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
968         on op shows all bits zero in mode of a lowpart subreg, return zero.
970 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
972         PR target/57150
973         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
974         to save TFmode registers and DImode to save TImode registers for
975         caller save operations.
976         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
977         mark being partially clobbered since they only use the first
978         double word.
980         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
981         and TDmode only use the upper 64-bits of each VSX register.
983 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
985         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
986         (find_candidates_in_block): Disable slsr_process_phi.
988 2013-05-03  Guozhi Wei  <carrot@google.com>
990         * coverage.c (coverage_obj_init): Move the construction of gcov
991         constructor to ...
992         (build_init_ctor): ... here.
994 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
996         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
997         (slsr_cand_d): Redefine def_phi.
998         (stride_status, phi_adjust_status, count_phis_status): New enums.
999         (find_phi_def): New.
1000         (find_basis_for_base_expr): New.
1001         (find_basis_for_candidate): Handle hidden bases.
1002         (alloc_cand_and_find_basis): Handle phi candidates.
1003         (slsr_process_phi): New.
1004         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1005         (create_mul_imm_cand): Likewise.
1006         (create_add_ssa_cand): Exclude phi base candidates.
1007         (create_add_imm_cand): Likewise.
1008         (slsr_process_cast): Likewise.
1009         (slsr_process_copy): Likewise.
1010         (find_candidates_in_block): Handle phi candidates.
1011         (dump_candidate): Likewise.
1012         (unconditional_cands): Delete.
1013         (unconditional_cands_with_known_stride_p): Delete.
1014         (phi_dependent_cand_p): New.
1015         (cand_increment): Handle phi-dependent candidates.
1016         (replace_dependent): Delete.
1017         (replace_mult_candidate): New.
1018         (replace_unconditional_candidate): New.
1019         (incr_vec_index): Move to avoid forward reference.
1020         (create_add_on_incoming_edge): New.
1021         (create_phi_basis): New.
1022         (replace_dependents): Delete.
1023         (replace_conditional_candidate): New.
1024         (phi_add_costs): New.
1025         (replace_uncond_cands_and_profitable_phis): New.
1026         (record_increment): Handle phi adjustments.
1027         (record_phi_increments): New.
1028         (record_increments): Handle phi adjustments.
1029         (phi_incr_cost): New.
1030         (lowest_cost_path): Handle phis.
1031         (total_savings): Likewise.
1032         (analyze_increments): Likewise.
1033         (ncd_with_phi): New.
1034         (ncd_of_cand_and_phis): New.
1035         (nearest_common_dominator_for_cands): Handle phi increments.
1036         (all_phi_incrs_profitable): New.
1037         (replace_profitable_candidates): Handle phi-dependent candidates.
1038         (analyze_candidates_and_replace): Likewise.
1040 2013-05-03  Teresa Johnson  <tejohnson@google.com>
1042         PR bootstrap/57154
1043         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
1044         do not exceed REG_BR_PROB_BASE.
1046 2013-05-03  Jeff Law  <law@redhat.com>
1048         PR tree-optimization/57144
1049         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
1050         operand of the condition will bit into the new type when eliminating
1051         a cast feeding a condition.
1053 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
1055         PR rtl-optimization/57130
1056         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
1057         of COMPARE as in_code to the recursive call if needed.
1059 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
1061         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
1062         (enabled): Handle new members.
1063         * config/i386/sse.md (*vec_concatv2si): Merge from
1064         *vec_concatv2si_sse2 and vec_concatv2si_sse.
1065         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
1067 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
1069         PR tree-optimization/57027
1070         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
1071         for fnms opportunity, check we got the prerequisite kind
1072         of tree / gimple before using accessor functions.
1074 2013-05-03  Richard Biener  <rguenther@suse.de>
1076         * double-int.h (lshift): New overload without precision
1077         and arith argument.
1078         (operator *=, operator +=, operator -=): Move ...
1079         * double-int.c (operator *=, operator +=, operator -=): ... here
1080         and implement more efficiently.
1081         (mul_double_with_sign): Remove.
1082         (lshift_double): Adjust to take unsinged shift argument, push
1083         dispatching code to callers.
1084         (mul_double_wide_with_sign): Add early out for callers that
1085         are not interested in high parts or overflow.
1086         (lshift): New function.
1087         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
1088         dispatch code here.
1089         (lrotate, rrotate): Use logical shifts.
1090         * expr.c (get_inner_reference): Use lshift.
1091         * fixed-value.c (do_fixed_divide): Likewise.
1092         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1093         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
1094         (indirect_refs_may_alias_p): Likewise.
1095         (stmt_kills_ref_p_1): Likewise.
1097 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
1099         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
1101 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
1103         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
1104         scalar form of FABD instruction.
1106 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
1108         * lra-constraints.c (process_alt_operands): Add checking alt
1109         number to choose the best alternative.
1111 2013-05-02  Richard Biener  <rguenther@suse.de>
1113         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
1114         bitmap and its handling.
1115         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
1117 2013-05-02  Richard Biener  <rguenther@suse.de>
1119         PR middle-end/57140
1120         * tree-inline.c (copy_loops): Properly handle removed loops.
1121         (copy_cfg_body): Mark destination loops for fixup if source
1122         loops needed fixup.
1124 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
1126         PR target/56732
1127         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
1128         generating simple_return for naked functions.
1130 2013-05-02  Martin Jambor  <mjambor@suse.cz>
1132         PR middle-end/56988
1133         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
1134         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
1135         flags match.
1136         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
1137         ipa_agg_replacement_value structures.
1138         (known_aggs_to_agg_replacement_list): Likewise.
1139         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
1140         (read_agg_replacement_chain): Likewise.
1141         (ipcp_transform_function): Also check that by_ref flags match.
1143 2013-05-02  Richard Biener  <rguenther@suse.de>
1145         * graphds.h (struct graph): Add obstack member.
1146         * graphds.c (new_graph): Initialize obstack and allocate
1147         vertices from it.
1148         (add_edge): Allocate edge from the obstack.
1149         (free_graph): Free the obstack instead of all edges and vertices.
1151 2013-05-02  Teresa Johnson  <tejohnson@google.com>
1153         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
1154         divides.
1155         * cfg.c (update_bb_profile_for_threading): Ditto.
1156         * tree-inline.c (copy_bb): Ditto.
1157         (copy_edges_for_bb): Ditto.
1158         (initialize_cfun): Ditto.
1159         (copy_cfg_body): Ditto.
1160         (expand_call_inline): Ditto.
1161         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
1162         (estimate_node_size_and_time): Ditto.
1163         (inline_merge_summary): Ditto.
1164         * cgraphclones.c (cgraph_clone_edge): Ditto.
1165         (cgraph_clone_node): Ditto.
1166         * sched-rgn.c (compute_dom_prob_ps): Ditto.
1167         (compute_trg_info): Ditto.
1169 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
1171         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
1172         S reg when fp attribute set.
1173         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
1175 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
1177         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
1178         New pattern.
1179         (*and_one_cmplsi3_compare0_uxtw): Likewise.
1180         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
1181         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
1183 2013-05-02  Richard Biener  <rguenther@suse.de>
1185         * tree-scalar-evolution.c (scev_info_hasher): Remove.
1186         (struct instantiate_cache_entry): New type.
1187         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
1188         (struct instantiate_cache_type): New type.
1189         (set_instantiated_value, get_instantiated_value): Remove.
1190         (get_instantiated_value_entry): New function.
1191         (instantiate_scev_name): Use the new cache and adjust.
1192         (instantiate_scev_poly): Adjust.
1193         (instantiate_scev_binary): Likewise.
1194         (instantiate_array_ref): Likewise.
1195         (instantiate_scev_convert): Likewise.
1196         (instantiate_scev_not): Likewise.
1197         (instantiate_scev_3): Likewise.
1198         (instantiate_scev_2): Likewise.
1199         (instantiate_scev_r): Likewise.
1200         (instantiate_scev): Likewise.
1201         (resolve_mixers): Likewise.
1203 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
1205         PR target/57091
1206         * lra-constraints.c (best_small_class_operands_num): Remove.
1207         (process_alt_operands): Remove small_class_operands_num.  Take
1208         small classes operands into losers and only if the operand is not
1209         matched.  Modify debugging output.
1210         (curr_insn_transform): Remove best_small_class_operands_num.
1211         Print insn name.
1213 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1215         * config/aarch64/aarch64-builtins.c
1216         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
1217         * config/aarch64/aarch64-simd-builtins.def
1218         (reduc_splus_): Add new modes.
1219         (reduc_uplus_): New.
1220         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
1221         (reduc_uplus_v4sf): Likewise.
1222         (reduc_splus_v4sf): Likewise.
1223         (aarch64_addv<mode>): Likewise.
1224         (reduc_uplus_<mode>): Likewise.
1225         (reduc_splus_<mode>): Likewise.
1226         (aarch64_addvv2di): Likewise.
1227         (reduc_uplus_v2di): Likewise.
1228         (reduc_splus_v2di): Likewise.
1229         (aarch64_addvv2si): Likewise.
1230         (reduc_uplus_v2si): Likewise.
1231         (reduc_splus_v2si): Likewise.
1232         (reduc_<sur>plus_<mode>): New.
1233         (reduc_<sur>plus_v2di): Likewise.
1234         (reduc_<sur>plus_v2si): Likewise.
1235         (reduc_<sur>plus_v4sf): Likewise.
1236         (aarch64_addpv4sf): Likewise.
1237         * config/aarch64/arm_neon.h
1238         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
1239         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
1240         add UNSPEC_SADDV, UNSPEC_UADDV.
1241         (SUADDV): New.
1242         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
1244 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1246         * config/aarch64/arm_neon.h
1247         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
1249 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1251         * config/aarch64/aarch64-builtins
1252         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
1254 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1256         * config/aarch64/aarch64-simd-builtins.def
1257         (reduc_smax_): New.
1258         (reduc_smin_): Likewise.
1259         (reduc_umax_): Likewise.
1260         (reduc_umin_): Likewise.
1261         (reduc_smax_nan_): Likewise.
1262         (reduc_smin_nan_): Likewise.
1263         (fmax): Remove.
1264         (fmin): Likewise.
1265         (smax): Update for V2SF, V4SF and V2DF modes.
1266         (smin): Likewise.
1267         (smax_nan): New.
1268         (smin_nan): Likewise.
1269         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
1270         (<su><maxmin><mode>3): ...This, refactor.
1271         (s<maxmin><mode>3): New.
1272         (<maxmin_uns><mode>3): Likewise.
1273         (reduc_<maxmin_uns>_<mode>): Refactor.
1274         (reduc_<maxmin_uns>_v4sf): Likewise.
1275         (reduc_<maxmin_uns>_v2si): Likewise.
1276         (aarch64_<fmaxmin><mode>: Remove.
1277         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
1278         new builtin names.
1279         (vmin<q>_f<32,64>): Likewise.
1280         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1281         (FMAXMIN): New.
1282         (su): Add mappings for smax, smin, umax, umin.
1283         (maxmin): New.
1284         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1285         (FMAXMIN): Rename as...
1286         (FMAXMIN_UNS): ...This.
1287         (maxminv): Remove.
1288         (fmaxminv): Likewise.
1289         (fmaxmin): Likewise.
1290         (maxmin_uns): New.
1291         (maxmin_uns_op): Likewise.
1293 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1295         * config/aarch64/arm_neon.h
1296         (vac<ge, gt><sd>_f<32, 64>): Rename to...
1297         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
1298         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
1300 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1302         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
1303         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
1305 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1307         * config/aarch64/aarch64-simd.md
1308         (vcond<mode>_internal): Handle special cases for constant masks.
1309         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
1310         (vcondu<mode><mode>): Likewise.
1311         (vcond<v_cmp_result><mode>): New.
1313 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1315         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
1316         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
1317         * config/aarch64/aarch64-simd-builtins.def
1318         (cmeq): Update to BUILTIN_VALLDI.
1319         (cmgt): Likewise.
1320         (cmge): Likewise.
1321         (cmle): Likewise.
1322         (cmlt): Likewise.
1323         * config/aarch64/arm_neon.h
1324         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
1325         to builtins or C as appropriate.
1327 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1329         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
1330         (cmgeu): ...This.
1331         (cmhi): Rename to...
1332         (cmgtu): ...This.
1333         * config/aarch64/aarch64-simd.md
1334         (simd_mode): Add SF.
1335         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
1336         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
1337         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
1338         (cstore<mode>_neg): ...This.
1339         * config/aarch64/iterators.md
1340         (VALLF): new.
1341         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
1342         (COMPARISONS): New.
1343         (UCOMPARISONS): Likewise.
1344         (optab): Add missing comparisons.
1345         (n_optab): New.
1346         (cmp_1): Likewise.
1347         (cmp_2): Likewise.
1348         (CMP): Likewise.
1349         (cmp): Remove.
1350         (VCMP_S): Likewise.
1351         (VCMP_U): Likewise.
1352         (V_cmp_result): Add DF, SF modes.
1353         (v_cmp_result): Likewise.
1354         (v): Likewise.
1355         (vmtype): Likewise.
1356         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
1358 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
1360         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
1361         define_insn to define_insn_and_split.
1362         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
1363         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
1364         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
1365         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
1366         (thumb2_negscc): Likewise.
1368 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
1370         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
1372 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
1374         * config/arm/thumb2.md: Remove trailing whitespaces.
1376 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1378         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
1379         Use gen_int_mode rather than GEN_INT.
1381 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
1383         * value-prof.c (stream_in_histogram_value): Remove the strayed
1384         debug_gimple_stmt.
1386 2013-04-30  Richard Biener  <rguenther@suse.de>
1388         PR middle-end/57122
1389         * cfghooks.c (split_edge): Properly check for the loop latch edge.
1391 2013-04-30  Richard Biener  <rguenther@suse.de>
1393         PR middle-end/57107
1394         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
1396 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
1398         PR rtl-optimization/56957
1399         PR rtl-optimization/57105
1400         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
1401         variable.  Use just INSN_UID for determining whether an insn
1402         should be only disconnected from the insn stream.
1403         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
1405 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
1407         PR tree-optimization/57104
1408         * tsan.c (instrument_expr): Don't instrument accesses to
1409         DECL_HARD_REGISTER VAR_DECLs.
1411 2013-04-30  Richard Biener  <rguenther@suse.de>
1413         * function.h (loops_for_fn): New inline function.
1414         (set_loops_for_fn): Likewise.
1415         * cfgloop.h (place_new_loop): Add struct function parameter.
1416         (get_loop): Likewise.
1417         (get_loops): Likewise.
1418         (number_of_loops): Likewise.
1419         (fel_next): Adjust.
1420         (fel_init): Likewise.
1421         * cfg.c (get_loop_copy): Adjust.
1422         * cfgloop.c (flow_loops_dump): Likewise.
1423         (record_loop_exits): Likewise.
1424         (verify_loop_structure): Likewise.
1425         * cfgloopanal.c (mark_irreducible_loops): Likewise.
1426         (estimate_reg_pressure_cost): Likewise.
1427         (mark_loop_exit_edges): Likewise.
1428         * cfgloopmanip.c (place_new_loop): Likewise.
1429         (add_loop): Likewise.
1430         (duplicate_loop): Likewise.
1431         * graph.c (draw_cfg_nodes): Likewise.
1432         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
1433         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
1434         (extract_affine_chrec): Likewise.
1435         (build_scop_iteration_domain): Likewise.
1436         * graphite.c (graphite_initialize): Likewise.
1437         * ira-build.c (create_loop_tree_nodes): Likewise.
1438         (more_one_region_p): Likewise.
1439         (rebuild_regno_allocno_maps): Likewise.
1440         (mark_loops_for_removal): Likewise.
1441         (mark_all_loops_for_removal): Likewise.
1442         (remove_unnecessary_regions): Likewise.
1443         (ira_build): Likewise.
1444         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1445         * loop-init.c (fix_loop_structure): Likewise.
1446         (gate_rtl_move_loop_invariants): Likewise.
1447         (gate_rtl_unswitch): Likewise.
1448         (gate_rtl_unroll_and_peel_loops): Likewise.
1449         (rtl_doloop): Likewise.
1450         * lto-streamer-in.c (input_cfg): Likewise.
1451         * lto-streamer-out.c (output_cfg): Likewise.
1452         * modulo-sched.c (sms_schedule): Likewise.
1453         * predict.c (tree_estimate_probability): Likewise.
1454         (tree_estimate_probability_driver): Likewise.
1455         (estimate_loops): Likewise.
1456         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
1457         (move_sese_region_to_fn): Likewise.
1458         (debug_loop_num): Likewise.
1459         * tree-chrec.c (chrec_evaluate): Likewise.
1460         (hide_evolution_in_other_loops_than_loop): Likewise.
1461         (chrec_component_in_loop_num): Likewise.
1462         (reset_evolution_in_loop): Likewise.
1463         (evolution_function_is_invariant_rec_p): Likewise.
1464         * tree-if-conv.c (main_tree_if_conversion): Likewise.
1465         * tree-inline.c (copy_loops): Likewise.
1466         (copy_cfg_body): Likewise.
1467         (tree_function_versioning): Likewise.
1468         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
1469         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1470         Likewise.
1471         (add_to_evolution_1): Likewise.
1472         (scev_const_prop): Likewise.
1473         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
1474         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1475         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1476         (tree_ssa_lim_initialize): Likewise.
1477         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
1478         (verify_loop_closed_ssa): Likewise.
1479         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
1480         (tree_ssa_loop_im): Likewise.
1481         (tree_ssa_loop_unswitch): Likewise.
1482         (tree_vectorize): Likewise.
1483         (check_data_deps): Likewise.
1484         (tree_ssa_loop_ivcanon): Likewise.
1485         (tree_ssa_loop_bounds): Likewise.
1486         (tree_complete_unroll): Likewise.
1487         (tree_complete_unroll_inner): Likewise.
1488         (tree_parallelize_loops): Likewise.
1489         (tree_ssa_loop_prefetch): Likewise.
1490         (tree_ssa_loop_ivopts): Likewise.
1491         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
1492         * tree-vectorizer.c (vectorize_loops): Likewise.
1494 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
1496         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
1497         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
1498         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
1499         with EABI_LINK_SPEC.
1501 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
1503         PR target/44578
1504         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
1505         alternative.
1507 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
1509         PR target/57097
1510         * lra-constraints.c (process_alt_operands): Discourage a bit more
1511         using memory for pseudos.  Print cost dump for alternatives.
1512         Modify cost values for conflicts with early clobbers.
1513         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
1515 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
1517         PR target/57098
1518         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
1520 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
1522         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
1523         from/to S register.
1524         (movdi_aarch64): Support LDR/STR from/to D register.
1526 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
1528         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
1529         or higher by default.
1531 2013-04-29  Richard Biener  <rguenther@suse.de>
1533         PR middle-end/57075
1534         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
1535         even if not adding abnormal edges for calls that can make
1536         abnormal gotos.
1538 2013-04-29  Richard Biener  <rguenther@suse.de>
1540         PR middle-end/57103
1541         * tree-cfg.c (move_stmt_op): Fix condition under which to update
1542         TREE_BLOCK.
1543         (move_stmt_r): Remove redundant checking.
1545 2013-04-29  Teresa Johnson  <tejohnson@google.com>
1547         PR bootstrap/57077
1548         * basic-block.h (apply_scale): New function.
1549         (apply_probability): Use apply_scale.
1550         * gimple-streamer-in.c (input_bb): Ditto.
1551         * lto-streamer-in.c (input_cfg): Ditto.
1552         * lto-cgraph.c (merge_profile_summaries): Ditto.
1553         * tree-optimize.c (execute_fixup_cfg): Ditto.
1554         * tree-inline.c (copy_bb): Update comment to use apply_scale.
1555         (copy_edges_for_bb): Ditto.
1556         (copy_cfg_body): Ditto.
1558 2013-04-29  Tom de Vries  <tom@codesourcery.com>
1560         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
1561         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
1562         (tail_merge_optimize): Handle current_loops == NULL.
1564 2013-04-26  Jeff Law  <law@redhat.com>
1566         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
1567         (simplify_cond_using_ranges): Generalize code to simplify
1568         COND_EXPRs where one argument is a constant and the other
1569         is an SSA_NAME created by an integral type conversion.
1571 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1573         * config/arm/arm.md (store_minmaxsi): Use only when
1574         optimize_insn_for_size_p.
1576 2013-04-29  Christian Bruel  <christian.bruel@st.com>
1578         PR target/57108
1579         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
1581 2013-04-29  Richard Biener  <rguenther@suse.de>
1583         PR middle-end/57089
1584         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
1585         loop tree make sure to schedule a fixup for the child as well.
1586         (expand_omp_for_generic): Properly add loops.
1587         (expand_omp_for_static_nochunk): Likewise.
1588         (expand_omp_for_static_chunk): Likewise.
1589         (expand_omp_for): For the degenerate case fixup loops.
1590         (expand_omp_sections): Fix default bb placement in loops.
1591         (expand_omp_atomic_pipeline): Properly add loops.
1593 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1595         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
1597 2013-04-29  Tom de Vries  <tom@codesourcery.com>
1599         * tree-ssa-tail-merge.c: Update header comment.
1601 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1603         * config/aarch64/arm_neon.h
1604         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
1605         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
1606         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
1607         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
1608         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
1609         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
1610         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
1611         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
1613 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1615         * config/aarch64/aarch64-simd.md
1616         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
1617         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
1618         fix_trunc, fixuns_trunc.
1619         (ftrunc<VDQF:mode>2): New.
1620         * config/aarch64/iterators.md (optab): Add fix, fixuns.
1621         (fix_trunc_optab): New.
1623 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1625         * config/aarch64/aarch64-builtins.c
1626         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
1627         iceilf, lround, iroundf.
1629 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
1631         PR target/54349
1632         * config/i386/i386.h (enum ix86_tune_indices)
1633         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
1634         New, split from X86_TUNE_INTER_UNIT_MOVES.
1635         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
1636         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
1637         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
1638         (TARGET_INTER_UNIT_MOVES): Remove.
1639         * config/i386/i386.c (initial_ix86_tune_features): Update.
1640         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
1641         (ix86_expand_convert_uns_didf_sse): Use
1642         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1643         (ix86_expand_vector_init_one_nonzero): Ditto.
1644         (ix86_expand_vector_init_interleave): Ditto.
1645         (inline_secondary_memory_needed): Return true for moves from SSE class
1646         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
1647         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1648         * config/i386/constraints.md (Yi, Ym): Depend on
1649         TARGET_INTER_UNIT_MOVES_TO_VEC.
1650         (Yj, Yn): New constraints.
1651         * config/i386/i386.md (*movdi_internal): Change constraints of
1652         operand 1 from Yi to Yj and from Ym to Yn.
1653         (*movsi_internal): Ditto.
1654         (*movdf_internal): Ditto.
1655         (*movsf_internal): Ditto.
1656         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
1657         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1658         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
1659         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
1660         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
1661         * config/i386/sse.md (movdi_to_sse): Ditto.
1662         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
1663         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
1664         TARGET_INTER_UNIT_MOVES.
1665         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
1666         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
1667         instead of TARGET_INTER_UNIT_MOVES.
1668         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
1669         operand 1 from Yi to Yj and from Ym to Yn.
1671 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1673         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
1674         (float_truncate_hi_): Likewise.
1675         (float_extend_lo_): Likewise.
1676         (float_truncate_lo_): Likewise.
1677         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
1678         (aarch64_float_extend_lo_v2df): Likewise.
1679         (vec_unpacks_hi_v4sf): Likewise.
1680         (aarch64_float_truncate_lo_v2sf): Likewise.
1681         (aarch64_float_truncate_hi_v4sf): Likewise.
1682         (vec_pack_trunc_v2df): Likewise.
1683         (vec_pack_trunc_df): Likewise.
1685 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1687         * config/aarch64/aarch64-builtins.c
1688         (aarch64_fold_builtin): Fold float conversions.
1689         * config/aarch64/aarch64-simd-builtins.def
1690         (floatv2si, floatv4si, floatv2di): New.
1691         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
1692         * config/aarch64/aarch64-simd.md
1693         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
1694         * config/aarch64/iterators.md (FLOATUORS): New.
1695         (optab): Add float, floatuns.
1696         (su_optab): Likewise.
1698 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1700         * config/aarch64/aarch64-builtins.c
1701         (aarch64_builtin_vectorized_function): Use new names for
1702         fcvt builtins.
1703         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
1704         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
1705         (fcvtzu): Split as...
1706         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
1707         (fcvtas): Split as...
1708         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
1709         (fcvtau): Split as...
1710         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
1711         (fcvtps): Split as...
1712         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
1713         (fcvtpu): Split as...
1714         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
1715         (fcvtms): Split as...
1716         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
1717         (fcvtmu): Split as...
1718         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
1719         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
1720         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
1721         (lfrintnusf, lfrintnudf): Likewise.
1722         * config/aarch64/aarch64-simd.md
1723         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
1724         define_insn.
1725         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
1726         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
1727         (fcvt_pattern): Likewise.
1729 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1731         * config/aarch64/aarch64-simd.md
1732         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
1733         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
1735 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1737         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
1738         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
1739         (vrnd<a,m,n,p>_f32): Implement using builtins.
1740         (vrnd<i,x><q>_f<32, 64>): New.
1742 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1744         * config/aarch64/aarch64-builtins.c
1745         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
1746         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
1747         (frintz): Rename to...
1748         (btrunc): ...this.
1749         (frintp): Rename to...
1750         (ceil): ...this.
1751         (frintm): Rename to...
1752         (floor): ...this.
1753         (frinti): Rename to...
1754         (nearbyint): ...this.
1755         (frintx): Rename to...
1756         (rint): ...this.
1757         (frinta): Rename to...
1758         (round): ...this.
1759         * config/aarch64/aarch64-simd.md
1760         (aarch64_frint<frint_suffix><mode>): Delete.
1761         (<frint_pattern><mode>2): Convert to insn.
1762         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
1763         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
1764         (frint_pattern): Likewise.
1765         (frint_suffix): Likewise.
1767 2013-04-29  Richard Biener  <rguenther@suse.de>
1769         PR tree-optimization/57081
1770         * loop-init.c: Include tree-flow.h.
1771         (loop_optimizer_finalize): Free number of iteration estimates.
1772         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
1774 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
1776         PR tree-optimization/57083
1777         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
1778         non-singleton shift count range, zero extend low_bound for uns case.
1780         * config/i386/predicates.md (general_vector_operand): New predicate.
1781         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
1782         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
1783         if they aren't nonimmediate operands.  If their original values
1784         satisfy const_vector_equal_evenodd_p, don't shift them.
1785         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
1786         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
1787         if not nonimmediate_operand.
1788         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
1789         instead of register_operand.
1790         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
1792 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1794         * stor-layout.c (finalize_size_functions): Allocate a structure and
1795         reset cfun before dumping the functions.
1797 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
1799         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
1801         PR target/56866
1802         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
1803         use xop_pmacsdqh if uns_p.
1804         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
1805         the immediate rotate count.
1807 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
1809         * rtl.h (struct rtx_def): Add comment for field jump.
1810         (LRA_SUBREG_P): New macro.
1811         * recog.c (register_operand): Check LRA_SUBREG_P.
1812         * lra.c (lra): Add note at the end of RTL code. Align non-empty
1813         stack frame.
1814         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1815         (lra_final_code_change): Skip subreg change for operators.
1816         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1817         if there are no operand changes.
1818         * lra-constraints.c (curr_insn_set): New.
1819         (match_reload): Set LRA_SUBREG_P.
1820         (emit_spill_move): Ditto.
1821         (check_and_process_move): Use curr_insn_set. Process only single
1822         set insns.  Don't initialize sec_mem_p and change_p.
1823         (simplify_operand_subreg): Use LRA_SUBREG_P.
1824         (reg_in_class_p): New function.
1825         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
1826         of #ifdef.  Add code to remove cycling.
1827         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1828         non-null disp.  Reload inner instead of disp when base and index
1829         are null.  Try to put lo_sum into register.
1830         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1831         (check_and_process_move): Move code for move cost check to
1832         simple_move_p.  Remove equiv_substitution.
1833         (simple_move_p): New function.
1834         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
1835         curr_insn_set.  Call check_and_process_move only for single set
1836         insns.  Use the new function.  Move call of check_and_process_move
1837         after operand equiv substitution and address process.
1839 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
1841         PR go/57045
1842         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
1843         with nonlocal goto receivers or returns twice calls, ignore
1844         unininitialized values from abnormal edges to nl goto receiver
1845         or returns twice call.
1847 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
1849         PR tree-optimization/57051
1850         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1851         and VEC_RSHIFT_EXPR if shift count is a multiple of element
1852         bitsize.
1854 2013-04-26  Richard Biener  <rguenther@suse.de>
1856         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
1857         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
1858         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
1859         (fixup_loop_arrays_after_move): New function.
1860         (move_sese_region_to_fn): Properly outline the loop tree parts
1861         of the SESE region.
1863 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
1865         * config/i386/i386.md (type, unit): Fix long lines.
1867 2013-04-26  Richard Biener  <rguenther@suse.de>
1869         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
1870         (lto-streamer-out.o): Likewise.
1871         * cfgloop.c (init_loops_structure): Export, add struct function
1872         argument and adjust.
1873         (flow_loops_find): Adjust.
1874         * cfgloop.h (enum loop_estimation): Add EST_LAST.
1875         (init_loops_structure): Declare.
1876         * lto-streamer-in.c: Include cfgloop.h.
1877         (input_cfg): Input the loop tree.
1878         * lto-streamer-out.c: Include cfgloop.h.
1879         (output_cfg): Output the loop tree.
1880         (output_struct_function_base): Do not drop PROP_loops.
1882 2013-03-26  Richard Biener  <rguenther@suse.de>
1884         * tree-cfg.c (execute_build_cfg): Build the loop tree.
1885         (pass_build_cfg): Provide PROP_loops.
1886         (move_sese_region_to_fn): Remove loops that are outlined into fn
1887         for now.
1888         * tree-inline.c: Include cfgloop.h.
1889         (initialize_cfun): Do not drop PROP_loops.
1890         (copy_loops): New function.
1891         (copy_cfg_body): Copy loop structure.
1892         (tree_function_versioning): Initialize destination loop tree.
1893         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
1894         (pass_parallelize_loops): Do IL verification.
1895         * loop-init.c (loop_optimizer_init): Fixup loops if required.
1896         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
1897         the CFG make sure we fixup loops as well.
1898         * tree-ssa-tail-merge.c: Include cfgloop.h.
1899         (replace_block_by): When merging loop latches mark loops for fixup.
1900         * lto-streamer-out.c (output_struct_function_base): Drop
1901         PROP_loops for now.
1902         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
1903         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
1904         * ipa-split.c: Include cfgloop.h.
1905         (split_function): Add the new return block to the loop tree root.
1906         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
1907         whether we have removed the forwarder block.
1908         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
1909         * cfgloop.h (place_new_loop): Declare.
1910         * cfgloopmanip.c (place_new_loop): Export.
1911         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
1912         (tree-switch-conversion.o): Likewise.
1913         (tree-complex.o): Likewise.
1914         (tree-inline.o): Likewise.
1915         (tree-ssa-tailmerge.o): Likewise.
1916         (ipa-split.o): Likewise.
1917         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
1918         (tree-ssa-copy.o): Likewise.
1919         * tree-switch-conversion.c: Include cfgloop.h
1920         (process_switch): If we emit a bit-test cascade, schedule loops
1921         for fixup.
1922         * tree-complex.c: Include cfgloop.h.
1923         (expand_complex_div_wide): Properly add new basic-blocks to loops.
1924         * asan.c: Include cfgloop.h.
1925         (create_cond_insert_point): Properly add new basic-blocks to
1926         loops, schedule loop fixup.
1927         * cfgloop.c (verify_loop_structure): Check that looks are not
1928         marked for fixup.
1929         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
1930         to loops.
1931         (expand_omp_for_generic): Likewise.
1932         (expand_omp_sections): Likewise.
1933         (expand_omp_atomic_pipeline): Schedule loops for fixup.
1934         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
1935         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
1936         is initialized, not when loops are present.
1937         * tree-parloops.c (parallelize_loops): Remove checking here.
1938         * passes.c (init_optimization_passes): Schedule a copy-propagation
1939         pass before complete unrolling of inner loops.
1941 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
1943         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
1944         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
1945         (colorize_init): Add argument to _WIN32 version.
1946         * toplev.c: Include diagnostic-color.h.
1947         (process_options): Default to -fdiagnostics-color=auto if
1948         GCC_COLORS env var is in the environment.
1949         * common.opt (fdiagnostics-color=): Add Var and Init.
1950         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
1951         env var is in the environment, the default is auto rather than never.
1953         * diagnostic.h (file_name_as_prefix): Add context argument.
1954         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
1955         the string as locus.
1956         * langhooks.c (lhd_print_error_function): Adjust caller.
1958 2013-04-25  Lawrence Crowl  <crowl@google.com>
1960         * var-tracking.c (shared_hash_def::htab):
1961         Change type to hash_table.  Update dependent calls and types.
1963 2013-04-25  Lawrence Crowl  <crowl@google.com>
1965         * Makefile.in: Update as needed below.
1967         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
1968         Move declaration to after the type's method definitons.
1970         * attribs.c (htab_t scoped_attributes::attribute_hash):
1971         Change type to hash_table.  Update dependent calls and types.
1973         * bitmap.c (htab_t bitmap_desc_hash):
1974         Change type to hash_table.  Update dependent calls and types.
1976         * cselib.c (htab_t cselib_hash_table):
1977         Change type to hash_table.  Update dependent calls and types.
1979         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
1980         (hash_string_slot_node): Move implementation into lto-streamer.h
1981         struct string_slot_hasher.
1982         (eq_string_slot_node): Likewise.
1984         * data-streamer-out.c: Update output_block::string_hash_table
1985         dependent calls and types.
1987         * dwarf2cfi.c (htab_t trace_index):
1988         Change type to hash_table.  Update dependent calls and types.
1990         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
1991         Change type to hash_table.  Update dependent calls and types.
1992         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
1993         (htab_t optimize_external_refs::map): Likewise.
1994         (htab_t output_comp_unit::extern_map): Likewise.
1995         (htab_t output_comdat_type_unit::extern_map): Likewise.
1996         (htab_t output_macinfo::macinfo_htab): Likewise.
1997         (htab_t optimize_location_lists::htab): Likewise.
1998         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2000         * except.c (htab_t ehspec_hash_type):
2001         Change type to hash_table.  Update dependent calls and types.
2002         (assign_filter_values::ttypes): Likewise.
2003         (assign_filter_values::ehspec): Likewise.
2004         (sjlj_assign_call_site_values::ar_hash): Likewise.
2005         (convert_to_eh_region_ranges::ar_hash): Likewise.
2007         * gcse.c (htab_t pre_ldst_table):
2008         Change type to hash_table.  Update dependent calls and types.
2010         * ggc-common.c (htab_t saving_htab):
2011         Change type to hash_table.  Update dependent calls and types.
2012         (htab_t loc_hash): Likewise.
2013         (htab_t ptr_hash): Likewise.
2014         (call_count): Rename ggc_call_count.
2015         (call_alloc): Rename ggc_call_alloc.
2016         (loc_descriptor): Rename make_loc_descriptor.
2017         (add_statistics): Rename ggc_add_statistics.
2019         * ggc-common.c (saving_htab):
2020         Change type to hash_table.  Update dependent calls and types.
2022         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2023         (push_gimplify_context): Likewise.
2024         (pop_gimplify_context): Likewise.
2025         (struct gimple_temp_hash_elt): Added.
2026         (struct gimplify_hasher): Likewise.
2027         (struct gimplify_ctx.temp_htab):
2028         Change type to hash_table.  Update dependent calls and types.
2030         * gimple-fold.c: Include gimplify-ctx.h.
2032         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
2033         Change type to hash_table.  Update dependent calls and types.
2034         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
2035         avoid potential global name collision.
2037         * gimplify.c: Include gimplify-ctx.h.
2038         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
2039         (htab_t gimplify_ctx::temp_htab):
2040         Update dependent calls and types for new type hash_table.
2041         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
2042         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
2044         * gimplify-ctx.h: New.
2045         (struct gimple_temp_hash_elt): Move from gimplify.c.
2046         (class gimplify_hasher): New.
2047         (struct gimplify_ctx): Move from gimple.h.
2048         (htab_t gimplify_ctx::temp_htab):
2049         Change type to hash_table.  Update dependent calls and types.
2051         * graphite-clast-to-gimple.c: Include graphite-htab.h.
2052         (htab_t ivs_params::newivs_index):
2053         Change type to hash_table.  Update dependent calls and types.
2054         (htab_t ivs_params::params_index): Likewise.
2055         (htab_t print_generated_program::params_index): Likewise.
2056         (htab_t gloog::newivs_index): Likewise.
2057         (htab_t gloog::params_index): Likewise.
2059         * graphite.c: Include graphite-htab.h.
2060         4htab_t graphite_transform_loops::bb_pbb_mapping):
2061         Change type to hash_table.  Update dependent calls and types.
2063         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
2064         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
2065         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
2067         * graphite-dependences.c: Include graphite-htab.h.
2068         (loop_is_parallel_p): Change hash table type of parameter.
2070         * graphite-htab.h: New.
2071         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
2072         (extern find_pbb_via_hash): Move from graphite-poly.h.
2073         (extern loop_is_parallel_p): Move from graphite-poly.h.
2074         (extern get_loop_body_pbbs): Move from graphite-poly.h.
2076         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
2077         (extern loop_is_parallel_p): Move to graphite-htab.h.
2078         (extern get_loop_body_pbbs): Move to graphite-htab.h.
2080         * haifa-sched.c (htab_t delay_htab):
2081         Change type to hash_table.  Update dependent calls and types.
2082         (htab_t delay_htab_i2): Likewise.
2084         * ira-color.c (htab_t allocno_hard_regs_htab):
2085         Change type to hash_table.  Update dependent calls and types.
2087         * ira-costs.c (htab_t cost_classes_htab):
2088         Change type to hash_table.  Update dependent calls and types.
2090         * loop-invariant.c (htab_t merge_identical_invariants::eq):
2091         Change type to hash_table.  Update dependent calls and types.
2093         * loop-iv.c (htab_t bivs):
2094         Change type to hash_table.  Update dependent calls and types.
2096         * loop-unroll.c (htab_t opt_info::insns_to_split):
2097         Change type to hash_table.  Update dependent calls and types.
2098         (htab_t opt_info::insns_with_var_to_expand): Likewise.
2100         * lto-streamer.h (struct string_slot): Move from data-streamer.h
2101         (struct string_slot_hasher): New.
2102         (htab_t output_block::string_hash_table):
2103         Change type to hash_table.  Update dependent calls and types.
2105         * lto-streamer-in.c (freeing_string_slot_hasher): New.
2106         (htab_t file_name_hash_table):
2107         Change type to hash_table.  Update dependent calls and types.
2109         * lto-streamer-out.c: Update output_block::string_hash_table dependent
2110         calls and types.
2112         * lto-streamer.c (htab_t tree_htab):
2113         Change type to hash_table.  Update dependent calls and types.
2115         * omp-low.c: Include gimplify-ctx.h.
2117         * passes.c (htab_t name_to_pass_map):
2118         Change type to hash_table.  Update dependent calls and types.
2119         (pass_traverse): Rename to passes_pass_traverse.
2121         * plugin.c (htab_t event_tab):
2122         Change type to hash_table.  Update dependent calls and types.
2124         * postreload-gcse.c (htab_t expr_table):
2125         Change type to hash_table.  Update dependent calls and types.
2126         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
2128         * sese.c (debug_rename_map_1): Make extern.
2129         (htab_t copy_bb_and_scalar_dependences::rename_map):
2130         Change type to hash_table.  Update dependent calls and types.
2132         * sese.h (extern debug_rename_map): Move to .c file.
2134         * store-motion.c (htab_t store_motion_mems_table):
2135         Change type to hash_table.  Update dependent calls and types.
2137         * trans-mem.c (htab_t tm_new_mem_hash):
2138         Change type to hash_table.  Update dependent calls and types.
2140         * tree-browser.c (htab_t TB_up_ht):
2141         Change type to hash_table.  Update dependent calls and types.
2143         * tree-cfg.c (htab_t discriminator_per_locus):
2144         Change type to hash_table.  Update dependent calls and types.
2146         * tree-complex.c: Include tree-hasher.h
2147         (htab_t complex_variable_components):
2148         Change type to hash_table.  Update dependent calls and types.
2150         * tree-eh.c (htab_t finally_tree):
2151         Change type to hash_table.  Update dependent calls and types.
2153         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
2154         struct int_tree_hasher.
2155         (extern int_tree_map_eq): Likewise.
2156         (uid_decl_map_hash): Removed.
2157         (extern decl_tree_map_eq): Likewise.
2159         * tree-hasher.h: New.
2160         (struct int_tree_hasher): New.
2161         (typedef int_tree_htab_type): New.
2163         * tree-inline.c: Include gimplify-ctx.h.
2165         * tree-mudflap.c: Include gimplify-ctx.h.
2167         * tree-parloops.c: Include tree-hasher.h.
2168         (htab_t eliminate_local_variables_stmt::decl_address):
2169         Change type to hash_table.  Update dependent calls and types.
2170         (htab_t separate_decls_in_region::decl_copies): Likewise.
2172         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
2173         Change type to hash_table.  Update dependent calls and types.
2175         * tree-sra.c (candidates):
2176         Change type to hash_table.  Update dependent calls and types.
2178         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
2179         in tree-flow.h.
2180         (int_tree_map_hash): Likewise.
2182         * tree-ssa-dom.c (htab_t avail_exprs):
2183         Change type to hash_table.  Update dependent calls and types.
2185         * tree-ssa-live.c (var_map_base_init::tree_to_index):
2186         Change type to hash_table.  Update dependent calls and types.
2188         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
2189         Change type to hash_table.  Update dependent calls and types.
2191         * tree-ssa-phiopt.c (seen_ssa_names):
2192         Change type to hash_table.  Update dependent calls and types.
2194         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
2195         Change type to hash_table.  Update dependent calls and types.
2197         * tree-ssa-uncprop.c (equiv):
2198         Change type to hash_table.  Update dependent calls and types.
2200 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
2202         PR rtl-optimization/57003
2203         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2204         call note_stores with kill_clobbered_value callback again after
2205         killing regs_invalidated_by_call.
2207 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
2209         * config/aarch64/aarch64-simd.md
2210         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
2211         (aarch64_simd_bsl<mode>): Likewise.
2212         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
2214 2013-04-25  Marek Polacek  <polacek@redhat.com>
2216         PR tree-optimization/57066
2217         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
2219 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
2221         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
2223 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
2225         * config/aarch64/aarch64-builtins.c
2226         (aarch64_fold_builtin): New.
2227         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
2228         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
2229         * config/aarch64/aarch64-simd-builtins.def (abs): New.
2230         * config/aarch64/arm_neon.h
2231         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
2233 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
2234             Tejas Belagod  <tejas.belagod@arm.com>
2236         * config/aarch64/aarch64-builtins.c
2237         (aarch64_gimple_fold_builtin): New.
2238         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
2239         * config/aarch64/aarch64-simd-builtins.def (addv): New.
2240         * config/aarch64/aarch64-simd.md (addpv4sf): New.
2241         (addvv4sf): Update.
2242         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
2244 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2246         * config/aarch64/aarch64.md
2247         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
2249 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2251         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
2252         (*ngcsi_uxtw): New pattern.
2254 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2255             Julian Brown  <julian@codesourcery.com>
2257         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
2258         (TB_DREG): Add T_V4HF.
2259         (v4hf_UP): New macro.
2260         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2261         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2262         Handle initialisation of V4HF. Adjust initialisation of reinterpret
2263         built-ins.
2264         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2265         (arm_vector_mode_supported_p): Handle V4HF.
2266         (arm_mangle_map): Handle V4HFmode.
2267         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
2268         * config/arm/arm_neon_builtins.def: Add entries for
2269         vcvtv4hfv4sf, vcvtv4sfv4hf.
2270         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
2271         (neon_vcvtv4hfv4sf): Likewise.
2272         * config/arm/neon-gen.ml: Handle half-precision floating point
2273         features.
2274         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
2275         * config/arm/arm_neon.h: Regenerate.
2276         * config/arm/neon.ml (type elts): Add F16.
2277         (type vectype): Add T_float16x4, T_floatHF.
2278         (type vecmode): Add V4HF.
2279         (type features): Add Requires_FP_bit feature.
2280         (elt_width): Handle F16.
2281         (elt_class): Likewise.
2282         (elt_of_class_width): Likewise.
2283         (mode_of_elt): Refactor.
2284         (type_for_elt): Handle F16, fix error messages.
2285         (vectype_size): Handle T_float16x4.
2286         (vcvt_sh): New function.
2287         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
2288         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
2289         (string_of_mode): Handle V4HF.
2290         * doc/arm-neon-intrinsics.texi: Regenerate.
2292 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
2294         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2295         format specifier in 'X' case.
2297 2013-04-25  Alan Modra  <amodra@gmail.com>
2299         PR target/57052
2300         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
2301         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
2302         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
2303         Repeat for many other rotate/shift and mask patterns using subregs.
2304         Name lshiftrt insns.
2305         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
2306         on WORDS_BIG_ENDIAN.
2308 2013-04-25  Alan Modra  <amodra@gmail.com>
2310         * config.gcc: Support little-endian powerpc-linux targets.
2311         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
2312         (LINK_OS_LINUX_SPEC): Define.
2313         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
2314         Preserve MASK_LITTLE_ENDIAN.
2315         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
2316         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
2317         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
2318         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
2319         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
2320         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
2321         Correct fp word order for little-endian.  Don't shift toc entries
2322         smaller than a word for little-endian.
2323         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
2324         (bswapdi2 splits): Correct low-part subreg for little-endian.
2325         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
2326         low/high where such is correct only for be.
2327         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
2328         little-endian for -mcall-aixdesc.
2330 2013-04-25  Alan Modra  <amodra@gmail.com>
2332         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
2333         replace_equiv_address_nv.
2335 2013-04-25  Alan Modra  <amodra@gmail.com>
2337         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
2339 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2341         Revert:
2342         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2343         * rtl.h (struct rtx_def): ...
2345 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2347         PR rtl-optimizations/57046
2348         * lra-constraints (split_reg): Set up lra_risky_transformations_p
2349         for multi-reg splits.
2351 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
2353         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
2355 2013-04-24  Sterling Augustine  <saugustine@google.com>
2357         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
2358         (comp_dir_string, debug_str_dwo_section): New.
2359         (DEBUG_STR_DWO_SECTION): Rename to ...
2360         (DEBUG_DWO_STR_SECTION): ... this.
2361         (DEBUG_NORM_STR_SECTION): Delete.
2362         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
2363         (DEBUG_STR_DWO_SECTION_FLAGS): New.
2364         (find_AT_string): Move most logic to ...
2365         (find_AT_string_in_table): ... here.  New.
2366         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
2367         add_skeleton_AT_string.  Delete logic.
2368         (output_skeleton_debug_sections): Remove call to
2369         add_top_level_skeleton_die_attrs.
2370         (add_comp_dir_attribute): Move logic to comp_dir_string.
2371         (dwarf2out_init): Initialize debug_str_dwo_section.
2372         (output_indirect_string): Call find_string_form.
2373         (output_indirect_strings): Rewrite.
2374         (prune_unused_types): Empty skeleton_debug_str_hash.
2375         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
2376         (dwarf2out_finish):  Call output_indirect_strings.
2378 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2380         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
2382 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2384         * rtl.h (struct rtx_def): Add comment for field jump.
2385         (LRA_SUBREG_P): New macro.
2386         * recog.c (register_operand): Check LRA_SUBREG_P.
2387         * lra.c (lra): Add note at the end of RTL code. Align non-empty
2388         stack frame.
2389         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2390         (lra_final_code_change): Skip subreg change for operators.
2391         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2392         if there are no operand changes.
2393         * lra-constraints.c (curr_insn_set): New.
2394         (match_reload): Set LRA_SUBREG_P.
2395         (emit_spill_move): Ditto.
2396         (check_and_process_move): Use curr_insn_set. Process only single
2397         set insns.  Don't initialize sec_mem_p and change_p.
2398         (simplify_operand_subreg): Use LRA_SUBREG_P.
2399         (reg_in_class_p): New function.
2400         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
2401         of #ifdef.  Add code to remove cycling.
2402         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2403         non-null disp.  Reload inner instead of disp when base and index
2404         are null.  Try to put lo_sum into register.
2405         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2406         (check_and_process_move): Move code for move cost check to
2407         simple_move_p.  Remove equiv_substitution.
2408         (simple_move_p): New function.
2409         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
2410         curr_insn_set.  Call check_and_process_move only for single set
2411         insns.  Use the new function.  Move call of check_and_process_move
2412         after operand equiv substitution and address process.
2414 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
2416         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
2417         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
2418         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
2420 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2422         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
2424 2013-04-24  Marek Polacek  <polacek@redhat.com>
2426         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
2427         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
2428         (select_loops_exit_conditions): Likewise.
2429         (number_of_iterations_for_all_loops): Likewise.
2430         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
2431         (scev_analysis): Likewise.
2433 2013-04-02  Catherine Moore  <clm@codesourcery.com>
2434             Chao-ying Fu <fu@mips.com>
2436         * config/mips/micromips.md (jraddiusp): New pattern.
2437         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
2438         instruction if possible.
2440 2013-04-24  Alan Modra  <amodra@gmail.com>
2442         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
2444 2013-04-24  Julian Brown  <julian@codesourcery.com>
2445             Chung-Lin Tang  <cltang@codesourcery.com>
2447         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
2448         dependency behavior in enumeration type DIE generation. Add TODO note
2449         to comments about future DW_FORM_sdata/udata re-work of related code.
2451 2013-04-23  Lawrence Crowl  <crowl@google.com>
2453         * Makefile.in: Update as needed below.
2455         * hash-table.h (class hash_table):
2456         Correct many methods with parameter types compare_type to the correct
2457         value_type.  (Correct code was unlikely to notice the change.)
2458         (hash_table::elements_with_deleted) New.
2459         (class hashtable::iterator): New.
2460         (hashtable::begin()): New.
2461         (hashtable::end()): New.
2462         (FOR_EACH_HASH_TABLE_ELEMENT): New.
2464         * statistics.c (statistics_hashes):
2465         Change type to hash_table.  Update dependent calls and types.
2467         * tree-into-ssa.c (var_infos):
2468         Change type to hash_table.  Update dependent calls and types.
2470         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
2471         Change type to hash_table.  Update dependent calls and types.
2473         * tree-ssa-loop-im.c (struct mem_ref.refs):
2474         Change type to hash_table.  Update dependent calls and types.
2476         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
2477         Change type to hash_table.  Update dependent calls and types.
2479         * tree-ssa-sccvn.c (vn_tables_s::nary):
2480         Change type to hash_table.  Update dependent calls and types.
2481         (vn_tables_s::phis): Likewise.
2482         (vn_tables_s::references): Likewise.
2484         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
2485         (vn_reference_eq): Update parameter and return types.
2487         * tree-ssa-structalias.c (pointer_equiv_class_table):
2488         Change type to hash_table.  Update dependent calls and types.
2489         (location_equiv_class_table): Likewise.
2491         * tree-vect-data-refs.c: Consequential changes for making
2492         peeling a hash_table.
2494         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
2495         (destroy_loop_vec_info): Dependent hash_table update.
2497         * tree-vectorizer.h (peeling_htab):
2498         Change type to hash_table.  Update dependent calls and types.
2500 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
2502         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
2503         to check the register content is equal or not.
2504         * lra-constraints.c (match_reload): Use lra_assign_reg_val
2505         to assign register content record.
2506         * lra-eliminations.c (update_reg_eliminate): Use
2507         lra_update_reg_val_offset to update register content offset.
2508         * lra-int.h (struct lra_reg): Add offset member.
2509         (lra_reg_val_equal_p): New static inline function.
2510         (lra_update_reg_val_offset): New static inline function.
2511         (lra_assign_reg_val): New static inline function.
2512         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
2513         to assign register content record.
2514         (initialize_lra_reg_info_element): Initial offset to zero.
2516 2013-04-23  Catherine Moore  <clm@codesourcery.com>
2518         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
2519         operands.  Record compression.
2521 2013-04-23  Xinliang David Li  <davidxl@google.com>
2523         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
2525 2013-04-23  Richard Biener  <rguenther@suse.de>
2527         PR middle-end/57036
2528         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
2529         parameter, only add abnormal goto edges from the copied body
2530         if the call could perform abnormal gotos.
2531         (copy_cfg_body): Adjust.
2533 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
2535         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
2537 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
2539         * coretypes.h (gimple_stmt_iterator): Add struct to make
2540         compatible with C.
2542 2013-04-23  Richard Biener  <rguenther@suse.de>
2544         PR tree-optimization/57026
2545         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
2546         from SSA names occuring in abnormal PHI nodes.
2548 2013-04-22  Andi Kleen  <ak@linux.intel.com>
2550         * lto/lto.c (print_lto_report_1): Fix LTO report names.
2552 2013-04-22  Andi Kleen  <ak@linux.intel.com>
2554         * lto/lto.c (print_lto_report_1): Declare early.
2555         (read_cgraph_and_symbols): Call print_lto_report_1 early.
2557 2013-04-22  Andi Kleen  <ak@linux.intel.com>
2559         * common.opt (-flto-report-wpa): Add.
2560         * doc/invoke.texi (-flto-report-wpa): Add.
2561         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
2562         (lto_main): dito.
2564 2013-04-22  Xinliang David Li  <davidxl@google.com>
2566         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
2567         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
2568         * Makefile.in: New dependency
2570             David Daney <ddaney.cavm@gmail.com>
2572         * configure.ac (gcc_cv_as_micromips_support):  Use the
2573         --fatal-warnings option.
2574         * configure: Regenerate.
2576 2013-04-22  Marek Polacek  <polacek@redhat.com>
2578         PR sanitizer/56990
2579         * tsan.c (instrument_expr): Don't instrument expression
2580         in case its size is zero.
2582 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
2584         PR target/57032
2585         Revert:
2586         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
2588         * config/alpha/alpha.c (TARGET_LRA_P): New define.
2590 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
2592         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
2593         (gimple_stmt_iterator): New typedef.
2594         * gimple.h (gimple_stmt_iterator): Rename to...
2595         (gimple_stmt_iterator_d): ... This.
2596         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
2597         trees be valid for GIMPLE and GENERIC.
2598         (TARGET_GIMPLE_FOLD_BUILTIN): New.
2599         * gimple-fold.c (gimple_fold_call): Call target hook
2600         gimple_fold_builtin.
2601         * hooks.c (hook_bool_gsiptr_false): New.
2602         * hooks.h (hook_bool_gsiptr_false): New.
2603         * target.def (fold_stmt): New.
2604         * doc/tm.texi: Regenerate.
2606 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
2608         PR target/57018
2609         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
2610         a set sp if no stack realignment.
2612 2013-04-22  Nick Clifton  <nickc@redhat.com>
2614         * config.gcc (tilegx-linux): Extend extra_objs rather than
2615         overwriting it.
2616         (tilepro-linux): Likewise.
2618 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
2620         * config/aarch64/aarch64-builtins.c
2621         (CF): Remove.
2622         (CF0, CF1, CF2, CF3, CF4, CF10): New.
2623         (VAR<1-12>): Add MAP parameter.
2624         (BUILTIN_*): Likewise.
2625         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
2626         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
2627         (aarch64_ushl_n<mode>): Likewise.
2628         (aarch64_sshr_n<mode>): Likewise.
2629         (aarch64_ushr_n<mode>): Likewise.
2630         (aarch64_<maxmin><mode>): Likewise.
2631         (aarch64_sqrt<mode>): Likewise.
2632         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
2633         (vshr<q>_n_*): Likewise.
2635 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
2637         * config/aarch64/aarch64-builtins.c
2638         (aarch64_simd_builtin_type_mode): Handle SF types.
2639         (sf_UP): Define.
2640         (BUILTIN_GPF): Define.
2641         (aarch64_init_simd_builtins): Handle SF types.
2642         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
2643         (frecps): Likewise.
2644         (frecpx): Likewise.
2645         * config/aarch64/aarch64-simd.md
2646         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
2647         (aarch64_frecpe<mode>): New.
2648         (aarch64_frecps<mode>): Likewise.
2649         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
2650         (v8type): Add frecp<esx>.
2651         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
2652         (aarch64_frecps<mode>): Likewise.
2653         * config/aarch64/iterators.md (FRECP): New.
2654         (frecp_suffix): Likewise.
2655         * config/aarch64/arm_neon.h
2656         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
2658 2013-04-22  Christian Bruel  <christian.bruel@st.com>
2660         PR target/56995
2661         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
2662         (REG_CLASS_NAMES): Idem.
2663         (REG_CLASS_CONTENTS): Idem.
2664         (REGCLASS_HAS_FP_REG): Idem.
2665         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
2666         (sh_conditional_register_usage): Idem.
2668 2013-04-21  Jeff Law  <law@redhat.com>
2670         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
2671         (ssa_forward_propagate_and_combine): Use it.
2673 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
2675         * lra.c: Update the flow chart diagram.
2677 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
2679         PR rtl-optimization/56847
2680         * lra-constraints.c (process_alt_operands): Discourage alternative
2681         with non-matche doffsettable memory constraint fro memory with
2682         known offset.
2684 2013-04-19  Richard Biener  <rguenther@suse.de>
2686         PR tree-optimization/56982
2687         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
2688         function.
2689         * gimplify.c (gimplify_call_expr): Notice special calls.
2690         (gimplify_modify_expr): Likewise.
2691         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
2692         abnormal control flow receivers.
2693         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
2694         in the same way as cfun->has_nonlocal_labels.
2695         (gimple_purge_dead_abnormal_call_edges): Likewise.
2696         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
2697         receivers start a basic-block.
2699 2013-04-19  Richard Biener  <rguenther@suse.de>
2701         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
2702         member ...
2703         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
2704         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
2705         (SLP_TREE_LOAD_PERMUTATION): Add.
2706         (vect_transform_slp_perm_load): Adjust prototype.
2707         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
2708         (vect_free_slp_instance): Likewise.
2709         (vect_create_new_slp_node): Likewise.
2710         (vect_supported_slp_permutation_p): Remove.
2711         (vect_slp_rearrange_stmts): Adjust.
2712         (vect_supported_load_permutation_p): Likewise.  Inline
2713         vect_supported_slp_permutation_p here.
2714         (vect_analyze_slp_instance): Compute load permutations per
2715         slp node instead of per instance.
2716         (vect_get_slp_defs): Adjust.
2717         (vect_transform_slp_perm_load): Likewise.
2718         (vect_schedule_slp_instance): Remove redundant code.
2719         (vect_schedule_slp): Remove hack for PR56270, add it ...
2720         * tree-vect-stmts.c (vectorizable_load): ... here, do not
2721         CSE loads for SLP.  Adjust.
2723 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
2725         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
2726         spelling in two comments.
2728 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
2730         PR target/56797
2731         * config/arm/arm.c (load_multiple_sequence): Require SP
2732         as base register for loads if SP is in the register list.
2734 2013-04-19  Martin Jambor  <mjambor@suse.cz>
2736         PR tree-optimization/56718
2737         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
2738         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
2739         and made public.  Adjusted all callers.
2740         (ipa_intraprocedural_devirtualization): New function.
2741         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
2742         (ipa_intraprocedural_devirtualization): Likewise.
2743         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
2745 2013-04-19  Richard Biener  <rguenther@suse.de>
2747         PR tree-optimization/57000
2748         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
2750 2013-04-19  Terry Guo  <terry.guo@arm.com>
2752         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
2753         Replace with ...
2754         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
2755         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
2756         (cortex_m4_fmacs): Use new reservations.
2757         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
2759 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
2761         PR rtl-optimization/56999
2762         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
2763         related code.
2764         (lra_coalesce): Remove split_origin_bitmap and related code.
2765         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
2766         ranges if necessary.
2768 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
2770         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
2771         New array.
2772         (ix86_expand_call): Remove clobbered_registers array and use
2773         x86_64_ms_sysv_extra_clobbered_registers instead.
2774         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
2775         Declare here.
2776         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
2777         predicate.
2778         * config/i386/i386.md (*call_rex64_ms_sysv): Use
2779         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
2780         (*call_value_rex64_ms_sysv): Ditto.
2782 2013-04-18  Cary Coutant  <ccoutant@google.com>
2784         * dwarf2out.c (output_pubnames): Check die_perennial_p of
2785         parent instead of die_mark.
2787 2013-04-18  Diego Novillo  <dnovillo@google.com>
2789         * gimple.c (create_gimple_tmp): New.
2790         (get_expr_type): New.
2791         (build_assign): New.
2792         (build_type_cast): New.
2793         * gimple.h (enum ssa_mode): Define.
2794         (gimple_seq_set_location): New.
2795         * asan.c (build_check_stmt): Change some gimple_build_* calls
2796         to use build_assign and build_type_cast.
2798 2013-04-18  Richard Biener  <rguenther@suse.de>
2800         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
2801         handle negative step.  Remove redundant checks.
2802         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
2803         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
2804         for negative step and grouped loads fail to vectorize.
2806 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
2808         * emit-rtl.c (reset_insn_used_flags): New function.
2809         (reset_all_used_flags): Use it.
2810         (verify_insn_sharing): New function.
2811         (verify_rtl_sharing): Fix verification for SEQUENCEs.
2813 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
2815         PR tree-optimization/56984
2816         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
2817         and (x >> M) >= N don't register any assertion if N << M is the
2818         minimum value.
2820 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
2822         * lower-subreg.c (resolve_simple_move): If called self-recursive,
2823         do not delete_insn insns that have not yet been emitted, only
2824         unlink them with remove_insn.
2825         * df-scan.c (df_insn_delete): Revert r197492.
2827 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
2829         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
2830         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
2832 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
2834         * config/arm/arm.md (movsicc_insn): Convert define_insn into
2835         define_insn_and_split.
2836         (and_scc,ior_scc,negscc): Likewise.
2837         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
2839 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
2841         * config/arm/arm.c (use_return_insn): Return 0 for targets that
2842         can benefit from using a sequence of LDRD instructions in epilogue
2843         instead of a single LDM instruction.
2845 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2847         PR 45688
2848         * doc/extend.texi: Fix typo.
2850 2013-04-17  Richard Biener  <rguenther@suse.de>
2852         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
2853         (vect_build_slp_tree): ... here.
2854         (vect_build_slp_tree_1): Compute which stmts of the SLP group
2855         match.  Remove special-casing of mismatched complex loads.
2856         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
2857         re-try the match with swapped commutative operands.
2858         (vect_supported_load_permutation_p): Remove special-casing of
2859         mismatched complex loads.
2860         (vect_analyze_slp_instance): Adjust.
2862 2013-04-17  Richard Biener  <rguenther@suse.de>
2864         PR rtl-optimization/56921
2865         * cfgloop.h (struct loop): Add simple_loop_desc member.
2866         (struct niter_desc): Mark with GTY(()).
2867         (simple_loop_desc): Do not use aux field but simple_loop_desc.
2868         * loop-iv.c (get_simple_loop_desc): Likewise.
2869         (free_simple_loop_desc): Likewise.
2871         Revert
2872         2013-04-16  Richard Biener  <rguenther@suse.de>
2874         PR rtl-optimization/56921
2875         * loop-init.c (pass_rtl_move_loop_invariants): Add
2876         TODO_do_not_ggc_collect to todo_flags_finish.
2877         (pass_rtl_unswitch): Same.
2878         (pass_rtl_unroll_and_peel_loops): Same.
2879         (pass_rtl_doloop): Same.
2881 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2883         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
2884         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
2885         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
2886         references.
2887         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
2888         * tree-streamer.c (record_common_node): Adjust reference in comment.
2890 2013-04-17  Terry Guo  <terry.guo@arm.com>
2892         * config/arm/cortex-m4.md: Add a new bypass.
2894 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2896         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
2897         New pattern.
2898         (*subs_<optab><mode>_multp2): New pattern.
2899         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2900         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2902 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2904         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
2905         (*subs_mul_imm_<mode>): New pattern.
2907 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
2909         PR target/56948
2910         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
2911         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
2912         (vsx_movti_32bit): Change j->wa to O->wa.
2914 2013-04-16  Richard Biener  <rguenther@suse.de>
2916         PR rtl-optimization/56921
2917         * loop-init.c (pass_rtl_move_loop_invariants): Add
2918         TODO_do_not_ggc_collect to todo_flags_finish.
2919         (pass_rtl_unswitch): Same.
2920         (pass_rtl_unroll_and_peel_loops): Same.
2921         (pass_rtl_doloop): Same.
2923 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
2925         * config/arm/arm.c (emit_multi_reg_push): New declaration
2926         for an existing function.
2927         (arm_emit_strd_push): New function.
2928         (arm_expand_prologue): Used here.
2929         (arm_emit_ldrd_pop): New function.
2930         (arm_expand_epilogue): Used here.
2931         (arm_get_frame_offsets): Update condition.
2932         (arm_emit_multi_reg_pop): Add a special case for load of a single
2933         register with writeback.
2935 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
2937         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
2938         description.
2940 2013-04-16  Richard Biener  <rguenther@suse.de>
2942         PR tree-optimization/56756
2943         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
2944         (first_mem_ref_loc): New.
2945         (execute_sm): Place the load temporarily before a previous
2946         access instead of in the latch edge to ensure its SSA dependencies
2947         are defined at points dominating the load.
2949 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
2951         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
2952         correct fix by moving header and footer insn to the footer of
2953         the merged basic block.  Clear BB_END of the merged-away block.
2955         PR middle-end/43631
2956         * emit-rtl.c (make_note_raw): New function.
2957         (link_insn_into_chain): New static inline function.
2958         (add_insn): Use it.
2959         (add_insn_before, add_insn_after): Factor insn chain linking code...
2960         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
2961         using link_insn_into_chain.
2962         (note_outside_basic_block_p): New helper function for emit_note_after
2963         and emit_note_before.
2964         (emit_note_after): Use nobb variant of add_insn_after if the note
2965         should not be contained in a basic block.
2966         (emit_note_before): Use nobb variant of add_insn_before if the note
2967         should not be contained in a basic block.
2968         (emit_note_copy): Use make_note_raw.
2969         (emit_note): Likewise.
2970         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
2971         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
2972         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
2973         the moved barrier the tail of the basic block it follows.
2974         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
2976 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
2978         PR tree-optimization/56962
2979         * gimple-ssa-strength-reduction.c (record_increment): Only set
2980         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
2981         either rhs1 or rhs2 is equal to c->base_expr.
2983 2013-04-15  Richard Biener  <rguenther@suse.de>
2985         PR tree-optimization/56933
2986         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
2987         member.
2988         (GROUP_READ_WRITE_DEPENDENCE): Remove.
2989         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
2990         * tree-vect-data-refs.c (vect_analyze_group_access): Move
2991         dependence check ...
2992         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
2993         ... here.
2994         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
2995         GROUP_READ_WRITE_DEPENDENCE.
2997 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2999         * emit-rtl.c (reset_all_used_flags): New function.
3000         (verify_rtl_sharing): Call reset_all_used_flags before and after
3001         performing the checks.
3003 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3005         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3006         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3007         * config/arm/constraints.md (De): New constraint.
3008         * config/arm/neon.md (anddi3_neon): Delete.
3009         (neon_vand<mode>): Expand to standard anddi3 pattern.
3010         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3011         Move earlier in the file.
3012         (neon_inv_logic_op2): Likewise.
3013         (arm_anddi_operand_neon): New predicate.
3015 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3017         * configure.ac (gcc_cv_ld_as_needed): Set
3018         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3019         Use -z ignore, -z record on *-*-solaris2*.
3020         (HAVE_LD_AS_NEEDED): Update comment.
3021         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3022         * configure: Regenerate.
3023         * config.in: Regenerate.
3024         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3025         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3026         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3027         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3028         equivalents.  Fix markup.
3029         * doc/tm.texi: Regenerate.
3031 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
3033         * config/i386/i386.opt: New option mstack-protector-guard=.
3034         * config/i386/i386-opts.h: Add enum stack_protector_guard.
3035         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
3036         TARGET_SSP_TLS_GUARD.
3037         * config/i386/i386.c (ix86_option_override_internal): Set
3038         ix86_stack_protector_guard.
3039         * config/i386/i386.md (stack_protect_set): Enable for
3040         TARGET_SSP_TLS_GUARD only.
3041         (stack_protect_set_<mode>): Ditto.
3042         (stack_protect_test): Ditto.
3043         (stack_protect_test_<mode>): Ditto.
3044         * doc/invoke.texi (i386 Option): Document.
3046 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3048         PR target/56890
3049         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
3050         (S_MODES): Set H_MODE bit.
3051         (SF_MODES): Set only S_MODE and SF_MODE bits.
3052         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
3053         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
3054         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
3055         <MODE_FLOAT>: Likewise.
3057 2013-04-15  Joey Ye  <joey.ye@arm.com>
3059         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
3061 2013-04-15  Joey Ye  <joey.ye@arm.com>
3063         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
3064         for real far jump.
3065         (thumb_far_jump_used_p): Count instruction size and set
3066         far_jump_used.
3068 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
3070         * reorg.c (fill_simple_delay_slots): Reindent block of code.
3071         * resource.c (mark_target_live_regs): Reformat conditional block.
3073 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
3075         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
3076         notes, they are emitted only just before final.
3077         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
3079 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
3081         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
3082         * cfgrtl.c (delete_insn): Call it here instead.
3083         * lra-spills.c (lra_final_code_change): Use delete_insn.
3084         * haifa-sched.c (sched_remove_insn): Likewise.
3085         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
3086         returning to the nop pool.
3087         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
3088         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
3090 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
3092         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
3093         * doc/tm.texi: Regenerated.
3095 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
3097         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
3098         QImode checks.
3100 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
3102         * df-core.c (df_find_def): Compare register numbers.
3103         (df_find_use): Likewise.
3105 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
3107         PR target/56903
3108         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
3109         lra_in_progress for return.
3111 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
3113         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
3114         define_insn into define_insn_and_split and emit movsicc patterns.
3116 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
3118         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
3120 2013-04-12  Richard Biener  <rguenther@suse.de>
3122         * tree-pass.h (TODO_do_not_ggc_collect): New.
3123         * passes.c (execute_one_ipa_transform_pass): Honor
3124         TODO_do_not_ggc_collect.
3125         (execute_one_pass): Likewise.
3127         Revert
3128         2013-04-10  Richard Biener  <rguenther@suse.de>
3130         * passes.c (init_optimization_passes): Remove reload pass.
3131         * ira.c (do_reload): Merge into ...
3132         (ira): ... this.
3133         (rest_of_handle_reload): Remove.
3134         (pass_reload): Likewise.
3135         * config/i386/i386.c (ix86_option_override): Refer to ira instead
3136         of reload for vzeroupper pass placement.
3138 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
3140         PR tree-optimization/56918
3141         PR tree-optimization/56920
3142         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
3143         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
3144         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
3145         use wide_mul_with_sign method.
3147 2013-04-12  Richard Biener  <rguenther@suse.de>
3149         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
3150         not be considered a gimple constant.
3152 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
3154         * fold-const.c (const_binop): Handle vector shifts by a scalar.
3155         (fold_binary_loc): Call const_binop also for mixed vector-scalar
3156         operations.
3158 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3159             Jakub Jelinek  <jakub@redhat.com>
3161         * opts.c: Include diagnostic-color.h.
3162         (common_handle_option): Handle OPT_fdiagnostics_color_.
3163         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
3164         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
3165         (diagnostic-color.o): New.
3166         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
3167         (diagnostic_color_rule): New enum.
3168         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
3169         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
3170         the location string.
3171         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
3172         either NULL, or color kind.
3173         * diagnostic-color.c: New file.
3174         * diagnostic-color.h: New file.
3175         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
3176         arguments.
3177         * doc/invoke.texi (-fdiagnostics-color): Document.
3178         * pretty-print.h (pp_show_color): Define.
3179         (struct pretty_print_info): Add show_color field.
3180         * diagnostic.c: Include diagnostic-color.h.
3181         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
3182         macros.  Colorize error:, warning: etc. strings and also the location
3183         string.
3184         (diagnostic_show_locus): Colorize the caret line.
3185         * pretty-print.c: Include diagnostic-color.h.
3186         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
3187         inside of %< %> quotes or quoted through q format modifier.
3189 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3191         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
3193 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3195         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
3196         code in CC_NZ mode.
3197         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
3198         pattern.
3200 2013-04-11  Marek Polacek  <polacek@redhat.com>
3202         PR tree-optimization/48184
3203         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
3205 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3207         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
3208         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
3209         (skip_simple_arithmetic): Tidy up.
3210         * tree.h (skip_simple_constant_arithmetic): Declare.
3212 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3214         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
3216 2013-04-11  Richard Biener  <rguenther@suse.de>
3218         * tree-vect-loop.c (get_initial_def_for_induction): Properly
3219         generate vector constants.
3221 2013-04-11  Richard Biener  <rguenther@suse.de>
3223         PR tree-optimization/56878
3224         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
3225         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
3226         New function.
3227         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3228         Prefer to align the DR with the most invariant base address.
3230 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3232         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
3233         comment.
3235 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
3237         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
3238         floating-point vector comparisons against 0.
3240 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
3242         PR tree-optimization/56899
3243         * fold-const.c (extract_muldiv_1): Apply distributive law
3244         only if TYPE_OVERFLOW_WRAPS (ctype).
3246 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
3248         PR target/56124
3249         * ira-costs.c (scan_one_insn): Check whether the source rtx of
3250         loading has side effect.
3252 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
3254         * config/sparc/sparc.c: Include tree-pass.h.
3255         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
3256         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
3257         head of file.  Change return type.  Split off gate function.
3258         (sparc_gate_work_around_errata): New function.
3259         (pass_work_around_errata): New pass definition.
3260         (insert_pass_work_around_errata) New pass insert definition to
3261         insert pass_work_around_errata just after delayed-branch scheduling.
3262         (sparc_option_override): Insert the pass.
3263         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
3265 2013-04-10  David S. Miller  <davem@davemloft.net>
3267         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
3268         or -mcpu=hypersparc.
3270         * target.def (cstore_mode): New hook.
3271         * target.h: Include insn-codes.h
3272         * targhooks.c: Likewise.
3273         (default_cstore_mode): New function.
3274         * targhooks.h: Declare it.
3275         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
3276         * doc/tm.texi: Rebuild.
3277         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
3278         target hook, rather than inspecting the insn_data.
3279         * config/sparc/sparc.c (sparc_cstore_mode): New function.
3280         (TARGET_CSTORE_MODE): Redefine.
3281         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
3282         result patterns.
3283         * config/sparc/predicates.md (cstore_result_operand): New special
3284         predicate.
3285         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
3286         Use it for operand 0.
3287         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
3288         (*snesi_special): Likewise.
3289         (*snesi_zero): Likewise.
3290         (*seqsi_zero): Likewise.
3291         (*sltu_insn): Likewise.
3292         (*sgeu_insn): Likewise.
3293         (*seqdi_special): Make operand 0 and comparison operation be of
3294         DImode.
3295         (*snedi_special): Likewise.
3296         (*snedi_special_vis3): Likewise.
3297         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
3298         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
3299         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
3300         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
3301         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
3302         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
3303         (*sltu_extend_sp64): Likewise.
3304         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
3305         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
3306         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
3307         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
3308         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
3310 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
3312         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
3313         (aarch64_start_file): Use the new function.
3315 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3316             Jason Merrill  <jason@redhat.com>
3318         * common.opt: Add -gdwarf.
3319         * opts.c (common_handle_option): Handle it.
3320         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
3322 2013-04-10  Richard Biener  <rguenther@suse.de>
3324         * passes.c (execute_todo): Do not call ggc_collect conditional here.
3325         (execute_one_ipa_transform_pass): But unconditionally here.
3326         (execute_one_pass): And here.
3327         (init_optimization_passes): Remove reload pass.
3328         * tree-pass.h (TODO_ggc_collect): Remove.
3329         (pass_reload): Likewise.
3330         * ira.c (do_reload): Merge into ...
3331         (ira): ... this.
3332         (rest_of_handle_reload): Remove.
3333         (pass_reload): Likewise.
3334         * config/i386/i386.c (ix86_option_override): Refer to ira instead
3335         of reload for vzeroupper pass placement.
3336         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
3337         and todo_flags_finish of all passes.
3339 2013-04-10  Richard Biener  <rguenther@suse.de>
3341         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
3342         first_const_oprnd field, rename first_def_type to first_op_type.
3343         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
3344         (vect_get_and_check_slp_defs): Always use the type of the
3345         operand.  Allow mixed vect_external_def, vect_constant_def types.
3346         (vect_get_constant_vectors): Handle mixed vect_external_def,
3347         vect_constant_def types.
3349 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
3351         PR tree-optimization/55524
3352         * tree-ssa-math-opts.c
3353         (convert_mult_to_fma): Don't use an fms construct
3354         when we don't have an fms operation, but fnma, and it looks
3355         likely that we'll be able to use the latter.
3357 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3359         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
3360         function.
3361         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
3362         inline fail caused by overwritable functions.
3364 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
3366         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
3367         unnecessary bits in the constant power of two case.
3369 2013-04-10  Richard Biener  <rguenther@suse.de>
3371         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
3372         broken code swapping operands.
3373         (vect_build_slp_tree): Do not compute load permutations here.
3374         (vect_analyze_slp_instance): Compute load permutations here,
3375         after building the SLP tree.
3377 2013-04-09  Christian Bruel  <christian.bruel@st.com>
3379         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
3380         of next/prev_real_insn.
3382 2013-04-09  Jan Hubicka  <jh@suse.cz>
3384         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3385         Drop aliased parameter.
3386         (function_and_variable_visibility): Do not handle alias pairs.
3387         * cgraph.c (varpool_externally_visible_p): Update prototype.
3388         * varpool.c (varpool_add_new_variable): Update.
3390 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3392         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
3394 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
3396         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
3398         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
3400 2013-04-09  Marek Polacek  <polacek@redhat.com>
3402         PR tree-optimization/48762
3403         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
3405 2013-04-09  Richard Biener  <rguenther@suse.de>
3407         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
3408         dealing with cost.
3409         (vect_build_slp_tree): Likewise.
3410         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
3411         calculating the cost of a SLP instance.
3412         (vect_analyze_slp_instance): Use it from here, after building
3413         the SLP tree.
3415 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
3417         PR middle-end/56883
3418         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3419         expand_omp_for_static_chunk): Use simple_p = true in
3420         force_gimple_operand_gsi calls when assigning to addressable decls.
3422 2013-04-09  Jeff Law  <law@redhat.com>
3424         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
3425         when the boolean was created by converting a wider object which
3426         had a boolean range.
3428 2013-04-09  Richard Biener  <rguenther@suse.de>
3430         * tree-vectorizer.h (slp_void_p): Remove.
3431         (slp_tree): Typedef before _slp_tree declaration.
3432         (struct _slp_tree): Use a vector of slp_tree as children.
3433         (vect_get_place_in_interleaving_chain): Remove.
3434         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
3435         Move ...
3436         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
3437         and make static.
3438         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
3439         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
3440         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
3441         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
3442         Use slp_node instead of slp_void_p and adjust.
3444 2013-04-09  Richard Biener  <rguenther@suse.de>
3446         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
3447         work that is not necessary.
3449 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
3451         PR tree-optimization/56854
3452         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
3453         forward into clobber stmts if it would change MEM_REF lhs into
3454         non-MEM_REF.
3456 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
3458         * tree.c (type_hash_lookup, type_hash_add): Make static.
3459         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
3461 2013-04-09  Richard Biener  <rguenther@suse.de>
3463         * tree.h (unsave_expr_now): Remove.
3464         * tree-inline.c (mark_local_for_remap_r): Remove.
3465         (unsave_expr_1): Likewise.
3466         (unsave_r): Likewise.
3467         (unsave_expr_now): Likewise.
3468         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
3469         (propagate_tree_value): Likewise.
3471 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
3473         * doc/rtl.texi (sequence): Rewrite documentation to match the
3474         current use of SEQUENCE rtl objects.
3475         * rtl.def (SEQUENCE): Likewise.
3477         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
3478         Update documentation.
3479         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
3480         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
3482         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
3484 2013-04-08  Teresa Johnson  <tejohnson@google.com>
3486         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
3487         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
3488         methods.
3489         (estimate_edge_size_and_time): Add comment to suggest using rounding
3490         methods.
3491         (estimate_node_size_and_time): Ditto.
3492         (remap_edge_change_prob): Use helper rounding divide methods.
3493         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
3494         (gimple_mod_pow2_value_transform): Ditto.
3495         (gimple_mod_subtract_transform): Ditto.
3496         (gimple_ic_transform): Ditto.
3497         (gimple_stringops_transform): Ditto.
3498         * stmt.c (conditional_probability): Ditto.
3499         (emit_case_dispatch_table): Ditto.
3500         * lto-cgraph.c (merge_profile_summaries): Ditto.
3501         * tree-optimize.c (execute_fixup_cfg): Ditto.
3502         * cfgcleanup.c (try_forward_edges): Ditto.
3503         * cfgloopmanip.c (scale_loop_profile): Ditto.
3504         (loopify): Ditto.
3505         (duplicate_loop_to_header_edge): Ditto.
3506         (lv_adjust_loop_entry_edge): Ditto.
3507         * tree-vect-loop.c (vect_transform_loop): Ditto.
3508         * profile.c (compute_branch_probabilities): Ditto.
3509         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
3510         * lto-streamer-in.c (input_cfg): Ditto.
3511         * gimple-streamer-in.c (input_bb): Ditto.
3512         * ipa-cp.c (update_profiling_info): Ditto.
3513         (update_specialized_profile): Ditto.
3514         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
3515         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
3516         rounding methods.
3517         * sched-rgn.c (compute_dom_prob_ps): Ditto.
3518         (compute_trg_info): Ditto.
3519         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
3520         (purge_dead_edges): Ditto.
3521         * loop-unswitch.c (unswitch_loop): Ditto.
3522         * cgraphclones.c (cgraph_clone_edge): Ditto.
3523         (cgraph_clone_node): Ditto.
3524         * tree-inline.c (copy_bb): Ditto.
3525         (copy_edges_for_bb): Ditto.
3526         (initialize_cfun): Ditto.
3527         (copy_cfg_body): Ditto.
3528         (expand_call_inline): Ditto.
3530 2013-04-08  Kai Tietz  <ktietz@redhat.com>
3532         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
3533         TARGET_CYGWIN64 by TARGET_64BIT.
3535 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3537         * config/epiphany/epiphany.md (GPR_1): New constant.
3538         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
3539         * config/epiphany/epiphany.c (gen_compare_reg):
3540         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
3541         is already in place.
3542         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
3543         Don't require being called during rtl expansion; If y operlaps r0,
3544         return 0.
3545         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
3546         (epiphany_expand_epilogue): Likewise.
3548         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
3549         Don't use CC_FPmode for ORDERED / UNORDERED.
3550         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
3552         * config/epiphany/constraints.md (CnL): New constraint.
3553         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
3554         * config/epiphany/predicates.md (add_operand): Allow 1024.
3556         * config/epiphany/epiphany.md (logical_op): New code iterator.
3557         (op_mnc): New code attribute.
3558         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
3559         (mov_f+1, mov_f+2): New peephole2 patterns.
3561         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
3562         (cstoresi4): Also allow re-use of zero result when doing a NE
3563         comparison to a non-zero operand.
3564         Use (clobber (scratch)) for first insn if the gpr output is not needed.
3566         * config/epiphany/epiphany.md (<insn_opname>v2si3):
3567         Use gen_addsi3_i / gen_subsi3_i.
3569 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
3571         PR c++/34949
3572         PR c++/50243
3573         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
3574         contain anything but clobbers, at most one __builtin_stack_restore,
3575         optionally debug stmts and final resx, and if it has at least one
3576         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
3577         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
3578         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
3579         which isn't defaut definition, remove them.
3580         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
3581         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
3582         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
3583         with MEM_REF LHS with SSA_NAME address.
3585 2013-04-08  Jeff Law  <law@redhat.com>
3587         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
3589 2013-04-08  Richard Biener  <rguenther@suse.de>
3591         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
3592         extra newline.
3593         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
3594         determined vector type.
3595         (vect_analyze_data_refs): Likewise.
3596         (vect_get_new_vect_var): Adjust.
3597         (vect_create_destination_var): Preserve SSA name versions.
3598         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
3599         not dump anything here.
3601 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3603         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
3604         Add member lr_slot_known.
3605         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
3606         if necessary.
3607         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
3608         Remove code that sets lr_slot_offset according to what a previous
3609         version of epiphany_emit_save_restore used to do.
3610         (epiphany_emit_save_restore): When doing an lr save or restore,
3611         set/verify lr_slot_known and lr_slot_offset.
3613 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
3615         PR target/54338
3616         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
3617         in ALL_REGS.
3619 2013-04-08  Richard Biener  <rguenther@suse.de>
3621         * alias.c (find_base_term): Fix thinko in previous change.
3623 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
3625         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
3626         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
3627         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
3628         if possible to compute val.
3629         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
3630         For QImode integers don't require anything about precision.  Use
3631         const_with_all_bytes_same to find out if the constant doesn't have
3632         repeated bytes in it.
3634 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3636         * config/s390/s390.c (s390_expand_insv): Only accept insertions
3637         within mode size.
3639 2013-04-08  Marek Polacek  <polacek@redhat.com>
3641         PR rtl-optimization/48182
3642         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
3643         value to 1.
3645 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3647         PR target/55487
3648         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
3649         nuses, make sure we have a label.
3651 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3653         PR target/56843
3654         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
3655         (rs6000_emit_swdiv_low_precision): Remove.
3656         (rs6000_emit_swdiv): Rewrite to handle between one and four
3657         iterations of Newton-Raphson generally; modify required number of
3658         iterations for some cases.
3659         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
3661 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3663         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
3664         set-but-unused variable.
3666         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
3667         basic blocks of released function bodies garbage-collectable.
3669         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
3670         (struct rtl_opt_pass): Add TODO_df_finish.
3672         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
3674 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3676         * config/arm/constraints.md (q): New constraint.
3677         * config/arm/ldrdstrd.md: New file.
3678         * config/arm/arm.md (ldrdstrd.md) New include.
3679         (arm_movdi): Use "q" instead of "r" constraint
3680         for double-word memory access.
3681         (movdf_soft_insn): Likewise.
3682         * config/arm/vfp.md (movdi_vfp): Likewise.
3683         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
3684         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
3685         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
3686         (mem_ok_for_ldrd_strd): Likewise.
3687         (output_move_double): Update assertion.
3689 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3691         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
3693 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3695         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
3696         define_insn_and_split.
3697         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
3699 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3701         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
3702         define_insn_and_split.
3703         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
3704         (shiftsi3_compare): New pattern.
3705         (rrx): New pattern.
3706         * config/arm/unspecs.md (UNSPEC_RRX): New.
3708 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3710         * config/arm/arm.md (negdi_extendsidi): New pattern.
3711         (negdi_zero_extendsidi): Likewise.
3713 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3715         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
3716         define_insn_and_split.
3717         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
3718         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
3720 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3722         * config/arm/arm.md (arm_subdi3): Convert define_insn into
3723         define_insn_and_split.
3724         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
3725         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
3727 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3729         * config/arm/arm.md (subsi3_carryin): New pattern.
3730         (subsi3_carryin_const): Likewise.
3731         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
3732         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
3734 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3736         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
3738 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3740         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
3741         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
3743 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3745         * config/arm/arm.c (arm_expand_builtin): Change fcode
3746         type to unsigned int.
3748 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3750         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
3752 2013-04-04  Ian Lance Taylor  <iant@google.com>
3754         * doc/standards.texi (Standards): The Go frontend supports the Go 1
3755         language standard.
3757 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3759         PR middle-end/56729
3760         * df-scan.c (df_insn_delete): Disable failing assert.
3762 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3764         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
3765         New function prototype.
3766         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
3767         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
3768         (arm_builtin_vectorized_function): New function.
3770 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3772         * config/arm/arm_neon_builtins.def: New file.
3773         * config/arm/arm.c (neon_builtin_data): Move contents to
3774         arm_neon_builtins.def.
3775         (enum arm_builtins): Include neon builtin definitions.
3776         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
3777         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
3779 2013-04-04  Marek Polacek  <polacek@redhat.com>
3781         PR tree-optimization/48186
3782         * predict.c (maybe_hot_frequency_p): Return false if
3783         HOT_BB_FREQUENCY_FRACTION is 0.
3784         (cgraph_maybe_hot_edge_p): Likewise.
3786 2013-04-04  Richard Biener  <rguenther@suse.de>
3788         PR tree-optimization/56826
3789         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
3790         more accurately.
3792 2013-04-04  Richard Biener  <rguenther@suse.de>
3794         PR tree-optimization/56213
3795         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
3796         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
3798 2013-04-04  Richard Biener  <rguenther@suse.de>
3800         PR tree-optimization/56837
3801         * tree-loop-distribution.c (classify_partition): For non-zero
3802         values require that the value has the same precision as its
3803         mode to be useful as memset value.
3805 2013-04-03  Nick Clifton  <nickc@redhat.com>
3807         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
3808         (fmssf4): Use fmsf.s on E3V5 architectures.
3809         (fnmasf4): Use fnmaf.s on E3V5 architectures.
3810         (fnmssf4): Use fnmsf.s on E3V5 architectures.
3812 2013-04-03  Jeff Law  <law@redhat.com>
3814         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
3815         (lra-eliminations.o): Likewise.
3817 2013-04-03  Teresa Johnson  <tejohnson@google.com>
3819         * gcov-io.c (compute_working_sets): Moved most of body of old
3820         compute_working_sets here from profile.c.
3821         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
3822         (gcov_working_set_t): Moved typedef here from basic-block.h
3823         (compute_working_set): Declare.
3824         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
3825         (get_working_sets): Renamed from compute_working_set,
3826         replace most of body with call to new compute_working_sets.
3827         (get_exec_counts): Replace call to compute_working_sets
3828         to get_working_sets.
3829         * profile.h (get_working_sets): Renamed from compute_working_set.
3830         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
3831         to get_working_sets.
3832         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
3833         * gcov-dump.c (dump_working_sets): New function.
3835 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
3837         * hwint.c (sext_hwi, zext_hwi): New functions.
3838         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
3839         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
3840         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
3841         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
3842         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
3843         (sext_hwi, zext_hwi): New functions.
3845 2013-04-03  Jeff Law  <law@redhat.com>
3847         PR tree-optimization/56799
3848         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
3849         back test for widening conversion erroneously dropped in prior change.
3851 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3853         PR target/56809
3854         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
3855         instead of next_real_insn.
3857 2013-04-03  Marek Polacek  <polacek@redhat.com>
3859         PR sanitizer/55702
3860         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
3862 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3864         PR target/56809
3865         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
3866         next_real_insn.
3867         (thumb1_output_casesi): Likewise.
3868         (thumb2_output_casesi): Likewise.
3870 2013-04-03  Richard Biener  <rguenther@suse.de>
3872         PR tree-optimization/56817
3873         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3874         Split out ...
3875         (tree_unroll_loops_completely_1): ... new function to manually
3876         walk the loop tree, properly defering outer loops of unrolled
3877         loops to later iterations.
3879 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3881         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
3882         (vectorizable_load): Likewise.
3883         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3884         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
3886 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3888         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
3889         BIT_FIELD_REF.
3891 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3893         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
3895 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
3897         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
3899 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3901         PR tree-optimization/56790
3902         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
3903         folding.
3905 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3907         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3908         Handle VEC_MERGE.
3909         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
3910         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
3911         equal arguments.
3913 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
3915         PR c/19449
3916         * tree.h (force_folding_builtin_constant_p): New decl.
3917         * builtins.c (force_folding_builtin_constant_p): New variable.
3918         (fold_builtin_constant_p): Fold immediately also if
3919         force_folding_builtin_constant_p.
3921 2013-04-03  Richard Biener  <rguenther@suse.de>
3923         PR tree-optimization/56812
3924         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3925         DRs of the same interleaving chain are independent.
3927 2013-04-02  Jason Merrill  <jason@redhat.com>
3929         * gdbinit.in (pbb): Use debug fn.
3931 2013-04-02  Lawrence Crowl  <crowl@google.com>
3933         * sese.h (struct ivtype_map_elt_s): Remove unused.
3934         (extern debug_ivtype_map): Remove unused.
3935         (extern eq_ivtype_map_elts): Remove unused.
3936         * sese.c (debug_ivtype_map): Removed unused.
3937         (debug_ivtype_map_1): Removed unused.
3938         (debug_ivtype_elt): Remove unused.
3939         (eq_ivtype_map_elts): Remove unused.
3942 2013-04-02  Kai Tietz  <ktietz@redhat.com>
3944         PR target/52790
3945         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
3946         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
3947         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
3948         function.
3949         (legitimize_pe_coff_symbol): Likewise.
3950         (is_imported_p): New helper-function.
3951         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
3952         for Windows x64 targets.
3953         (ix86_expand_prologue): Optimize for pe-coff targets.
3954         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
3955         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
3956         medium/large code-model.
3957         (legitimize_pic_address): Likewise.
3958         (legitimize_tls_address): Likewise.
3959         (ix86_expand_call): Likewise.
3960         (x86_output_mi_thunk): Likewise.
3961         (get_dllimport_decl): Add new beimport argument.
3962         (construct_plt_address): Don't assert for x64 pe-coff targets.
3963         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
3964         targets.
3965         (SYMBOL_FLAG_STUBVAR): New macro.
3966         (SYMBOL_REF_STUBVAR_P): Likewise.
3967         * config/i386/winnt.c (stub_list): New structure.
3968         (stub_head): New local variable.
3969         (i386_pe_record_stub): New function.
3970         (i386_pe_file_end): Emit refptr-stubs.
3972 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
3974         PR rtl-optimization/56745
3975         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
3976         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
3978         PR c++/34949
3979         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
3980         and both of them are MEM_REFs, just compare first argument for
3981         equality and attempt to deal even with differing offsets.
3983         PR c++/34949
3984         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
3985         of gimple_clobber_p to be MEM_REF.
3986         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
3987         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
3988         after gimplification.
3989         * asan.c (get_mem_ref_of_assignment): Don't instrument
3990         gimple_clobber_p stmts.
3991         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
3992         gimple_clobber_p stmt if they have MEM_REF lhs and
3993         are dead because of another gimple_clobber_p stmt.
3994         * tree-ssa-live.c (clear_unused_block_pointer): Treat
3995         gimple_clobber_p stmts like debug stmts.
3996         (remove_unused_locals): Remove clobbers with MEM_REF lhs
3997         that refer to unused VAR_DECLs or uninitialized values.
3998         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
3999         gimple_clobber_p stmts if they refer to removed parameters.
4000         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4001         formatting.
4003 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
4005         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4006         using SWI48 mode attribute.
4008 2013-04-02  Wei Mi  <wmi@google.com>
4010         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4011         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4012         *<rotate_insn><mode>3_mask in i386.md.
4014 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4016         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4018 2013-04-02  Richard Biener  <rguenther@suse.de>
4020         PR tree-optimization/56778
4021         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4022         Runtime alias tests are not supported for gather loads.
4023         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4024         stmts referenced from SSA operands before updating SSA form.
4026 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
4027             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4029         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
4030         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
4031         * config/arm/cortex-a53.md: New file.
4032         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
4033         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
4034         * config/arm/arm.c (arm_issue_rate): Likewise.
4035         * config/arm/arm-tune.md: Regenerate
4036         * config/arm/arm-tables.opt: Regenerate.
4037         * config/arm/arm-cores.def: Add cortex-a53.
4039 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4041         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
4042         non-static link.
4044 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
4046         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
4047         scalar load/store operations using B/H registers.
4048         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
4050 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
4052         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
4053         scalar move.
4054         * config/aarch64/aarch64.c
4055         (aarch64_simd_scalar_immediate_valid_for_move): New.
4056         * config/aarch64/aarch64-protos.h
4057         (aarch64_simd_scalar_immediate_valid_for_move): New.
4058         * config/aarch64/constraints.md (Dh, Dq): New.
4059         * config/aarch64/iterators.md (hq): New.
4061 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
4063         * reorg.c (get_branch_condition): Deal with conditional returns.
4064         (fill_simple_delay_slots): Remove dead code dealing with jumps.
4066 2013-04-01  Wei Mi  <wmi@google.com>
4068         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
4069         Truncate operand 2 using %b asm operand modifier.
4070         (*<shift_insn><mode>3_mask): Ditto.
4071         (*<rotate_insn><mode>3_mask): Ditto.
4073 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
4075         PR middle-end/56798
4076         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
4078 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4080         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
4081         of next_real_insn.
4082         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
4084 2013-03-30  Lawrence Crowl  <crowl@google.com>
4086         * dse.c (clear_alias_sets): Remove never set.
4087         (disqualified_clear_alias_sets): Remove never set.
4088         (clear_alias_mode_pool): Remove never set.
4089         (dse_step0): Remove condition that is never true.
4090         (canon_address): Remove condition that is never true.
4091         (dse_step7): Remove condition that is never true.
4092         (rest_of_handle_dse): Remove condition that is never true.
4093         (rest_of_handle_dse::did_global): Remove never read from above.
4094         (dse_step2_spill): Remove never called from above.
4095         (dse_step5_spill): Remove never called from above.
4097 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
4099         * doc/md.texi (Standard Names) <casesi>: Update documentation for
4100         JUMP_TABLE_DATA changes.
4101         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
4102         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
4103         (Insns) <jump_table_data>: New entry.
4104         * doc/tm.texi: Regenerate.
4106         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
4108         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
4109         for table jump at the end of a basic block using tablejump_p.
4110         * targhooks.c (default_invalid_within_doloop): Likewise.
4111         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
4112         target hook implementation that is identical to the default hook.
4113         (rs6000_invalid_within_doloop): Remove.
4115         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
4116         unused variable from tablejump_p call.
4118         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
4119         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
4120         (INSN_DELETED_P): Likewise.
4121         (emit_jump_table_data): New prototype.
4122         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
4123         after 4th as unused.
4124         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
4125         * sched-vis.c (print_insn): Likewise.
4126         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
4127         insn for compatibility with back ends that use next_active_insn to
4128         identify jump table data.
4129         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
4130         (remove_insn): Likewise.
4131         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
4132         to be emitted.
4133         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
4134         (emit_jump_table_data): New function.
4136         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
4137         basic block, a JUMP_TABLE_DATA never is.
4138         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
4139         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
4140         off from code handling real insns.
4141         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
4142         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
4143         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
4144         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
4145         is not a NONDEBUG_INSN_P.
4146         * ira-costs.c (scan_one_insn): Likewise.
4147         * jump.c (mark_all_labels): Likewise.
4148         (mark_jump_label_1): Likewise.
4149         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4150         * lra.c (get_insn_freq): Expect all insns reaching here to be in
4151         a basic block.
4152         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
4153         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
4154         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
4155         JUMP_TABLE_DATA_P insns.
4156         (calculate_elim_costs_all_insns): Likewise.
4157         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
4158         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
4159         (delete_output_reload): Code style fixups.
4160         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
4161         insn flags on this non-insn.
4162         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
4163         as scheduling barriers, for pre-change compatibility.
4164         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
4165         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
4167         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
4168         redundant JUMP_TABLE_DATA_P test.
4169         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
4170         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4171         (frv_for_each_packet): Likewise.
4172         * config/i386/i386.c (min_insn_size): Likewise.
4173         (ix86_avoid_jump_mispredicts): Likewise.
4174         * config/m32r/m32r.c (m32r_is_insn): Likewise.
4175         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
4176         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4177         (mips16_insn_length): Robustify.
4178         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
4179         (mips16_split_long_branches): Likewise.
4180         * config/pa/pa.c (pa_combine_instructions): Likewise.
4181         * config/rs6000/rs6000.c (get_next_active_insn): Treat
4182         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
4183         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
4184         as contributing to pool range lengths.
4185         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
4186         Remove redundant JUMP_TABLE_DATA_P test.
4187         (sh_loop_align): Likewise.
4188         (split_branches): Likewise.
4189         (sh_insn_length_adjustment): Likewise.
4190         * config/spu/spu.c (get_branch_target): Likewise.
4192 2013-03-29  Jan Hubicka  <jh@suse.cz>
4194         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
4195         gcov streaming; stream hot bb threshold to ltrans.
4196         * predict.c (get_hot_bb_threshold): Break out from ....
4197         (maybe_hot_count_p): ... here.
4198         (set_hot_bb_threshold): New function.
4199         * lto-section-in.c (lto_section_name): Add profile.
4200         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
4201         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
4202         and data-streamer.h
4203         (histogram_entry): New structure.
4204         (histogram, histogram_pool): New global vars.
4205         (histogram_hash): New structure.
4206         (histogram_hash::hash): New method.
4207         (histogram_hash::equal): Likewise.
4208         (account_time_size): New function.
4209         (cmp_counts): New function.
4210         (dump_histogram): New function.
4211         (ipa_profile_generate_summary): New function.
4212         (ipa_profile_write_summary): New function.
4213         (ipa_profile_read_summary): New function.
4214         (ipa_profile): Decide on threshold.
4215         (pass_ipa_profile): Add ipa_profile_write_summary and
4216         ipa_profile_read_summary.
4217         * Makefile.in (ipa.o): Update dependencies.
4218         * lto-streamer.h (LTO_section_ipa_profile): New section.
4220 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4222         * tree.h (VAR_P): New.
4224 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
4226         PR lto/56777
4227         * doc/invoke.texi ([-fwhole-program]): Fix typo.
4229 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
4231         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
4232         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4233         (control_flow_insn_p): Likewise.
4234         * cfgrtl.c (duplicate_insn_chain): Likewise.
4235         * final.c (get_attr_length_1): Likewise.
4236         (shorten_branches): Likewise.
4237         (final_scan_insn): Likewise.
4238         * function.c (instantiate_virtual_regs): Likewise.
4239         * gcse.c (insert_insn_end_basic_block): Likewise.
4240         * ira-costs.c (scan_one_insn): Likewise.
4241         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4242         * lra.c (check_rtl): Likewise.
4243         * reload1.c (elimination_costs_in_insn): Likewise.
4244         * reorg.c (follow_jumps): Likewise.
4246         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
4247         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4248         (thumb_far_jump_used_p): Likewise.
4249         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
4250         (workaround_speculation): Likewise.
4251         (add_sched_insns_for_speculation): Likewise.
4252         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
4253         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4254         (frv_for_each_packet): Likewise.
4255         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
4256         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
4257         (final_emit_insn_group_barriers): Likewise.
4258         * config/m32r/m32r.c (m32r_is_insn): Likewise.
4259         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4260         (mips16_insn_length): Likewise.
4261         * config/pa/pa.c (pa_reorg): Likewise.
4262         (pa_combine_instructions): Likewise.
4263         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
4264         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
4265         (sh_reorg): Likewise.
4266         (split_branches): Likewise.
4267         * config/spu/spu.c (get_branch_target): Likewise.
4269         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
4270         JUMP_TABLE_DATA_P.
4272 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
4274         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4275         Fix declaration name.
4277 2013-03-28  Lawrence Crowl  <crowl@google.com>
4279         * graphds.h (struct graph.indicies): Remove unused.
4280         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
4281         (SCOP_ORIGINAL_PDDRS): Remove unused.
4282         * sese.h (extern insert_loop_close_phis): Removed unused.
4283         (extern insert_guard_phis): Removed unused.
4284         (extern ivtype_map_elt_info): Removed unused.
4285         (new_ivtype_map_elt): Removed unused.
4286         * sese.c (ivtype_map_elt_info): Removed unused.
4288 2013-03-28  Lawrence Crowl  <crowl@google.com>
4290         * Makefile.in: Add several missing include dependences.
4291         (DUMPFILE_H): New.
4292         (test-dump.o): New.  This object is not added to any executable,
4293         but is present for ad-hoc testing.
4294         * bitmap.c
4295         (debug (const bitmap_head_def &)): New.
4296         (debug (const bitmap_head_def *)): New.
4297         * bitmap.h
4298         (extern debug (const bitmap_head_def &)): New.
4299         (extern debug (const bitmap_head_def *)): New.
4300         * cfg.c
4301         (debug (edge_def &)): New.
4302         (debug (edge_def *)): New.
4303         * cfghooks.c
4304         (debug (basic_block_def &)): New.
4305         (debug (basic_block_def *)): New.
4306         * dumpfile.h
4307         (dump_node (const_tree, int, FILE *)): Correct source file.
4308         * dwarf2out.c
4309         (debug (die_struct &)): New.
4310         (debug (die_struct *)): New.
4311         * dwarf2out.h
4312         (extern debug (die_struct &)): New.
4313         (extern debug (die_struct *)): New.
4314         * gimple-pretty-print.c
4315         (debug (gimple_statement_d &)): New.
4316         (debug (gimple_statement_d *)): New.
4317         * gimple-pretty-print.h
4318         (extern debug (gimple_statement_d &)): New.
4319         (extern debug (gimple_statement_d *)): New.
4320         * ira-build.c
4321         (debug (ira_allocno_copy &)): New.
4322         (debug (ira_allocno_copy *)): New.
4323         (debug (ira_allocno &)): New.
4324         (debug (ira_allocno *)): New.
4325         * ira-int.h
4326         (extern debug (ira_allocno_copy &)): New.
4327         (extern debug (ira_allocno_copy *)): New.
4328         (extern debug (ira_allocno &)): New.
4329         (extern debug (ira_allocno *)): New.
4330         * ira-lives.c
4331         (debug (live_range &)): New.
4332         (debug (live_range *)): New.
4333         * lra-int.h
4334         (debug (lra_live_range &)): New.
4335         (debug (lra_live_range *)): New.
4336         * lra-lives.c
4337         (debug (lra_live_range &)): New.
4338         (debug (lra_live_range *)): New.
4339         * omega.c
4340         (debug (omega_pb_d &)): New.
4341         (debug (omega_pb_d *)): New.
4342         * omega.h
4343         (extern debug (omega_pb_d &)): New.
4344         (extern debug (omega_pb_d *)): New.
4345         * print-rtl.c
4346         (debug (const rtx_def &)): New.
4347         (debug (const rtx_def *)): New.
4348         * print-tree.c
4349         (debug_tree (tree): Move within file.
4350         (debug_raw (const tree_node &)): New.
4351         (debug_raw (const tree_node *)): New.
4352         (dump_tree_via_hooks (const tree_node *, int)): New.
4353         (debug (const tree_node &)): New.
4354         (debug (const tree_node *)): New.
4355         (debug_verbose (const tree_node &)): New.
4356         (debug_verbose (const tree_node *)): New.
4357         (debug_head (const tree_node &)): New.
4358         (debug_head (const tree_node *)): New.
4359         (debug_body (const tree_node &)): New.
4360         (debug_body (const tree_node *)): New.
4361         (debug_vec_tree (tree): Move and reimplement in terms of dump.
4362         (debug (vec<tree, va_gc> &)): New.
4363         (debug (vec<tree, va_gc> *)): New.
4364         * rtl.h
4365         (extern debug (const rtx_def &)): New.
4366         (extern debug (const rtx_def *)): New.
4367         * sbitmap.c
4368         (debug_raw (simple_bitmap_def &)): New.
4369         (debug_raw (simple_bitmap_def *)): New.
4370         (debug (simple_bitmap_def &)): New.
4371         (debug (simple_bitmap_def *)): New.
4372         * sbitmap.h
4373         (extern debug (simple_bitmap_def &)): New.
4374         (extern debug (simple_bitmap_def *)): New.
4375         (extern debug_raw (simple_bitmap_def &)): New.
4376         (extern debug_raw (simple_bitmap_def *)): New.
4377         * sel-sched-dump.c
4378         (debug (vinsn_def &)): New.
4379         (debug (vinsn_def *)): New.
4380         (debug_verbose (vinsn_def &)): New.
4381         (debug_verbose (vinsn_def *)): New.
4382         (debug (expr_def &)): New.
4383         (debug (expr_def *)): New.
4384         (debug_verbose (expr_def &)): New.
4385         (debug_verbose (expr_def *)): New.
4386         (debug (vec<rtx> &)): New.
4387         (debug (vec<rtx> *)): New.
4388         * sel-sched-dump.h
4389         (extern debug (vinsn_def &)): New.
4390         (extern debug (vinsn_def *)): New.
4391         (extern debug_verbose (vinsn_def &)): New.
4392         (extern debug_verbose (vinsn_def *)): New.
4393         (extern debug (expr_def &)): New.
4394         (extern debug (expr_def *)): New.
4395         (extern debug_verbose (expr_def &)): New.
4396         (extern debug_verbose (expr_def *)): New.
4397         (extern debug (vec<rtx> &)): New.
4398         (extern debug (vec<rtx> *)): New.
4399         * sel-sched-ir.h
4400         (_list_iter_cond_expr): Make inline instead of static.
4401         * sreal.c
4402         (debug (sreal &)): New.
4403         (debug (sreal *)): New.
4404         * sreal.h
4405         (extern debug (sreal &)): New.
4406         (extern debug (sreal *)): New.
4407         * tree.h
4408         (extern debug_raw (const tree_node &)): New.
4409         (extern debug_raw (const tree_node *)): New.
4410         (extern debug (const tree_node &)): New.
4411         (extern debug (const tree_node *)): New.
4412         (extern debug_verbose (const tree_node &)): New.
4413         (extern debug_verbose (const tree_node *)): New.
4414         (extern debug_head (const tree_node &)): New.
4415         (extern debug_head (const tree_node *)): New.
4416         (extern debug_body (const tree_node &)): New.
4417         (extern debug_body (const tree_node *)): New.
4418         (extern debug (vec<tree, va_gc> &)): New.
4419         (extern debug (vec<tree, va_gc> *)): New.
4420         * tree-cfg.c
4421         (debug (struct loop &)): New.
4422         (debug (struct loop *)): New.
4423         (debug_verbose (struct loop &)): New.
4424         (debug_verbose (struct loop *)): New.
4425         * tree-dump.c: Add header dependence.
4426         * tree-flow.h
4427         (extern debug (struct loop &)): New.
4428         (extern debug (struct loop *)): New.
4429         (extern debug_verbose (struct loop &)): New.
4430         (extern debug_verbose (struct loop *)): New.
4431         * tree-data-ref.c
4432         (debug (data_reference &)): New.
4433         (debug (data_reference *)): New.
4434         (debug (vec<data_reference_p> &)): New.
4435         (debug (vec<data_reference_p> *)): New.
4436         (debug (vec<ddr_p> &)): New.
4437         (debug (vec<ddr_p> *)): New.
4438         * tree-data-ref.h
4439         (extern debug (data_reference &)): New.
4440         (extern debug (data_reference *)): New.
4441         (extern debug (vec<data_reference_p> &)): New.
4442         (extern debug (vec<data_reference_p> *)): New.
4443         (extern debug (vec<ddr_p> &)): New.
4444         (extern debug (vec<ddr_p> *)): New.
4445         * tree-ssa-alias.c
4446         (debug (pt_solution &)): New.
4447         (debug (pt_solution *)): New.
4448         * tree-ssa-alias.h
4449         (extern debug (pt_solution &)): New.
4450         (extern debug (pt_solution *)): New.
4451         * tree-ssa-alias.c
4452         (debug (_var_map &)): New.
4453         (debug (_var_map *)): New.
4454         (debug (tree_live_info_d &)): New.
4455         (debug (tree_live_info_d *)): New.
4456         * tree-ssa-alias.h
4457         (extern debug (_var_map &)): New.
4458         (extern debug (_var_map *)): New.
4459         (extern debug (tree_live_info_d &)): New.
4460         (extern debug (tree_live_info_d *)): New.
4462 2013-03-28  Jan Hubicka  <jh@suse.cz>
4464         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
4466 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
4468         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
4469         record only when desired or required.
4471 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
4473         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
4474         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
4476 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4478         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
4479         (*andsi3_compare0_uxtw): New pattern.
4480         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
4481         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
4483 2013-03-28  Jan Hubicka  <jh@suse.cz>
4485         * data-streamer-in.c (streamer_read_gcov_count): New function.
4486         * gimple-streamer-out.c: Include value-prof.h.
4487         (output_gimple_stmt): Output histogram.
4488         (output_bb): Use streamer_write_gcov_count.
4489         * value-prof.c: Include data-streamer.h
4490         (dump_histogram_value): Add HIST_TYPE_MAX.
4491         (stream_out_histogram_value): New function.
4492         (stream_in_histogram_value): New function.
4493         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
4494         (stream_out_histogram_value, stream_in_histogram_value): Declare.
4495         * data-streamer-out.c (streamer_write_gcov_count): New function.
4496         (streamer_write_gcov_count_stream): New function.
4497         * lto-cgraph.c (lto_output_edge): Update counter streaming.
4498         (lto_output_node): Likewise.
4499         (input_node, input_edge): Likewise.
4500         * lto-streamer-out.c (output_cfg): Update streaming.
4501         * lto-streamer-in.c (input_cfg): Likewise.
4502         * data-streamer.h (streamer_write_gcov_count,
4503         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
4504         * gimple-streamer-in.c: Include value-prof.h
4505         (input_gimple_stmt): Input histograms.
4506         (input_bb): Update profile streaming.
4508 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
4510         * genmodes.c (emit_max_int): New function.
4511         (emit_insn_modes_h): Added call to emit_max_function.
4512         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
4513         Added doc.
4514         * machmode.def: Fixed comment.
4516 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
4518         * combine.c (try_combine): Removed useless assert.
4519         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
4521 2013-03-28  Marek Polacek  <polacek@redhat.com>
4522             Richard Biener  <rguenther@suse.de>
4524         PR tree-optimization/56695
4525         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
4526         build signed result of a vector comparison.
4527         * tree-cfg.c (verify_gimple_comparison): Check that a result
4528         of a vector comparison has signed type.
4530 2013-03-28  Richard Biener  <rguenther@suse.de>
4532         PR tree-optimization/37021
4533         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
4534         do not restrict gaps between groups.
4535         * tree-vect-stmts.c (vectorizable_load): Properly account for
4536         a gap between groups.
4538 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4540         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
4541         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
4542         is not enabled.
4544 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
4546         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
4547         * doc/extend.texi (Named Address Spaces): Ditto.
4548         (Variable Attributes): Ditto.
4550 2013-03-27  Kai Tietz  <ktietz@redhat.com>
4552         * config.build: Add support for cygwin x64 target.
4553         * config.gcc: Likewise.
4554         * config.host: Likewise.
4555         * configure.ac: Likewise
4556         * configure: Regenerated.
4558 2013-03-27 Kai Tietz  <ktietz@redhat.com>
4560         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
4561         * config/i386/t-cygwin-w64: New file.
4562         * config/i386/cygwin-w64.h: New file.
4563         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
4564         and add support for x64-cygwin target.
4565         (CPP_SPEC): Likewise.
4566         (CXX_WRAP_SPEC_LIST): Undefine before define.
4567         (LIBGCJ_SONAME): Use 15 as version.
4569 2013-03-27  Richard Biener  <rguenther@suse.de>
4571         PR tree-optimization/56716
4572         * tree-ssa-structalias.c (perform_var_substitution): Adjust
4573         dumping for ref nodes.
4575 2013-03-27  Martin Jambor  <mjambor@suse.cz>
4577         PR tree-optimization/55334
4578         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
4579         restricted pointers to arrays.
4581 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4583         * Makefile.in (.SUFFIXES): Add .cc.
4584         (.c.o): Apply same recipe for implicit rule .cc.o.
4586 2013-03-27  Richard Biener  <rguenther@suse.de>
4588         PR tree-optimization/37021
4589         * tree-vect-data-refs.c (vect_check_strided_load): Allow
4590         REALPART/IMAGPART_EXPRs around the supported refs.
4591         * tree-ssa-structalias.c (find_func_aliases): Assume that
4592         floating-point values are not used to transfer pointers.
4594 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4596         * target.def (TARGET_HAS_IFUNC_P): New target hook.
4597         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
4598         * doc/tm.texi: Regenerate.
4599         * targhooks.h (default_has_ifunc_p): New.
4600         * targhooks.c (default_has_ifunc_p): Ditto.
4601         * config/linux-protos.h: New file.
4602         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
4603         this hook for linux which disables support of indirect functions in
4604         android.
4605         * config/linux-android.c: New file.
4606         * config/t-linux-android.c: Ditto.
4607         * config.gcc: Added new object file linux-android.o.
4608         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
4609         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
4610         * varasm.c (do_assemble_alias): Likewise.
4611         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
4612         doesn't support indirect functions.
4613         * configure: Regenerate.
4615 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
4617         PR target/56102
4618         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
4619         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
4620         mult-word mode.
4622 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4624         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
4626 2013-03-27  Terry Guo  <terry.guo@arm.com>
4628         * config/arm/arm-cores.def: Added core cortex-r7.
4629         * config/arm/arm-tune.md: Regenerated.
4630         * config/arm/arm-tables.opt: Regenerated.
4631         * doc/invoke.texi: Added entry for core cortex-r7.
4633 2013-03-27  Walter Lee  <walt@tilera.com>
4635         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
4636         double-decrement of next_scratch_regno.
4638 2013-03-27  Walter Lee  <walt@tilera.com>
4640         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
4641         input operands.
4642         (insn_v1mulus): Ditto.
4643         (insn_v2muls): Ditto.
4645 2013-03-27  Walter Lee  <walt@tilera.com>
4647         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
4648         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
4650 2013-03-27  Walter Lee  <walt@tilera.com>
4652         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
4653         (*sibcall_value): Ditto.
4655 2013-03-27  Walter Lee  <walt@tilera.com>
4657         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
4658         (insn_mnz_v8qi): ... this ...
4659         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
4660         vector equivalent.
4661         (insn_v<n>mnz): Replaced by ...
4662         (insn_v1mnz): ... this ...
4663         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
4664         equivalent.
4665         (insn_mz_<mode>): Replaced by ...
4666         (insn_mz_v8qi): ... this ...
4667         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
4668         vector equivalent.
4669         (insn_v<n>mz): Replaced by ...
4670         (insn_v1mz): ... this ...
4671         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
4672         equivalent.
4674 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4676         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
4678 2013-03-26  Roland McGrath  <mcgrathr@google.com>
4680         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
4681         than fprintf with a non-constant, non-format string.
4683 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
4685         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
4686         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
4687         operand 0 predicate.
4688         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
4689         attribute.  Use general_x64nomem_operand as operand 1 predicate.
4690         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
4691         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
4692         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
4693         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
4694         (mov<mode>_insv_1): Remove expander.  Merge insn with
4695         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
4696         Use general_x64nomem_operand as operand 1 predicate.
4697         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
4698         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
4699         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
4700         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
4701         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
4702         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
4703         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
4704         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
4705         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
4706         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
4707         (general_x64nomem_operand): Ditto.
4709 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4711         * config/rtems.opt: Add -pthread option.
4713 2013-03-26  Richard Biener  <rguenther@suse.de>
4715         * alias.c (find_base_term): Avoid redundant and not used recursion.
4716         (base_alias_check): Get the initial base term from the caller.
4717         (true_dependence_1): Compute and pass base terms to base_alias_check.
4718         (write_dependence_p): Likewise.
4719         (may_alias_p): Likewise.
4721 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
4723         * config/aarch64/aarch64.c (aarch64_classify_address): Support
4724         PC-relative load in SI modes and above only.
4726 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
4728         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
4729         * config/arm/iwmmxt.md (WCGR0): Update.
4730         (WCGR1, WCGR2, WCGR3): Likewise.
4732 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
4734         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
4735         Use x64 and nox64 isa attributes.
4737 2013-03-26  Richard Biener  <rguenther@suse.de>
4739         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4740         alignment computations and rely on get_object_alignment_1
4741         for the !TYPE_P case.
4742         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
4744 2013-03-26  Walter Lee  <walt@tilera.com>
4746         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
4747         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
4749 2013-03-25  Jeff Law  <law@redhat.com>
4751         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
4752         check for INTEGRAL_TYPE_P that was missing due to checking in
4753         wrong version of prior patch.
4755 2013-03-25  Walter Lee  <walt@tilera.com>
4757         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
4758         TILEGX_INSN_SHUFFLEBYTES1.
4759         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
4760         shufflebytes1.
4761         (tilegx_builtins): Ditto.
4762         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
4764 2013-03-25  Walter Lee  <walt@tilera.com>
4766         * config/tilegx/tilegx.md (floatsisf2): New pattern.
4767         (floatunssisf2): New pattern.
4768         (floatsidf2): New pattern.
4769         (floatunssidf2): New pattern.
4771 2013-03-25  Walter Lee  <walt@tilera.com>
4773         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
4774         tests for constraint J, K, N, P.
4776 2013-03-25  Walter Lee  <walt@tilera.com>
4778         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
4779         Use indirect/pcrel encoding.
4780         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
4781         Ditto.
4783 2013-03-25  Steve Ellcey  <sellcey@mips.com>
4785         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
4786         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
4787         * config/mips/mips.c (mips_option_override): Set IMADD default.
4788         * config/mips/mips.h (PTF_AVOID_IMADD): New.
4789         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
4790         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
4791         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
4792         * doc/invoke.texi (-mimadd/-mno-imadd): New.
4794 2013-03-25  Jeff Law  <law@redhat.com>
4796         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
4797         slightly to avoid creating and folding useless trees.  Simplify
4798         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
4800 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
4802         * config/i386/i386.md (*zero_extendsidi2): Merge with
4803         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
4804         * config/i386/predicates.md (x86_64_zext_operand): Rename from
4805         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
4806         targets.  Clarify comment.
4808 2013-03-25  Martin Jambor  <mjambor@suse.cz>
4810         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
4811         pass-through jump functions differently.
4812         (ipa_read_jump_function): Likewise.  Also use setter functions to set
4813         up jump functions.
4815 2013-03-25  Martin Jambor  <mjambor@suse.cz>
4817         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
4818         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
4819         process it.
4820         (ipa_get_indirect_edge_target): New function.
4821         (devirtualization_time_bonus): New parameter known_aggs, pass it to
4822         ipa_get_indirect_edge_target.  Update all callers.
4823         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
4824         ipa_get_indirect_edge_target_1 instead of calling
4825         ipa_get_indirect_edge_target.
4826         (create_specialized_node): Pass aggvlas to
4827         ipcp_discover_new_direct_edges.
4829 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4831         * config/arm/arm.md (f_sels, f_seld): New types.
4832         (*cmov<mode>): New pattern.
4833         * config/arm/predicates.md (arm_vsel_comparison_operator): New
4834         predicate.
4836 2013-03-25  Kai Tietz  <ktietz@redhat.com>
4838         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
4839         POSIX-printf for mingw-hosted  builds.
4841 2013-03-25  Richard Biener  <rguenther@suse.de>
4843         PR middle-end/56694
4844         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
4845         must-not-throw stmt location.
4847 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4849         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
4850         Emit load-acquire versions when acq is true.
4851         (arm_emit_store_exclusive): Add rel parameter.
4852         Emit store-release versions when rel is true.
4853         (arm_split_compare_and_swap): Use acquire-release instructions
4854         instead.
4855         of barriers when appropriate.
4856         (arm_split_atomic_op): Likewise.
4857         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
4858         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
4859         (VUNSPEC_SLX): Likewise.
4860         (VUNSPEC_LDA): Likewise.
4861         (VUNSPEC_STL): Likewise.
4862         * config/arm/sync.md (atomic_load<mode>): New pattern.
4863         (atomic_store<mode>): Likewise.
4864         (arm_load_acquire_exclusive<mode>): Likewise.
4865         (arm_load_acquire_exclusivesi): Likewise.
4866         (arm_load_acquire_exclusivedi): Likewise.
4867         (arm_store_release_exclusive<mode>): Likewise.
4869 2013-03-25  Catherine Moore  <clm@codesourcery.com>
4871         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
4872         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
4873         * config/mip/predicates.md (lwsp_swsp_operand,
4874         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
4875         sb16_operand, db4_operand, db7_operand, ib3_operand,
4876         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
4877         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
4878         andi16_operand): New predicates.
4879         * config/mips/mips.md (compression): New attribute.
4880         (enabled): New attribute.
4881         (length): Consider compression in computing length.
4882         (shift_compression): New code attribute.
4883         (*add<mode>3): New operands. Record compression.
4884         (sub<mode>3): Likewise.
4885         (one_cmpl<mode>2): Likewise.
4886         (*and<mode>3): Likewise.
4887         (*ior<mode>3): Likewise.
4888         (unnamed pattern for xor): Likewise.
4889         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
4890         (*<optab><mode>3): Likewise.
4891         (*mov<mode>_internal: Likewise.
4892         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
4893         (mips_unsigned_immediate_p): New.
4894         (umips_lwsp_swsp_address_p): New.
4895         (m16_based_address_p): New.
4896         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
4897         (mips_unsigned_immediate_p): New prototype.
4898         (lwsp_swsp_address_p): New prototype.
4899         (m16_based_address_p): New prototype.
4900         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
4901         (mips_signed_immediate_p): New function.
4902         (m16_based_address_p): New function.
4903         (lwsp_swsp_address_p): New function.
4904         (mips_print_operand_punctuation): Recognize short delay slot insns
4905         for microMIPS.add<mode>3"
4907 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4909         PR target/56720
4910         * config/arm/iterators.md (v_cmp_result): New mode attribute.
4911         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
4913 2013-03-25  Richard Biener  <rguenther@suse.de>
4915         PR tree-optimization/56689
4916         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
4917         any edge.
4919 2013-03-25  Richard Biener  <rguenther@suse.de>
4921         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
4922         of bitmap.
4923         (memory_references): Likewise.
4924         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
4925         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
4926         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
4927         (gather_mem_refs_in_loops): Fold into ...
4928         (analyze_memory_references): ... this.  Move initialization
4929         to tree_ssa_lim_initialize.
4930         (fill_always_executed_in): Rename to ...
4931         (fill_always_executed_in_1): ... this.
4932         (fill_always_executed_in): Move contains_call computation to
4933         this new function from ...
4934         (tree_ssa_lim_initialize): ... here.
4935         (tree_ssa_lim): Call fill_always_executed_in.
4937 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
4939         * postreload.c (reload_combine): Fix code detecting returns.
4941 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
4943         * function.c (emit_use_return_register_into_block): On cc0 targets,
4944         do not emit the sequence between cc0 setter and user.
4946 2013-03-25  Kai Tietz  <ktietz@redhat.com>
4948         * config/i386/predicates.md (local_symbolic_operand): Interpret
4949         dll-imported symbols as none-local.
4951 2013-03-25  Richard Biener  <rguenther@suse.de>
4953         * tree-ssa-loop-im.c (struct depend): Remove.
4954         (struct lim_aux_data): Make depends a vec of gimples.
4955         (free_lim_aux_data): Adjust.
4956         (add_dependency): Likewise.
4957         (set_level): Likewise.
4959 2013-03-25  Richard Biener  <rguenther@suse.de>
4961         PR middle-end/56434
4962         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
4963         the pointer returned by calls with ECF_MALLOC set.
4965 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
4967         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
4969 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
4971         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
4972         using MMXMODE mode iterator.
4973         (*move<mode>_internal): Merge with *movv2sf_internal and
4974         *movv2sf_internal_rex64 using MMXMODE mode iterator.
4976 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
4978         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
4979         (record_last_mem_set_info): Likewise.
4981         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
4982         of XNEWVEC followed by memset.
4983         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
4985 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
4987         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4988         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
4989         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
4990         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
4991         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
4992         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
4993         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
4994         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
4995         BARRIER_P instead of GET_CODE.
4997 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
4999         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5000         inaccuracy in the probing code.
5002         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5003         (ctrapdi4): Likewise.
5005 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
5007         * calls.c (expand_call): Add missing guard to code handling return
5008         of non-BLKmode structures in MSB.
5009         * function.c (expand_function_end): Likewise.
5011 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
5013         * combine.c (try_combine): Adjust comment.  Do not add the set of
5014         insn #0 if the destination indirectly is set or dies in insn #2.
5015         Tidy up code to distribute a new note.
5017 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
5019         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5020         also for alternatives 16 and 17.
5022 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
5024         * config/i386/sse.md (*mov<mode>_internal): Merge with
5025         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
5026         Emit insn template depending on type attribute.  Use
5027         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5028         movd instead of movq mnemonic for interunit moves.  Rewrite mode
5029         attribute calculation.  Remove unit attribute calculation.
5030         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
5031         Set prefix_data16 attribute for DImode ssemov types.
5032         Use Ym instead of y for SSE-MMX conversion alternatives.
5033         Reorder operand constraints.
5035 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
5037         * df.h (df_insn_delete): Adjust prototype.
5038         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
5039         and let it decide whether mark the basic block dirty.
5040         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
5041         * df-scan.c (df_insn_info_delete): New helper function, split
5042         off from df_insn_delete.
5043         (df_scan_free_bb_info): Use it.
5044         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
5045         Likewise.
5046         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
5047         that the insn is actually an insn and it has a non-NULL basic block.
5048         Do not mark basic block dirty if only deleting a DEBUG_INSN.
5050 2013-03-22  Richard Biener  <rguenther@suse.de>
5052         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
5053         dep_ref members.
5054         (mem_ref_alloc): Do not allocate them.
5055         (refs_independent_p): Do not query or maintain a cache.
5057 2013-03-22  Richard Biener  <rguenther@suse.de>
5059         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
5060         (gather_mem_refs_in_loops): Do not compute it.
5061         (analyze_memory_references): Do not allocate it.
5062         (tree_ssa_lim_finalize): Do not free it.
5063         (for_all_locs_in_loop): Do not query all_refs_in_loop.
5065 2013-03-22  Richard Biener  <rguenther@suse.de>
5067         * is-a.h (as_a): Use gcc_checking_assert.
5069 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
5071         * config/aarch64/aarch64.c (aarch64_print_operand): New
5072         format specifier for printing a constant in hex.
5073         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
5074         format specifier for printing second operand.
5076 2013-03-22  Richard Biener  <rguenther@suse.de>
5078         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
5079         bitmaps.
5080         (gather_mem_refs_in_loops): Perform store accumulation here.
5081         (create_vop_ref_mapping_loop): Remove.
5082         (create_vop_ref_mapping): Likewise.
5083         (analyze_memory_references): Initialize refs_stored_in_loop.
5084         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
5085         (record_indep_loop): Remove.
5086         (record_dep_loop): New function.
5087         (ref_indep_loop_p_1): Adjust to only walk over references
5088         in the loop, not its subloops.
5089         (ref_indep_loop_p): Rename to ...
5090         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
5091         maintaining a more fine-grained cache.
5092         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
5093         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
5095 2013-03-22  Richard Biener  <rguenther@suse.de>
5097         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
5098         (struct mem_ref): Make accesses_in_loop a vec of a vec of
5099         aggregate mem_ref_loc.
5100         (free_mem_ref_locs): Inline into ...
5101         (memref_free): ... this and adjust.
5102         (mem_ref_alloc): Adjust.
5103         (mem_ref_locs_alloc): Remove.
5104         (record_mem_ref_loc): Adjust.
5105         (get_all_locs_in_loop): Rewrite into ...
5106         (for_all_locs_in_loop): ... this iterator.
5107         (rewrite_mem_ref_loc): New functor.
5108         (rewrite_mem_refs): Use for_all_locs_in_loop.
5109         (sm_set_flag_if_changed): New functor.
5110         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
5111         (ref_always_accessed): New functor.
5112         (ref_always_accessed_p): Use for_all_locs_in_loop.
5114 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
5116         * tree-pass.h (PROP_gimple_lvec): New.
5117         * passes.c (dump_properties): Handle PROP_gimple_lvec.
5118         (init_optimization_passes): Move pass_lower_vector.
5119         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
5120         PROP_gimple_lvec.
5121         (pass_lower_vector): Provide PROP_gimple_lvec.
5122         (pass_lower_vector_ssa): Likewise.
5123         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
5125 2013-03-21  Mark Wielaard  <mjw@redhat.com>
5127         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
5129 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
5131         * config/i386/i386.md (*movdi_internal): Disparage slightly
5132         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
5133         conversion alternatives.
5135 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
5137         PR middle-end/48087
5138         * diagnostic.def (DK_WERROR): New kind.
5139         * diagnostic.h (werrorcount): Define.
5140         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
5141         promoted to DK_ERROR, increment DK_WERROR counter instead of
5142         DK_ERROR counter.
5143         * toplev.c (toplev_main): Call print_ignored_options even if
5144         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
5145         even if just werrorcount is non-zero.
5147         PR debug/55608
5148         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
5149         on failure.
5150         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
5151         (string_cst_pool_decl): New function.
5152         (optimize_one_addr_into_implicit_ptr): New function.
5153         (resolve_addr_in_expr): Optimize DWARF location expression
5154         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
5155         which doesn't live in memory, but has DW_AT_location or
5156         DW_AT_const_value, or refers to a string literal, into
5157         DW_OP_GNU_implicit_pointer.
5158         (optimize_location_into_implicit_ptr): New function.
5159         (resolve_addr): If removing DW_AT_location of a variable because
5160         it was DW_OP_addr of address of the variable, but the variable doesn't
5161         live in memory, try to emit const value attribute for the initializer.
5163 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
5165         * tree.h (VECTOR_TYPE_P): New macro.
5166         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
5167         TYPE_MODE): Use it.
5168         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
5169         VEC_COND_EXPR cannot be lvalues.
5170         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
5172 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
5174         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
5175         Restrict the transformation to equal modes.
5177 2013-03-21  Richard Biener  <rguenther@suse.de>
5179         PR tree-optimization/39326
5180         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
5181         (MEM_ANALYZABLE): Adjust.
5182         (record_mem_ref_loc): Move bitmap ops ...
5183         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
5184         unanalyzable refs, do not record locations for it.
5185         (analyze_memory_references): Allocate ref zero as shared
5186         unanalyzable ref.
5187         (refs_independent_p): Do not test for unanalyzed mems here.
5188         (ref_indep_loop_p_1): Special-case disambiguation against
5189         the unanalyzed ref.
5190         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
5192 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
5194         * config/arm/arm-protos.h (tune_params): Add
5195         prefer_neon_for_64bits field.
5196         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
5197         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
5198         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5199         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5200         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
5201         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5202         (arm_option_override): Handle -mneon-for-64bits new option.
5203         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
5204         (prefer_neon_for_64bits): Declare new variable.
5205         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
5206         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
5207         (arch_enabled): Handle new arch types. Remove support for onlya8
5208         and nota8.
5209         (one_cmpldi2): Use new arch names.
5210         (zero_extend<mode>di2, extend<mode>di2): Ditto.
5211         * config/arm/arm.opt (mneon-for-64bits): Add option.
5212         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
5213         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
5214         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
5215         of onlya8.
5216         * doc/invoke.texi (-mneon-for-64bits): Document.
5218 2013-03-21  Richard Biener  <rguenther@suse.de>
5220         PR tree-optimization/39326
5221         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
5222         (sort_bbs_in_loop_postorder_cmp): New function.
5223         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5225 2013-03-21  Richard Biener  <rguenther@suse.de>
5227         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
5228         (vect_insert_into_interleaving_chain): Likewise.
5229         (vect_drs_dependent_in_basic_block): Inline ...
5230         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
5231         split out from ...
5232         (vect_analyze_data_ref_dependence): ... here.  Simplify.
5233         (vect_check_interleaving): Simplify.
5234         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
5235         (vect_slp_analyze_data_ref_dependences): ... this new function.
5236         (dr_group_sort_cmp): New function.
5237         (vect_analyze_data_ref_accesses): Compute data-reference groups
5238         here instead of in vect_analyze_data_ref_dependence.  Use
5239         a more efficient algorithm.
5240         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
5241         vect_slp_analyze_data_ref_dependences.  Call
5242         vect_analyze_data_ref_accesses earlier.
5243         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5244         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
5245         (vect_slp_analyze_data_ref_dependences): New prototype.
5247 2013-03-21  Richard Biener  <rguenther@suse.de>
5249         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
5250         ref is stored in the loop.
5251         (find_refs_for_sm): Walk only over all stores.
5252         (store_motion_loop): Allocate from lim_bitmap_obstack.
5253         (store_motion): Likewise.
5255 2013-03-21  Richard Biener  <rguenther@suse.de>
5257         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
5258         Update virtual SSA form.
5260 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5262         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
5263         * configure: Regenerate.
5264         * config.in: Regenerate.
5265         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
5266         if !HAVE_LD_EH_FRAME_CIEV3.
5268 2013-03-21  Richard Biener  <rguenther@suse.de>
5270         * tree-cfg.c (verify_expr_no_block): New function.
5271         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
5272         nor DECL_VALUE_EXPR have locations with associated blocks.
5273         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
5274         (clear_unused_block_pointer): Remove code dealing with
5275         blocks in DECL_DEBUG_EXPR locations.
5277 2013-03-21  Richard Biener  <rguenther@suse.de>
5279         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
5280         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
5281         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
5282         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
5283         instead of DECL_DEBUG_EXPR_IS_FROM.
5284         * gimplify.c (gimplify_modify_expr): Likewise.
5285         * tree-cfg.c (verify_expr_location_1): Likewise.
5286         * tree-complex.c (create_one_component_var): Likewise.
5287         * tree-sra.c (create_access_replacement): Likewise.
5288         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
5289         (clear_unused_block_pointer): Likewise.
5290         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
5291         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5292         * var-tracking.c (var_debug_decl): Likewise.
5293         (track_expr_p): Likewise.
5294         * tree-inline.c (add_local_variables): Likewise.  Set
5295         DECL_HAS_DEBUG_EXPR_P after copying it.
5296         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
5297         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
5299 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
5301         PR bootstrap/56656
5302         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
5303         * configure: Regenerate.
5304         * config.in: Regenerate.
5305         * config/i386/i386.md (*movdf_internal): Use
5306         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5307         movd instead of movq mnemonic for interunit moves.
5308         (*movdi_internal): Ditto.
5310 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5312         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
5313         (abd<mode>_3): New pattern.
5314         (aba<mode>_3): New pattern.
5315         (fabd<mode>_3): New pattern.
5317 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5319         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
5320         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
5321         occurrence of REGISTER_PREFIX as its empty string.
5323 2013-03-20  Jeff Law  <law@redhat.com>
5325         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
5326         addititional equivalences for equality comparisons between an SSA_NAME
5327         and a constant where the SSA_NAME was set from a widening conversion.
5329 2013-03-20  Walter Lee  <walt@tilera.com>
5331         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
5333 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
5335         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
5336         depending on type attribute.
5337         (*movti_internal): Ditto.
5338         (*movtf_internal): Ditto.
5339         (*movxf_internal): Ditto.
5340         (*movdf_internal): Ditto.
5341         (*movsf_internal): Ditto.
5343 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
5345         * config/i386/i386.md (*movti_internal): Set prefix attribute to
5346         maybe_vex for sselog1 and ssemov types.
5347         (*movdi_internal): Reorder operand constraints.
5348         (*movsi_internal): Ditto.  Set prefix attribute to
5349         maybe_vex for sselog1 and ssemov types.
5350         (*movtf_internal): Set prefix attribute to maybe_vex
5351         for sselog1 and ssemov types.
5352         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
5353         DImode ssemov types.  Reorder operand constraints.
5354         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
5355         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
5356         attribute for SImode ssemov types.  Reorder operand constraints.
5358 2013-03-20  Martin Jambor  <mjambor@suse.cz>
5360         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
5361         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
5363 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
5365         * config/rs6000/predicates.md (indexed_address, update_address_mem
5366         update_indexed_address_mem): New predicates.
5367         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
5368         attribute for load/store instructions.
5369         * config/rs6000/dfp.md (movsd_store): Likewise.
5370         (movsd_load): Likewise.
5371         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
5372         (unnamed HI->DI extend define_insn): Likewise.
5373         (unnamed SI->DI extend define_insn): Likewise.
5374         (unnamed QI->SI extend define_insn): Likewise.
5375         (unnamed QI->HI extend define_insn): Likewise.
5376         (unnamed HI->SI extend define_insn): Likewise.
5377         (unnamed HI->SI extend define_insn): Likewise.
5378         (extendsfdf2_fpr): Likewise.
5379         (movsi_internal1): Likewise.
5380         (movsi_internal1_single): Likewise.
5381         (movhi_internal): Likewise.
5382         (movqi_internal): Likewise.
5383         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
5384         attribute for load/store instructions.
5385         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
5386         instructions.
5387         (mov<mode>_softfloat): Likewise.
5388         (mov<mode>_hardfloat32): Likewise.
5389         (mov<mode>_hardfloat64): Likewise.
5390         (mov<mode>_softfloat64): Likewise.
5391         (movdi_internal32): Likewise.
5392         (movdi_internal64): Likewise.
5393         (probe_stack_<mode>): Likewise.
5395 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
5397         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
5398         floating point, and decimal floating point to reload iterator.
5400         * config/rs6000/constraints.md (wl constraint): New constraints to
5401         return FLOAT_REGS if certain options are used to reduce the number
5402         of separate patterns that exist in the file.
5403         (wx constraint): Likewise.
5404         (wz constraint): Likewise.
5406         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5407         -mdebug=reg, print wg, wl, wx, and wz constraints.
5408         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5409         Initialize the reload functions for 64-bit binary/decimal floating
5410         point types.
5411         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5412         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5413         create the buffer on the stack to overcome not having a 32-bit
5414         load and store.
5415         (rs6000_emit_move): Likewise.
5416         (rs6000_secondary_memory_needed_rtx): Likewise.
5417         (rs6000_alloc_sdmode_stack_slot): Likewise.
5418         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5419         via xxlxor, just like DFmode 0.0.
5421         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
5422         define as 1 if we are running on a power7 or newer.
5423         (enum r6000_reg_class_enum): Add new constraints.
5425         * config/rs6000/dfp.md (movsd): Delete, combine with binary
5426         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
5427         with other moves by using conditional constraits (wg).  Use LFIWZX
5428         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
5429         (movsd splitter): Likewise.
5430         (movsd_hardfloat): Likewise.
5431         (movsd_softfloat): Likewise.
5433         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
5434         binary and decimal floating point moves.
5435         (fmove_ok): New attributes to combine binary and decimal floating
5436         point moves, and to combine power6x (mfpgpr) moves along normal
5437         floating moves.
5438         (real_value_to_target): Likewise.
5439         (f32_lr): Likewise.
5440         (f32_lm): Likewise.
5441         (f32_li): Likewise.
5442         (f32_sr): Likewise.
5443         (f32_sm): Likewise.
5444         (f32_si): Likewise.
5445         (movsf): Combine binary and decimal floating point moves.  Combine
5446         power6x (mfpgpr) moves with other moves by using conditional
5447         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
5448         (mov<mode> for SFmode/SDmode); Likewise.
5449         (SFmode/SDmode splitters): Likewise.
5450         (movsf_hardfloat): Likewise.
5451         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
5452         (movsf_softfloat): Likewise.
5453         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
5455         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
5456         wx and wz constraints.
5458         * config/rs6000/constraints.md (wg constraint): New constraint to
5459         return FLOAT_REGS if -mmfpgpr (power6x) was used.
5461         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
5462         constraint.
5464         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5465         -mdebug=reg, print wg, wl, wx, and wz constraints.
5466         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5467         Initialize the reload functions for 64-bit binary/decimal floating
5468         point types.
5469         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5470         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5471         create the buffer on the stack to overcome not having a 32-bit
5472         load and store.
5473         (rs6000_emit_move): Likewise.
5474         (rs6000_secondary_memory_needed_rtx): Likewise.
5475         (rs6000_alloc_sdmode_stack_slot): Likewise.
5476         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5477         via xxlxor, just like DFmode 0.0.
5479         * config/rs6000/dfp.md (movdd): Delete, combine with binary
5480         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
5481         with other moves by using conditional constraits (wg).  Use LFIWZX
5482         and STFIWX for loading SDmode on power7.
5483         (movdd splitters): Likewise.
5484         (movdd_hardfloat32): Likewise.
5485         (movdd_softfloat32): Likewise.
5486         (movdd_hardfloat64_mfpgpr): Likewise.
5487         (movdd_hardfloat64): Likewise.
5488         (movdd_softfloat64): Likewise.
5490         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
5491         64-bit binary and decimal floating point moves.
5492         (FMOVE64X): Likewise.
5493         (movdf): Combine 64-bit binary and decimal floating point moves.
5494         Combine power6x (mfpgpr) moves with other moves by using
5495         conditional constraits (wg).
5496         (mov<mode> for DFmode/DDmode): Likewise.
5497         (DFmode/DDmode splitters): Likewise.
5498         (movdf_hardfloat32): Likewise.
5499         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
5500         (movdf_softfloat32): Likewise.
5501         (movdf_hardfloat64_mfpgpr): Likewise.
5502         (movdf_hardfloat64): Likewise.
5503         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
5504         (movdf_softfloat64): Likewise.
5505         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
5506         (reload_<mode>_load): Move to later in the file so they aren't in
5507         the middle of the floating point move insns.
5508         (reload_<mode>_store): Likewise.
5510         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
5511         constraint.
5513         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
5514         constraint if -mdebug=reg.
5515         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
5516         Enable using dd reload support if needed.
5518         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
5519         binary and decimal floating point moves in rs6000.md.
5520         (movtd_internal): Likewise.
5522         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
5523         decimal floating point moves.
5524         (movtf): Likewise.
5525         (movtf_internal): Likewise.
5526         (mov<mode>_internal, TDmode/TFmode): Likewise.
5527         (movtf_softfloat): Likewise.
5528         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
5530         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
5531         movdi_internal64, using wg constraint for move direct operations.
5532         (movdi_internal64): Likewise.
5534         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
5535         MODES_TIEABLE_P for selected modes.  Print the numerical value of
5536         the various virtual registers. Use GPR/FPR first/last values,
5537         instead of hard coding the register numbers.  Print which modes
5538         have reload functions registered.
5539         (rs6000_option_override_internal): If -mdebug=reg, trace the options
5540         settings before/after setting cpu, target and subtarget settings.
5541         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
5542         and for secondary reload failures in rs6000_secondary_reload_inner.
5543         (rs6000_secondary_reload_fail): Likewise.
5544         (rs6000_secondary_reload_inner): Likewise.
5546         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
5547         macros for first/last GPR and FPR registers.
5548         (LAST_GPR_REGNO): Likewise.
5549         (FIRST_FPR_REGNO): Likewise.
5550         (LAST_FPR_REGNO): Likewise.
5552         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
5553         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
5554         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
5555         (vcond<mode><mode>): Likewise.
5556         (vcondu<mode><mode>): Likewise.
5557         (vector_gtu<mode>): Likewise.
5558         (vector_gte<mode>): Likewise.
5559         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
5560         to prevent the compiler from converting DImode operations to TImode.
5561         (ior<mode>3): Likewise.
5562         (and<mode>3): Likewise.
5563         (one_cmpl<mode>2): Likewise.
5564         (nor<mode>3): Likewise.
5565         (andc<mode>3): Likewise.
5567         * config/rs6000/constraints.md (wt constraint): New constraint
5568         that returns VSX_REGS if TImode is allowed in VSX registers.
5570         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
5571         constant under VSX.
5573         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
5574         similar to TImode, but it is restricted to being in the GPRs.
5576         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
5577         TImode to occupy a single VSX register.
5579         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
5580         -mvsx-timode for power7/power8.
5581         (power7 cpu): Likewise.
5582         (power8 cpu): Likewise.
5584         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
5585         sure that TFmode/TDmode take up two registers if they are ever
5586         allowed in the upper VSX registers.
5587         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
5588         registers.
5589         (rs6000_init_hard_regno_mode_ok): Likewise.
5590         (rs6000_debug_reg_global): Add debugging for PTImode and wt
5591         constraint.  Print if LRA is turned on.
5592         (rs6000_option_override_internal): Give an error if -mvsx-timode
5593         and VSX is not enabled.
5594         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
5595         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
5596         to reg+offset addressing.  Use PTImode when checking offset
5597         addresses for validity.
5598         (reg_offset_addressing_ok_p): Likewise.
5599         (rs6000_legitimate_offset_address_p): Likewise.
5600         (rs6000_legitimize_address): Likewise.
5601         (rs6000_legitimize_reload_address): Likewise.
5602         (rs6000_legitimate_address_p): Likewise.
5603         (rs6000_eliminate_indexed_memrefs): Likewise.
5604         (rs6000_emit_move): Likewise.
5605         (rs6000_secondary_reload): Likewise.
5606         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
5607         reloads to fpr registers to continue to use reg+offset addressing,
5608         but 64-bit reloads to altivec registers need reg+reg addressing.
5609         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
5610         it.  Treat LO_SUM like a PLUS operation.
5611         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
5612         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
5613         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
5614         registers to share a register with a smaller sized type, since VSX
5615         puts scalars in the upper 64-bits.
5616         (print_operand): Add support for PTImode.
5617         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
5618         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
5619         registers, but don't have arithmetic support.
5620         (rs6000_memory_move_cost): Add test for VSX.
5621         (rs6000_opt_masks): Add -mvsx-timode.
5623         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
5624         for TImode.
5625         (VSs): Likewise.
5626         (VSr): Use wt constraint for TImode.
5627         (VSv): Drop TImode support.
5628         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
5629         (vsx_movti_64bit): Likewise.
5630         (vsx_movti_32bit): Likewise.
5631         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
5632         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
5633         one '?' on the appropriate output constraint.  Do not allow TImode
5634         logical operations on 32-bit systems.
5635         (vsx_ior<mode>3): Likewise.
5636         (vsx_xor<mode>3): Likewise.
5637         (vsx_one_cmpl<mode>2): Likewise.
5638         (vsx_nor<mode>3): Likewise.
5639         (vsx_andc<mode>3): Likewise.
5640         (vsx_concat_<mode>): Likewise.
5641         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
5643         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
5644         OPTION_MASK_VSX_TIMODE.
5645         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
5646         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
5648         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
5649         (TI2 iterator): New iterator for TImode, PTImode.
5650         (wd mode attribute): Add values for vector types.
5651         (movti_string): Replace TI move operations with operations for TImode
5652         and PTImode.  Add support for TImode being allowed in VSX registers.
5653         (mov<mode>_string, TImode/PTImode): Likewise.
5654         (movti_ppc64): Likewise.
5655         (mov<mode>_ppc64, TImode/PTImode): Likewise.
5656         (TI mode splitters): Likewise.
5658         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
5659         constraint.
5661 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
5663         PR tree-optimization/56355
5664         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
5665         Also handle integers with undefined overflow.
5667 2013-03-20  Catherine Moore  <clm@codesourcery.com>
5668             Maciej W. Rozycki  <macro@codesourcery.com>
5669             Tom de Vries  <tom@codesourcery.com>
5670             Nathan Sidwell <nathan@codesourcery.com>
5671             Iain Sandoe  <iain@codesourcery.com>
5672             Nathan Froyd  <froydnj@codesourcery.com>
5673             Chao-ying Fu <fu@mips.com>
5675         * doc/extend.texi: (micromips, nomicromips, nocompression):
5676         Document new function attributes.
5677         * doc/invoke.texi (minterlink-compressed, mmicromips,
5678         m14k, m14ke, m14kec): Document new options.
5679         (minterlink-mips16): Update documentation.
5680         * doc/md.texi (ZC, ZD): Document new constraints.
5681         * configure.ac (gcc_cv_as_micromips): Check if linker
5682         supports the .set micromips directive.
5683         * configure: Regenerate.
5684         * config.in: Regenerate.
5685         * config/mips/mips-tables.opt: Regenerate.
5686         * config/mips/micromips.md: New file.
5687         * constraints.md (ZC, ZD): New constraints.
5688         * config/mips/predicates.md (movep_src_register): New predicate.
5689         (movep_src_operand): New predicate.
5690         (non_volatile_mem_operand): New predicate.
5691         * config/mips/mips.md (multimem): New type.
5692         (length): Differentiate between 17-bit and 18-bit branch offsets.
5693         (MOVEP1, MOVEP2): New mode iterator.
5694         (mov_<load>l): Use ZC constraint.
5695         (mov_<load>r): Likewise.
5696         (mov_<store>l): Likewise.
5697         (mov_<store>r): Likewise.
5698         (*branch_equality<mode>_inverted): Add microMIPS support.
5699         (*branch_equality<mode>): Likewise.
5700         (*jump_absolute): Likewise.
5701         (indirect_jump_<mode>): Likewise.
5702         (tablejump_<mode>): Likewise.
5703         (<optab>_internal): Likewise.
5704         (sibcall_internal): Likewise.
5705         (sibcall_value_internal): Likewise.
5706         (prefetch): Use constraint ZD.
5707         * config/mips/mips.opt (minterlink-compressed): New option.
5708         (minterlink-mips16): Now an alias for minterlink-compressed.
5709         (mmicromips): New option.
5710         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5711         (compare_and_swap_12): Likewise.
5712         (sync_add<mode>): Likewise.
5713         (sync_<optab>_12): Likewise.
5714         (sync_old_<optab>_12): Likewise.
5715         (sync_new_<optab>_12): Likewise.
5716         (sync_nand_12): Likewise.
5717         (sync_old_nand_12): Likewise.
5718         (sync_new_nand_12): Likewise.
5719         (sync_sub<mode>): Likewise.
5720         (sync_old_add<mode>): Likewise.
5721         (sync_old_sub<mode>): Likewise.
5722         (sync_new_add<mode>): Likewise.
5723         (sync_new_sub<mode>): Likewise.
5724         (sync_<optab><mode>): Likewise.
5725         (sync_old_<optab><mode>): Likewise.
5726         (sync_new_<optab><mode>): Likewise.
5727         (sync_nand<mode>): Likewise.
5728         (sync_old_nand<mode>): Likewise.
5729         (sync_new_nand<mode>): Likewise.
5730         (sync_lock_test_and_set<mode>): Likewise.
5731         (test_and_set_12): Likewise.
5732         (atomic_compare_and_swap<mode>): Likewise.
5733         (atomic_exchange<mode>_llsc): Likewise.
5734         (atomic_fetch_add<mode>_llsc): Likewise.
5735         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5736         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5737         (umips_save_restore_pattern_p): Likewise.
5738         (umips_load_store_pair_p): Likewise.
5739         (umips_output_load_store_pair): Likewise.
5740         (umips_movep_target_p): Likewise.
5741         (umips_12bit_offset_address_p): Likewise.
5742         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5743         (mips_base_mips16): Rename this...
5744         (mips_base_compression_flags): ...to this. Update all uses.
5745         (mips_attribute_table): Add micromips, nomicromips and nocompression.
5746         (mips_mips16_decl_p): Delete.
5747         (mips_nomips16_decl_p): Delete.
5748         (mips_get_compress_on_flags): New function.
5749         (mips_get_compress_off_flags): New function.
5750         (mips_get_compress_mode): New function.
5751         (mips_get_compress_on_name): New function.
5752         (mips_get_compress_off_name): New function.
5753         (mips_insert_attributes): Support multiple compression types.
5754         (mips_merge_decl_attributes): Likewise.
5755         (umips_12bit_offset_address_p): New function.
5756         (mips_start_function_definition): Emit .set micromips directive.
5757         (mips_call_may_need_jalx_p): New function.
5758         (mips_function_ok_for_sibcall): Add microMIPS support.
5759         (mips_print_operand_punctuation): Support short delay slots and
5760         compact jumps.
5761         (umips_swm_mask, umips_swm_encoding): New.
5762         (umips_build_save_restore): New function.
5763         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5764         (was_mips16_p): Remove.
5765         (old_compression_mode): New.
5766         (mips_set_compression_mode): New function.
5767         (mips_set_current_function): Add microMIPS support.
5768         (mips_option_override): Likewise.
5769         (umips_save_restore_pattern_p): New function.
5770         (umips_output_save_restore): New function.
5771         (umips_load_store_pair_p_1): New function.
5772         (umips_load_store_pair_p): New function.
5773         (umips_output_load_store_pair_1): New function.
5774         (umips_output_load_store_pair): New function.
5775         (umips_movep_target_p) New function.
5776         (mips_prepare_pch_save): Add microMIPS support.
5777         * config/mips/mips.h (TARGET_COMPRESSION): New.
5778         (TARGET_CPU_CPP_BUILTINS): Update macro
5779         to use new compression flags and to support microMIPS.
5780         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5781         (MIPS_ARCH_FLOAT_SPEC): Likewise.
5782         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5783         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5784         (ASM_SPEC): Support mmicromips and mno-micromips.
5785         (M16STORE_REG_P): New macro.
5786         (MIPS_CALL): Support TARGET_MICROMIPS.
5787         (MICROMIPS_J): New macro.
5788         (mips_base_mips16): Rename this...
5789         (mips_base_compression_flags): ...to this.
5790         (UMIPS_12BIT_OFFSET_P): New macro.
5791         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5792         (MULTILIB_DIRNAMES): Likewise.
5793 2013-03-20  Richard Biener  <rguenther@suse.de>
5795         PR tree-optimization/56661
5796         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
5797         the result does not have to be distinct.
5799 2013-03-20  Richard Biener  <rguenther@suse.de>
5801         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
5802         remap_gimple_op_r.
5804 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5805             Steven Bosscher <steven@gcc.gnu.org>
5807         PR rtl-optimization/56605
5808         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
5810 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
5812         PR bootstrap/56656
5813         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
5814         that require movd instead of movq.
5816 2013-03-20  Richard Biener  <rguenther@suse.de>
5818         * tree-ssa-structalias.c (struct variable_info): Add pointer
5819         to the first field of an aggregate with sub-vars.  Make
5820         this and the pointer to the next subfield its ID.
5821         (vi_next): New function.
5822         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
5823         storedanything_id, integer_id): Increment by one.
5824         (new_var_info, get_call_vi, lookup_call_clobber_vi,
5825         get_call_clobber_vi): Adjust.
5826         (solution_set_expand): Simplify and speedup.
5827         (solution_set_add): Inline into ...
5828         (set_union_with_increment): ... this.  Adjust accordingly.
5829         (do_sd_constraint): Likewise.
5830         (do_ds_constraint): Likewise.
5831         (do_complex_constraint): Simplify.
5832         (build_pred_graph): Adjust.
5833         (solve_graph): Likewise.  Simplify and speedup.
5834         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
5835         get_constraint_for_component_ref, get_constraint_for_1,
5836         first_vi_for_offset, first_or_preceding_vi_for_offset,
5837         create_function_info_for, create_variable_info_for_1,
5838         create_variable_info_for, intra_create_variable_infos): Adjust.
5839         (init_base_vars): Push NULL for ID zero.
5840         (compute_points_to_sets): Adjust.
5842 2013-03-20  Richard Biener  <rguenther@suse.de>
5844         * cfgloop.c (verify_loop_structure): Streamline and avoid
5845         ICEing on corrupt loop tree.
5846         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
5847         loop tree.
5849 2013-03-20  Richard Biener  <rguenther@suse.de>
5851         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
5852         check whether an SSA update is needed.
5854 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
5856         * config/mips/constraints.md (T): Rename to...
5857         (Yf): ...this.
5858         (U): Rename to...
5859         (Yd): ...this.
5860         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
5861         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
5863 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
5865         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
5866         (*subsi3_carryin_uxtw): Likewise.
5868 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
5870         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
5871         (*rorsi3_insn_uxtw): Likewise.
5873 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
5875         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
5876         (*extrsi5_insn_uxtw): Likewise.
5878 2013-03-19  Richard Biener  <rguenther@suse.de>
5880         PR tree-optimization/56273
5881         * passes.c (init_optimization_passes): Move second VRP after DOM.
5883 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
5885         * config/i386/i386.md (*movti_internal): Merge from
5886         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
5887         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
5888         nox64 isa attributes.
5890 2013-03-18  Richard Biener  <rguenther@suse.de>
5892         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
5893         (unite): Likewise.
5894         (merge_node_constraints): Likewise.
5895         (build_succ_graph): Likewise.
5896         (valid_graph_edge): Inline into single caller.
5897         (unify_nodes): Likewise.  Use bitmap_set_bit return value
5898         and cache varinfo.
5899         (scc_visit): Fix formatting and variable use.
5900         (do_sd_constraint): Use gcc_checking_assert.
5901         (do_ds_constraint): Likewise.
5902         (do_complex_constraint): Likewise.
5903         (condense_visit): Likewise.  Cleanup.
5904         (dump_pred_graph): New function.
5905         (perform_var_substitution): Dump the pred-graph before
5906         variable substitution.
5907         (find_equivalent_node): Use gcc_checking_assert.
5908         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
5910 2013-03-18  Richard Biener  <rguenther@suse.de>
5912         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5913         Remove cond_expr_stmt_list argument and do not gimplify the
5914         built expression.
5915         (vect_loop_versioning): Adjust.
5916         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5917         Cleanup to use less temporaries.
5918         (vect_create_data_ref_ptr): Cleanup.
5920 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
5922         PR tree-optimization/56635
5923         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
5924         require types_compatible_p types.
5926 2013-03-18  Nick Clifton  <nickc@redhat.com>
5928         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
5929         spurious backslash.
5931         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
5932         Add missing line to comment describing function.
5934 2013-03-18  Richard Biener  <rguenther@suse.de>
5936         PR tree-optimization/56210
5937         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5938         Handle string / character search functions.
5939         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5941 2013-03-18  Richard Biener  <rguenther@suse.de>
5943         PR middle-end/56483
5944         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
5945         and implement properly.
5946         * gimple.h (gimple_cond_single_var_p): Remove.
5948 2013-03-18  Richard Biener  <rguenther@suse.de>
5950         * tree-data-ref.h (find_data_references_in_loop): Declare.
5951         * tree-data-ref.c (get_references_in_stmt): Use a stack
5952         vector pre-allocated in the callers.
5953         (find_data_references_in_stmt): Adjust.
5954         (graphite_find_data_references_in_stmt): Likewise.
5955         (create_rdg_vertices): Likewise.
5956         (find_data_references_in_loop): Export.
5957         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5958         Compute dependences here...
5959         (vect_analyze_data_refs): ...not here.  When we encounter
5960         a non-vectorizable data reference in basic-block vectorization
5961         truncate the data reference vector.  Do not bother to
5962         fixup data-dependence information for gather loads.
5963         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
5964         of data references, as reported.
5966 2013-03-18  Richard Biener  <rguenther@suse.de>
5968         PR tree-optimization/3713
5969         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
5970         has_constants and expr.
5971         (stmt_has_constants): Properly valueize SSA names when deciding
5972         whether the stmt has constants.
5974 2013-03-18  Richard Biener  <rguenther@suse.de>
5976         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
5977         whole function when there is nothing to do.
5978         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
5979         * tree-vectorizer.c (vectorize_loops): Update virtual and
5980         loop-closed SSA once.
5981         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
5983 2013-03-18  Richard Biener  <rguenther@suse.de>
5985         PR middle-end/56113
5986         * domwalk.c (bb_postorder): New global static.
5987         (cmp_bb_postorder): New function.
5988         (walk_dominator_tree): Replace scheme imposing an order for
5989         visiting dominator sons by one sorting them at the time they
5990         are pushed on the stack.
5992 2013-03-18  Richard Biener  <rguenther@suse.de>
5994         PR tree-optimization/39326
5995         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
5996         (struct mem_ref): Replace mem member with ao_ref typed member.
5997         (MEM_ANALYZABLE): Adjust.
5998         (memref_eq): Likewise.
5999         (mem_ref_alloc): Likewise.
6000         (gather_mem_refs_stmt): Likewise.
6001         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6002         (execute_sm_if_changed_flag_set): Adjust.
6003         (execute_sm): Likewise.
6004         (ref_always_accessed_p): Likewise.
6005         (refs_independent_p): Likewise.
6006         (can_sm_ref_p): Likewise.
6008 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
6010         PR c/56566
6011         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6012         return 1 even for !unsignedp.
6014 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6016         * config/i386/i386.md (isa): Add x64 and nox64.
6017         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6018         (*pushtf): Enable *roF alternative for x64 isa only.
6019         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
6020         mode attribute of integer alternatives to DImode for TARGET_64BIT.
6021         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
6022         (*movtf_internal): Merge from *movtf_internal_rex64 and
6023         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
6024         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
6025         nox64 isa attributes.
6026         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
6027         nox64 isa attributes.
6028         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6030 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6032         * config/alpha/alpha.c (TARGET_LRA_P): New define.
6034 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
6036         PR target/56640
6037         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
6038         class names.  Remove trailing comma after "ALL_REGS".
6040 2013-03-16  Jan Hubicka  <jh@suse.cz>
6042         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
6043         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
6044         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
6045         of cgraph_get_create_node.
6046         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6048 2013-03-16  Jason Merrill  <jason@redhat.com>
6050         PR debug/49090
6051         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
6052         with DW_AT_default_value.
6054 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
6056         * BASE-VER: Set to 4.9.0.
6058 2013-03-14  Andi Kleen  <ak@linux.intel.com>
6060         PR target/56619
6061         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
6062         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
6063         Document _x* TSX intrinsics.
6065 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
6066             David Holsgrove  <david.holsgrove@xilinx.com>
6068         * configure.ac: Add MicroBlaze TLS support detection.
6069         * configure: Regenerate.
6070         * config/microblaze/microblaze-protos.h
6071         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
6072         symbol_mentioned_p, label_mentioned_p): Add prototypes.
6073         * config/microblaze/microblaze.c (microblaze_address_type): Add
6074         ADDRESS_TLS and tls_reloc address types.
6075         (microblaze_address_info): Add tls_reloc.
6076         (TARGET_HAVE_TLS): Define.
6077         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
6078          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
6079          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
6080         load_tls_operand,  microblaze_call_tls_get_addr,
6081         microblaze_legitimize_tls_address): New functions.
6082         (microblaze_classify_unspec): Handle UNSPEC_TLS.
6083         (get_base_reg): Use microblaze_tls_symbol_p.
6084         (microblaze_classify_address): Handle TLS.
6085         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
6086         label_mentioned_p and microblaze_tls_referenced_p.
6087         (microblaze_legitimize_address): Handle TLS.
6088         (microblaze_address_insns): Handle ADDRESS_TLS.
6089         (pic_address_needs_scratch): Handle TLS.
6090         (print_operand_address): Handle TLS.
6091         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
6092         (microblaze_expand_move): Handle TLS.
6093         (microblaze_legitimate_constant_p): Check
6094         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
6095         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6096         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
6097         (PIC_OFFSET_TABLE_REGNUM): Set.
6098         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
6099         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
6100         (addsi3, movsi_internal2, movdf_internal): Update constraints
6101         * config/microblaze/predicates.md (arith_plus_operand): Define
6102         (move_operand): Redefine as move_src_operand,
6103         check microblaze_tls_referenced_p.
6105 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
6107         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
6108         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
6110 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
6112         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
6113         CC mode for AND.
6115 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
6117         PR tree-optimization/53265
6118         * common.opt (Waggressive-loop-optimizations): New option.
6119         * tree-ssa-loop-niter.c: Include tree-pass.h.
6120         (do_warn_aggressive_loop_optimizations): New function.
6121         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
6122         if number_of_latch_executions returned constant.
6123         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
6124         early.  If number_of_latch_executions returned constant, set
6125         nb_iterations_upper_bound back to it.
6126         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
6127         field.
6128         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
6129         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
6131         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
6132         (MULTILIB_OSDIRNAMES): Set.
6133         * genmultilib: If defaultosdirname doesn't start with :: , set
6134         defaultosdirname2 instead, clear it and emit two . multilib_raw
6135         entries instead of just one.
6137 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
6139         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6140         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
6141         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6142         (SUBTARGET_OVERRIDE_OPTIONS): New.
6144 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
6146         PR target/49880
6147         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
6148         (musermode): Convert to Var(TARGET_USERMODE).
6149         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
6150         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
6151         * config/sh/sh.c (sh_option_override): Use
6152         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
6153         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
6154         condition.
6155         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
6156         TARGET_SH4.
6157         (udivsi3_i4_single, divsi3_i4_single): Use
6158         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
6160 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
6162         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
6163         default setting.
6165 2013-03-13  Richard Biener  <rguenther@suse.de>
6167         PR tree-optimization/56608
6168         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
6169         calls when vectorizing basic-blocks.
6171 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
6173         PR plugins/45078
6174         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
6175         tm_file.
6177 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
6179         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
6181 2013-03-11  Jan Hubicka  <jh@suse.cz>
6183         PR lto/56557
6184         * lto-streamer-out.c (output_symbol_p): Skip references from
6185         constructors of external variables.
6187 2013-03-11  Jan Hubicka  <jh@suse.cz>
6189         PR middle-end/56571
6190         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
6191         from pseudos.
6192         * emit-rtl.c (verify_rtx_sharing): Likewise.
6193         (copy_insn_1): Likewise.
6194         * rtl.c (copy_rtx): Likewise.
6196 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
6198         PR target/56591
6199         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
6200         output_operand_lossage message.
6202 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
6204         PR target/56470
6205         * arm.c (shift_op): Validate RTL pattern on the fly.
6206         (arm_print_operand, case 'S'): Don't use shift_operator to validate
6207         the RTL.
6209 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6211         PR target/56347
6212         * config/pa/pa.md (call_value): Check for calls to powf and direct to
6213         new call patterns that clobber %fr12.
6214         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
6215         split and postreload patterns.
6216         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
6217         registers %fr12 and %fr12R as call used.
6219 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
6221         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
6222         (canon_address, record_store, replace_read, check_mem_read_rtx,
6223         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
6224         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
6225         rest_of_handle_dse): Likewise.
6227 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
6229         PR middle-end/56524
6230         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
6231         Add base_optabs.
6232         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
6233         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
6234         (save_optabs_if_changed): Replace with...
6235         (init_tree_optimization_optabs): ...this.
6236         * optabs.c (save_optabs_if_changed): Rename to...
6237         (init_tree_optimization_optabs): ...this.  Take the optimization node
6238         as argument.  Do nothing if the base optabs are already correct.
6239         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
6240         to recompute optabs.
6241         * function.h (function): Remove optabs field.
6242         * function.c (invoke_set_current_function_hook): Call
6243         init_tree_optimization_optabs.  Use the result to initialize
6244         this_fn_optabs.
6246 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
6248         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
6249         if GTMA_HAS_NO_INSTRUMENTATION.
6250         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
6251         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
6252         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
6253         * gimple-pretty-print.c (dump_gimple_transaction): Handle
6254         GTMA_HAS_NO_INSTRUMENTATION.
6256 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
6258         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
6259         libasan_preinit.o.
6261 2013-03-08  Marek Polacek  <polacek@redhat.com>
6262             Jakub Jelinek  <jakub@redhat.com>
6264         PR tree-optimization/56478
6265         * predict.c (is_comparison_with_loop_invariant_p): Change the
6266         type of loop_step to tree.
6267         (predict_loops): Adjust.
6268         (predict_iv_comparison): Perform the computations on double_ints.
6270 2013-03-08  Richard Biener  <rguenther@suse.de>
6272         PR tree-optimization/56570
6273         * tree-cfg.c (verify_expr_location_1): Verify locations for
6274         DECL_DEBUG_EXPR.
6275         * tree-sra.c (create_access_replacement): Strip locations
6276         from DECL_DEBUG_EXPRs.
6278 2013-03-08  Richard Biener  <rguenther@suse.de>
6280         * tree-inline.c (expand_call_inline): Do not associate
6281         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
6282         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
6284 2013-03-08  Richard Biener  <rguenther@suse.de>
6286         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
6287         or block changes with -Og.  Fix for location / block encoding
6288         changes and PHI arguments with locations.
6290 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
6292         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
6293         for all counters.
6294         (struct output_info): Likewise.
6295         (register_overhead): Remove bad gcc_assert.
6296         (bitmap_find_bit): If there is only a single bitmap element, do not
6297         count a miss as a search.
6298         (print_statistics): Update for counter type changes.
6299         (dump_bitmap_statistics): Likewise.  Print headers such that they
6300         are properly lined up with the printed counters.
6302 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
6304         PR tree-optimization/56559
6305         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
6306         check that it has only a single use.
6308 2013-03-07  Richard Biener  <rguenther@suse.de>
6310         * doc/invoke.texi (fwhole-program): Discourage use in combination
6311         with -flto.
6313 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
6315         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
6317         PR tree-optimization/56539
6318         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
6319         instead of GSI_CONTINUE_LINKING as last argument to
6320         force_gimple_operand_gsi.  Adjust function comment.
6322         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
6323         aarch64-cores.def.
6325         PR middle-end/56548
6326         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
6327         promoted mode, convert the result back to the original mode.
6329 2013-03-06  Richard Biener  <rguenther@suse.de>
6331         PR middle-end/56294
6332         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
6333         (insert_updated_phi_nodes_compare_uids): New function.
6334         (update_ssa): Sort symbols_to_rename after UID before
6335         traversing it to insert PHI nodes.
6337 2013-03-06  Richard Biener  <rguenther@suse.de>
6339         PR middle-end/50494
6340         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
6341         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
6343         Revert
6344         2013-02-13  Richard Biener  <rguenther@suse.de>
6346         PR lto/50494
6347         * varasm.c (output_constant_def_1): Get the decl representing
6348         the constant as argument.
6349         (output_constant_def): Wrap output_constant_def_1.
6350         (make_decl_rtl): Use output_constant_def_1 with the decl
6351         representing the constant.
6352         (build_constant_desc): Optionally re-use a decl already
6353         representing the constant.
6354         (tree_output_constant_def): Adjust.
6356 2013-03-06  Joey Ye  <joey.ye@arm.com>
6358         PR lto/50293
6359         * gcc.c (convert_white_space): New function.
6360         (main): Handles white space in function name.
6362 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
6364         PR target/56529
6365         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
6366         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
6367         to SH_DIV_CALL_TABLE for TARGET_SH2.
6368         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
6369         list.
6370         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
6371         call-table options.
6373 2013-03-05  Sterling Augustine  <saugustine@google.com>
6374             Cary Coutant  <ccoutant@google.com>
6376         PR debug/55364
6377         * dwarf2out.c (resolve_addr): Don't call
6378         remove_loc_list_addr_table_entries a second time for the same
6379         expression.
6381 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6383         PR debug/56510
6384         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
6385         (avoid_complex_debug_insns): New function.
6386         (expand_debug_locations): Call it.
6388         PR rtl-optimization/56484
6389         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
6390         lifetimes of hard registers on small register class machines.
6392 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
6394         * config/microblaze/microblaze-protos.h: Rename
6395         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6396         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
6397         fast_interrupt.
6398         (microblaze_fast_interrupt_function_p): New function.
6399         (microblaze_is_interrupt_handler): Rename to
6400         microblaze_is_interrupt_variant and add fast_interrupt check.
6401         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
6402         (save_restore_insns): Likewise.
6403         (compute_frame_size): Likewise.
6404         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
6405         (microblaze_globalize_label): Likewise.
6406         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
6407         * config/microblaze/microblaze.md: Use wrapper
6408         microblaze_is_interrupt_variant.
6410 2013-03-05  Kai Tietz  <ktietz@redhat.com>
6412         * sdbout.c (sdbout_one_type): Switch to current function's section
6413         supporting cold/hot.
6415 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
6417         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
6418         -mxl-reorder.
6420 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6422         PR middle-end/56461
6423         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
6424         if VALGRIND_GET_VBITS is defined, temporarily make object
6425         memory all defined, and restore previous valgrind addressability
6426         and definability afterwards.  Free this_object at the end.
6428         PR middle-end/56461
6429         * lra.c (lra): Call lra_clear_live_ranges if live_p,
6430         right before calling lra_create_live_ranges, also call it
6431         when clearing live_p.  Only call lra_clear_live_ranges
6432         at the end if live_p.
6434         PR middle-end/56461
6435         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
6437 2013-03-05  Richard Biener  <rguenther@suse.de>
6439         PR tree-optimization/56521
6440         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
6441         value-id.
6443 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
6445         PR c++/55135
6446         * except.h (remove_unreachable_eh_regions): New prototype.
6447         * except.c (remove_eh_handler_splicer): New function, split out
6448         of remove_eh_handler.
6449         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
6450         warning about running it on many EH regions one at a time.
6451         (remove_unreachable_eh_regions_worker): New function, walk the
6452         EH tree in depth-first order and remove non-marked regions.
6453         (remove_unreachable_eh_regions): New function.
6454         * tree-eh.c (mark_reachable_handlers): New function, split out
6455         from remove_unreachable_handlers.
6456         (remove_unreachable_handlers): Use mark_reachable_handlers and
6457         remove_unreachable_eh_regions.
6458         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
6459         and remove_unreachable_eh_regions.
6461 2013-03-05  Richard Biener  <rguenther@suse.de>
6463         PR middle-end/56525
6464         * loop-init.c (fix_loop_structure): Remove loops in two stages,
6465         not freeing them until the end.
6467 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6469         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
6471 2013-03-05  Richard Biener  <rguenther@suse.de>
6473         PR tree-optimization/56270
6474         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
6475         of loads after scheduling an SLP instance.
6477 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6479         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
6480         tic6x.exp.
6481         (check_gcc_parallelize): Run guality.exp as a separate job from
6482         vect.exp with unsorted.exp and $(dg_target_exps) separately from
6483         struct-layout-1.exp with stackalign.exp.
6485         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
6487         PR middle-end/56461
6488         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
6489         load_index sbitmap even if some bit in it isn't set.
6491         PR middle-end/56461
6492         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
6493         (discover_iteration_bound_by_body_walk): Change queues to
6494         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
6495         spelling in comment.  Call safe_push on queues[bound_index] directly.
6496         Release queues[queue_index] in every iteration unconditionally.
6497         Release bounds vector.
6499         PR middle-end/56461
6500         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
6501         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
6502         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
6503         inner_phis vector.
6505 2013-03-05  Richard Biener  <rguenther@suse.de>
6507         PR lto/56515
6508         * tree-inline.c (remap_blocks_to_null): New function.
6509         (expand_call_inline): When expanding a call stmt without
6510         an associated block inline remap all callee blocks to NULL.
6512 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6514         PR rtl-optimization/56494
6515         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
6516         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
6517         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
6519         PR middle-end/56461
6520         * sel-sched-ir.c (free_sched_pools): Release
6521         succs_info_pool.stack[succs_info_pool.max_top] vectors too
6522         if succs_info_pool.max_top isn't -1.
6524         PR bootstrap/56509
6525         * opts.c (opts_obstack, opts_concat): Moved to...
6526         * opts-common.c (opts_obstack, opts_concat): ... here.
6528 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
6530         PR middle-end/56461
6531         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
6533 2013-03-04  Martin Jambor  <mjambor@suse.cz>
6535         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
6536         all appropriate places.
6538 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
6540         PR tree-optimization/56424
6541         * ipa-split.c (split_function): Do not set the RSO flag if result is
6542         not by reference and its type is a register type.
6544 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
6546         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
6547         (microblaze_legitimate_pic_operand): Likewise
6548         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
6549         new function microblaze_legitimate_pic_operand
6550         * config/microblaze/microblaze-protos.h
6551         (microblaze_legitimate_pic_operand): Declare.
6553 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6555         * config/microblaze/predicates.md (call_insn_simple_operand):
6556         New predicate for supported rtx code types.
6557         * config/microblaze/microblaze.md (call_internal1): Use
6558         call_insn_simple_operand predicate.
6560 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
6562         PR middle-end/56461
6563         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
6564         partitions.ordered_remove.
6566         PR middle-end/56461
6567         * tree-vect-stmts.c (vectorizable_conversion): Don't call
6568         vec_oprnds0.create (1) for modifier == NONE.
6570         PR middle-end/56461
6571         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
6572         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
6573         vec_oprnds1 right before pushing anything to it for
6574         scalar_shift_arg.
6576         PR middle-end/56461
6577         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
6578         set nbbs to 0 instead of having separate code path.
6579         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
6580         instead of false as last argument if returning NULL.
6582 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
6584         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
6585         the attribute is now called "target" instead of "option".
6586         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
6587         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
6588         attribute/pragma name for TARGET_OPTION_VALID_P and
6589         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
6590         * doc/tm.texi: Regenerated.
6592 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
6594         * config/microblaze/microblaze.c:
6595         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
6596         * config/microblaze/microblaze.h: Add -mxl-reorder to
6597         DRIVER_SELF_SPECS.
6598         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
6599         instructions emitted if TARGET_REORDER.
6600         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
6601         or 0 for -m/-mno case, but initialises as 2 to detect default use case
6602         separately.
6604 2013-03-01  Xinliang David Li  <davidxl@google.com>
6606         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
6607         walk length.
6609 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
6611         PR middle-end/56461
6612         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
6613         vector even when returning true.  Fix up function comment formatting.
6615         PR middle-end/56461
6616         * ira-build.c (ira_loop_nodes_count): New variable.
6617         (create_loop_tree_nodes): Initialize it.
6618         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
6620         PR middle-end/56461
6621         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
6622         method on dr_chain and result_chain.
6623         * tree-vect-stmts.c (vectorizable_store): Only call
6624         result_chain.create if j == 0.
6626         PR middle-end/56461
6627         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
6628         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
6629         before overwriting it.
6631 2013-03-01  Tobias Burnus  <burnus@net-b.de>
6633         * doc/extended.texi (C Extensions): Change order in @menu
6634         to match @node.
6635         (Other MIPS Built-in Functions): Move last MIPS entry before
6636         "picoChip Built-in Functions".
6637         (SH Built-in Functions): Move after RX Built-in Functions.
6638         * doc/gcc.texi (Introduction): Change order in @menu
6639         to match @node.
6640         * doc/md.texi (Constraints): Ditto.
6641         * gty.texi (Type Information): Ditto.
6642         (User-provided marking routines for template types): Make
6643         subsection.
6644         * doc/invoke.texi (AArch64 Options): Move before
6645         "Adapteva Epiphany Options".
6647 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
6648             Jakub Jelinek  <jakub@redhat.com>
6650         PR sanitizer/56454
6651         * asan.c (gate_asan): Lookup no_sanitize_address instead of
6652         no_address_safety_analysis attribute.
6653         * doc/extend.texi (no_address_safety_attribute): Rename to
6654         no_sanitize_address attribute, mention no_address_safety_analysis
6655         attribute as deprecated alias.
6657 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
6659         PR middle-end/56461
6660         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
6661         type to vec<vec<tree> > *.
6662         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
6663         to be vec<tree> instead of vec<tree> *, set vec_defs
6664         to vNULL and call vec_defs.create (number_of_vects), adjust other
6665         uses of vec_defs.
6666         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
6667         vectorizable_condition): Adjust vect_get_slp_defs callers.
6669 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
6671         * config/aarch64/aarch64.c
6672         (aarch64_float_const_representable): Remove unused variable.
6674 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
6676         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
6678 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
6680         * config/aarch64/aarch64-builtins.c
6681         (aarch64_init_simd_builtins): Make static.
6683 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
6685         * config/aarch64/aarch64.c
6686         (aarch64_simd_make_constant): Make static.
6688 2013-02-28  Martin Jambor  <mjambor@suse.cz>
6690         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
6691         with no initialization to the RHS of debug statements.
6693 2013-02-28  Martin Jambor  <mjambor@suse.cz>
6695         PR tree-optimization/56294
6696         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
6697         Adjust dumping.
6698         (get_access_replacement): Do not call create_access_replacement.
6699         Assert a replacement exists.
6700         (get_repl_default_def_ssa_name): Create the replacement declaration
6701         itself.
6703 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6705         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
6706         final_end_function.
6708 2013-02-28  Marek Polacek  <polacek@redhat.com>
6710         PR rtl-optimization/56466
6711         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
6712         if we're changing a loop.
6713         (peel_loops_completely): Likewise.
6715 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
6717         PR c++/55813
6718         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
6720 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
6722         PR target/56445
6723         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
6724         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
6725         INTX_FTYPE_FX, FX_FTYPE_INTX.
6726         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
6728 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
6730         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
6731         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
6732         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
6733         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
6734         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
6735         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
6736         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
6737         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
6738         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
6739         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
6740         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
6741         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
6742         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
6743         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
6744         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
6745         (avrxmega6): Increase max flash segments from 5 to 6.
6746         * config/avr/t-multilib: Regenerate.
6747         * config/avr/avr-tables.opt: Regenerate.
6748         * doc/avr-mmcu.texi: Regenerate.
6750 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
6752         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
6753         (avr_device_to_arch): Rename to avr_device_to_ld.
6754         (avr_device_to_as): New prototype.
6755         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
6756         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
6757         * config/avr/driver-avr.c (avr_device_to_as): New.
6758         (avr_device_to_arch): Rename to avr_device_to_ld.
6760 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
6762         PR middle-end/56461
6763         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
6764         method on dr_chain and result_chain.
6766         PR middle-end/56461
6767         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
6768         pointer_set_destroy on not_executed_last_iteration.
6770         PR middle-end/56461
6771         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
6773         PR middle-end/56461
6774         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
6775         FOR_EACH_DEFINED_FUNCTION when freeing state.
6777         PR middle-end/56461
6778         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
6779         pool_free.
6780         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
6781         overwriting it.
6783         PR middle-end/56461
6784         * ipa-cp.c (decide_whether_version_node): Call vec_free on
6785         known_aggs[i].items and release known_aggs vector.
6787         PR middle-end/56461
6788         * ipa-reference.c (propagate): Free node_info even for alias nodes.
6790 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6792         * config/microblaze/microblaze.c (microblaze_emit_compare):
6793         Use xor for EQ/NE comparisions.
6794         * config/microblaze/microblaze.md (cstoresf4): Add constraints
6795         (cbranchsf4): Adjust operator to comparison_operator.
6797 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
6799         PR middle-end/56461
6800         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
6801         vector.
6802         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
6803         vec_safe_push, always update *slot.
6804         (redirect_edge_var_map_clear): Use vec_free.
6805         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
6806         (free_var_map_entry): Use vec_free.
6807         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
6808         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
6810 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
6812         PR middle-end/45472
6813         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
6814         when the may_trap_p bit of the exprs being merged differs.
6815         Reorder tests for speculativeness in the logical and operator.
6817 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
6819         * incpath.c (add_standard_paths): Use reconcat instead of concat
6820         where appropriate and avoid leaking memory.
6822         * opts.h: Include obstack.h.
6823         (opts_concat): New prototype.
6824         (opts_obstack): New declaration.
6825         * opts.c (opts_concat): New function.
6826         (opts_obstack): New variable.
6827         (init_options_struct): Call gcc_init_obstack on opts_obstack.
6828         (finish_options): Use opts_concat instead of concat
6829         and XOBNEWVEC instead of XNEWVEC.
6830         * opts-common.c (generate_canonical_option, decode_cmdline_option,
6831         generate_option): Likewise.
6832         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
6833         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
6835         PR target/56455
6836         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
6837         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
6839 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
6841         PR middle-end/56461
6842         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
6844 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
6846         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
6847         (arm_block_move_unaligned_straight): Likewise.
6848         (arm_adjust_block_mem): Likewise.
6850 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
6852         PR target/48901
6853         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
6854         temp, cond and label.
6855         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
6857         PR target/52500
6858         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
6859         * config/c6x/c6x.h (dbx_register_map): Update declaration.
6861         PR target/52501
6862         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
6863         of prologue/epilogue functions.
6865         PR target/52550
6866         * config/tilegx/tilegx.c (tilegx_expand_prologue):
6867         Remove unused variable cfa_offset.
6868         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
6870         PR target/54639
6871         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
6872         type promotion to unsigned.
6874         PR target/54640
6875         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
6876         for HOST_WIDE_INT of 32 bit / same size as int.
6877         (arm_block_move_unaligned_straight): Likewise.
6878         (arm_adjust_block_mem): Likewise.
6880         PR target/54662
6881         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
6882         ALL_CFLAGS.
6884 2013-02-26  Marek Polacek  <polacek@redhat.com>
6886         PR tree-optimization/56426
6887         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
6889 2013-02-26  Richard Biener  <rguenther@suse.de>
6891         PR target/56444
6892         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
6893         unused variable loops.
6895 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
6897         PR tree-optimization/56448
6898         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
6899         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
6900         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
6901         later operands of the references, or even first operand for
6902         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
6904         PR tree-optimization/56443
6905         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
6906         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
6907         to type_for_mode langhook.
6909 2013-02-25  Matt Turner  <mattst88@gmail.com>
6911         * doc/invoke.texi: Document r4700.
6913 2013-02-25  Richard Biener  <rguenther@suse.de>
6915         PR tree-optimization/56175
6916         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
6917         split out from ...
6918         (simplify_bitwise_binary): ... here.  Also guard the conversion
6919         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
6921 2013-02-25  Catherine Moore  <clm@codesourcery.com>
6923         Revert:
6924         2013-02-24  Catherine Moore  <clm@codesourcery.com>
6925             Maciej W. Rozycki  <macro@codesourcery.com>
6926             Tom de Vries  <tom@codesourcery.com>
6927             Nathan Sidwell  <nathan@codesourcery.com>
6928             Iain Sandoe  <iain@codesourcery.com>
6929             Nathan Froyd  <froydnj@codesourcery.com>
6930             Chao-ying Fu  <fu@mips.com>
6932         * doc/extend.texi: (micromips, nomicromips, nocompression):
6933         Document new function attributes.
6934         * doc/invoke.texi (minterlink-compressed, mmicromips,
6935         m14k, m14ke, m14kec): Document new options.
6936         (minterlink-mips16): Update documentation.
6937         * doc/md.texi (ZC, ZD): Document new constraints.
6938         * configure.ac (gcc_cv_as_micromips): Check if linker
6939         supports the .set micromips directive.
6940         * configure: Regenerate.
6941         * config.in: Regenerate.
6942         * config/mips/mips-tables.opt: Regenerate.
6943         * config/mips/micromips.md: New file.
6944         * constraints.md (ZC, AD): New constraints.
6945         * config/mips/predicates.md (movep_src_register): New predicate.
6946         (movep_src_operand): New predicate.
6947         (non_volatile_mem_operand): New predicate.
6948         * config/mips/mips.md (multimem): New type.
6949         (length): Differentiate between 17-bit and 18-bit branch offsets.
6950         (MOVEP1, MOVEP2): New mode iterator.
6951         (mov_<load>l): Use ZC constraint.
6952         (mov_<load>r): Likewise.
6953         (mov_<store>l): Likewise.
6954         (mov_<store>r): Likewise.
6955         (*branch_equality<mode>_inverted): Add microMIPS support.
6956         (*branch_equality<mode>): Likewise.
6957         (*jump_absolute): Likewise.
6958         (indirect_jump_<mode>): Likewise.
6959         (tablejump_<mode>): Likewise.
6960         (<optab>_internal): Likewise.
6961         (sibcall_internal): Likewise.
6962         (sibcall_value_internal): Likewise.
6963         (prefetch): Use constraint ZD.
6964         * config/mips/mips.opt (minterlink-compressed): New option.
6965         (minterlink-mips16): Now an alias for minterlink-compressed.
6966         (mmicromips): New option.
6967         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6968         (compare_and_swap_12): Likewise.
6969         (sync_add<mode>): Likewise.
6970         (sync_<optab>_12): Likewise.
6971         (sync_old_<optab>_12): Likewise.
6972         (sync_new_<optab>_12): Likewise.
6973         (sync_nand_12): Likewise.
6974         (sync_old_nand_12): Likewise.
6975         (sync_new_nand_12): Likewise.
6976         (sync_sub<mode>): Likewise.
6977         (sync_old_add<mode>): Likewise.
6978         (sync_old_sub<mode>): Likewise.
6979         (sync_new_add<mode>): Likewise.
6980         (sync_new_sub<mode>): Likewise.
6981         (sync_<optab><mode>): Likewise.
6982         (sync_old_<optab><mode>): Likewise.
6983         (sync_new_<optab><mode>): Likewise.
6984         (sync_nand<mode>): Likewise.
6985         (sync_old_nand<mode>): Likewise.
6986         (sync_new_nand<mode>): Likewise.
6987         (sync_lock_test_and_set<mode>): Likewise.
6988         (test_and_set_12): Likewise.
6989         (atomic_compare_and_swap<mode>): Likewise.
6990         (atomic_exchange<mode>_llsc): Likewise.
6991         (atomic_fetch_add<mode>_llsc): Likewise.
6992         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6993         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6994         (umips_save_restore_pattern_p): Likewise.
6995         (umips_load_store_pair_p): Likewise.
6996         (umips_output_load_store_pair): Likewise.
6997         (umips_movep_target_p): Likewise.
6998         (umips_12bit_offset_address_p): Likewise.
6999         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7000         (mips_base_mips16): Rename this...
7001         (mips_base_compression_flags): ...to this. Update all uses.
7002         (mips_attribute_table): Add micromips, nomicromips and nocompression.
7003         (mips_mips16_decl_p): Delete.
7004         (mips_nomips16_decl_p): Delete.
7005         (mips_get_compress_on_flags): New function.
7006         (mips_get_compress_off_flags): New function.
7007         (mips_get_compress_mode): New function.
7008         (mips_get_compress_on_name): New function.
7009         (mips_get_compress_off_name): New function.
7010         (mips_insert_attributes): Support multiple compression types.
7011         (mips_merge_decl_attributes): Likewise.
7012         (umips_12bit_offset_address_p): New function.
7013         (mips_start_function_definition): Emit .set micromips directive.
7014         (mips_call_may_need_jalx_p): New function.
7015         (mips_function_ok_for_sibcall): Add microMIPS support.
7016         (mips_print_operand_punctuation): Support short delay slots and
7017         compact jumps.
7018         (umips_swm_mask, umips_swm_encoding): New.
7019         (umips_build_save_restore): New function.
7020         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7021         (was_mips16_p): Remove.
7022         (old_compression_mode): New.
7023         (mips_set_compression_mode): New function.
7024         (mips_set_current_function): Add microMIPS support.
7025         (mips_option_override): Likewise.
7026         (umips_save_restore_pattern_p): New function.
7027         (umips_output_save_restore): New function.
7028         (umips_load_store_pair_p_1): New function.
7029         (umips_load_store_pair_p): New function.
7030         (umips_output_load_store_pair_1): New function.
7031         (umips_output_load_store_pair): New function.
7032         (umips_movep_target_p) New function.
7033         (mips_prepare_pch_save): Add microMIPS support.
7034         * config/mips/mips.h (TARGET_COMPRESSION): New.
7035         (TARGET_CPU_CPP_BUILTINS): Update macro
7036         to use new compression flags and to support microMIPS.
7037         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7038         (MIPS_ARCH_FLOAT_SPEC): Likewise.
7039         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7040         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7041         (ASM_SPEC): Support mmicromips and mno-micromips.
7042         (M16STORE_REG_P): New macro.
7043         (MIPS_CALL): Support TARGET_MICROMIPS.
7044         (MICROMIPS_J): New macro.
7045         (mips_base_mips16): Rename this...
7046         (mips_base_compression_flags): ...to this.
7047         (UMIPS_12BIT_OFFSET_P): New macro.
7048         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7049         (MULTILIB_DIRNAMES): Likewise.
7051 2013-02-25  Tom de Vries  <tom@codesourcery.com>
7053         PR rtl-optimization/56131
7054         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
7055         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
7056         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
7058 2013-02-25  Tobias Burnus  <burnus@net-b.de>
7060         * doc/invoke.texi (-fsanitize=): Move from optimization
7061         to debugging options.
7063 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
7065         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
7067 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
7068             Alexander Monakov  <amonakov@ispras.ru>
7070         PR middle-end/56077
7071         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
7072         flush pending lists also on non-jumps.  Adjust comment.
7074 2013-02-24  Catherine Moore  <clm@codesourcery.com>
7075             Maciej W. Rozycki  <macro@codesourcery.com>
7076             Tom de Vries  <tom@codesourcery.com>
7077             Nathan Sidwell  <nathan@codesourcery.com>
7078             Iain Sandoe  <iain@codesourcery.com>
7079             Nathan Froyd  <froydnj@codesourcery.com>
7080             Chao-ying Fu  <fu@mips.com>
7082         * doc/extend.texi: (micromips, nomicromips, nocompression):
7083         Document new function attributes.
7084         * doc/invoke.texi (minterlink-compressed, mmicromips,
7085         m14k, m14ke, m14kec): Document new options.
7086         (minterlink-mips16): Update documentation.
7087         * doc/md.texi (ZC, ZD): Document new constraints.
7088         * configure.ac (gcc_cv_as_micromips): Check if linker
7089         supports the .set micromips directive.
7090         * configure: Regenerate.
7091         * config.in: Regenerate.
7092         * config/mips/mips-tables.opt: Regenerate.
7093         * config/mips/micromips.md: New file.
7094         * constraints.md (ZC, AD): New constraints.
7095         * config/mips/predicates.md (movep_src_register): New predicate.
7096         (movep_src_operand): New predicate.
7097         (non_volatile_mem_operand): New predicate.
7098         * config/mips/mips.md (multimem): New type.
7099         (length): Differentiate between 17-bit and 18-bit branch offsets.
7100         (MOVEP1, MOVEP2): New mode iterator.
7101         (mov_<load>l): Use ZC constraint.
7102         (mov_<load>r): Likewise.
7103         (mov_<store>l): Likewise.
7104         (mov_<store>r): Likewise.
7105         (*branch_equality<mode>_inverted): Add microMIPS support.
7106         (*branch_equality<mode>): Likewise.
7107         (*jump_absolute): Likewise.
7108         (indirect_jump_<mode>): Likewise.
7109         (tablejump_<mode>): Likewise.
7110         (<optab>_internal): Likewise.
7111         (sibcall_internal): Likewise.
7112         (sibcall_value_internal): Likewise.
7113         (prefetch): Use constraint ZD.
7114         * config/mips/mips.opt (minterlink-compressed): New option.
7115         (minterlink-mips16): Now an alias for minterlink-compressed.
7116         (mmicromips): New option.
7117         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7118         (compare_and_swap_12): Likewise.
7119         (sync_add<mode>): Likewise.
7120         (sync_<optab>_12): Likewise.
7121         (sync_old_<optab>_12): Likewise.
7122         (sync_new_<optab>_12): Likewise.
7123         (sync_nand_12): Likewise.
7124         (sync_old_nand_12): Likewise.
7125         (sync_new_nand_12): Likewise.
7126         (sync_sub<mode>): Likewise.
7127         (sync_old_add<mode>): Likewise.
7128         (sync_old_sub<mode>): Likewise.
7129         (sync_new_add<mode>): Likewise.
7130         (sync_new_sub<mode>): Likewise.
7131         (sync_<optab><mode>): Likewise.
7132         (sync_old_<optab><mode>): Likewise.
7133         (sync_new_<optab><mode>): Likewise.
7134         (sync_nand<mode>): Likewise.
7135         (sync_old_nand<mode>): Likewise.
7136         (sync_new_nand<mode>): Likewise.
7137         (sync_lock_test_and_set<mode>): Likewise.
7138         (test_and_set_12): Likewise.
7139         (atomic_compare_and_swap<mode>): Likewise.
7140         (atomic_exchange<mode>_llsc): Likewise.
7141         (atomic_fetch_add<mode>_llsc): Likewise.
7142         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7143         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7144         (umips_save_restore_pattern_p): Likewise.
7145         (umips_load_store_pair_p): Likewise.
7146         (umips_output_load_store_pair): Likewise.
7147         (umips_movep_target_p): Likewise.
7148         (umips_12bit_offset_address_p): Likewise.
7149         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7150         (mips_base_mips16): Rename this...
7151         (mips_base_compression_flags): ...to this. Update all uses.
7152         (mips_attribute_table): Add micromips, nomicromips and nocompression.
7153         (mips_mips16_decl_p): Delete.
7154         (mips_nomips16_decl_p): Delete.
7155         (mips_get_compress_on_flags): New function.
7156         (mips_get_compress_off_flags): New function.
7157         (mips_get_compress_mode): New function.
7158         (mips_get_compress_on_name): New function.
7159         (mips_get_compress_off_name): New function.
7160         (mips_insert_attributes): Support multiple compression types.
7161         (mips_merge_decl_attributes): Likewise.
7162         (umips_12bit_offset_address_p): New function.
7163         (mips_start_function_definition): Emit .set micromips directive.
7164         (mips_call_may_need_jalx_p): New function.
7165         (mips_function_ok_for_sibcall): Add microMIPS support.
7166         (mips_print_operand_punctuation): Support short delay slots and
7167         compact jumps.
7168         (umips_swm_mask, umips_swm_encoding): New.
7169         (umips_build_save_restore): New function.
7170         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7171         (was_mips16_p): Remove.
7172         (old_compression_mode): New.
7173         (mips_set_compression_mode): New function.
7174         (mips_set_current_function): Add microMIPS support.
7175         (mips_option_override): Likewise.
7176         (umips_save_restore_pattern_p): New function.
7177         (umips_output_save_restore): New function.
7178         (umips_load_store_pair_p_1): New function.
7179         (umips_load_store_pair_p): New function.
7180         (umips_output_load_store_pair_1): New function.
7181         (umips_output_load_store_pair): New function.
7182         (umips_movep_target_p) New function.
7183         (mips_prepare_pch_save): Add microMIPS support.
7184         * config/mips/mips.h (TARGET_COMPRESSION): New.
7185         (TARGET_CPU_CPP_BUILTINS): Update macro
7186         to use new compression flags and to support microMIPS.
7187         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7188         (MIPS_ARCH_FLOAT_SPEC): Likewise.
7189         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7190         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7191         (ASM_SPEC): Support mmicromips and mno-micromips.
7192         (M16STORE_REG_P): New macro.
7193         (MIPS_CALL): Support TARGET_MICROMIPS.
7194         (MICROMIPS_J): New macro.
7195         (mips_base_mips16): Rename this...
7196         (mips_base_compression_flags): ...to this.
7197         (UMIPS_12BIT_OFFSET_P): New macro.
7198         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7199         (MULTILIB_DIRNAMES): Likewise.
7201 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
7203         PR target/52555
7204         * target-globals.c (save_target_globals): For init_reg_sets and
7205         target_reinit remporarily set this_fn_optabs to this_target_optabs.
7207 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
7209         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
7210         * config/aarch64/t-aarch64
7211         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
7213 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
7215         PR inline-asm/56148
7216         * lra-constraints.c (process_alt_operands): Reload operand
7217         conflicting with earlier clobber only if no more other conflicting
7218         operands.
7220 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
7222         PR sanitizer/56393
7223         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
7224         if not linking a shared library.
7226 2013-02-22  Seth LaForge  <sethml@google.com>
7228         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
7230 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
7232         * config/arm/arm.md (split for extendsidi): Update condition.
7233         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
7234         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
7235         (qhs_zextenddi_cstr): Likewise.
7237 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
7239         PR middle-end/56420
7240         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
7241         avoid signed wrapping.
7242         (expand_mult): Handle properly multiplication by
7243         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
7244         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
7245         in the compiler if coeff is HOST_WIDE_INT_MIN.
7246         (expand_divmod): Don't make ext_op1 static, change it's type to
7247         uhwi.  Avoid undefined behavior in -INTVAL (op1).
7249         PR rtl-optimization/50339
7250         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
7251         field.
7252         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
7253         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
7254         into splitting_ashiftrt field.
7255         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
7256         ASHIFTRT.
7257         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
7258         choices.
7260 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
7262         PR middle-end/56108
7263         * trans-mem.c (execute_tm_mark): Do not expand transactions that
7264         are sure to go irrevocable.
7266 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
7268         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
7269         scalars are valid operands.
7271 2013-02-21  Martin Jambor  <mjambor@suse.cz>
7273         PR tree-optimization/56310
7274         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
7275         only matching indices and non-negative final offsets.
7276         (intersect_aggregates_with_edge): Pass src_idx to
7277         agg_replacements_to_vector.  Pass src_idx insstead of index to
7278         intersect_with_agg_replacements.
7280 2013-02-21  Martin Jambor  <mjambor@suse.cz>
7282         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
7283         instead of hard-wired defaults.
7285 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
7287         * doc/invoke.texi (MIPS Options): Update documentation of the
7288         floating-point multiply-accumulate instruction restrictions.
7290 2013-02-21  Kostya Serebryany  <kcc@google.com>
7292         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
7293         asan_shadow_offset on x86_64 linux.
7295 2013-02-21  Richard Biener  <rguenther@suse.de>
7297         PR tree-optimization/56415
7298         Revert
7299         2013-02-11  Richard Biener  <rguenther@suse.de>
7301         PR tree-optimization/56273
7302         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7303         first VRP run.
7305 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
7307         PR bootstrap/56258
7308         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
7309         instead of @itemx.
7311         PR inline-asm/56405
7312         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
7313         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
7315 2013-02-20  Jan Hubicka  <jh@suse.cz>
7317         PR tree-optimization/56265
7318         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
7319         when target is referenced for first time.
7321 2013-02-20  Richard Biener  <rguenther@suse.de>
7323         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
7324         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
7325         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7326         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
7327         not return anything.
7328         (rename_ssa_copies): Do not remove unused locals.
7329         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
7330         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
7331         * passes.c (execute_function_todo): Do not schedule unused locals
7332         removal if cleanup_tree_cfg did something.
7333         * tree-ssa-live.c (remove_unused_locals): Dump statistics
7334         about the number of removed locals.
7336 2013-02-20  Richard Biener  <rguenther@suse.de>
7338         PR tree-optimization/56398
7339         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
7341 2013-02-20  Martin Jambor  <mjambor@suse.cz>
7343         PR tree-optimization/55334
7344         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
7345         restricted pointers to arrays.
7347 2013-02-20  Richard Biener  <rguenther@suse.de>
7348             Jakub Jelinek  <jakub@redhat.com>
7350         PR tree-optimization/56396
7351         * tree-ssa-ccp.c (n_const_val): New static variable.
7352         (get_value): Return NULL for SSA names we don't have a lattice
7353         entry for.
7354         (ccp_initialize): Initialize n_const_val.
7355         * tree-ssa-copy.c (n_copy_of): New static variable.
7356         (init_copy_prop): Initialize n_copy_of.
7357         (get_value): Return NULL_TREE for SSA names we don't have a
7358         lattice entry for.
7360 2013-02-20  Martin Jambor  <mjambor@suse.cz>
7362         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
7364 2013-02-20  Richard Biener  <rguenther@suse.de>
7366         * genpreds.c (write_lookup_constraint): Do not compare first
7367         letter of the constraint again.
7369 2013-02-20  Richard Biener  <rguenther@suse.de>
7371         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
7372         and ceil_log2.
7373         (get_use_iv_cost): Terminate hashtable walk when coming across
7374         an empty entry.
7376 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
7378         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
7379         reassociation for avx2 targets.
7381 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7383         * config/microblaze/microblaze.c: microblaze_has_clz = 0
7384         Add version check for v8.10.a to enable microblaze_has_clz
7385         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
7386         version and TARGET_PATTERN_COMPARE check
7387         * config/microblaze/microblaze.md: New clzsi2 instruction
7389 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7391         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
7392         function before branching.
7394 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
7396         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
7397         DUMP_INSN_RTX_UID.
7398         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
7400 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
7402         PR middle-end/55889
7403         * sel-sched.c: Include ira.h.
7404         (implicit_clobber_conflict_p): New function.
7405         (moveup_expr): Use it.
7406         * Makefile.in (sel-sched.o): Depend on ira.h.
7408 2013-02-19  Richard Biener  <rguenther@suse.de>
7410         PR tree-optimization/56384
7411         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
7412         (vn_hash_type): Split out from ...
7413         (vn_hash_constant_with_type): ... here.
7414         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
7415         (vn_phi_eq): Compare types from vn_phi_s structure.
7416         (vn_phi_lookup): Populate vn_phi_s type.
7417         (vn_phi_insert): Likewise.
7419 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
7421         PR tree-optimization/56350
7422         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
7423         if haven't found reduction or nested cycle operand, rather than
7424         asserting we must find it.
7426         PR tree-optimization/56381
7427         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
7428         to fold_build3.
7430 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
7431             Jakub Jelinek  <jakub@redhat.com>
7433         PR target/52555
7434         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
7435         (swap_optab_enable): Same.
7436         (init_all_optabs): Use argument instead of global.
7437         * tree.h (struct tree_optimization_option): New field target_optabs.
7438         * expr.h (init_all_optabs): Add argument to prototype.
7439         (TREE_OPTIMIZATION_OPTABS): New.
7440         (save_optabs_if_changed): Protoize.
7441         * optabs.h: Declare this_fn_optabs.
7442         * optabs.c (save_optabs_if_changed): New.
7443         Declare this_fn_optabs.
7444         (init_optabs): Add argument to init_all_optabs() call.
7445         * function.c (invoke_set_current_function_hook): Handle per
7446         function optabs.
7447         * function.h (struct function): New field optabs.
7448         * config/mips/mips.c (mips_set_mips16_mode): Handle when
7449         optimization_current_node has changed.
7450         * target-globals.h (save_target_globals_default_opts): Protoize.
7451         * target-globals.c (save_target_globals_default_opts): New.
7453 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7455         PR target/56347
7456         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
7457         registers %fr12 and %fr12R as call used.
7459         PR target/56214
7460         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
7461         and HImode, require all displacements to be an integer multiple of
7462         their mode size.
7463         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
7464         only allow QImode and HImode when reload is in progress and strict is
7465         true.  Likewise for symbolic addresses.  Use base14_operand to check
7466         displacements in REG+BASE addresses.
7468 2013-02-18  Richard Biener  <rguenther@suse.de>
7470         PR tree-optimization/56366
7471         * tree-vect-loop.c (get_initial_def_for_induction): Properly
7472         handle sign-conversion of outer-loop initial induction value.
7474 2013-02-18  Richard Biener  <rguenther@suse.de>
7476         PR middle-end/56349
7477         * cfghooks.c (merge_blocks): If we merge a latch into another
7478         block adjust references to it.
7479         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
7480         (verify_loop_structure): Verify that a recorded latch is in fact
7481         a latch.
7483 2013-02-18  Richard Biener  <rguenther@suse.de>
7485         PR tree-optimization/56321
7486         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
7487         order SSA name release and virtual operand unlinking.
7489 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7491         * config/microblaze/microblaze.md (save_stack_block): Define.
7492         (restore_stack_block): Likewise.
7494 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7496         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
7497         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
7498         * config/microblaze/microblaze.c (microblaze_option_override):
7499         Bail out early for PIC modes when target does not support PIC.
7501 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7503         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
7504         Replace with a microblaze version.
7505         (microblaze_trampoline_init): Adapt for microblaze.
7506         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
7507         microblaze.
7509 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
7510             Dodji Seketeli  <dodji@redhat.com>
7512         PR asan/56330
7513         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
7514         (instrument_mem_region_access): Do not forget to always put
7515         instrumentation of the of 'base' and 'base + len' in a "if (len !=
7516         0) statement, even for cases where either 'base' or 'base + len'
7517         are not instrumented -- because they have been previously
7518         instrumented.  Simplify the logic by putting all the statements
7519         instrument 'base + len' inside a sequence, and then insert that
7520         sequence right before the current insertion point.  Then, to
7521         instrument 'base + len', just get an iterator on that statement.
7522         And do not forget to update the pointer to iterator the function
7523         received as argument.
7525 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
7527         PR rtl-optimization/56348
7528         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
7530 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
7532         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
7533         (clean_graph_dump_file): Pass base to start_graph_dump.
7535 2013-02-14  Richard Henderson  <rth@redhat.com>
7537         PR target/55941
7538         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
7540 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
7542         * collect2-aix.h: Define F_LOADONLY.
7544 2013-02-14  Richard Biener  <rguenther@suse.de>
7546         PR lto/50494
7547         * varasm.c (output_constant_def_1): Get the decl representing
7548         the constant as argument.
7549         (output_constant_def): Wrap output_constant_def_1.
7550         (make_decl_rtl): Use output_constant_def_1 with the decl
7551         representing the constant.
7552         (build_constant_desc): Optionally re-use a decl already
7553         representing the constant.
7554         (tree_output_constant_def): Adjust.
7556 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
7558         Fix an asan crash
7559         * asan.c (instrument_builtin_call):  Really put the length of the
7560         second source argument into src1_len.
7562 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
7564         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
7565         argument.  If it is false, don't create edge from then_bb to
7566         fallthru_bb.
7567         (insert_if_then_before_iter): Pass true to it.
7568         (build_check_stmt): Pass false to it.
7569         (transform_statements): Flush hash table only on extended basic
7570         block boundaries, rather than at the beginning of every bb.
7571         Don't flush hash table on nonfreeing_call_p calls.
7572         * tree-flow.h (nonfreeing_call_p): New prototype.
7573         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
7575 2013-02-13  David S. Miller  <davem@davemloft.net>
7577         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
7579 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
7581         PR target/56184
7582         * ira.c (max_regno_before_ira): Move from ...
7583         (ira): ... here.
7584         (fix_reg_equiv_init): Use max_regno_before_ira instead of
7585         vec_safe_length.
7587 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
7589         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
7591 2013-02-13  Richard Biener  <rguenther@suse.de>
7593         PR lto/56295
7594         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
7595         globals in MEM_REFs.
7597 2013-02-13  Richard Biener  <rguenther@suse.de>
7599         * loop-init.c (loop_optimizer_init): Clear loop state when
7600         re-initializing preserved loops.
7601         * loop-unswitch.c (unswitch_single_loop): Return whether
7602         we unswitched the loop.  Do not verify loop state here.
7603         (unswitch_loops): When we unswitched a loop discover new loops.
7605 2013-02-13  Kostya Serebryany  <kcc@google.com>
7607         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
7608         on x86_64 linux.
7609         * sanitizer.def: Rename __asan_init to __asan_init_v1.
7611 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
7613         Avoid instrumenting duplicated memory access in the same basic block
7614         * Makefile.in (asan.o): Add new dependency on hash-table.h
7615         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
7616         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
7617         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
7618         (free_mem_ref_resources, has_mem_ref_been_instrumented)
7619         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
7620         (get_mem_ref_of_assignment): New functions.
7621         (get_mem_refs_of_builtin_call): Extract from
7622         instrument_builtin_call and tweak a little bit to make it fit with
7623         the new signature.
7624         (instrument_builtin_call): Use the new
7625         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
7626         of is_gimple_builtin_call.
7627         (instrument_derefs, instrument_mem_region_access): Insert the
7628         instrumented memory reference into the hash table.
7629         (maybe_instrument_assignment): Renamed instrument_assignment into
7630         this, and change it to advance the iterator when instrumentation
7631         actually happened and return true in that case.  This makes it
7632         homogeneous with maybe_instrument_assignment, and thus give a
7633         chance to callers to be more 'regular'.
7634         (transform_statements): Clear the memory reference hash table
7635         whenever we enter a new BB, when we cross a function call, or when
7636         we are done transforming statements.  Use
7637         maybe_instrument_assignment instead of instrumentation.  No more
7638         need to special case maybe_instrument_assignment and advance the
7639         iterator after calling it; it's now handled just like
7640         maybe_instrument_call.  Update comment.
7642 2013-02-13  Richard Biener  <rguenther@suse.de>
7644         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7645         Fix loop discovery code.
7647 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
7649         PR inline-asm/56148
7650         * lra-constraints.c (process_alt_operands): Match early clobber
7651         operand with itself.  Check conflicts with earlyclobber only if
7652         the operand is not reloaded.  Prefer to reload conflicting operand
7653         if earlyclobber and matching operands are the same.
7655 2013-02-12  Richard Biener  <rguenther@suse.de>
7657         PR lto/56297
7658         * lto-streamer-out.c (write_symbol): Do not output symbols
7659         for hard register variables.
7661 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
7663         PR target/54222
7664         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
7665         (umulsidi3_insn, mulsidi3_insn): New insns.
7667 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
7669         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
7670         (struct tune_params): Add vec_costs field.
7671         * config/arm/arm.c (arm_builtin_vectorization_cost)
7672         (arm_add_stmt_cost): New functions.
7673         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
7674         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
7675         (arm_default_vec_cost): New struct of type cpu_vec_costs.
7676         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7677         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
7678         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
7679         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
7681 2013-02-12  Richard Biener  <rguenther@suse.de>
7683         PR lto/56295
7684         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
7685         decls again if possible.
7687 2013-02-12  Richard Biener  <rguenther@suse.de>
7689         PR middle-end/56288
7690         * tree-ssa.c (verify_ssa_name): Fix check, move
7691         SSA_NAME_IN_FREE_LIST check up.
7693 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
7694             Steven Bosscher   <steven@gcc.gnu.org>
7696         PR rtl-optimization/56151
7697         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
7698         equal to op0 or op1, and last_insn pattern is CODE operation
7699         with MEM dest and one of the operands matches that MEM.
7701 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
7703         * doc/extend.texi: Document Function Multiversioning and "default"
7704         parameter string to target attribute.
7705         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
7706         target attribute parameter is "default".
7707         (ix86_compare_version_priority): Remove checks for target attribute.
7708         (ix86_mangle_function_version_assembler_name): Change error to sorry.
7709         Remove check for target attribute equal to NULL. Add assert.
7710         (ix86_generate_version_dispatcher_body): Change error to sorry.
7712 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
7713             Jack Howarth  <howarth@bromo.med.uc.edu>
7714             Patrick Marlier  <patrick.marlier@gmail.com>
7716         PR libitm/55693
7717         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
7718         define ENDFILE_SPEC as TM_DESTRUCTOR.
7719         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
7721 2013-02-11  Alexander Potapenko  <glider@google.com>
7722             Jack Howarth  <howarth@bromo.med.uc.edu>
7723             Jakub Jelinek  <jakub@redhat.com>
7725         PR sanitizer/55617
7726         * config/darwin.c (cdtor_record): Rename ctor_record.
7727         (sort_cdtor_records): Rename sort_ctor_records.
7728         (finalize_dtors): New routine to sort destructors by
7729         priority before use in assemble_integer.
7730         (machopic_asm_out_destructor): Use finalize_dtors if needed.
7732 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
7734         PR rtl-optimization/56275
7735         * simplify-rtx.c (avoid_constant_pool_reference): Check that
7736         offset is non-negative and less than cmode size before
7737         calling simplify_subreg.
7739 2013-02-11  Richard Biener  <rguenther@suse.de>
7741         PR tree-optimization/56264
7742         * cfgloop.h (fix_loop_structure): Adjust prototype.
7743         * loop-init.c (fix_loop_structure): Return the number of
7744         newly discovered loops.
7745         * tree-cfgcleanup.c (repair_loop_structures): When new loops
7746         are discovered, do a full loop-closed SSA rewrite.
7748 2013-02-11  Richard Biener  <rguenther@suse.de>
7750         PR tree-optimization/56273
7751         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7752         first VRP run.
7753         (check_array_ref): Fix missing newline in dumps.
7754         (search_for_addr_array): Likewise.
7756 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
7758         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
7760 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
7762         PR target/56256
7763         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
7765 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
7767         PR rtl-optimization/56246
7768         * lra-constraints.c (simplify_operand_subreg): Try to reuse
7769         reload pseudo.
7770         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
7771         constraints are satisfied.
7773 2013-02-08  Jeff Law  <law@redhat.com>
7775         PR debug/53948
7776         * emit-rtl.c (reg_is_parm_p): New function.
7777         * regs.h (reg_is_parm_p): New prototype.
7778         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
7779         callee-clobbered registers.
7781 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7783         PR target/56043
7784         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
7785         If there is no implicit builtin declaration, just return NULL.
7787 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
7789         * config/i386/sse.md (FMAMODEM): New mode iterator.
7790         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
7791         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
7793 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
7795         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
7796         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
7797         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
7799 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7801         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
7802         (microblaze*-*-elf): Likewise.
7803         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
7804         LINK_SPEC.
7805         * config/microblaze/microblaze-c.c: Add builtin defines for
7806         _LITTLE_ENDIAN and _BIG_ENDIAN.
7807         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
7808         add to TARGET_DEFAULT flags.
7809         Expand ASM_SPEC and LINK_SPEC.
7810         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
7811         * config/microblaze/microblaze.md: Update extendsidi2 and
7812         movdi_internal instructions to use low-order / high-order reg
7813         print_operands.
7814         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
7815         options and inversemask / mask of LITTLE_ENDIAN.
7816         * config/microblaze/t-microblaze: Expand multilib options to
7817         include mlittle-endian (le) and update exceptions patterns.
7819 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
7821         PR rtl-optimization/56195
7822         * lra-constraints.c (get_reload_reg): Don't reuse regs
7823         if they have smaller mode than requested, if they have
7824         wider mode than requested, try to return a SUBREG.
7826         PR tree-optimization/56250
7827         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
7828         if type is unsigned and code isn't MULT_EXPR.
7830 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
7832         PR tree-optimization/56064
7833         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
7834         bits according to mode.
7835         * fixed-value.h (fixed_from_double_int)
7836         (const_fixed_from_double_int): Adjust comments.
7838 2013-02-08  Richard Biener  <rguenther@suse.de>
7840         PR lto/56231
7841         * lto-streamer.h (struct data_in): Remove current_file, current_line
7842         and current_col members.
7843         * lto-streamer-out.c (lto_output_location): Stream changed bits
7844         en-block for efficiency.
7845         * lto-streamer-in.c (clear_line_info): Remove.
7846         (lto_input_location): Cache current file, line and column
7847         globally via local statics.  Read changed bits en-block.
7848         (input_function): Do not call clear_line_info.
7849         (lto_read_body): Likewise.
7850         (lto_input_toplevel_asms): Likewise.
7852 2013-02-08  Michael Matz  <matz@suse.de>
7854         PR tree-optimization/52448
7855         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
7856         (nt_call_phase): New static.
7857         (add_or_mark_expr): Only mark accesses with newer phase than any
7858         call seen.
7859         (nonfreeing_call_p): New.
7860         (nt_init_block): Update nt_call_phase, mark blocks as visited.
7861         (nt_fini_block): Keep blocks marked as visited.
7862         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
7864 2013-02-08  Richard Biener  <rguenther@suse.de>
7866         * ira.c (ira): Free broken dominator information.
7868 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
7870         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
7872 2013-02-08  Marek Polacek  <polacek@redhat.com>
7874         * cfgloop.c (verify_loop_structure): Add more checking of headers.
7876 2013-02-08  Richard Biener  <rguenther@suse.de>
7878         PR middle-end/56181
7879         * cfgloop.h (flow_loops_find): Adjust.
7880         (bb_loop_header_p): Declare.
7881         * cfgloop.c (bb_loop_header_p): New function split out from ...
7882         (flow_loops_find): ... here.  Adjust function signature,
7883         support incremental loop structure update.
7884         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
7885         * cfgloopmanip.c (fix_loop_structure): Move ...
7886         * loop-init.c (fix_loop_structure): ... here.
7887         (apply_loop_flags): Split out from ...
7888         (loop_optimizer_init): ... here.
7889         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
7890         in incremental mode, only remove dead loops here.
7892 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
7894         PR target/54222
7895         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
7896         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
7897         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
7898         (*round<mode>3.libgcc): New insns for fixed-modes.
7899         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
7900         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
7901         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
7902         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
7903         implementations.  Define to __builtin_avr_absFX,
7904         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
7905         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
7906         __builtin_avr_countlsFX, respectively.
7907         * config/avr/avr-c.c (target.h): Include it.
7908         (enum avr_builtin_id): New enum.
7909         (avr_resolve_overloaded_builtin): New static function.
7910         (avr_register_target_pragmas): Use it to set
7911         targetm.resolve_overloaded_builtin.
7912         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
7913         tree nodes used by DEF_BUILTIN.
7914         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
7915         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
7916         <AVR_BUILTIN_xxBITS>: Same.
7918 2013-02-08  Richard Biener  <rguenther@suse.de>
7920         * cfgloop.c (verify_loop_structure): Properly handle
7921         a loop exiting to another loop header.
7922         * ira-int.h (ira_loops): Remove.
7923         * ira.c (ira_loops): Remove.
7924         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
7925         (do_reload): Use loop_optimizer_finalize.
7926         * ira-build.c (create_loop_tree_nodes): Use get_loops and
7927         number_of_loops to access the loop tree.
7928         (more_one_region_p): Likewise.
7929         (finish_loop_tree_nodes): Likewise.
7930         (rebuild_regno_allocno_maps): Likewise.
7931         (mark_loops_for_removal): Likewise.
7932         (mark_all_loops_for_removal): Likewise.
7933         (remove_unnecessary_regions): Likewise.
7934         (ira_build): Likewise.
7935         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
7937 2013-02-08  Richard Biener  <rguenther@suse.de>
7939         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
7940         * ipa-pure-const.c (analyze_function): Avoid calling
7941         mark_irreducible_loops twice.
7942         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
7944 2013-02-07  David S. Miller  <davem@davemloft.net>
7946         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
7947         on 'reg'.
7948         * var-tracking.c (vt_add_function_parameter): Test the presence of
7949         HAVE_window_save properly and do not remap argument registers when
7950         we have a leaf function.
7952 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
7954         PR bootstrap/56227
7955         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
7956         instead of "ll".
7957         * config/i386/i386.c (ix86_print_operand): Ditto.
7959 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
7961         * lra-constraints.c (process_alt_operands): Fix recently added comment.
7963 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
7965         PR rtl-optimization/56225
7966         * lra-constraints.c (process_alt_operands): Check that reload hard
7967         reg can hold value for strict_low_part.
7969 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
7971         PR debug/56154
7972         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
7973         dwarf2out_end_function.
7974         (in_first_function_p, maybe_at_text_label_p,
7975         first_loclabel_num_not_at_text_label): New variables.
7976         (dwarf2out_var_location): In the first function find out
7977         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
7978         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
7979         functions.
7981 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
7983         PR rtl-optimization/56178
7984         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
7985         SUBREG of a register.  Tidy up related block of code.
7986         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
7987         note if the source is a register or a SUBREG of a register.
7989 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
7991         PR target/56228
7992         * config/rs6000/rs6000.md (ptrm): New mode attr.
7993         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
7994         call_value_indirect_aix<pttrsize>,
7995         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
7996         m in constraints.
7998 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8000         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8001         if -bnortl. Convert to strcmp and strncmp.
8003 2013-02-07  Alan Modra  <amodra@gmail.com>
8005         PR target/54009
8006         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8007         addresses won't wrap when offsetting.
8008         (rs6000_secondary_reload): Provide secondary reloads needed for
8009         wrapping LO_SUM addresses.
8011 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
8013         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8014         MACH, just __MACH__.
8016 2013-02-06  Richard Biener  <rguenther@suse.de>
8018         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8019         instead of calling fix_loop_structure.
8021 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
8023         PR middle-end/56217
8024         * omp-low.c (use_pointer_for_field): Return false if
8025         lower_send_shared_vars doesn't generate any copy-out code.
8027 2013-02-06  Tom de Vries  <tom@codesourcery.com>
8029         PR rtl-optimization/56131
8030         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
8031         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
8032         of the label is NULL.  Add comment.
8034 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
8036         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
8038         PR sanitizer/55374
8039         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
8040         (STATIC_LIBTSAN_LIBS): Likewise.
8041         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
8042         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
8043         is defined, don't add anything else beyond that.
8044         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
8045         (LINK_COMMAND_SPEC): Use them.
8047         PR tree-optimization/56205
8048         * tree-stdarg.c (check_all_va_list_escapes): Return true if
8049         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
8050         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
8052 2013-02-05  Richard Biener  <rguenther@suse.de>
8054         PR tree-optimization/53342
8055         PR tree-optimization/53185
8056         * tree-vectorizer.h (vect_check_strided_load): Remove.
8057         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
8058         not disallow peeling for vectorized strided loads.
8059         (vect_check_strided_load): Make static and simplify.
8060         (vect_analyze_data_refs): Adjust.
8061         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
8062         correctly when vectorizing strided loads.
8064 2013-02-05  Richard Biener  <rguenther@suse.de>
8066         * doc/install.texi: Refer to ISL, not PPL.
8068 2013-02-05  Jan Hubicka  <jh@suse.cz>
8070         PR tree-optimization/55789
8071         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
8073 2013-02-05  Jan Hubicka  <jh@suse.cz>
8075         PR tree-optimization/55789
8076         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
8077         the dead call anyway.
8079 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
8081         PR sanitizer/55374
8082         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
8084 2013-02-04  Alexander Potapenko  <glider@google.com>
8085             Jack Howarth  <howarth@bromo.med.uc.edu>
8086             Jakub Jelinek  <jakub@redhat.com>
8088         PR sanitizer/55617
8089         * config/darwin.c (sort_ctor_records): Stabilized qsort
8090         on constructor priority by using original position.
8091         (finalize_ctors): New routine to sort constructors by
8092         priority before use in assemble_integer.
8093         (machopic_asm_out_constructor): Use finalize_ctors if needed.
8095 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
8097         PR libstdc++/54314
8098         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
8099         about visibility on artificial decls.
8100         * config/sol2.c (solaris_assemble_visibility): Likewise.
8102 2013-02-04  Kai Tietz  <ktietz@redhat.com>
8104         PR target/56186
8105         * config/i386/i386.c (function_value_ms_64): Add additional valtype
8106         argument and improve checking of return-argument types for 16-byte
8107         modes.
8108         (ix86_function_value_1): Add additional valtype argument on call
8109         of function_value_64.
8110         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
8111         handling infunction_value_64 function.
8113 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
8115         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
8117 2013-02-04  Richard Biener  <rguenther@suse.de>
8119         PR tree-optimization/56188
8120         * tree-ssa-structalias.c (label_visit): Consider case with
8121         initially non-empty points-to set.
8122         (perform_var_substitution): Dump node mapping and clean up.
8124 2013-02-04  Richard Guenther  <rguenther@suse.de>
8126         PR lto/56168
8127         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
8128         node prevail as last resort.
8129         (lto_symtab_merge_decls): Remove guard on LTRANS here.
8130         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
8132 2013-02-04  Richard Biener  <rguenther@suse.de>
8134         PR tree-optimization/56113
8135         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
8136         Merge into ...
8137         (equiv_class_lookup_or_add): ... this.
8138         (label_visit): Adjust and fix error in previous patch.
8139         (perform_var_substitution): Adjust.
8141 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
8143         * config/sh/divtab.c: Fix formatting and comments throughout the file.
8144         * config/sh/sh4-300.md: Likewise.
8145         * config/sh/sh4a.md: Likewise.
8146         * config/sh/constraints.md: Likewise.
8147         * config/sh/sh.md: Likewise.
8148         * config/sh/netbsd-elf.h: Likewise.
8149         * config/sh/predicates.md: Likewise.
8150         * config/sh/sh-protos.h: Likewise.
8151         * config/sh/ushmedia.h: Likewise.
8152         * config/sh/linux.h: Likewise.
8153         * config/sh/sh.c: Likewise.
8154         * config/sh/superh.h: Likewise.
8155         * config/sh/elf.h: Likewise.
8156         * config/sh/sh4.md: Likewise.
8157         * config/sh/sh.h: Likewise.
8159 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8161         * config/pa/constraints.md: Adjust unused letters.  Change "T"
8162         constraint to match_test floating_point_store_memory_operand().
8163         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
8164         (base14_operand): New.
8165         (floating_point_store_memory_operand): New.
8166         (integer_store_memory_operand): Revise to use base14_operand and
8167         reg_plus_base_memory_operand.
8168         (move_dest_operand): Allow symbolic_memory_operands.
8169         (symbolic_memory_operand): Check for LO_SOM.
8170         (symbolic_operand): Change default case to break.
8171         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
8172         CONST_DOUBLE values to be reloaded by putting them into memory when
8173         the destination is a floating point register.
8174         (movdf): Remove code to handle CONST_DOUBLE.
8175         (movsf): Likewise.
8176         (reload_indf_r1): New.
8177         (reload_insf_r1): New.
8178         Consistently use "Q" and "T" constraints with integer and floating
8179         point move instructions, respectively.
8180         (movdi): Remove FAIL.
8181         Change predicate for source operand unamed DImode move from
8182         general_operand to move_src_operand.
8183         (umulsidi3): Change predicate for destination operand to
8184         register_operand.
8185         Likewise for similar unamed patterns.
8186         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
8187         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
8188         (hppa_legitimize_address): Simplify mask calculation.
8189         (pa_emit_move_sequence): Revised handling of secondary reloads from
8190         REG+D addresses for floating point loads and stores.  Directly handle
8191         loading CONST0_RTX (mode) to a floating point register.
8192         (pa_secondary_reload): Handle reloading DF and SFmode constant values
8193         to floating point registers.  Don't restrict secondary reloads to
8194         floating point registers to integer modes.  Revise some comments and
8195         cleanup some code.
8196         (TARGET_LEGITIMATE_ADDRESS_P): Define.
8197         (pa_legitimate_address_p): New.
8198         (pa_legitimize_reload_address): New.
8199         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
8200         (STRICT_REG_OK_FOR_BASE_P): New.
8201         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
8202         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
8204 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
8205             Andrew Dixie  <andrewd@gentrack.com>
8207         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
8208         flag set.
8210 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
8212         * expmed.c (extract_bit_field_1): Pass the full width of the
8213         structure to get_best_reg_extraction_insn.
8215 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
8217         PR target/54601
8218         * configure.ac (use_cxa_atexit): Add AIX.
8219         * configure: Regenerate.
8221         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
8223 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
8225         PR debug/54793
8226         * final.c (need_profile_function): New variable.
8227         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
8228         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
8229         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
8230         notes, targetm.asm_out.function_prologue doesn't emit anything,
8231         HAVE_prologue and profiler should be emitted before prologue,
8232         set need_profile_function instead of emitting it.
8233         (final_scan_insn): If need_profile_function, emit
8234         profile_function on the first NOTE_INSN_BASIC_BLOCK or
8235         NOTE_INSN_FUNCTION_BEG note.
8237 2013-02-01  Richard Henderson  <rth@redhat.com>
8239         * config/rs6000/rs6000.md (smulditi3): New.
8240         (umulditi3): New.
8242         * config/alpha/alpha.md (umulditi3): New.
8244 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
8246         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
8247         (ASM_OUTPUT_ALIGNED_LOCAL): New.
8249 2013-02-01  Richard Biener  <rguenther@suse.de>
8251         PR tree-optimization/56113
8252         * tree-ssa-structalias.c (label_visit): Reduce work for
8253         single-predecessor nodes.
8255 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
8257         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
8258         range isn't testing for zero.
8260 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
8262         PR middle-end/56113
8263         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
8265 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
8266             Nick Clifton  <nickc@redhat.com>
8268         * config/v850/constraints.md (Q): Define as a memory constraint.
8269         * config/v850/predicates.md (label_ref_operand): New predicate.
8270         (e3v5_shift_operand): New predicate.
8271         (ior_operator): New predicate.
8272         * config/v850/t-v850: Add e3v5 multilib.
8273         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
8274         (v850_gen_movdi): Prototype.
8275         * config/v850/v850.c: Add support for e3v5 architecture.
8276         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
8277         TARGET_V850E_UP.
8278         (construct_save_jarl): Add e3v5 long JARL support.
8279         (v850_adjust_insn_length): New function.  Adjust length of call
8280         insns when using e3v5 instructions.
8281         (v850_gen_movdi): New function: Generate instructions to move a
8282         DImode value.
8283         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
8284         (CPP_SPEC): Define __v850e3v5__ as appropriate.
8285         (TARGET_USE_FPU): Enable for e3v5.
8286         (CONST_OK_FOR_W): New macro.
8287         (ADJUST_INSN_LENGTH): Define.
8288         * config/v850/v850.md (UNSPEC_LOOP): Define.
8289         (attr cpu): Add v850e3v5.
8290         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
8291         (movdi): New pattern.
8292         (movdi_internal): New pattern.
8293         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
8294         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
8295         (cstoresf4): Likewise.
8296         (cstoredf4): Likewise.
8297         (insv): New pattern.
8298         (rotlso3_a): New pattern.
8299         (rotlsi3_b): New pattern
8300         (rotlsi3_v850e3v5): New pattern.
8301         (doloop_begin): New pattern.
8302         (fix_loop_counter): New pattern.
8303         (doloop_end): New pattern.
8304         (branch_normal): Add e3v5 long branch support.
8305         (branch_invert): Likewise.
8306         (branch_z_normal): Likewise.
8307         (branch_z_invert): Likewise.
8308         (branch_nz_normal): Likewise.
8309         (branch_nz_invert): Likewise.
8310         (call_internal_short): Add e3v5 register-indirect JARL support.
8311         (call_internal_long): Likewise.
8312         (call_value_internal_short): Likewise.
8313         (call_value_internal_long): Likewise.
8314         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
8315         (mloop): New option.
8316         * config.gcc: Add support for configuring v840e3v5 target.
8317         * doc/invoke.texi: Document new v850 specific command line options.
8319 2013-01-31  Paul Koning  <ni1d@arrl.net>
8321         PR debug/55059
8322         PR debug/54508
8323         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
8324         children if parent is a class.
8325         (prune_unused_types_prune): Don't add DW_AT_declaration.
8327 2013-01-31  Richard Biener  <rguenther@suse.de>
8329         PR tree-optimization/56157
8330         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
8331         match up operand with SLP child.
8333 2013-01-31  Jason Merrill  <jason@redhat.com>
8335         PR debug/54410
8336         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
8337         parameters the first time.
8338         (gen_scheduled_generic_parms_dies): Check completeness here.
8340 2013-01-31  Richard Biener  <rguenther@suse.de>
8342         PR middle-end/53073
8343         * common.opt (faggressive-loop-optimizations): New flag,
8344         enabled by default.
8345         * doc/invoke.texi (faggressive-loop-optimizations): Document.
8346         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
8347         infer_loop_bounds_from_undefined by it.
8349 2013-01-31  Richard Biener  <rguenther@suse.de>
8351         PR tree-optimization/56150
8352         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
8353         visit virtual operands.
8354         (find_uses_to_rename_bb): Likewise.
8356 2013-01-31  Richard Biener  <rguenther@suse.de>
8358         PR tree-optimization/56150
8359         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
8360         mixed store non-store stmts.
8362 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
8364         PR sanitizer/55374
8365         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
8366         LIBASAN_EARLY_SPEC is defined.
8367         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
8368         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
8369         before %o.
8370         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
8372         PR c++/55742
8373         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
8374         invalid args instead of ICEing on it.
8375         (ix86_valid_target_attribute_tree): Return error_mark_node if
8376         ix86_valid_target_attribute_inner_p failed.
8377         (ix86_valid_target_attribute_p): Return false only if
8378         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
8379         target("default") attribute.
8380         (sorted_attr_string): Change argument from const char * to tree,
8381         merge in all target attribute arguments rather than just one.
8382         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
8383         instead of free.  Avoid using strcat.
8384         (ix86_mangle_function_version_assembler_name): Mangle
8385         target("default") as if no target attribute is present.  Adjust
8386         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
8387         instead of xmalloc and XDELETEVEC instead of free.
8388         (ix86_function_versions): Don't return true if one of the decls
8389         doesn't have target attribute.  If they don't and one of the decls
8390         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
8391         sorted_attr_string caller.  Use XDELETEVEC instead of free.
8392         (ix86_supports_function_versions): Remove.
8393         (make_name): Fix up formatting.
8394         (make_dispatcher_decl): Remove resolver_name and its initialization.
8395         Avoid leaking memory.
8396         (is_function_default_version): Return true if there is
8397         target("default") attribute rather than no target attribute at all.
8398         (make_resolver_func): Avoid leaking memory.
8399         (ix86_generate_version_dispatcher_body): Likewise.
8400         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
8401         * target.def (supports_function_versions): Remove.
8402         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
8403         * doc/tm.texi: Regenerated.
8405 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
8407         PR rtl-optimization/56144
8408         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
8409         for values with side effects.
8411 2013-01-30  Richard Biener  <rguenther@suse.de>
8413         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
8414         (sparseset_pop): Likewise.
8415         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
8416         to be able to use quick_push in the worker loop.
8418 2013-01-30  Marek Polacek  <polacek@redhat.com>
8420         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
8422 2013-01-30  Richard Biener  <rguenther@suse.de>
8424         PR lto/56147
8425         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
8427 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
8429         PR tree-optimization/56064
8430         * fixed-value.c (fixed_from_double_int): New function.
8431         * fixed-value.h (fixed_from_double_int): New prototype.
8432         (const_fixed_from_double_int): New static inline function.
8433         * fold-const.c (native_interpret_fixed): New static function.
8434         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
8435         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
8436         (native_encode_fixed): New static function.
8437         (native_encode_expr) <FIXED_CST>: Use it.
8438         (native_interpret_int): Move double_int worker code to...
8439         * double-int.c (double_int::from_buffer): ...this new static method.
8440         * double-int.h (double_int::from_buffer): Prototype it.
8442 2013-01-30  Richard Biener  <rguenther@suse.de>
8444         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
8445         New pointer-map and obstack.
8446         (init_alias_vars): Allocate pointer-map and obstack.
8447         (delete_points_to_sets): Free them.
8448         (find_what_var_points_to): Cache result.
8449         (find_what_p_points_to): Adjust for changed interface of
8450         find_what_var_points_to.
8451         (compute_points_to_sets): Likewise.
8452         (ipa_pta_execute): Likewise.
8454 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8456         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
8457         * configure: Regenerate.
8458         * config.in: Regenerate.
8459         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
8460         #nobits/#progbits if supported.
8462 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
8464         PR target/56121
8465         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
8466         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
8467         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
8469 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8471         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
8472         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
8474 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8476         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
8477         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
8479 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8481         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
8482         declaration.
8483         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
8484         * config/arm/cortex-a7.md: New bypasses using
8485         arm_mac_accumulator_is_result.
8487 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8489         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
8490         (cortex_a7_neon_mla): Likewise.
8491         (cortex_a7_fpfmad): New reservation.
8492         (cortex_a7_fpmacs): Use ffmas and update required units.
8493         (cortex_a7_fpmuld): Update required units and latency.
8494         (cortex_a7_fpmacd): Likewise.
8495         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
8496         (cortex_a7_neon). Likewise.
8497         (bypass) Update participating units.
8499 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8501         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
8502         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
8503         from fmac to ffma.
8504         * config/arm/vfp11.md (vfp_farith): Use ffmas.
8505         (vfp_fmul): Use ffmad.
8506         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
8507         (cortex_r4_fmacd): Use ffmad.
8508         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
8509         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
8510         (cortex_a9_fmacd): Use ffmad.
8511         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
8512         (cortex_a8_vfp_macd): Use ffmad.
8513         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
8514         (cortex_a5_fpmacd): Use ffmad.
8515         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
8516         (cortex_a15_vfp_macd): Use ffmad.
8517         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
8519 2013-01-29  Jason Merrill  <jason@redhat.com>
8521         PR libstdc++/54314
8522         * varasm.c (default_assemble_visibility): Don't warn about
8523         visibility on artificial decls.
8525 2013-01-29  Richard Biener  <rguenther@suse.de>
8527         PR tree-optimization/56113
8528         * tree-ssa-structalias.c (equiv_class_lookup): Also return
8529         the bitmap leader.
8530         (label_visit): Free duplicate bitmaps and record the leader instead.
8531         (perform_var_substitution): Adjust.
8533 2013-01-29  Richard Biener  <rguenther@suse.de>
8535         PR tree-optimization/55270
8536         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
8537         the CFG, schedule loops for fixup.
8539 2013-01-29  Nick Clifton  <nickc@redhat.com>
8541         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
8542         SP_REG.
8544 2013-01-28  Leif Ekblad  <leif@rdos.net>
8546         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
8547         * config/i386/i386.h (TARGET_RDOS): New macro.
8548         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
8549         * config/i386/i386.c (ix86_option_override_internal): For 64bit
8550         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
8551         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
8552         DEFAULT_LARGE_SECTION_THRESHOLD.
8553         * config/i386/i386.md (R14_REG, R15_REG): New constants.
8554         * config/i386/rdos.h: New file.
8555         * config/i386/rdos64.h: New file.
8557 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
8559         PR other/54814
8560         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
8561         TEST_HARD_REG_BIT.
8563 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
8565         PR rtl-optimization/56117
8566         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
8567         call cselib_lookup_from_insn on the MEM before calling
8568         add_insn_mem_dependence.
8570 2013-01-28  Richard Biener  <rguenther@suse.de>
8572         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
8573         to a stmt that didn't have one.
8574         (copy_phis_for_bb): Likewise for PHI arguments.
8575         (copy_debug_stmt): Likewise for debug stmts.
8577 2013-01-28  Richard Biener  <rguenther@suse.de>
8579         PR tree-optimization/56034
8580         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
8581         (partition_builtin_p): Adjust.
8582         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
8583         it is the last partition.
8584         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
8585         up the vertex for the definition.
8586         (classify_partition): Classify whether a partition is a
8587         PKIND_REDUCTION, thus has uses outside of the loop.
8588         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
8589         Merge all PKIND_REDUCTION partitions into the last partition.
8590         (tree_loop_distribution): Seed partitions from reductions as well.
8592 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
8594         PR tree-optimization/56125
8595         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
8596         pow(x,c) into sqrt(x) * powi(x, n/2) or
8597         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
8598         optimizing for size.
8599         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
8600         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
8601         integer.
8603         PR tree-optimization/56094
8604         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
8605         to UNKNOWN_LOCATION while gimplifying expr.
8607 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
8609         PR target/56114
8610         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
8611         operand 0 in movabs insn template for -masm=intel asm alternative.
8612         (*movabs<mode>_2): Ditto for operand 1.
8614 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
8616         PR target/54663
8617         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
8618         of microblaze-c.o
8620 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
8622         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
8623         tm_file.
8625 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8627         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
8628         Undef to avoid warning.
8630 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8632         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
8633         * configure: Regenerate.
8635 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
8637         PR tree-optimization/56098
8638         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
8639         for stmts with volatile ops.
8640         (cond_store_replacement): Don't optimize if assign has volatile ops.
8641         (cond_if_else_store_replacement_1): Don't optimize if either
8642         then_assign or else_assign have volatile ops.
8643         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
8644         volatile ops.
8646 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
8648         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
8650 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
8652         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
8653         missing ':' in asm example.
8655 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
8657         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
8658         entries into lane and laneq entries.
8659         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
8660         Remove AdvSIMD scalar modes.
8661         (aarch64_sq<r>dmulh_laneq<mode>): New.
8662         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
8663         modes.
8664         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
8665         builtin implementations to relfect changes in RTL in aarch64-simd.md.
8666         * config/aarch64/iterators.md (VCOND): New.
8667         (VCONQ): New.
8669 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
8671         PR target/54222
8672         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
8673         Add NULL LIBNAME argument to existing definitions.
8674         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
8675         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
8676         * config/avr/avr.c (DEF_BUILTIN): Same.
8677         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
8678         (avr_expand_builtin): Expand to a vanilla call if a libgcc
8679         implementation is available (DECL_ASSEMBLER_NAME is set).
8680         (avr_fold_absfx): New static function.
8681         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
8682         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
8683         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
8684         AVR_BUILTIN_ABSLLK.
8685         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
8686         (abshk, absk, abslk, absllk): Provide as static inline functions.
8688 2013-01-25  Marek Polacek  <polacek@redhat.com>
8690         PR tree-optimization/56035
8691         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
8693 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
8695         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
8696         (*movtf_internal_rex64): Add (!o,C) alternative
8697         (*movxf_internal_rex64): Ditto.
8698         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
8700 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
8702         * doc/invoke.texi: fix typo.
8703         * doc/objc.texi: fix typo.
8705 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
8707         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
8708         for the first two alternatives.
8710 2013-01-24  Diego Novillo  <dnovillo@google.com>
8712         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
8713         (ggc-zone.o): Remove.
8714         * configure.ac: Remove option --with-gc.
8715         * configure: Re-generate.
8716         * doc/install.texi: Remove documentation for --with-gc.
8717         * gengtype.c (write_enum_defn): Remove.  Update all users.
8718         (write_Types_process_field): Remove generation of gt_e_* argument.
8719         (output_type_enum): Remove.  Update all users.
8720         (write_enum_defn): Remove.  Update all users.
8721         (enum alloc_zone): Remove.  Update all users.
8722         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
8723         * ggc-common.c (ggc_splay_alloc): Remove first argument.
8724         Update all callers.
8725         (struct ptr_data): Remove field TYPE.  Update all users.
8726         (gt_pch_note_object): Remove argument TYPE.  Update all users.
8727         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
8728         Update all users.
8729         * ggc-none.c (ggc_alloc_typed_stat): Remove.
8730         (struct alloc_zone): Remove.
8731         (ggc_internal_alloc_zone_stat): Remove.
8732         (ggc_internal_cleared_alloc_zone_stat): Remove.
8733         * ggc-page.c (ggc_alloc_typed_stat): Remove.
8734         (ggc_pch_count_object): Remove last argument.  Update all users.
8735         (ggc_pch_alloc_object): Remove last argument.  Update all users.
8736         (struct alloc_zone): Remove.
8737         * ggc-zone.c: Remove.
8738         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
8739         (struct alloc_zone): Remove.
8740         (ggc_alloc_typed_stat): Remove.
8741         (ggc_alloc_typed): Remove.
8742         (ggc_splay_alloc): Remove first argument.
8743         (rtl_zone): Remove.  Update all users.
8744         (tree_zone): Remove.  Update all users.
8745         (tree_id_zone): Remove.  Update all users.
8746         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
8747         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
8748         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
8749         * tree-ssanames.c: Remove references to zone allocator in comments.
8751 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
8753         * config/avr/avr.c (avr_out_fract): Make register numbers that
8754         might be outside of source operand signed.
8756 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
8758         * config/i386/constraints.md (Yf): New constraint.
8759         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
8760         of f constraint to conditionaly disable x87 register preferences.
8761         (*movdf_internal): Ditto.
8762         (*movsf_internal): Ditto.
8764 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
8766         PR inline-asm/55934
8767         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
8768         that have operands with impossible constraints.
8769         Add a FIXME for a speed-up opportunity.
8770         * lra-constraints.c (process_alt_operands): Verify that a class
8771         selected from constraints on asms is valid for the operand mode.
8772         (curr_insn_transform): Remove incorrect comment.
8774 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
8776         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
8777         TOC operand is a valid symbol ref in the constant pool.
8779 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
8781         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
8783 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
8785         PR target/54222
8786         * config/avr/stdfix.h: New file.
8787         * t-avr (stdfix-gcc.h): New rule to build it.
8788         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
8790 2013-01-23  Kostya Serebryany  <kcc@google.com>
8792         * config/darwin.h: remove dependency on
8793         CoreFoundation (asan on Mac OS).
8795 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
8797         PR target/49069
8798         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
8799         instead of cmpdi_operand for first comparison operand.
8800         Don't assert that comparison operands aren't both constants.
8802 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
8804         * doc/install.texi (Downloading the Source): Update references to
8805         downloading separate components.
8807 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
8809         * doc/extend.texi (__int128): Improve grammar.
8811 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
8813         PR target/56028
8814         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
8815         alternative to (o,r).
8816         (*movdi_internal_rex64): Remove (!o,n) alternative.
8817         (DImode immediate->memory splitter): Remove.
8818         (DImode immediate->memory peephole2): Remove.
8819         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
8820         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
8821         alternative to (!o,*r).
8822         (*movtf_internal_sse): New pattern.
8823         (*movxf_internal_rex64): New pattern.
8824         (*movxf_internal): Disable for TARGET_64BIT.
8825         (*movdf_internal_rex64): Remove (!o,F) alternative.
8827 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
8829         PR middle-end/56074
8830         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
8831         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
8832         * tree-vect-loop-manip.c (find_loop_location): Also ignore
8833         stmt locations where LOCATION_LOCUS of the stmt location is
8834         UNKNOWN_LOCATION or BUILTINS_LOCATION.
8836         PR target/55686
8837         * config/i386/i386.md (UNSPEC_STOS): New.
8838         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
8839         *strsetqi_1): Add UNSPEC_STOS.
8841 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
8843         PR c++/56067
8844         * doc/invoke.texi: Remove left over -Wsynth example.
8846 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
8848         PR tree-optimization/56051
8849         * fold-const.c (fold_binary_loc): Don't fold
8850         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
8851         a narrowing conversion, or widening conversion from signed
8852         to unsigned.
8854 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
8856         PR rtl-optimization/56023
8857         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
8858         dependent on debug instruction.
8860 2013-01-21  Martin Jambor  <mjambor@suse.cz>
8862         PR middle-end/56022
8863         * function.c (allocate_struct_function): Call
8864         invoke_set_current_function_hook earlier.
8866 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
8868         * reload1.c (init_reload): Only initialize reload_obstack
8869         during the first call.
8871 2013-01-21  Marek Polacek  <polacek@redhat.com>
8873         * cfgloop.c (verify_loop_structure): Fix up grammar.
8875 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
8877         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
8878         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
8880 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8882         PR target/56058
8883         * config/arm/marvell-pj4.md: Update copyright year.
8884         Fix up use of alu to alu_reg and simple_alu_imm.
8886 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
8888         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
8890 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
8892         PR target/55433
8893         * lra-constraints.c (curr_insn_transform): Don't reuse original
8894         insn for secondary memory move when memory mode should be different.
8896 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8898         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
8899         atomic_storedi_1): New patterns.
8901 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8903         btver2 pipeline descriptions.
8904         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
8905         descriptions.
8906         * config/i386/i386.md (btver2_decode): New type attributes.
8907         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
8908         type attributes.
8909         * config/i386/btver2.md: New file describing btver2 pipelines.
8911 2013-01-19  Andrew Pinski  <apinski@cavium.com>
8913         PR tree-optimization/52631
8914         * tree-ssa-sccvn (visit_use): Before looking up the original
8915         statement, try looking up the simplified expression.
8917 2013-01-19  Anthony Green  <green@moxielogic.com>
8919         * config/moxie/moxie.c (moxie_expand_prologue): Set
8920         current_function_static_stack_size.
8922 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
8924         PR tree-optimization/56029
8925         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
8926         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
8928 2013-01-18  Sharad Singhai  <singhai@google.com>
8930         PR tree-optimization/55995
8931         * dumpfile.c (dump_loc): Print location only if available.
8932         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
8934 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
8936         PR target/55433
8937         * lra-constraints.c (curr_insn_transform): Reuse original insn for
8938         secondary memory move.
8939         (inherit_reload_reg): Use rclass instead of cl for
8940         check_secondary_memory_needed_p.
8942 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
8944         PR middle-end/56015
8945         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
8946         the case where writing real complex part of target modifies op1.
8948 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
8950         * config/aarch64/aarch64-simd.md
8951         (aarch64_vcond_internal<mode>): Handle unordered cases.
8952         * config/aarch64/iterators.md (v_cmp_result): New.
8954 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
8955             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8957         * config/arm/marvell-pj4.md: New file.
8958         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
8959         * config/arm/arm.md (generic_sched): Add marvell_pj4.
8960         (generic_vfp): Likewise.
8961         * config/arm/arm-cores.def: Add marvell-pj4.
8962         * config/arm/arm-tune.md: Regenerate.
8963         * config/arm/arm-tables.opt: Regenerate.
8964         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
8965         * doc/invoke.texi: Document marvell-pj4.
8967 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
8969         * config/aarch64/arm_neon.h: Map scalar types to standard types.
8971 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
8973         PR debug/54114
8974         PR debug/54402
8975         PR debug/49888
8976         * var-tracking.c (negative_power_of_two_p): New.
8977         (global_get_addr_cache, local_get_addr_cache): New.
8978         (get_addr_from_global_cache, get_addr_from_local_cache): New.
8979         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
8980         heading comment.
8981         (vt_stack_offset_p): Remove.
8982         (vt_canon_true_dep): Always canonicalize loc's address.
8983         (clobber_overlapping_mems): Make sure we have a MEM.
8984         (local_get_addr_clear_given_value): New.
8985         (val_reset): Clear local cached entries.
8986         (compute_bb_dataflow): Create and release the local cache.
8987         Disable duplicate MEMs clobbering.
8988         (emit_notes_in_bb): Clobber MEMs likewise.
8989         (vt_emit_notes): Create and release the local cache.
8990         (vt_initialize, vt_finalize): Create and release the global
8991         cache, respectively.
8992         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
8994 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
8996         PR libmudflap/53359
8997         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
8998         not found in the symtab.
9000 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
9002         PR debug/56006
9003         PR rtl-optimization/55547
9004         PR rtl-optimization/53827
9005         PR debug/53671
9006         PR debug/49888
9007         * alias.c (offset_overlap_p): New, factored out of...
9008         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
9009         the conservative special case for symbolic constants.  Don't
9010         adjust zero sizes on alignment.
9012 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
9014         PR rtl-optimization/52573
9015         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9016         REG_UNUSED for the same register.
9018 2013-01-17  Richard Biener  <rguenther@suse.de>
9019             Marek Polacek  <polacek@redhat.com>
9021         PR rtl-optimization/55833
9022         * loop-unswitch.c (unswitch_loops): Move loop verification...
9023         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
9024         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9025         Set it to true when we're removing a loop from hierarchy tree in
9026         an irreducible region.
9027         (fix_bb_placements): Adjust caller.
9028         (fix_loop_placements): Likewise.
9030 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
9032         * config/avr/builtins.def (DEF_BUILTIN): Factor out
9033         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
9034         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
9035         Remove ID.  Adjust comments.
9036         * config/avr/avr-c.c (avr_builtin_name): Remove.
9037         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
9038         * config/avr/avr.c (avr_tolower): New static function.
9039         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
9040         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
9041         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
9042         default expansion.
9044 2013-01-17  Jan Hubicka  <jh@suse.cz>
9046         PR tree-optimization/55273
9047         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
9049 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
9051         PR target/55981
9052         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
9053         store through atomic_store<mode>_1.
9054         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
9056 2013-01-17  Martin Jambor  <mjambor@suse.cz>
9058         PR tree-optimizations/55264
9059         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
9060         for virtual methods.
9061         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
9062         virtual methods before inlining is over.
9063         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
9064         virtual functions.
9065         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
9066         non-virtual.
9068 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
9070         PR rtl-optimization/56005
9071         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
9072         pending reads for prefetch.
9074 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
9076         * config/aarch64/aarch64.md
9077         (*cstoresi_neg_uxtw): New pattern.
9078         (*cmovsi_insn_uxtw): New pattern.
9079         (*<optab>si3_uxtw): New pattern.
9080         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
9081         (*<optab>si3_insn_uxtw): New pattern.
9082         (*bswapsi2_uxtw): New pattern.
9084 2013-01-16  Richard Biener  <rguenther@suse.de>
9086         * tree-inline.c (tree_function_versioning): Remove set but
9087         never used variable.
9089 2013-01-16  Richard Biener  <rguenther@suse.de>
9091         PR tree-optimization/55964
9092         * tree-flow.h (rename_variables_in_loop): Remove.
9093         (rename_variables_in_bb): Likewise.
9094         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
9095         (copy_loop_before): Adjust and delete update-ssa status.
9096         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
9097         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
9098         (rename_variables_in_loop): Remove.
9099         (slpeel_update_phis_for_duplicate_loop): Likewise.
9100         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
9101         use available cfg machinery instead of duplicating it.
9102         Update PHI nodes and perform poor-mans SSA update here.
9103         (slpeel_tree_peel_loop_to_edge): Adjust.
9105 2013-01-16  Richard Biener  <rguenther@suse.de>
9107         PR tree-optimization/54767
9108         PR tree-optimization/53465
9109         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
9110         (vrp_visit_phi_node): For PHI arguments coming via backedges
9111         drop all symbolical range information.
9112         (execute_vrp): Compute backedges.
9114 2013-01-16  Richard Biener  <rguenther@suse.de>
9116         * doc/install.texi: Update CLooG and ISL requirements to
9117         0.18.0 and 0.11.1.
9119 2013-01-16  Christian Bruel  <christian.bruel@st.com>
9121         PR target/55301
9122         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
9123         (broken_move): Handle UNSPECV_SP_SWITCH_B.
9124         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
9126 2013-01-16  DJ Delorie  <dj@redhat.com>
9128         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9129         (UNSPECV_SP_SWITCH_E): New.
9130         (sp_switch_1): Change to an unspec.
9131         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
9132         replace $r15.
9134 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
9136         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
9137         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
9138         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
9139         (expand_mem_thread_fence): Ditto.
9140         (expand_mem_signal_fence): Ditto.
9141         (expand_atomic_load): Ditto.
9142         (expand_atomic_store): Ditto.
9144 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
9146         PR rtl-optimization/55547
9147         PR rtl-optimization/53827
9148         PR debug/53671
9149         PR debug/49888
9150         * alias.c (memrefs_conflict_p): Set sizes to negative after
9151         AND adjustments.
9153 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
9155         PR target/55940
9156         * function.c (thread_prologue_and_epilogue_insns): Always
9157         add crtl->drap_reg to set_up_by_prologue.set, even if
9158         stack_realign_drap is false.
9160 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9162         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
9163         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
9164         *call): Fix indention.
9166 2013-01-15  Tom de Vries  <tom@codesourcery.com>
9168         PR target/55876
9169         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
9170         Update comment.
9172 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
9174         PR rtl-optimization/55153
9175         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
9177 2013-01-15  Martin Jambor  <mjambor@suse.cz>
9179         PR tree-optimization/55920
9180         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
9181         accesses as grp_to_be_debug_replaced.
9183 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
9185         PR tree-optimization/55920
9186         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
9187         there is non-useless type conversion needed from debug rhs to lhs,
9188         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
9190 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
9191             Mikael Pettersson  <mikpe@it.uu.se>
9193         PR target/43961
9194         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
9195         Thumb.
9196         (ASM_OUTPUT_CASE_LABEL): Remove.
9197         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
9198         * final.c (shorten_branches): Update alignment of labels before
9199         jump tables if CASE_VECTOR_SHORTEN_MODE.
9201 2013-01-15  Richard Biener  <rguenther@suse.de>
9203         PR bootstrap/55961
9204         * system.h: Do not include gmp.h for building host tools.
9206 2013-01-15  Richard Biener  <rguenther@suse.de>
9208         PR middle-end/55882
9209         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
9210         account for bitpos when computing alignment.
9212 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
9214         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
9215         (ix86_target_macros_internal): Likewise.
9217         * config/i386/i386.c (m_CORE2I7): Removed.
9218         (m_CORE_HASWELL): New macro.
9219         (m_CORE_ALL): Likewise.
9220         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
9221         (initial_ix86_arch_features): Likewise.
9222         (processor_target_table): Initializations for Core avx2.
9223         (cpu_names): New names "core-avx2".
9224         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
9225         PROCESSOR_CORE_HASWELL.
9226         (ix86_issue_rate): New case.
9227         (ia32_multipass_dfa_lookahead): Likewise.
9228         (ix86_sched_init_global): Likewise.
9230         * config/i386/i386.h (TARGET_HASWELL): New macro.
9231         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
9232         (processor_type): New PROCESSOR_HASWELL.
9234 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
9236         PR tree-optimization/55955
9237         * tree-vect-loop.c (vectorizable_reduction): Give up early on
9238         *SHIFT_EXPR and *ROTATE_EXPR codes.
9240         PR tree-optimization/48766
9241         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
9242         -ftrapv disable -fwrapv.
9244 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
9246         PR target/55974
9247         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
9248         etc. to 1 and not to __flash.
9249         Use LL suffix for __INT24_MAX__ with -mint8.
9250         Use ULL suffix for __UINT24_MAX__ with -mint8.
9252 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
9254         * config/avr/avr-arch.h
9255         (struct base_arch_s): Use typedef avr_arch_t instead.
9256         (struct arch_info_s): Use typedef avr_arch_info_t instead.
9257         (struct mcu_type_s): Use typedef avr_mcu_t instead.
9258         * config/avr/avr.c: Same.
9259         * config/avr/avr-devices.c: Same.
9260         * config/avr/driver-avr.c: Same.
9261         * config/avr/gen-avr-mmcu-texi.c: Same.
9262         * config/avr/avr-mcus.def: Adjust comment.
9264 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
9266         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
9267         * config/aarch64/iterators.md (VALLDI): New.
9269 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
9270             Andi Kleen  <ak@linux.intel.com>
9272         PR target/55948
9273         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
9274         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
9275         memmodel flag.
9277 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
9279         * config/avr/avr-stdint.h: Remove trailing blanks.
9280         * config/avr/avr-log.h: Same.
9281         * config/avr/avr-arch.h: Same.
9282         * config/avr/avr-devices.c: Same.
9283         * config/avr/avr-dimode.md: Same.
9284         * config/avr/predicates.md: Same.
9285         * config/avr/avr-c.c: Same.  And fix typo.
9287         * config/avr/avr-protos.h: Same.  And:
9288         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
9289         (init_cumulative_args): Rename to avr_init_cumulative_args.
9290         (expand_prologue): Rename to avr_expand_prologue.
9291         (expand_epilogue): Rename to avr_expand_epilogue.
9292         (adjust_insn_length): Rename to avr_adjust_insn_length.
9293         (notice_update_cc): Rename to avr_notice_update_cc.
9294         (final_prescan_insn): Rename to avr_final_prescan_insn.
9295         * config/avr/avr.c: Same.
9296         * config/avr/avr.h: Same.
9297         * config/avr/avr.md: Remove trailing blanks.
9298         (prologue): Use avr_expand_prologue.
9299         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
9301 2013-01-14  Richard Biener  <rguenther@suse.de>
9303         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
9304         verify_location, collect_subblocks): New functions.
9305         (verify_gimple_in_cfg): Verify that locations only reference
9306         BLOCKs in the functions BLOCK tree.
9308 2013-01-14  Richard Biener  <rguenther@suse.de>
9310         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
9311         PHI argument.
9312         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
9313         unshare reference.
9314         (insert_out_of_ssa_copy_on_edge): Likewise.
9315         (rewrite_close_phi_out_of_ssa): Likewise.
9316         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
9317         debug expressions.
9318         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
9319         propagated constants.
9320         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
9321         can not be shared.
9323 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
9325         * config/avr/avr-modes.def: Add GPL copyright notice.
9327 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
9329         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
9330         MEMMODEL_MASK to determine memory model.
9331         (atomic_store<mode>): Ditto from operands[2].
9332         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
9334 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
9336         PR fortran/55935
9337         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9338         (fold_gimple_assign): Don't call unshare_expr here.
9339         (fold_ctor_reference): Call unshare_expr.
9341 2013-01-13  Terry Guo  <terry.guo@arm.com>
9343         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
9344         * doc/fragments.texi: Document MULTILIB_REUSE.
9345         * gcc.c (multilib_reuse): New internal spec.
9346         (set_multilib_dir): Also search multilib from multilib_reuse.
9347         * genmultilib (tmpmultilib3): Refactor code.
9348         (tmpmultilib4): Ditto.
9349         (multilib_reuse): New multilib argument.
9351 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
9353         * Makefile.in: Update copyright.
9355 2013-01-12  Tom de Vries  <tom@codesourcery.com>
9357         PR middle-end/55890
9358         * calls.c (expand_call): Check if arg_nr is valid.
9360 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9362         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
9363         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
9364         documentation.  Add missing '__' in front of
9365         __builtin_ia32_packssdw256.
9367 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9369         PR target/55719
9370         * config/s390/s390.c (s390_preferred_reload_class): Do not return
9371         NO_REGS for larl operands.
9372         (s390_reload_larl_operand): Use s390_load_address instead of
9373         emit_move_insn.
9375 2013-01-11  Richard Biener  <rguenther@suse.de>
9377         * tree-cfg.c (verify_node_sharing_1): Split out from ...
9378         (verify_node_sharing): ... here.
9379         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
9381 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
9383         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
9384         Substitute TREECHECKING.
9385         * configure: Regenerate.
9386         * Makefile.in (TREECHECKING): New.
9388 2013-01-11  Richard Guenther  <rguenther@suse.de>
9390         PR tree-optimization/44061
9391         * tree-vrp.c (extract_range_basic): Compute zero as
9392         value-range for __builtin_constant_p of function parameters.
9394 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
9396         Update copyright years.
9398 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
9400         PR rtl-optimization/55672
9401         * lra-eliminations.c (mark_not_eliminable): Permit addition with
9402         const to be eliminable.
9404 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
9406         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
9407         * configure: Regenerate.
9409 2013-01-10  Richard Biener  <rguenther@suse.de>
9411         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
9413 2013-01-10  Richard Biener  <rguenther@suse.de>
9415         PR bootstrap/55792
9416         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
9417         locations for virtual PHI arguments.
9418         (rewrite_update_phi_arguments): Likewise.
9420 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
9422         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
9423         on to assembler.
9425 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
9427         PR tree-optimization/55921
9428         * tree-complex.c (expand_complex_asm): New function.
9429         (expand_complex_operations_1): Call it for GIMPLE_ASM.
9431 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9433         PR target/55718
9434         * config/s390/s390.c (s390_symref_operand_p)
9435         (s390_loadrelative_operand_p): Merge the two functions.
9436         (s390_check_qrst_address, print_operand_address): Add parameters
9437         to s390_loadrelative_operand_p invokation.
9438         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
9439         (s390_reload_larl_operand, s390_secondary_reload): Use
9440         s390_loadrelative_operand_p instead of s390_symref_operand_p.
9441         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
9443 2013-01-09  Mike Stump  <mikestump@comcast.net>
9445         * dse.c (record_store): Remove unnecessary assert.
9447 2013-01-09  Jan Hubicka  <jh@suse.cz>
9449         PR tree-optimization/55569
9450         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
9451         * cfgloop.h (scale_loop_profile): Likewise.
9453 2013-01-09  Jan Hubicka  <jh@suse.cz>
9455         PR lto/45375
9456         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
9457         functions.
9458         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
9460 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
9462         PR middle-end/55114
9463         * expr.h (maybe_emit_group_store): Declare.
9464         * expr.c (maybe_emit_group_store): New function.
9465         * builtins.c (expand_builtin_int_roundingfn): Call it.
9466         (expand_builtin_int_roundingfn_2): Likewise.
9468 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
9470         PR rtl-optimization/55829
9471         * lra-constraints.c (match_reload): Add code for absent output.
9472         (curr_insn_transform): Add code for reloads of matched inputs
9473         without output.
9475 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
9477         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
9478         attribute of movddup insn to DF.
9479         (*vec_interleave_lowv2df): Ditto.
9480         (vec_dupv2df): Ditto.
9482 2013-01-09  Jan Hubicka  <jh@suse.cz>
9484         PR tree-optimiation/55875
9485         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
9486         EVERY_ITERATION parameter.
9487         (number_of_iterations_exit): Check if exit is executed every iteration.
9488         (idx_infer_loop_bounds): Similarly here.
9489         (n_of_executions_at_most): Simplify
9490         to only test for cases where statement is dominated by the
9491         particular bound; handle correctly the "postdominance" test.
9492         (scev_probably_wraps_p): Use max loop iterations info
9493         as a global bound first.
9495 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
9496             Nick Clifton  <nickc@redhat.com>
9498         * config/v850/v850.md (cbranchsf4): New pattern.
9499         (cstoresf4): New pattern.
9500         (cbranchdf4): New pattern.
9501         (cstoredf4): New pattern.
9502         (movsicc): Disallow floating point comparisons.
9503         (cmpsf_le_insn): Fix order of operators.
9504         (cmpsf_lt_insn): Likewise.
9505         (cmpsf_eq_insn): Likewise.
9506         (cmpdf_le_insn): Likewise.
9507         (cmpdf_lt_insn): Likewise.
9508         (cmpdf_eq_insn): Likewise.
9509         (cmpsf_ge_insn): Use LE comparison.
9510         (cmpdf_ge_insn): Likewise.
9511         (cmpsf_gt_insn): Use LT comparison.
9512         (cmpdf_gt_insn): Likewise.
9513         (cmpsf_ne_insn): Delete pattern.
9514         (cmpdf_ne_insn): Delete pattern.
9515         * config/v850/v850.c (v850_gen_float_compare): Use
9516         gen_cmpdf_eq_insn for NE comparison.
9517         (v850_float_z_comparison_operator)
9518         (v850_float_nz_comparison_operator): Move from here ...
9519         * config/v850/predicates.md: ... to here.  Move GT and GE
9520         comparisons into v850_float_z_comparison_operator.
9521         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
9522         Delete prototype.
9523         (v850_float_nz_comparison_operator): Likewise.
9525 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9527         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
9528         with calls to gen_insvsi/gen_insvdi.
9530 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9532         * config/i386/i386.c (initial_ix86_tune_features): Set up
9533         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
9535 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
9536             Jakub Jelinek  <jakub@redhat.com>
9538         PR tree-optimization/48189
9539         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
9540         If nitercst is 0, don't predict the exit edge.
9542 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9544         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
9545         in asm_fprintf with reg_names.
9546         (aarch64_print_operand_address): Likewise.
9547         (aarch64_return_addr): Likewise.
9548         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
9550 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9552         * config/pa/pa.h (VAL_U6_BITS_P): Define.
9553         (INT_U6_BITS): Likewise.
9554         * config/pa/predicates.md (uint6_operand): New predicate.
9555         (shift5_operand, shift6_operand): Likewise.
9556         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
9557         arith32_operand.
9558         (lshrdi3): Use shift6_operand.
9559         (shrpsi4, shrpdi4): New insn patterns.
9560         (extzv): Delete expander.
9561         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
9562         predicates in unamed zero extract patterns.  Tighten common constraint.
9563         (extv): Delete expander.
9564         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
9565         predicates in unamed sign extract patterns.  Tighten common constraint.
9566         (insv): Delete expander.
9567         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
9568         predicates in unamed insert patterns.  Tighten common constraint.
9569         Change uint32_operand predicate to uint6_operand predicate in unamed
9570         DImode pattern to insert constant values of type 1...1xxxx.
9572 2013-01-04  Jan Hubicka  <jh@suse.cz>
9574         PR tree-optimization/55823
9575         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
9576         issue.
9578 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
9579             Uros Bizjak  <ubizjak@gmail.com>
9581         PR rtl-optimization/55845
9582         * df-problems.c (can_move_insns_across): Stop scanning at
9583         volatile_insn_p source instruction or give up if
9584         across_from .. across_to range contains any volatile_insn_p
9585         instructions.
9587 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
9589         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
9590         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
9591         Declare.
9592         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
9593         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
9595 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
9597         PR fortran/55341
9598         * asan.c (asan_clear_shadow): New function.
9599         (asan_emit_stack_protection): Use it.
9601 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
9603         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
9604         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
9605         with tab instead of space.
9607 2013-01-08  Nick Clifton  <nickc@redhat.com>
9609         * config/rl78/rl78.c (rl78_expand_prologue): Always select
9610         register bank 0 at the start of an interrupt handler.
9611         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
9612         MDBH registers.
9614 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
9616         * config/aarch64/aarch64-simd.md
9617         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
9618         (aarch64_simd_bsl): Likewise.
9619         (aarch64_vcond_internal<mode>): Likewise.
9620         (vcond<mode><mode>): Likewise.
9621         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
9622         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
9624 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
9626         * config/aarch64/aarch64-builtins.c
9627         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
9629 2013-01-08  Martin Jambor  <mjambor@suse.cz>
9631         PR debug/55579
9632         * tree-sra.c (analyze_access_subtree): Return true also after
9633         potentially creating a debug-only replacement.
9635 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
9637         PR middle-end/55890
9638         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
9640         PR tree-optimization/54120
9641         * tree-vrp.c (range_fits_type_p): Don't allow
9642         src_precision < precision from signed vr to unsigned_p
9643         if vr->min or vr->max is negative.
9644         (simplify_float_conversion_using_ranges): Test can_float_p
9645         against CODE_FOR_nothing.
9647 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
9648             Richard Biener  <rguenther@suse.de>
9650         PR middle-end/55851
9651         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
9652         types instead of just INTEGER_TYPE types.
9654 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
9656         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
9657         TF_SIZE): Define.
9659 2013-01-07  Steve Ellcey  <sellcey@mips.com>
9661         PR target/42661
9662         * config/mips/mips.opt: Change mad to mmad to match documentation.
9664 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
9666         PR target/55897
9667         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
9668         .progmemx.data now.
9670 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
9672         PR target/55897
9673         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
9674         (avr_addrspace_t): Add .section_name field.
9675         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
9676         array size.
9677         (avr_addrspace): Same.  Initialize .section_name.  Remove last
9678         NULL entry.  Put __memx into .progmemx.data.
9679         (progmem_section_prefix): Remove.
9680         (avr_asm_init_sections): No need to initialize progmem_section.
9681         (avr_asm_named_section): Use avr_addrspace[].section_name to get
9682         section name prefix.
9683         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
9684         retrieve the progmem section.
9685         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
9686         boundary to run over avr_addrspace[].
9687         (avr_register_target_pragmas): Ditto.
9689 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
9691         * varasm.c (output_constant_def_contents): For asan_protect_global
9692         protected strings, adjust DECL_ALIGN if needed, before testing for
9693         anchored symbols.
9694         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
9695         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
9696         normal decls.
9697         (output_object_block): For asan protected decls, emit asan padding
9698         after their contents.
9699         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
9700         (asan_finish_file): Test it here instead.
9702 2013-01-07  Nick Clifton  <nickc@redhat.com>
9703             Matthias Klose  <doko@debian.org>
9704             Doug Kwan  <dougkwan@google.com>
9705             H.J. Lu  <hongjiu.lu@intel.com>
9707         PR driver/55470
9708         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
9710         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
9712         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
9714         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
9716         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
9718 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
9720         PR target/54461
9721         * doc/install.texi (Cross-Compiler-Specific Options): Document
9722         --with-avrlibc.
9724 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
9726         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
9727         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
9728         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
9729         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
9730         vqmovun_high_s64): Fix source operand number and update copyright.
9732 2013-01-07  Richard Biener  <rguenther@suse.de>
9734         PR middle-end/55890
9735         * gimple.h (gimple_call_builtin_p): New overload.
9736         * gimple.c (validate_call): New function.
9737         (gimple_call_builtin_p): Likewise.
9738         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9739         Use gimple_call_builtin_p.
9740         (find_func_clobbers): Likewise.
9741         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
9742         (strlen_optimize_stmt): Likewise.
9744 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
9746         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
9747         (vld1q_dup_*): Likewise.
9748         (vld1_*): Likewise.
9749         (vld1q_*): Likewise.
9750         (vld1_lane_*): Likewise.
9751         (vld1q_lane_*): Likewise.
9753 2013-01-07  Richard Biener  <rguenther@suse.de>
9755         * lto-streamer.h (LTO_minor_version): Bump to 2.
9757 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
9759         * config/aarch64/aarch64-protos.h
9760         (aarch64_const_double_zero_rtx_p): Rename to...
9761         (aarch64_float_const_zero_rtx_p): ...this.
9762         (aarch64_float_const_representable_p): New.
9763         (aarch64_output_simd_mov_immediate): Likewise.
9764         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
9765         move immediate case.
9766         * config/aarch64/aarch64.c
9767         (aarch64_const_double_zero_rtx_p): Rename to...
9768         (aarch64_float_const_zero_rtx_p): ...this.
9769         (aarch64_print_operand): Allow printing of new constants.
9770         (aarch64_valid_floating_const): New.
9771         (aarch64_legitimate_constant_p): Check for valid floating-point
9772         constants.
9773         (aarch64_simd_valid_immediate): Likewise.
9774         (aarch64_vect_float_const_representable_p): New.
9775         (aarch64_float_const_representable_p): Likewise.
9776         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
9777         (aarch64_output_simd_mov_immediate): New.
9778         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
9779         (*movdf_aarch64): Likewise.
9780         * config/aarch64/constraints.md (Ufc): New.
9781         (Y): call aarch64_float_const_zero_rtx.
9782         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
9784 2013-01-07  Richard Biener  <rguenther@suse.de>
9786         PR tree-optimization/55888
9787         PR tree-optimization/55862
9788         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
9789         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
9790         not if it is contained therein.
9792 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
9794         * config/avr/t-avr: Typo.
9796 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
9798         PR55243
9799         * config/avr/t-avr: Don't automatically rebuild
9800         $(srcdir)/config/avr/t-multilib
9801         $(srcdir)/config/avr/avr-tables.opt
9802         $(srcdir)/doc/avr-mmcu.texi
9803         (avr-mcus): New phony target to build them on request.
9804         (s-avr-mlib, s-avr-mmcu-texi): Remove.
9805         * avr/avr-mcus.def: Adjust comments.
9807 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
9809         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
9811 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
9813         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
9815 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
9817         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
9819 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
9821         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
9822         to generate profiling.
9823         * config/rs6000/aix64.h (LIB_SPEC): Same.
9825 2013-01-04  Andrew Pinski  <apinski@cavium.com>
9827         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
9828         New function.
9829         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9831 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
9833         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
9834         unconditionally.
9835         (ix86_expand_move): Ditto.
9836         (ix86_zero_extend_to_Pmode): Ditto.
9837         (ix86_expand_call): Ditto.
9838         (ix86_expand_special_args_builtin): Ditto.
9839         (ix86_expand_builtin): Ditto.
9841 2013-01-04  Richard Biener  <rguenther@suse.de>
9843         PR tree-optimization/55862
9844         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
9845         translating them through PHI nodes.
9847 2013-01-04  Martin Jambor  <mjambor@suse.cz>
9849         PR tree-optimization/55755
9850         * tree-sra.c (sra_modify_assign): Do not check that an access has no
9851         children when trying to avoid producing a VIEW_CONVERT_EXPR.
9853 2013-01-04  Marek Polacek  <polacek@redhat.com>
9855         PR middle-end/55859
9856         * opts.c (default_options_optimization): Clarify error message.
9858 2013-01-04  Richard Biener  <rguenther@suse.de>
9860         PR middle-end/55863
9861         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
9862         reassociation.
9864 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9866         PR target/53789
9867         * config/pa/pa.md (movsi): Revert previous change.
9868         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
9869         references.
9871 2013-01-03  Richard Henderson  <rth@redhat.com>
9873         * config/i386/i386.c (ix86_expand_move): Always assign to op1
9874         after eliminating TLS symbols.
9876 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
9878         PR bootstrap/50167
9879         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
9880         * graphite-poly.c (debug_gmp_value): Likewise.
9882 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
9884         PR target/55712
9885         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
9886         selected code model, define __code_mode_small__, __code_model_medium__,
9887         __code_model_large__, __code_model_32__ or __code_model_kernel__.
9888         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
9889         xchg temporary register with %k.  Declare temporary register as
9890         early clobbered.
9891         [__x86_64__]: For medium and large code models, preserve %rbx register.
9893 2013-01-03  Richard Biener  <rguenther@suse.de>
9895         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
9896         (dump_subscript): Adjust.
9897         (finalize_ddr_dependent): Do not dump redundant info.
9898         (analyze_siv_subscript): Adjust.
9899         (subscript_dependence_tester): Likewise.
9900         (compute_affine_dependence): Likewise.
9902 2013-01-03  Richard Biener  <rguenther@suse.de>
9904         Revert
9905         2013-01-03  Richard Biener  <rguenther@suse.de>
9907         PR tree-optimization/55857
9908         * tree-vect-stmts.c (vectorizable_load): Do not setup
9909         re-alignment for invariant loads.
9911         2013-01-02  Richard Biener  <rguenther@suse.de>
9913         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9914         invariant load do not generate a vector load from the scalar location.
9916 2013-01-03  Richard Biener  <rguenther@suse.de>
9918         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
9919         for not vectorizing.
9920         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9921         not build INDIRECT_REFs, call get_name once only.
9922         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
9923         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
9925 2013-01-03  Richard Biener  <rguenther@suse.de>
9927         PR tree-optimization/55857
9928         * tree-vect-stmts.c (vectorizable_load): Do not setup
9929         re-alignment for invariant loads.
9931 2013-01-03  Richard Biener  <rguenther@suse.de>
9933         PR lto/55848
9934         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
9935         prefer a built-in decl.
9937 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
9939         * gcc.c (process_command): Update copyright notice dates.
9940         * gcov.c (print_version): Likewise.
9941         * gcov-dump.c (print_version): Likewise.
9943         PR rtl-optimization/55838
9944         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
9945         iv0.step, iv1.step and step.
9947 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
9948             Marc Glisse  <marc.glisse@inria.fr>
9950         PR tree-optimization/55832
9951         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
9952         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
9953         integer_{one,zero}_node.
9955 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
9957         PR debug/54402
9958         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
9959         * var-tracking.c (reverse_op): Don't add reverse ops to
9960         VALUEs that have already
9961         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
9963 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
9965         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
9967 2013-01-02  Teresa Johnson  <tejohnson@google.com>
9969         * dumpfile.c (dump_loc): Print filename with location.
9970         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
9971         new location_t parameter to emit complete unroll message with
9972         new dump framework.
9973         (canonicalize_loop_induction_variables): Compute loops location
9974         and pass to try_unroll_loop_completely.
9975         * loop-unroll.c (report_unroll_peel): New function.
9976         (peel_loops_completely): Use new dump format with location
9977         for main dumpfile message, and invoke report_unroll_peel on success.
9978         (decide_unrolling_and_peeling): Ditto.
9979         (decide_peel_once_rolling): Remove old dumpfile message subsumed
9980         by report_unroll_peel.
9981         (decide_peel_completely): Ditto.
9982         (decide_unroll_constant_iterations): Ditto.
9983         (decide_unroll_runtime_iterations): Ditto.
9984         (decide_peel_simple): Ditto.
9985         (decide_unroll_stupid): Ditto.
9986         * cfgloop.c (get_loop_location): New function.
9987         * cfgloop.h (get_loop_location): Declare.
9989 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
9991         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
9992         NULL.
9994 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9996         PR middle-end/55198
9997         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
9998         BLKmode objects when EXPAND_MEMORY is specified.
10000 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
10002         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10003         in loop predicate.
10004         (fold_builtin_cpu): Do not share cpu model decls across statements.
10006 2013-01-02  Jason Merrill  <jason@redhat.com>
10008         PR c++/55804
10009         * tree.c (build_array_type_1): Revert earlier change.
10011 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
10013         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10014         "cortex-a57".
10015         * config/aarch64/aarch64-tune.md: Re-generate.
10017 2013-01-02  Richard Biener  <rguenther@suse.de>
10019         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
10020         invariant load do not generate a vector load from the scalar location.
10022 2013-01-02  Richard Biener  <rguenther@suse.de>
10024         PR bootstrap/55784
10025         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10026         * configure: Regenerate.
10028 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
10030         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
10031         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
10032         (expand_builtin_int_roundingfn_2): Keep the original target around
10033         for the fallback case.
10035 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
10037         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
10038         to be clear for sign changes.
10040 2013-01-01  Jan Hubicka  <jh@suse.cz>
10042         * ipa-inline-analysis.c: Fix formatting.
10044 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
10046         PR tree-optimization/55831
10047         * tree-vect-loop.c (get_initial_def_for_induction): Use
10048         gsi_after_labels instead of gsi_start_bb.
10050 Copyright (C) 2013 Free Software Foundation, Inc.
10052 Copying and distribution of this file, with or without modification,
10053 are permitted in any medium without royalty provided the copyright
10054 notice and this notice are preserved.