2013-05-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobbab6db43cf2c27d7b0226ac740916fc4330215d2
1 2013-05-21  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/57330
4         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
5         preserve the call stmts fntype.
7 2013-05-21  Richard Biener  <rguenther@suse.de>
9         PR tree-optimization/57303
10         * tree-ssa-sink.c (statement_sink_location): Improve killing
11         stmt detection and properly handle self-assignments.
13 2013-05-21  Christian Bruel  <christian.bruel@st.com>
15         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
16         spanning registers. LEAF_REG_REMAP is supported only for contiguous
17         registers. Set register size out of the PARALLEL loop.
19 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
21         PR target/56547
22         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
23         (*fmasf4, *fmasf4_media): New insns.
25 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
27         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
28         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
29         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
30         (mips_idiv_insns): Update the comments to say that the returned
31         instruction counts are in units of BASE_INSN_LENGTH.
32         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
33         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
34         using 2 rather than 4 as the length of indirect MIPS16 and
35         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
36         length of a NOP.  Don't divide MIPS16 lengths by 2.
37         (mips16_split_long_branches): Assume a branch is long if the
38         length is greater than 4 rather than 8.
39         * config/mips/mips.md (length): Give MIPS16 lengths directly,
40         rather than multiplying them by 2.  Multiply instruction counts
41         by BASE_INSN_LENGTH rather than 4.
42         (*jump_mips16, tls_get_tp_mips16_<mode>)
43         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
45 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
47         * config/mips/mips.md (extended_mips16): Remove branch case.
48         (length): Remove duplicated extended_mips16 test.
50 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
52         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
54 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
56         * recog.h (Recog_data): Rename to...
57         (recog_data_d): ...this.
58         (recog_data): Update accordingly.
59         * recog.c (recog_data): Likewise.
60         * reload.c (save_recog_data): Likewise.
61         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
62         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
64 2013-05-17  Julian Brown  <julian@codesourcery.com>
66         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
67         found in a REG_EQUAL note, invalidate it.
69 2013-05-17   Easwaran Raman  <eraman@google.com>
71         * tree-ssa-reassoc.c (find_insert_point): New function.
72         (insert_stmt_after): Likewise.
73         (get_def_stmt): Likewise.
74         (ensure_ops_are_available): Likewise.
75         (not_dominated_by): Likewise.
76         (rewrite_expr_tree): Do not move statements beyond what is
77         necessary. Remove call to swap_ops_for_binary_stmt...
78         (reassociate_bb): ... and move it here.
79         (build_and_add_sum): Assign UIDs for new statements.
80         (linearize_expr): Likewise.
81         (do_reassoc): Renumber gimple statement UIDs.
83 2013-05-17  Jan Hubicka  <jh@suse.cz>
85         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
86         weakrefs.
87         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
88         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
89         weakrefs.
90         (output_weakrefs): Update.
92 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
93             Martin Jambor  <mjambor@suse.cz>
95         PR middle-end/57276
96         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
97         value that corresponds to the given aggval is found in values vector.
99 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
101         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
102         sse, sse2, sse3, ssse3 and sse4a flags to options.
104 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
106         * gengtype-state.c: (s_expr_writer): New class, to handle
107         prettifying of output layout of s-expressions.
108         (state_writer): New class, to write out gtype.state.
109         (state_written_type_count): Move this variable into member data of
110         state_writer.
111         (s_expr_writer::s_expr_writer): New code: constructor for new class
112         (state_writer::state_writer(): ditto
113         (s_expr_writer::write_new_line): New function
114         (s_expr_writer::write_any_indent): ditto
115         (s_expr_writer::begin_s_expr): ditto
116         (s_expr_writer::end_s_expr): ditto
117         (write_state_fileloc): convert to method of state_writer...
118         (state_writer:: write_state_fileloc): ...and use methods of
119         s_expr_writer to write indentation into the gtype.state output file
120         to visually represent the hierarchical structure of the list
121         structures
122         (write_state_fields): ditto, renaming to...
123         (state_writer::write_state_fields)
124         (write_state_a_string): ditto, renaming to...
125         (state_writer::write_state_a_string)
126         (write_state_string_option): ditto, renaming to...
127         (state_writer::write_state_string_option)
128         (write_state_type_option): ditto, renaming to...
129         (state_writer::write_state_type_option)
130         (write_state_nested_option): ditto, renaming to...
131         (state_writer::write_state_nested_option)
132         (write_state_option): ditto, renaming to...
133         (state_writer::write_state_option)
134         (write_state_options): ditto, renaming to...
135         (state_writer::write_state_options)
136         (write_state_lang_bitmap): ditto, renaming to...
137         (state_writer::write_state_lang_bitmap)
138         (write_state_version): ditto, renaming to...
139         (state_writer::write_state_version)
140         (write_state_scalar_type): ditto, renaming to...
141         (state_writer::write_state_scalar_type)
142         (write_state_string_type): ditto, renaming to...
143         (state_writer::write_state_string_type)
144         (write_state_undefined_type): ditto, renaming to...
145         (state_writer::write_state_undefined_type)
146         (write_state_struct_union_type): ditto, renaming to...
147         (state_writer::write_state_struct_union_type)
148         (write_state_struct_type): ditto, renaming to...
149         (state_writer::write_state_struct_type)
150         (write_state_user_struct_type): ditto, renaming to...
151         (state_writer::write_state_user_struct_type)
152         (write_state_lang_struct_type): ditto, renaming to...
153         (state_writer::write_state_lang_struct_type)
154         (write_state_param_struct_type): ditto, renaming to...
155         (state_writer::write_state_param_struct_type)
156         (write_state_pointer_type): ditto, renaming to...
157         (state_writer::write_state_pointer_type)
158         (write_state_array_type): ditto, renaming to...
159         (state_writer::write_state_array_type)
160         (write_state_gc_used): ditto, renaming to...
161         (state_writer::write_state_gc_used)
162         (write_state_common_type_content): ditto, renaming to...
163         (state_writer::write_state_common_type_content)
164         (write_state_type): ditto, renaming to...
165         (state_writer::write_state_type)
166         (write_state_pair_list): ditto, renaming to...
167         (state_writer::write_state_pair_list)
168         (write_state_pair): ditto, renaming to...
169         (state_writer::write_state_pair)
170         (write_state_typedefs): ditto, renaming to...
171         (state_writer::write_state_typedefs)
172         (write_state_structures): ditto, renaming to...
173         (state_writer::write_state_structures)
174         (write_state_param_structs): ditto, renaming to...
175         (state_writer::write_state_param_structs)
176         (write_state_variables): ditto, renaming to...
177         (state_writer::write_state_variables)
178         (write_state_srcdir): ditto, renaming to...
179         (state_writer::write_state_srcdir)
180         (write_state_files_list): ditto, renaming to...
181         (state_writer::write_state_files_list)
182         (write_state_languages): ditto, renaming to...
183         (state_writer::write_state_languages)
184         (write_state): create a state_writer instance and use it when
185         writing out the state file
187 2013-05-17  Mike Stump  <mikestump@comcast.net>
189         PR rtl-optimization/57304
190         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
191         accessing DF_REF_REAL_LOC.
193 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
195         PR rtl-optimization/57281
196         PR rtl-optimization/57300
197         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
198         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
199         what the other splitter did if the registers are dead.
201 2013-05-17  Richard Biener  <rguenther@suse.de>
203         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
204         MEM_REF offsets.
206 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
208         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
209         linking.
211 2013-05-17  Marek Polacek  <polacek@redhat.com>
213         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
214         length when doing non-zero store of storing '\0' to '\0'.
216 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
218         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
219         vect_external_def oprnd1 with loop_vinfo, try to emit
220         optional cast, negation and and stmts on the loop preheader
221         edge instead of into the pattern def seq.
223         PR tree-optimization/57051
224         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
225         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
227 2013-05-16  Nick Clifton  <nickc@redhat.com>
229         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
230         (rl78_is_naked_func): New function.
231         (rl78_expand_prologue): Skip prologue generation for naked
232         functions.
233         (rl78_expand_epilogue): Skip epilogue generation for naked
234         functions.
235         * doc/extend.texi (naked): Add RL78 to the list of processors
236         that supports this attribute.
238 2013-05-16  Jeff Law  <law@redhat.com>
240         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
242 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
244         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
245         cache parameters using detect_caches_amd also for CYRIX,
246         NSC and TM2 signatures.
248 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
249             Dzianis Kahanovich  <mahatma@eu.by>
251         PR target/45359
252         PR target/46396
253         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
254         VIA/Centaur processors and determine their cache parameters
255         using detect_caches_amd.
257 2013-05-16  Teresa Johnson  <tejohnson@google.com>
259         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
260         (rtl_verify_edges): New function.
261         (rtl_verify_bb_insns): Ditto.
262         (rtl_verify_bb_pointers): Ditto.
263         (rtl_verify_bb_insn_chain): Ditto.
264         (rtl_verify_fallthru): Ditto.
265         (rtl_verify_bb_layout): Ditto.
266         (rtl_verify_flow_info_1): Outline checks into new functions.
267         (rtl_verify_flow_info): Ditto.
269 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
271         * cfghooks.c (copy_bbs): Add update_dominance argument.
272         * cfghooks.h (copy_bbs): Update prototype.
273         * tree-cfg.c (gimple_duplicate_sese_region):
274         Add update_dominance argument.
275         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
276         * tree-ssa-loop-ch.c (copy_loop_headers): Update
277         gimple_duplicate_sese_region call.
278         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
279         Update copy_bbs call.
280         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
281         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
283 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
285         * tree-vectorizer.h (NUM_PATTERNS): Increment.
286         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
287         vect_recog_rotate_pattern.
288         (vect_recog_rotate_pattern): New function.
290 2013-05-16  Jason Merrill  <jason@redhat.com>
292         * Makefile.in (LLINKER): New variable.
293         (mostlyclean): Remove link mutex.
294         * configure.ac: Handle --enable-link-mutex.
295         * lock-and-run.sh: New script.
297 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
299         PR target/19599
300         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
301         for NULL decl.
303 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
305         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
307 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
309         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
310         * config/arm/arm.c (next_consecutive_mem): New function.
311         (gen_movmem_ldrd_strd): Likewise.
312         * config/arm/arm.md (movmemqi): Update condition and code.
313         (unaligned_loaddi, unaligned_storedi): New patterns.
315 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
317         * config.gcc: Obsolete *-*-solaris2.9*.
318         * doc/install.texi (Specific, *-*-solaris2*): Document it.
320 2013-05-16  Richard Biener  <rguenther@suse.de>
322         * passes.c (init_optimization_passes): Move pass_parallelize_loops
323         earlier, after GRAPHITE transforms and IV canonicalization.
325 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
327         * omp-low.c (extract_omp_for_data): For collapsed loops,
328         if at least one of the loops is known at compile time to
329         iterate zero times, set count to 0.
330         (expand_omp_regimplify_p): New function.
331         (expand_omp_for_generic): For collapsed loops, if at least
332         one of the loops isn't known to iterate at least once,
333         add runtime check with setting count to 0.
334         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
335         For unsigned types if it isn't known at compile time that
336         the loop will iterate at least once, add runtime check to bypass
337         the whole loop if initial condition isn't true.
339 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
341         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
343 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
345         PR middle-end/57286
346         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
347         transformations to avoid an infinite loop.
349 2013-05-16  Marek Polacek  <polacek@redhat.com>
351         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
353 2013-05-15  Leif Ekblad  <leif@rdos.net>
355         * config/i386/i386.c (ix86_decompose_address): Use
356         DEFAULT_TLS_SEG_REG to access TLS segment register.
357         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
358         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
359         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
361 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
363         PR target/57260
364         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
365         sibling calls to functions that would normally be lazily bound,
366         unless $gp is call-clobbered.
368 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
370         * config/i386/i386.c (ix86_option_override_internal): Update
371         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
372         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
373         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
374         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
375         of TARGET_3DNOW.
376         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
378 2013-05-15  Andreas Schwab  <schwab@suse.de>
380         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
381         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
382         third operand.
384 2013-05-15  Teresa Johnson  <tejohnson@google.com>
386         * loop-unroll.c (report_unroll_peel): Check decision before
387         emitting unroll/peel message.
389 2013-05-15  Teresa Johnson  <tejohnson@google.com>
391         * function.h (has_bb_partition): New rtl_data flag.
392         (bb_reorder_complete): Ditto.
393         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
394         instead of flag_reorder_blocks_and_partition.
395         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
396         with some enhancements.
397         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
398         * bb-reorder.c (connect_traces): Check for has_bb_partition
399         instead of flag_reorder_blocks_and_partition.
400         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
401         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
402         verify_hot_cold_block_grouping.
403         (partition_hot_cold_basic_blocks): Set has_bb_partition.
405 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
407         PR target/19599
408         * config/arm/predicates.md (call_insn_operand): New predicate.
409         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
410         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
411         if insn is not a tail call.
412         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
413         registers.
414         * config/arm/arm.h (enum reg_class): New caller save register class.
415         (REG_CLASS_NAMES): Likewise.
416         (REG_CLASS_CONTENTS): Likewise.
417         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
418         without decls.
420 2013-05-15  Richard Biener  <rguenther@suse.de>
422         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
423         of MSG_OPTIMIZED_LOCATIONS.
424         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
425         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
426         message.
427         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
428         of MSG_OPTIMIZED_LOCATIONS.
429         (execute_vect_slp): Likewise.
430         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
431         (vect_create_cond_for_alias_checks): Likewise.
432         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
433         (vect_recog_widen_mult_pattern): Likewise.
434         (vect_recog_widen_sum_pattern): Likewise.
435         (vect_recog_over_widening_pattern): Likewise.
436         (vect_recog_widen_shift_pattern): Likewise.
437         (vect_recog_vector_vector_shift_pattern): Likewise.
438         (vect_recog_divmod_pattern): Likewise.
439         (vect_recog_mixed_size_cond_pattern): Likewise.
440         (vect_recog_bool_pattern): Likewise.
441         (vect_pattern_recog_1): Likewise.
443 2013-05-15  Martin Jambor  <mjambor@suse.cz>
445         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
446         non-functions to builtin_unreachable.
447         * ipa-inline-transform.c (inline_call): Do not assert estimates were
448         correct when new direct edges were discovered.
450 2013-05-15  Martin Jambor  <mjambor@suse.cz>
452         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
453         header, print symbol order instead of node uid, print more information
454         about indirect edge targets.
455         (ipa_make_edge_direct_to_target): Print symbol order instead of node
456         uids.
457         (ipa_make_edge_direct_to_target): Likewise.
458         (remove_described_reference): Likewise.
459         (propagate_controlled_uses): Likewise.
460         (ipa_print_node_params): Also print symbol order.
461         (ipcp_transform_function): Print symbol order instead of node uids.
462         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
463         (cgraph_get_create_real_symbol_node): Likewise.
464         * ipa-cp.c (print_lattice): Likewise.
465         (print_all_lattices): Likewise.
466         (determine_versionability): Likewise.
467         (initialize_node_lattices): Likewise.
468         (estimate_local_effects): Likewise.
469         (update_profiling_info): Likewise.
470         (create_specialized_node): Likewise.
471         (perhaps_add_new_callers): Likewise.
472         (decide_about_value): Likewise.
473         (decide_whether_version_node): Likewise.
474         (identify_dead_nodes): Likewise.
475         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
476         (dump_inline_summary): Likewise.
477         (estimate_node_size_and_time): Likewise.
478         (inline_analyze_function): Likewise.
479         * ipa-inline.c (report_inline_failed_reason): Likewise.
480         (want_early_inline_function_p): Likewise.
481         (edge_badness): Likewise.
482         (update_edge_key): Likewise.
483         (inline_small_functions): Likewise.  Add dumping of order to two other
484         dumps.
485         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
486         instead of node uids.
487         (propagate_pure_const): Likewise.
488         (propagate_pure_const): Likewise.
489         * ipa-utils.c (dump_cgraph_node_set): Likewise.
490         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
491         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
492         of node uids.
493         * tree-pretty-print.c (dump_function_header): Likewise.
494         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
495         Print symbol order instead of node uids.
497 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
499         * config/s390/s390.c (s390_register_move_cost): Don't impose the
500         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
502 2013-05-15  Richard Biener  <rguenther@suse.de>
504         PR tree-optimization/57275
505         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
506         return value for fail to do runtime alias checks for gather loads.
508 2013-05-15  Jan Hubicka  <jh@suse.cz>
510         PR lto/57038
511         PR lto/47375
512         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
513         weakrefs are not external.
514         (lto_symtab_merge_decls): Fix thinko when dealing with
515         non-lto_symtab decls.
516         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
517         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
518         * varpool.c (dump_varpool_node): Dump more flags.
520 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
522         * config/i386/i386.c (processor_alias_table): Add instruction
523         FSGSBASE for AMD bdver3 architecture.
525 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
527         * tree.c (warn_deprecated_use): Print file:line using locus color.
528         * diagnostic.c (diagnostic_report_current_module): Print file:line
529         and file:line:column using locus color.
531 2013-05-14  Mike Stump  <mikestump@comcast.net>
533         * gdbinit.in: Add __null.
535 2013-05-14  Mike Stump  <mikestump@comcast.net>
537         * recog.h: Rename struct recog_data to Recog_data.
538         * recog.c: Likewise.
539         * reload.c (can_reload_into): Likewise.
540         * config/picochip/picochip.c: Likewise.
542 2013-05-14  Mike Stump  <mikestump@comcast.net>
544         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
546 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
548         * resource.h (struct resources): Remove unch_memory member.
549         (CLEAR_RESOURCE): Don't clear unch_memory.
550         * resource.c (mark_referenced_resources): Don't set it.
551         (mark_set_resources): Likewise.
552         (mark_target_live_regs): Don't clear it.
553         (init_resource_info): Likewise.
554         * reorg.c (resource_conflicts_p): Don't compare it.
555         (redundant_insn): Don't set it.
557         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
558         Remove prototypes.
559         * emit-rtl.c (next_label): Remove unused function.
560         (skip_consecutive_labels, link_cc0_insns): Move to ...
561         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
562         only place where these functions are used, and make them static.
564 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
566         * fold-const.c (fold_negate_expr): Handle vectors.
567         (fold_truth_not_expr): Make it static.
568         (fold_invert_truthvalue): New static function.
569         (invert_truthvalue_loc): Handle vectors. Do not call
570         fold_truth_not_expr directly.
571         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
572         <TRUTH_NOT_EXPR>: Do not cast to boolean.
573         (fold_comparison): Handle vector constants.
574         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
575         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
576         * tree.h (fold_truth_not_expr): Remove declaration.
578 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
580         * config/aarch64/aarch64-simd.md
581         (aarch64_vcond_internal<mode>): Rename to...
582         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
583         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
584         float modes. Clarify all iterator modes.
585         (vcond<mode><mode>): Use new name for vcond expanders.
586         (vcond<v_cmp_result><mode>): Likewise.
587         (vcondu<mode><mode>: Likewise.
588         * config/aarch64/iterators.md (VDQF_COND): New.
590 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
592         PR bootstrap/57266
593         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
594         variable for the shift amount. Check that we shift by non-negative
595         amounts.
597 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
599         PR target/42017
600         * config/arm/arm.h (EPILOGUE_USES): Only return true
601         for LR_REGNUM after epilogue_completed.
603 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
605         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
606         is error_mark_node.
608 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
610         PR target/57261
611         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
612         and Solaris 11+/x86 with gld.
613         * configure: Regenerate.
615 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
617         * expmed.c (expand_shift_1): Canonicalize rotates by
618         constant bitsize / 2 to bitsize - 1.
619         * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
620         case ROTATERT>: Likewise.
622         Revert:
623         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
625         * config/i386/i386.md (rotateinv): New code attr.
626         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
627         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
628         roll $31, %eax, etc.
630 2013-05-14  Richard Biener  <rguenther@suse.de>
632         PR middle-end/57235
633         * tree-eh.c (sink_clobbers): Give up for successors with
634         multiple predecessors and no virtual uses.
636 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
638         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
639         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
641 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
643         PR middle-end/57251
644         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
645         the case when both op0 and op1 have VOIDmode.
647 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
649         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
650         in multiply-accumulate mode.
652 2013-05-13  Guozhi Wei  <carrot@google.com>
654         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
656 2013-05-13  Kai Tietz  <ktietz@redhat.com>
658         PR target/56975
659         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
660         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
661         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
662         * config/i386/i386.c (ix86_option_override_internal): Likewise.
663         (ix86_expand_prologue): Likewise.
664         (ix86_expand_split_stack_prologue): Likewise.
665         (legitimate_pic_address_disp_p): Likewise.
666         (legitimize_pic_address): Likewise.
667         (legitimize_tls_address): Likewise.
668         (legitimize_pe_coff_symbol): Likewise.
669         (output_pic_addr_const): Likewise.
670         (construct_plt_address): Likewise.
671         (ix86_expand_call): Likewise.
672         (x86_output_mi_thunk): Likewise.
673         (x86_function_profiler): Likewise.
675 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
677         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
678         similar switch cases.
679         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
680         (aarch64_simd_mov_to_<mode>low): Delete.
681         (aarch64_simd_mov_to_<mode>high): Delete.
682         (move_lo_quad_<mode>): Add w<-r alternative.
683         (aarch64_simd_move_hi_quad_<mode>): Likewise.
684         (aarch64_simd_mov_from_*): Update type attribute.
685         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
686         statement.
688 2013-05-13  Jan Hubicka  <jh@suse.cz>
690         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
691         * config/i386/i386.c (ix86_compute_frame_layout,
692         ix86_expand_epilogue, emit_i387_cw_initialization,
693         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
694         ix86_local_alignment): Fix use of size/speed predicates.
696 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
698         PR tree-optimization/45216
699         PR tree-optimization/57157
700         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
701         the (-Y) & (B - 1) variant if OP is |.
702         * expmed.c (expand_shift_1): For rotations by const0_rtx just
703         return shifted.  Use (-op1) & (prec - 1) as other_amount
704         instead of prec - op1.
706 2013-05-13  Martin Jambor  <mjambor@suse.cz>
708         PR middle-end/42371
709         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
710         (ipa_constant_data): New type.
711         (ipa_jump_func): Use ipa_constant_data to hold information about
712         constant jump functions.
713         (ipa_get_jf_constant): Adjust to jump function type changes.
714         (ipa_get_jf_constant_rdesc): New function.
715         (ipa_param_descriptor): New field controlled_uses.
716         (ipa_get_controlled_uses): New function.
717         (ipa_set_controlled_uses): Likewise.
718         * ipa-ref.h (ipa_find_reference): Declare.
719         * ipa-prop.c (ipa_cst_ref_desc): New type.
720         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
721         changes.
722         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
723         New parameter cs.  Adjust all callers.
724         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
725         (remove_described_reference): New function.
726         (jfunc_rdesc_usable): Likewise.
727         (try_make_edge_direct_simple_call): Decrement controlled use count,
728         attempt to remove reference if it hits zero.
729         (combine_controlled_uses_counters): New function.
730         (propagate_controlled_uses): Likewise.
731         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
732         (ipa_edge_duplication_hook): Duplicate reference descriptions.
733         (ipa_print_node_params): Print described use counter.
734         (ipa_write_jump_function): Adjust to jump function type changes.
735         (ipa_read_jump_function): New parameter CS, pass it to
736         ipa_set_jf_constant.  Adjust caller.
737         (ipa_write_node_info): Stream controlled use count
738         (ipa_read_node_info): Likewise.
739         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
740         asserting.
741         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
742         count.  Remove cloning-added reference if it reaches zero.
743         * ipa-ref.c (ipa_find_reference): New function.
745 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
747         * config/i386/i386.c (processor_target_table): Modified default
748         alignment values for AMD BD and BT architectures.
750 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
752         * tree-vect-generic.c (uniform_vector_p): Move ...
753         * tree.c (uniform_vector_p): ... here.
754         * tree.h (uniform_vector_p): Declare it.
755         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
756         into a scalar.
758 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
760         PR tree-optimization/57230
761         * tree-ssa-strlen.c (handle_char_store): Record length for
762         array store from STRING_CST.
764         PR tree-optimization/57230
765         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
766         check.
768 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
770         * config/epiphany/epiphany.c (epiphany_init): Check size of
771         NUM_MODES_FOR_MODE_SWITCHING.
772         (epiphany_expand_prologue):
773         Remove CONFIG_REGNUM initial value handling code.
774         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
775         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
776         (emit_set_fp_mode, epiphany_mode_after): Likewise.
777         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
778         Don't return 1 for FP_MODE_NONE.
779         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
780         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
781         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
782         * config/epiphany/epiphany.md (save_config): New pattern.
784 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
786         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
788 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
790         * config/i386/i386.md (memory): Handle sseishft1.
791         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
792         (*vec_extractv2di_1): Ditto.
794 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
796         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
797         saved registers.
799 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
801         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
802         Add mthumb/march=armv7-a multilib.
803         Add mthumb/march=armv7-r multilib.
804         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
806 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
808         * config/v850/t-rtems: Add more multilibs.
810 2013-05-10  Richard Biener  <rguenther@suse.de>
812         PR tree-optimization/57214
813         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
814         not propagate from SSA names that occur in abnormal PHI nodes.
816 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
818         * stor-layout.c (element_precision): New function.
819         * machmode.h (element_precision): Declare it.
820         * tree.c (build_minus_one_cst): New function.
821         (element_precision): Likewise.
822         * tree.h (build_minus_one_cst): Declare new function.
823         (element_precision): Likewise.
824         * fold-const.c (operand_equal_p): Use element_precision.
825         (fold_binary_loc): Handle vector types.
826         * convert.c (convert_to_integer): Use element_precision.
827         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
828         separately.
830 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
832         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
833         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
834         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
835         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
836         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
837         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
838         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
839         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
840         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
841         (Uuw8): New constraints.
842         (Usb4): Move into alphabetical order.
843         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
844         (sd8_operand, ub8_operand, uw8_operand): New predicates.
845         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
846         previously unnamed patterns.
847         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
848         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
849         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
850         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
851         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
852         of specific lengths.
854 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
856         * config/i386/i386.md (rotateinv): New code attr.
857         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
858         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
859         roll $31, %eax, etc.
861         PR tree-optimization/45216
862         PR tree-optimization/57157
863         * tree-ssa-forwprop.c (simplify_rotate): New function.
864         (ssa_forward_propagate_and_combine): Call it.
866 2013-05-10  Richard Biener  <rguenther@suse.de>
868         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
869         disable peeling when we version for aliasing.
870         (vector_alignment_reachable_p): Honor explicit user alignment.
871         (vect_supportable_dr_alignment): Likewise.
872         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
873         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
874         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
875         then peeling to arrange for the cost-model check to come first.
877 2013-05-10  Alan Modra  <amodra@gmail.com>
879         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
880         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
881         * configure: Regenerate.
883 2013-05-10  Alan Modra  <amodra@gmail.com>
885         PR target/55033
886         * varasm.c (default_elf_select_section): Move !DECL_P check..
887         (get_named_section): ..to here before calling get_section_name.
888         Adjust assertion.
889         (default_section_type_flags): Add DECL_P check.
890         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
891         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
893 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
895         * config/epiphany/epiphany.c (epiphany_expand_prologue):
896         When using gen_stack_adjust_str with a register offset, add a
897         REG_FRAME_RELATED_EXPR note.
899 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
901         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
902         (*vec_extractv4si_zext_mem): Ditto.
903         (*vec_extractv2di): Add 0->x and x->x alternatives.
904         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
905         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
907 2013-05-09  Jason Merrill  <jason@redhat.com>
909         N3639 C++1y VLA support
910         * gimplify.c (gimplify_vla_decl): Don't touch an existing
911         DECL_VALUE_EXPR.
913         * tree.c (build_constructor_va): New.
914         * tree.h: Declare it.
916 2013-05-09  Martin Jambor  <mjambor@suse.cz>
918         PR lto/57084
919         * gimple-fold.c (canonicalize_constructor_val): Call
920         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
922 2013-05-09  Jan Hubicka  <jh@suse.cz>
923             Richard Biener  <rguenther@suse.de>
925         PR lto/54095
926         * symtab.c (symtab_make_decl_local): Do not add private names.
928 2013-05-09  Jan Hubicka  <jh@suse.cz>
930         PR lto/54095
931         * symtab.c (insert_to_assembler_name_hash): Handle clones.
932         (unlink_from_assembler_name_hash): Likewise.
933         (symtab_prevail_in_asm_name_hash, symtab_register_node,
934         symtab_unregister_node, symtab_initialize_asm_name_hash,
935         change_decl_assembler_name): Update.
937 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
939         * config/aarch64/aarch64.md: New movtf split.
940         (*movtf_aarch64): Update.
941         (aarch64_movdi_tilow): Handle TF modes and rename to
942         aarch64_movdi_<mode>low.
943         (aarch64_movdi_tihigh): Handle TF modes and rename to
944         aarch64_movdi_<mode>high
945         (aarch64_movtihigh_di): Handle TF modes and rename to
946         aarch64_mov<mode>high_di
947         (aarch64_movtilow_di): Handle TF modes and rename to
948         aarch64_mov<mode>low_di
949         (aarch64_movtilow_tilow): Remove spurious whitespace.
950         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
951         splits.
952         (aarch64_print_operand): Update.
954 2013-05-09  Alan Modra  <amodra@gmail.com>
956         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
957         powerpc64le.
958         * configure: Regenerate.
960 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
962         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
963         splitter preparation statements.
964         * config/i386/sse.md (*vec_extract* splitters): Ditto.
965         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
966         adjust_address_nv.
968 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
970         * gimple-ssa-strength-reduction.c (count_candidates): Change
971         return value to int.
972         (analyze_candidates_and_replace): Change type of length to int.
974 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
976         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
977         (*vec_extract<mode>): Use VI12_128 mode iterator.
978         (*vec_extract<mode>_mem): Ditto.
979         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
980         attribute.
982 2013-05-08  Diego Novillo  <dnovillo@google.com>
984         PR bootstrap/54659
986         Revert:
987         2012-08-17  Diego Novillo  <dnovillo@google.com>
989         PR bootstrap/54281
990         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
991         * config.in: Regenerate.
992         * configure: Regenerate.
993         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
995 2013-05-08  Jan Hubicka  <jh@suse.cz>
997         PR lto/54095
998         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
999         * cgraph.h (symtab_node_base): Add unique_name.
1000         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1001         input_overwrite_node, input_varpool_node): Stream unique_name.
1002         * cgraphclones.c (cgraph_create_virtual_clone,
1003         cgraph_function_versioning): Set unique_name.
1004         * ipa.c (function_and_variable_visibility): Set unique_name.
1006 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1008         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
1009         (alloc_cand_and_find_basis): Restrict conditional candidate
1010         processing to CAND_MULTs.
1012 2013-05-08  Jan Hubicka  <jh@suse.cz>
1014         PR lto/54095
1015         lto-symtab.c (lto_symtab_symbol_p): New function.
1016         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
1017         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
1018         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
1019         Skip static symbols.
1021 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
1023         PR tree-optimization/57200
1024         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1025         Only call inform if the preceding warning_at returns true.
1027 2013-05-07  Han Shen  <shenhan@google.com>
1029         * cfgexpand.c (record_or_union_type_has_array_p): New function.
1030         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
1031         * common.opt (fstack-protector-strong): New option.
1032         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
1033         * doc/invoke.texi (Optimization Options): Document
1034         "-fstack-protector-strong".
1035         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
1037 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
1039         * config/mips/mips.c (mips_machine_reorg2): Return 0.
1041 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
1043         * ira.c (update_equiv_regs): Add insn having equiv memory even if
1044         it is not lhs of the insn.
1045         (setup_reg_equiv): Remove insn having equiv memory which it is not
1046         lhs of the insn.
1047         * lra-constraints.c (process_address): Try to improve generation
1048         code for address base + disp.
1049         (lra_constraints): Make correct the code for checking insn setting
1050         up backward equivalence.  Remove insn only if it is in the init
1051         insn list.
1052         * lra-eliminations.c (update_reg_eliminate): Change return value.
1053         (lra_eliminate): Use the result.
1055 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
1057         * config/i386/sse.md (ssescalarnummask): New mode attribute.
1058         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
1059         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
1060         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
1061         register target operands.
1062         (*vec_extractv8hi_sse2): New pattern.
1063         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
1064         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
1065         (*vec_extract<mode>_mem): New insn and split pattern.
1067 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
1069         * config/arm/arm.c (arm_asan_shadow_offset): New function.
1070         (TARGET_ASAN_SHADOW_OFFSET): Define.
1071         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
1072         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
1074 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1076         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
1077         (incr_vec_index): Return -1 if increment not found.
1078         (create_add_on_incoming_edge): Assert if increment not found.
1079         (record_increment): Limit number of increments recorded.
1080         (all_phi_incrs_profitable): Return false if an increment not found.
1081         (replace_profitable_candidates): Don't process increments that were
1082         not recorded.
1083         (analyze_candidates_and_replace): Limit size of incr_vec.
1085 2013-05-07  Richard Biener  <rguenther@suse.de>
1087         * calls.c (special_function_p): setjmp-like functions are leaf.
1088         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
1089         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
1091 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
1093         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
1094         (aarch64_simd_mov<mode>): New expander.
1095         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
1096         (aarch64_simd_mov_to_<mode>high): Likewise.
1097         (aarch64_simd_mov_from_<mode>low): Likewise.
1098         (aarch64_simd_mov_from_<mode>high): Likewise.
1099         (aarch64_dup_lane<mode>): Update.
1100         (aarch64_dup_lanedi): New instruction pattern.
1101         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
1102         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
1104 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1106         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
1107         (replace_mult_candidate): Remove unnecessary argument; remove
1108         unnecessary parameter from call to introduce_cast_before_cand.
1109         (replace_unconditional_candidate): Remove unnecessary parameter
1110         from call to replace_mult_candidate.
1111         (replace_conditional_candidate): Likewise.
1112         (insert_initializers): Use make_temp_ssa_name.
1113         (introduce_cast_before_cand): Remove unnecessary argument; use
1114         make_temp_ssa_name.
1115         (replace_one_candidate): Remove unnecessary argument; remove
1116         unnecessary parameter from calls to introduce_cast_before_cand.
1117         (replace_profitable_candidates): Remove unnecessary parameters
1118         from calls to replace_one_candidate.
1120 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1122         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
1123         phi def as possibly hiding a basis for a CAND_ADD whose operands
1124         have been commuted in the analysis.
1125         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
1127 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1129         * config/aarch64/aarch64.md
1130         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
1131         shift value between 0-4.
1133 2013-05-07  Richard Biener  <rguenther@suse.de>
1135         * double-int.h (rshift): New overload.
1136         * double-int.c (rshift): New function.
1137         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
1138         (create_reference_ops_from_ref): Remove.
1139         (vn_reference_insert): Use shared ops for constructing the
1140         reference and copy it.
1142 2013-05-07  Richard Biener  <rguenther@suse.de>
1144         PR middle-end/57190
1145         * tree-eh.c (sink_clobbers): Properly propagate
1146         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1148 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
1150         PR tree-optimization/57149
1151         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
1152         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
1153         collect_phi_def_edges, execute_late_warn_uninitialized): Use
1154         uninit_undefined_value_p instead of ssa_undefined_value_p.
1156         PR debug/57184
1157         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
1158         for modifier == EXPAND_INITIALIZER.
1160 2013-05-07  Anton Blanchard  <anton@samba.org>
1162         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
1163         for powerpc64 little endian.
1164         * configure: Regenerate.
1166 2013-05-06  Graham Stott  <grahams@btinternet.com>
1168         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
1169         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
1170         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
1171         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
1173 2013-05-06  Graham Stott  <grahams@btinternet.com>
1175         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
1176         codes which allow non-lvalues.
1178 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
1180         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
1181         components are all 1s.
1182         (integer_minus_onep): New function.
1183         * tree.h (integer_minus_onep): Declare it.
1184         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
1185         integer_minus_onep instead of integer_all_onesp.
1187 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
1189         PR target/52933
1190         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
1191         variations of these patterns.
1193 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
1195         * config/i386/i386.md (isa): Add x64_sse4 member.
1196         (enabled): Handle x64_sse4.
1197         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
1198         instruction for 64bit SSE4_1 targets.  Update insn attributes.
1199         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
1200         instruction for SSE4_1 targets.  Update insn attributes.
1201         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1202         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
1203         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
1204         const_1 selector.
1205         (*vec_extractv4si): Rename from *sse4_1_pextrd.
1206         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
1207         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
1209 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
1211         PR target/57108
1212         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
1214 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
1216         * final.c (do_assembler_dialects): Don't handle curly braces and
1217         vertical bar escaped by % as dialect delimiters.
1218         (output_asm_insn): Print curly braces and vertical bar if escaped
1219         by % and ASSEMBLER_DIALECT defined.
1220         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
1221         * doc/tm.texi: Regenerated.
1223 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
1225         * config/mips/mips.c: Include tree-pass.h.
1226         (mips_reorg): Split in pre- and post-dbr_schedule parts.
1227         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
1228         (pass_mips_machine_reorg2): New machine specific pass.
1229         (insert_pass_mips_machine_reorg2): New pass plugin definition.
1230         (mips_option_override): Register the new pass.
1231         * rtl.h (cleanup_barriers): Remove prototype.
1232         (dbr_schedule): Likewise.
1233         * jump.c (cleanup_barriers): Make static.
1234         * reorg.c (dbr_schedule): Likewise.
1236 2013-05-06  Richard Biener  <rguenther@suse.de>
1238         PR tree-optimization/57185
1239         * tree-parloops.c (add_field_for_reduction): Handle anonymous
1240         SSA names properly.
1242 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
1244         PR target/57106
1245         * config/i386/i386.c (add_parameter_dependencies): Add dependence
1246         between "first_arg" and "insn", not "last" and "insn".
1248 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1250         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
1251         (find_candidates_in_block): Re-enable slsr_process_phi.
1252         (create_phi_basis): Fix double counting of candidate adjustment.
1254 2013-05-06  Richard Biener  <rguenther@suse.de>
1256         PR middle-end/57147
1257         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
1258         the edge is also fallthru, preserve it and just clear the
1259         abnormal flag.
1260         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
1261         also complex, preserve that and just clear the fallthru flag.
1262         * tree-inline.c (update_ssa_across_abnormal_edges): Also
1263         update virtual operands.
1265 2013-05-06  Alan Modra  <amodra@gmail.com>
1267         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
1268         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
1269         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
1270         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
1271         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1272         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
1274 2013-05-06  Alan Modra  <amodra@gmail.com>
1276         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
1277         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
1278         (DEFAULT_ASM_ENDIAN): Define.
1279         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1280         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
1281         Update -K PIC clause from sysv4.h.
1282         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
1283         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
1285 2013-05-06  Alan Modra  <amodra@gmail.com>
1287         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
1288         twice for little-endian.
1289         (ashrdi3_no_power, ashrdi3): Support little-endian.
1291 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
1293         PR target/55303
1294         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
1295         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
1296         related expanders.
1297         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
1298         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
1299         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
1300         New predicates.
1302 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
1303             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1305         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
1306         * config/pa/pa.opt: Make mbig-switch a no-op.
1307         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
1308         (CASE_VECTOR_MODE): Always return SImode.
1309         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
1310         for the !TARGET_BIG_SWITCH case.
1311         * config/pa/pa-linux.h: Likewise.
1312         * config/pa/pa-openbsd.h: Likewise.
1313         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
1314         * config/pa/pa.md (short_jump): Remove define_insn.
1315         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
1316         (casesi0): Remove define_insn.
1317         (type): Remove btable_branch.
1318         (pa_combine_type): Likewise.
1319         (in_nullified_branch_delay): Likewise.
1320         (in_call_delay): Likewise.
1321         (define_delay): Likewise.
1322         (define_insn_reservation "Z3"): Likewise.
1323         (define_insn_reservation "Z4"): Likewise.
1324         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
1325         (pa_adjust_insn_length): Remove adjustment for btable branches.
1326         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
1327         and mno-big-switch
1329 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
1331         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1332         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
1333         Add m->r,x alternatives.
1334         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
1335         splitters using SWI48x mode iterator.
1336         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
1337         TARGET_64BIT.  Add m->x alternative.
1338         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
1339         Add o->x alternative.  Enable for TARGET_SSE.
1340         (sse_storeq): Remove expander.
1341         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
1342         with memory input operand.
1343         (*vec_extractv2di_1 splitter): New.
1344         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
1345         * config/i386/i386.md (ssevecmodelower): New mode attribute.
1347 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
1349         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
1350         (INT_LOWPART): Delete.
1351         (extract_MB): Adjust.
1352         (extract_ME): Adjust.
1353         (print_operand): Adjust.
1355 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
1357         * config/rs6000/predicates.md (reg_or_add_cint_operand,
1358         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1359         (reg_or_logical_cint_operand, easy_fp_constant,
1360         logical_const_operand): Delete "CONST_DOUBLE" case.
1361         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
1362         "HOST_BITS_PER_WIDE_INT == 64" test.
1363         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
1364         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
1365         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
1366         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
1367         test.
1368         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
1369         CONST_DOUBLE DImode/VOIDmode case.
1370         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
1371         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
1372         CONST_DOUBLE VOIDmode case.
1373         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1374         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
1375         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
1376         Delete CONST_DOUBLE case.
1377         (splitters for mov FMOVE64 const_double): Delete
1378         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
1379         "HOST_BITS_PER_WIDE_INT >= 64" test.
1380         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
1381         case.
1382         (mov DI const_double): Delete.
1384 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
1386         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
1387         on op shows all bits zero in mode of a lowpart subreg, return zero.
1389 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
1391         PR target/57150
1392         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1393         to save TFmode registers and DImode to save TImode registers for
1394         caller save operations.
1395         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1396         mark being partially clobbered since they only use the first
1397         double word.
1399         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1400         and TDmode only use the upper 64-bits of each VSX register.
1402 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1404         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
1405         (find_candidates_in_block): Disable slsr_process_phi.
1407 2013-05-03  Guozhi Wei  <carrot@google.com>
1409         * coverage.c (coverage_obj_init): Move the construction of gcov
1410         constructor to ...
1411         (build_init_ctor): ... here.
1413 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1415         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
1416         (slsr_cand_d): Redefine def_phi.
1417         (stride_status, phi_adjust_status, count_phis_status): New enums.
1418         (find_phi_def): New.
1419         (find_basis_for_base_expr): New.
1420         (find_basis_for_candidate): Handle hidden bases.
1421         (alloc_cand_and_find_basis): Handle phi candidates.
1422         (slsr_process_phi): New.
1423         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1424         (create_mul_imm_cand): Likewise.
1425         (create_add_ssa_cand): Exclude phi base candidates.
1426         (create_add_imm_cand): Likewise.
1427         (slsr_process_cast): Likewise.
1428         (slsr_process_copy): Likewise.
1429         (find_candidates_in_block): Handle phi candidates.
1430         (dump_candidate): Likewise.
1431         (unconditional_cands): Delete.
1432         (unconditional_cands_with_known_stride_p): Delete.
1433         (phi_dependent_cand_p): New.
1434         (cand_increment): Handle phi-dependent candidates.
1435         (replace_dependent): Delete.
1436         (replace_mult_candidate): New.
1437         (replace_unconditional_candidate): New.
1438         (incr_vec_index): Move to avoid forward reference.
1439         (create_add_on_incoming_edge): New.
1440         (create_phi_basis): New.
1441         (replace_dependents): Delete.
1442         (replace_conditional_candidate): New.
1443         (phi_add_costs): New.
1444         (replace_uncond_cands_and_profitable_phis): New.
1445         (record_increment): Handle phi adjustments.
1446         (record_phi_increments): New.
1447         (record_increments): Handle phi adjustments.
1448         (phi_incr_cost): New.
1449         (lowest_cost_path): Handle phis.
1450         (total_savings): Likewise.
1451         (analyze_increments): Likewise.
1452         (ncd_with_phi): New.
1453         (ncd_of_cand_and_phis): New.
1454         (nearest_common_dominator_for_cands): Handle phi increments.
1455         (all_phi_incrs_profitable): New.
1456         (replace_profitable_candidates): Handle phi-dependent candidates.
1457         (analyze_candidates_and_replace): Likewise.
1459 2013-05-03  Teresa Johnson  <tejohnson@google.com>
1461         PR bootstrap/57154
1462         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
1463         do not exceed REG_BR_PROB_BASE.
1465 2013-05-03  Jeff Law  <law@redhat.com>
1467         PR tree-optimization/57144
1468         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
1469         operand of the condition will bit into the new type when eliminating
1470         a cast feeding a condition.
1472 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
1474         PR rtl-optimization/57130
1475         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
1476         of COMPARE as in_code to the recursive call if needed.
1478 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
1480         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
1481         (enabled): Handle new members.
1482         * config/i386/sse.md (*vec_concatv2si): Merge from
1483         *vec_concatv2si_sse2 and vec_concatv2si_sse.
1484         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
1486 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
1488         PR tree-optimization/57027
1489         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
1490         for fnms opportunity, check we got the prerequisite kind
1491         of tree / gimple before using accessor functions.
1493 2013-05-03  Richard Biener  <rguenther@suse.de>
1495         * double-int.h (lshift): New overload without precision
1496         and arith argument.
1497         (operator *=, operator +=, operator -=): Move ...
1498         * double-int.c (operator *=, operator +=, operator -=): ... here
1499         and implement more efficiently.
1500         (mul_double_with_sign): Remove.
1501         (lshift_double): Adjust to take unsinged shift argument, push
1502         dispatching code to callers.
1503         (mul_double_wide_with_sign): Add early out for callers that
1504         are not interested in high parts or overflow.
1505         (lshift): New function.
1506         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
1507         dispatch code here.
1508         (lrotate, rrotate): Use logical shifts.
1509         * expr.c (get_inner_reference): Use lshift.
1510         * fixed-value.c (do_fixed_divide): Likewise.
1511         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1512         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
1513         (indirect_refs_may_alias_p): Likewise.
1514         (stmt_kills_ref_p_1): Likewise.
1516 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
1518         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
1520 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
1522         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
1523         scalar form of FABD instruction.
1525 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
1527         * lra-constraints.c (process_alt_operands): Add checking alt
1528         number to choose the best alternative.
1530 2013-05-02  Richard Biener  <rguenther@suse.de>
1532         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
1533         bitmap and its handling.
1534         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
1536 2013-05-02  Richard Biener  <rguenther@suse.de>
1538         PR middle-end/57140
1539         * tree-inline.c (copy_loops): Properly handle removed loops.
1540         (copy_cfg_body): Mark destination loops for fixup if source
1541         loops needed fixup.
1543 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
1545         PR target/56732
1546         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
1547         generating simple_return for naked functions.
1549 2013-05-02  Martin Jambor  <mjambor@suse.cz>
1551         PR middle-end/56988
1552         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
1553         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
1554         flags match.
1555         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
1556         ipa_agg_replacement_value structures.
1557         (known_aggs_to_agg_replacement_list): Likewise.
1558         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
1559         (read_agg_replacement_chain): Likewise.
1560         (ipcp_transform_function): Also check that by_ref flags match.
1562 2013-05-02  Richard Biener  <rguenther@suse.de>
1564         * graphds.h (struct graph): Add obstack member.
1565         * graphds.c (new_graph): Initialize obstack and allocate
1566         vertices from it.
1567         (add_edge): Allocate edge from the obstack.
1568         (free_graph): Free the obstack instead of all edges and vertices.
1570 2013-05-02  Teresa Johnson  <tejohnson@google.com>
1572         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
1573         divides.
1574         * cfg.c (update_bb_profile_for_threading): Ditto.
1575         * tree-inline.c (copy_bb): Ditto.
1576         (copy_edges_for_bb): Ditto.
1577         (initialize_cfun): Ditto.
1578         (copy_cfg_body): Ditto.
1579         (expand_call_inline): Ditto.
1580         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
1581         (estimate_node_size_and_time): Ditto.
1582         (inline_merge_summary): Ditto.
1583         * cgraphclones.c (cgraph_clone_edge): Ditto.
1584         (cgraph_clone_node): Ditto.
1585         * sched-rgn.c (compute_dom_prob_ps): Ditto.
1586         (compute_trg_info): Ditto.
1588 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
1590         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
1591         S reg when fp attribute set.
1592         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
1594 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
1596         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
1597         New pattern.
1598         (*and_one_cmplsi3_compare0_uxtw): Likewise.
1599         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
1600         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
1602 2013-05-02  Richard Biener  <rguenther@suse.de>
1604         * tree-scalar-evolution.c (scev_info_hasher): Remove.
1605         (struct instantiate_cache_entry): New type.
1606         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
1607         (struct instantiate_cache_type): New type.
1608         (set_instantiated_value, get_instantiated_value): Remove.
1609         (get_instantiated_value_entry): New function.
1610         (instantiate_scev_name): Use the new cache and adjust.
1611         (instantiate_scev_poly): Adjust.
1612         (instantiate_scev_binary): Likewise.
1613         (instantiate_array_ref): Likewise.
1614         (instantiate_scev_convert): Likewise.
1615         (instantiate_scev_not): Likewise.
1616         (instantiate_scev_3): Likewise.
1617         (instantiate_scev_2): Likewise.
1618         (instantiate_scev_r): Likewise.
1619         (instantiate_scev): Likewise.
1620         (resolve_mixers): Likewise.
1622 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
1624         PR target/57091
1625         * lra-constraints.c (best_small_class_operands_num): Remove.
1626         (process_alt_operands): Remove small_class_operands_num.  Take
1627         small classes operands into losers and only if the operand is not
1628         matched.  Modify debugging output.
1629         (curr_insn_transform): Remove best_small_class_operands_num.
1630         Print insn name.
1632 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1634         * config/aarch64/aarch64-builtins.c
1635         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
1636         * config/aarch64/aarch64-simd-builtins.def
1637         (reduc_splus_): Add new modes.
1638         (reduc_uplus_): New.
1639         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
1640         (reduc_uplus_v4sf): Likewise.
1641         (reduc_splus_v4sf): Likewise.
1642         (aarch64_addv<mode>): Likewise.
1643         (reduc_uplus_<mode>): Likewise.
1644         (reduc_splus_<mode>): Likewise.
1645         (aarch64_addvv2di): Likewise.
1646         (reduc_uplus_v2di): Likewise.
1647         (reduc_splus_v2di): Likewise.
1648         (aarch64_addvv2si): Likewise.
1649         (reduc_uplus_v2si): Likewise.
1650         (reduc_splus_v2si): Likewise.
1651         (reduc_<sur>plus_<mode>): New.
1652         (reduc_<sur>plus_v2di): Likewise.
1653         (reduc_<sur>plus_v2si): Likewise.
1654         (reduc_<sur>plus_v4sf): Likewise.
1655         (aarch64_addpv4sf): Likewise.
1656         * config/aarch64/arm_neon.h
1657         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
1658         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
1659         add UNSPEC_SADDV, UNSPEC_UADDV.
1660         (SUADDV): New.
1661         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
1663 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1665         * config/aarch64/arm_neon.h
1666         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
1668 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1670         * config/aarch64/aarch64-builtins
1671         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
1673 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1675         * config/aarch64/aarch64-simd-builtins.def
1676         (reduc_smax_): New.
1677         (reduc_smin_): Likewise.
1678         (reduc_umax_): Likewise.
1679         (reduc_umin_): Likewise.
1680         (reduc_smax_nan_): Likewise.
1681         (reduc_smin_nan_): Likewise.
1682         (fmax): Remove.
1683         (fmin): Likewise.
1684         (smax): Update for V2SF, V4SF and V2DF modes.
1685         (smin): Likewise.
1686         (smax_nan): New.
1687         (smin_nan): Likewise.
1688         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
1689         (<su><maxmin><mode>3): ...This, refactor.
1690         (s<maxmin><mode>3): New.
1691         (<maxmin_uns><mode>3): Likewise.
1692         (reduc_<maxmin_uns>_<mode>): Refactor.
1693         (reduc_<maxmin_uns>_v4sf): Likewise.
1694         (reduc_<maxmin_uns>_v2si): Likewise.
1695         (aarch64_<fmaxmin><mode>: Remove.
1696         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
1697         new builtin names.
1698         (vmin<q>_f<32,64>): Likewise.
1699         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1700         (FMAXMIN): New.
1701         (su): Add mappings for smax, smin, umax, umin.
1702         (maxmin): New.
1703         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1704         (FMAXMIN): Rename as...
1705         (FMAXMIN_UNS): ...This.
1706         (maxminv): Remove.
1707         (fmaxminv): Likewise.
1708         (fmaxmin): Likewise.
1709         (maxmin_uns): New.
1710         (maxmin_uns_op): Likewise.
1712 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1714         * config/aarch64/arm_neon.h
1715         (vac<ge, gt><sd>_f<32, 64>): Rename to...
1716         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
1717         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
1719 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1721         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
1722         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
1724 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1726         * config/aarch64/aarch64-simd.md
1727         (vcond<mode>_internal): Handle special cases for constant masks.
1728         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
1729         (vcondu<mode><mode>): Likewise.
1730         (vcond<v_cmp_result><mode>): New.
1732 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1734         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
1735         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
1736         * config/aarch64/aarch64-simd-builtins.def
1737         (cmeq): Update to BUILTIN_VALLDI.
1738         (cmgt): Likewise.
1739         (cmge): Likewise.
1740         (cmle): Likewise.
1741         (cmlt): Likewise.
1742         * config/aarch64/arm_neon.h
1743         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
1744         to builtins or C as appropriate.
1746 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
1748         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
1749         (cmgeu): ...This.
1750         (cmhi): Rename to...
1751         (cmgtu): ...This.
1752         * config/aarch64/aarch64-simd.md
1753         (simd_mode): Add SF.
1754         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
1755         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
1756         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
1757         (cstore<mode>_neg): ...This.
1758         * config/aarch64/iterators.md
1759         (VALLF): new.
1760         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
1761         (COMPARISONS): New.
1762         (UCOMPARISONS): Likewise.
1763         (optab): Add missing comparisons.
1764         (n_optab): New.
1765         (cmp_1): Likewise.
1766         (cmp_2): Likewise.
1767         (CMP): Likewise.
1768         (cmp): Remove.
1769         (VCMP_S): Likewise.
1770         (VCMP_U): Likewise.
1771         (V_cmp_result): Add DF, SF modes.
1772         (v_cmp_result): Likewise.
1773         (v): Likewise.
1774         (vmtype): Likewise.
1775         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
1777 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
1779         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
1780         define_insn to define_insn_and_split.
1781         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
1782         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
1783         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
1784         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
1785         (thumb2_negscc): Likewise.
1787 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
1789         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
1791 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
1793         * config/arm/thumb2.md: Remove trailing whitespaces.
1795 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1797         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
1798         Use gen_int_mode rather than GEN_INT.
1800 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
1802         * value-prof.c (stream_in_histogram_value): Remove the strayed
1803         debug_gimple_stmt.
1805 2013-04-30  Richard Biener  <rguenther@suse.de>
1807         PR middle-end/57122
1808         * cfghooks.c (split_edge): Properly check for the loop latch edge.
1810 2013-04-30  Richard Biener  <rguenther@suse.de>
1812         PR middle-end/57107
1813         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
1815 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
1817         PR rtl-optimization/56957
1818         PR rtl-optimization/57105
1819         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
1820         variable.  Use just INSN_UID for determining whether an insn
1821         should be only disconnected from the insn stream.
1822         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
1824 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
1826         PR tree-optimization/57104
1827         * tsan.c (instrument_expr): Don't instrument accesses to
1828         DECL_HARD_REGISTER VAR_DECLs.
1830 2013-04-30  Richard Biener  <rguenther@suse.de>
1832         * function.h (loops_for_fn): New inline function.
1833         (set_loops_for_fn): Likewise.
1834         * cfgloop.h (place_new_loop): Add struct function parameter.
1835         (get_loop): Likewise.
1836         (get_loops): Likewise.
1837         (number_of_loops): Likewise.
1838         (fel_next): Adjust.
1839         (fel_init): Likewise.
1840         * cfg.c (get_loop_copy): Adjust.
1841         * cfgloop.c (flow_loops_dump): Likewise.
1842         (record_loop_exits): Likewise.
1843         (verify_loop_structure): Likewise.
1844         * cfgloopanal.c (mark_irreducible_loops): Likewise.
1845         (estimate_reg_pressure_cost): Likewise.
1846         (mark_loop_exit_edges): Likewise.
1847         * cfgloopmanip.c (place_new_loop): Likewise.
1848         (add_loop): Likewise.
1849         (duplicate_loop): Likewise.
1850         * graph.c (draw_cfg_nodes): Likewise.
1851         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
1852         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
1853         (extract_affine_chrec): Likewise.
1854         (build_scop_iteration_domain): Likewise.
1855         * graphite.c (graphite_initialize): Likewise.
1856         * ira-build.c (create_loop_tree_nodes): Likewise.
1857         (more_one_region_p): Likewise.
1858         (rebuild_regno_allocno_maps): Likewise.
1859         (mark_loops_for_removal): Likewise.
1860         (mark_all_loops_for_removal): Likewise.
1861         (remove_unnecessary_regions): Likewise.
1862         (ira_build): Likewise.
1863         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1864         * loop-init.c (fix_loop_structure): Likewise.
1865         (gate_rtl_move_loop_invariants): Likewise.
1866         (gate_rtl_unswitch): Likewise.
1867         (gate_rtl_unroll_and_peel_loops): Likewise.
1868         (rtl_doloop): Likewise.
1869         * lto-streamer-in.c (input_cfg): Likewise.
1870         * lto-streamer-out.c (output_cfg): Likewise.
1871         * modulo-sched.c (sms_schedule): Likewise.
1872         * predict.c (tree_estimate_probability): Likewise.
1873         (tree_estimate_probability_driver): Likewise.
1874         (estimate_loops): Likewise.
1875         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
1876         (move_sese_region_to_fn): Likewise.
1877         (debug_loop_num): Likewise.
1878         * tree-chrec.c (chrec_evaluate): Likewise.
1879         (hide_evolution_in_other_loops_than_loop): Likewise.
1880         (chrec_component_in_loop_num): Likewise.
1881         (reset_evolution_in_loop): Likewise.
1882         (evolution_function_is_invariant_rec_p): Likewise.
1883         * tree-if-conv.c (main_tree_if_conversion): Likewise.
1884         * tree-inline.c (copy_loops): Likewise.
1885         (copy_cfg_body): Likewise.
1886         (tree_function_versioning): Likewise.
1887         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
1888         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1889         Likewise.
1890         (add_to_evolution_1): Likewise.
1891         (scev_const_prop): Likewise.
1892         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
1893         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1894         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1895         (tree_ssa_lim_initialize): Likewise.
1896         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
1897         (verify_loop_closed_ssa): Likewise.
1898         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
1899         (tree_ssa_loop_im): Likewise.
1900         (tree_ssa_loop_unswitch): Likewise.
1901         (tree_vectorize): Likewise.
1902         (check_data_deps): Likewise.
1903         (tree_ssa_loop_ivcanon): Likewise.
1904         (tree_ssa_loop_bounds): Likewise.
1905         (tree_complete_unroll): Likewise.
1906         (tree_complete_unroll_inner): Likewise.
1907         (tree_parallelize_loops): Likewise.
1908         (tree_ssa_loop_prefetch): Likewise.
1909         (tree_ssa_loop_ivopts): Likewise.
1910         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
1911         * tree-vectorizer.c (vectorize_loops): Likewise.
1913 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
1915         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
1916         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
1917         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
1918         with EABI_LINK_SPEC.
1920 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
1922         PR target/44578
1923         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
1924         alternative.
1926 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
1928         PR target/57097
1929         * lra-constraints.c (process_alt_operands): Discourage a bit more
1930         using memory for pseudos.  Print cost dump for alternatives.
1931         Modify cost values for conflicts with early clobbers.
1932         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
1934 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
1936         PR target/57098
1937         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
1939 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
1941         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
1942         from/to S register.
1943         (movdi_aarch64): Support LDR/STR from/to D register.
1945 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
1947         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
1948         or higher by default.
1950 2013-04-29  Richard Biener  <rguenther@suse.de>
1952         PR middle-end/57075
1953         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
1954         even if not adding abnormal edges for calls that can make
1955         abnormal gotos.
1957 2013-04-29  Richard Biener  <rguenther@suse.de>
1959         PR middle-end/57103
1960         * tree-cfg.c (move_stmt_op): Fix condition under which to update
1961         TREE_BLOCK.
1962         (move_stmt_r): Remove redundant checking.
1964 2013-04-29  Teresa Johnson  <tejohnson@google.com>
1966         PR bootstrap/57077
1967         * basic-block.h (apply_scale): New function.
1968         (apply_probability): Use apply_scale.
1969         * gimple-streamer-in.c (input_bb): Ditto.
1970         * lto-streamer-in.c (input_cfg): Ditto.
1971         * lto-cgraph.c (merge_profile_summaries): Ditto.
1972         * tree-optimize.c (execute_fixup_cfg): Ditto.
1973         * tree-inline.c (copy_bb): Update comment to use apply_scale.
1974         (copy_edges_for_bb): Ditto.
1975         (copy_cfg_body): Ditto.
1977 2013-04-29  Tom de Vries  <tom@codesourcery.com>
1979         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
1980         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
1981         (tail_merge_optimize): Handle current_loops == NULL.
1983 2013-04-26  Jeff Law  <law@redhat.com>
1985         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
1986         (simplify_cond_using_ranges): Generalize code to simplify
1987         COND_EXPRs where one argument is a constant and the other
1988         is an SSA_NAME created by an integral type conversion.
1990 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1992         * config/arm/arm.md (store_minmaxsi): Use only when
1993         optimize_insn_for_size_p.
1995 2013-04-29  Christian Bruel  <christian.bruel@st.com>
1997         PR target/57108
1998         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2000 2013-04-29  Richard Biener  <rguenther@suse.de>
2002         PR middle-end/57089
2003         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
2004         loop tree make sure to schedule a fixup for the child as well.
2005         (expand_omp_for_generic): Properly add loops.
2006         (expand_omp_for_static_nochunk): Likewise.
2007         (expand_omp_for_static_chunk): Likewise.
2008         (expand_omp_for): For the degenerate case fixup loops.
2009         (expand_omp_sections): Fix default bb placement in loops.
2010         (expand_omp_atomic_pipeline): Properly add loops.
2012 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2014         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
2016 2013-04-29  Tom de Vries  <tom@codesourcery.com>
2018         * tree-ssa-tail-merge.c: Update header comment.
2020 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
2022         * config/aarch64/arm_neon.h
2023         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
2024         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
2025         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
2026         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
2027         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
2028         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
2029         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
2030         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
2032 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
2034         * config/aarch64/aarch64-simd.md
2035         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
2036         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
2037         fix_trunc, fixuns_trunc.
2038         (ftrunc<VDQF:mode>2): New.
2039         * config/aarch64/iterators.md (optab): Add fix, fixuns.
2040         (fix_trunc_optab): New.
2042 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
2044         * config/aarch64/aarch64-builtins.c
2045         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
2046         iceilf, lround, iroundf.
2048 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
2050         PR target/54349
2051         * config/i386/i386.h (enum ix86_tune_indices)
2052         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
2053         New, split from X86_TUNE_INTER_UNIT_MOVES.
2054         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
2055         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
2056         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
2057         (TARGET_INTER_UNIT_MOVES): Remove.
2058         * config/i386/i386.c (initial_ix86_tune_features): Update.
2059         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
2060         (ix86_expand_convert_uns_didf_sse): Use
2061         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2062         (ix86_expand_vector_init_one_nonzero): Ditto.
2063         (ix86_expand_vector_init_interleave): Ditto.
2064         (inline_secondary_memory_needed): Return true for moves from SSE class
2065         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
2066         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
2067         * config/i386/constraints.md (Yi, Ym): Depend on
2068         TARGET_INTER_UNIT_MOVES_TO_VEC.
2069         (Yj, Yn): New constraints.
2070         * config/i386/i386.md (*movdi_internal): Change constraints of
2071         operand 1 from Yi to Yj and from Ym to Yn.
2072         (*movsi_internal): Ditto.
2073         (*movdf_internal): Ditto.
2074         (*movsf_internal): Ditto.
2075         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
2076         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2077         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
2078         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
2079         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
2080         * config/i386/sse.md (movdi_to_sse): Ditto.
2081         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
2082         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
2083         TARGET_INTER_UNIT_MOVES.
2084         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
2085         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
2086         instead of TARGET_INTER_UNIT_MOVES.
2087         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
2088         operand 1 from Yi to Yj and from Ym to Yn.
2090 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
2092         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
2093         (float_truncate_hi_): Likewise.
2094         (float_extend_lo_): Likewise.
2095         (float_truncate_lo_): Likewise.
2096         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
2097         (aarch64_float_extend_lo_v2df): Likewise.
2098         (vec_unpacks_hi_v4sf): Likewise.
2099         (aarch64_float_truncate_lo_v2sf): Likewise.
2100         (aarch64_float_truncate_hi_v4sf): Likewise.
2101         (vec_pack_trunc_v2df): Likewise.
2102         (vec_pack_trunc_df): Likewise.
2104 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
2106         * config/aarch64/aarch64-builtins.c
2107         (aarch64_fold_builtin): Fold float conversions.
2108         * config/aarch64/aarch64-simd-builtins.def
2109         (floatv2si, floatv4si, floatv2di): New.
2110         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
2111         * config/aarch64/aarch64-simd.md
2112         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
2113         * config/aarch64/iterators.md (FLOATUORS): New.
2114         (optab): Add float, floatuns.
2115         (su_optab): Likewise.
2117 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
2119         * config/aarch64/aarch64-builtins.c
2120         (aarch64_builtin_vectorized_function): Use new names for
2121         fcvt builtins.
2122         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
2123         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
2124         (fcvtzu): Split as...
2125         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
2126         (fcvtas): Split as...
2127         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
2128         (fcvtau): Split as...
2129         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
2130         (fcvtps): Split as...
2131         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
2132         (fcvtpu): Split as...
2133         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
2134         (fcvtms): Split as...
2135         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
2136         (fcvtmu): Split as...
2137         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
2138         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
2139         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
2140         (lfrintnusf, lfrintnudf): Likewise.
2141         * config/aarch64/aarch64-simd.md
2142         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
2143         define_insn.
2144         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
2145         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
2146         (fcvt_pattern): Likewise.
2148 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
2150         * config/aarch64/aarch64-simd.md
2151         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
2152         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
2154 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
2156         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
2157         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
2158         (vrnd<a,m,n,p>_f32): Implement using builtins.
2159         (vrnd<i,x><q>_f<32, 64>): New.
2161 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
2163         * config/aarch64/aarch64-builtins.c
2164         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
2165         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
2166         (frintz): Rename to...
2167         (btrunc): ...this.
2168         (frintp): Rename to...
2169         (ceil): ...this.
2170         (frintm): Rename to...
2171         (floor): ...this.
2172         (frinti): Rename to...
2173         (nearbyint): ...this.
2174         (frintx): Rename to...
2175         (rint): ...this.
2176         (frinta): Rename to...
2177         (round): ...this.
2178         * config/aarch64/aarch64-simd.md
2179         (aarch64_frint<frint_suffix><mode>): Delete.
2180         (<frint_pattern><mode>2): Convert to insn.
2181         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
2182         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
2183         (frint_pattern): Likewise.
2184         (frint_suffix): Likewise.
2186 2013-04-29  Richard Biener  <rguenther@suse.de>
2188         PR tree-optimization/57081
2189         * loop-init.c: Include tree-flow.h.
2190         (loop_optimizer_finalize): Free number of iteration estimates.
2191         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
2193 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
2195         PR tree-optimization/57083
2196         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
2197         non-singleton shift count range, zero extend low_bound for uns case.
2199         * config/i386/predicates.md (general_vector_operand): New predicate.
2200         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
2201         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
2202         if they aren't nonimmediate operands.  If their original values
2203         satisfy const_vector_equal_evenodd_p, don't shift them.
2204         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
2205         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
2206         if not nonimmediate_operand.
2207         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
2208         instead of register_operand.
2209         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
2211 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
2213         * stor-layout.c (finalize_size_functions): Allocate a structure and
2214         reset cfun before dumping the functions.
2216 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
2218         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
2220         PR target/56866
2221         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
2222         use xop_pmacsdqh if uns_p.
2223         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
2224         the immediate rotate count.
2226 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
2228         * rtl.h (struct rtx_def): Add comment for field jump.
2229         (LRA_SUBREG_P): New macro.
2230         * recog.c (register_operand): Check LRA_SUBREG_P.
2231         * lra.c (lra): Add note at the end of RTL code. Align non-empty
2232         stack frame.
2233         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2234         (lra_final_code_change): Skip subreg change for operators.
2235         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2236         if there are no operand changes.
2237         * lra-constraints.c (curr_insn_set): New.
2238         (match_reload): Set LRA_SUBREG_P.
2239         (emit_spill_move): Ditto.
2240         (check_and_process_move): Use curr_insn_set. Process only single
2241         set insns.  Don't initialize sec_mem_p and change_p.
2242         (simplify_operand_subreg): Use LRA_SUBREG_P.
2243         (reg_in_class_p): New function.
2244         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
2245         of #ifdef.  Add code to remove cycling.
2246         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2247         non-null disp.  Reload inner instead of disp when base and index
2248         are null.  Try to put lo_sum into register.
2249         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2250         (check_and_process_move): Move code for move cost check to
2251         simple_move_p.  Remove equiv_substitution.
2252         (simple_move_p): New function.
2253         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
2254         curr_insn_set.  Call check_and_process_move only for single set
2255         insns.  Use the new function.  Move call of check_and_process_move
2256         after operand equiv substitution and address process.
2258 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
2260         PR go/57045
2261         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
2262         with nonlocal goto receivers or returns twice calls, ignore
2263         unininitialized values from abnormal edges to nl goto receiver
2264         or returns twice call.
2266 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
2268         PR tree-optimization/57051
2269         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
2270         and VEC_RSHIFT_EXPR if shift count is a multiple of element
2271         bitsize.
2273 2013-04-26  Richard Biener  <rguenther@suse.de>
2275         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
2276         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
2277         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
2278         (fixup_loop_arrays_after_move): New function.
2279         (move_sese_region_to_fn): Properly outline the loop tree parts
2280         of the SESE region.
2282 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
2284         * config/i386/i386.md (type, unit): Fix long lines.
2286 2013-04-26  Richard Biener  <rguenther@suse.de>
2288         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
2289         (lto-streamer-out.o): Likewise.
2290         * cfgloop.c (init_loops_structure): Export, add struct function
2291         argument and adjust.
2292         (flow_loops_find): Adjust.
2293         * cfgloop.h (enum loop_estimation): Add EST_LAST.
2294         (init_loops_structure): Declare.
2295         * lto-streamer-in.c: Include cfgloop.h.
2296         (input_cfg): Input the loop tree.
2297         * lto-streamer-out.c: Include cfgloop.h.
2298         (output_cfg): Output the loop tree.
2299         (output_struct_function_base): Do not drop PROP_loops.
2301 2013-03-26  Richard Biener  <rguenther@suse.de>
2303         * tree-cfg.c (execute_build_cfg): Build the loop tree.
2304         (pass_build_cfg): Provide PROP_loops.
2305         (move_sese_region_to_fn): Remove loops that are outlined into fn
2306         for now.
2307         * tree-inline.c: Include cfgloop.h.
2308         (initialize_cfun): Do not drop PROP_loops.
2309         (copy_loops): New function.
2310         (copy_cfg_body): Copy loop structure.
2311         (tree_function_versioning): Initialize destination loop tree.
2312         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
2313         (pass_parallelize_loops): Do IL verification.
2314         * loop-init.c (loop_optimizer_init): Fixup loops if required.
2315         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
2316         the CFG make sure we fixup loops as well.
2317         * tree-ssa-tail-merge.c: Include cfgloop.h.
2318         (replace_block_by): When merging loop latches mark loops for fixup.
2319         * lto-streamer-out.c (output_struct_function_base): Drop
2320         PROP_loops for now.
2321         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
2322         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
2323         * ipa-split.c: Include cfgloop.h.
2324         (split_function): Add the new return block to the loop tree root.
2325         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
2326         whether we have removed the forwarder block.
2327         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
2328         * cfgloop.h (place_new_loop): Declare.
2329         * cfgloopmanip.c (place_new_loop): Export.
2330         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
2331         (tree-switch-conversion.o): Likewise.
2332         (tree-complex.o): Likewise.
2333         (tree-inline.o): Likewise.
2334         (tree-ssa-tailmerge.o): Likewise.
2335         (ipa-split.o): Likewise.
2336         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
2337         (tree-ssa-copy.o): Likewise.
2338         * tree-switch-conversion.c: Include cfgloop.h
2339         (process_switch): If we emit a bit-test cascade, schedule loops
2340         for fixup.
2341         * tree-complex.c: Include cfgloop.h.
2342         (expand_complex_div_wide): Properly add new basic-blocks to loops.
2343         * asan.c: Include cfgloop.h.
2344         (create_cond_insert_point): Properly add new basic-blocks to
2345         loops, schedule loop fixup.
2346         * cfgloop.c (verify_loop_structure): Check that looks are not
2347         marked for fixup.
2348         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
2349         to loops.
2350         (expand_omp_for_generic): Likewise.
2351         (expand_omp_sections): Likewise.
2352         (expand_omp_atomic_pipeline): Schedule loops for fixup.
2353         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
2354         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
2355         is initialized, not when loops are present.
2356         * tree-parloops.c (parallelize_loops): Remove checking here.
2357         * passes.c (init_optimization_passes): Schedule a copy-propagation
2358         pass before complete unrolling of inner loops.
2360 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
2362         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
2363         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
2364         (colorize_init): Add argument to _WIN32 version.
2365         * toplev.c: Include diagnostic-color.h.
2366         (process_options): Default to -fdiagnostics-color=auto if
2367         GCC_COLORS env var is in the environment.
2368         * common.opt (fdiagnostics-color=): Add Var and Init.
2369         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
2370         env var is in the environment, the default is auto rather than never.
2372         * diagnostic.h (file_name_as_prefix): Add context argument.
2373         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
2374         the string as locus.
2375         * langhooks.c (lhd_print_error_function): Adjust caller.
2377 2013-04-25  Lawrence Crowl  <crowl@google.com>
2379         * var-tracking.c (shared_hash_def::htab):
2380         Change type to hash_table.  Update dependent calls and types.
2382 2013-04-25  Lawrence Crowl  <crowl@google.com>
2384         * Makefile.in: Update as needed below.
2386         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
2387         Move declaration to after the type's method definitons.
2389         * attribs.c (htab_t scoped_attributes::attribute_hash):
2390         Change type to hash_table.  Update dependent calls and types.
2392         * bitmap.c (htab_t bitmap_desc_hash):
2393         Change type to hash_table.  Update dependent calls and types.
2395         * cselib.c (htab_t cselib_hash_table):
2396         Change type to hash_table.  Update dependent calls and types.
2398         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
2399         (hash_string_slot_node): Move implementation into lto-streamer.h
2400         struct string_slot_hasher.
2401         (eq_string_slot_node): Likewise.
2403         * data-streamer-out.c: Update output_block::string_hash_table
2404         dependent calls and types.
2406         * dwarf2cfi.c (htab_t trace_index):
2407         Change type to hash_table.  Update dependent calls and types.
2409         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
2410         Change type to hash_table.  Update dependent calls and types.
2411         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
2412         (htab_t optimize_external_refs::map): Likewise.
2413         (htab_t output_comp_unit::extern_map): Likewise.
2414         (htab_t output_comdat_type_unit::extern_map): Likewise.
2415         (htab_t output_macinfo::macinfo_htab): Likewise.
2416         (htab_t optimize_location_lists::htab): Likewise.
2417         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2419         * except.c (htab_t ehspec_hash_type):
2420         Change type to hash_table.  Update dependent calls and types.
2421         (assign_filter_values::ttypes): Likewise.
2422         (assign_filter_values::ehspec): Likewise.
2423         (sjlj_assign_call_site_values::ar_hash): Likewise.
2424         (convert_to_eh_region_ranges::ar_hash): Likewise.
2426         * gcse.c (htab_t pre_ldst_table):
2427         Change type to hash_table.  Update dependent calls and types.
2429         * ggc-common.c (htab_t saving_htab):
2430         Change type to hash_table.  Update dependent calls and types.
2431         (htab_t loc_hash): Likewise.
2432         (htab_t ptr_hash): Likewise.
2433         (call_count): Rename ggc_call_count.
2434         (call_alloc): Rename ggc_call_alloc.
2435         (loc_descriptor): Rename make_loc_descriptor.
2436         (add_statistics): Rename ggc_add_statistics.
2438         * ggc-common.c (saving_htab):
2439         Change type to hash_table.  Update dependent calls and types.
2441         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2442         (push_gimplify_context): Likewise.
2443         (pop_gimplify_context): Likewise.
2444         (struct gimple_temp_hash_elt): Added.
2445         (struct gimplify_hasher): Likewise.
2446         (struct gimplify_ctx.temp_htab):
2447         Change type to hash_table.  Update dependent calls and types.
2449         * gimple-fold.c: Include gimplify-ctx.h.
2451         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
2452         Change type to hash_table.  Update dependent calls and types.
2453         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
2454         avoid potential global name collision.
2456         * gimplify.c: Include gimplify-ctx.h.
2457         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
2458         (htab_t gimplify_ctx::temp_htab):
2459         Update dependent calls and types for new type hash_table.
2460         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
2461         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
2463         * gimplify-ctx.h: New.
2464         (struct gimple_temp_hash_elt): Move from gimplify.c.
2465         (class gimplify_hasher): New.
2466         (struct gimplify_ctx): Move from gimple.h.
2467         (htab_t gimplify_ctx::temp_htab):
2468         Change type to hash_table.  Update dependent calls and types.
2470         * graphite-clast-to-gimple.c: Include graphite-htab.h.
2471         (htab_t ivs_params::newivs_index):
2472         Change type to hash_table.  Update dependent calls and types.
2473         (htab_t ivs_params::params_index): Likewise.
2474         (htab_t print_generated_program::params_index): Likewise.
2475         (htab_t gloog::newivs_index): Likewise.
2476         (htab_t gloog::params_index): Likewise.
2478         * graphite.c: Include graphite-htab.h.
2479         4htab_t graphite_transform_loops::bb_pbb_mapping):
2480         Change type to hash_table.  Update dependent calls and types.
2482         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
2483         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
2484         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
2486         * graphite-dependences.c: Include graphite-htab.h.
2487         (loop_is_parallel_p): Change hash table type of parameter.
2489         * graphite-htab.h: New.
2490         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
2491         (extern find_pbb_via_hash): Move from graphite-poly.h.
2492         (extern loop_is_parallel_p): Move from graphite-poly.h.
2493         (extern get_loop_body_pbbs): Move from graphite-poly.h.
2495         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
2496         (extern loop_is_parallel_p): Move to graphite-htab.h.
2497         (extern get_loop_body_pbbs): Move to graphite-htab.h.
2499         * haifa-sched.c (htab_t delay_htab):
2500         Change type to hash_table.  Update dependent calls and types.
2501         (htab_t delay_htab_i2): Likewise.
2503         * ira-color.c (htab_t allocno_hard_regs_htab):
2504         Change type to hash_table.  Update dependent calls and types.
2506         * ira-costs.c (htab_t cost_classes_htab):
2507         Change type to hash_table.  Update dependent calls and types.
2509         * loop-invariant.c (htab_t merge_identical_invariants::eq):
2510         Change type to hash_table.  Update dependent calls and types.
2512         * loop-iv.c (htab_t bivs):
2513         Change type to hash_table.  Update dependent calls and types.
2515         * loop-unroll.c (htab_t opt_info::insns_to_split):
2516         Change type to hash_table.  Update dependent calls and types.
2517         (htab_t opt_info::insns_with_var_to_expand): Likewise.
2519         * lto-streamer.h (struct string_slot): Move from data-streamer.h
2520         (struct string_slot_hasher): New.
2521         (htab_t output_block::string_hash_table):
2522         Change type to hash_table.  Update dependent calls and types.
2524         * lto-streamer-in.c (freeing_string_slot_hasher): New.
2525         (htab_t file_name_hash_table):
2526         Change type to hash_table.  Update dependent calls and types.
2528         * lto-streamer-out.c: Update output_block::string_hash_table dependent
2529         calls and types.
2531         * lto-streamer.c (htab_t tree_htab):
2532         Change type to hash_table.  Update dependent calls and types.
2534         * omp-low.c: Include gimplify-ctx.h.
2536         * passes.c (htab_t name_to_pass_map):
2537         Change type to hash_table.  Update dependent calls and types.
2538         (pass_traverse): Rename to passes_pass_traverse.
2540         * plugin.c (htab_t event_tab):
2541         Change type to hash_table.  Update dependent calls and types.
2543         * postreload-gcse.c (htab_t expr_table):
2544         Change type to hash_table.  Update dependent calls and types.
2545         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
2547         * sese.c (debug_rename_map_1): Make extern.
2548         (htab_t copy_bb_and_scalar_dependences::rename_map):
2549         Change type to hash_table.  Update dependent calls and types.
2551         * sese.h (extern debug_rename_map): Move to .c file.
2553         * store-motion.c (htab_t store_motion_mems_table):
2554         Change type to hash_table.  Update dependent calls and types.
2556         * trans-mem.c (htab_t tm_new_mem_hash):
2557         Change type to hash_table.  Update dependent calls and types.
2559         * tree-browser.c (htab_t TB_up_ht):
2560         Change type to hash_table.  Update dependent calls and types.
2562         * tree-cfg.c (htab_t discriminator_per_locus):
2563         Change type to hash_table.  Update dependent calls and types.
2565         * tree-complex.c: Include tree-hasher.h
2566         (htab_t complex_variable_components):
2567         Change type to hash_table.  Update dependent calls and types.
2569         * tree-eh.c (htab_t finally_tree):
2570         Change type to hash_table.  Update dependent calls and types.
2572         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
2573         struct int_tree_hasher.
2574         (extern int_tree_map_eq): Likewise.
2575         (uid_decl_map_hash): Removed.
2576         (extern decl_tree_map_eq): Likewise.
2578         * tree-hasher.h: New.
2579         (struct int_tree_hasher): New.
2580         (typedef int_tree_htab_type): New.
2582         * tree-inline.c: Include gimplify-ctx.h.
2584         * tree-mudflap.c: Include gimplify-ctx.h.
2586         * tree-parloops.c: Include tree-hasher.h.
2587         (htab_t eliminate_local_variables_stmt::decl_address):
2588         Change type to hash_table.  Update dependent calls and types.
2589         (htab_t separate_decls_in_region::decl_copies): Likewise.
2591         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
2592         Change type to hash_table.  Update dependent calls and types.
2594         * tree-sra.c (candidates):
2595         Change type to hash_table.  Update dependent calls and types.
2597         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
2598         in tree-flow.h.
2599         (int_tree_map_hash): Likewise.
2601         * tree-ssa-dom.c (htab_t avail_exprs):
2602         Change type to hash_table.  Update dependent calls and types.
2604         * tree-ssa-live.c (var_map_base_init::tree_to_index):
2605         Change type to hash_table.  Update dependent calls and types.
2607         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
2608         Change type to hash_table.  Update dependent calls and types.
2610         * tree-ssa-phiopt.c (seen_ssa_names):
2611         Change type to hash_table.  Update dependent calls and types.
2613         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
2614         Change type to hash_table.  Update dependent calls and types.
2616         * tree-ssa-uncprop.c (equiv):
2617         Change type to hash_table.  Update dependent calls and types.
2619 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
2621         PR rtl-optimization/57003
2622         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2623         call note_stores with kill_clobbered_value callback again after
2624         killing regs_invalidated_by_call.
2626 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
2628         * config/aarch64/aarch64-simd.md
2629         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
2630         (aarch64_simd_bsl<mode>): Likewise.
2631         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
2633 2013-04-25  Marek Polacek  <polacek@redhat.com>
2635         PR tree-optimization/57066
2636         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
2638 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
2640         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
2642 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
2644         * config/aarch64/aarch64-builtins.c
2645         (aarch64_fold_builtin): New.
2646         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
2647         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
2648         * config/aarch64/aarch64-simd-builtins.def (abs): New.
2649         * config/aarch64/arm_neon.h
2650         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
2652 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
2653             Tejas Belagod  <tejas.belagod@arm.com>
2655         * config/aarch64/aarch64-builtins.c
2656         (aarch64_gimple_fold_builtin): New.
2657         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
2658         * config/aarch64/aarch64-simd-builtins.def (addv): New.
2659         * config/aarch64/aarch64-simd.md (addpv4sf): New.
2660         (addvv4sf): Update.
2661         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
2663 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2665         * config/aarch64/aarch64.md
2666         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
2668 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2670         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
2671         (*ngcsi_uxtw): New pattern.
2673 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2674             Julian Brown  <julian@codesourcery.com>
2676         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
2677         (TB_DREG): Add T_V4HF.
2678         (v4hf_UP): New macro.
2679         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2680         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2681         Handle initialisation of V4HF. Adjust initialisation of reinterpret
2682         built-ins.
2683         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2684         (arm_vector_mode_supported_p): Handle V4HF.
2685         (arm_mangle_map): Handle V4HFmode.
2686         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
2687         * config/arm/arm_neon_builtins.def: Add entries for
2688         vcvtv4hfv4sf, vcvtv4sfv4hf.
2689         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
2690         (neon_vcvtv4hfv4sf): Likewise.
2691         * config/arm/neon-gen.ml: Handle half-precision floating point
2692         features.
2693         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
2694         * config/arm/arm_neon.h: Regenerate.
2695         * config/arm/neon.ml (type elts): Add F16.
2696         (type vectype): Add T_float16x4, T_floatHF.
2697         (type vecmode): Add V4HF.
2698         (type features): Add Requires_FP_bit feature.
2699         (elt_width): Handle F16.
2700         (elt_class): Likewise.
2701         (elt_of_class_width): Likewise.
2702         (mode_of_elt): Refactor.
2703         (type_for_elt): Handle F16, fix error messages.
2704         (vectype_size): Handle T_float16x4.
2705         (vcvt_sh): New function.
2706         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
2707         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
2708         (string_of_mode): Handle V4HF.
2709         * doc/arm-neon-intrinsics.texi: Regenerate.
2711 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
2713         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2714         format specifier in 'X' case.
2716 2013-04-25  Alan Modra  <amodra@gmail.com>
2718         PR target/57052
2719         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
2720         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
2721         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
2722         Repeat for many other rotate/shift and mask patterns using subregs.
2723         Name lshiftrt insns.
2724         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
2725         on WORDS_BIG_ENDIAN.
2727 2013-04-25  Alan Modra  <amodra@gmail.com>
2729         * config.gcc: Support little-endian powerpc-linux targets.
2730         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
2731         (LINK_OS_LINUX_SPEC): Define.
2732         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
2733         Preserve MASK_LITTLE_ENDIAN.
2734         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
2735         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
2736         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
2737         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
2738         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
2739         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
2740         Correct fp word order for little-endian.  Don't shift toc entries
2741         smaller than a word for little-endian.
2742         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
2743         (bswapdi2 splits): Correct low-part subreg for little-endian.
2744         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
2745         low/high where such is correct only for be.
2746         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
2747         little-endian for -mcall-aixdesc.
2749 2013-04-25  Alan Modra  <amodra@gmail.com>
2751         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
2752         replace_equiv_address_nv.
2754 2013-04-25  Alan Modra  <amodra@gmail.com>
2756         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
2758 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2760         Revert:
2761         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2762         * rtl.h (struct rtx_def): ...
2764 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2766         PR rtl-optimizations/57046
2767         * lra-constraints (split_reg): Set up lra_risky_transformations_p
2768         for multi-reg splits.
2770 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
2772         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
2774 2013-04-24  Sterling Augustine  <saugustine@google.com>
2776         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
2777         (comp_dir_string, debug_str_dwo_section): New.
2778         (DEBUG_STR_DWO_SECTION): Rename to ...
2779         (DEBUG_DWO_STR_SECTION): ... this.
2780         (DEBUG_NORM_STR_SECTION): Delete.
2781         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
2782         (DEBUG_STR_DWO_SECTION_FLAGS): New.
2783         (find_AT_string): Move most logic to ...
2784         (find_AT_string_in_table): ... here.  New.
2785         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
2786         add_skeleton_AT_string.  Delete logic.
2787         (output_skeleton_debug_sections): Remove call to
2788         add_top_level_skeleton_die_attrs.
2789         (add_comp_dir_attribute): Move logic to comp_dir_string.
2790         (dwarf2out_init): Initialize debug_str_dwo_section.
2791         (output_indirect_string): Call find_string_form.
2792         (output_indirect_strings): Rewrite.
2793         (prune_unused_types): Empty skeleton_debug_str_hash.
2794         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
2795         (dwarf2out_finish):  Call output_indirect_strings.
2797 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2799         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
2801 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2803         * rtl.h (struct rtx_def): Add comment for field jump.
2804         (LRA_SUBREG_P): New macro.
2805         * recog.c (register_operand): Check LRA_SUBREG_P.
2806         * lra.c (lra): Add note at the end of RTL code. Align non-empty
2807         stack frame.
2808         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2809         (lra_final_code_change): Skip subreg change for operators.
2810         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2811         if there are no operand changes.
2812         * lra-constraints.c (curr_insn_set): New.
2813         (match_reload): Set LRA_SUBREG_P.
2814         (emit_spill_move): Ditto.
2815         (check_and_process_move): Use curr_insn_set. Process only single
2816         set insns.  Don't initialize sec_mem_p and change_p.
2817         (simplify_operand_subreg): Use LRA_SUBREG_P.
2818         (reg_in_class_p): New function.
2819         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
2820         of #ifdef.  Add code to remove cycling.
2821         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2822         non-null disp.  Reload inner instead of disp when base and index
2823         are null.  Try to put lo_sum into register.
2824         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2825         (check_and_process_move): Move code for move cost check to
2826         simple_move_p.  Remove equiv_substitution.
2827         (simple_move_p): New function.
2828         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
2829         curr_insn_set.  Call check_and_process_move only for single set
2830         insns.  Use the new function.  Move call of check_and_process_move
2831         after operand equiv substitution and address process.
2833 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
2835         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
2836         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
2837         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
2839 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2841         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
2843 2013-04-24  Marek Polacek  <polacek@redhat.com>
2845         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
2846         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
2847         (select_loops_exit_conditions): Likewise.
2848         (number_of_iterations_for_all_loops): Likewise.
2849         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
2850         (scev_analysis): Likewise.
2852 2013-04-02  Catherine Moore  <clm@codesourcery.com>
2853             Chao-ying Fu <fu@mips.com>
2855         * config/mips/micromips.md (jraddiusp): New pattern.
2856         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
2857         instruction if possible.
2859 2013-04-24  Alan Modra  <amodra@gmail.com>
2861         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
2863 2013-04-24  Julian Brown  <julian@codesourcery.com>
2864             Chung-Lin Tang  <cltang@codesourcery.com>
2866         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
2867         dependency behavior in enumeration type DIE generation. Add TODO note
2868         to comments about future DW_FORM_sdata/udata re-work of related code.
2870 2013-04-23  Lawrence Crowl  <crowl@google.com>
2872         * Makefile.in: Update as needed below.
2874         * hash-table.h (class hash_table):
2875         Correct many methods with parameter types compare_type to the correct
2876         value_type.  (Correct code was unlikely to notice the change.)
2877         (hash_table::elements_with_deleted) New.
2878         (class hashtable::iterator): New.
2879         (hashtable::begin()): New.
2880         (hashtable::end()): New.
2881         (FOR_EACH_HASH_TABLE_ELEMENT): New.
2883         * statistics.c (statistics_hashes):
2884         Change type to hash_table.  Update dependent calls and types.
2886         * tree-into-ssa.c (var_infos):
2887         Change type to hash_table.  Update dependent calls and types.
2889         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
2890         Change type to hash_table.  Update dependent calls and types.
2892         * tree-ssa-loop-im.c (struct mem_ref.refs):
2893         Change type to hash_table.  Update dependent calls and types.
2895         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
2896         Change type to hash_table.  Update dependent calls and types.
2898         * tree-ssa-sccvn.c (vn_tables_s::nary):
2899         Change type to hash_table.  Update dependent calls and types.
2900         (vn_tables_s::phis): Likewise.
2901         (vn_tables_s::references): Likewise.
2903         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
2904         (vn_reference_eq): Update parameter and return types.
2906         * tree-ssa-structalias.c (pointer_equiv_class_table):
2907         Change type to hash_table.  Update dependent calls and types.
2908         (location_equiv_class_table): Likewise.
2910         * tree-vect-data-refs.c: Consequential changes for making
2911         peeling a hash_table.
2913         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
2914         (destroy_loop_vec_info): Dependent hash_table update.
2916         * tree-vectorizer.h (peeling_htab):
2917         Change type to hash_table.  Update dependent calls and types.
2919 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
2921         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
2922         to check the register content is equal or not.
2923         * lra-constraints.c (match_reload): Use lra_assign_reg_val
2924         to assign register content record.
2925         * lra-eliminations.c (update_reg_eliminate): Use
2926         lra_update_reg_val_offset to update register content offset.
2927         * lra-int.h (struct lra_reg): Add offset member.
2928         (lra_reg_val_equal_p): New static inline function.
2929         (lra_update_reg_val_offset): New static inline function.
2930         (lra_assign_reg_val): New static inline function.
2931         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
2932         to assign register content record.
2933         (initialize_lra_reg_info_element): Initial offset to zero.
2935 2013-04-23  Catherine Moore  <clm@codesourcery.com>
2937         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
2938         operands.  Record compression.
2940 2013-04-23  Xinliang David Li  <davidxl@google.com>
2942         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
2944 2013-04-23  Richard Biener  <rguenther@suse.de>
2946         PR middle-end/57036
2947         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
2948         parameter, only add abnormal goto edges from the copied body
2949         if the call could perform abnormal gotos.
2950         (copy_cfg_body): Adjust.
2952 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
2954         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
2956 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
2958         * coretypes.h (gimple_stmt_iterator): Add struct to make
2959         compatible with C.
2961 2013-04-23  Richard Biener  <rguenther@suse.de>
2963         PR tree-optimization/57026
2964         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
2965         from SSA names occuring in abnormal PHI nodes.
2967 2013-04-22  Andi Kleen  <ak@linux.intel.com>
2969         * lto/lto.c (print_lto_report_1): Fix LTO report names.
2971 2013-04-22  Andi Kleen  <ak@linux.intel.com>
2973         * lto/lto.c (print_lto_report_1): Declare early.
2974         (read_cgraph_and_symbols): Call print_lto_report_1 early.
2976 2013-04-22  Andi Kleen  <ak@linux.intel.com>
2978         * common.opt (-flto-report-wpa): Add.
2979         * doc/invoke.texi (-flto-report-wpa): Add.
2980         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
2981         (lto_main): dito.
2983 2013-04-22  Xinliang David Li  <davidxl@google.com>
2985         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
2986         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
2987         * Makefile.in: New dependency
2989             David Daney <ddaney.cavm@gmail.com>
2991         * configure.ac (gcc_cv_as_micromips_support):  Use the
2992         --fatal-warnings option.
2993         * configure: Regenerate.
2995 2013-04-22  Marek Polacek  <polacek@redhat.com>
2997         PR sanitizer/56990
2998         * tsan.c (instrument_expr): Don't instrument expression
2999         in case its size is zero.
3001 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
3003         PR target/57032
3004         Revert:
3005         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
3007         * config/alpha/alpha.c (TARGET_LRA_P): New define.
3009 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
3011         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
3012         (gimple_stmt_iterator): New typedef.
3013         * gimple.h (gimple_stmt_iterator): Rename to...
3014         (gimple_stmt_iterator_d): ... This.
3015         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
3016         trees be valid for GIMPLE and GENERIC.
3017         (TARGET_GIMPLE_FOLD_BUILTIN): New.
3018         * gimple-fold.c (gimple_fold_call): Call target hook
3019         gimple_fold_builtin.
3020         * hooks.c (hook_bool_gsiptr_false): New.
3021         * hooks.h (hook_bool_gsiptr_false): New.
3022         * target.def (fold_stmt): New.
3023         * doc/tm.texi: Regenerate.
3025 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
3027         PR target/57018
3028         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
3029         a set sp if no stack realignment.
3031 2013-04-22  Nick Clifton  <nickc@redhat.com>
3033         * config.gcc (tilegx-linux): Extend extra_objs rather than
3034         overwriting it.
3035         (tilepro-linux): Likewise.
3037 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
3039         * config/aarch64/aarch64-builtins.c
3040         (CF): Remove.
3041         (CF0, CF1, CF2, CF3, CF4, CF10): New.
3042         (VAR<1-12>): Add MAP parameter.
3043         (BUILTIN_*): Likewise.
3044         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
3045         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
3046         (aarch64_ushl_n<mode>): Likewise.
3047         (aarch64_sshr_n<mode>): Likewise.
3048         (aarch64_ushr_n<mode>): Likewise.
3049         (aarch64_<maxmin><mode>): Likewise.
3050         (aarch64_sqrt<mode>): Likewise.
3051         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
3052         (vshr<q>_n_*): Likewise.
3054 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
3056         * config/aarch64/aarch64-builtins.c
3057         (aarch64_simd_builtin_type_mode): Handle SF types.
3058         (sf_UP): Define.
3059         (BUILTIN_GPF): Define.
3060         (aarch64_init_simd_builtins): Handle SF types.
3061         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
3062         (frecps): Likewise.
3063         (frecpx): Likewise.
3064         * config/aarch64/aarch64-simd.md
3065         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
3066         (aarch64_frecpe<mode>): New.
3067         (aarch64_frecps<mode>): Likewise.
3068         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
3069         (v8type): Add frecp<esx>.
3070         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
3071         (aarch64_frecps<mode>): Likewise.
3072         * config/aarch64/iterators.md (FRECP): New.
3073         (frecp_suffix): Likewise.
3074         * config/aarch64/arm_neon.h
3075         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
3077 2013-04-22  Christian Bruel  <christian.bruel@st.com>
3079         PR target/56995
3080         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
3081         (REG_CLASS_NAMES): Idem.
3082         (REG_CLASS_CONTENTS): Idem.
3083         (REGCLASS_HAS_FP_REG): Idem.
3084         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
3085         (sh_conditional_register_usage): Idem.
3087 2013-04-21  Jeff Law  <law@redhat.com>
3089         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
3090         (ssa_forward_propagate_and_combine): Use it.
3092 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
3094         * lra.c: Update the flow chart diagram.
3096 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
3098         PR rtl-optimization/56847
3099         * lra-constraints.c (process_alt_operands): Discourage alternative
3100         with non-matche doffsettable memory constraint fro memory with
3101         known offset.
3103 2013-04-19  Richard Biener  <rguenther@suse.de>
3105         PR tree-optimization/56982
3106         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
3107         function.
3108         * gimplify.c (gimplify_call_expr): Notice special calls.
3109         (gimplify_modify_expr): Likewise.
3110         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
3111         abnormal control flow receivers.
3112         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
3113         in the same way as cfun->has_nonlocal_labels.
3114         (gimple_purge_dead_abnormal_call_edges): Likewise.
3115         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
3116         receivers start a basic-block.
3118 2013-04-19  Richard Biener  <rguenther@suse.de>
3120         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
3121         member ...
3122         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
3123         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
3124         (SLP_TREE_LOAD_PERMUTATION): Add.
3125         (vect_transform_slp_perm_load): Adjust prototype.
3126         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
3127         (vect_free_slp_instance): Likewise.
3128         (vect_create_new_slp_node): Likewise.
3129         (vect_supported_slp_permutation_p): Remove.
3130         (vect_slp_rearrange_stmts): Adjust.
3131         (vect_supported_load_permutation_p): Likewise.  Inline
3132         vect_supported_slp_permutation_p here.
3133         (vect_analyze_slp_instance): Compute load permutations per
3134         slp node instead of per instance.
3135         (vect_get_slp_defs): Adjust.
3136         (vect_transform_slp_perm_load): Likewise.
3137         (vect_schedule_slp_instance): Remove redundant code.
3138         (vect_schedule_slp): Remove hack for PR56270, add it ...
3139         * tree-vect-stmts.c (vectorizable_load): ... here, do not
3140         CSE loads for SLP.  Adjust.
3142 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
3144         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
3145         spelling in two comments.
3147 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
3149         PR target/56797
3150         * config/arm/arm.c (load_multiple_sequence): Require SP
3151         as base register for loads if SP is in the register list.
3153 2013-04-19  Martin Jambor  <mjambor@suse.cz>
3155         PR tree-optimization/56718
3156         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
3157         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
3158         and made public.  Adjusted all callers.
3159         (ipa_intraprocedural_devirtualization): New function.
3160         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
3161         (ipa_intraprocedural_devirtualization): Likewise.
3162         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
3164 2013-04-19  Richard Biener  <rguenther@suse.de>
3166         PR tree-optimization/57000
3167         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
3169 2013-04-19  Terry Guo  <terry.guo@arm.com>
3171         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
3172         Replace with ...
3173         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
3174         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
3175         (cortex_m4_fmacs): Use new reservations.
3176         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
3178 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
3180         PR rtl-optimization/56999
3181         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
3182         related code.
3183         (lra_coalesce): Remove split_origin_bitmap and related code.
3184         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
3185         ranges if necessary.
3187 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
3189         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
3190         New array.
3191         (ix86_expand_call): Remove clobbered_registers array and use
3192         x86_64_ms_sysv_extra_clobbered_registers instead.
3193         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
3194         Declare here.
3195         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
3196         predicate.
3197         * config/i386/i386.md (*call_rex64_ms_sysv): Use
3198         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
3199         (*call_value_rex64_ms_sysv): Ditto.
3201 2013-04-18  Cary Coutant  <ccoutant@google.com>
3203         * dwarf2out.c (output_pubnames): Check die_perennial_p of
3204         parent instead of die_mark.
3206 2013-04-18  Diego Novillo  <dnovillo@google.com>
3208         * gimple.c (create_gimple_tmp): New.
3209         (get_expr_type): New.
3210         (build_assign): New.
3211         (build_type_cast): New.
3212         * gimple.h (enum ssa_mode): Define.
3213         (gimple_seq_set_location): New.
3214         * asan.c (build_check_stmt): Change some gimple_build_* calls
3215         to use build_assign and build_type_cast.
3217 2013-04-18  Richard Biener  <rguenther@suse.de>
3219         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3220         handle negative step.  Remove redundant checks.
3221         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
3222         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
3223         for negative step and grouped loads fail to vectorize.
3225 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
3227         * emit-rtl.c (reset_insn_used_flags): New function.
3228         (reset_all_used_flags): Use it.
3229         (verify_insn_sharing): New function.
3230         (verify_rtl_sharing): Fix verification for SEQUENCEs.
3232 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
3234         PR tree-optimization/56984
3235         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
3236         and (x >> M) >= N don't register any assertion if N << M is the
3237         minimum value.
3239 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
3241         * lower-subreg.c (resolve_simple_move): If called self-recursive,
3242         do not delete_insn insns that have not yet been emitted, only
3243         unlink them with remove_insn.
3244         * df-scan.c (df_insn_delete): Revert r197492.
3246 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
3248         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
3249         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
3251 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
3253         * config/arm/arm.md (movsicc_insn): Convert define_insn into
3254         define_insn_and_split.
3255         (and_scc,ior_scc,negscc): Likewise.
3256         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
3258 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
3260         * config/arm/arm.c (use_return_insn): Return 0 for targets that
3261         can benefit from using a sequence of LDRD instructions in epilogue
3262         instead of a single LDM instruction.
3264 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3266         PR 45688
3267         * doc/extend.texi: Fix typo.
3269 2013-04-17  Richard Biener  <rguenther@suse.de>
3271         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
3272         (vect_build_slp_tree): ... here.
3273         (vect_build_slp_tree_1): Compute which stmts of the SLP group
3274         match.  Remove special-casing of mismatched complex loads.
3275         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
3276         re-try the match with swapped commutative operands.
3277         (vect_supported_load_permutation_p): Remove special-casing of
3278         mismatched complex loads.
3279         (vect_analyze_slp_instance): Adjust.
3281 2013-04-17  Richard Biener  <rguenther@suse.de>
3283         PR rtl-optimization/56921
3284         * cfgloop.h (struct loop): Add simple_loop_desc member.
3285         (struct niter_desc): Mark with GTY(()).
3286         (simple_loop_desc): Do not use aux field but simple_loop_desc.
3287         * loop-iv.c (get_simple_loop_desc): Likewise.
3288         (free_simple_loop_desc): Likewise.
3290         Revert
3291         2013-04-16  Richard Biener  <rguenther@suse.de>
3293         PR rtl-optimization/56921
3294         * loop-init.c (pass_rtl_move_loop_invariants): Add
3295         TODO_do_not_ggc_collect to todo_flags_finish.
3296         (pass_rtl_unswitch): Same.
3297         (pass_rtl_unroll_and_peel_loops): Same.
3298         (pass_rtl_doloop): Same.
3300 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3302         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
3303         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
3304         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
3305         references.
3306         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
3307         * tree-streamer.c (record_common_node): Adjust reference in comment.
3309 2013-04-17  Terry Guo  <terry.guo@arm.com>
3311         * config/arm/cortex-m4.md: Add a new bypass.
3313 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3315         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
3316         New pattern.
3317         (*subs_<optab><mode>_multp2): New pattern.
3318         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3319         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3321 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3323         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
3324         (*subs_mul_imm_<mode>): New pattern.
3326 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
3328         PR target/56948
3329         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
3330         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
3331         (vsx_movti_32bit): Change j->wa to O->wa.
3333 2013-04-16  Richard Biener  <rguenther@suse.de>
3335         PR rtl-optimization/56921
3336         * loop-init.c (pass_rtl_move_loop_invariants): Add
3337         TODO_do_not_ggc_collect to todo_flags_finish.
3338         (pass_rtl_unswitch): Same.
3339         (pass_rtl_unroll_and_peel_loops): Same.
3340         (pass_rtl_doloop): Same.
3342 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
3344         * config/arm/arm.c (emit_multi_reg_push): New declaration
3345         for an existing function.
3346         (arm_emit_strd_push): New function.
3347         (arm_expand_prologue): Used here.
3348         (arm_emit_ldrd_pop): New function.
3349         (arm_expand_epilogue): Used here.
3350         (arm_get_frame_offsets): Update condition.
3351         (arm_emit_multi_reg_pop): Add a special case for load of a single
3352         register with writeback.
3354 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
3356         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
3357         description.
3359 2013-04-16  Richard Biener  <rguenther@suse.de>
3361         PR tree-optimization/56756
3362         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
3363         (first_mem_ref_loc): New.
3364         (execute_sm): Place the load temporarily before a previous
3365         access instead of in the latch edge to ensure its SSA dependencies
3366         are defined at points dominating the load.
3368 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
3370         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
3371         correct fix by moving header and footer insn to the footer of
3372         the merged basic block.  Clear BB_END of the merged-away block.
3374         PR middle-end/43631
3375         * emit-rtl.c (make_note_raw): New function.
3376         (link_insn_into_chain): New static inline function.
3377         (add_insn): Use it.
3378         (add_insn_before, add_insn_after): Factor insn chain linking code...
3379         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
3380         using link_insn_into_chain.
3381         (note_outside_basic_block_p): New helper function for emit_note_after
3382         and emit_note_before.
3383         (emit_note_after): Use nobb variant of add_insn_after if the note
3384         should not be contained in a basic block.
3385         (emit_note_before): Use nobb variant of add_insn_before if the note
3386         should not be contained in a basic block.
3387         (emit_note_copy): Use make_note_raw.
3388         (emit_note): Likewise.
3389         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
3390         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
3391         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
3392         the moved barrier the tail of the basic block it follows.
3393         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
3395 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
3397         PR tree-optimization/56962
3398         * gimple-ssa-strength-reduction.c (record_increment): Only set
3399         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3400         either rhs1 or rhs2 is equal to c->base_expr.
3402 2013-04-15  Richard Biener  <rguenther@suse.de>
3404         PR tree-optimization/56933
3405         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
3406         member.
3407         (GROUP_READ_WRITE_DEPENDENCE): Remove.
3408         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
3409         * tree-vect-data-refs.c (vect_analyze_group_access): Move
3410         dependence check ...
3411         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
3412         ... here.
3413         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
3414         GROUP_READ_WRITE_DEPENDENCE.
3416 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3418         * emit-rtl.c (reset_all_used_flags): New function.
3419         (verify_rtl_sharing): Call reset_all_used_flags before and after
3420         performing the checks.
3422 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3424         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3425         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3426         * config/arm/constraints.md (De): New constraint.
3427         * config/arm/neon.md (anddi3_neon): Delete.
3428         (neon_vand<mode>): Expand to standard anddi3 pattern.
3429         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3430         Move earlier in the file.
3431         (neon_inv_logic_op2): Likewise.
3432         (arm_anddi_operand_neon): New predicate.
3434 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3436         * configure.ac (gcc_cv_ld_as_needed): Set
3437         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3438         Use -z ignore, -z record on *-*-solaris2*.
3439         (HAVE_LD_AS_NEEDED): Update comment.
3440         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3441         * configure: Regenerate.
3442         * config.in: Regenerate.
3443         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3444         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3445         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3446         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3447         equivalents.  Fix markup.
3448         * doc/tm.texi: Regenerate.
3450 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
3452         * config/i386/i386.opt: New option mstack-protector-guard=.
3453         * config/i386/i386-opts.h: Add enum stack_protector_guard.
3454         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
3455         TARGET_SSP_TLS_GUARD.
3456         * config/i386/i386.c (ix86_option_override_internal): Set
3457         ix86_stack_protector_guard.
3458         * config/i386/i386.md (stack_protect_set): Enable for
3459         TARGET_SSP_TLS_GUARD only.
3460         (stack_protect_set_<mode>): Ditto.
3461         (stack_protect_test): Ditto.
3462         (stack_protect_test_<mode>): Ditto.
3463         * doc/invoke.texi (i386 Option): Document.
3465 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3467         PR target/56890
3468         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
3469         (S_MODES): Set H_MODE bit.
3470         (SF_MODES): Set only S_MODE and SF_MODE bits.
3471         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
3472         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
3473         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
3474         <MODE_FLOAT>: Likewise.
3476 2013-04-15  Joey Ye  <joey.ye@arm.com>
3478         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
3480 2013-04-15  Joey Ye  <joey.ye@arm.com>
3482         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
3483         for real far jump.
3484         (thumb_far_jump_used_p): Count instruction size and set
3485         far_jump_used.
3487 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
3489         * reorg.c (fill_simple_delay_slots): Reindent block of code.
3490         * resource.c (mark_target_live_regs): Reformat conditional block.
3492 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
3494         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
3495         notes, they are emitted only just before final.
3496         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
3498 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
3500         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
3501         * cfgrtl.c (delete_insn): Call it here instead.
3502         * lra-spills.c (lra_final_code_change): Use delete_insn.
3503         * haifa-sched.c (sched_remove_insn): Likewise.
3504         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
3505         returning to the nop pool.
3506         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
3507         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
3509 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
3511         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
3512         * doc/tm.texi: Regenerated.
3514 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
3516         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
3517         QImode checks.
3519 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
3521         * df-core.c (df_find_def): Compare register numbers.
3522         (df_find_use): Likewise.
3524 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
3526         PR target/56903
3527         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
3528         lra_in_progress for return.
3530 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
3532         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
3533         define_insn into define_insn_and_split and emit movsicc patterns.
3535 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
3537         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
3539 2013-04-12  Richard Biener  <rguenther@suse.de>
3541         * tree-pass.h (TODO_do_not_ggc_collect): New.
3542         * passes.c (execute_one_ipa_transform_pass): Honor
3543         TODO_do_not_ggc_collect.
3544         (execute_one_pass): Likewise.
3546         Revert
3547         2013-04-10  Richard Biener  <rguenther@suse.de>
3549         * passes.c (init_optimization_passes): Remove reload pass.
3550         * ira.c (do_reload): Merge into ...
3551         (ira): ... this.
3552         (rest_of_handle_reload): Remove.
3553         (pass_reload): Likewise.
3554         * config/i386/i386.c (ix86_option_override): Refer to ira instead
3555         of reload for vzeroupper pass placement.
3557 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
3559         PR tree-optimization/56918
3560         PR tree-optimization/56920
3561         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
3562         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
3563         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
3564         use wide_mul_with_sign method.
3566 2013-04-12  Richard Biener  <rguenther@suse.de>
3568         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
3569         not be considered a gimple constant.
3571 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
3573         * fold-const.c (const_binop): Handle vector shifts by a scalar.
3574         (fold_binary_loc): Call const_binop also for mixed vector-scalar
3575         operations.
3577 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3578             Jakub Jelinek  <jakub@redhat.com>
3580         * opts.c: Include diagnostic-color.h.
3581         (common_handle_option): Handle OPT_fdiagnostics_color_.
3582         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
3583         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
3584         (diagnostic-color.o): New.
3585         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
3586         (diagnostic_color_rule): New enum.
3587         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
3588         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
3589         the location string.
3590         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
3591         either NULL, or color kind.
3592         * diagnostic-color.c: New file.
3593         * diagnostic-color.h: New file.
3594         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
3595         arguments.
3596         * doc/invoke.texi (-fdiagnostics-color): Document.
3597         * pretty-print.h (pp_show_color): Define.
3598         (struct pretty_print_info): Add show_color field.
3599         * diagnostic.c: Include diagnostic-color.h.
3600         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
3601         macros.  Colorize error:, warning: etc. strings and also the location
3602         string.
3603         (diagnostic_show_locus): Colorize the caret line.
3604         * pretty-print.c: Include diagnostic-color.h.
3605         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
3606         inside of %< %> quotes or quoted through q format modifier.
3608 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3610         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
3612 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3614         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
3615         code in CC_NZ mode.
3616         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
3617         pattern.
3619 2013-04-11  Marek Polacek  <polacek@redhat.com>
3621         PR tree-optimization/48184
3622         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
3624 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3626         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
3627         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
3628         (skip_simple_arithmetic): Tidy up.
3629         * tree.h (skip_simple_constant_arithmetic): Declare.
3631 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3633         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
3635 2013-04-11  Richard Biener  <rguenther@suse.de>
3637         * tree-vect-loop.c (get_initial_def_for_induction): Properly
3638         generate vector constants.
3640 2013-04-11  Richard Biener  <rguenther@suse.de>
3642         PR tree-optimization/56878
3643         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
3644         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
3645         New function.
3646         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3647         Prefer to align the DR with the most invariant base address.
3649 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3651         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
3652         comment.
3654 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
3656         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
3657         floating-point vector comparisons against 0.
3659 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
3661         PR tree-optimization/56899
3662         * fold-const.c (extract_muldiv_1): Apply distributive law
3663         only if TYPE_OVERFLOW_WRAPS (ctype).
3665 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
3667         PR target/56124
3668         * ira-costs.c (scan_one_insn): Check whether the source rtx of
3669         loading has side effect.
3671 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
3673         * config/sparc/sparc.c: Include tree-pass.h.
3674         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
3675         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
3676         head of file.  Change return type.  Split off gate function.
3677         (sparc_gate_work_around_errata): New function.
3678         (pass_work_around_errata): New pass definition.
3679         (insert_pass_work_around_errata) New pass insert definition to
3680         insert pass_work_around_errata just after delayed-branch scheduling.
3681         (sparc_option_override): Insert the pass.
3682         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
3684 2013-04-10  David S. Miller  <davem@davemloft.net>
3686         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
3687         or -mcpu=hypersparc.
3689         * target.def (cstore_mode): New hook.
3690         * target.h: Include insn-codes.h
3691         * targhooks.c: Likewise.
3692         (default_cstore_mode): New function.
3693         * targhooks.h: Declare it.
3694         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
3695         * doc/tm.texi: Rebuild.
3696         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
3697         target hook, rather than inspecting the insn_data.
3698         * config/sparc/sparc.c (sparc_cstore_mode): New function.
3699         (TARGET_CSTORE_MODE): Redefine.
3700         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
3701         result patterns.
3702         * config/sparc/predicates.md (cstore_result_operand): New special
3703         predicate.
3704         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
3705         Use it for operand 0.
3706         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
3707         (*snesi_special): Likewise.
3708         (*snesi_zero): Likewise.
3709         (*seqsi_zero): Likewise.
3710         (*sltu_insn): Likewise.
3711         (*sgeu_insn): Likewise.
3712         (*seqdi_special): Make operand 0 and comparison operation be of
3713         DImode.
3714         (*snedi_special): Likewise.
3715         (*snedi_special_vis3): Likewise.
3716         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
3717         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
3718         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
3719         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
3720         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
3721         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
3722         (*sltu_extend_sp64): Likewise.
3723         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
3724         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
3725         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
3726         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
3727         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
3729 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
3731         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
3732         (aarch64_start_file): Use the new function.
3734 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3735             Jason Merrill  <jason@redhat.com>
3737         * common.opt: Add -gdwarf.
3738         * opts.c (common_handle_option): Handle it.
3739         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
3741 2013-04-10  Richard Biener  <rguenther@suse.de>
3743         * passes.c (execute_todo): Do not call ggc_collect conditional here.
3744         (execute_one_ipa_transform_pass): But unconditionally here.
3745         (execute_one_pass): And here.
3746         (init_optimization_passes): Remove reload pass.
3747         * tree-pass.h (TODO_ggc_collect): Remove.
3748         (pass_reload): Likewise.
3749         * ira.c (do_reload): Merge into ...
3750         (ira): ... this.
3751         (rest_of_handle_reload): Remove.
3752         (pass_reload): Likewise.
3753         * config/i386/i386.c (ix86_option_override): Refer to ira instead
3754         of reload for vzeroupper pass placement.
3755         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
3756         and todo_flags_finish of all passes.
3758 2013-04-10  Richard Biener  <rguenther@suse.de>
3760         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
3761         first_const_oprnd field, rename first_def_type to first_op_type.
3762         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
3763         (vect_get_and_check_slp_defs): Always use the type of the
3764         operand.  Allow mixed vect_external_def, vect_constant_def types.
3765         (vect_get_constant_vectors): Handle mixed vect_external_def,
3766         vect_constant_def types.
3768 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
3770         PR tree-optimization/55524
3771         * tree-ssa-math-opts.c
3772         (convert_mult_to_fma): Don't use an fms construct
3773         when we don't have an fms operation, but fnma, and it looks
3774         likely that we'll be able to use the latter.
3776 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3778         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
3779         function.
3780         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
3781         inline fail caused by overwritable functions.
3783 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
3785         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
3786         unnecessary bits in the constant power of two case.
3788 2013-04-10  Richard Biener  <rguenther@suse.de>
3790         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
3791         broken code swapping operands.
3792         (vect_build_slp_tree): Do not compute load permutations here.
3793         (vect_analyze_slp_instance): Compute load permutations here,
3794         after building the SLP tree.
3796 2013-04-09  Christian Bruel  <christian.bruel@st.com>
3798         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
3799         of next/prev_real_insn.
3801 2013-04-09  Jan Hubicka  <jh@suse.cz>
3803         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3804         Drop aliased parameter.
3805         (function_and_variable_visibility): Do not handle alias pairs.
3806         * cgraph.c (varpool_externally_visible_p): Update prototype.
3807         * varpool.c (varpool_add_new_variable): Update.
3809 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3811         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
3813 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
3815         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
3817         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
3819 2013-04-09  Marek Polacek  <polacek@redhat.com>
3821         PR tree-optimization/48762
3822         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
3824 2013-04-09  Richard Biener  <rguenther@suse.de>
3826         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
3827         dealing with cost.
3828         (vect_build_slp_tree): Likewise.
3829         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
3830         calculating the cost of a SLP instance.
3831         (vect_analyze_slp_instance): Use it from here, after building
3832         the SLP tree.
3834 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
3836         PR middle-end/56883
3837         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3838         expand_omp_for_static_chunk): Use simple_p = true in
3839         force_gimple_operand_gsi calls when assigning to addressable decls.
3841 2013-04-09  Jeff Law  <law@redhat.com>
3843         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
3844         when the boolean was created by converting a wider object which
3845         had a boolean range.
3847 2013-04-09  Richard Biener  <rguenther@suse.de>
3849         * tree-vectorizer.h (slp_void_p): Remove.
3850         (slp_tree): Typedef before _slp_tree declaration.
3851         (struct _slp_tree): Use a vector of slp_tree as children.
3852         (vect_get_place_in_interleaving_chain): Remove.
3853         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
3854         Move ...
3855         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
3856         and make static.
3857         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
3858         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
3859         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
3860         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
3861         Use slp_node instead of slp_void_p and adjust.
3863 2013-04-09  Richard Biener  <rguenther@suse.de>
3865         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
3866         work that is not necessary.
3868 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
3870         PR tree-optimization/56854
3871         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
3872         forward into clobber stmts if it would change MEM_REF lhs into
3873         non-MEM_REF.
3875 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
3877         * tree.c (type_hash_lookup, type_hash_add): Make static.
3878         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
3880 2013-04-09  Richard Biener  <rguenther@suse.de>
3882         * tree.h (unsave_expr_now): Remove.
3883         * tree-inline.c (mark_local_for_remap_r): Remove.
3884         (unsave_expr_1): Likewise.
3885         (unsave_r): Likewise.
3886         (unsave_expr_now): Likewise.
3887         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
3888         (propagate_tree_value): Likewise.
3890 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
3892         * doc/rtl.texi (sequence): Rewrite documentation to match the
3893         current use of SEQUENCE rtl objects.
3894         * rtl.def (SEQUENCE): Likewise.
3896         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
3897         Update documentation.
3898         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
3899         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
3901         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
3903 2013-04-08  Teresa Johnson  <tejohnson@google.com>
3905         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
3906         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
3907         methods.
3908         (estimate_edge_size_and_time): Add comment to suggest using rounding
3909         methods.
3910         (estimate_node_size_and_time): Ditto.
3911         (remap_edge_change_prob): Use helper rounding divide methods.
3912         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
3913         (gimple_mod_pow2_value_transform): Ditto.
3914         (gimple_mod_subtract_transform): Ditto.
3915         (gimple_ic_transform): Ditto.
3916         (gimple_stringops_transform): Ditto.
3917         * stmt.c (conditional_probability): Ditto.
3918         (emit_case_dispatch_table): Ditto.
3919         * lto-cgraph.c (merge_profile_summaries): Ditto.
3920         * tree-optimize.c (execute_fixup_cfg): Ditto.
3921         * cfgcleanup.c (try_forward_edges): Ditto.
3922         * cfgloopmanip.c (scale_loop_profile): Ditto.
3923         (loopify): Ditto.
3924         (duplicate_loop_to_header_edge): Ditto.
3925         (lv_adjust_loop_entry_edge): Ditto.
3926         * tree-vect-loop.c (vect_transform_loop): Ditto.
3927         * profile.c (compute_branch_probabilities): Ditto.
3928         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
3929         * lto-streamer-in.c (input_cfg): Ditto.
3930         * gimple-streamer-in.c (input_bb): Ditto.
3931         * ipa-cp.c (update_profiling_info): Ditto.
3932         (update_specialized_profile): Ditto.
3933         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
3934         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
3935         rounding methods.
3936         * sched-rgn.c (compute_dom_prob_ps): Ditto.
3937         (compute_trg_info): Ditto.
3938         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
3939         (purge_dead_edges): Ditto.
3940         * loop-unswitch.c (unswitch_loop): Ditto.
3941         * cgraphclones.c (cgraph_clone_edge): Ditto.
3942         (cgraph_clone_node): Ditto.
3943         * tree-inline.c (copy_bb): Ditto.
3944         (copy_edges_for_bb): Ditto.
3945         (initialize_cfun): Ditto.
3946         (copy_cfg_body): Ditto.
3947         (expand_call_inline): Ditto.
3949 2013-04-08  Kai Tietz  <ktietz@redhat.com>
3951         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
3952         TARGET_CYGWIN64 by TARGET_64BIT.
3954 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3956         * config/epiphany/epiphany.md (GPR_1): New constant.
3957         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
3958         * config/epiphany/epiphany.c (gen_compare_reg):
3959         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
3960         is already in place.
3961         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
3962         Don't require being called during rtl expansion; If y operlaps r0,
3963         return 0.
3964         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
3965         (epiphany_expand_epilogue): Likewise.
3967         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
3968         Don't use CC_FPmode for ORDERED / UNORDERED.
3969         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
3971         * config/epiphany/constraints.md (CnL): New constraint.
3972         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
3973         * config/epiphany/predicates.md (add_operand): Allow 1024.
3975         * config/epiphany/epiphany.md (logical_op): New code iterator.
3976         (op_mnc): New code attribute.
3977         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
3978         (mov_f+1, mov_f+2): New peephole2 patterns.
3980         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
3981         (cstoresi4): Also allow re-use of zero result when doing a NE
3982         comparison to a non-zero operand.
3983         Use (clobber (scratch)) for first insn if the gpr output is not needed.
3985         * config/epiphany/epiphany.md (<insn_opname>v2si3):
3986         Use gen_addsi3_i / gen_subsi3_i.
3988 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
3990         PR c++/34949
3991         PR c++/50243
3992         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
3993         contain anything but clobbers, at most one __builtin_stack_restore,
3994         optionally debug stmts and final resx, and if it has at least one
3995         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
3996         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
3997         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
3998         which isn't defaut definition, remove them.
3999         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
4000         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
4001         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
4002         with MEM_REF LHS with SSA_NAME address.
4004 2013-04-08  Jeff Law  <law@redhat.com>
4006         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
4008 2013-04-08  Richard Biener  <rguenther@suse.de>
4010         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
4011         extra newline.
4012         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
4013         determined vector type.
4014         (vect_analyze_data_refs): Likewise.
4015         (vect_get_new_vect_var): Adjust.
4016         (vect_create_destination_var): Preserve SSA name versions.
4017         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
4018         not dump anything here.
4020 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
4022         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
4023         Add member lr_slot_known.
4024         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
4025         if necessary.
4026         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
4027         Remove code that sets lr_slot_offset according to what a previous
4028         version of epiphany_emit_save_restore used to do.
4029         (epiphany_emit_save_restore): When doing an lr save or restore,
4030         set/verify lr_slot_known and lr_slot_offset.
4032 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
4034         PR target/54338
4035         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
4036         in ALL_REGS.
4038 2013-04-08  Richard Biener  <rguenther@suse.de>
4040         * alias.c (find_base_term): Fix thinko in previous change.
4042 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
4044         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
4045         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
4046         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
4047         if possible to compute val.
4048         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
4049         For QImode integers don't require anything about precision.  Use
4050         const_with_all_bytes_same to find out if the constant doesn't have
4051         repeated bytes in it.
4053 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4055         * config/s390/s390.c (s390_expand_insv): Only accept insertions
4056         within mode size.
4058 2013-04-08  Marek Polacek  <polacek@redhat.com>
4060         PR rtl-optimization/48182
4061         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
4062         value to 1.
4064 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4066         PR target/55487
4067         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
4068         nuses, make sure we have a label.
4070 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4072         PR target/56843
4073         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
4074         (rs6000_emit_swdiv_low_precision): Remove.
4075         (rs6000_emit_swdiv): Rewrite to handle between one and four
4076         iterations of Newton-Raphson generally; modify required number of
4077         iterations for some cases.
4078         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
4080 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
4082         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
4083         set-but-unused variable.
4085         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
4086         basic blocks of released function bodies garbage-collectable.
4088         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
4089         (struct rtl_opt_pass): Add TODO_df_finish.
4091         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
4093 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
4095         * config/arm/constraints.md (q): New constraint.
4096         * config/arm/ldrdstrd.md: New file.
4097         * config/arm/arm.md (ldrdstrd.md) New include.
4098         (arm_movdi): Use "q" instead of "r" constraint
4099         for double-word memory access.
4100         (movdf_soft_insn): Likewise.
4101         * config/arm/vfp.md (movdi_vfp): Likewise.
4102         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
4103         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4104         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
4105         (mem_ok_for_ldrd_strd): Likewise.
4106         (output_move_double): Update assertion.
4108 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
4110         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
4112 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
4114         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
4115         define_insn_and_split.
4116         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
4118 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
4120         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
4121         define_insn_and_split.
4122         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
4123         (shiftsi3_compare): New pattern.
4124         (rrx): New pattern.
4125         * config/arm/unspecs.md (UNSPEC_RRX): New.
4127 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
4129         * config/arm/arm.md (negdi_extendsidi): New pattern.
4130         (negdi_zero_extendsidi): Likewise.
4132 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
4134         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
4135         define_insn_and_split.
4136         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
4137         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
4139 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
4141         * config/arm/arm.md (arm_subdi3): Convert define_insn into
4142         define_insn_and_split.
4143         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
4144         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
4146 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
4148         * config/arm/arm.md (subsi3_carryin): New pattern.
4149         (subsi3_carryin_const): Likewise.
4150         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
4151         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
4153 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
4155         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
4157 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
4159         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
4160         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
4162 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4164         * config/arm/arm.c (arm_expand_builtin): Change fcode
4165         type to unsigned int.
4167 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4169         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
4171 2013-04-04  Ian Lance Taylor  <iant@google.com>
4173         * doc/standards.texi (Standards): The Go frontend supports the Go 1
4174         language standard.
4176 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
4178         PR middle-end/56729
4179         * df-scan.c (df_insn_delete): Disable failing assert.
4181 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4183         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
4184         New function prototype.
4185         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
4186         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
4187         (arm_builtin_vectorized_function): New function.
4189 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4191         * config/arm/arm_neon_builtins.def: New file.
4192         * config/arm/arm.c (neon_builtin_data): Move contents to
4193         arm_neon_builtins.def.
4194         (enum arm_builtins): Include neon builtin definitions.
4195         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
4196         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
4198 2013-04-04  Marek Polacek  <polacek@redhat.com>
4200         PR tree-optimization/48186
4201         * predict.c (maybe_hot_frequency_p): Return false if
4202         HOT_BB_FREQUENCY_FRACTION is 0.
4203         (cgraph_maybe_hot_edge_p): Likewise.
4205 2013-04-04  Richard Biener  <rguenther@suse.de>
4207         PR tree-optimization/56826
4208         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
4209         more accurately.
4211 2013-04-04  Richard Biener  <rguenther@suse.de>
4213         PR tree-optimization/56213
4214         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
4215         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
4217 2013-04-04  Richard Biener  <rguenther@suse.de>
4219         PR tree-optimization/56837
4220         * tree-loop-distribution.c (classify_partition): For non-zero
4221         values require that the value has the same precision as its
4222         mode to be useful as memset value.
4224 2013-04-03  Nick Clifton  <nickc@redhat.com>
4226         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
4227         (fmssf4): Use fmsf.s on E3V5 architectures.
4228         (fnmasf4): Use fnmaf.s on E3V5 architectures.
4229         (fnmssf4): Use fnmsf.s on E3V5 architectures.
4231 2013-04-03  Jeff Law  <law@redhat.com>
4233         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
4234         (lra-eliminations.o): Likewise.
4236 2013-04-03  Teresa Johnson  <tejohnson@google.com>
4238         * gcov-io.c (compute_working_sets): Moved most of body of old
4239         compute_working_sets here from profile.c.
4240         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
4241         (gcov_working_set_t): Moved typedef here from basic-block.h
4242         (compute_working_set): Declare.
4243         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
4244         (get_working_sets): Renamed from compute_working_set,
4245         replace most of body with call to new compute_working_sets.
4246         (get_exec_counts): Replace call to compute_working_sets
4247         to get_working_sets.
4248         * profile.h (get_working_sets): Renamed from compute_working_set.
4249         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
4250         to get_working_sets.
4251         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
4252         * gcov-dump.c (dump_working_sets): New function.
4254 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
4256         * hwint.c (sext_hwi, zext_hwi): New functions.
4257         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
4258         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
4259         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
4260         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
4261         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
4262         (sext_hwi, zext_hwi): New functions.
4264 2013-04-03  Jeff Law  <law@redhat.com>
4266         PR tree-optimization/56799
4267         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
4268         back test for widening conversion erroneously dropped in prior change.
4270 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4272         PR target/56809
4273         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
4274         instead of next_real_insn.
4276 2013-04-03  Marek Polacek  <polacek@redhat.com>
4278         PR sanitizer/55702
4279         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
4281 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4283         PR target/56809
4284         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
4285         next_real_insn.
4286         (thumb1_output_casesi): Likewise.
4287         (thumb2_output_casesi): Likewise.
4289 2013-04-03  Richard Biener  <rguenther@suse.de>
4291         PR tree-optimization/56817
4292         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4293         Split out ...
4294         (tree_unroll_loops_completely_1): ... new function to manually
4295         walk the loop tree, properly defering outer loops of unrolled
4296         loops to later iterations.
4298 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
4300         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
4301         (vectorizable_load): Likewise.
4302         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
4303         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
4305 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
4307         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
4308         BIT_FIELD_REF.
4310 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4312         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
4314 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
4316         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
4318 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
4320         PR tree-optimization/56790
4321         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
4322         folding.
4324 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
4326         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4327         Handle VEC_MERGE.
4328         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
4329         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
4330         equal arguments.
4332 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
4334         PR c/19449
4335         * tree.h (force_folding_builtin_constant_p): New decl.
4336         * builtins.c (force_folding_builtin_constant_p): New variable.
4337         (fold_builtin_constant_p): Fold immediately also if
4338         force_folding_builtin_constant_p.
4340 2013-04-03  Richard Biener  <rguenther@suse.de>
4342         PR tree-optimization/56812
4343         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4344         DRs of the same interleaving chain are independent.
4346 2013-04-02  Jason Merrill  <jason@redhat.com>
4348         * gdbinit.in (pbb): Use debug fn.
4350 2013-04-02  Lawrence Crowl  <crowl@google.com>
4352         * sese.h (struct ivtype_map_elt_s): Remove unused.
4353         (extern debug_ivtype_map): Remove unused.
4354         (extern eq_ivtype_map_elts): Remove unused.
4355         * sese.c (debug_ivtype_map): Removed unused.
4356         (debug_ivtype_map_1): Removed unused.
4357         (debug_ivtype_elt): Remove unused.
4358         (eq_ivtype_map_elts): Remove unused.
4361 2013-04-02  Kai Tietz  <ktietz@redhat.com>
4363         PR target/52790
4364         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
4365         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
4366         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
4367         function.
4368         (legitimize_pe_coff_symbol): Likewise.
4369         (is_imported_p): New helper-function.
4370         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
4371         for Windows x64 targets.
4372         (ix86_expand_prologue): Optimize for pe-coff targets.
4373         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
4374         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
4375         medium/large code-model.
4376         (legitimize_pic_address): Likewise.
4377         (legitimize_tls_address): Likewise.
4378         (ix86_expand_call): Likewise.
4379         (x86_output_mi_thunk): Likewise.
4380         (get_dllimport_decl): Add new beimport argument.
4381         (construct_plt_address): Don't assert for x64 pe-coff targets.
4382         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
4383         targets.
4384         (SYMBOL_FLAG_STUBVAR): New macro.
4385         (SYMBOL_REF_STUBVAR_P): Likewise.
4386         * config/i386/winnt.c (stub_list): New structure.
4387         (stub_head): New local variable.
4388         (i386_pe_record_stub): New function.
4389         (i386_pe_file_end): Emit refptr-stubs.
4391 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
4393         PR rtl-optimization/56745
4394         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
4395         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
4397         PR c++/34949
4398         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
4399         and both of them are MEM_REFs, just compare first argument for
4400         equality and attempt to deal even with differing offsets.
4402         PR c++/34949
4403         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
4404         of gimple_clobber_p to be MEM_REF.
4405         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
4406         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
4407         after gimplification.
4408         * asan.c (get_mem_ref_of_assignment): Don't instrument
4409         gimple_clobber_p stmts.
4410         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
4411         gimple_clobber_p stmt if they have MEM_REF lhs and
4412         are dead because of another gimple_clobber_p stmt.
4413         * tree-ssa-live.c (clear_unused_block_pointer): Treat
4414         gimple_clobber_p stmts like debug stmts.
4415         (remove_unused_locals): Remove clobbers with MEM_REF lhs
4416         that refer to unused VAR_DECLs or uninitialized values.
4417         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
4418         gimple_clobber_p stmts if they refer to removed parameters.
4419         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4420         formatting.
4422 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
4424         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4425         using SWI48 mode attribute.
4427 2013-04-02  Wei Mi  <wmi@google.com>
4429         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4430         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4431         *<rotate_insn><mode>3_mask in i386.md.
4433 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4435         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4437 2013-04-02  Richard Biener  <rguenther@suse.de>
4439         PR tree-optimization/56778
4440         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4441         Runtime alias tests are not supported for gather loads.
4442         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4443         stmts referenced from SSA operands before updating SSA form.
4445 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
4446             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4448         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
4449         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
4450         * config/arm/cortex-a53.md: New file.
4451         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
4452         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
4453         * config/arm/arm.c (arm_issue_rate): Likewise.
4454         * config/arm/arm-tune.md: Regenerate
4455         * config/arm/arm-tables.opt: Regenerate.
4456         * config/arm/arm-cores.def: Add cortex-a53.
4458 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4460         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
4461         non-static link.
4463 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
4465         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
4466         scalar load/store operations using B/H registers.
4467         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
4469 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
4471         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
4472         scalar move.
4473         * config/aarch64/aarch64.c
4474         (aarch64_simd_scalar_immediate_valid_for_move): New.
4475         * config/aarch64/aarch64-protos.h
4476         (aarch64_simd_scalar_immediate_valid_for_move): New.
4477         * config/aarch64/constraints.md (Dh, Dq): New.
4478         * config/aarch64/iterators.md (hq): New.
4480 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
4482         * reorg.c (get_branch_condition): Deal with conditional returns.
4483         (fill_simple_delay_slots): Remove dead code dealing with jumps.
4485 2013-04-01  Wei Mi  <wmi@google.com>
4487         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
4488         Truncate operand 2 using %b asm operand modifier.
4489         (*<shift_insn><mode>3_mask): Ditto.
4490         (*<rotate_insn><mode>3_mask): Ditto.
4492 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
4494         PR middle-end/56798
4495         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
4497 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4499         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
4500         of next_real_insn.
4501         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
4503 2013-03-30  Lawrence Crowl  <crowl@google.com>
4505         * dse.c (clear_alias_sets): Remove never set.
4506         (disqualified_clear_alias_sets): Remove never set.
4507         (clear_alias_mode_pool): Remove never set.
4508         (dse_step0): Remove condition that is never true.
4509         (canon_address): Remove condition that is never true.
4510         (dse_step7): Remove condition that is never true.
4511         (rest_of_handle_dse): Remove condition that is never true.
4512         (rest_of_handle_dse::did_global): Remove never read from above.
4513         (dse_step2_spill): Remove never called from above.
4514         (dse_step5_spill): Remove never called from above.
4516 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
4518         * doc/md.texi (Standard Names) <casesi>: Update documentation for
4519         JUMP_TABLE_DATA changes.
4520         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
4521         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
4522         (Insns) <jump_table_data>: New entry.
4523         * doc/tm.texi: Regenerate.
4525         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
4527         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
4528         for table jump at the end of a basic block using tablejump_p.
4529         * targhooks.c (default_invalid_within_doloop): Likewise.
4530         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
4531         target hook implementation that is identical to the default hook.
4532         (rs6000_invalid_within_doloop): Remove.
4534         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
4535         unused variable from tablejump_p call.
4537         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
4538         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
4539         (INSN_DELETED_P): Likewise.
4540         (emit_jump_table_data): New prototype.
4541         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
4542         after 4th as unused.
4543         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
4544         * sched-vis.c (print_insn): Likewise.
4545         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
4546         insn for compatibility with back ends that use next_active_insn to
4547         identify jump table data.
4548         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
4549         (remove_insn): Likewise.
4550         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
4551         to be emitted.
4552         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
4553         (emit_jump_table_data): New function.
4555         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
4556         basic block, a JUMP_TABLE_DATA never is.
4557         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
4558         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
4559         off from code handling real insns.
4560         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
4561         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
4562         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
4563         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
4564         is not a NONDEBUG_INSN_P.
4565         * ira-costs.c (scan_one_insn): Likewise.
4566         * jump.c (mark_all_labels): Likewise.
4567         (mark_jump_label_1): Likewise.
4568         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4569         * lra.c (get_insn_freq): Expect all insns reaching here to be in
4570         a basic block.
4571         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
4572         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
4573         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
4574         JUMP_TABLE_DATA_P insns.
4575         (calculate_elim_costs_all_insns): Likewise.
4576         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
4577         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
4578         (delete_output_reload): Code style fixups.
4579         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
4580         insn flags on this non-insn.
4581         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
4582         as scheduling barriers, for pre-change compatibility.
4583         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
4584         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
4586         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
4587         redundant JUMP_TABLE_DATA_P test.
4588         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
4589         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4590         (frv_for_each_packet): Likewise.
4591         * config/i386/i386.c (min_insn_size): Likewise.
4592         (ix86_avoid_jump_mispredicts): Likewise.
4593         * config/m32r/m32r.c (m32r_is_insn): Likewise.
4594         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
4595         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4596         (mips16_insn_length): Robustify.
4597         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
4598         (mips16_split_long_branches): Likewise.
4599         * config/pa/pa.c (pa_combine_instructions): Likewise.
4600         * config/rs6000/rs6000.c (get_next_active_insn): Treat
4601         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
4602         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
4603         as contributing to pool range lengths.
4604         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
4605         Remove redundant JUMP_TABLE_DATA_P test.
4606         (sh_loop_align): Likewise.
4607         (split_branches): Likewise.
4608         (sh_insn_length_adjustment): Likewise.
4609         * config/spu/spu.c (get_branch_target): Likewise.
4611 2013-03-29  Jan Hubicka  <jh@suse.cz>
4613         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
4614         gcov streaming; stream hot bb threshold to ltrans.
4615         * predict.c (get_hot_bb_threshold): Break out from ....
4616         (maybe_hot_count_p): ... here.
4617         (set_hot_bb_threshold): New function.
4618         * lto-section-in.c (lto_section_name): Add profile.
4619         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
4620         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
4621         and data-streamer.h
4622         (histogram_entry): New structure.
4623         (histogram, histogram_pool): New global vars.
4624         (histogram_hash): New structure.
4625         (histogram_hash::hash): New method.
4626         (histogram_hash::equal): Likewise.
4627         (account_time_size): New function.
4628         (cmp_counts): New function.
4629         (dump_histogram): New function.
4630         (ipa_profile_generate_summary): New function.
4631         (ipa_profile_write_summary): New function.
4632         (ipa_profile_read_summary): New function.
4633         (ipa_profile): Decide on threshold.
4634         (pass_ipa_profile): Add ipa_profile_write_summary and
4635         ipa_profile_read_summary.
4636         * Makefile.in (ipa.o): Update dependencies.
4637         * lto-streamer.h (LTO_section_ipa_profile): New section.
4639 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4641         * tree.h (VAR_P): New.
4643 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
4645         PR lto/56777
4646         * doc/invoke.texi ([-fwhole-program]): Fix typo.
4648 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
4650         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
4651         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4652         (control_flow_insn_p): Likewise.
4653         * cfgrtl.c (duplicate_insn_chain): Likewise.
4654         * final.c (get_attr_length_1): Likewise.
4655         (shorten_branches): Likewise.
4656         (final_scan_insn): Likewise.
4657         * function.c (instantiate_virtual_regs): Likewise.
4658         * gcse.c (insert_insn_end_basic_block): Likewise.
4659         * ira-costs.c (scan_one_insn): Likewise.
4660         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4661         * lra.c (check_rtl): Likewise.
4662         * reload1.c (elimination_costs_in_insn): Likewise.
4663         * reorg.c (follow_jumps): Likewise.
4665         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
4666         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4667         (thumb_far_jump_used_p): Likewise.
4668         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
4669         (workaround_speculation): Likewise.
4670         (add_sched_insns_for_speculation): Likewise.
4671         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
4672         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4673         (frv_for_each_packet): Likewise.
4674         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
4675         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
4676         (final_emit_insn_group_barriers): Likewise.
4677         * config/m32r/m32r.c (m32r_is_insn): Likewise.
4678         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4679         (mips16_insn_length): Likewise.
4680         * config/pa/pa.c (pa_reorg): Likewise.
4681         (pa_combine_instructions): Likewise.
4682         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
4683         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
4684         (sh_reorg): Likewise.
4685         (split_branches): Likewise.
4686         * config/spu/spu.c (get_branch_target): Likewise.
4688         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
4689         JUMP_TABLE_DATA_P.
4691 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
4693         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4694         Fix declaration name.
4696 2013-03-28  Lawrence Crowl  <crowl@google.com>
4698         * graphds.h (struct graph.indicies): Remove unused.
4699         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
4700         (SCOP_ORIGINAL_PDDRS): Remove unused.
4701         * sese.h (extern insert_loop_close_phis): Removed unused.
4702         (extern insert_guard_phis): Removed unused.
4703         (extern ivtype_map_elt_info): Removed unused.
4704         (new_ivtype_map_elt): Removed unused.
4705         * sese.c (ivtype_map_elt_info): Removed unused.
4707 2013-03-28  Lawrence Crowl  <crowl@google.com>
4709         * Makefile.in: Add several missing include dependences.
4710         (DUMPFILE_H): New.
4711         (test-dump.o): New.  This object is not added to any executable,
4712         but is present for ad-hoc testing.
4713         * bitmap.c
4714         (debug (const bitmap_head_def &)): New.
4715         (debug (const bitmap_head_def *)): New.
4716         * bitmap.h
4717         (extern debug (const bitmap_head_def &)): New.
4718         (extern debug (const bitmap_head_def *)): New.
4719         * cfg.c
4720         (debug (edge_def &)): New.
4721         (debug (edge_def *)): New.
4722         * cfghooks.c
4723         (debug (basic_block_def &)): New.
4724         (debug (basic_block_def *)): New.
4725         * dumpfile.h
4726         (dump_node (const_tree, int, FILE *)): Correct source file.
4727         * dwarf2out.c
4728         (debug (die_struct &)): New.
4729         (debug (die_struct *)): New.
4730         * dwarf2out.h
4731         (extern debug (die_struct &)): New.
4732         (extern debug (die_struct *)): New.
4733         * gimple-pretty-print.c
4734         (debug (gimple_statement_d &)): New.
4735         (debug (gimple_statement_d *)): New.
4736         * gimple-pretty-print.h
4737         (extern debug (gimple_statement_d &)): New.
4738         (extern debug (gimple_statement_d *)): New.
4739         * ira-build.c
4740         (debug (ira_allocno_copy &)): New.
4741         (debug (ira_allocno_copy *)): New.
4742         (debug (ira_allocno &)): New.
4743         (debug (ira_allocno *)): New.
4744         * ira-int.h
4745         (extern debug (ira_allocno_copy &)): New.
4746         (extern debug (ira_allocno_copy *)): New.
4747         (extern debug (ira_allocno &)): New.
4748         (extern debug (ira_allocno *)): New.
4749         * ira-lives.c
4750         (debug (live_range &)): New.
4751         (debug (live_range *)): New.
4752         * lra-int.h
4753         (debug (lra_live_range &)): New.
4754         (debug (lra_live_range *)): New.
4755         * lra-lives.c
4756         (debug (lra_live_range &)): New.
4757         (debug (lra_live_range *)): New.
4758         * omega.c
4759         (debug (omega_pb_d &)): New.
4760         (debug (omega_pb_d *)): New.
4761         * omega.h
4762         (extern debug (omega_pb_d &)): New.
4763         (extern debug (omega_pb_d *)): New.
4764         * print-rtl.c
4765         (debug (const rtx_def &)): New.
4766         (debug (const rtx_def *)): New.
4767         * print-tree.c
4768         (debug_tree (tree): Move within file.
4769         (debug_raw (const tree_node &)): New.
4770         (debug_raw (const tree_node *)): New.
4771         (dump_tree_via_hooks (const tree_node *, int)): New.
4772         (debug (const tree_node &)): New.
4773         (debug (const tree_node *)): New.
4774         (debug_verbose (const tree_node &)): New.
4775         (debug_verbose (const tree_node *)): New.
4776         (debug_head (const tree_node &)): New.
4777         (debug_head (const tree_node *)): New.
4778         (debug_body (const tree_node &)): New.
4779         (debug_body (const tree_node *)): New.
4780         (debug_vec_tree (tree): Move and reimplement in terms of dump.
4781         (debug (vec<tree, va_gc> &)): New.
4782         (debug (vec<tree, va_gc> *)): New.
4783         * rtl.h
4784         (extern debug (const rtx_def &)): New.
4785         (extern debug (const rtx_def *)): New.
4786         * sbitmap.c
4787         (debug_raw (simple_bitmap_def &)): New.
4788         (debug_raw (simple_bitmap_def *)): New.
4789         (debug (simple_bitmap_def &)): New.
4790         (debug (simple_bitmap_def *)): New.
4791         * sbitmap.h
4792         (extern debug (simple_bitmap_def &)): New.
4793         (extern debug (simple_bitmap_def *)): New.
4794         (extern debug_raw (simple_bitmap_def &)): New.
4795         (extern debug_raw (simple_bitmap_def *)): New.
4796         * sel-sched-dump.c
4797         (debug (vinsn_def &)): New.
4798         (debug (vinsn_def *)): New.
4799         (debug_verbose (vinsn_def &)): New.
4800         (debug_verbose (vinsn_def *)): New.
4801         (debug (expr_def &)): New.
4802         (debug (expr_def *)): New.
4803         (debug_verbose (expr_def &)): New.
4804         (debug_verbose (expr_def *)): New.
4805         (debug (vec<rtx> &)): New.
4806         (debug (vec<rtx> *)): New.
4807         * sel-sched-dump.h
4808         (extern debug (vinsn_def &)): New.
4809         (extern debug (vinsn_def *)): New.
4810         (extern debug_verbose (vinsn_def &)): New.
4811         (extern debug_verbose (vinsn_def *)): New.
4812         (extern debug (expr_def &)): New.
4813         (extern debug (expr_def *)): New.
4814         (extern debug_verbose (expr_def &)): New.
4815         (extern debug_verbose (expr_def *)): New.
4816         (extern debug (vec<rtx> &)): New.
4817         (extern debug (vec<rtx> *)): New.
4818         * sel-sched-ir.h
4819         (_list_iter_cond_expr): Make inline instead of static.
4820         * sreal.c
4821         (debug (sreal &)): New.
4822         (debug (sreal *)): New.
4823         * sreal.h
4824         (extern debug (sreal &)): New.
4825         (extern debug (sreal *)): New.
4826         * tree.h
4827         (extern debug_raw (const tree_node &)): New.
4828         (extern debug_raw (const tree_node *)): New.
4829         (extern debug (const tree_node &)): New.
4830         (extern debug (const tree_node *)): New.
4831         (extern debug_verbose (const tree_node &)): New.
4832         (extern debug_verbose (const tree_node *)): New.
4833         (extern debug_head (const tree_node &)): New.
4834         (extern debug_head (const tree_node *)): New.
4835         (extern debug_body (const tree_node &)): New.
4836         (extern debug_body (const tree_node *)): New.
4837         (extern debug (vec<tree, va_gc> &)): New.
4838         (extern debug (vec<tree, va_gc> *)): New.
4839         * tree-cfg.c
4840         (debug (struct loop &)): New.
4841         (debug (struct loop *)): New.
4842         (debug_verbose (struct loop &)): New.
4843         (debug_verbose (struct loop *)): New.
4844         * tree-dump.c: Add header dependence.
4845         * tree-flow.h
4846         (extern debug (struct loop &)): New.
4847         (extern debug (struct loop *)): New.
4848         (extern debug_verbose (struct loop &)): New.
4849         (extern debug_verbose (struct loop *)): New.
4850         * tree-data-ref.c
4851         (debug (data_reference &)): New.
4852         (debug (data_reference *)): New.
4853         (debug (vec<data_reference_p> &)): New.
4854         (debug (vec<data_reference_p> *)): New.
4855         (debug (vec<ddr_p> &)): New.
4856         (debug (vec<ddr_p> *)): New.
4857         * tree-data-ref.h
4858         (extern debug (data_reference &)): New.
4859         (extern debug (data_reference *)): New.
4860         (extern debug (vec<data_reference_p> &)): New.
4861         (extern debug (vec<data_reference_p> *)): New.
4862         (extern debug (vec<ddr_p> &)): New.
4863         (extern debug (vec<ddr_p> *)): New.
4864         * tree-ssa-alias.c
4865         (debug (pt_solution &)): New.
4866         (debug (pt_solution *)): New.
4867         * tree-ssa-alias.h
4868         (extern debug (pt_solution &)): New.
4869         (extern debug (pt_solution *)): New.
4870         * tree-ssa-alias.c
4871         (debug (_var_map &)): New.
4872         (debug (_var_map *)): New.
4873         (debug (tree_live_info_d &)): New.
4874         (debug (tree_live_info_d *)): New.
4875         * tree-ssa-alias.h
4876         (extern debug (_var_map &)): New.
4877         (extern debug (_var_map *)): New.
4878         (extern debug (tree_live_info_d &)): New.
4879         (extern debug (tree_live_info_d *)): New.
4881 2013-03-28  Jan Hubicka  <jh@suse.cz>
4883         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
4885 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
4887         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
4888         record only when desired or required.
4890 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
4892         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
4893         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
4895 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4897         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
4898         (*andsi3_compare0_uxtw): New pattern.
4899         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
4900         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
4902 2013-03-28  Jan Hubicka  <jh@suse.cz>
4904         * data-streamer-in.c (streamer_read_gcov_count): New function.
4905         * gimple-streamer-out.c: Include value-prof.h.
4906         (output_gimple_stmt): Output histogram.
4907         (output_bb): Use streamer_write_gcov_count.
4908         * value-prof.c: Include data-streamer.h
4909         (dump_histogram_value): Add HIST_TYPE_MAX.
4910         (stream_out_histogram_value): New function.
4911         (stream_in_histogram_value): New function.
4912         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
4913         (stream_out_histogram_value, stream_in_histogram_value): Declare.
4914         * data-streamer-out.c (streamer_write_gcov_count): New function.
4915         (streamer_write_gcov_count_stream): New function.
4916         * lto-cgraph.c (lto_output_edge): Update counter streaming.
4917         (lto_output_node): Likewise.
4918         (input_node, input_edge): Likewise.
4919         * lto-streamer-out.c (output_cfg): Update streaming.
4920         * lto-streamer-in.c (input_cfg): Likewise.
4921         * data-streamer.h (streamer_write_gcov_count,
4922         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
4923         * gimple-streamer-in.c: Include value-prof.h
4924         (input_gimple_stmt): Input histograms.
4925         (input_bb): Update profile streaming.
4927 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
4929         * genmodes.c (emit_max_int): New function.
4930         (emit_insn_modes_h): Added call to emit_max_function.
4931         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
4932         Added doc.
4933         * machmode.def: Fixed comment.
4935 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
4937         * combine.c (try_combine): Removed useless assert.
4938         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
4940 2013-03-28  Marek Polacek  <polacek@redhat.com>
4941             Richard Biener  <rguenther@suse.de>
4943         PR tree-optimization/56695
4944         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
4945         build signed result of a vector comparison.
4946         * tree-cfg.c (verify_gimple_comparison): Check that a result
4947         of a vector comparison has signed type.
4949 2013-03-28  Richard Biener  <rguenther@suse.de>
4951         PR tree-optimization/37021
4952         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
4953         do not restrict gaps between groups.
4954         * tree-vect-stmts.c (vectorizable_load): Properly account for
4955         a gap between groups.
4957 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4959         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
4960         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
4961         is not enabled.
4963 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
4965         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
4966         * doc/extend.texi (Named Address Spaces): Ditto.
4967         (Variable Attributes): Ditto.
4969 2013-03-27  Kai Tietz  <ktietz@redhat.com>
4971         * config.build: Add support for cygwin x64 target.
4972         * config.gcc: Likewise.
4973         * config.host: Likewise.
4974         * configure.ac: Likewise
4975         * configure: Regenerated.
4977 2013-03-27 Kai Tietz  <ktietz@redhat.com>
4979         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
4980         * config/i386/t-cygwin-w64: New file.
4981         * config/i386/cygwin-w64.h: New file.
4982         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
4983         and add support for x64-cygwin target.
4984         (CPP_SPEC): Likewise.
4985         (CXX_WRAP_SPEC_LIST): Undefine before define.
4986         (LIBGCJ_SONAME): Use 15 as version.
4988 2013-03-27  Richard Biener  <rguenther@suse.de>
4990         PR tree-optimization/56716
4991         * tree-ssa-structalias.c (perform_var_substitution): Adjust
4992         dumping for ref nodes.
4994 2013-03-27  Martin Jambor  <mjambor@suse.cz>
4996         PR tree-optimization/55334
4997         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
4998         restricted pointers to arrays.
5000 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5002         * Makefile.in (.SUFFIXES): Add .cc.
5003         (.c.o): Apply same recipe for implicit rule .cc.o.
5005 2013-03-27  Richard Biener  <rguenther@suse.de>
5007         PR tree-optimization/37021
5008         * tree-vect-data-refs.c (vect_check_strided_load): Allow
5009         REALPART/IMAGPART_EXPRs around the supported refs.
5010         * tree-ssa-structalias.c (find_func_aliases): Assume that
5011         floating-point values are not used to transfer pointers.
5013 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5015         * target.def (TARGET_HAS_IFUNC_P): New target hook.
5016         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
5017         * doc/tm.texi: Regenerate.
5018         * targhooks.h (default_has_ifunc_p): New.
5019         * targhooks.c (default_has_ifunc_p): Ditto.
5020         * config/linux-protos.h: New file.
5021         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
5022         this hook for linux which disables support of indirect functions in
5023         android.
5024         * config/linux-android.c: New file.
5025         * config/t-linux-android.c: Ditto.
5026         * config.gcc: Added new object file linux-android.o.
5027         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
5028         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
5029         * varasm.c (do_assemble_alias): Likewise.
5030         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
5031         doesn't support indirect functions.
5032         * configure: Regenerate.
5034 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
5036         PR target/56102
5037         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
5038         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
5039         mult-word mode.
5041 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5043         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
5045 2013-03-27  Terry Guo  <terry.guo@arm.com>
5047         * config/arm/arm-cores.def: Added core cortex-r7.
5048         * config/arm/arm-tune.md: Regenerated.
5049         * config/arm/arm-tables.opt: Regenerated.
5050         * doc/invoke.texi: Added entry for core cortex-r7.
5052 2013-03-27  Walter Lee  <walt@tilera.com>
5054         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
5055         double-decrement of next_scratch_regno.
5057 2013-03-27  Walter Lee  <walt@tilera.com>
5059         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
5060         input operands.
5061         (insn_v1mulus): Ditto.
5062         (insn_v2muls): Ditto.
5064 2013-03-27  Walter Lee  <walt@tilera.com>
5066         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
5067         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
5069 2013-03-27  Walter Lee  <walt@tilera.com>
5071         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
5072         (*sibcall_value): Ditto.
5074 2013-03-27  Walter Lee  <walt@tilera.com>
5076         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
5077         (insn_mnz_v8qi): ... this ...
5078         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
5079         vector equivalent.
5080         (insn_v<n>mnz): Replaced by ...
5081         (insn_v1mnz): ... this ...
5082         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
5083         equivalent.
5084         (insn_mz_<mode>): Replaced by ...
5085         (insn_mz_v8qi): ... this ...
5086         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
5087         vector equivalent.
5088         (insn_v<n>mz): Replaced by ...
5089         (insn_v1mz): ... this ...
5090         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
5091         equivalent.
5093 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
5095         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
5097 2013-03-26  Roland McGrath  <mcgrathr@google.com>
5099         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
5100         than fprintf with a non-constant, non-format string.
5102 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
5104         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
5105         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
5106         operand 0 predicate.
5107         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
5108         attribute.  Use general_x64nomem_operand as operand 1 predicate.
5109         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
5110         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
5111         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
5112         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
5113         (mov<mode>_insv_1): Remove expander.  Merge insn with
5114         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
5115         Use general_x64nomem_operand as operand 1 predicate.
5116         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
5117         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
5118         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
5119         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
5120         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
5121         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
5122         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
5123         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
5124         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
5125         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
5126         (general_x64nomem_operand): Ditto.
5128 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5130         * config/rtems.opt: Add -pthread option.
5132 2013-03-26  Richard Biener  <rguenther@suse.de>
5134         * alias.c (find_base_term): Avoid redundant and not used recursion.
5135         (base_alias_check): Get the initial base term from the caller.
5136         (true_dependence_1): Compute and pass base terms to base_alias_check.
5137         (write_dependence_p): Likewise.
5138         (may_alias_p): Likewise.
5140 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
5142         * config/aarch64/aarch64.c (aarch64_classify_address): Support
5143         PC-relative load in SI modes and above only.
5145 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
5147         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
5148         * config/arm/iwmmxt.md (WCGR0): Update.
5149         (WCGR1, WCGR2, WCGR3): Likewise.
5151 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
5153         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
5154         Use x64 and nox64 isa attributes.
5156 2013-03-26  Richard Biener  <rguenther@suse.de>
5158         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5159         alignment computations and rely on get_object_alignment_1
5160         for the !TYPE_P case.
5161         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
5163 2013-03-26  Walter Lee  <walt@tilera.com>
5165         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
5166         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
5168 2013-03-25  Jeff Law  <law@redhat.com>
5170         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
5171         check for INTEGRAL_TYPE_P that was missing due to checking in
5172         wrong version of prior patch.
5174 2013-03-25  Walter Lee  <walt@tilera.com>
5176         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
5177         TILEGX_INSN_SHUFFLEBYTES1.
5178         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
5179         shufflebytes1.
5180         (tilegx_builtins): Ditto.
5181         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
5183 2013-03-25  Walter Lee  <walt@tilera.com>
5185         * config/tilegx/tilegx.md (floatsisf2): New pattern.
5186         (floatunssisf2): New pattern.
5187         (floatsidf2): New pattern.
5188         (floatunssidf2): New pattern.
5190 2013-03-25  Walter Lee  <walt@tilera.com>
5192         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
5193         tests for constraint J, K, N, P.
5195 2013-03-25  Walter Lee  <walt@tilera.com>
5197         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
5198         Use indirect/pcrel encoding.
5199         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
5200         Ditto.
5202 2013-03-25  Steve Ellcey  <sellcey@mips.com>
5204         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
5205         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
5206         * config/mips/mips.c (mips_option_override): Set IMADD default.
5207         * config/mips/mips.h (PTF_AVOID_IMADD): New.
5208         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
5209         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
5210         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
5211         * doc/invoke.texi (-mimadd/-mno-imadd): New.
5213 2013-03-25  Jeff Law  <law@redhat.com>
5215         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
5216         slightly to avoid creating and folding useless trees.  Simplify
5217         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
5219 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
5221         * config/i386/i386.md (*zero_extendsidi2): Merge with
5222         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
5223         * config/i386/predicates.md (x86_64_zext_operand): Rename from
5224         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
5225         targets.  Clarify comment.
5227 2013-03-25  Martin Jambor  <mjambor@suse.cz>
5229         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
5230         pass-through jump functions differently.
5231         (ipa_read_jump_function): Likewise.  Also use setter functions to set
5232         up jump functions.
5234 2013-03-25  Martin Jambor  <mjambor@suse.cz>
5236         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
5237         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
5238         process it.
5239         (ipa_get_indirect_edge_target): New function.
5240         (devirtualization_time_bonus): New parameter known_aggs, pass it to
5241         ipa_get_indirect_edge_target.  Update all callers.
5242         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
5243         ipa_get_indirect_edge_target_1 instead of calling
5244         ipa_get_indirect_edge_target.
5245         (create_specialized_node): Pass aggvlas to
5246         ipcp_discover_new_direct_edges.
5248 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5250         * config/arm/arm.md (f_sels, f_seld): New types.
5251         (*cmov<mode>): New pattern.
5252         * config/arm/predicates.md (arm_vsel_comparison_operator): New
5253         predicate.
5255 2013-03-25  Kai Tietz  <ktietz@redhat.com>
5257         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
5258         POSIX-printf for mingw-hosted  builds.
5260 2013-03-25  Richard Biener  <rguenther@suse.de>
5262         PR middle-end/56694
5263         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
5264         must-not-throw stmt location.
5266 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5268         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
5269         Emit load-acquire versions when acq is true.
5270         (arm_emit_store_exclusive): Add rel parameter.
5271         Emit store-release versions when rel is true.
5272         (arm_split_compare_and_swap): Use acquire-release instructions
5273         instead.
5274         of barriers when appropriate.
5275         (arm_split_atomic_op): Likewise.
5276         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
5277         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
5278         (VUNSPEC_SLX): Likewise.
5279         (VUNSPEC_LDA): Likewise.
5280         (VUNSPEC_STL): Likewise.
5281         * config/arm/sync.md (atomic_load<mode>): New pattern.
5282         (atomic_store<mode>): Likewise.
5283         (arm_load_acquire_exclusive<mode>): Likewise.
5284         (arm_load_acquire_exclusivesi): Likewise.
5285         (arm_load_acquire_exclusivedi): Likewise.
5286         (arm_store_release_exclusive<mode>): Likewise.
5288 2013-03-25  Catherine Moore  <clm@codesourcery.com>
5290         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
5291         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
5292         * config/mip/predicates.md (lwsp_swsp_operand,
5293         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
5294         sb16_operand, db4_operand, db7_operand, ib3_operand,
5295         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
5296         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
5297         andi16_operand): New predicates.
5298         * config/mips/mips.md (compression): New attribute.
5299         (enabled): New attribute.
5300         (length): Consider compression in computing length.
5301         (shift_compression): New code attribute.
5302         (*add<mode>3): New operands. Record compression.
5303         (sub<mode>3): Likewise.
5304         (one_cmpl<mode>2): Likewise.
5305         (*and<mode>3): Likewise.
5306         (*ior<mode>3): Likewise.
5307         (unnamed pattern for xor): Likewise.
5308         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
5309         (*<optab><mode>3): Likewise.
5310         (*mov<mode>_internal: Likewise.
5311         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
5312         (mips_unsigned_immediate_p): New.
5313         (umips_lwsp_swsp_address_p): New.
5314         (m16_based_address_p): New.
5315         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
5316         (mips_unsigned_immediate_p): New prototype.
5317         (lwsp_swsp_address_p): New prototype.
5318         (m16_based_address_p): New prototype.
5319         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
5320         (mips_signed_immediate_p): New function.
5321         (m16_based_address_p): New function.
5322         (lwsp_swsp_address_p): New function.
5323         (mips_print_operand_punctuation): Recognize short delay slot insns
5324         for microMIPS.add<mode>3"
5326 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5328         PR target/56720
5329         * config/arm/iterators.md (v_cmp_result): New mode attribute.
5330         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
5332 2013-03-25  Richard Biener  <rguenther@suse.de>
5334         PR tree-optimization/56689
5335         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
5336         any edge.
5338 2013-03-25  Richard Biener  <rguenther@suse.de>
5340         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
5341         of bitmap.
5342         (memory_references): Likewise.
5343         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
5344         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
5345         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
5346         (gather_mem_refs_in_loops): Fold into ...
5347         (analyze_memory_references): ... this.  Move initialization
5348         to tree_ssa_lim_initialize.
5349         (fill_always_executed_in): Rename to ...
5350         (fill_always_executed_in_1): ... this.
5351         (fill_always_executed_in): Move contains_call computation to
5352         this new function from ...
5353         (tree_ssa_lim_initialize): ... here.
5354         (tree_ssa_lim): Call fill_always_executed_in.
5356 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
5358         * postreload.c (reload_combine): Fix code detecting returns.
5360 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
5362         * function.c (emit_use_return_register_into_block): On cc0 targets,
5363         do not emit the sequence between cc0 setter and user.
5365 2013-03-25  Kai Tietz  <ktietz@redhat.com>
5367         * config/i386/predicates.md (local_symbolic_operand): Interpret
5368         dll-imported symbols as none-local.
5370 2013-03-25  Richard Biener  <rguenther@suse.de>
5372         * tree-ssa-loop-im.c (struct depend): Remove.
5373         (struct lim_aux_data): Make depends a vec of gimples.
5374         (free_lim_aux_data): Adjust.
5375         (add_dependency): Likewise.
5376         (set_level): Likewise.
5378 2013-03-25  Richard Biener  <rguenther@suse.de>
5380         PR middle-end/56434
5381         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
5382         the pointer returned by calls with ECF_MALLOC set.
5384 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
5386         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
5388 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
5390         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
5391         using MMXMODE mode iterator.
5392         (*move<mode>_internal): Merge with *movv2sf_internal and
5393         *movv2sf_internal_rex64 using MMXMODE mode iterator.
5395 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
5397         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
5398         (record_last_mem_set_info): Likewise.
5400         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
5401         of XNEWVEC followed by memset.
5402         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
5404 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
5406         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5407         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5408         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
5409         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
5410         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
5411         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
5412         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
5413         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
5414         BARRIER_P instead of GET_CODE.
5416 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
5418         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5419         inaccuracy in the probing code.
5421         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5422         (ctrapdi4): Likewise.
5424 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
5426         * calls.c (expand_call): Add missing guard to code handling return
5427         of non-BLKmode structures in MSB.
5428         * function.c (expand_function_end): Likewise.
5430 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
5432         * combine.c (try_combine): Adjust comment.  Do not add the set of
5433         insn #0 if the destination indirectly is set or dies in insn #2.
5434         Tidy up code to distribute a new note.
5436 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
5438         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5439         also for alternatives 16 and 17.
5441 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
5443         * config/i386/sse.md (*mov<mode>_internal): Merge with
5444         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
5445         Emit insn template depending on type attribute.  Use
5446         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5447         movd instead of movq mnemonic for interunit moves.  Rewrite mode
5448         attribute calculation.  Remove unit attribute calculation.
5449         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
5450         Set prefix_data16 attribute for DImode ssemov types.
5451         Use Ym instead of y for SSE-MMX conversion alternatives.
5452         Reorder operand constraints.
5454 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
5456         * df.h (df_insn_delete): Adjust prototype.
5457         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
5458         and let it decide whether mark the basic block dirty.
5459         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
5460         * df-scan.c (df_insn_info_delete): New helper function, split
5461         off from df_insn_delete.
5462         (df_scan_free_bb_info): Use it.
5463         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
5464         Likewise.
5465         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
5466         that the insn is actually an insn and it has a non-NULL basic block.
5467         Do not mark basic block dirty if only deleting a DEBUG_INSN.
5469 2013-03-22  Richard Biener  <rguenther@suse.de>
5471         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
5472         dep_ref members.
5473         (mem_ref_alloc): Do not allocate them.
5474         (refs_independent_p): Do not query or maintain a cache.
5476 2013-03-22  Richard Biener  <rguenther@suse.de>
5478         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
5479         (gather_mem_refs_in_loops): Do not compute it.
5480         (analyze_memory_references): Do not allocate it.
5481         (tree_ssa_lim_finalize): Do not free it.
5482         (for_all_locs_in_loop): Do not query all_refs_in_loop.
5484 2013-03-22  Richard Biener  <rguenther@suse.de>
5486         * is-a.h (as_a): Use gcc_checking_assert.
5488 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
5490         * config/aarch64/aarch64.c (aarch64_print_operand): New
5491         format specifier for printing a constant in hex.
5492         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
5493         format specifier for printing second operand.
5495 2013-03-22  Richard Biener  <rguenther@suse.de>
5497         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
5498         bitmaps.
5499         (gather_mem_refs_in_loops): Perform store accumulation here.
5500         (create_vop_ref_mapping_loop): Remove.
5501         (create_vop_ref_mapping): Likewise.
5502         (analyze_memory_references): Initialize refs_stored_in_loop.
5503         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
5504         (record_indep_loop): Remove.
5505         (record_dep_loop): New function.
5506         (ref_indep_loop_p_1): Adjust to only walk over references
5507         in the loop, not its subloops.
5508         (ref_indep_loop_p): Rename to ...
5509         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
5510         maintaining a more fine-grained cache.
5511         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
5512         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
5514 2013-03-22  Richard Biener  <rguenther@suse.de>
5516         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
5517         (struct mem_ref): Make accesses_in_loop a vec of a vec of
5518         aggregate mem_ref_loc.
5519         (free_mem_ref_locs): Inline into ...
5520         (memref_free): ... this and adjust.
5521         (mem_ref_alloc): Adjust.
5522         (mem_ref_locs_alloc): Remove.
5523         (record_mem_ref_loc): Adjust.
5524         (get_all_locs_in_loop): Rewrite into ...
5525         (for_all_locs_in_loop): ... this iterator.
5526         (rewrite_mem_ref_loc): New functor.
5527         (rewrite_mem_refs): Use for_all_locs_in_loop.
5528         (sm_set_flag_if_changed): New functor.
5529         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
5530         (ref_always_accessed): New functor.
5531         (ref_always_accessed_p): Use for_all_locs_in_loop.
5533 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
5535         * tree-pass.h (PROP_gimple_lvec): New.
5536         * passes.c (dump_properties): Handle PROP_gimple_lvec.
5537         (init_optimization_passes): Move pass_lower_vector.
5538         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
5539         PROP_gimple_lvec.
5540         (pass_lower_vector): Provide PROP_gimple_lvec.
5541         (pass_lower_vector_ssa): Likewise.
5542         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
5544 2013-03-21  Mark Wielaard  <mjw@redhat.com>
5546         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
5548 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
5550         * config/i386/i386.md (*movdi_internal): Disparage slightly
5551         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
5552         conversion alternatives.
5554 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
5556         PR middle-end/48087
5557         * diagnostic.def (DK_WERROR): New kind.
5558         * diagnostic.h (werrorcount): Define.
5559         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
5560         promoted to DK_ERROR, increment DK_WERROR counter instead of
5561         DK_ERROR counter.
5562         * toplev.c (toplev_main): Call print_ignored_options even if
5563         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
5564         even if just werrorcount is non-zero.
5566         PR debug/55608
5567         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
5568         on failure.
5569         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
5570         (string_cst_pool_decl): New function.
5571         (optimize_one_addr_into_implicit_ptr): New function.
5572         (resolve_addr_in_expr): Optimize DWARF location expression
5573         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
5574         which doesn't live in memory, but has DW_AT_location or
5575         DW_AT_const_value, or refers to a string literal, into
5576         DW_OP_GNU_implicit_pointer.
5577         (optimize_location_into_implicit_ptr): New function.
5578         (resolve_addr): If removing DW_AT_location of a variable because
5579         it was DW_OP_addr of address of the variable, but the variable doesn't
5580         live in memory, try to emit const value attribute for the initializer.
5582 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
5584         * tree.h (VECTOR_TYPE_P): New macro.
5585         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
5586         TYPE_MODE): Use it.
5587         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
5588         VEC_COND_EXPR cannot be lvalues.
5589         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
5591 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
5593         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
5594         Restrict the transformation to equal modes.
5596 2013-03-21  Richard Biener  <rguenther@suse.de>
5598         PR tree-optimization/39326
5599         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
5600         (MEM_ANALYZABLE): Adjust.
5601         (record_mem_ref_loc): Move bitmap ops ...
5602         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
5603         unanalyzable refs, do not record locations for it.
5604         (analyze_memory_references): Allocate ref zero as shared
5605         unanalyzable ref.
5606         (refs_independent_p): Do not test for unanalyzed mems here.
5607         (ref_indep_loop_p_1): Special-case disambiguation against
5608         the unanalyzed ref.
5609         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
5611 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
5613         * config/arm/arm-protos.h (tune_params): Add
5614         prefer_neon_for_64bits field.
5615         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
5616         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
5617         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5618         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5619         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
5620         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5621         (arm_option_override): Handle -mneon-for-64bits new option.
5622         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
5623         (prefer_neon_for_64bits): Declare new variable.
5624         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
5625         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
5626         (arch_enabled): Handle new arch types. Remove support for onlya8
5627         and nota8.
5628         (one_cmpldi2): Use new arch names.
5629         (zero_extend<mode>di2, extend<mode>di2): Ditto.
5630         * config/arm/arm.opt (mneon-for-64bits): Add option.
5631         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
5632         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
5633         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
5634         of onlya8.
5635         * doc/invoke.texi (-mneon-for-64bits): Document.
5637 2013-03-21  Richard Biener  <rguenther@suse.de>
5639         PR tree-optimization/39326
5640         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
5641         (sort_bbs_in_loop_postorder_cmp): New function.
5642         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5644 2013-03-21  Richard Biener  <rguenther@suse.de>
5646         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
5647         (vect_insert_into_interleaving_chain): Likewise.
5648         (vect_drs_dependent_in_basic_block): Inline ...
5649         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
5650         split out from ...
5651         (vect_analyze_data_ref_dependence): ... here.  Simplify.
5652         (vect_check_interleaving): Simplify.
5653         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
5654         (vect_slp_analyze_data_ref_dependences): ... this new function.
5655         (dr_group_sort_cmp): New function.
5656         (vect_analyze_data_ref_accesses): Compute data-reference groups
5657         here instead of in vect_analyze_data_ref_dependence.  Use
5658         a more efficient algorithm.
5659         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
5660         vect_slp_analyze_data_ref_dependences.  Call
5661         vect_analyze_data_ref_accesses earlier.
5662         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5663         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
5664         (vect_slp_analyze_data_ref_dependences): New prototype.
5666 2013-03-21  Richard Biener  <rguenther@suse.de>
5668         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
5669         ref is stored in the loop.
5670         (find_refs_for_sm): Walk only over all stores.
5671         (store_motion_loop): Allocate from lim_bitmap_obstack.
5672         (store_motion): Likewise.
5674 2013-03-21  Richard Biener  <rguenther@suse.de>
5676         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
5677         Update virtual SSA form.
5679 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5681         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
5682         * configure: Regenerate.
5683         * config.in: Regenerate.
5684         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
5685         if !HAVE_LD_EH_FRAME_CIEV3.
5687 2013-03-21  Richard Biener  <rguenther@suse.de>
5689         * tree-cfg.c (verify_expr_no_block): New function.
5690         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
5691         nor DECL_VALUE_EXPR have locations with associated blocks.
5692         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
5693         (clear_unused_block_pointer): Remove code dealing with
5694         blocks in DECL_DEBUG_EXPR locations.
5696 2013-03-21  Richard Biener  <rguenther@suse.de>
5698         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
5699         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
5700         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
5701         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
5702         instead of DECL_DEBUG_EXPR_IS_FROM.
5703         * gimplify.c (gimplify_modify_expr): Likewise.
5704         * tree-cfg.c (verify_expr_location_1): Likewise.
5705         * tree-complex.c (create_one_component_var): Likewise.
5706         * tree-sra.c (create_access_replacement): Likewise.
5707         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
5708         (clear_unused_block_pointer): Likewise.
5709         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
5710         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5711         * var-tracking.c (var_debug_decl): Likewise.
5712         (track_expr_p): Likewise.
5713         * tree-inline.c (add_local_variables): Likewise.  Set
5714         DECL_HAS_DEBUG_EXPR_P after copying it.
5715         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
5716         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
5718 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
5720         PR bootstrap/56656
5721         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
5722         * configure: Regenerate.
5723         * config.in: Regenerate.
5724         * config/i386/i386.md (*movdf_internal): Use
5725         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5726         movd instead of movq mnemonic for interunit moves.
5727         (*movdi_internal): Ditto.
5729 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5731         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
5732         (abd<mode>_3): New pattern.
5733         (aba<mode>_3): New pattern.
5734         (fabd<mode>_3): New pattern.
5736 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5738         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
5739         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
5740         occurrence of REGISTER_PREFIX as its empty string.
5742 2013-03-20  Jeff Law  <law@redhat.com>
5744         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
5745         addititional equivalences for equality comparisons between an SSA_NAME
5746         and a constant where the SSA_NAME was set from a widening conversion.
5748 2013-03-20  Walter Lee  <walt@tilera.com>
5750         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
5752 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
5754         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
5755         depending on type attribute.
5756         (*movti_internal): Ditto.
5757         (*movtf_internal): Ditto.
5758         (*movxf_internal): Ditto.
5759         (*movdf_internal): Ditto.
5760         (*movsf_internal): Ditto.
5762 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
5764         * config/i386/i386.md (*movti_internal): Set prefix attribute to
5765         maybe_vex for sselog1 and ssemov types.
5766         (*movdi_internal): Reorder operand constraints.
5767         (*movsi_internal): Ditto.  Set prefix attribute to
5768         maybe_vex for sselog1 and ssemov types.
5769         (*movtf_internal): Set prefix attribute to maybe_vex
5770         for sselog1 and ssemov types.
5771         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
5772         DImode ssemov types.  Reorder operand constraints.
5773         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
5774         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
5775         attribute for SImode ssemov types.  Reorder operand constraints.
5777 2013-03-20  Martin Jambor  <mjambor@suse.cz>
5779         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
5780         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
5782 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
5784         * config/rs6000/predicates.md (indexed_address, update_address_mem
5785         update_indexed_address_mem): New predicates.
5786         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
5787         attribute for load/store instructions.
5788         * config/rs6000/dfp.md (movsd_store): Likewise.
5789         (movsd_load): Likewise.
5790         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
5791         (unnamed HI->DI extend define_insn): Likewise.
5792         (unnamed SI->DI extend define_insn): Likewise.
5793         (unnamed QI->SI extend define_insn): Likewise.
5794         (unnamed QI->HI extend define_insn): Likewise.
5795         (unnamed HI->SI extend define_insn): Likewise.
5796         (unnamed HI->SI extend define_insn): Likewise.
5797         (extendsfdf2_fpr): Likewise.
5798         (movsi_internal1): Likewise.
5799         (movsi_internal1_single): Likewise.
5800         (movhi_internal): Likewise.
5801         (movqi_internal): Likewise.
5802         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
5803         attribute for load/store instructions.
5804         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
5805         instructions.
5806         (mov<mode>_softfloat): Likewise.
5807         (mov<mode>_hardfloat32): Likewise.
5808         (mov<mode>_hardfloat64): Likewise.
5809         (mov<mode>_softfloat64): Likewise.
5810         (movdi_internal32): Likewise.
5811         (movdi_internal64): Likewise.
5812         (probe_stack_<mode>): Likewise.
5814 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
5816         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
5817         floating point, and decimal floating point to reload iterator.
5819         * config/rs6000/constraints.md (wl constraint): New constraints to
5820         return FLOAT_REGS if certain options are used to reduce the number
5821         of separate patterns that exist in the file.
5822         (wx constraint): Likewise.
5823         (wz constraint): Likewise.
5825         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5826         -mdebug=reg, print wg, wl, wx, and wz constraints.
5827         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5828         Initialize the reload functions for 64-bit binary/decimal floating
5829         point types.
5830         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5831         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5832         create the buffer on the stack to overcome not having a 32-bit
5833         load and store.
5834         (rs6000_emit_move): Likewise.
5835         (rs6000_secondary_memory_needed_rtx): Likewise.
5836         (rs6000_alloc_sdmode_stack_slot): Likewise.
5837         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5838         via xxlxor, just like DFmode 0.0.
5840         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
5841         define as 1 if we are running on a power7 or newer.
5842         (enum r6000_reg_class_enum): Add new constraints.
5844         * config/rs6000/dfp.md (movsd): Delete, combine with binary
5845         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
5846         with other moves by using conditional constraits (wg).  Use LFIWZX
5847         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
5848         (movsd splitter): Likewise.
5849         (movsd_hardfloat): Likewise.
5850         (movsd_softfloat): Likewise.
5852         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
5853         binary and decimal floating point moves.
5854         (fmove_ok): New attributes to combine binary and decimal floating
5855         point moves, and to combine power6x (mfpgpr) moves along normal
5856         floating moves.
5857         (real_value_to_target): Likewise.
5858         (f32_lr): Likewise.
5859         (f32_lm): Likewise.
5860         (f32_li): Likewise.
5861         (f32_sr): Likewise.
5862         (f32_sm): Likewise.
5863         (f32_si): Likewise.
5864         (movsf): Combine binary and decimal floating point moves.  Combine
5865         power6x (mfpgpr) moves with other moves by using conditional
5866         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
5867         (mov<mode> for SFmode/SDmode); Likewise.
5868         (SFmode/SDmode splitters): Likewise.
5869         (movsf_hardfloat): Likewise.
5870         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
5871         (movsf_softfloat): Likewise.
5872         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
5874         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
5875         wx and wz constraints.
5877         * config/rs6000/constraints.md (wg constraint): New constraint to
5878         return FLOAT_REGS if -mmfpgpr (power6x) was used.
5880         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
5881         constraint.
5883         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5884         -mdebug=reg, print wg, wl, wx, and wz constraints.
5885         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5886         Initialize the reload functions for 64-bit binary/decimal floating
5887         point types.
5888         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5889         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5890         create the buffer on the stack to overcome not having a 32-bit
5891         load and store.
5892         (rs6000_emit_move): Likewise.
5893         (rs6000_secondary_memory_needed_rtx): Likewise.
5894         (rs6000_alloc_sdmode_stack_slot): Likewise.
5895         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5896         via xxlxor, just like DFmode 0.0.
5898         * config/rs6000/dfp.md (movdd): Delete, combine with binary
5899         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
5900         with other moves by using conditional constraits (wg).  Use LFIWZX
5901         and STFIWX for loading SDmode on power7.
5902         (movdd splitters): Likewise.
5903         (movdd_hardfloat32): Likewise.
5904         (movdd_softfloat32): Likewise.
5905         (movdd_hardfloat64_mfpgpr): Likewise.
5906         (movdd_hardfloat64): Likewise.
5907         (movdd_softfloat64): Likewise.
5909         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
5910         64-bit binary and decimal floating point moves.
5911         (FMOVE64X): Likewise.
5912         (movdf): Combine 64-bit binary and decimal floating point moves.
5913         Combine power6x (mfpgpr) moves with other moves by using
5914         conditional constraits (wg).
5915         (mov<mode> for DFmode/DDmode): Likewise.
5916         (DFmode/DDmode splitters): Likewise.
5917         (movdf_hardfloat32): Likewise.
5918         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
5919         (movdf_softfloat32): Likewise.
5920         (movdf_hardfloat64_mfpgpr): Likewise.
5921         (movdf_hardfloat64): Likewise.
5922         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
5923         (movdf_softfloat64): Likewise.
5924         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
5925         (reload_<mode>_load): Move to later in the file so they aren't in
5926         the middle of the floating point move insns.
5927         (reload_<mode>_store): Likewise.
5929         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
5930         constraint.
5932         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
5933         constraint if -mdebug=reg.
5934         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
5935         Enable using dd reload support if needed.
5937         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
5938         binary and decimal floating point moves in rs6000.md.
5939         (movtd_internal): Likewise.
5941         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
5942         decimal floating point moves.
5943         (movtf): Likewise.
5944         (movtf_internal): Likewise.
5945         (mov<mode>_internal, TDmode/TFmode): Likewise.
5946         (movtf_softfloat): Likewise.
5947         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
5949         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
5950         movdi_internal64, using wg constraint for move direct operations.
5951         (movdi_internal64): Likewise.
5953         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
5954         MODES_TIEABLE_P for selected modes.  Print the numerical value of
5955         the various virtual registers. Use GPR/FPR first/last values,
5956         instead of hard coding the register numbers.  Print which modes
5957         have reload functions registered.
5958         (rs6000_option_override_internal): If -mdebug=reg, trace the options
5959         settings before/after setting cpu, target and subtarget settings.
5960         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
5961         and for secondary reload failures in rs6000_secondary_reload_inner.
5962         (rs6000_secondary_reload_fail): Likewise.
5963         (rs6000_secondary_reload_inner): Likewise.
5965         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
5966         macros for first/last GPR and FPR registers.
5967         (LAST_GPR_REGNO): Likewise.
5968         (FIRST_FPR_REGNO): Likewise.
5969         (LAST_FPR_REGNO): Likewise.
5971         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
5972         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
5973         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
5974         (vcond<mode><mode>): Likewise.
5975         (vcondu<mode><mode>): Likewise.
5976         (vector_gtu<mode>): Likewise.
5977         (vector_gte<mode>): Likewise.
5978         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
5979         to prevent the compiler from converting DImode operations to TImode.
5980         (ior<mode>3): Likewise.
5981         (and<mode>3): Likewise.
5982         (one_cmpl<mode>2): Likewise.
5983         (nor<mode>3): Likewise.
5984         (andc<mode>3): Likewise.
5986         * config/rs6000/constraints.md (wt constraint): New constraint
5987         that returns VSX_REGS if TImode is allowed in VSX registers.
5989         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
5990         constant under VSX.
5992         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
5993         similar to TImode, but it is restricted to being in the GPRs.
5995         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
5996         TImode to occupy a single VSX register.
5998         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
5999         -mvsx-timode for power7/power8.
6000         (power7 cpu): Likewise.
6001         (power8 cpu): Likewise.
6003         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
6004         sure that TFmode/TDmode take up two registers if they are ever
6005         allowed in the upper VSX registers.
6006         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
6007         registers.
6008         (rs6000_init_hard_regno_mode_ok): Likewise.
6009         (rs6000_debug_reg_global): Add debugging for PTImode and wt
6010         constraint.  Print if LRA is turned on.
6011         (rs6000_option_override_internal): Give an error if -mvsx-timode
6012         and VSX is not enabled.
6013         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
6014         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
6015         to reg+offset addressing.  Use PTImode when checking offset
6016         addresses for validity.
6017         (reg_offset_addressing_ok_p): Likewise.
6018         (rs6000_legitimate_offset_address_p): Likewise.
6019         (rs6000_legitimize_address): Likewise.
6020         (rs6000_legitimize_reload_address): Likewise.
6021         (rs6000_legitimate_address_p): Likewise.
6022         (rs6000_eliminate_indexed_memrefs): Likewise.
6023         (rs6000_emit_move): Likewise.
6024         (rs6000_secondary_reload): Likewise.
6025         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
6026         reloads to fpr registers to continue to use reg+offset addressing,
6027         but 64-bit reloads to altivec registers need reg+reg addressing.
6028         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
6029         it.  Treat LO_SUM like a PLUS operation.
6030         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
6031         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
6032         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
6033         registers to share a register with a smaller sized type, since VSX
6034         puts scalars in the upper 64-bits.
6035         (print_operand): Add support for PTImode.
6036         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
6037         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
6038         registers, but don't have arithmetic support.
6039         (rs6000_memory_move_cost): Add test for VSX.
6040         (rs6000_opt_masks): Add -mvsx-timode.
6042         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
6043         for TImode.
6044         (VSs): Likewise.
6045         (VSr): Use wt constraint for TImode.
6046         (VSv): Drop TImode support.
6047         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
6048         (vsx_movti_64bit): Likewise.
6049         (vsx_movti_32bit): Likewise.
6050         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
6051         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
6052         one '?' on the appropriate output constraint.  Do not allow TImode
6053         logical operations on 32-bit systems.
6054         (vsx_ior<mode>3): Likewise.
6055         (vsx_xor<mode>3): Likewise.
6056         (vsx_one_cmpl<mode>2): Likewise.
6057         (vsx_nor<mode>3): Likewise.
6058         (vsx_andc<mode>3): Likewise.
6059         (vsx_concat_<mode>): Likewise.
6060         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
6062         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
6063         OPTION_MASK_VSX_TIMODE.
6064         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
6065         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
6067         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
6068         (TI2 iterator): New iterator for TImode, PTImode.
6069         (wd mode attribute): Add values for vector types.
6070         (movti_string): Replace TI move operations with operations for TImode
6071         and PTImode.  Add support for TImode being allowed in VSX registers.
6072         (mov<mode>_string, TImode/PTImode): Likewise.
6073         (movti_ppc64): Likewise.
6074         (mov<mode>_ppc64, TImode/PTImode): Likewise.
6075         (TI mode splitters): Likewise.
6077         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
6078         constraint.
6080 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
6082         PR tree-optimization/56355
6083         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
6084         Also handle integers with undefined overflow.
6086 2013-03-20  Catherine Moore  <clm@codesourcery.com>
6087             Maciej W. Rozycki  <macro@codesourcery.com>
6088             Tom de Vries  <tom@codesourcery.com>
6089             Nathan Sidwell <nathan@codesourcery.com>
6090             Iain Sandoe  <iain@codesourcery.com>
6091             Nathan Froyd  <froydnj@codesourcery.com>
6092             Chao-ying Fu <fu@mips.com>
6094         * doc/extend.texi: (micromips, nomicromips, nocompression):
6095         Document new function attributes.
6096         * doc/invoke.texi (minterlink-compressed, mmicromips,
6097         m14k, m14ke, m14kec): Document new options.
6098         (minterlink-mips16): Update documentation.
6099         * doc/md.texi (ZC, ZD): Document new constraints.
6100         * configure.ac (gcc_cv_as_micromips): Check if linker
6101         supports the .set micromips directive.
6102         * configure: Regenerate.
6103         * config.in: Regenerate.
6104         * config/mips/mips-tables.opt: Regenerate.
6105         * config/mips/micromips.md: New file.
6106         * constraints.md (ZC, ZD): New constraints.
6107         * config/mips/predicates.md (movep_src_register): New predicate.
6108         (movep_src_operand): New predicate.
6109         (non_volatile_mem_operand): New predicate.
6110         * config/mips/mips.md (multimem): New type.
6111         (length): Differentiate between 17-bit and 18-bit branch offsets.
6112         (MOVEP1, MOVEP2): New mode iterator.
6113         (mov_<load>l): Use ZC constraint.
6114         (mov_<load>r): Likewise.
6115         (mov_<store>l): Likewise.
6116         (mov_<store>r): Likewise.
6117         (*branch_equality<mode>_inverted): Add microMIPS support.
6118         (*branch_equality<mode>): Likewise.
6119         (*jump_absolute): Likewise.
6120         (indirect_jump_<mode>): Likewise.
6121         (tablejump_<mode>): Likewise.
6122         (<optab>_internal): Likewise.
6123         (sibcall_internal): Likewise.
6124         (sibcall_value_internal): Likewise.
6125         (prefetch): Use constraint ZD.
6126         * config/mips/mips.opt (minterlink-compressed): New option.
6127         (minterlink-mips16): Now an alias for minterlink-compressed.
6128         (mmicromips): New option.
6129         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6130         (compare_and_swap_12): Likewise.
6131         (sync_add<mode>): Likewise.
6132         (sync_<optab>_12): Likewise.
6133         (sync_old_<optab>_12): Likewise.
6134         (sync_new_<optab>_12): Likewise.
6135         (sync_nand_12): Likewise.
6136         (sync_old_nand_12): Likewise.
6137         (sync_new_nand_12): Likewise.
6138         (sync_sub<mode>): Likewise.
6139         (sync_old_add<mode>): Likewise.
6140         (sync_old_sub<mode>): Likewise.
6141         (sync_new_add<mode>): Likewise.
6142         (sync_new_sub<mode>): Likewise.
6143         (sync_<optab><mode>): Likewise.
6144         (sync_old_<optab><mode>): Likewise.
6145         (sync_new_<optab><mode>): Likewise.
6146         (sync_nand<mode>): Likewise.
6147         (sync_old_nand<mode>): Likewise.
6148         (sync_new_nand<mode>): Likewise.
6149         (sync_lock_test_and_set<mode>): Likewise.
6150         (test_and_set_12): Likewise.
6151         (atomic_compare_and_swap<mode>): Likewise.
6152         (atomic_exchange<mode>_llsc): Likewise.
6153         (atomic_fetch_add<mode>_llsc): Likewise.
6154         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6155         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6156         (umips_save_restore_pattern_p): Likewise.
6157         (umips_load_store_pair_p): Likewise.
6158         (umips_output_load_store_pair): Likewise.
6159         (umips_movep_target_p): Likewise.
6160         (umips_12bit_offset_address_p): Likewise.
6161         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6162         (mips_base_mips16): Rename this...
6163         (mips_base_compression_flags): ...to this. Update all uses.
6164         (mips_attribute_table): Add micromips, nomicromips and nocompression.
6165         (mips_mips16_decl_p): Delete.
6166         (mips_nomips16_decl_p): Delete.
6167         (mips_get_compress_on_flags): New function.
6168         (mips_get_compress_off_flags): New function.
6169         (mips_get_compress_mode): New function.
6170         (mips_get_compress_on_name): New function.
6171         (mips_get_compress_off_name): New function.
6172         (mips_insert_attributes): Support multiple compression types.
6173         (mips_merge_decl_attributes): Likewise.
6174         (umips_12bit_offset_address_p): New function.
6175         (mips_start_function_definition): Emit .set micromips directive.
6176         (mips_call_may_need_jalx_p): New function.
6177         (mips_function_ok_for_sibcall): Add microMIPS support.
6178         (mips_print_operand_punctuation): Support short delay slots and
6179         compact jumps.
6180         (umips_swm_mask, umips_swm_encoding): New.
6181         (umips_build_save_restore): New function.
6182         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6183         (was_mips16_p): Remove.
6184         (old_compression_mode): New.
6185         (mips_set_compression_mode): New function.
6186         (mips_set_current_function): Add microMIPS support.
6187         (mips_option_override): Likewise.
6188         (umips_save_restore_pattern_p): New function.
6189         (umips_output_save_restore): New function.
6190         (umips_load_store_pair_p_1): New function.
6191         (umips_load_store_pair_p): New function.
6192         (umips_output_load_store_pair_1): New function.
6193         (umips_output_load_store_pair): New function.
6194         (umips_movep_target_p) New function.
6195         (mips_prepare_pch_save): Add microMIPS support.
6196         * config/mips/mips.h (TARGET_COMPRESSION): New.
6197         (TARGET_CPU_CPP_BUILTINS): Update macro
6198         to use new compression flags and to support microMIPS.
6199         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6200         (MIPS_ARCH_FLOAT_SPEC): Likewise.
6201         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6202         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6203         (ASM_SPEC): Support mmicromips and mno-micromips.
6204         (M16STORE_REG_P): New macro.
6205         (MIPS_CALL): Support TARGET_MICROMIPS.
6206         (MICROMIPS_J): New macro.
6207         (mips_base_mips16): Rename this...
6208         (mips_base_compression_flags): ...to this.
6209         (UMIPS_12BIT_OFFSET_P): New macro.
6210         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6211         (MULTILIB_DIRNAMES): Likewise.
6212 2013-03-20  Richard Biener  <rguenther@suse.de>
6214         PR tree-optimization/56661
6215         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
6216         the result does not have to be distinct.
6218 2013-03-20  Richard Biener  <rguenther@suse.de>
6220         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
6221         remap_gimple_op_r.
6223 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6224             Steven Bosscher <steven@gcc.gnu.org>
6226         PR rtl-optimization/56605
6227         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
6229 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
6231         PR bootstrap/56656
6232         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
6233         that require movd instead of movq.
6235 2013-03-20  Richard Biener  <rguenther@suse.de>
6237         * tree-ssa-structalias.c (struct variable_info): Add pointer
6238         to the first field of an aggregate with sub-vars.  Make
6239         this and the pointer to the next subfield its ID.
6240         (vi_next): New function.
6241         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
6242         storedanything_id, integer_id): Increment by one.
6243         (new_var_info, get_call_vi, lookup_call_clobber_vi,
6244         get_call_clobber_vi): Adjust.
6245         (solution_set_expand): Simplify and speedup.
6246         (solution_set_add): Inline into ...
6247         (set_union_with_increment): ... this.  Adjust accordingly.
6248         (do_sd_constraint): Likewise.
6249         (do_ds_constraint): Likewise.
6250         (do_complex_constraint): Simplify.
6251         (build_pred_graph): Adjust.
6252         (solve_graph): Likewise.  Simplify and speedup.
6253         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
6254         get_constraint_for_component_ref, get_constraint_for_1,
6255         first_vi_for_offset, first_or_preceding_vi_for_offset,
6256         create_function_info_for, create_variable_info_for_1,
6257         create_variable_info_for, intra_create_variable_infos): Adjust.
6258         (init_base_vars): Push NULL for ID zero.
6259         (compute_points_to_sets): Adjust.
6261 2013-03-20  Richard Biener  <rguenther@suse.de>
6263         * cfgloop.c (verify_loop_structure): Streamline and avoid
6264         ICEing on corrupt loop tree.
6265         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
6266         loop tree.
6268 2013-03-20  Richard Biener  <rguenther@suse.de>
6270         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
6271         check whether an SSA update is needed.
6273 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
6275         * config/mips/constraints.md (T): Rename to...
6276         (Yf): ...this.
6277         (U): Rename to...
6278         (Yd): ...this.
6279         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
6280         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
6282 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
6284         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
6285         (*subsi3_carryin_uxtw): Likewise.
6287 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
6289         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
6290         (*rorsi3_insn_uxtw): Likewise.
6292 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
6294         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
6295         (*extrsi5_insn_uxtw): Likewise.
6297 2013-03-19  Richard Biener  <rguenther@suse.de>
6299         PR tree-optimization/56273
6300         * passes.c (init_optimization_passes): Move second VRP after DOM.
6302 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
6304         * config/i386/i386.md (*movti_internal): Merge from
6305         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
6306         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
6307         nox64 isa attributes.
6309 2013-03-18  Richard Biener  <rguenther@suse.de>
6311         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
6312         (unite): Likewise.
6313         (merge_node_constraints): Likewise.
6314         (build_succ_graph): Likewise.
6315         (valid_graph_edge): Inline into single caller.
6316         (unify_nodes): Likewise.  Use bitmap_set_bit return value
6317         and cache varinfo.
6318         (scc_visit): Fix formatting and variable use.
6319         (do_sd_constraint): Use gcc_checking_assert.
6320         (do_ds_constraint): Likewise.
6321         (do_complex_constraint): Likewise.
6322         (condense_visit): Likewise.  Cleanup.
6323         (dump_pred_graph): New function.
6324         (perform_var_substitution): Dump the pred-graph before
6325         variable substitution.
6326         (find_equivalent_node): Use gcc_checking_assert.
6327         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
6329 2013-03-18  Richard Biener  <rguenther@suse.de>
6331         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6332         Remove cond_expr_stmt_list argument and do not gimplify the
6333         built expression.
6334         (vect_loop_versioning): Adjust.
6335         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6336         Cleanup to use less temporaries.
6337         (vect_create_data_ref_ptr): Cleanup.
6339 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
6341         PR tree-optimization/56635
6342         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
6343         require types_compatible_p types.
6345 2013-03-18  Nick Clifton  <nickc@redhat.com>
6347         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
6348         spurious backslash.
6350         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
6351         Add missing line to comment describing function.
6353 2013-03-18  Richard Biener  <rguenther@suse.de>
6355         PR tree-optimization/56210
6356         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6357         Handle string / character search functions.
6358         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6360 2013-03-18  Richard Biener  <rguenther@suse.de>
6362         PR middle-end/56483
6363         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
6364         and implement properly.
6365         * gimple.h (gimple_cond_single_var_p): Remove.
6367 2013-03-18  Richard Biener  <rguenther@suse.de>
6369         * tree-data-ref.h (find_data_references_in_loop): Declare.
6370         * tree-data-ref.c (get_references_in_stmt): Use a stack
6371         vector pre-allocated in the callers.
6372         (find_data_references_in_stmt): Adjust.
6373         (graphite_find_data_references_in_stmt): Likewise.
6374         (create_rdg_vertices): Likewise.
6375         (find_data_references_in_loop): Export.
6376         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6377         Compute dependences here...
6378         (vect_analyze_data_refs): ...not here.  When we encounter
6379         a non-vectorizable data reference in basic-block vectorization
6380         truncate the data reference vector.  Do not bother to
6381         fixup data-dependence information for gather loads.
6382         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
6383         of data references, as reported.
6385 2013-03-18  Richard Biener  <rguenther@suse.de>
6387         PR tree-optimization/3713
6388         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
6389         has_constants and expr.
6390         (stmt_has_constants): Properly valueize SSA names when deciding
6391         whether the stmt has constants.
6393 2013-03-18  Richard Biener  <rguenther@suse.de>
6395         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
6396         whole function when there is nothing to do.
6397         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
6398         * tree-vectorizer.c (vectorize_loops): Update virtual and
6399         loop-closed SSA once.
6400         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
6402 2013-03-18  Richard Biener  <rguenther@suse.de>
6404         PR middle-end/56113
6405         * domwalk.c (bb_postorder): New global static.
6406         (cmp_bb_postorder): New function.
6407         (walk_dominator_tree): Replace scheme imposing an order for
6408         visiting dominator sons by one sorting them at the time they
6409         are pushed on the stack.
6411 2013-03-18  Richard Biener  <rguenther@suse.de>
6413         PR tree-optimization/39326
6414         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
6415         (struct mem_ref): Replace mem member with ao_ref typed member.
6416         (MEM_ANALYZABLE): Adjust.
6417         (memref_eq): Likewise.
6418         (mem_ref_alloc): Likewise.
6419         (gather_mem_refs_stmt): Likewise.
6420         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6421         (execute_sm_if_changed_flag_set): Adjust.
6422         (execute_sm): Likewise.
6423         (ref_always_accessed_p): Likewise.
6424         (refs_independent_p): Likewise.
6425         (can_sm_ref_p): Likewise.
6427 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
6429         PR c/56566
6430         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6431         return 1 even for !unsignedp.
6433 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6435         * config/i386/i386.md (isa): Add x64 and nox64.
6436         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6437         (*pushtf): Enable *roF alternative for x64 isa only.
6438         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
6439         mode attribute of integer alternatives to DImode for TARGET_64BIT.
6440         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
6441         (*movtf_internal): Merge from *movtf_internal_rex64 and
6442         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
6443         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
6444         nox64 isa attributes.
6445         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
6446         nox64 isa attributes.
6447         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6449 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6451         * config/alpha/alpha.c (TARGET_LRA_P): New define.
6453 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
6455         PR target/56640
6456         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
6457         class names.  Remove trailing comma after "ALL_REGS".
6459 2013-03-16  Jan Hubicka  <jh@suse.cz>
6461         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
6462         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
6463         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
6464         of cgraph_get_create_node.
6465         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6467 2013-03-16  Jason Merrill  <jason@redhat.com>
6469         PR debug/49090
6470         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
6471         with DW_AT_default_value.
6473 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
6475         * BASE-VER: Set to 4.9.0.
6477 2013-03-14  Andi Kleen  <ak@linux.intel.com>
6479         PR target/56619
6480         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
6481         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
6482         Document _x* TSX intrinsics.
6484 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
6485             David Holsgrove  <david.holsgrove@xilinx.com>
6487         * configure.ac: Add MicroBlaze TLS support detection.
6488         * configure: Regenerate.
6489         * config/microblaze/microblaze-protos.h
6490         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
6491         symbol_mentioned_p, label_mentioned_p): Add prototypes.
6492         * config/microblaze/microblaze.c (microblaze_address_type): Add
6493         ADDRESS_TLS and tls_reloc address types.
6494         (microblaze_address_info): Add tls_reloc.
6495         (TARGET_HAVE_TLS): Define.
6496         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
6497          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
6498          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
6499         load_tls_operand,  microblaze_call_tls_get_addr,
6500         microblaze_legitimize_tls_address): New functions.
6501         (microblaze_classify_unspec): Handle UNSPEC_TLS.
6502         (get_base_reg): Use microblaze_tls_symbol_p.
6503         (microblaze_classify_address): Handle TLS.
6504         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
6505         label_mentioned_p and microblaze_tls_referenced_p.
6506         (microblaze_legitimize_address): Handle TLS.
6507         (microblaze_address_insns): Handle ADDRESS_TLS.
6508         (pic_address_needs_scratch): Handle TLS.
6509         (print_operand_address): Handle TLS.
6510         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
6511         (microblaze_expand_move): Handle TLS.
6512         (microblaze_legitimate_constant_p): Check
6513         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
6514         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6515         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
6516         (PIC_OFFSET_TABLE_REGNUM): Set.
6517         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
6518         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
6519         (addsi3, movsi_internal2, movdf_internal): Update constraints
6520         * config/microblaze/predicates.md (arith_plus_operand): Define
6521         (move_operand): Redefine as move_src_operand,
6522         check microblaze_tls_referenced_p.
6524 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
6526         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
6527         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
6529 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
6531         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
6532         CC mode for AND.
6534 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
6536         PR tree-optimization/53265
6537         * common.opt (Waggressive-loop-optimizations): New option.
6538         * tree-ssa-loop-niter.c: Include tree-pass.h.
6539         (do_warn_aggressive_loop_optimizations): New function.
6540         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
6541         if number_of_latch_executions returned constant.
6542         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
6543         early.  If number_of_latch_executions returned constant, set
6544         nb_iterations_upper_bound back to it.
6545         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
6546         field.
6547         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
6548         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
6550         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
6551         (MULTILIB_OSDIRNAMES): Set.
6552         * genmultilib: If defaultosdirname doesn't start with :: , set
6553         defaultosdirname2 instead, clear it and emit two . multilib_raw
6554         entries instead of just one.
6556 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
6558         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6559         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
6560         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6561         (SUBTARGET_OVERRIDE_OPTIONS): New.
6563 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
6565         PR target/49880
6566         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
6567         (musermode): Convert to Var(TARGET_USERMODE).
6568         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
6569         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
6570         * config/sh/sh.c (sh_option_override): Use
6571         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
6572         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
6573         condition.
6574         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
6575         TARGET_SH4.
6576         (udivsi3_i4_single, divsi3_i4_single): Use
6577         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
6579 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
6581         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
6582         default setting.
6584 2013-03-13  Richard Biener  <rguenther@suse.de>
6586         PR tree-optimization/56608
6587         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
6588         calls when vectorizing basic-blocks.
6590 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
6592         PR plugins/45078
6593         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
6594         tm_file.
6596 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
6598         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
6600 2013-03-11  Jan Hubicka  <jh@suse.cz>
6602         PR lto/56557
6603         * lto-streamer-out.c (output_symbol_p): Skip references from
6604         constructors of external variables.
6606 2013-03-11  Jan Hubicka  <jh@suse.cz>
6608         PR middle-end/56571
6609         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
6610         from pseudos.
6611         * emit-rtl.c (verify_rtx_sharing): Likewise.
6612         (copy_insn_1): Likewise.
6613         * rtl.c (copy_rtx): Likewise.
6615 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
6617         PR target/56591
6618         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
6619         output_operand_lossage message.
6621 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
6623         PR target/56470
6624         * arm.c (shift_op): Validate RTL pattern on the fly.
6625         (arm_print_operand, case 'S'): Don't use shift_operator to validate
6626         the RTL.
6628 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6630         PR target/56347
6631         * config/pa/pa.md (call_value): Check for calls to powf and direct to
6632         new call patterns that clobber %fr12.
6633         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
6634         split and postreload patterns.
6635         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
6636         registers %fr12 and %fr12R as call used.
6638 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
6640         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
6641         (canon_address, record_store, replace_read, check_mem_read_rtx,
6642         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
6643         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
6644         rest_of_handle_dse): Likewise.
6646 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
6648         PR middle-end/56524
6649         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
6650         Add base_optabs.
6651         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
6652         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
6653         (save_optabs_if_changed): Replace with...
6654         (init_tree_optimization_optabs): ...this.
6655         * optabs.c (save_optabs_if_changed): Rename to...
6656         (init_tree_optimization_optabs): ...this.  Take the optimization node
6657         as argument.  Do nothing if the base optabs are already correct.
6658         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
6659         to recompute optabs.
6660         * function.h (function): Remove optabs field.
6661         * function.c (invoke_set_current_function_hook): Call
6662         init_tree_optimization_optabs.  Use the result to initialize
6663         this_fn_optabs.
6665 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
6667         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
6668         if GTMA_HAS_NO_INSTRUMENTATION.
6669         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
6670         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
6671         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
6672         * gimple-pretty-print.c (dump_gimple_transaction): Handle
6673         GTMA_HAS_NO_INSTRUMENTATION.
6675 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
6677         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
6678         libasan_preinit.o.
6680 2013-03-08  Marek Polacek  <polacek@redhat.com>
6681             Jakub Jelinek  <jakub@redhat.com>
6683         PR tree-optimization/56478
6684         * predict.c (is_comparison_with_loop_invariant_p): Change the
6685         type of loop_step to tree.
6686         (predict_loops): Adjust.
6687         (predict_iv_comparison): Perform the computations on double_ints.
6689 2013-03-08  Richard Biener  <rguenther@suse.de>
6691         PR tree-optimization/56570
6692         * tree-cfg.c (verify_expr_location_1): Verify locations for
6693         DECL_DEBUG_EXPR.
6694         * tree-sra.c (create_access_replacement): Strip locations
6695         from DECL_DEBUG_EXPRs.
6697 2013-03-08  Richard Biener  <rguenther@suse.de>
6699         * tree-inline.c (expand_call_inline): Do not associate
6700         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
6701         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
6703 2013-03-08  Richard Biener  <rguenther@suse.de>
6705         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
6706         or block changes with -Og.  Fix for location / block encoding
6707         changes and PHI arguments with locations.
6709 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
6711         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
6712         for all counters.
6713         (struct output_info): Likewise.
6714         (register_overhead): Remove bad gcc_assert.
6715         (bitmap_find_bit): If there is only a single bitmap element, do not
6716         count a miss as a search.
6717         (print_statistics): Update for counter type changes.
6718         (dump_bitmap_statistics): Likewise.  Print headers such that they
6719         are properly lined up with the printed counters.
6721 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
6723         PR tree-optimization/56559
6724         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
6725         check that it has only a single use.
6727 2013-03-07  Richard Biener  <rguenther@suse.de>
6729         * doc/invoke.texi (fwhole-program): Discourage use in combination
6730         with -flto.
6732 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
6734         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
6736         PR tree-optimization/56539
6737         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
6738         instead of GSI_CONTINUE_LINKING as last argument to
6739         force_gimple_operand_gsi.  Adjust function comment.
6741         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
6742         aarch64-cores.def.
6744         PR middle-end/56548
6745         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
6746         promoted mode, convert the result back to the original mode.
6748 2013-03-06  Richard Biener  <rguenther@suse.de>
6750         PR middle-end/56294
6751         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
6752         (insert_updated_phi_nodes_compare_uids): New function.
6753         (update_ssa): Sort symbols_to_rename after UID before
6754         traversing it to insert PHI nodes.
6756 2013-03-06  Richard Biener  <rguenther@suse.de>
6758         PR middle-end/50494
6759         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
6760         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
6762         Revert
6763         2013-02-13  Richard Biener  <rguenther@suse.de>
6765         PR lto/50494
6766         * varasm.c (output_constant_def_1): Get the decl representing
6767         the constant as argument.
6768         (output_constant_def): Wrap output_constant_def_1.
6769         (make_decl_rtl): Use output_constant_def_1 with the decl
6770         representing the constant.
6771         (build_constant_desc): Optionally re-use a decl already
6772         representing the constant.
6773         (tree_output_constant_def): Adjust.
6775 2013-03-06  Joey Ye  <joey.ye@arm.com>
6777         PR lto/50293
6778         * gcc.c (convert_white_space): New function.
6779         (main): Handles white space in function name.
6781 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
6783         PR target/56529
6784         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
6785         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
6786         to SH_DIV_CALL_TABLE for TARGET_SH2.
6787         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
6788         list.
6789         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
6790         call-table options.
6792 2013-03-05  Sterling Augustine  <saugustine@google.com>
6793             Cary Coutant  <ccoutant@google.com>
6795         PR debug/55364
6796         * dwarf2out.c (resolve_addr): Don't call
6797         remove_loc_list_addr_table_entries a second time for the same
6798         expression.
6800 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6802         PR debug/56510
6803         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
6804         (avoid_complex_debug_insns): New function.
6805         (expand_debug_locations): Call it.
6807         PR rtl-optimization/56484
6808         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
6809         lifetimes of hard registers on small register class machines.
6811 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
6813         * config/microblaze/microblaze-protos.h: Rename
6814         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6815         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
6816         fast_interrupt.
6817         (microblaze_fast_interrupt_function_p): New function.
6818         (microblaze_is_interrupt_handler): Rename to
6819         microblaze_is_interrupt_variant and add fast_interrupt check.
6820         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
6821         (save_restore_insns): Likewise.
6822         (compute_frame_size): Likewise.
6823         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
6824         (microblaze_globalize_label): Likewise.
6825         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
6826         * config/microblaze/microblaze.md: Use wrapper
6827         microblaze_is_interrupt_variant.
6829 2013-03-05  Kai Tietz  <ktietz@redhat.com>
6831         * sdbout.c (sdbout_one_type): Switch to current function's section
6832         supporting cold/hot.
6834 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
6836         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
6837         -mxl-reorder.
6839 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6841         PR middle-end/56461
6842         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
6843         if VALGRIND_GET_VBITS is defined, temporarily make object
6844         memory all defined, and restore previous valgrind addressability
6845         and definability afterwards.  Free this_object at the end.
6847         PR middle-end/56461
6848         * lra.c (lra): Call lra_clear_live_ranges if live_p,
6849         right before calling lra_create_live_ranges, also call it
6850         when clearing live_p.  Only call lra_clear_live_ranges
6851         at the end if live_p.
6853         PR middle-end/56461
6854         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
6856 2013-03-05  Richard Biener  <rguenther@suse.de>
6858         PR tree-optimization/56521
6859         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
6860         value-id.
6862 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
6864         PR c++/55135
6865         * except.h (remove_unreachable_eh_regions): New prototype.
6866         * except.c (remove_eh_handler_splicer): New function, split out
6867         of remove_eh_handler.
6868         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
6869         warning about running it on many EH regions one at a time.
6870         (remove_unreachable_eh_regions_worker): New function, walk the
6871         EH tree in depth-first order and remove non-marked regions.
6872         (remove_unreachable_eh_regions): New function.
6873         * tree-eh.c (mark_reachable_handlers): New function, split out
6874         from remove_unreachable_handlers.
6875         (remove_unreachable_handlers): Use mark_reachable_handlers and
6876         remove_unreachable_eh_regions.
6877         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
6878         and remove_unreachable_eh_regions.
6880 2013-03-05  Richard Biener  <rguenther@suse.de>
6882         PR middle-end/56525
6883         * loop-init.c (fix_loop_structure): Remove loops in two stages,
6884         not freeing them until the end.
6886 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6888         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
6890 2013-03-05  Richard Biener  <rguenther@suse.de>
6892         PR tree-optimization/56270
6893         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
6894         of loads after scheduling an SLP instance.
6896 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6898         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
6899         tic6x.exp.
6900         (check_gcc_parallelize): Run guality.exp as a separate job from
6901         vect.exp with unsorted.exp and $(dg_target_exps) separately from
6902         struct-layout-1.exp with stackalign.exp.
6904         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
6906         PR middle-end/56461
6907         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
6908         load_index sbitmap even if some bit in it isn't set.
6910         PR middle-end/56461
6911         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
6912         (discover_iteration_bound_by_body_walk): Change queues to
6913         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
6914         spelling in comment.  Call safe_push on queues[bound_index] directly.
6915         Release queues[queue_index] in every iteration unconditionally.
6916         Release bounds vector.
6918         PR middle-end/56461
6919         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
6920         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
6921         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
6922         inner_phis vector.
6924 2013-03-05  Richard Biener  <rguenther@suse.de>
6926         PR lto/56515
6927         * tree-inline.c (remap_blocks_to_null): New function.
6928         (expand_call_inline): When expanding a call stmt without
6929         an associated block inline remap all callee blocks to NULL.
6931 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6933         PR rtl-optimization/56494
6934         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
6935         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
6936         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
6938         PR middle-end/56461
6939         * sel-sched-ir.c (free_sched_pools): Release
6940         succs_info_pool.stack[succs_info_pool.max_top] vectors too
6941         if succs_info_pool.max_top isn't -1.
6943         PR bootstrap/56509
6944         * opts.c (opts_obstack, opts_concat): Moved to...
6945         * opts-common.c (opts_obstack, opts_concat): ... here.
6947 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
6949         PR middle-end/56461
6950         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
6952 2013-03-04  Martin Jambor  <mjambor@suse.cz>
6954         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
6955         all appropriate places.
6957 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
6959         PR tree-optimization/56424
6960         * ipa-split.c (split_function): Do not set the RSO flag if result is
6961         not by reference and its type is a register type.
6963 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
6965         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
6966         (microblaze_legitimate_pic_operand): Likewise
6967         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
6968         new function microblaze_legitimate_pic_operand
6969         * config/microblaze/microblaze-protos.h
6970         (microblaze_legitimate_pic_operand): Declare.
6972 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6974         * config/microblaze/predicates.md (call_insn_simple_operand):
6975         New predicate for supported rtx code types.
6976         * config/microblaze/microblaze.md (call_internal1): Use
6977         call_insn_simple_operand predicate.
6979 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
6981         PR middle-end/56461
6982         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
6983         partitions.ordered_remove.
6985         PR middle-end/56461
6986         * tree-vect-stmts.c (vectorizable_conversion): Don't call
6987         vec_oprnds0.create (1) for modifier == NONE.
6989         PR middle-end/56461
6990         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
6991         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
6992         vec_oprnds1 right before pushing anything to it for
6993         scalar_shift_arg.
6995         PR middle-end/56461
6996         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
6997         set nbbs to 0 instead of having separate code path.
6998         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
6999         instead of false as last argument if returning NULL.
7001 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
7003         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
7004         the attribute is now called "target" instead of "option".
7005         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
7006         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
7007         attribute/pragma name for TARGET_OPTION_VALID_P and
7008         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
7009         * doc/tm.texi: Regenerated.
7011 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
7013         * config/microblaze/microblaze.c:
7014         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
7015         * config/microblaze/microblaze.h: Add -mxl-reorder to
7016         DRIVER_SELF_SPECS.
7017         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
7018         instructions emitted if TARGET_REORDER.
7019         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
7020         or 0 for -m/-mno case, but initialises as 2 to detect default use case
7021         separately.
7023 2013-03-01  Xinliang David Li  <davidxl@google.com>
7025         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
7026         walk length.
7028 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
7030         PR middle-end/56461
7031         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
7032         vector even when returning true.  Fix up function comment formatting.
7034         PR middle-end/56461
7035         * ira-build.c (ira_loop_nodes_count): New variable.
7036         (create_loop_tree_nodes): Initialize it.
7037         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
7039         PR middle-end/56461
7040         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
7041         method on dr_chain and result_chain.
7042         * tree-vect-stmts.c (vectorizable_store): Only call
7043         result_chain.create if j == 0.
7045         PR middle-end/56461
7046         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
7047         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
7048         before overwriting it.
7050 2013-03-01  Tobias Burnus  <burnus@net-b.de>
7052         * doc/extended.texi (C Extensions): Change order in @menu
7053         to match @node.
7054         (Other MIPS Built-in Functions): Move last MIPS entry before
7055         "picoChip Built-in Functions".
7056         (SH Built-in Functions): Move after RX Built-in Functions.
7057         * doc/gcc.texi (Introduction): Change order in @menu
7058         to match @node.
7059         * doc/md.texi (Constraints): Ditto.
7060         * gty.texi (Type Information): Ditto.
7061         (User-provided marking routines for template types): Make
7062         subsection.
7063         * doc/invoke.texi (AArch64 Options): Move before
7064         "Adapteva Epiphany Options".
7066 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
7067             Jakub Jelinek  <jakub@redhat.com>
7069         PR sanitizer/56454
7070         * asan.c (gate_asan): Lookup no_sanitize_address instead of
7071         no_address_safety_analysis attribute.
7072         * doc/extend.texi (no_address_safety_attribute): Rename to
7073         no_sanitize_address attribute, mention no_address_safety_analysis
7074         attribute as deprecated alias.
7076 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
7078         PR middle-end/56461
7079         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
7080         type to vec<vec<tree> > *.
7081         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
7082         to be vec<tree> instead of vec<tree> *, set vec_defs
7083         to vNULL and call vec_defs.create (number_of_vects), adjust other
7084         uses of vec_defs.
7085         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
7086         vectorizable_condition): Adjust vect_get_slp_defs callers.
7088 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
7090         * config/aarch64/aarch64.c
7091         (aarch64_float_const_representable): Remove unused variable.
7093 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
7095         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
7097 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
7099         * config/aarch64/aarch64-builtins.c
7100         (aarch64_init_simd_builtins): Make static.
7102 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
7104         * config/aarch64/aarch64.c
7105         (aarch64_simd_make_constant): Make static.
7107 2013-02-28  Martin Jambor  <mjambor@suse.cz>
7109         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
7110         with no initialization to the RHS of debug statements.
7112 2013-02-28  Martin Jambor  <mjambor@suse.cz>
7114         PR tree-optimization/56294
7115         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
7116         Adjust dumping.
7117         (get_access_replacement): Do not call create_access_replacement.
7118         Assert a replacement exists.
7119         (get_repl_default_def_ssa_name): Create the replacement declaration
7120         itself.
7122 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7124         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
7125         final_end_function.
7127 2013-02-28  Marek Polacek  <polacek@redhat.com>
7129         PR rtl-optimization/56466
7130         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
7131         if we're changing a loop.
7132         (peel_loops_completely): Likewise.
7134 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
7136         PR c++/55813
7137         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
7139 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
7141         PR target/56445
7142         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
7143         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
7144         INTX_FTYPE_FX, FX_FTYPE_INTX.
7145         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
7147 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
7149         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
7150         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
7151         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
7152         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
7153         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
7154         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
7155         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
7156         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
7157         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
7158         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
7159         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
7160         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
7161         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
7162         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
7163         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
7164         (avrxmega6): Increase max flash segments from 5 to 6.
7165         * config/avr/t-multilib: Regenerate.
7166         * config/avr/avr-tables.opt: Regenerate.
7167         * doc/avr-mmcu.texi: Regenerate.
7169 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
7171         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
7172         (avr_device_to_arch): Rename to avr_device_to_ld.
7173         (avr_device_to_as): New prototype.
7174         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
7175         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
7176         * config/avr/driver-avr.c (avr_device_to_as): New.
7177         (avr_device_to_arch): Rename to avr_device_to_ld.
7179 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
7181         PR middle-end/56461
7182         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
7183         method on dr_chain and result_chain.
7185         PR middle-end/56461
7186         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
7187         pointer_set_destroy on not_executed_last_iteration.
7189         PR middle-end/56461
7190         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
7192         PR middle-end/56461
7193         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
7194         FOR_EACH_DEFINED_FUNCTION when freeing state.
7196         PR middle-end/56461
7197         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
7198         pool_free.
7199         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
7200         overwriting it.
7202         PR middle-end/56461
7203         * ipa-cp.c (decide_whether_version_node): Call vec_free on
7204         known_aggs[i].items and release known_aggs vector.
7206         PR middle-end/56461
7207         * ipa-reference.c (propagate): Free node_info even for alias nodes.
7209 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7211         * config/microblaze/microblaze.c (microblaze_emit_compare):
7212         Use xor for EQ/NE comparisions.
7213         * config/microblaze/microblaze.md (cstoresf4): Add constraints
7214         (cbranchsf4): Adjust operator to comparison_operator.
7216 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
7218         PR middle-end/56461
7219         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
7220         vector.
7221         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
7222         vec_safe_push, always update *slot.
7223         (redirect_edge_var_map_clear): Use vec_free.
7224         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
7225         (free_var_map_entry): Use vec_free.
7226         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
7227         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
7229 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
7231         PR middle-end/45472
7232         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
7233         when the may_trap_p bit of the exprs being merged differs.
7234         Reorder tests for speculativeness in the logical and operator.
7236 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
7238         * incpath.c (add_standard_paths): Use reconcat instead of concat
7239         where appropriate and avoid leaking memory.
7241         * opts.h: Include obstack.h.
7242         (opts_concat): New prototype.
7243         (opts_obstack): New declaration.
7244         * opts.c (opts_concat): New function.
7245         (opts_obstack): New variable.
7246         (init_options_struct): Call gcc_init_obstack on opts_obstack.
7247         (finish_options): Use opts_concat instead of concat
7248         and XOBNEWVEC instead of XNEWVEC.
7249         * opts-common.c (generate_canonical_option, decode_cmdline_option,
7250         generate_option): Likewise.
7251         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
7252         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
7254         PR target/56455
7255         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
7256         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
7258 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
7260         PR middle-end/56461
7261         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
7263 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
7265         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
7266         (arm_block_move_unaligned_straight): Likewise.
7267         (arm_adjust_block_mem): Likewise.
7269 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
7271         PR target/48901
7272         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
7273         temp, cond and label.
7274         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
7276         PR target/52500
7277         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
7278         * config/c6x/c6x.h (dbx_register_map): Update declaration.
7280         PR target/52501
7281         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
7282         of prologue/epilogue functions.
7284         PR target/52550
7285         * config/tilegx/tilegx.c (tilegx_expand_prologue):
7286         Remove unused variable cfa_offset.
7287         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
7289         PR target/54639
7290         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
7291         type promotion to unsigned.
7293         PR target/54640
7294         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
7295         for HOST_WIDE_INT of 32 bit / same size as int.
7296         (arm_block_move_unaligned_straight): Likewise.
7297         (arm_adjust_block_mem): Likewise.
7299         PR target/54662
7300         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
7301         ALL_CFLAGS.
7303 2013-02-26  Marek Polacek  <polacek@redhat.com>
7305         PR tree-optimization/56426
7306         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
7308 2013-02-26  Richard Biener  <rguenther@suse.de>
7310         PR target/56444
7311         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
7312         unused variable loops.
7314 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
7316         PR tree-optimization/56448
7317         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
7318         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
7319         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
7320         later operands of the references, or even first operand for
7321         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
7323         PR tree-optimization/56443
7324         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
7325         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
7326         to type_for_mode langhook.
7328 2013-02-25  Matt Turner  <mattst88@gmail.com>
7330         * doc/invoke.texi: Document r4700.
7332 2013-02-25  Richard Biener  <rguenther@suse.de>
7334         PR tree-optimization/56175
7335         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
7336         split out from ...
7337         (simplify_bitwise_binary): ... here.  Also guard the conversion
7338         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
7340 2013-02-25  Catherine Moore  <clm@codesourcery.com>
7342         Revert:
7343         2013-02-24  Catherine Moore  <clm@codesourcery.com>
7344             Maciej W. Rozycki  <macro@codesourcery.com>
7345             Tom de Vries  <tom@codesourcery.com>
7346             Nathan Sidwell  <nathan@codesourcery.com>
7347             Iain Sandoe  <iain@codesourcery.com>
7348             Nathan Froyd  <froydnj@codesourcery.com>
7349             Chao-ying Fu  <fu@mips.com>
7351         * doc/extend.texi: (micromips, nomicromips, nocompression):
7352         Document new function attributes.
7353         * doc/invoke.texi (minterlink-compressed, mmicromips,
7354         m14k, m14ke, m14kec): Document new options.
7355         (minterlink-mips16): Update documentation.
7356         * doc/md.texi (ZC, ZD): Document new constraints.
7357         * configure.ac (gcc_cv_as_micromips): Check if linker
7358         supports the .set micromips directive.
7359         * configure: Regenerate.
7360         * config.in: Regenerate.
7361         * config/mips/mips-tables.opt: Regenerate.
7362         * config/mips/micromips.md: New file.
7363         * constraints.md (ZC, AD): New constraints.
7364         * config/mips/predicates.md (movep_src_register): New predicate.
7365         (movep_src_operand): New predicate.
7366         (non_volatile_mem_operand): New predicate.
7367         * config/mips/mips.md (multimem): New type.
7368         (length): Differentiate between 17-bit and 18-bit branch offsets.
7369         (MOVEP1, MOVEP2): New mode iterator.
7370         (mov_<load>l): Use ZC constraint.
7371         (mov_<load>r): Likewise.
7372         (mov_<store>l): Likewise.
7373         (mov_<store>r): Likewise.
7374         (*branch_equality<mode>_inverted): Add microMIPS support.
7375         (*branch_equality<mode>): Likewise.
7376         (*jump_absolute): Likewise.
7377         (indirect_jump_<mode>): Likewise.
7378         (tablejump_<mode>): Likewise.
7379         (<optab>_internal): Likewise.
7380         (sibcall_internal): Likewise.
7381         (sibcall_value_internal): Likewise.
7382         (prefetch): Use constraint ZD.
7383         * config/mips/mips.opt (minterlink-compressed): New option.
7384         (minterlink-mips16): Now an alias for minterlink-compressed.
7385         (mmicromips): New option.
7386         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7387         (compare_and_swap_12): Likewise.
7388         (sync_add<mode>): Likewise.
7389         (sync_<optab>_12): Likewise.
7390         (sync_old_<optab>_12): Likewise.
7391         (sync_new_<optab>_12): Likewise.
7392         (sync_nand_12): Likewise.
7393         (sync_old_nand_12): Likewise.
7394         (sync_new_nand_12): Likewise.
7395         (sync_sub<mode>): Likewise.
7396         (sync_old_add<mode>): Likewise.
7397         (sync_old_sub<mode>): Likewise.
7398         (sync_new_add<mode>): Likewise.
7399         (sync_new_sub<mode>): Likewise.
7400         (sync_<optab><mode>): Likewise.
7401         (sync_old_<optab><mode>): Likewise.
7402         (sync_new_<optab><mode>): Likewise.
7403         (sync_nand<mode>): Likewise.
7404         (sync_old_nand<mode>): Likewise.
7405         (sync_new_nand<mode>): Likewise.
7406         (sync_lock_test_and_set<mode>): Likewise.
7407         (test_and_set_12): Likewise.
7408         (atomic_compare_and_swap<mode>): Likewise.
7409         (atomic_exchange<mode>_llsc): Likewise.
7410         (atomic_fetch_add<mode>_llsc): Likewise.
7411         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7412         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7413         (umips_save_restore_pattern_p): Likewise.
7414         (umips_load_store_pair_p): Likewise.
7415         (umips_output_load_store_pair): Likewise.
7416         (umips_movep_target_p): Likewise.
7417         (umips_12bit_offset_address_p): Likewise.
7418         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7419         (mips_base_mips16): Rename this...
7420         (mips_base_compression_flags): ...to this. Update all uses.
7421         (mips_attribute_table): Add micromips, nomicromips and nocompression.
7422         (mips_mips16_decl_p): Delete.
7423         (mips_nomips16_decl_p): Delete.
7424         (mips_get_compress_on_flags): New function.
7425         (mips_get_compress_off_flags): New function.
7426         (mips_get_compress_mode): New function.
7427         (mips_get_compress_on_name): New function.
7428         (mips_get_compress_off_name): New function.
7429         (mips_insert_attributes): Support multiple compression types.
7430         (mips_merge_decl_attributes): Likewise.
7431         (umips_12bit_offset_address_p): New function.
7432         (mips_start_function_definition): Emit .set micromips directive.
7433         (mips_call_may_need_jalx_p): New function.
7434         (mips_function_ok_for_sibcall): Add microMIPS support.
7435         (mips_print_operand_punctuation): Support short delay slots and
7436         compact jumps.
7437         (umips_swm_mask, umips_swm_encoding): New.
7438         (umips_build_save_restore): New function.
7439         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7440         (was_mips16_p): Remove.
7441         (old_compression_mode): New.
7442         (mips_set_compression_mode): New function.
7443         (mips_set_current_function): Add microMIPS support.
7444         (mips_option_override): Likewise.
7445         (umips_save_restore_pattern_p): New function.
7446         (umips_output_save_restore): New function.
7447         (umips_load_store_pair_p_1): New function.
7448         (umips_load_store_pair_p): New function.
7449         (umips_output_load_store_pair_1): New function.
7450         (umips_output_load_store_pair): New function.
7451         (umips_movep_target_p) New function.
7452         (mips_prepare_pch_save): Add microMIPS support.
7453         * config/mips/mips.h (TARGET_COMPRESSION): New.
7454         (TARGET_CPU_CPP_BUILTINS): Update macro
7455         to use new compression flags and to support microMIPS.
7456         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7457         (MIPS_ARCH_FLOAT_SPEC): Likewise.
7458         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7459         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7460         (ASM_SPEC): Support mmicromips and mno-micromips.
7461         (M16STORE_REG_P): New macro.
7462         (MIPS_CALL): Support TARGET_MICROMIPS.
7463         (MICROMIPS_J): New macro.
7464         (mips_base_mips16): Rename this...
7465         (mips_base_compression_flags): ...to this.
7466         (UMIPS_12BIT_OFFSET_P): New macro.
7467         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7468         (MULTILIB_DIRNAMES): Likewise.
7470 2013-02-25  Tom de Vries  <tom@codesourcery.com>
7472         PR rtl-optimization/56131
7473         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
7474         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
7475         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
7477 2013-02-25  Tobias Burnus  <burnus@net-b.de>
7479         * doc/invoke.texi (-fsanitize=): Move from optimization
7480         to debugging options.
7482 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
7484         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
7486 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
7487             Alexander Monakov  <amonakov@ispras.ru>
7489         PR middle-end/56077
7490         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
7491         flush pending lists also on non-jumps.  Adjust comment.
7493 2013-02-24  Catherine Moore  <clm@codesourcery.com>
7494             Maciej W. Rozycki  <macro@codesourcery.com>
7495             Tom de Vries  <tom@codesourcery.com>
7496             Nathan Sidwell  <nathan@codesourcery.com>
7497             Iain Sandoe  <iain@codesourcery.com>
7498             Nathan Froyd  <froydnj@codesourcery.com>
7499             Chao-ying Fu  <fu@mips.com>
7501         * doc/extend.texi: (micromips, nomicromips, nocompression):
7502         Document new function attributes.
7503         * doc/invoke.texi (minterlink-compressed, mmicromips,
7504         m14k, m14ke, m14kec): Document new options.
7505         (minterlink-mips16): Update documentation.
7506         * doc/md.texi (ZC, ZD): Document new constraints.
7507         * configure.ac (gcc_cv_as_micromips): Check if linker
7508         supports the .set micromips directive.
7509         * configure: Regenerate.
7510         * config.in: Regenerate.
7511         * config/mips/mips-tables.opt: Regenerate.
7512         * config/mips/micromips.md: New file.
7513         * constraints.md (ZC, AD): New constraints.
7514         * config/mips/predicates.md (movep_src_register): New predicate.
7515         (movep_src_operand): New predicate.
7516         (non_volatile_mem_operand): New predicate.
7517         * config/mips/mips.md (multimem): New type.
7518         (length): Differentiate between 17-bit and 18-bit branch offsets.
7519         (MOVEP1, MOVEP2): New mode iterator.
7520         (mov_<load>l): Use ZC constraint.
7521         (mov_<load>r): Likewise.
7522         (mov_<store>l): Likewise.
7523         (mov_<store>r): Likewise.
7524         (*branch_equality<mode>_inverted): Add microMIPS support.
7525         (*branch_equality<mode>): Likewise.
7526         (*jump_absolute): Likewise.
7527         (indirect_jump_<mode>): Likewise.
7528         (tablejump_<mode>): Likewise.
7529         (<optab>_internal): Likewise.
7530         (sibcall_internal): Likewise.
7531         (sibcall_value_internal): Likewise.
7532         (prefetch): Use constraint ZD.
7533         * config/mips/mips.opt (minterlink-compressed): New option.
7534         (minterlink-mips16): Now an alias for minterlink-compressed.
7535         (mmicromips): New option.
7536         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7537         (compare_and_swap_12): Likewise.
7538         (sync_add<mode>): Likewise.
7539         (sync_<optab>_12): Likewise.
7540         (sync_old_<optab>_12): Likewise.
7541         (sync_new_<optab>_12): Likewise.
7542         (sync_nand_12): Likewise.
7543         (sync_old_nand_12): Likewise.
7544         (sync_new_nand_12): Likewise.
7545         (sync_sub<mode>): Likewise.
7546         (sync_old_add<mode>): Likewise.
7547         (sync_old_sub<mode>): Likewise.
7548         (sync_new_add<mode>): Likewise.
7549         (sync_new_sub<mode>): Likewise.
7550         (sync_<optab><mode>): Likewise.
7551         (sync_old_<optab><mode>): Likewise.
7552         (sync_new_<optab><mode>): Likewise.
7553         (sync_nand<mode>): Likewise.
7554         (sync_old_nand<mode>): Likewise.
7555         (sync_new_nand<mode>): Likewise.
7556         (sync_lock_test_and_set<mode>): Likewise.
7557         (test_and_set_12): Likewise.
7558         (atomic_compare_and_swap<mode>): Likewise.
7559         (atomic_exchange<mode>_llsc): Likewise.
7560         (atomic_fetch_add<mode>_llsc): Likewise.
7561         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7562         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7563         (umips_save_restore_pattern_p): Likewise.
7564         (umips_load_store_pair_p): Likewise.
7565         (umips_output_load_store_pair): Likewise.
7566         (umips_movep_target_p): Likewise.
7567         (umips_12bit_offset_address_p): Likewise.
7568         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7569         (mips_base_mips16): Rename this...
7570         (mips_base_compression_flags): ...to this. Update all uses.
7571         (mips_attribute_table): Add micromips, nomicromips and nocompression.
7572         (mips_mips16_decl_p): Delete.
7573         (mips_nomips16_decl_p): Delete.
7574         (mips_get_compress_on_flags): New function.
7575         (mips_get_compress_off_flags): New function.
7576         (mips_get_compress_mode): New function.
7577         (mips_get_compress_on_name): New function.
7578         (mips_get_compress_off_name): New function.
7579         (mips_insert_attributes): Support multiple compression types.
7580         (mips_merge_decl_attributes): Likewise.
7581         (umips_12bit_offset_address_p): New function.
7582         (mips_start_function_definition): Emit .set micromips directive.
7583         (mips_call_may_need_jalx_p): New function.
7584         (mips_function_ok_for_sibcall): Add microMIPS support.
7585         (mips_print_operand_punctuation): Support short delay slots and
7586         compact jumps.
7587         (umips_swm_mask, umips_swm_encoding): New.
7588         (umips_build_save_restore): New function.
7589         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7590         (was_mips16_p): Remove.
7591         (old_compression_mode): New.
7592         (mips_set_compression_mode): New function.
7593         (mips_set_current_function): Add microMIPS support.
7594         (mips_option_override): Likewise.
7595         (umips_save_restore_pattern_p): New function.
7596         (umips_output_save_restore): New function.
7597         (umips_load_store_pair_p_1): New function.
7598         (umips_load_store_pair_p): New function.
7599         (umips_output_load_store_pair_1): New function.
7600         (umips_output_load_store_pair): New function.
7601         (umips_movep_target_p) New function.
7602         (mips_prepare_pch_save): Add microMIPS support.
7603         * config/mips/mips.h (TARGET_COMPRESSION): New.
7604         (TARGET_CPU_CPP_BUILTINS): Update macro
7605         to use new compression flags and to support microMIPS.
7606         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7607         (MIPS_ARCH_FLOAT_SPEC): Likewise.
7608         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7609         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7610         (ASM_SPEC): Support mmicromips and mno-micromips.
7611         (M16STORE_REG_P): New macro.
7612         (MIPS_CALL): Support TARGET_MICROMIPS.
7613         (MICROMIPS_J): New macro.
7614         (mips_base_mips16): Rename this...
7615         (mips_base_compression_flags): ...to this.
7616         (UMIPS_12BIT_OFFSET_P): New macro.
7617         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7618         (MULTILIB_DIRNAMES): Likewise.
7620 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
7622         PR target/52555
7623         * target-globals.c (save_target_globals): For init_reg_sets and
7624         target_reinit remporarily set this_fn_optabs to this_target_optabs.
7626 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
7628         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
7629         * config/aarch64/t-aarch64
7630         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
7632 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
7634         PR inline-asm/56148
7635         * lra-constraints.c (process_alt_operands): Reload operand
7636         conflicting with earlier clobber only if no more other conflicting
7637         operands.
7639 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
7641         PR sanitizer/56393
7642         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
7643         if not linking a shared library.
7645 2013-02-22  Seth LaForge  <sethml@google.com>
7647         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
7649 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
7651         * config/arm/arm.md (split for extendsidi): Update condition.
7652         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
7653         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
7654         (qhs_zextenddi_cstr): Likewise.
7656 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
7658         PR middle-end/56420
7659         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
7660         avoid signed wrapping.
7661         (expand_mult): Handle properly multiplication by
7662         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
7663         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
7664         in the compiler if coeff is HOST_WIDE_INT_MIN.
7665         (expand_divmod): Don't make ext_op1 static, change it's type to
7666         uhwi.  Avoid undefined behavior in -INTVAL (op1).
7668         PR rtl-optimization/50339
7669         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
7670         field.
7671         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
7672         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
7673         into splitting_ashiftrt field.
7674         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
7675         ASHIFTRT.
7676         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
7677         choices.
7679 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
7681         PR middle-end/56108
7682         * trans-mem.c (execute_tm_mark): Do not expand transactions that
7683         are sure to go irrevocable.
7685 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
7687         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
7688         scalars are valid operands.
7690 2013-02-21  Martin Jambor  <mjambor@suse.cz>
7692         PR tree-optimization/56310
7693         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
7694         only matching indices and non-negative final offsets.
7695         (intersect_aggregates_with_edge): Pass src_idx to
7696         agg_replacements_to_vector.  Pass src_idx insstead of index to
7697         intersect_with_agg_replacements.
7699 2013-02-21  Martin Jambor  <mjambor@suse.cz>
7701         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
7702         instead of hard-wired defaults.
7704 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
7706         * doc/invoke.texi (MIPS Options): Update documentation of the
7707         floating-point multiply-accumulate instruction restrictions.
7709 2013-02-21  Kostya Serebryany  <kcc@google.com>
7711         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
7712         asan_shadow_offset on x86_64 linux.
7714 2013-02-21  Richard Biener  <rguenther@suse.de>
7716         PR tree-optimization/56415
7717         Revert
7718         2013-02-11  Richard Biener  <rguenther@suse.de>
7720         PR tree-optimization/56273
7721         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7722         first VRP run.
7724 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
7726         PR bootstrap/56258
7727         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
7728         instead of @itemx.
7730         PR inline-asm/56405
7731         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
7732         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
7734 2013-02-20  Jan Hubicka  <jh@suse.cz>
7736         PR tree-optimization/56265
7737         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
7738         when target is referenced for first time.
7740 2013-02-20  Richard Biener  <rguenther@suse.de>
7742         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
7743         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
7744         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7745         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
7746         not return anything.
7747         (rename_ssa_copies): Do not remove unused locals.
7748         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
7749         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
7750         * passes.c (execute_function_todo): Do not schedule unused locals
7751         removal if cleanup_tree_cfg did something.
7752         * tree-ssa-live.c (remove_unused_locals): Dump statistics
7753         about the number of removed locals.
7755 2013-02-20  Richard Biener  <rguenther@suse.de>
7757         PR tree-optimization/56398
7758         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
7760 2013-02-20  Martin Jambor  <mjambor@suse.cz>
7762         PR tree-optimization/55334
7763         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
7764         restricted pointers to arrays.
7766 2013-02-20  Richard Biener  <rguenther@suse.de>
7767             Jakub Jelinek  <jakub@redhat.com>
7769         PR tree-optimization/56396
7770         * tree-ssa-ccp.c (n_const_val): New static variable.
7771         (get_value): Return NULL for SSA names we don't have a lattice
7772         entry for.
7773         (ccp_initialize): Initialize n_const_val.
7774         * tree-ssa-copy.c (n_copy_of): New static variable.
7775         (init_copy_prop): Initialize n_copy_of.
7776         (get_value): Return NULL_TREE for SSA names we don't have a
7777         lattice entry for.
7779 2013-02-20  Martin Jambor  <mjambor@suse.cz>
7781         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
7783 2013-02-20  Richard Biener  <rguenther@suse.de>
7785         * genpreds.c (write_lookup_constraint): Do not compare first
7786         letter of the constraint again.
7788 2013-02-20  Richard Biener  <rguenther@suse.de>
7790         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
7791         and ceil_log2.
7792         (get_use_iv_cost): Terminate hashtable walk when coming across
7793         an empty entry.
7795 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
7797         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
7798         reassociation for avx2 targets.
7800 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7802         * config/microblaze/microblaze.c: microblaze_has_clz = 0
7803         Add version check for v8.10.a to enable microblaze_has_clz
7804         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
7805         version and TARGET_PATTERN_COMPARE check
7806         * config/microblaze/microblaze.md: New clzsi2 instruction
7808 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7810         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
7811         function before branching.
7813 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
7815         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
7816         DUMP_INSN_RTX_UID.
7817         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
7819 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
7821         PR middle-end/55889
7822         * sel-sched.c: Include ira.h.
7823         (implicit_clobber_conflict_p): New function.
7824         (moveup_expr): Use it.
7825         * Makefile.in (sel-sched.o): Depend on ira.h.
7827 2013-02-19  Richard Biener  <rguenther@suse.de>
7829         PR tree-optimization/56384
7830         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
7831         (vn_hash_type): Split out from ...
7832         (vn_hash_constant_with_type): ... here.
7833         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
7834         (vn_phi_eq): Compare types from vn_phi_s structure.
7835         (vn_phi_lookup): Populate vn_phi_s type.
7836         (vn_phi_insert): Likewise.
7838 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
7840         PR tree-optimization/56350
7841         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
7842         if haven't found reduction or nested cycle operand, rather than
7843         asserting we must find it.
7845         PR tree-optimization/56381
7846         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
7847         to fold_build3.
7849 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
7850             Jakub Jelinek  <jakub@redhat.com>
7852         PR target/52555
7853         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
7854         (swap_optab_enable): Same.
7855         (init_all_optabs): Use argument instead of global.
7856         * tree.h (struct tree_optimization_option): New field target_optabs.
7857         * expr.h (init_all_optabs): Add argument to prototype.
7858         (TREE_OPTIMIZATION_OPTABS): New.
7859         (save_optabs_if_changed): Protoize.
7860         * optabs.h: Declare this_fn_optabs.
7861         * optabs.c (save_optabs_if_changed): New.
7862         Declare this_fn_optabs.
7863         (init_optabs): Add argument to init_all_optabs() call.
7864         * function.c (invoke_set_current_function_hook): Handle per
7865         function optabs.
7866         * function.h (struct function): New field optabs.
7867         * config/mips/mips.c (mips_set_mips16_mode): Handle when
7868         optimization_current_node has changed.
7869         * target-globals.h (save_target_globals_default_opts): Protoize.
7870         * target-globals.c (save_target_globals_default_opts): New.
7872 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7874         PR target/56347
7875         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
7876         registers %fr12 and %fr12R as call used.
7878         PR target/56214
7879         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
7880         and HImode, require all displacements to be an integer multiple of
7881         their mode size.
7882         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
7883         only allow QImode and HImode when reload is in progress and strict is
7884         true.  Likewise for symbolic addresses.  Use base14_operand to check
7885         displacements in REG+BASE addresses.
7887 2013-02-18  Richard Biener  <rguenther@suse.de>
7889         PR tree-optimization/56366
7890         * tree-vect-loop.c (get_initial_def_for_induction): Properly
7891         handle sign-conversion of outer-loop initial induction value.
7893 2013-02-18  Richard Biener  <rguenther@suse.de>
7895         PR middle-end/56349
7896         * cfghooks.c (merge_blocks): If we merge a latch into another
7897         block adjust references to it.
7898         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
7899         (verify_loop_structure): Verify that a recorded latch is in fact
7900         a latch.
7902 2013-02-18  Richard Biener  <rguenther@suse.de>
7904         PR tree-optimization/56321
7905         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
7906         order SSA name release and virtual operand unlinking.
7908 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7910         * config/microblaze/microblaze.md (save_stack_block): Define.
7911         (restore_stack_block): Likewise.
7913 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7915         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
7916         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
7917         * config/microblaze/microblaze.c (microblaze_option_override):
7918         Bail out early for PIC modes when target does not support PIC.
7920 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7922         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
7923         Replace with a microblaze version.
7924         (microblaze_trampoline_init): Adapt for microblaze.
7925         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
7926         microblaze.
7928 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
7929             Dodji Seketeli  <dodji@redhat.com>
7931         PR asan/56330
7932         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
7933         (instrument_mem_region_access): Do not forget to always put
7934         instrumentation of the of 'base' and 'base + len' in a "if (len !=
7935         0) statement, even for cases where either 'base' or 'base + len'
7936         are not instrumented -- because they have been previously
7937         instrumented.  Simplify the logic by putting all the statements
7938         instrument 'base + len' inside a sequence, and then insert that
7939         sequence right before the current insertion point.  Then, to
7940         instrument 'base + len', just get an iterator on that statement.
7941         And do not forget to update the pointer to iterator the function
7942         received as argument.
7944 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
7946         PR rtl-optimization/56348
7947         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
7949 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
7951         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
7952         (clean_graph_dump_file): Pass base to start_graph_dump.
7954 2013-02-14  Richard Henderson  <rth@redhat.com>
7956         PR target/55941
7957         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
7959 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
7961         * collect2-aix.h: Define F_LOADONLY.
7963 2013-02-14  Richard Biener  <rguenther@suse.de>
7965         PR lto/50494
7966         * varasm.c (output_constant_def_1): Get the decl representing
7967         the constant as argument.
7968         (output_constant_def): Wrap output_constant_def_1.
7969         (make_decl_rtl): Use output_constant_def_1 with the decl
7970         representing the constant.
7971         (build_constant_desc): Optionally re-use a decl already
7972         representing the constant.
7973         (tree_output_constant_def): Adjust.
7975 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
7977         Fix an asan crash
7978         * asan.c (instrument_builtin_call):  Really put the length of the
7979         second source argument into src1_len.
7981 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
7983         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
7984         argument.  If it is false, don't create edge from then_bb to
7985         fallthru_bb.
7986         (insert_if_then_before_iter): Pass true to it.
7987         (build_check_stmt): Pass false to it.
7988         (transform_statements): Flush hash table only on extended basic
7989         block boundaries, rather than at the beginning of every bb.
7990         Don't flush hash table on nonfreeing_call_p calls.
7991         * tree-flow.h (nonfreeing_call_p): New prototype.
7992         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
7994 2013-02-13  David S. Miller  <davem@davemloft.net>
7996         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
7998 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
8000         PR target/56184
8001         * ira.c (max_regno_before_ira): Move from ...
8002         (ira): ... here.
8003         (fix_reg_equiv_init): Use max_regno_before_ira instead of
8004         vec_safe_length.
8006 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
8008         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
8010 2013-02-13  Richard Biener  <rguenther@suse.de>
8012         PR lto/56295
8013         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
8014         globals in MEM_REFs.
8016 2013-02-13  Richard Biener  <rguenther@suse.de>
8018         * loop-init.c (loop_optimizer_init): Clear loop state when
8019         re-initializing preserved loops.
8020         * loop-unswitch.c (unswitch_single_loop): Return whether
8021         we unswitched the loop.  Do not verify loop state here.
8022         (unswitch_loops): When we unswitched a loop discover new loops.
8024 2013-02-13  Kostya Serebryany  <kcc@google.com>
8026         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
8027         on x86_64 linux.
8028         * sanitizer.def: Rename __asan_init to __asan_init_v1.
8030 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
8032         Avoid instrumenting duplicated memory access in the same basic block
8033         * Makefile.in (asan.o): Add new dependency on hash-table.h
8034         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
8035         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
8036         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
8037         (free_mem_ref_resources, has_mem_ref_been_instrumented)
8038         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
8039         (get_mem_ref_of_assignment): New functions.
8040         (get_mem_refs_of_builtin_call): Extract from
8041         instrument_builtin_call and tweak a little bit to make it fit with
8042         the new signature.
8043         (instrument_builtin_call): Use the new
8044         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
8045         of is_gimple_builtin_call.
8046         (instrument_derefs, instrument_mem_region_access): Insert the
8047         instrumented memory reference into the hash table.
8048         (maybe_instrument_assignment): Renamed instrument_assignment into
8049         this, and change it to advance the iterator when instrumentation
8050         actually happened and return true in that case.  This makes it
8051         homogeneous with maybe_instrument_assignment, and thus give a
8052         chance to callers to be more 'regular'.
8053         (transform_statements): Clear the memory reference hash table
8054         whenever we enter a new BB, when we cross a function call, or when
8055         we are done transforming statements.  Use
8056         maybe_instrument_assignment instead of instrumentation.  No more
8057         need to special case maybe_instrument_assignment and advance the
8058         iterator after calling it; it's now handled just like
8059         maybe_instrument_call.  Update comment.
8061 2013-02-13  Richard Biener  <rguenther@suse.de>
8063         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
8064         Fix loop discovery code.
8066 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
8068         PR inline-asm/56148
8069         * lra-constraints.c (process_alt_operands): Match early clobber
8070         operand with itself.  Check conflicts with earlyclobber only if
8071         the operand is not reloaded.  Prefer to reload conflicting operand
8072         if earlyclobber and matching operands are the same.
8074 2013-02-12  Richard Biener  <rguenther@suse.de>
8076         PR lto/56297
8077         * lto-streamer-out.c (write_symbol): Do not output symbols
8078         for hard register variables.
8080 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
8082         PR target/54222
8083         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
8084         (umulsidi3_insn, mulsidi3_insn): New insns.
8086 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
8088         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
8089         (struct tune_params): Add vec_costs field.
8090         * config/arm/arm.c (arm_builtin_vectorization_cost)
8091         (arm_add_stmt_cost): New functions.
8092         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
8093         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
8094         (arm_default_vec_cost): New struct of type cpu_vec_costs.
8095         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
8096         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
8097         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
8098         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
8100 2013-02-12  Richard Biener  <rguenther@suse.de>
8102         PR lto/56295
8103         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
8104         decls again if possible.
8106 2013-02-12  Richard Biener  <rguenther@suse.de>
8108         PR middle-end/56288
8109         * tree-ssa.c (verify_ssa_name): Fix check, move
8110         SSA_NAME_IN_FREE_LIST check up.
8112 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
8113             Steven Bosscher   <steven@gcc.gnu.org>
8115         PR rtl-optimization/56151
8116         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
8117         equal to op0 or op1, and last_insn pattern is CODE operation
8118         with MEM dest and one of the operands matches that MEM.
8120 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
8122         * doc/extend.texi: Document Function Multiversioning and "default"
8123         parameter string to target attribute.
8124         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
8125         target attribute parameter is "default".
8126         (ix86_compare_version_priority): Remove checks for target attribute.
8127         (ix86_mangle_function_version_assembler_name): Change error to sorry.
8128         Remove check for target attribute equal to NULL. Add assert.
8129         (ix86_generate_version_dispatcher_body): Change error to sorry.
8131 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
8132             Jack Howarth  <howarth@bromo.med.uc.edu>
8133             Patrick Marlier  <patrick.marlier@gmail.com>
8135         PR libitm/55693
8136         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
8137         define ENDFILE_SPEC as TM_DESTRUCTOR.
8138         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
8140 2013-02-11  Alexander Potapenko  <glider@google.com>
8141             Jack Howarth  <howarth@bromo.med.uc.edu>
8142             Jakub Jelinek  <jakub@redhat.com>
8144         PR sanitizer/55617
8145         * config/darwin.c (cdtor_record): Rename ctor_record.
8146         (sort_cdtor_records): Rename sort_ctor_records.
8147         (finalize_dtors): New routine to sort destructors by
8148         priority before use in assemble_integer.
8149         (machopic_asm_out_destructor): Use finalize_dtors if needed.
8151 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
8153         PR rtl-optimization/56275
8154         * simplify-rtx.c (avoid_constant_pool_reference): Check that
8155         offset is non-negative and less than cmode size before
8156         calling simplify_subreg.
8158 2013-02-11  Richard Biener  <rguenther@suse.de>
8160         PR tree-optimization/56264
8161         * cfgloop.h (fix_loop_structure): Adjust prototype.
8162         * loop-init.c (fix_loop_structure): Return the number of
8163         newly discovered loops.
8164         * tree-cfgcleanup.c (repair_loop_structures): When new loops
8165         are discovered, do a full loop-closed SSA rewrite.
8167 2013-02-11  Richard Biener  <rguenther@suse.de>
8169         PR tree-optimization/56273
8170         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8171         first VRP run.
8172         (check_array_ref): Fix missing newline in dumps.
8173         (search_for_addr_array): Likewise.
8175 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
8177         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
8179 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
8181         PR target/56256
8182         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
8184 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
8186         PR rtl-optimization/56246
8187         * lra-constraints.c (simplify_operand_subreg): Try to reuse
8188         reload pseudo.
8189         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
8190         constraints are satisfied.
8192 2013-02-08  Jeff Law  <law@redhat.com>
8194         PR debug/53948
8195         * emit-rtl.c (reg_is_parm_p): New function.
8196         * regs.h (reg_is_parm_p): New prototype.
8197         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
8198         callee-clobbered registers.
8200 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
8202         PR target/56043
8203         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
8204         If there is no implicit builtin declaration, just return NULL.
8206 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
8208         * config/i386/sse.md (FMAMODEM): New mode iterator.
8209         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
8210         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
8212 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
8214         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
8215         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
8216         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
8218 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
8220         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
8221         (microblaze*-*-elf): Likewise.
8222         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
8223         LINK_SPEC.
8224         * config/microblaze/microblaze-c.c: Add builtin defines for
8225         _LITTLE_ENDIAN and _BIG_ENDIAN.
8226         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
8227         add to TARGET_DEFAULT flags.
8228         Expand ASM_SPEC and LINK_SPEC.
8229         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
8230         * config/microblaze/microblaze.md: Update extendsidi2 and
8231         movdi_internal instructions to use low-order / high-order reg
8232         print_operands.
8233         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
8234         options and inversemask / mask of LITTLE_ENDIAN.
8235         * config/microblaze/t-microblaze: Expand multilib options to
8236         include mlittle-endian (le) and update exceptions patterns.
8238 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
8240         PR rtl-optimization/56195
8241         * lra-constraints.c (get_reload_reg): Don't reuse regs
8242         if they have smaller mode than requested, if they have
8243         wider mode than requested, try to return a SUBREG.
8245         PR tree-optimization/56250
8246         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
8247         if type is unsigned and code isn't MULT_EXPR.
8249 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
8251         PR tree-optimization/56064
8252         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
8253         bits according to mode.
8254         * fixed-value.h (fixed_from_double_int)
8255         (const_fixed_from_double_int): Adjust comments.
8257 2013-02-08  Richard Biener  <rguenther@suse.de>
8259         PR lto/56231
8260         * lto-streamer.h (struct data_in): Remove current_file, current_line
8261         and current_col members.
8262         * lto-streamer-out.c (lto_output_location): Stream changed bits
8263         en-block for efficiency.
8264         * lto-streamer-in.c (clear_line_info): Remove.
8265         (lto_input_location): Cache current file, line and column
8266         globally via local statics.  Read changed bits en-block.
8267         (input_function): Do not call clear_line_info.
8268         (lto_read_body): Likewise.
8269         (lto_input_toplevel_asms): Likewise.
8271 2013-02-08  Michael Matz  <matz@suse.de>
8273         PR tree-optimization/52448
8274         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
8275         (nt_call_phase): New static.
8276         (add_or_mark_expr): Only mark accesses with newer phase than any
8277         call seen.
8278         (nonfreeing_call_p): New.
8279         (nt_init_block): Update nt_call_phase, mark blocks as visited.
8280         (nt_fini_block): Keep blocks marked as visited.
8281         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
8283 2013-02-08  Richard Biener  <rguenther@suse.de>
8285         * ira.c (ira): Free broken dominator information.
8287 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
8289         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
8291 2013-02-08  Marek Polacek  <polacek@redhat.com>
8293         * cfgloop.c (verify_loop_structure): Add more checking of headers.
8295 2013-02-08  Richard Biener  <rguenther@suse.de>
8297         PR middle-end/56181
8298         * cfgloop.h (flow_loops_find): Adjust.
8299         (bb_loop_header_p): Declare.
8300         * cfgloop.c (bb_loop_header_p): New function split out from ...
8301         (flow_loops_find): ... here.  Adjust function signature,
8302         support incremental loop structure update.
8303         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
8304         * cfgloopmanip.c (fix_loop_structure): Move ...
8305         * loop-init.c (fix_loop_structure): ... here.
8306         (apply_loop_flags): Split out from ...
8307         (loop_optimizer_init): ... here.
8308         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
8309         in incremental mode, only remove dead loops here.
8311 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
8313         PR target/54222
8314         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
8315         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
8316         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
8317         (*round<mode>3.libgcc): New insns for fixed-modes.
8318         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
8319         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
8320         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
8321         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
8322         implementations.  Define to __builtin_avr_absFX,
8323         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
8324         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
8325         __builtin_avr_countlsFX, respectively.
8326         * config/avr/avr-c.c (target.h): Include it.
8327         (enum avr_builtin_id): New enum.
8328         (avr_resolve_overloaded_builtin): New static function.
8329         (avr_register_target_pragmas): Use it to set
8330         targetm.resolve_overloaded_builtin.
8331         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
8332         tree nodes used by DEF_BUILTIN.
8333         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
8334         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
8335         <AVR_BUILTIN_xxBITS>: Same.
8337 2013-02-08  Richard Biener  <rguenther@suse.de>
8339         * cfgloop.c (verify_loop_structure): Properly handle
8340         a loop exiting to another loop header.
8341         * ira-int.h (ira_loops): Remove.
8342         * ira.c (ira_loops): Remove.
8343         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
8344         (do_reload): Use loop_optimizer_finalize.
8345         * ira-build.c (create_loop_tree_nodes): Use get_loops and
8346         number_of_loops to access the loop tree.
8347         (more_one_region_p): Likewise.
8348         (finish_loop_tree_nodes): Likewise.
8349         (rebuild_regno_allocno_maps): Likewise.
8350         (mark_loops_for_removal): Likewise.
8351         (mark_all_loops_for_removal): Likewise.
8352         (remove_unnecessary_regions): Likewise.
8353         (ira_build): Likewise.
8354         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
8356 2013-02-08  Richard Biener  <rguenther@suse.de>
8358         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
8359         * ipa-pure-const.c (analyze_function): Avoid calling
8360         mark_irreducible_loops twice.
8361         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
8363 2013-02-07  David S. Miller  <davem@davemloft.net>
8365         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
8366         on 'reg'.
8367         * var-tracking.c (vt_add_function_parameter): Test the presence of
8368         HAVE_window_save properly and do not remap argument registers when
8369         we have a leaf function.
8371 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
8373         PR bootstrap/56227
8374         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
8375         instead of "ll".
8376         * config/i386/i386.c (ix86_print_operand): Ditto.
8378 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
8380         * lra-constraints.c (process_alt_operands): Fix recently added comment.
8382 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
8384         PR rtl-optimization/56225
8385         * lra-constraints.c (process_alt_operands): Check that reload hard
8386         reg can hold value for strict_low_part.
8388 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
8390         PR debug/56154
8391         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
8392         dwarf2out_end_function.
8393         (in_first_function_p, maybe_at_text_label_p,
8394         first_loclabel_num_not_at_text_label): New variables.
8395         (dwarf2out_var_location): In the first function find out
8396         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
8397         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
8398         functions.
8400 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
8402         PR rtl-optimization/56178
8403         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
8404         SUBREG of a register.  Tidy up related block of code.
8405         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
8406         note if the source is a register or a SUBREG of a register.
8408 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
8410         PR target/56228
8411         * config/rs6000/rs6000.md (ptrm): New mode attr.
8412         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
8413         call_value_indirect_aix<pttrsize>,
8414         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
8415         m in constraints.
8417 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8419         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8420         if -bnortl. Convert to strcmp and strncmp.
8422 2013-02-07  Alan Modra  <amodra@gmail.com>
8424         PR target/54009
8425         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8426         addresses won't wrap when offsetting.
8427         (rs6000_secondary_reload): Provide secondary reloads needed for
8428         wrapping LO_SUM addresses.
8430 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
8432         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8433         MACH, just __MACH__.
8435 2013-02-06  Richard Biener  <rguenther@suse.de>
8437         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8438         instead of calling fix_loop_structure.
8440 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
8442         PR middle-end/56217
8443         * omp-low.c (use_pointer_for_field): Return false if
8444         lower_send_shared_vars doesn't generate any copy-out code.
8446 2013-02-06  Tom de Vries  <tom@codesourcery.com>
8448         PR rtl-optimization/56131
8449         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
8450         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
8451         of the label is NULL.  Add comment.
8453 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
8455         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
8457         PR sanitizer/55374
8458         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
8459         (STATIC_LIBTSAN_LIBS): Likewise.
8460         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
8461         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
8462         is defined, don't add anything else beyond that.
8463         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
8464         (LINK_COMMAND_SPEC): Use them.
8466         PR tree-optimization/56205
8467         * tree-stdarg.c (check_all_va_list_escapes): Return true if
8468         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
8469         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
8471 2013-02-05  Richard Biener  <rguenther@suse.de>
8473         PR tree-optimization/53342
8474         PR tree-optimization/53185
8475         * tree-vectorizer.h (vect_check_strided_load): Remove.
8476         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
8477         not disallow peeling for vectorized strided loads.
8478         (vect_check_strided_load): Make static and simplify.
8479         (vect_analyze_data_refs): Adjust.
8480         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
8481         correctly when vectorizing strided loads.
8483 2013-02-05  Richard Biener  <rguenther@suse.de>
8485         * doc/install.texi: Refer to ISL, not PPL.
8487 2013-02-05  Jan Hubicka  <jh@suse.cz>
8489         PR tree-optimization/55789
8490         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
8492 2013-02-05  Jan Hubicka  <jh@suse.cz>
8494         PR tree-optimization/55789
8495         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
8496         the dead call anyway.
8498 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
8500         PR sanitizer/55374
8501         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
8503 2013-02-04  Alexander Potapenko  <glider@google.com>
8504             Jack Howarth  <howarth@bromo.med.uc.edu>
8505             Jakub Jelinek  <jakub@redhat.com>
8507         PR sanitizer/55617
8508         * config/darwin.c (sort_ctor_records): Stabilized qsort
8509         on constructor priority by using original position.
8510         (finalize_ctors): New routine to sort constructors by
8511         priority before use in assemble_integer.
8512         (machopic_asm_out_constructor): Use finalize_ctors if needed.
8514 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
8516         PR libstdc++/54314
8517         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
8518         about visibility on artificial decls.
8519         * config/sol2.c (solaris_assemble_visibility): Likewise.
8521 2013-02-04  Kai Tietz  <ktietz@redhat.com>
8523         PR target/56186
8524         * config/i386/i386.c (function_value_ms_64): Add additional valtype
8525         argument and improve checking of return-argument types for 16-byte
8526         modes.
8527         (ix86_function_value_1): Add additional valtype argument on call
8528         of function_value_64.
8529         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
8530         handling infunction_value_64 function.
8532 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
8534         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
8536 2013-02-04  Richard Biener  <rguenther@suse.de>
8538         PR tree-optimization/56188
8539         * tree-ssa-structalias.c (label_visit): Consider case with
8540         initially non-empty points-to set.
8541         (perform_var_substitution): Dump node mapping and clean up.
8543 2013-02-04  Richard Guenther  <rguenther@suse.de>
8545         PR lto/56168
8546         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
8547         node prevail as last resort.
8548         (lto_symtab_merge_decls): Remove guard on LTRANS here.
8549         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
8551 2013-02-04  Richard Biener  <rguenther@suse.de>
8553         PR tree-optimization/56113
8554         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
8555         Merge into ...
8556         (equiv_class_lookup_or_add): ... this.
8557         (label_visit): Adjust and fix error in previous patch.
8558         (perform_var_substitution): Adjust.
8560 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
8562         * config/sh/divtab.c: Fix formatting and comments throughout the file.
8563         * config/sh/sh4-300.md: Likewise.
8564         * config/sh/sh4a.md: Likewise.
8565         * config/sh/constraints.md: Likewise.
8566         * config/sh/sh.md: Likewise.
8567         * config/sh/netbsd-elf.h: Likewise.
8568         * config/sh/predicates.md: Likewise.
8569         * config/sh/sh-protos.h: Likewise.
8570         * config/sh/ushmedia.h: Likewise.
8571         * config/sh/linux.h: Likewise.
8572         * config/sh/sh.c: Likewise.
8573         * config/sh/superh.h: Likewise.
8574         * config/sh/elf.h: Likewise.
8575         * config/sh/sh4.md: Likewise.
8576         * config/sh/sh.h: Likewise.
8578 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8580         * config/pa/constraints.md: Adjust unused letters.  Change "T"
8581         constraint to match_test floating_point_store_memory_operand().
8582         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
8583         (base14_operand): New.
8584         (floating_point_store_memory_operand): New.
8585         (integer_store_memory_operand): Revise to use base14_operand and
8586         reg_plus_base_memory_operand.
8587         (move_dest_operand): Allow symbolic_memory_operands.
8588         (symbolic_memory_operand): Check for LO_SOM.
8589         (symbolic_operand): Change default case to break.
8590         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
8591         CONST_DOUBLE values to be reloaded by putting them into memory when
8592         the destination is a floating point register.
8593         (movdf): Remove code to handle CONST_DOUBLE.
8594         (movsf): Likewise.
8595         (reload_indf_r1): New.
8596         (reload_insf_r1): New.
8597         Consistently use "Q" and "T" constraints with integer and floating
8598         point move instructions, respectively.
8599         (movdi): Remove FAIL.
8600         Change predicate for source operand unamed DImode move from
8601         general_operand to move_src_operand.
8602         (umulsidi3): Change predicate for destination operand to
8603         register_operand.
8604         Likewise for similar unamed patterns.
8605         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
8606         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
8607         (hppa_legitimize_address): Simplify mask calculation.
8608         (pa_emit_move_sequence): Revised handling of secondary reloads from
8609         REG+D addresses for floating point loads and stores.  Directly handle
8610         loading CONST0_RTX (mode) to a floating point register.
8611         (pa_secondary_reload): Handle reloading DF and SFmode constant values
8612         to floating point registers.  Don't restrict secondary reloads to
8613         floating point registers to integer modes.  Revise some comments and
8614         cleanup some code.
8615         (TARGET_LEGITIMATE_ADDRESS_P): Define.
8616         (pa_legitimate_address_p): New.
8617         (pa_legitimize_reload_address): New.
8618         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
8619         (STRICT_REG_OK_FOR_BASE_P): New.
8620         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
8621         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
8623 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
8624             Andrew Dixie  <andrewd@gentrack.com>
8626         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
8627         flag set.
8629 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
8631         * expmed.c (extract_bit_field_1): Pass the full width of the
8632         structure to get_best_reg_extraction_insn.
8634 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
8636         PR target/54601
8637         * configure.ac (use_cxa_atexit): Add AIX.
8638         * configure: Regenerate.
8640         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
8642 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
8644         PR debug/54793
8645         * final.c (need_profile_function): New variable.
8646         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
8647         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
8648         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
8649         notes, targetm.asm_out.function_prologue doesn't emit anything,
8650         HAVE_prologue and profiler should be emitted before prologue,
8651         set need_profile_function instead of emitting it.
8652         (final_scan_insn): If need_profile_function, emit
8653         profile_function on the first NOTE_INSN_BASIC_BLOCK or
8654         NOTE_INSN_FUNCTION_BEG note.
8656 2013-02-01  Richard Henderson  <rth@redhat.com>
8658         * config/rs6000/rs6000.md (smulditi3): New.
8659         (umulditi3): New.
8661         * config/alpha/alpha.md (umulditi3): New.
8663 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
8665         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
8666         (ASM_OUTPUT_ALIGNED_LOCAL): New.
8668 2013-02-01  Richard Biener  <rguenther@suse.de>
8670         PR tree-optimization/56113
8671         * tree-ssa-structalias.c (label_visit): Reduce work for
8672         single-predecessor nodes.
8674 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
8676         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
8677         range isn't testing for zero.
8679 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
8681         PR middle-end/56113
8682         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
8684 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
8685             Nick Clifton  <nickc@redhat.com>
8687         * config/v850/constraints.md (Q): Define as a memory constraint.
8688         * config/v850/predicates.md (label_ref_operand): New predicate.
8689         (e3v5_shift_operand): New predicate.
8690         (ior_operator): New predicate.
8691         * config/v850/t-v850: Add e3v5 multilib.
8692         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
8693         (v850_gen_movdi): Prototype.
8694         * config/v850/v850.c: Add support for e3v5 architecture.
8695         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
8696         TARGET_V850E_UP.
8697         (construct_save_jarl): Add e3v5 long JARL support.
8698         (v850_adjust_insn_length): New function.  Adjust length of call
8699         insns when using e3v5 instructions.
8700         (v850_gen_movdi): New function: Generate instructions to move a
8701         DImode value.
8702         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
8703         (CPP_SPEC): Define __v850e3v5__ as appropriate.
8704         (TARGET_USE_FPU): Enable for e3v5.
8705         (CONST_OK_FOR_W): New macro.
8706         (ADJUST_INSN_LENGTH): Define.
8707         * config/v850/v850.md (UNSPEC_LOOP): Define.
8708         (attr cpu): Add v850e3v5.
8709         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
8710         (movdi): New pattern.
8711         (movdi_internal): New pattern.
8712         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
8713         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
8714         (cstoresf4): Likewise.
8715         (cstoredf4): Likewise.
8716         (insv): New pattern.
8717         (rotlso3_a): New pattern.
8718         (rotlsi3_b): New pattern
8719         (rotlsi3_v850e3v5): New pattern.
8720         (doloop_begin): New pattern.
8721         (fix_loop_counter): New pattern.
8722         (doloop_end): New pattern.
8723         (branch_normal): Add e3v5 long branch support.
8724         (branch_invert): Likewise.
8725         (branch_z_normal): Likewise.
8726         (branch_z_invert): Likewise.
8727         (branch_nz_normal): Likewise.
8728         (branch_nz_invert): Likewise.
8729         (call_internal_short): Add e3v5 register-indirect JARL support.
8730         (call_internal_long): Likewise.
8731         (call_value_internal_short): Likewise.
8732         (call_value_internal_long): Likewise.
8733         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
8734         (mloop): New option.
8735         * config.gcc: Add support for configuring v840e3v5 target.
8736         * doc/invoke.texi: Document new v850 specific command line options.
8738 2013-01-31  Paul Koning  <ni1d@arrl.net>
8740         PR debug/55059
8741         PR debug/54508
8742         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
8743         children if parent is a class.
8744         (prune_unused_types_prune): Don't add DW_AT_declaration.
8746 2013-01-31  Richard Biener  <rguenther@suse.de>
8748         PR tree-optimization/56157
8749         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
8750         match up operand with SLP child.
8752 2013-01-31  Jason Merrill  <jason@redhat.com>
8754         PR debug/54410
8755         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
8756         parameters the first time.
8757         (gen_scheduled_generic_parms_dies): Check completeness here.
8759 2013-01-31  Richard Biener  <rguenther@suse.de>
8761         PR middle-end/53073
8762         * common.opt (faggressive-loop-optimizations): New flag,
8763         enabled by default.
8764         * doc/invoke.texi (faggressive-loop-optimizations): Document.
8765         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
8766         infer_loop_bounds_from_undefined by it.
8768 2013-01-31  Richard Biener  <rguenther@suse.de>
8770         PR tree-optimization/56150
8771         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
8772         visit virtual operands.
8773         (find_uses_to_rename_bb): Likewise.
8775 2013-01-31  Richard Biener  <rguenther@suse.de>
8777         PR tree-optimization/56150
8778         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
8779         mixed store non-store stmts.
8781 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
8783         PR sanitizer/55374
8784         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
8785         LIBASAN_EARLY_SPEC is defined.
8786         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
8787         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
8788         before %o.
8789         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
8791         PR c++/55742
8792         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
8793         invalid args instead of ICEing on it.
8794         (ix86_valid_target_attribute_tree): Return error_mark_node if
8795         ix86_valid_target_attribute_inner_p failed.
8796         (ix86_valid_target_attribute_p): Return false only if
8797         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
8798         target("default") attribute.
8799         (sorted_attr_string): Change argument from const char * to tree,
8800         merge in all target attribute arguments rather than just one.
8801         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
8802         instead of free.  Avoid using strcat.
8803         (ix86_mangle_function_version_assembler_name): Mangle
8804         target("default") as if no target attribute is present.  Adjust
8805         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
8806         instead of xmalloc and XDELETEVEC instead of free.
8807         (ix86_function_versions): Don't return true if one of the decls
8808         doesn't have target attribute.  If they don't and one of the decls
8809         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
8810         sorted_attr_string caller.  Use XDELETEVEC instead of free.
8811         (ix86_supports_function_versions): Remove.
8812         (make_name): Fix up formatting.
8813         (make_dispatcher_decl): Remove resolver_name and its initialization.
8814         Avoid leaking memory.
8815         (is_function_default_version): Return true if there is
8816         target("default") attribute rather than no target attribute at all.
8817         (make_resolver_func): Avoid leaking memory.
8818         (ix86_generate_version_dispatcher_body): Likewise.
8819         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
8820         * target.def (supports_function_versions): Remove.
8821         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
8822         * doc/tm.texi: Regenerated.
8824 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
8826         PR rtl-optimization/56144
8827         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
8828         for values with side effects.
8830 2013-01-30  Richard Biener  <rguenther@suse.de>
8832         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
8833         (sparseset_pop): Likewise.
8834         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
8835         to be able to use quick_push in the worker loop.
8837 2013-01-30  Marek Polacek  <polacek@redhat.com>
8839         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
8841 2013-01-30  Richard Biener  <rguenther@suse.de>
8843         PR lto/56147
8844         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
8846 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
8848         PR tree-optimization/56064
8849         * fixed-value.c (fixed_from_double_int): New function.
8850         * fixed-value.h (fixed_from_double_int): New prototype.
8851         (const_fixed_from_double_int): New static inline function.
8852         * fold-const.c (native_interpret_fixed): New static function.
8853         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
8854         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
8855         (native_encode_fixed): New static function.
8856         (native_encode_expr) <FIXED_CST>: Use it.
8857         (native_interpret_int): Move double_int worker code to...
8858         * double-int.c (double_int::from_buffer): ...this new static method.
8859         * double-int.h (double_int::from_buffer): Prototype it.
8861 2013-01-30  Richard Biener  <rguenther@suse.de>
8863         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
8864         New pointer-map and obstack.
8865         (init_alias_vars): Allocate pointer-map and obstack.
8866         (delete_points_to_sets): Free them.
8867         (find_what_var_points_to): Cache result.
8868         (find_what_p_points_to): Adjust for changed interface of
8869         find_what_var_points_to.
8870         (compute_points_to_sets): Likewise.
8871         (ipa_pta_execute): Likewise.
8873 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8875         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
8876         * configure: Regenerate.
8877         * config.in: Regenerate.
8878         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
8879         #nobits/#progbits if supported.
8881 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
8883         PR target/56121
8884         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
8885         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
8886         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
8888 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8890         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
8891         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
8893 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8895         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
8896         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
8898 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8900         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
8901         declaration.
8902         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
8903         * config/arm/cortex-a7.md: New bypasses using
8904         arm_mac_accumulator_is_result.
8906 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8908         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
8909         (cortex_a7_neon_mla): Likewise.
8910         (cortex_a7_fpfmad): New reservation.
8911         (cortex_a7_fpmacs): Use ffmas and update required units.
8912         (cortex_a7_fpmuld): Update required units and latency.
8913         (cortex_a7_fpmacd): Likewise.
8914         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
8915         (cortex_a7_neon). Likewise.
8916         (bypass) Update participating units.
8918 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8920         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
8921         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
8922         from fmac to ffma.
8923         * config/arm/vfp11.md (vfp_farith): Use ffmas.
8924         (vfp_fmul): Use ffmad.
8925         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
8926         (cortex_r4_fmacd): Use ffmad.
8927         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
8928         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
8929         (cortex_a9_fmacd): Use ffmad.
8930         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
8931         (cortex_a8_vfp_macd): Use ffmad.
8932         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
8933         (cortex_a5_fpmacd): Use ffmad.
8934         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
8935         (cortex_a15_vfp_macd): Use ffmad.
8936         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
8938 2013-01-29  Jason Merrill  <jason@redhat.com>
8940         PR libstdc++/54314
8941         * varasm.c (default_assemble_visibility): Don't warn about
8942         visibility on artificial decls.
8944 2013-01-29  Richard Biener  <rguenther@suse.de>
8946         PR tree-optimization/56113
8947         * tree-ssa-structalias.c (equiv_class_lookup): Also return
8948         the bitmap leader.
8949         (label_visit): Free duplicate bitmaps and record the leader instead.
8950         (perform_var_substitution): Adjust.
8952 2013-01-29  Richard Biener  <rguenther@suse.de>
8954         PR tree-optimization/55270
8955         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
8956         the CFG, schedule loops for fixup.
8958 2013-01-29  Nick Clifton  <nickc@redhat.com>
8960         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
8961         SP_REG.
8963 2013-01-28  Leif Ekblad  <leif@rdos.net>
8965         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
8966         * config/i386/i386.h (TARGET_RDOS): New macro.
8967         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
8968         * config/i386/i386.c (ix86_option_override_internal): For 64bit
8969         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
8970         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
8971         DEFAULT_LARGE_SECTION_THRESHOLD.
8972         * config/i386/i386.md (R14_REG, R15_REG): New constants.
8973         * config/i386/rdos.h: New file.
8974         * config/i386/rdos64.h: New file.
8976 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
8978         PR other/54814
8979         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
8980         TEST_HARD_REG_BIT.
8982 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
8984         PR rtl-optimization/56117
8985         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
8986         call cselib_lookup_from_insn on the MEM before calling
8987         add_insn_mem_dependence.
8989 2013-01-28  Richard Biener  <rguenther@suse.de>
8991         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
8992         to a stmt that didn't have one.
8993         (copy_phis_for_bb): Likewise for PHI arguments.
8994         (copy_debug_stmt): Likewise for debug stmts.
8996 2013-01-28  Richard Biener  <rguenther@suse.de>
8998         PR tree-optimization/56034
8999         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
9000         (partition_builtin_p): Adjust.
9001         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
9002         it is the last partition.
9003         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
9004         up the vertex for the definition.
9005         (classify_partition): Classify whether a partition is a
9006         PKIND_REDUCTION, thus has uses outside of the loop.
9007         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
9008         Merge all PKIND_REDUCTION partitions into the last partition.
9009         (tree_loop_distribution): Seed partitions from reductions as well.
9011 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
9013         PR tree-optimization/56125
9014         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
9015         pow(x,c) into sqrt(x) * powi(x, n/2) or
9016         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
9017         optimizing for size.
9018         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
9019         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
9020         integer.
9022         PR tree-optimization/56094
9023         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
9024         to UNKNOWN_LOCATION while gimplifying expr.
9026 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
9028         PR target/56114
9029         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
9030         operand 0 in movabs insn template for -masm=intel asm alternative.
9031         (*movabs<mode>_2): Ditto for operand 1.
9033 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
9035         PR target/54663
9036         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
9037         of microblaze-c.o
9039 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9041         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
9042         tm_file.
9044 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9046         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
9047         Undef to avoid warning.
9049 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9051         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
9052         * configure: Regenerate.
9054 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
9056         PR tree-optimization/56098
9057         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
9058         for stmts with volatile ops.
9059         (cond_store_replacement): Don't optimize if assign has volatile ops.
9060         (cond_if_else_store_replacement_1): Don't optimize if either
9061         then_assign or else_assign have volatile ops.
9062         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
9063         volatile ops.
9065 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
9067         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
9069 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
9071         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
9072         missing ':' in asm example.
9074 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
9076         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
9077         entries into lane and laneq entries.
9078         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
9079         Remove AdvSIMD scalar modes.
9080         (aarch64_sq<r>dmulh_laneq<mode>): New.
9081         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
9082         modes.
9083         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
9084         builtin implementations to relfect changes in RTL in aarch64-simd.md.
9085         * config/aarch64/iterators.md (VCOND): New.
9086         (VCONQ): New.
9088 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
9090         PR target/54222
9091         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
9092         Add NULL LIBNAME argument to existing definitions.
9093         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
9094         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
9095         * config/avr/avr.c (DEF_BUILTIN): Same.
9096         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
9097         (avr_expand_builtin): Expand to a vanilla call if a libgcc
9098         implementation is available (DECL_ASSEMBLER_NAME is set).
9099         (avr_fold_absfx): New static function.
9100         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
9101         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
9102         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
9103         AVR_BUILTIN_ABSLLK.
9104         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
9105         (abshk, absk, abslk, absllk): Provide as static inline functions.
9107 2013-01-25  Marek Polacek  <polacek@redhat.com>
9109         PR tree-optimization/56035
9110         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
9112 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
9114         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
9115         (*movtf_internal_rex64): Add (!o,C) alternative
9116         (*movxf_internal_rex64): Ditto.
9117         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
9119 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
9121         * doc/invoke.texi: fix typo.
9122         * doc/objc.texi: fix typo.
9124 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
9126         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
9127         for the first two alternatives.
9129 2013-01-24  Diego Novillo  <dnovillo@google.com>
9131         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
9132         (ggc-zone.o): Remove.
9133         * configure.ac: Remove option --with-gc.
9134         * configure: Re-generate.
9135         * doc/install.texi: Remove documentation for --with-gc.
9136         * gengtype.c (write_enum_defn): Remove.  Update all users.
9137         (write_Types_process_field): Remove generation of gt_e_* argument.
9138         (output_type_enum): Remove.  Update all users.
9139         (write_enum_defn): Remove.  Update all users.
9140         (enum alloc_zone): Remove.  Update all users.
9141         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
9142         * ggc-common.c (ggc_splay_alloc): Remove first argument.
9143         Update all callers.
9144         (struct ptr_data): Remove field TYPE.  Update all users.
9145         (gt_pch_note_object): Remove argument TYPE.  Update all users.
9146         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
9147         Update all users.
9148         * ggc-none.c (ggc_alloc_typed_stat): Remove.
9149         (struct alloc_zone): Remove.
9150         (ggc_internal_alloc_zone_stat): Remove.
9151         (ggc_internal_cleared_alloc_zone_stat): Remove.
9152         * ggc-page.c (ggc_alloc_typed_stat): Remove.
9153         (ggc_pch_count_object): Remove last argument.  Update all users.
9154         (ggc_pch_alloc_object): Remove last argument.  Update all users.
9155         (struct alloc_zone): Remove.
9156         * ggc-zone.c: Remove.
9157         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
9158         (struct alloc_zone): Remove.
9159         (ggc_alloc_typed_stat): Remove.
9160         (ggc_alloc_typed): Remove.
9161         (ggc_splay_alloc): Remove first argument.
9162         (rtl_zone): Remove.  Update all users.
9163         (tree_zone): Remove.  Update all users.
9164         (tree_id_zone): Remove.  Update all users.
9165         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
9166         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
9167         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
9168         * tree-ssanames.c: Remove references to zone allocator in comments.
9170 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
9172         * config/avr/avr.c (avr_out_fract): Make register numbers that
9173         might be outside of source operand signed.
9175 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
9177         * config/i386/constraints.md (Yf): New constraint.
9178         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
9179         of f constraint to conditionaly disable x87 register preferences.
9180         (*movdf_internal): Ditto.
9181         (*movsf_internal): Ditto.
9183 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
9185         PR inline-asm/55934
9186         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
9187         that have operands with impossible constraints.
9188         Add a FIXME for a speed-up opportunity.
9189         * lra-constraints.c (process_alt_operands): Verify that a class
9190         selected from constraints on asms is valid for the operand mode.
9191         (curr_insn_transform): Remove incorrect comment.
9193 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
9195         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
9196         TOC operand is a valid symbol ref in the constant pool.
9198 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
9200         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
9202 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
9204         PR target/54222
9205         * config/avr/stdfix.h: New file.
9206         * t-avr (stdfix-gcc.h): New rule to build it.
9207         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
9209 2013-01-23  Kostya Serebryany  <kcc@google.com>
9211         * config/darwin.h: remove dependency on
9212         CoreFoundation (asan on Mac OS).
9214 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
9216         PR target/49069
9217         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
9218         instead of cmpdi_operand for first comparison operand.
9219         Don't assert that comparison operands aren't both constants.
9221 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
9223         * doc/install.texi (Downloading the Source): Update references to
9224         downloading separate components.
9226 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
9228         * doc/extend.texi (__int128): Improve grammar.
9230 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
9232         PR target/56028
9233         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
9234         alternative to (o,r).
9235         (*movdi_internal_rex64): Remove (!o,n) alternative.
9236         (DImode immediate->memory splitter): Remove.
9237         (DImode immediate->memory peephole2): Remove.
9238         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
9239         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
9240         alternative to (!o,*r).
9241         (*movtf_internal_sse): New pattern.
9242         (*movxf_internal_rex64): New pattern.
9243         (*movxf_internal): Disable for TARGET_64BIT.
9244         (*movdf_internal_rex64): Remove (!o,F) alternative.
9246 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
9248         PR middle-end/56074
9249         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
9250         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
9251         * tree-vect-loop-manip.c (find_loop_location): Also ignore
9252         stmt locations where LOCATION_LOCUS of the stmt location is
9253         UNKNOWN_LOCATION or BUILTINS_LOCATION.
9255         PR target/55686
9256         * config/i386/i386.md (UNSPEC_STOS): New.
9257         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
9258         *strsetqi_1): Add UNSPEC_STOS.
9260 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
9262         PR c++/56067
9263         * doc/invoke.texi: Remove left over -Wsynth example.
9265 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
9267         PR tree-optimization/56051
9268         * fold-const.c (fold_binary_loc): Don't fold
9269         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
9270         a narrowing conversion, or widening conversion from signed
9271         to unsigned.
9273 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
9275         PR rtl-optimization/56023
9276         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
9277         dependent on debug instruction.
9279 2013-01-21  Martin Jambor  <mjambor@suse.cz>
9281         PR middle-end/56022
9282         * function.c (allocate_struct_function): Call
9283         invoke_set_current_function_hook earlier.
9285 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
9287         * reload1.c (init_reload): Only initialize reload_obstack
9288         during the first call.
9290 2013-01-21  Marek Polacek  <polacek@redhat.com>
9292         * cfgloop.c (verify_loop_structure): Fix up grammar.
9294 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
9296         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
9297         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
9299 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9301         PR target/56058
9302         * config/arm/marvell-pj4.md: Update copyright year.
9303         Fix up use of alu to alu_reg and simple_alu_imm.
9305 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
9307         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
9309 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
9311         PR target/55433
9312         * lra-constraints.c (curr_insn_transform): Don't reuse original
9313         insn for secondary memory move when memory mode should be different.
9315 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9317         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
9318         atomic_storedi_1): New patterns.
9320 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9322         btver2 pipeline descriptions.
9323         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
9324         descriptions.
9325         * config/i386/i386.md (btver2_decode): New type attributes.
9326         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
9327         type attributes.
9328         * config/i386/btver2.md: New file describing btver2 pipelines.
9330 2013-01-19  Andrew Pinski  <apinski@cavium.com>
9332         PR tree-optimization/52631
9333         * tree-ssa-sccvn (visit_use): Before looking up the original
9334         statement, try looking up the simplified expression.
9336 2013-01-19  Anthony Green  <green@moxielogic.com>
9338         * config/moxie/moxie.c (moxie_expand_prologue): Set
9339         current_function_static_stack_size.
9341 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
9343         PR tree-optimization/56029
9344         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
9345         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
9347 2013-01-18  Sharad Singhai  <singhai@google.com>
9349         PR tree-optimization/55995
9350         * dumpfile.c (dump_loc): Print location only if available.
9351         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
9353 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
9355         PR target/55433
9356         * lra-constraints.c (curr_insn_transform): Reuse original insn for
9357         secondary memory move.
9358         (inherit_reload_reg): Use rclass instead of cl for
9359         check_secondary_memory_needed_p.
9361 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
9363         PR middle-end/56015
9364         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
9365         the case where writing real complex part of target modifies op1.
9367 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
9369         * config/aarch64/aarch64-simd.md
9370         (aarch64_vcond_internal<mode>): Handle unordered cases.
9371         * config/aarch64/iterators.md (v_cmp_result): New.
9373 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
9374             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9376         * config/arm/marvell-pj4.md: New file.
9377         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
9378         * config/arm/arm.md (generic_sched): Add marvell_pj4.
9379         (generic_vfp): Likewise.
9380         * config/arm/arm-cores.def: Add marvell-pj4.
9381         * config/arm/arm-tune.md: Regenerate.
9382         * config/arm/arm-tables.opt: Regenerate.
9383         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
9384         * doc/invoke.texi: Document marvell-pj4.
9386 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
9388         * config/aarch64/arm_neon.h: Map scalar types to standard types.
9390 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
9392         PR debug/54114
9393         PR debug/54402
9394         PR debug/49888
9395         * var-tracking.c (negative_power_of_two_p): New.
9396         (global_get_addr_cache, local_get_addr_cache): New.
9397         (get_addr_from_global_cache, get_addr_from_local_cache): New.
9398         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
9399         heading comment.
9400         (vt_stack_offset_p): Remove.
9401         (vt_canon_true_dep): Always canonicalize loc's address.
9402         (clobber_overlapping_mems): Make sure we have a MEM.
9403         (local_get_addr_clear_given_value): New.
9404         (val_reset): Clear local cached entries.
9405         (compute_bb_dataflow): Create and release the local cache.
9406         Disable duplicate MEMs clobbering.
9407         (emit_notes_in_bb): Clobber MEMs likewise.
9408         (vt_emit_notes): Create and release the local cache.
9409         (vt_initialize, vt_finalize): Create and release the global
9410         cache, respectively.
9411         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
9413 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
9415         PR libmudflap/53359
9416         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
9417         not found in the symtab.
9419 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
9421         PR debug/56006
9422         PR rtl-optimization/55547
9423         PR rtl-optimization/53827
9424         PR debug/53671
9425         PR debug/49888
9426         * alias.c (offset_overlap_p): New, factored out of...
9427         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
9428         the conservative special case for symbolic constants.  Don't
9429         adjust zero sizes on alignment.
9431 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
9433         PR rtl-optimization/52573
9434         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9435         REG_UNUSED for the same register.
9437 2013-01-17  Richard Biener  <rguenther@suse.de>
9438             Marek Polacek  <polacek@redhat.com>
9440         PR rtl-optimization/55833
9441         * loop-unswitch.c (unswitch_loops): Move loop verification...
9442         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
9443         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9444         Set it to true when we're removing a loop from hierarchy tree in
9445         an irreducible region.
9446         (fix_bb_placements): Adjust caller.
9447         (fix_loop_placements): Likewise.
9449 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
9451         * config/avr/builtins.def (DEF_BUILTIN): Factor out
9452         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
9453         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
9454         Remove ID.  Adjust comments.
9455         * config/avr/avr-c.c (avr_builtin_name): Remove.
9456         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
9457         * config/avr/avr.c (avr_tolower): New static function.
9458         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
9459         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
9460         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
9461         default expansion.
9463 2013-01-17  Jan Hubicka  <jh@suse.cz>
9465         PR tree-optimization/55273
9466         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
9468 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
9470         PR target/55981
9471         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
9472         store through atomic_store<mode>_1.
9473         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
9475 2013-01-17  Martin Jambor  <mjambor@suse.cz>
9477         PR tree-optimizations/55264
9478         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
9479         for virtual methods.
9480         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
9481         virtual methods before inlining is over.
9482         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
9483         virtual functions.
9484         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
9485         non-virtual.
9487 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
9489         PR rtl-optimization/56005
9490         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
9491         pending reads for prefetch.
9493 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
9495         * config/aarch64/aarch64.md
9496         (*cstoresi_neg_uxtw): New pattern.
9497         (*cmovsi_insn_uxtw): New pattern.
9498         (*<optab>si3_uxtw): New pattern.
9499         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
9500         (*<optab>si3_insn_uxtw): New pattern.
9501         (*bswapsi2_uxtw): New pattern.
9503 2013-01-16  Richard Biener  <rguenther@suse.de>
9505         * tree-inline.c (tree_function_versioning): Remove set but
9506         never used variable.
9508 2013-01-16  Richard Biener  <rguenther@suse.de>
9510         PR tree-optimization/55964
9511         * tree-flow.h (rename_variables_in_loop): Remove.
9512         (rename_variables_in_bb): Likewise.
9513         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
9514         (copy_loop_before): Adjust and delete update-ssa status.
9515         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
9516         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
9517         (rename_variables_in_loop): Remove.
9518         (slpeel_update_phis_for_duplicate_loop): Likewise.
9519         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
9520         use available cfg machinery instead of duplicating it.
9521         Update PHI nodes and perform poor-mans SSA update here.
9522         (slpeel_tree_peel_loop_to_edge): Adjust.
9524 2013-01-16  Richard Biener  <rguenther@suse.de>
9526         PR tree-optimization/54767
9527         PR tree-optimization/53465
9528         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
9529         (vrp_visit_phi_node): For PHI arguments coming via backedges
9530         drop all symbolical range information.
9531         (execute_vrp): Compute backedges.
9533 2013-01-16  Richard Biener  <rguenther@suse.de>
9535         * doc/install.texi: Update CLooG and ISL requirements to
9536         0.18.0 and 0.11.1.
9538 2013-01-16  Christian Bruel  <christian.bruel@st.com>
9540         PR target/55301
9541         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
9542         (broken_move): Handle UNSPECV_SP_SWITCH_B.
9543         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
9545 2013-01-16  DJ Delorie  <dj@redhat.com>
9547         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9548         (UNSPECV_SP_SWITCH_E): New.
9549         (sp_switch_1): Change to an unspec.
9550         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
9551         replace $r15.
9553 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
9555         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
9556         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
9557         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
9558         (expand_mem_thread_fence): Ditto.
9559         (expand_mem_signal_fence): Ditto.
9560         (expand_atomic_load): Ditto.
9561         (expand_atomic_store): Ditto.
9563 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
9565         PR rtl-optimization/55547
9566         PR rtl-optimization/53827
9567         PR debug/53671
9568         PR debug/49888
9569         * alias.c (memrefs_conflict_p): Set sizes to negative after
9570         AND adjustments.
9572 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
9574         PR target/55940
9575         * function.c (thread_prologue_and_epilogue_insns): Always
9576         add crtl->drap_reg to set_up_by_prologue.set, even if
9577         stack_realign_drap is false.
9579 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9581         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
9582         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
9583         *call): Fix indention.
9585 2013-01-15  Tom de Vries  <tom@codesourcery.com>
9587         PR target/55876
9588         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
9589         Update comment.
9591 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
9593         PR rtl-optimization/55153
9594         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
9596 2013-01-15  Martin Jambor  <mjambor@suse.cz>
9598         PR tree-optimization/55920
9599         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
9600         accesses as grp_to_be_debug_replaced.
9602 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
9604         PR tree-optimization/55920
9605         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
9606         there is non-useless type conversion needed from debug rhs to lhs,
9607         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
9609 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
9610             Mikael Pettersson  <mikpe@it.uu.se>
9612         PR target/43961
9613         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
9614         Thumb.
9615         (ASM_OUTPUT_CASE_LABEL): Remove.
9616         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
9617         * final.c (shorten_branches): Update alignment of labels before
9618         jump tables if CASE_VECTOR_SHORTEN_MODE.
9620 2013-01-15  Richard Biener  <rguenther@suse.de>
9622         PR bootstrap/55961
9623         * system.h: Do not include gmp.h for building host tools.
9625 2013-01-15  Richard Biener  <rguenther@suse.de>
9627         PR middle-end/55882
9628         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
9629         account for bitpos when computing alignment.
9631 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
9633         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
9634         (ix86_target_macros_internal): Likewise.
9636         * config/i386/i386.c (m_CORE2I7): Removed.
9637         (m_CORE_HASWELL): New macro.
9638         (m_CORE_ALL): Likewise.
9639         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
9640         (initial_ix86_arch_features): Likewise.
9641         (processor_target_table): Initializations for Core avx2.
9642         (cpu_names): New names "core-avx2".
9643         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
9644         PROCESSOR_CORE_HASWELL.
9645         (ix86_issue_rate): New case.
9646         (ia32_multipass_dfa_lookahead): Likewise.
9647         (ix86_sched_init_global): Likewise.
9649         * config/i386/i386.h (TARGET_HASWELL): New macro.
9650         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
9651         (processor_type): New PROCESSOR_HASWELL.
9653 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
9655         PR tree-optimization/55955
9656         * tree-vect-loop.c (vectorizable_reduction): Give up early on
9657         *SHIFT_EXPR and *ROTATE_EXPR codes.
9659         PR tree-optimization/48766
9660         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
9661         -ftrapv disable -fwrapv.
9663 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
9665         PR target/55974
9666         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
9667         etc. to 1 and not to __flash.
9668         Use LL suffix for __INT24_MAX__ with -mint8.
9669         Use ULL suffix for __UINT24_MAX__ with -mint8.
9671 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
9673         * config/avr/avr-arch.h
9674         (struct base_arch_s): Use typedef avr_arch_t instead.
9675         (struct arch_info_s): Use typedef avr_arch_info_t instead.
9676         (struct mcu_type_s): Use typedef avr_mcu_t instead.
9677         * config/avr/avr.c: Same.
9678         * config/avr/avr-devices.c: Same.
9679         * config/avr/driver-avr.c: Same.
9680         * config/avr/gen-avr-mmcu-texi.c: Same.
9681         * config/avr/avr-mcus.def: Adjust comment.
9683 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
9685         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
9686         * config/aarch64/iterators.md (VALLDI): New.
9688 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
9689             Andi Kleen  <ak@linux.intel.com>
9691         PR target/55948
9692         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
9693         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
9694         memmodel flag.
9696 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
9698         * config/avr/avr-stdint.h: Remove trailing blanks.
9699         * config/avr/avr-log.h: Same.
9700         * config/avr/avr-arch.h: Same.
9701         * config/avr/avr-devices.c: Same.
9702         * config/avr/avr-dimode.md: Same.
9703         * config/avr/predicates.md: Same.
9704         * config/avr/avr-c.c: Same.  And fix typo.
9706         * config/avr/avr-protos.h: Same.  And:
9707         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
9708         (init_cumulative_args): Rename to avr_init_cumulative_args.
9709         (expand_prologue): Rename to avr_expand_prologue.
9710         (expand_epilogue): Rename to avr_expand_epilogue.
9711         (adjust_insn_length): Rename to avr_adjust_insn_length.
9712         (notice_update_cc): Rename to avr_notice_update_cc.
9713         (final_prescan_insn): Rename to avr_final_prescan_insn.
9714         * config/avr/avr.c: Same.
9715         * config/avr/avr.h: Same.
9716         * config/avr/avr.md: Remove trailing blanks.
9717         (prologue): Use avr_expand_prologue.
9718         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
9720 2013-01-14  Richard Biener  <rguenther@suse.de>
9722         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
9723         verify_location, collect_subblocks): New functions.
9724         (verify_gimple_in_cfg): Verify that locations only reference
9725         BLOCKs in the functions BLOCK tree.
9727 2013-01-14  Richard Biener  <rguenther@suse.de>
9729         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
9730         PHI argument.
9731         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
9732         unshare reference.
9733         (insert_out_of_ssa_copy_on_edge): Likewise.
9734         (rewrite_close_phi_out_of_ssa): Likewise.
9735         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
9736         debug expressions.
9737         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
9738         propagated constants.
9739         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
9740         can not be shared.
9742 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
9744         * config/avr/avr-modes.def: Add GPL copyright notice.
9746 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
9748         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
9749         MEMMODEL_MASK to determine memory model.
9750         (atomic_store<mode>): Ditto from operands[2].
9751         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
9753 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
9755         PR fortran/55935
9756         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9757         (fold_gimple_assign): Don't call unshare_expr here.
9758         (fold_ctor_reference): Call unshare_expr.
9760 2013-01-13  Terry Guo  <terry.guo@arm.com>
9762         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
9763         * doc/fragments.texi: Document MULTILIB_REUSE.
9764         * gcc.c (multilib_reuse): New internal spec.
9765         (set_multilib_dir): Also search multilib from multilib_reuse.
9766         * genmultilib (tmpmultilib3): Refactor code.
9767         (tmpmultilib4): Ditto.
9768         (multilib_reuse): New multilib argument.
9770 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
9772         * Makefile.in: Update copyright.
9774 2013-01-12  Tom de Vries  <tom@codesourcery.com>
9776         PR middle-end/55890
9777         * calls.c (expand_call): Check if arg_nr is valid.
9779 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9781         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
9782         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
9783         documentation.  Add missing '__' in front of
9784         __builtin_ia32_packssdw256.
9786 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9788         PR target/55719
9789         * config/s390/s390.c (s390_preferred_reload_class): Do not return
9790         NO_REGS for larl operands.
9791         (s390_reload_larl_operand): Use s390_load_address instead of
9792         emit_move_insn.
9794 2013-01-11  Richard Biener  <rguenther@suse.de>
9796         * tree-cfg.c (verify_node_sharing_1): Split out from ...
9797         (verify_node_sharing): ... here.
9798         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
9800 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
9802         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
9803         Substitute TREECHECKING.
9804         * configure: Regenerate.
9805         * Makefile.in (TREECHECKING): New.
9807 2013-01-11  Richard Guenther  <rguenther@suse.de>
9809         PR tree-optimization/44061
9810         * tree-vrp.c (extract_range_basic): Compute zero as
9811         value-range for __builtin_constant_p of function parameters.
9813 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
9815         Update copyright years.
9817 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
9819         PR rtl-optimization/55672
9820         * lra-eliminations.c (mark_not_eliminable): Permit addition with
9821         const to be eliminable.
9823 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
9825         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
9826         * configure: Regenerate.
9828 2013-01-10  Richard Biener  <rguenther@suse.de>
9830         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
9832 2013-01-10  Richard Biener  <rguenther@suse.de>
9834         PR bootstrap/55792
9835         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
9836         locations for virtual PHI arguments.
9837         (rewrite_update_phi_arguments): Likewise.
9839 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
9841         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
9842         on to assembler.
9844 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
9846         PR tree-optimization/55921
9847         * tree-complex.c (expand_complex_asm): New function.
9848         (expand_complex_operations_1): Call it for GIMPLE_ASM.
9850 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9852         PR target/55718
9853         * config/s390/s390.c (s390_symref_operand_p)
9854         (s390_loadrelative_operand_p): Merge the two functions.
9855         (s390_check_qrst_address, print_operand_address): Add parameters
9856         to s390_loadrelative_operand_p invokation.
9857         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
9858         (s390_reload_larl_operand, s390_secondary_reload): Use
9859         s390_loadrelative_operand_p instead of s390_symref_operand_p.
9860         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
9862 2013-01-09  Mike Stump  <mikestump@comcast.net>
9864         * dse.c (record_store): Remove unnecessary assert.
9866 2013-01-09  Jan Hubicka  <jh@suse.cz>
9868         PR tree-optimization/55569
9869         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
9870         * cfgloop.h (scale_loop_profile): Likewise.
9872 2013-01-09  Jan Hubicka  <jh@suse.cz>
9874         PR lto/45375
9875         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
9876         functions.
9877         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
9879 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
9881         PR middle-end/55114
9882         * expr.h (maybe_emit_group_store): Declare.
9883         * expr.c (maybe_emit_group_store): New function.
9884         * builtins.c (expand_builtin_int_roundingfn): Call it.
9885         (expand_builtin_int_roundingfn_2): Likewise.
9887 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
9889         PR rtl-optimization/55829
9890         * lra-constraints.c (match_reload): Add code for absent output.
9891         (curr_insn_transform): Add code for reloads of matched inputs
9892         without output.
9894 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
9896         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
9897         attribute of movddup insn to DF.
9898         (*vec_interleave_lowv2df): Ditto.
9899         (vec_dupv2df): Ditto.
9901 2013-01-09  Jan Hubicka  <jh@suse.cz>
9903         PR tree-optimiation/55875
9904         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
9905         EVERY_ITERATION parameter.
9906         (number_of_iterations_exit): Check if exit is executed every iteration.
9907         (idx_infer_loop_bounds): Similarly here.
9908         (n_of_executions_at_most): Simplify
9909         to only test for cases where statement is dominated by the
9910         particular bound; handle correctly the "postdominance" test.
9911         (scev_probably_wraps_p): Use max loop iterations info
9912         as a global bound first.
9914 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
9915             Nick Clifton  <nickc@redhat.com>
9917         * config/v850/v850.md (cbranchsf4): New pattern.
9918         (cstoresf4): New pattern.
9919         (cbranchdf4): New pattern.
9920         (cstoredf4): New pattern.
9921         (movsicc): Disallow floating point comparisons.
9922         (cmpsf_le_insn): Fix order of operators.
9923         (cmpsf_lt_insn): Likewise.
9924         (cmpsf_eq_insn): Likewise.
9925         (cmpdf_le_insn): Likewise.
9926         (cmpdf_lt_insn): Likewise.
9927         (cmpdf_eq_insn): Likewise.
9928         (cmpsf_ge_insn): Use LE comparison.
9929         (cmpdf_ge_insn): Likewise.
9930         (cmpsf_gt_insn): Use LT comparison.
9931         (cmpdf_gt_insn): Likewise.
9932         (cmpsf_ne_insn): Delete pattern.
9933         (cmpdf_ne_insn): Delete pattern.
9934         * config/v850/v850.c (v850_gen_float_compare): Use
9935         gen_cmpdf_eq_insn for NE comparison.
9936         (v850_float_z_comparison_operator)
9937         (v850_float_nz_comparison_operator): Move from here ...
9938         * config/v850/predicates.md: ... to here.  Move GT and GE
9939         comparisons into v850_float_z_comparison_operator.
9940         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
9941         Delete prototype.
9942         (v850_float_nz_comparison_operator): Likewise.
9944 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9946         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
9947         with calls to gen_insvsi/gen_insvdi.
9949 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9951         * config/i386/i386.c (initial_ix86_tune_features): Set up
9952         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
9954 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
9955             Jakub Jelinek  <jakub@redhat.com>
9957         PR tree-optimization/48189
9958         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
9959         If nitercst is 0, don't predict the exit edge.
9961 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9963         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
9964         in asm_fprintf with reg_names.
9965         (aarch64_print_operand_address): Likewise.
9966         (aarch64_return_addr): Likewise.
9967         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
9969 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9971         * config/pa/pa.h (VAL_U6_BITS_P): Define.
9972         (INT_U6_BITS): Likewise.
9973         * config/pa/predicates.md (uint6_operand): New predicate.
9974         (shift5_operand, shift6_operand): Likewise.
9975         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
9976         arith32_operand.
9977         (lshrdi3): Use shift6_operand.
9978         (shrpsi4, shrpdi4): New insn patterns.
9979         (extzv): Delete expander.
9980         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
9981         predicates in unamed zero extract patterns.  Tighten common constraint.
9982         (extv): Delete expander.
9983         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
9984         predicates in unamed sign extract patterns.  Tighten common constraint.
9985         (insv): Delete expander.
9986         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
9987         predicates in unamed insert patterns.  Tighten common constraint.
9988         Change uint32_operand predicate to uint6_operand predicate in unamed
9989         DImode pattern to insert constant values of type 1...1xxxx.
9991 2013-01-04  Jan Hubicka  <jh@suse.cz>
9993         PR tree-optimization/55823
9994         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
9995         issue.
9997 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
9998             Uros Bizjak  <ubizjak@gmail.com>
10000         PR rtl-optimization/55845
10001         * df-problems.c (can_move_insns_across): Stop scanning at
10002         volatile_insn_p source instruction or give up if
10003         across_from .. across_to range contains any volatile_insn_p
10004         instructions.
10006 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
10008         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
10009         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
10010         Declare.
10011         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
10012         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
10014 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
10016         PR fortran/55341
10017         * asan.c (asan_clear_shadow): New function.
10018         (asan_emit_stack_protection): Use it.
10020 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
10022         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
10023         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
10024         with tab instead of space.
10026 2013-01-08  Nick Clifton  <nickc@redhat.com>
10028         * config/rl78/rl78.c (rl78_expand_prologue): Always select
10029         register bank 0 at the start of an interrupt handler.
10030         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
10031         MDBH registers.
10033 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
10035         * config/aarch64/aarch64-simd.md
10036         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
10037         (aarch64_simd_bsl): Likewise.
10038         (aarch64_vcond_internal<mode>): Likewise.
10039         (vcond<mode><mode>): Likewise.
10040         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
10041         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
10043 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
10045         * config/aarch64/aarch64-builtins.c
10046         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
10048 2013-01-08  Martin Jambor  <mjambor@suse.cz>
10050         PR debug/55579
10051         * tree-sra.c (analyze_access_subtree): Return true also after
10052         potentially creating a debug-only replacement.
10054 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
10056         PR middle-end/55890
10057         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
10059         PR tree-optimization/54120
10060         * tree-vrp.c (range_fits_type_p): Don't allow
10061         src_precision < precision from signed vr to unsigned_p
10062         if vr->min or vr->max is negative.
10063         (simplify_float_conversion_using_ranges): Test can_float_p
10064         against CODE_FOR_nothing.
10066 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
10067             Richard Biener  <rguenther@suse.de>
10069         PR middle-end/55851
10070         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
10071         types instead of just INTEGER_TYPE types.
10073 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
10075         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
10076         TF_SIZE): Define.
10078 2013-01-07  Steve Ellcey  <sellcey@mips.com>
10080         PR target/42661
10081         * config/mips/mips.opt: Change mad to mmad to match documentation.
10083 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
10085         PR target/55897
10086         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
10087         .progmemx.data now.
10089 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
10091         PR target/55897
10092         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
10093         (avr_addrspace_t): Add .section_name field.
10094         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
10095         array size.
10096         (avr_addrspace): Same.  Initialize .section_name.  Remove last
10097         NULL entry.  Put __memx into .progmemx.data.
10098         (progmem_section_prefix): Remove.
10099         (avr_asm_init_sections): No need to initialize progmem_section.
10100         (avr_asm_named_section): Use avr_addrspace[].section_name to get
10101         section name prefix.
10102         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
10103         retrieve the progmem section.
10104         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
10105         boundary to run over avr_addrspace[].
10106         (avr_register_target_pragmas): Ditto.
10108 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
10110         * varasm.c (output_constant_def_contents): For asan_protect_global
10111         protected strings, adjust DECL_ALIGN if needed, before testing for
10112         anchored symbols.
10113         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
10114         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
10115         normal decls.
10116         (output_object_block): For asan protected decls, emit asan padding
10117         after their contents.
10118         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
10119         (asan_finish_file): Test it here instead.
10121 2013-01-07  Nick Clifton  <nickc@redhat.com>
10122             Matthias Klose  <doko@debian.org>
10123             Doug Kwan  <dougkwan@google.com>
10124             H.J. Lu  <hongjiu.lu@intel.com>
10126         PR driver/55470
10127         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
10129         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
10131         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
10133         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
10135         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
10137 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
10139         PR target/54461
10140         * doc/install.texi (Cross-Compiler-Specific Options): Document
10141         --with-avrlibc.
10143 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
10145         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
10146         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
10147         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
10148         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
10149         vqmovun_high_s64): Fix source operand number and update copyright.
10151 2013-01-07  Richard Biener  <rguenther@suse.de>
10153         PR middle-end/55890
10154         * gimple.h (gimple_call_builtin_p): New overload.
10155         * gimple.c (validate_call): New function.
10156         (gimple_call_builtin_p): Likewise.
10157         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10158         Use gimple_call_builtin_p.
10159         (find_func_clobbers): Likewise.
10160         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
10161         (strlen_optimize_stmt): Likewise.
10163 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
10165         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
10166         (vld1q_dup_*): Likewise.
10167         (vld1_*): Likewise.
10168         (vld1q_*): Likewise.
10169         (vld1_lane_*): Likewise.
10170         (vld1q_lane_*): Likewise.
10172 2013-01-07  Richard Biener  <rguenther@suse.de>
10174         * lto-streamer.h (LTO_minor_version): Bump to 2.
10176 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
10178         * config/aarch64/aarch64-protos.h
10179         (aarch64_const_double_zero_rtx_p): Rename to...
10180         (aarch64_float_const_zero_rtx_p): ...this.
10181         (aarch64_float_const_representable_p): New.
10182         (aarch64_output_simd_mov_immediate): Likewise.
10183         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
10184         move immediate case.
10185         * config/aarch64/aarch64.c
10186         (aarch64_const_double_zero_rtx_p): Rename to...
10187         (aarch64_float_const_zero_rtx_p): ...this.
10188         (aarch64_print_operand): Allow printing of new constants.
10189         (aarch64_valid_floating_const): New.
10190         (aarch64_legitimate_constant_p): Check for valid floating-point
10191         constants.
10192         (aarch64_simd_valid_immediate): Likewise.
10193         (aarch64_vect_float_const_representable_p): New.
10194         (aarch64_float_const_representable_p): Likewise.
10195         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
10196         (aarch64_output_simd_mov_immediate): New.
10197         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
10198         (*movdf_aarch64): Likewise.
10199         * config/aarch64/constraints.md (Ufc): New.
10200         (Y): call aarch64_float_const_zero_rtx.
10201         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
10203 2013-01-07  Richard Biener  <rguenther@suse.de>
10205         PR tree-optimization/55888
10206         PR tree-optimization/55862
10207         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
10208         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
10209         not if it is contained therein.
10211 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
10213         * config/avr/t-avr: Typo.
10215 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
10217         PR55243
10218         * config/avr/t-avr: Don't automatically rebuild
10219         $(srcdir)/config/avr/t-multilib
10220         $(srcdir)/config/avr/avr-tables.opt
10221         $(srcdir)/doc/avr-mmcu.texi
10222         (avr-mcus): New phony target to build them on request.
10223         (s-avr-mlib, s-avr-mmcu-texi): Remove.
10224         * avr/avr-mcus.def: Adjust comments.
10226 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
10228         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
10230 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
10232         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
10234 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
10236         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
10238 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
10240         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
10241         to generate profiling.
10242         * config/rs6000/aix64.h (LIB_SPEC): Same.
10244 2013-01-04  Andrew Pinski  <apinski@cavium.com>
10246         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
10247         New function.
10248         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10250 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
10252         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
10253         unconditionally.
10254         (ix86_expand_move): Ditto.
10255         (ix86_zero_extend_to_Pmode): Ditto.
10256         (ix86_expand_call): Ditto.
10257         (ix86_expand_special_args_builtin): Ditto.
10258         (ix86_expand_builtin): Ditto.
10260 2013-01-04  Richard Biener  <rguenther@suse.de>
10262         PR tree-optimization/55862
10263         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
10264         translating them through PHI nodes.
10266 2013-01-04  Martin Jambor  <mjambor@suse.cz>
10268         PR tree-optimization/55755
10269         * tree-sra.c (sra_modify_assign): Do not check that an access has no
10270         children when trying to avoid producing a VIEW_CONVERT_EXPR.
10272 2013-01-04  Marek Polacek  <polacek@redhat.com>
10274         PR middle-end/55859
10275         * opts.c (default_options_optimization): Clarify error message.
10277 2013-01-04  Richard Biener  <rguenther@suse.de>
10279         PR middle-end/55863
10280         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
10281         reassociation.
10283 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10285         PR target/53789
10286         * config/pa/pa.md (movsi): Revert previous change.
10287         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
10288         references.
10290 2013-01-03  Richard Henderson  <rth@redhat.com>
10292         * config/i386/i386.c (ix86_expand_move): Always assign to op1
10293         after eliminating TLS symbols.
10295 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
10297         PR bootstrap/50167
10298         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
10299         * graphite-poly.c (debug_gmp_value): Likewise.
10301 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
10303         PR target/55712
10304         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
10305         selected code model, define __code_mode_small__, __code_model_medium__,
10306         __code_model_large__, __code_model_32__ or __code_model_kernel__.
10307         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
10308         xchg temporary register with %k.  Declare temporary register as
10309         early clobbered.
10310         [__x86_64__]: For medium and large code models, preserve %rbx register.
10312 2013-01-03  Richard Biener  <rguenther@suse.de>
10314         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
10315         (dump_subscript): Adjust.
10316         (finalize_ddr_dependent): Do not dump redundant info.
10317         (analyze_siv_subscript): Adjust.
10318         (subscript_dependence_tester): Likewise.
10319         (compute_affine_dependence): Likewise.
10321 2013-01-03  Richard Biener  <rguenther@suse.de>
10323         Revert
10324         2013-01-03  Richard Biener  <rguenther@suse.de>
10326         PR tree-optimization/55857
10327         * tree-vect-stmts.c (vectorizable_load): Do not setup
10328         re-alignment for invariant loads.
10330         2013-01-02  Richard Biener  <rguenther@suse.de>
10332         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
10333         invariant load do not generate a vector load from the scalar location.
10335 2013-01-03  Richard Biener  <rguenther@suse.de>
10337         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
10338         for not vectorizing.
10339         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10340         not build INDIRECT_REFs, call get_name once only.
10341         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
10342         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
10344 2013-01-03  Richard Biener  <rguenther@suse.de>
10346         PR tree-optimization/55857
10347         * tree-vect-stmts.c (vectorizable_load): Do not setup
10348         re-alignment for invariant loads.
10350 2013-01-03  Richard Biener  <rguenther@suse.de>
10352         PR lto/55848
10353         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
10354         prefer a built-in decl.
10356 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
10358         * gcc.c (process_command): Update copyright notice dates.
10359         * gcov.c (print_version): Likewise.
10360         * gcov-dump.c (print_version): Likewise.
10362         PR rtl-optimization/55838
10363         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
10364         iv0.step, iv1.step and step.
10366 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
10367             Marc Glisse  <marc.glisse@inria.fr>
10369         PR tree-optimization/55832
10370         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
10371         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
10372         integer_{one,zero}_node.
10374 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
10376         PR debug/54402
10377         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
10378         * var-tracking.c (reverse_op): Don't add reverse ops to
10379         VALUEs that have already
10380         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
10382 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
10384         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
10386 2013-01-02  Teresa Johnson  <tejohnson@google.com>
10388         * dumpfile.c (dump_loc): Print filename with location.
10389         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
10390         new location_t parameter to emit complete unroll message with
10391         new dump framework.
10392         (canonicalize_loop_induction_variables): Compute loops location
10393         and pass to try_unroll_loop_completely.
10394         * loop-unroll.c (report_unroll_peel): New function.
10395         (peel_loops_completely): Use new dump format with location
10396         for main dumpfile message, and invoke report_unroll_peel on success.
10397         (decide_unrolling_and_peeling): Ditto.
10398         (decide_peel_once_rolling): Remove old dumpfile message subsumed
10399         by report_unroll_peel.
10400         (decide_peel_completely): Ditto.
10401         (decide_unroll_constant_iterations): Ditto.
10402         (decide_unroll_runtime_iterations): Ditto.
10403         (decide_peel_simple): Ditto.
10404         (decide_unroll_stupid): Ditto.
10405         * cfgloop.c (get_loop_location): New function.
10406         * cfgloop.h (get_loop_location): Declare.
10408 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
10410         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
10411         NULL.
10413 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10415         PR middle-end/55198
10416         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
10417         BLKmode objects when EXPAND_MEMORY is specified.
10419 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
10421         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10422         in loop predicate.
10423         (fold_builtin_cpu): Do not share cpu model decls across statements.
10425 2013-01-02  Jason Merrill  <jason@redhat.com>
10427         PR c++/55804
10428         * tree.c (build_array_type_1): Revert earlier change.
10430 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
10432         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10433         "cortex-a57".
10434         * config/aarch64/aarch64-tune.md: Re-generate.
10436 2013-01-02  Richard Biener  <rguenther@suse.de>
10438         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
10439         invariant load do not generate a vector load from the scalar location.
10441 2013-01-02  Richard Biener  <rguenther@suse.de>
10443         PR bootstrap/55784
10444         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10445         * configure: Regenerate.
10447 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
10449         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
10450         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
10451         (expand_builtin_int_roundingfn_2): Keep the original target around
10452         for the fallback case.
10454 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
10456         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
10457         to be clear for sign changes.
10459 2013-01-01  Jan Hubicka  <jh@suse.cz>
10461         * ipa-inline-analysis.c: Fix formatting.
10463 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
10465         PR tree-optimization/55831
10466         * tree-vect-loop.c (get_initial_def_for_induction): Use
10467         gsi_after_labels instead of gsi_start_bb.
10469 Copyright (C) 2013 Free Software Foundation, Inc.
10471 Copying and distribution of this file, with or without modification,
10472 are permitted in any medium without royalty provided the copyright
10473 notice and this notice are preserved.