mips-tables.opt: Regenerate.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2013-06-27  Catherine Moore <clm@codesourcery.com>
2
3         * config/mips/mips-tables.opt: Regenerate.
4         * config/mips/mips-cpus.def: Add m14ke and m14kec.
5         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies
6         -mdspr2.
7         * doc/invoke.texi: Add -m14kc.
8  
9 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
10
11         PR target/57623
12         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
13         constraints of operand 1 and 2.
14
15         PR target/57623
16         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
17         to match RTL canonicalization.  Swap predicates and
18         constraints of operand 1 and 2.
19
20 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
21
22         * lra-constraints.c (inherit_in_ebb): Process static hard regs
23         too.  Process OP_INOUT regs for splitting too.
24
25 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
26
27         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
28         decl before the loop, initialize to NULL.
29         (vectorizable_load): Initialize ptr_incr to NULL.
30
31 2013-06-27  Martin Jambor  <mjambor@suse.cz>
32
33         PR lto/57208
34         * ipa-ref.h (ipa_maybe_record_reference): Declare.
35         * ipa-ref.c (ipa_maybe_record_reference): New function.
36         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
37         * ipa-cp.c (create_specialized_node): Record potential references from
38         aggvals.
39         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
40
41 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
42
43         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
44         parameter 'mode' of type 'enum machine_mode mode'; change to pass
45         'mode' to force_reg.
46         (aarch64_add_offset): Update calls to aarch64_force_temporary.
47         (aarch64_expand_mov_immediate): Likewise.
48
49 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
50
51         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
52         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
53
54 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55
56         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
57         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
58         (struct machine_function): Add tbegin_p.
59         (s390_canonicalize_comparison): Fold CC mode compares to
60         conditional jump if possible.
61         (s390_emit_jump): Return the emitted jump.
62         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
63         Handle CCRAWmode compares.
64         (s390_option_override): Default to -mhtm if available.
65         (s390_reg_clobbered_rtx): Handle floating point regs as well.
66         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
67         FPRs instead of df_regs_ever_live_p.
68         (s390_optimize_nonescaping_tx): New function.
69         (s390_init_frame_layout): Extend clobbered_regs array to cover
70         FPRs as well.
71         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
72         (s390_expand_tbegin): New function.
73         (enum s390_builtin): New enum definition.
74         (code_for_builtin): New array definition.
75         (s390_init_builtins): New function.
76         (s390_expand_builtin): New function.
77         (TARGET_INIT_BUILTINS): Define.
78         (TARGET_EXPAND_BUILTIN): Define.
79         * common/config/s390/s390-common.c (processor_flags_table): Add
80         PF_TX.
81         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
82         (s390_alc_comparison): Likewise.
83         * config/s390/s390-modes.def: Add CCRAWmode.
84         * config/s390/s390.h (processor_flags): Add PF_TX.
85         (TARGET_CPU_HTM): Define macro.
86         (TARGET_HTM): Define macro.
87         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
88         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
89         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
90         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
91         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
92         values.
93         (TBEGIN_MASK, TBEGINC_MASK): New constants.
94         ("*cc_to_int"): Move up.
95         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
96         constants other than 0.
97         ("*ccraw_to_int"): New insn and splitter definition.
98         ("tbegin", "tbegin_nofloat", "tbegin_retry")
99         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
100         ("tx_assist"): New expander.
101         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
102         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
103         * config/s390/s390.opt: Add -mhtm option.
104         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
105         * config/s390/htmxlintrin.h: New file.
106         * config/s390/htmintrin.h: New file.
107         * config/s390/s390intrin.h: New file.
108         * doc/extend.texi: Document htm builtins.
109         * config.gcc: Add the new header files to extra_headers.
110
111 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
112
113         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
114         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET):
115         Undefine.
116
117 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
118             Pat Haugen <pthaugen@us.ibm.com>
119             Peter Bergner <bergner@vnet.ibm.com>
120
121         * config/rs6000/power8.md: New.
122         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
123         setting for power8 entry.
124         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
125         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
126         test for Power4/Power5 only.
127         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
128         support.
129         (force_new_group): Adjust comment.
130         * config/rs6000/rs6000.md: Include power8.md.
131
132 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
133
134         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
135         * config/arm/arm-protos.h (arm_max_conditional_execute): New
136         declaration.
137         (tune_params): Update comment.
138         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
139         (arm_max_conditional_execute): New function.
140         (thumb2_final_prescan_insn): Use max_insn_skipped and
141         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
142
143 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
144
145         PR tree-optimization/57705
146         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
147         SSA_NAME step, provided that it is not defined inside the loop.
148         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested
149         loop.
150         (get_initial_def_for_induction): Handle SSA_NAME IV step.
151
152 2013-06-25  Martin Jambor  <mjambor@suse.cz>
153
154         PR middle-end/57670
155         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
156         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
157         calls in the dump.
158         (ipa_note_param_call): Initialize member_ptr flag.
159         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
160         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
161         (ipa_write_indirect_edge_info): Stream member_ptr flag.
162         (ipa_read_indirect_edge_info): Likewise.
163
164 2013-06-25  Richard Biener  <rguenther@suse.de>
165
166         PR middle-end/56977
167         * passes.c (init_optimization_passes): Move pass_fold_builtins
168         and pass_dce earlier with -Og.
169
170 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
171
172         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
173         <BIT_FIELD_REF>: Remove trailing TAB.
174         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
175         remove blank line.
176
177 2013-06-24  Martin Jambor  <mjambor@suse.cz>
178
179         PR tree-optimization/57358
180         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
181         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
182         (ipa_analyze_params_uses): Generate pessimistic info when true.
183
184 2013-06-24  Martin Jambor  <mjambor@suse.cz>
185
186         PR tree-optimization/57539
187         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
188         global.inlined_to of the new node to it.  All callers changed.
189         * ipa-inline-transform.c (clone_inlined_nodes): New variable
190         inlining_into, pass it to cgraph_clone_node.
191         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
192         ipa_free_edge_args_substructures.
193         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
194         rdesc linked list.  Do not assert rdesc edges have inlined caller.
195         Assert we have found an rdesc in the rdesc list.
196
197 2013-06-24  Richard Biener  <rguenther@suse.de>
198
199         * pointer-set.h (struct pointer_set_t): Move here from
200         pointer-set.c.
201         (pointer_set_lookup): Declare.
202         (class pointer_map): New template class implementing a
203         generic pointer to T map.
204         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
205         pointer_map<T>::contains, pointer_map<T>::insert,
206         pointer_map<T>::traverse): New functions.
207         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
208         (pointer_set_lookup): New function.
209         (pointer_set_contains): Use pointer_set_lookup.
210         (pointer_set_insert): Likewise.
211         (insert_aux): Remove.
212         (struct pointer_map_t): Embed a pointer_set_t.
213         (pointer_map_create): Adjust.
214         (pointer_map_destroy): Likewise.
215         (pointer_map_contains): Likewise.
216         (pointer_map_insert): Likewise.
217         (pointer_map_traverse): Likewise.
218         * tree-streamer.h (struct streamer_tree_cache_d): Use a
219         pointer_map<unsigned> instead of a pointer_map_t.
220         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
221         (streamer_tree_cache_lookup): Likewise.
222         (streamer_tree_cache_create): Likewise.
223         (streamer_tree_cache_delete): Likewise.
224         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
225         pointer_map<unsigned> instead of a pointer_map_t.
226         (lto_init_tree_ref_encoder): Adjust.
227         (lto_destroy_tree_ref_encoder): Likewise.
228         * lto-section-out.c (lto_output_decl_index): Likewise.
229         (lto_record_function_out_decl_state): Likewise.
230         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
231
232 2013-06-24  Richard Biener  <rguenther@suse.de>
233
234         PR tree-optimization/57488
235         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
236
237 2013-06-24  Alan Modra  <amodra@gmail.com>
238
239         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
240         (gen_easy_altivec_constant): Likewise.
241         * config/rs6000/predicates.md (easy_vector_constant_add_self,
242         easy_vector_constant_msb): Likewise.
243
244 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
245
246         PR target/57688
247         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
248         add missing return true.
249
250 2013-06-23  Oleg Endo <olegendo@gcc.gnu.org>
251
252         PR target/52483
253         * config/sh/predicates.md (general_extend_operand): Invoke
254         general_movsrc_operand for memory operands.
255         (general_movsrc_operand): Allow reg+reg addressing, do not use
256         general_operand for memory operands.
257
258 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
259
260         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
261         when current target options does not apply.
262         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
263         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
264         * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
265         * config/i386/mmintrin.h: Ditto.
266         * config/i386/nmmintrin.h: Ditto.
267         * config/i386/avx2intrin.h: Ditto.
268         * config/i386/fxsrintrin.h: Ditto.
269         * config/i386/tbmintrin.h: Ditto.
270         * config/i386/xsaveintrin.h: Ditto.
271         * config/i386/f16cintrin.h: Ditto.
272         * config/i386/xtestintrin.h: Ditto.
273         * config/i386/xsaveoptintrin.h: Ditto.
274         * config/i386/bmi2intrin.h: Ditto.
275         * config/i386/lzcntintrin.h: Ditto.
276         * config/i386/smmintrin.h: Ditto.
277         * config/i386/wmmintrin.h: Ditto.
278         * config/i386/x86intrin.h: Remove all header include guards.
279         * config/i386/prfchwintrin.h: Ditto.
280         * config/i386/pmmintrin.h: Ditto.
281         * config/i386/tmmintrin.h: Ditto.
282         * config/i386/xmmintrin.h: Ditto.
283         * config/i386/popcntintrin.h: Ditto.
284         * config/i386/rdseedintrin.h: Ditto.
285         * config/i386/ammintrin.h: Ditto.
286         * config/i386/emmintrin.h: Ditto.
287         * config/i386/immintrin.h: Remove all header include guards.
288         * config/i386/fma4intrin.h: Ditto.
289         * config/i386/lwpintrin.h: Ditto.
290         * config/i386/xopintrin.h: Ditto.
291         * config/i386/ia32intrin.h: Ditto.
292         * config/i386/avxintrin.h: Ditto.
293         * config/i386/rtmintrin.h: Ditto.
294         * config/i386/fmaintrin.h: Ditto.
295         * config/i386/mm3dnow.h: Ditto.
296
297 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
298
299         * common/config/i386/i386-common.c: Handle LZCNT.
300
301 2013-06-22  Andi Kleen  <ak@linux.intel.com>
302
303         * doc/extend.texi: Use __atomic_store_n instead of
304         __atomic_store in HLE example.
305
306 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
307
308         * config/sh/sh.c: Remove <cstdlib> workaround.
309
310 2013-06-21  Andi Kleen  <ak@linux.intel.com>
311
312         * doc/extend.texi: Dont use __atomic_clear in HLE
313         example.  Fix typo.
314
315 2013-06-21  Andi Kleen  <ak@linux.intel.com>
316
317         * doc/extend.texi: Document that __atomic_clear and
318           __atomic_test_and_set should only be used with bool.
319
320 2013-06-20  Jan Hubicka  <jh@suse.cz>
321
322         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
323         types_same_for_odr.
324         * tree.c (decls_same_for_odr): New function.
325         (same_for_edr): New function.
326         (types_same_for_odr): New function.
327         (get_binfo_at_offset): Use it.
328         * tree.h (types_same_for_odr): Declare.
329
330 2013-06-20  Oleg Endo <olegendo@gcc.gnu.org>
331             Jason Merrill  <jason@redhat.com>
332
333         * system.h: Include <cstdlib> as well as <stdlib.h>.
334
335 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
336
337         PR target/57655
338         * config/i386/i386.c (construct_container): Report error if
339         long double is used with disabled x87 float returns.
340
341 2013-06-20  Jan Hubicka  <jh@suse.cz>
342
343         * lto-cgraph.c (input_symtab): Do not set cgraph state.
344
345 2013-06-20  Joern Rennecke <joern.rennecke@embecosm.com>
346
347         PR rtl-optimization/57425
348         PR rtl-optimization/57569
349         * alias.c (write_dependence_p): Remove parameters mem_mode and
350         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
351         Changed all callers.
352         (canon_anti_dependence): Get comments and semantics in sync.
353         Add parameter mem_canonicalized.  Changed all callers.
354         * rtl.h (canon_anti_dependence): Update prototype.
355
356 2013-06-20  Richard Biener  <rguenther@suse.de>
357
358         * data-streamer-in.c (streamer_read_uhwi): Optimize single
359         byte case, inline streamer_read_uchar and defer section
360         overrun check.
361
362 2013-06-20  Richard Biener  <rguenther@suse.de>
363
364         PR tree-optimization/57584
365         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
366         SSA names into the expanded expression that take part in
367         abnormal coalescing.
368
369 2013-06-19    <singhai@google.com>
370
371         * gcov.c (print_usage): Handle new option.
372         (process_args): Ditto.
373         (get_gcov_intermediate_filename): New function.
374         (output_intermediate_file): New function.
375         (output_gcov_file): New function
376         (generate_results): Handle new option.
377         (release_function): Relase demangled name.
378         (read_graph_file): Handle demangled name.
379         (output_lines): Ditto.
380         * doc/gcov.texi: Document gcov intermediate format.
381
382 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
383
384         PR bootstrap/57604
385         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
386         (lra_emit_add): Use the functions.  Add comment about Y as an
387         address segment.
388
389 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
390
391         PR driver/57652
392         * collect2.c (collect_atexit): New.
393         (collect_exit): Delete.
394         (main): Register collect_atexit with atexit.
395         (collect_wait): Change collect_exit to exit.
396         (do_wait): Same.
397         * collect2.h (collect_exit): Delete.
398         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
399
400 2013-06-19  Wei Mi  <wmi@google.com>
401
402         PR rtl-optimization/57518
403         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
404         if regno is used in paradoxical subreg.
405         (update_equiv_regs): Check pdx_subregs[regno] before
406         set a reg to be equivalent with a mem.
407
408 2013-06-19  Matthias Klose  <doko@ubuntu.com>
409
410         PR driver/57651
411         * file-find.h (find_a_file): Add a mode parameter.
412         * file-find.c (find_a_file): Likewise.
413         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
414         with X_OK for the executables.
415         * collect2.c (main): Call find_a_file with X_OK.
416
417 2013-06-19  Steve Ellcey  <sellcey@mips.com>
418
419         PR target/56942
420         * config/mips/mips.md (casesi_internal_mips16_<mode>):
421         Use NEXT_INSN instead of next_real_insn.
422
423 2013-06-19  Jan Hubicka  <jh@suse.cz>
424
425         * cgraph.h (const_value_known_p): Replace by ...
426         (ctor_for_folding): .. this one.
427         * cgraphunit.c (process_function_and_variable_attributes): Use it.
428         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
429         * expr.c (expand_expr_real_1): Likewise.
430         (string_constant): Likewise.
431         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
432         * ipa.c (process_references): Likewise.
433         (symtab_remove_unreachable_nodes): Likewise.
434         * ipa-inline-analysis.c (param_change_prob): Likewise.
435         * gimple-fold.c (canonicalize_constructor_val): Likewise.
436         (get_base_constructor): Likwise.
437         * varpool.c (varpool_remove_node): Likewise.
438         (varpool_remove_initializer): LIkewise.
439         (dump_varpool_node): LIkwise.
440         (const_value_known_p): Rewrite to ...
441         (ctor_for_folding): ... this one.
442
443 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
444
445         PR driver/57651
446         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
447         PERSONALITY in $PATH derived prefixes.
448
449 2013-06-19  Jeff Law  <law@redhat.com>
450
451         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
452         in comment.
453
454         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
455         (simplify_bitwise_binary): Use it to simpify certain binary ops on
456         booleans.
457
458 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
459
460         * config/arm/vfp.md: Move VFP instruction classification documentation
461         to ...
462         * config/arm/arm.md: ... here.  Update instruction classification
463         documentation.
464
465 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
466
467         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
468         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
469         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
470
471 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
472
473         PR target/57609
474         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
475         with NEXT_INSN.  Use tablejump_p to check for jump table data
476         insns.
477
478 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
479
480         PR c++/56544
481         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
482         that now in C++ the value is correct per the C++ standards.
483
484 2013-06-19  Richard Biener  <rguenther@suse.de>
485
486         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
487         for global context.
488
489 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
490
491         Revert:
492         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
493
494         PR target/57609
495         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
496         with next_active_insn.
497
498 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
499
500         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
501         functions are inlined during failures to flag an error.
502         * tree-inline.c (expand_call_inline): Allow the error to be flagged
503         in early inline pass.
504
505 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
506
507         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
508         in comments.
509
510 2013-06-18  Julian Brown  <julian@codesourcery.com>
511
512         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
513         Permit virtual register pre-reload if !strict.
514         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
515         change.
516         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
517         prototype.
518         * config/arm/neon.md (movmisalign<mode>): Use
519         neon_perm_struct_or_reg_operand instead of
520         neon_struct_or_register_operand.
521         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
522         neon_permissive_struct_operand instead of neon_struct_operand.
523         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
524         neon_vector_mem_operand.
525         * config/arm/predicates.md (neon_struct_operand): Adjust call to
526         neon_vector_mem_operand.
527         (neon_permissive_struct_operand): New.
528         (neon_struct_or_register_operand): Rename to...
529         (neon_perm_struct_or_reg_operand): This. Adjust call to
530         neon_vector_mem_operand.
531
532 2013-06-18  Richard Biener  <rguenther@suse.de>
533
534         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
535         * lto-streamer.h: Include pointer-set.h.
536         (struct lto_decl_slot): Remove.
537         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
538         Remove next_index entry.
539         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
540         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
541         (lto_init_tree_ref_encoder): Adjust.
542         (lto_destroy_tree_ref_encoder): Likewise.
543         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
544         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
545         (lto_output_decl_index): Adjust.
546         (lto_new_out_decl_state): Likewise.
547         (lto_record_function_out_decl_state): Likewise.
548         * lto-streamer-out.c (copy_function): Likewise.
549
550 2013-06-18  Richard Biener  <rguenther@suse.de>
551
552         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
553         * cgraphunit.c: Include cfgloop.h.
554         (init_lowered_empty_function): Initialize the loop tree.
555         (assemble_thunk): Insert new BBs into loops.
556
557 2013-06-18  Richard Biener  <rguenther@suse.de>
558
559         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
560         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
561         the map from cache entry to cache index optional.
562         (streamer_tree_cache_replace_tree): Adjust accordingly.
563         (streamer_tree_cache_append): Likewise.
564         (streamer_tree_cache_delete): Likewise.
565         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
566         streamer cache map from cache entry to cache index.
567         * lto-streamer-out.c (create_output_block): Adjust.
568
569 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
570
571         * config/arm/arm.md (attribute "insn"): Move multiplication and
572         division attributes to...
573         (attribute "type"): ... here.  Remove mult.
574         (attribute "mul32"): New attribute.
575         (attribute "mul64"): Add umaal.
576         (*arm_mulsi3): Update attributes.
577         (*arm_mulsi3_v6): Likewise.
578         (*thumb_mulsi3): Likewise.
579         (*thumb_mulsi3_v6): Likewise.
580         (*mulsi3_compare0): Likewise.
581         (*mulsi3_compare0_v6): Likewise.
582         (*mulsi_compare0_scratch): Likewise.
583         (*mulsi_compare0_scratch_v6): Likewise.
584         (*mulsi3addsi): Likewise.
585         (*mulsi3addsi_v6): Likewise.
586         (*mulsi3addsi_compare0): Likewise.
587         (*mulsi3addsi_compare0_v6): Likewise.
588         (*mulsi3addsi_compare0_scratch): Likewise.
589         (*mulsi3addsi_compare0_scratch_v6): Likewise.
590         (*mulsi3subsi): Likewise.
591         (*mulsidi3adddi): Likewise.
592         (*mulsi3addsi_v6): Likewise.
593         (*mulsidi3adddi_v6): Likewise.
594         (*mulsidi3_nov6): Likewise.
595         (*mulsidi3_v6): Likewise.
596         (*umulsidi3_nov6): Likewise.
597         (*umulsidi3_v6): Likewise.
598         (*umulsidi3adddi): Likewise.
599         (*umulsidi3adddi_v6): Likewise.
600         (*smulsi3_highpart_nov6): Likewise.
601         (*smulsi3_highpart_v6): Likewise.
602         (*umulsi3_highpart_nov6): Likewise.
603         (*umulsi3_highpart_v6): Likewise.
604         (mulhisi3): Likewise.
605         (*mulhisi3tb): Likewise.
606         (*mulhisi3bt): Likewise.
607         (*mulhisi3tt): Likewise.
608         (maddhisi4): Likewise.
609         (*maddhisi4tb): Likewise.
610         (*maddhisi4tt): Likewise.
611         (maddhidi4): Likewise.
612         (*maddhidi4tb): Likewise.
613         (*maddhidi4tt): Likewise.
614         (divsi3): Likewise.
615         (udivsi3): Likewise.
616         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
617         (thumb2_mulsi_short_compare0): Likewise.
618         (thumb2_mulsi_short_compare0_scratch): Likewise.
619         * config/arm/arm1020e.md (1020mult1): Update attribute change.
620         (1020mult2): Likewise.
621         (1020mult3): Likewise.
622         (1020mult4): Likewise.
623         (1020mult5): Likewise.
624         (1020mult6): Likewise.
625         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
626         change.
627         (cortex_a15_mult64): Likewise.
628         (cortex_a15_sdiv): Likewise.
629         (cortex_a15_udiv): Likewise.
630         * config/arm/arm1026ejs.md (mult1): Update attribute change.
631         (mult2): Likewise.
632         (mult3): Likewise.
633         (mult4): Likewise.
634         (mult5): Likewise.
635         (mult6): Likewise.
636         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
637         (pj4_ir_div): Likewise.
638         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
639         (11_mult2): Likewise.
640         (11_mult3): Likewise.
641         (11_mult4): Likewise.
642         (11_mult5): Likewise.
643         (11_mult6): Likewise.
644         (11_mult7): Likewise.
645         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
646         (cortex_a8_mla): Likewise.
647         (cortex_a8_mull): Likewise.
648         (cortex_a8_smulwy): Likewise.
649         (cortex_a8_smlald): Likewise.
650         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
651         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
652         (cortex_r4_mul_3): Likewise.
653         (cortex_r4_mla_4): Likewise.
654         (cortex_r4_mla_3): Likewise.
655         (cortex_r4_smlald): Likewise.
656         (cortex_r4_mull): Likewise.
657         (cortex_r4_sdiv): Likewise.
658         (cortex_r4_udiv): Likewise.
659         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
660         (cortex_a7_idiv): Likewise.
661         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
662         (9_mult2): Likewise.
663         (9_mult3): Likewise.
664         (9_mult4): Likewise.
665         (9_mult5): Likewise.
666         (9_mult6): Likewise.
667         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
668         (cortex_a53_sdiv): Likewise.
669         (cortex_a53_udiv): Likewise.
670         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
671         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
672         (mp626_mult2): Likewise.
673         (mp626_mult3): Likewise.
674         (mp626_mult4): Likewise.
675         * config/arm/fa526.md (526_mult1): Update attribute change.
676         (526_mult2): Likewise.
677         * config/arm/arm-generic.md (mult): Update attribute change.
678         (mult_ldsched_strongarm): Likewise.
679         (mult_ldsched): Likewise.
680         (multi_cycle): Likewise.
681         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
682         * config/arm/fa606te.md (606te_mult1): Update attribute change.
683         (606te_mult2): Likewise.
684         (606te_mult3): Likewise.
685         (606te_mult4): Likewise.
686         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
687         (cortex_a9_mac16): Likewise.
688         (cortex_a9_multiply): Likewise.
689         (cortex_a9_mac): Likewise.
690         (cortex_a9_multiply_long): Likewise.
691         * config/arm/fa626te.md (626te_mult1): Update attribute change.
692         (626te_mult2): Likewise.
693         (626te_mult3): Likewise.
694         (626te_mult4): Likewise.
695
696 2013-06-18  Richard Biener  <rguenther@suse.de>
697
698         PR lto/57334
699         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
700
701 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
702
703         PR target/57609
704         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
705         with next_active_insn.
706
707 2013-06-18  Alan Modra  <amodra@gmail.com>
708
709         * config/rs6000/rs6000.h (enum data_align): New.
710         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
711         (DATA_ABI_ALIGNMENT): Define.
712         (CONSTANT_ALIGNMENT): Correct comment.
713         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
714         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
715
716 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
717
718         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
719         ATTRIBUTE_UNUSED marking.
720
721 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
722
723         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
724         alternative and update.
725         (aarch64_dup_lanedi): Delete.
726         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
727         * config/aarch64/aarch64-simd-builtins.def: Update.
728
729 2013-06-17  Richard Biener  <rguenther@suse.de>
730
731         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
732         (lto_input_scc): Declare.
733         (lto_input_tree_1): Likewise.
734         (struct lto_stats_d): Add num_tree_bodies_output and
735         num_pickle_refs_output.
736         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
737         (lto_read_tree_1): Split out from ...
738         (lto_read_tree): ... this.
739         (lto_input_scc): New function.
740         (lto_input_tree_1): Split out from ...
741         (lto_input_tree): ... this.  Handle LTO_tree_scc.
742         (lto_data_in_create): Create the streamer cache without hashes.
743         * lto-streamer-out.c (create_output_block): Create the streamer
744         cache with hashes when not doing WPA.
745         (lto_write_tree_1): Split out from ...
746         (lto_write_tree): ... this.
747         (get_symbol_initial_value): New function.
748         (lto_output_tree_1): Split out from ...
749         (lto_output_tree): ... this.  Write trees as series of SCCs
750         using a DFS walk via DFS_write_tree.
751         (struct sccs, struct scc_entry): New types.
752         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
753         (DFS_write_tree_body): New function.
754         (DFS_write_tree): Likewise.
755         (hash_tree): Likewise.
756         (scc_entry_compare): Likewise.
757         (hash_scc): Likewise.
758         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
759         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
760         TREE_CHAIN as regular reference.
761         (streamer_read_integer_cst): Remove.
762         (streamer_get_pickled_tree): Adjust.
763         * tree-streamer-out.c (streamer_write_chain): Disable streaming
764         of DECL_EXTERNALs in BLOCK_VARS for now.
765         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
766         reference.
767         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
768         Add hash value argument and record that if hashes are recorded
769         in the cache.
770         (streamer_tree_cache_insert_1): Adjust.
771         (streamer_tree_cache_insert): Likewise.
772         (streamer_tree_cache_insert_at): Rename to ...
773         (streamer_tree_cache_replace_tree): ... this and adjust.
774         (streamer_tree_cache_append): Adjust.
775         (record_common_node): Likewise.
776         (streamer_tree_cache_create): Add argument whether to
777         record hash values together with trees.
778         (streamer_tree_cache_delete): Adjust.
779         * tree-streamer.h (struct streamer_tree_cache_d): Add
780         vector of hashes.
781         (streamer_read_integer_cst): Remove.
782         (streamer_tree_cache_insert): Adjust.
783         (streamer_tree_cache_append): Likewise.
784         (streamer_tree_cache_insert_at): Rename to ...
785         (streamer_tree_cache_replace_tree): ... this and adjust.
786         (streamer_tree_cache_create): Add argument whether to record hashes.
787         (streamer_tree_cache_get): Rename to ...
788         (streamer_tree_cache_get_tree): ... this.
789         (streamer_tree_cache_get_hash): New function.
790         * tree.c (cache_integer_cst): New function.
791         * tree.h (cache_integer_cst): Declare.
792         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
793         * lto-symtab.c (lto_varpool_replace_node): Only release
794         DECL_INITIAL of non-prevailing decls.
795         * varpool.c (varpool_remove_initializer): Do not release
796         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
797
798 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
799
800         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
801         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
802         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
803         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
804         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
805         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
806         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
807         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
808         instead of TARGET_64BIT.
809         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
810         Require ISA_HAS_<D>DIV.
811
812 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
813
814         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
815         (mips*-*-linux*): Move default with_llsc setting to where other
816         defaults are set.
817         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
818         with_arch block.
819         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
820         Likewise.  Remove default with_tune setting.  Move default float
821         setting to its own block.  Handle with_llsc in the same block as above.
822
823 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
824
825         PR rtl-optimization/57425
826         PR rtl-optimization/57569
827         * alias.c (write_dependence_p): Add new parameters mem_mode,
828         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
829         Changed all callers.
830         (canon_anti_dependence): New function.
831         * cse.c (check_dependence): Use canon_anti_dependence.
832         * cselib.c (cselib_invalidate_mem): Likewise.
833         * rtl.h (canon_anti_dependence): Declare.
834
835 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
836
837         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
838         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
839         ".set mips3" for 64-bit targets.
840
841 2013-06-15  Dehao Chen  <dehao@google.com>
842
843         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
844         * gimple-low.c (gimple_check_call_matching_types): Likewise.
845         (gimple_check_call_args): Likewise.
846         * value-prof.c (check_ic_target): Likewise.
847         * ipa-inline.c (early_inliner): Likewise.
848         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
849         * cgraph.c (cgraph_create_edge_1): Likewise.
850         (cgraph_make_edge_direct): Likewise.
851
852 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
853
854         PR target/57615
855         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
856         rs6000_output_move_128bit to handle emitting quad memory
857         operations.  Set attribute length to 8 bytes.
858
859 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
860
861         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
862         New pattern.
863         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
864         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
865         (aarch64_<su>mlsl<mode>): Likewise.
866
867 2013-06-14  Mike Stump  <mikestump@comcast.net>
868
869         * Makefile.in (TARGET_H): Add insn-codes.h.
870
871 2013-06-14  Alan Modra  <amodra@gmail.com>
872
873         PR middle-end/57134
874         PR middle-end/57586
875         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
876         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
877         bitfield expansion when EXPAND_MEMORY.
878         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
879
880 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
881
882         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
883         test for clearing quad memory on 32-bit later.
884
885 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
886
887         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
888         (fold_negate_expr): Likewise.
889         (fold_real_zero_addition_p): Handle vectors.
890         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
891
892 2013-06-14  Alan Modra  <amodra@gmail.com>
893
894         * varasm.c (force_const_mem): Revert 2013-06-07 change.
895
896 2013-06-13  Jan Hubicka  <jh@suse.cz>
897
898         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
899         Local comdats are not externally visible.
900         * symtab.c (dump_symtab_base): Dump externally visible.
901         (verify_symtab_base): Verify back links in the symtab hash.
902
903 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
904
905         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
906         CONVERT_EXPR as equal nodes.
907
908 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
909
910         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
911
912 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
913
914         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
915         Generalize to complex and vector.
916         * tree.c (build_all_ones_cst): New function.
917         * tree.h (build_all_ones_cst): Declare it.
918
919 2013-06-13  Alan Modra  <amodra@gmail.com>
920
921         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
922         * config/rs6000/rs6000.md (signbittf2): New insn.
923         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
924         (abstf2_internal, cmptf_internal2): Likewise.
925         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
926
927 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
928             Pat Haugen <pthaugen@us.ibm.com>
929             Peter Bergner <bergner@vnet.ibm.com>
930
931         * config/rs6000/rs6000.c (emit_load_locked): Add support for
932         power8 byte, half-word, and quad-word atomic instructions.
933         (emit_store_conditional): Likewise.
934         (rs6000_expand_atomic_compare_and_swap): Likewise.
935         (rs6000_expand_atomic_op): Likewise.
936
937         * config/rs6000/sync.md (larx): Add new modes for power8.
938         (stcx): Likewise.
939         (AINT): New mode iterator to include TImode as well as normal
940         integer modes on power8.
941         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
942         that VSX registers are not considered.  Use AINT mode iterator
943         instead of INT1 to allow inclusion of quad word atomic operations
944         on power8.
945         (load_locked<mode>): Likewise.
946         (store_conditional<mode>): Likewise.
947         (atomic_compare_and_swap<mode>): Likewise.
948         (atomic_exchange<mode>): Likewise.
949         (atomic_nand<mode>): Likewise.
950         (atomic_fetch_<fetchop_name><mode>): Likewise.
951         (atomic_nand_fetch<mode>): Likewise.
952         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
953         each type.
954         (ATOMIC): On power8, add QImode, HImode modes.
955         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
956         modes that promote to SImode.
957         (load_lockedti): Convert TImode arguments to PTImode, so that we
958         get a guaranteed even/odd register pair.
959         (load_lockedpti): Likewise.
960         (store_conditionalti): Likewise.
961         (store_conditionalpti): Likewise.
962
963         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
964         atomic load/store instructions.
965         (HSI): Likewise.
966
967 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
968
969         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
970         loads.
971         (insn_count): New attribute, with most cases extracted from...
972         (length): ...here.  Redefine most cases in terms of insn_count.
973         (single_insn): Delete.
974         (can_delay): Use insn_count to check for single instructions.
975         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
976         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
977         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
978         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
979         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
980         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
981         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
982         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
983         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
984         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
985         rather than "length".
986         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
987         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
988         Use "insn_count" rather than "length".
989         * config/mips/mips-dsp.md
990         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
991         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
992         length attributes.
993
994 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
995
996         PR tree-optimization/57361
997         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
998
999 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
1000
1001         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1002         to split.
1003         (aarch64_simd_combine<mode>): New instruction expansion.
1004         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1005         function prototype.
1006         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1007         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1008
1009 2013-06-12  Jan Hubicka  <jh@suse.cz>
1010
1011         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1012         decl has when in streaming stage.
1013         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1014         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1015
1016 2013-06-12  Roland Stigge <stigge@antcom.de>
1017
1018         PR target/57578
1019         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1020
1021 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1022
1023         PR tree-optimization/57537
1024         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1025         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1026
1027 2013-06-12  Richard Biener  <rguenther@suse.de>
1028
1029         * data-streamer.h (streamer_write_char_stream): CSE
1030         obs->current_pointer.
1031         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1032         streamer_write_char_stream manually and optimize the resulting loop.
1033         (streamer_write_hwi_stream): Likewise.
1034
1035 2013-06-12  Jan Hubicka  <jh@suse.cz>
1036
1037         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1038         * cgraph.h (varpool_create_empty_node): Declare.
1039         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1040         duplicated nodes.
1041         * symtab.c (symtab_unregister_node): Be lax about missin entries
1042         in node hash.
1043         (symtab_get_node): Update comment.
1044         * varpool.c (varpool_create_empty_node): Break out from ...
1045         (varpool_node_for_decl): ... here.
1046         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1047
1048 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1049
1050         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1051         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1052         part.  Use straight-line flow at the end.
1053         <COMPONENT_REF>: Remove superfluous else.
1054         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1055
1056 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1057
1058         PR target/56564
1059         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1060         target hook even for !TREE_PUBLIC decls.  If no resolution info
1061         is available, return false for common and external decls.
1062
1063 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1064
1065         * config/rl78/constraints.md (U): New constraint.
1066         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1067         valloc attribute.
1068
1069 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1070
1071         PR target/57589
1072         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1073         to allow returning address to AT_PLATFORM name.
1074
1075 2013-06-11  Jan Hubicka  <jh@suse.cz>
1076
1077         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1078         * cgraph.h (symtab_node_base): Add weakref flag.
1079         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1080         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1081         (output_weakrefs): Use weakref flag.
1082         * fold-const.c (simple_operand_p): Handle WEAK.
1083         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1084         * ipa.c (varpool_externally_visible_p): Drop weakref.
1085         (function_and_variable_visibility): Update comment; fix weakref
1086         sanity checks; do not clear DECL_WEAK on them.
1087         * lto-cgraph.c (lto_output_node): update.
1088         (lto_output_varpool_node): Update.
1089         (input_overwrite_node): Update.
1090         (input_node): Update.
1091         (input_varpool_node): Update.
1092         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1093         (lto_symtab_merge_symbols): Add sanity check.
1094         (lto_symtab_prevailing_decl): Do not special case weakrefs.
1095         * passes.c (rest_of_decl_compilation): Set static flag, too.
1096         * symtab.c (dump_symtab_base): Dump weakref.
1097         (verify_symtab_base): Sanity check weakrefs.
1098         (symtab_make_decl_local): Remove duplicated code.
1099         (symtab_alias_ultimate_target): Simplify.
1100         * varpool.c (varpool_create_variable_alias): Set weakref flag.
1101
1102 2013-06-11  DJ Delorie  <dj@redhat.com>
1103
1104         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1105         (rl78_unwind_word_mode): New.
1106
1107 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1108
1109         * final.c (debug_prefix_maps): Make static.
1110
1111 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1112
1113         * function.c (initial_trampoline): Remove stray copy.
1114
1115 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
1116
1117         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1118
1119 2013-06-11  Martin Jambor  <mjambor@suse.cz>
1120
1121         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1122         within bounds at the beginning of the function.
1123
1124 2013-06-11  Alan Modra  <amodra@gmail.com>
1125
1126         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
1127         reporting.
1128         (get_named_section): Don't NULL !DECL_P decl.
1129
1130 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
1131
1132         * doc/invoke.texi (core-avx2): Document.
1133         (slm): Likewise.
1134         (atom): Updated with MOVBE.
1135
1136 2013-06-11  Richard Biener  <rguenther@suse.de>
1137
1138         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1139
1140 2013-06-11  Anton Blanchard  <anton@samba.org>
1141
1142         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1143         correct shift value in little-endian mode.
1144
1145 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
1146
1147         PR target/56564
1148         * varasm.c (get_variable_align): Move #endif to the right place.
1149
1150 2013-06-10  Cary Coutant  <ccoutant@google.com>
1151
1152         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1153         for hash so that hash table traversal order is deterministic.
1154
1155 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1156             Pat Haugen <pthaugen@us.ibm.com>
1157             Peter Bergner <bergner@vnet.ibm.com>
1158
1159         * config/rs6000/vector.md (GPR move splitter): Do not split moves
1160         of vectors in GPRS if they are direct moves or quad word load or
1161         store moves.
1162
1163         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1164         declaration.
1165         (direct_move_p): Likewise.
1166         (quad_load_store_p): Likewise.
1167
1168         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1169         classes into bins based on the physical register type.
1170         (reg_class_to_reg_type): Likewise.
1171         (IS_STD_REG_TYPE): Likewise.
1172         (IS_FP_VECT_REG_TYPE): Likewise.
1173         (reload_fpr_gpr): Arrays to determine what insn to use if we can
1174         use direct move instructions.
1175         (reload_gpr_vsx): Likewise.
1176         (reload_vsx_gpr): Likewise.
1177         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1178         information that is a simplification of register classes.  Also
1179         precalculate direct move reload helpers.
1180         (direct_move_p): New function to return true if the operation can
1181         be done as a direct move instruciton.
1182         (quad_load_store_p): New function to return true if the operation
1183         is a quad memory operation.
1184         (rs6000_legitimize_address): If quad memory, only allow register
1185         indirect for TImode addresses.
1186         (rs6000_legitimate_address_p): Likewise.
1187         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1188         (rs6000_reload_register_type): Likewise.
1189         (register_to_reg_type): Return register type.
1190         (rs6000_secondary_reload_simple_move): New helper function for
1191         secondary reload and secondary memory needed to identify anything
1192         that is a simple move, and does not need reloading.
1193         (rs6000_secondary_reload_direct_move): New helper function for
1194         secondary reload to identify cases that can be done with several
1195         instructions via the direct move instructions.
1196         (rs6000_secondary_reload_move): New helper function for secondary
1197         reload to identify moves between register types that can be done.
1198         (rs6000_secondary_reload): Add support for quad memory operations
1199         and for direct move.
1200         (rs6000_secondary_memory_needed): Likewise.
1201         (rs6000_debug_secondary_memory_needed): Change argument names.
1202         (rs6000_output_move_128bit): New function to return the move to
1203         use for 128-bit moves, including knowing about the various
1204         limitations of quad memory operations.
1205
1206         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1207         memory operations.  call rs6000_output_move_128bit for the actual
1208         instruciton(s) to generate.
1209         (vsx_movti_64bit): Likewise.
1210
1211         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1212         (UNSPEC_P8V_MTVSRWZ): Likewise.
1213         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1214         (UNSPEC_P8V_MTVSRD): Likewise.
1215         (UNSPEC_P8V_XXPERMDI): Likewise.
1216         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1217         (UNSPEC_FUSION_GPR): Likewise.
1218         (FMOVE128_GPR): New iterator for direct move.
1219         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1220         (f32_sv): Likewise.
1221         (f32_dm): Likewise.
1222         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1223         loads and direct move instructions.
1224         (zero_extendsidi2_lfiwzx): Likewise.
1225         (extendsidi2_lfiwax): Likewise.
1226         (extendsidi2_nocell): Likewise.
1227         (floatsi<mode>2_lfiwax): Likewise.
1228         (lfiwax): Likewise.
1229         (floatunssi<mode>2_lfiwzx): Likewise.
1230         (lfiwzx): Likewise.
1231         (fix_trunc<mode>_stfiwx): Likewise.
1232         (fixuns_trunc<mode>_stfiwx): Likewise.
1233         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1234         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1235         (parity<mode>2_cmpb): Set length/type attr.
1236         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1237         for 'mr.' to fast_compare.
1238         (bpermd_<mode>): Change type attr to popcnt.
1239         (p8_fmrgow_<mode>): New insns for power8 direct move support.
1240         (p8_mtvsrwz_1): Likewise.
1241         (p8_mtvsrwz_2): Likewise.
1242         (reload_fpr_from_gpr<mode>): Likewise.
1243         (p8_mtvsrd_1): Likewise.
1244         (p8_mtvsrd_2): Likewise.
1245         (p8_xxpermdi_<mode>): Likewise.
1246         (reload_vsx_from_gpr<mode>): Likewise.
1247         (reload_vsx_from_gprsf): Likewise.
1248         (p8_mfvsrd_3_<mode>): LIkewise.
1249         (reload_gpr_from_vsx<mode>): Likewise.
1250         (reload_gpr_from_vsxsf): Likewise.
1251         (p8_mfvsrd_4_disf): Likewise.
1252         (multi-word GPR splits): Do not split direct moves or quad memory
1253         operations.
1254
1255 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
1256
1257         * tree-into-ssa.c (interesting_blocks): Make static.
1258
1259 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
1260
1261         PR target/56564
1262         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1263         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1264         Use DATA_ABI_ALIGNMENT for that case instead if defined.
1265         (get_variable_align): New function.
1266         (get_variable_section, emit_bss, emit_common,
1267         assemble_variable_contents, place_block_symbol): Use
1268         get_variable_align instead of DECL_ALIGN.
1269         (assemble_noswitch_variable): Add align argument, use it
1270         instead of DECL_ALIGN.
1271         (assemble_variable): Adjust caller.  Use get_variable_align
1272         instead of DECL_ALIGN.
1273         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1274         caller.
1275         (DATA_ABI_ALIGNMENT): Define.
1276         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1277         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
1278         opt is false, only return the psABI mandated alignment increase.
1279         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1280         (DATA_ABI_ALIGNMENT): ... this.
1281         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1282         (DATA_ABI_ALIGNMENT): ... this.
1283         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1284         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1285         (DATA_ABI_ALIGNMENT): ... this.
1286         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1287         * doc/tm.texi: Regenerated.
1288
1289 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
1290
1291         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1292         cmp_code to construct REG_EQUAL note.
1293
1294 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
1295
1296         PR target/57568
1297         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1298         that operands[2] doesn't overlap with operands[0].
1299
1300 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
1301             Jan Hubicka  <jh@suse.cz>
1302
1303         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1304         hack to mark symbols as used.
1305
1306 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
1307
1308         PR rtl-optimization/57559
1309         * lra-constraints.c (process_alt_operands): Don't discourage
1310         memory with known offset for offsetable memory constraint.
1311         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1312
1313 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
1314
1315         * varasm.c (struct oc_local_state): Reorder fields.
1316         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1317         and adjust accordingly.
1318         (output_constructor): Reorder initialization code and adjust call to
1319         output_constructor_bitfield.
1320
1321 2013-06-07  Jan Hubicka  <jh@suse.cz>
1322
1323         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1324
1325 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
1326
1327         * tree-object-size.c (unknown): Make const.
1328
1329 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1330
1331         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1332         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1333         for last alternative in the cpu_facility attribute.
1334
1335 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1336
1337         PR target/56315
1338         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1339         (xordi3): Change operand 2 constraint to arm_xordi_operand.
1340         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1341         * config/arm/constraints.md (Dg): New constraint.
1342         * config/arm/neon.md (xordi3_neon): Remove.
1343         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1344         * config/arm/predicates.md (arm_xordi_operand): New predicate.
1345
1346 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1347
1348         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1349         Clean up alternatives.
1350
1351 2013-06-07  Alan Modra  <amodra@gmail.com>
1352
1353         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1354         va_list_gpr_size.
1355
1356 2013-06-07  Alan Modra  <amodra@gmail.com>
1357
1358         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1359
1360 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1361
1362         * config/arm/constraints.md (Df): New constraint.
1363         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1364         Correct length attribute for last two alternatives.
1365
1366 2013-06-07  Alan Modra  <amodra@gmail.com>
1367
1368         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1369         override user -mfp-in-toc.
1370         (offsettable_ok_by_alignment): Consider just the current access
1371         rather than the whole object, unless BLKmode.  Handle
1372         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1373         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1374         for -mcmodel=medium.
1375         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1376         override user -mfp-in-toc or -msum-in-toc.  Default to
1377         -mno-fp-in-toc for -mcmodel=medium.
1378
1379 2013-06-06  DJ Delorie  <dj@redhat.com>
1380
1381         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1382         TARGET_VALID_POINTER_MODE.
1383
1384 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1385             Pat Haugen <pthaugen@us.ibm.com>
1386             Peter Bergner <bergner@vnet.ibm.com>
1387
1388         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1389         Document new power8 builtins.
1390
1391         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1392         condition code register, to allow 128-bit logical operations to be
1393         done in the VSX or GPR registers.
1394         (nor<mode>3): Use the canonical form for nor.
1395         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1396         vclz*, and vpopcnt* vector instructions.
1397         (nand<mode>3): Likewise.
1398         (orc<mode>3): Likewise.
1399         (clz<mode>2): LIkewise.
1400         (popcount<mode>2): Likewise.
1401
1402         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1403         that only the GPRs are recognized.
1404
1405         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1406         support for new power8 builtins.
1407
1408         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1409         builtin functions.
1410         (xscvdpspn): Likewise.
1411         (vclz): Likewise.
1412         (vclzb): Likewise.
1413         (vclzh): Likewise.
1414         (vclzw): Likewise.
1415         (vclzd): Likewise.
1416         (vpopcnt): Likewise.
1417         (vpopcntb): Likewise.
1418         (vpopcnth): Likewise.
1419         (vpopcntw): Likewise.
1420         (vpopcntd): Likewise.
1421         (vgbbd): Likewise.
1422         (vmrgew): Likewise.
1423         (vmrgow): Likewise.
1424         (eqv): Likewise.
1425         (eqv_v16qi3): Likewise.
1426         (eqv_v8hi3): Likewise.
1427         (eqv_v4si3): Likewise.
1428         (eqv_v2di3): Likewise.
1429         (eqv_v4sf3): Likewise.
1430         (eqv_v2df3): Likewise.
1431         (nand): Likewise.
1432         (nand_v16qi3): Likewise.
1433         (nand_v8hi3): Likewise.
1434         (nand_v4si3): Likewise.
1435         (nand_v2di3): Likewise.
1436         (nand_v4sf3): Likewise.
1437         (nand_v2df3): Likewise.
1438         (orc): Likewise.
1439         (orc_v16qi3): Likewise.
1440         (orc_v8hi3): Likewise.
1441         (orc_v4si3): Likewise.
1442         (orc_v2di3): Likewise.
1443         (orc_v4sf3): Likewise.
1444         (orc_v2df3): Likewise.
1445
1446         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1447         allow power8 quad mode in 64-bit.
1448         (rs6000_builtin_vectorized_function): Add support to vectorize
1449         ISA 2.07 count leading zeros, population count builtins.
1450         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1451         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1452         (builtin_function_type): Add vgbbd builtin function which takes an
1453         unsigned argument.
1454         (altivec_expand_vec_perm_const): Add support for new power8 merge
1455         instructions.
1456
1457         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1458         that does not include TImdoe for use with 32-bit.
1459         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1460         instructions.
1461         (UNSPEC_VSX_CVDPSPN): Likewise.
1462         (vsx_xscvdpspn): Likewise.
1463         (vsx_xscvspdpn): Likewise.
1464         (vsx_xscvdpspn_scalar): Likewise.
1465         (vsx_xscvspdpn_directmove): Likewise.
1466         (vsx_and<mode>3): Split logical operations into 32-bit and
1467         64-bit. Add support to do logical operations on TImode as well as
1468         VSX vector types.  Allow logical operations to be done in either
1469         VSX registers or in general purpose registers in 64-bit mode.  Add
1470         splitters if GPRs were used. For AND, add clobber of CCmode to
1471         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
1472         encoding.
1473         (vsx_and<mode>3_32bit): Likewise.
1474         (vsx_and<mode>3_64bit): Likewise.
1475         (vsx_ior<mode>3): Likewise.
1476         (vsx_ior<mode>3_32bit): Likewise.
1477         (vsx_ior<mode>3_64bit): Likewise.
1478         (vsx_xor<mode>3): Likewise.
1479         (vsx_xor<mode>3_32bit): Likewise.
1480         (vsx_xor<mode>3_64bit): Likewise.
1481         (vsx_one_cmpl<mode>2): Likewise.
1482         (vsx_one_cmpl<mode>2_32bit): Likewise.
1483         (vsx_one_cmpl<mode>2_64bit): Likewise.
1484         (vsx_nor<mode>3): Likewise.
1485         (vsx_nor<mode>3_32bit): Likewise.
1486         (vsx_nor<mode>3_64bit): Likewise.
1487         (vsx_andc<mode>3): Likewise.
1488         (vsx_andc<mode>3_32bit): Likewise.
1489         (vsx_andc<mode>3_64bit): Likewise.
1490         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1491         and xxlorc instructions.
1492         (vsx_eqv<mode>3_64bit): Likewise.
1493         (vsx_nand<mode>3_32bit): Likewise.
1494         (vsx_nand<mode>3_64bit): Likewise.
1495         (vsx_orc<mode>3_32bit): Likewise.
1496         (vsx_orc<mode>3_64bit): Likewise.
1497
1498         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1499
1500         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1501         instruction.
1502         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1503         (p8_vmrgow): Likewise.
1504         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1505         GPRs to be split under VSX.
1506         (p8v_clz<mode>2): Add power8 count leading zero support.
1507         (p8v_popcount<mode>2): Add power8 population count support.
1508         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1509         support.
1510
1511         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1512         instruction.
1513
1514         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1515         builtin functions.
1516         (vec_nand): Likewise.
1517         (vec_vclz): Likewise.
1518         (vec_vclzb): Likewise.
1519         (vec_vclzd): Likewise.
1520         (vec_vclzh): Likewise.
1521         (vec_vclzw): Likewise.
1522         (vec_vgbbd): Likewise.
1523         (vec_vmrgew): Likewise.
1524         (vec_vmrgow): Likewise.
1525         (vec_vpopcnt): Likewise.
1526         (vec_vpopcntb): Likewise.
1527         (vec_vpopcntd): Likewise.
1528         (vec_vpopcnth): Likewise.
1529         (vec_vpopcntw): Likewise.
1530
1531 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1532
1533         PR rtl-optimization/57468
1534         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1535         spilled pseudos.
1536
1537 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1538
1539         PR rtl-optimization/57459
1540         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1541         type when setting live regs.
1542
1543 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1544
1545         * config/s390/s390.opt (mlra): New option.
1546         * config/s390/s390.c (s390_decompose_address): Check displacement
1547         for all registers for LRA.
1548         (s390_secondary_reload): Don't used secondary reloads for LRA.
1549         (s390_lra_p): New function.
1550         (TARGET_LRA_P): Define.
1551         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1552         of attribute cpu_facility to zarch for the last alternative.
1553         (*cmpmem_short): Ditto.
1554
1555 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
1556
1557         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1558         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
1559         (arm_expand_prologue): Likewise.
1560
1561 2013-06-06  Teresa Johnson  <tejohnson@google.com>
1562
1563         PR c++/53743
1564         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1565         as this is now done by redirect_edge_and_branch_force.
1566         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1567         barriers, and fix interaction with splitting.
1568         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1569         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1570         reflect changes made in the routine.
1571         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1572         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1573         since this is called in cfglayout mode, and replace partition fixup
1574         with assert as that is now done by force_nonfallthru_and_redirect.
1575         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1576         already be marked with region crossing note.
1577         (insert_section_boundary_note): Make non-static, gate on flag
1578         has_bb_partition, rewrite to also check for multiple partitions.
1579         (rest_of_handle_reorder_blocks): Remove call to
1580         insert_section_boundary_note, now done later during free_cfg.
1581         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1582         * bb-reorder.h (insert_section_boundary_note): Declare.
1583         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1584         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1585         invoke insert_section_boundary_note.
1586         (try_redirect_by_replacing_jump): Remove unnecessary
1587         check for region crossing note.
1588         (fixup_partition_crossing): New function.
1589         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1590         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1591         in non-cfglayout mode.
1592         (force_nonfallthru_and_redirect): Fixup partition boundaries,
1593         remove old code that tried to do this. Emit barrier correctly
1594         when we are in cfglayout mode.
1595         (last_bb_in_partition): New function.
1596         (rtl_split_edge): Correctly fixup partition boundaries.
1597         (commit_one_edge_insertion): Remove old code that tried to
1598         fixup region crossing edge since this is now handled in
1599         split_block, and set up insertion point correctly since
1600         block may now end in a jump.
1601         (verify_hot_cold_block_grouping): Guard against checking when not in
1602         linearized RTL mode.
1603         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1604         notes.
1605         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1606         rtl_verify_flow_info, so not called in cfglayout mode.
1607         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1608         (fixup_reorder_chain): Remove old code that attempted to fixup region
1609         crossing note as this is now handled in force_nonfallthru_and_redirect.
1610         (duplicate_insn_chain): Don't duplicate switch section notes.
1611         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1612         note.
1613         * basic-block.h (emit_barrier_after_bb): Declare.
1614
1615 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1616
1617         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1618         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1619         arm_usatsihi): Adjust alternatives for arm_restrict_it.
1620
1621 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1622
1623         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1624         where appropriate.
1625         * config/arm/ldmstm.md: Regenerate.
1626
1627 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1628
1629         * config/arm/sync.md (atomic_loaddi_1):
1630         Disable predication for arm_restrict_it.
1631         (arm_load_exclusive<mode>): Likewise.
1632         (arm_load_exclusivesi): Likewise.
1633         (arm_load_exclusivedi): Likewise.
1634         (arm_load_acquire_exclusive<mode>): Likewise.
1635         (arm_load_acquire_exclusivesi): Likewise.
1636         (arm_load_acquire_exclusivedi): Likewise.
1637         (arm_store_exclusive<mode>): Likewise.
1638         (arm_store_exclusive<mode>): Likewise.
1639         (arm_store_release_exclusivedi): Likewise.
1640         (arm_store_release_exclusive<mode>): Likewise.
1641
1642 2013-06-06  Richard Biener  <rguenther@suse.de>
1643
1644         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1645         after LTO_null.
1646         (lto_tag_is_tree_code_p): Adjust.
1647         (lto_tag_is_gimple_code_p): Likewise.
1648         (lto_gimple_code_to_tag): Likewise.
1649         (lto_tag_to_gimple_code): Likewise.
1650         (lto_tree_code_to_tag): Likewise.
1651         (lto_tag_to_tree_code): Likewise.
1652         * data-streamer.h (streamer_write_hwi_in_range): Use
1653         uhwi streaming to stream the normalized range.
1654         (streamer_read_hwi_in_range): Likewise.
1655
1656 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1657
1658         * config/arm/arm.md (enabled_for_depr_it): New attribute.
1659         (predicable_short_it): Likewise.
1660         (predicated): Likewise.
1661         (enabled): Handle above.
1662         (define_cond_exec): Set predicated attribute to yes.
1663
1664 2013-06-05  Mike Stump  <mikestump@comcast.net>
1665
1666         * gdbinit.in (__FUNCTION__): Add.
1667
1668 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
1669
1670         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1671         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1672
1673 2013-06-05  Jan Hubicka  <jh@suse.cz>
1674
1675         * varasm.c (mark_decl_referenced): Revert the removal until targets
1676         are fixed.
1677
1678 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
1679
1680         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1681         instead of mark_decl_referenced.
1682
1683 2013-06-05  Jan Hubicka  <jh@suse.cz>
1684
1685         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1686         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1687         and symtab_used_from_object_file_p.
1688         (cgraph_make_node_local_1): Clear forced_by_abi.
1689         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1690         * cgraph.h (symtab_node_base): Add forced_by_abi.
1691         (decide_is_variable_needed): Remove.
1692         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1693         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1694         (decide_is_symbol_needed): ... this one; handle symbols in general;
1695         always analyze virtuals; honnor forced_by_abi.
1696         (cgraph_finalize_function): Update.
1697         (varpool_finalize_decl): Update.
1698         (symbol_defined_and_needed): Remove.
1699         (analyze_functions): Update.
1700         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1701         output_refs, input_overwrite_node): Handle forced_by_abi.
1702         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1703         (address_taken_from_non_vtable_p): ... this one.
1704         (comdat_can_be_unshared_p_1): New function.
1705         (cgraph_comdat_can_be_unshared_p): Rename to ...
1706         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1707         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1708         (function_and_variable_visibility): Clear forced_by_abi as needed.
1709         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1710         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1711         * symtab.c (dump_symtab_base): Dump forced_by_abi.
1712         * varpool.c (decide_is_variable_needed): Remove.
1713
1714 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1715
1716         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1717         (arm_option_override): Override arm_restrict_it where appropriate.
1718         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1719         * config/arm/arm.opt (mrestrict-it): New command-line option.
1720         * doc/invoke.texi: Document -mrestrict-it.
1721
1722 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1723
1724         * tsan.c (tsan_atomic_table): Make const.
1725
1726 2013-06-05  Richard Biener  <rguenther@suse.de>
1727
1728         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1729         index associated with the tree we are supposed to replace.
1730         * tree-streamer-out.c (pack_ts_base_value_fields): Output
1731         TREE_ASM_WRITTEN as zero for everything but SSA names.
1732
1733 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1734
1735         * tree-ssa-structalias.c (call_stmt_vars): Make static.
1736
1737 2013-06-04  Jan Hubicka  <jh@suse.cz>
1738
1739         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1740         (input_node, input_varpool_node): Handle correctly external same
1741         body aliases.
1742         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1743         nodes at ltrans stage.
1744
1745 2013-06-04  Jan Hubicka  <jh@suse.cz>
1746
1747         * ipa-inline.c (update_caller_keys): Fix availability test.
1748         (update_callee_keys): Likewise.
1749         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1750         to follow ELF standard.
1751
1752 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
1753
1754         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1755         (mips64r5900el-*-elf*): New configurations.
1756         * config/mips/mips-cpus.def (r5900): New processor.
1757         * config/mips/mips-tables.opt: Regenerate.
1758         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1759         (mips_issue_rate): Handle PROCESSOR_R5900.
1760         (mips_reorg_process_insns): Force reorder mode for the R5900.
1761         * config/mips/mips.h (TARGET_MIPS5900): Define.
1762         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1763         TARGET_MIPS5900.
1764         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1765         TARGET_MIPS5900.
1766         * config/mips/mips.md (processor): Add r5900.
1767         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1768
1769 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1770
1771         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1772         into function to generate MOVI instruction.
1773         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1774         (aarch64_preferred_simd_mode): Turn into wrapper.
1775         (aarch64_output_scalar_simd_mov_immediate): New function.
1776         * config/aarch64/aarch64-protos.h: Add prototype for above.
1777
1778 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1779
1780         * config/aarch64/aarch64.c (simd_immediate_info): Remove
1781         element_char member.
1782         (sizetochar): Return signed char.
1783         (aarch64_simd_valid_immediate): Remove elchar and other
1784         unnecessary variables.
1785         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1786         Calculate element_char as required.
1787         * config/aarch64/aarch64-protos.h: Update and move prototype
1788         for aarch64_output_simd_mov_immediate.
1789         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1790         Update arguments.
1791
1792 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1793
1794         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1795         information completed by aarch64_simd_valid_immediate.
1796         (aarch64_legitimate_constant_p): Update arguments.
1797         (aarch64_simd_valid_immediate): Work with struct rather than many
1798         pointers.
1799         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1800         (aarch64_simd_make_constant): Update arguments.
1801         (aarch64_output_simd_mov_immediate): Work with struct rather than
1802         many pointers.  Output immediate directly rather than as operand.
1803         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1804         Update prototype.
1805         * config/aarch64/constraints.md (Dn): Update arguments.
1806
1807 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1808
1809         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1810         longer static.
1811         (aarch64_simd_immediate_valid_for_move): Remove.
1812         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1813         (aarch64_simd_make_constant): Update call.
1814         (aarch64_output_simd_mov_immediate): Update call.
1815         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1816         Add prototype.
1817         * config/aarch64/constraints.md (Dn): Update call.
1818
1819 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1820
1821         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1822         return type to bool for prototype.
1823         (aarch64_legitimate_constant_p): Check for true instead of not -1.
1824         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1825         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1826
1827 2013-06-04  Catherine Moore  <clm@codesourcery.com>
1828
1829         * config/mips/mips.opt (meva): New.
1830         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1831         (ASM_SPEC): Handle -meva.
1832         * doc/invoke.texi (meva):  Document.
1833
1834 2013-06-04  Alan Modra  <amodra@gmail.com>
1835
1836         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1837         constant output.
1838
1839 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1840
1841         * rtl.def: Add extra fourth optional field to define_cond_exec.
1842         * gensupport.c (process_one_cond_exec): Process attributes from
1843         define_cond_exec.
1844         * doc/md.texi: Document fourth field in define_cond_exec.
1845
1846 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
1847
1848         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1849         out the processing order as in store_bit_field_1.
1850
1851 2013-06-04  Jan Hubicka  <jh@suse.cz>
1852
1853         PR middle-end/57500
1854         * cgraphunit.c (cgraph_process_same_body_aliases): Create
1855         non-VAR_DECL node if it does not exist yet.
1856
1857 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
1858
1859         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1860         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1861         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1862         target_cpu_default setting.
1863
1864 2013-06-03  Teresa Johnson  <tejohnson@google.com>
1865
1866         * dumpfile.c (opt_info_switch_p): Change -fopt-info
1867         default to -fopt-info=optimized instead of all.
1868         * doc/invoke.texi: Ditto.
1869         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1870         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1871         (execute_vect_slp): Emit BB vectorization success under
1872         MSG_OPTIMIZED_LOCATIONS.
1873         * tree-vect-slp.c (vect_slp_transform_bb): Change
1874         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1875         * tree-vect-loop.c (vect_transform_loop): Ditto.
1876
1877 2013-06-03  Jason Merrill  <jason@redhat.com>
1878
1879         PR c++/57415
1880         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1881         Use TARGET_EXPR for C++.
1882
1883 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
1884
1885         PR rtl-optimization/57268
1886         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1887         if DEBUG_INSN_P (insn).
1888
1889         Reapply
1890         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1891
1892         PR rtl-optimization/57268
1893         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1894         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1895
1896 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1897
1898         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1899         (ix86_avoid_lea_for_addr): Likewise.
1900         (exact_dependency_1): Likewise.
1901         (ix86_adjust_cost): Likewise.
1902         (swap_top_of_ready_list): Fix formatting and !reload_completed check
1903         removed.
1904         (do_reorder_for_imul): Fix typo, formatting and
1905         !reload_completed check removed.
1906         (ix86_sched_reorder): Fix typo and formatting.
1907         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1908         list.
1909
1910 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
1911
1912         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1913
1914 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1915
1916         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1917         <STRING_CST>: Likewise.
1918         <VECTOR_CST>: Likewise.
1919
1920 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
1921             Mikael Morin  <mikael@gcc.gnu.org>
1922
1923         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1924         * config.in: Regenerated.
1925         * configure: Regenerated.
1926
1927 2013-06-01  Jan Hubicka  <jh@suse.cz>
1928
1929         PR middle-end/57366
1930         * cgraphunit.c (compile): When weakref is not supported,
1931         set up transparent aliases before final output pass.
1932         * varasm.c (assemble_alias): Do not try to do it here.
1933
1934 2013-06-01  Jan Hubicka  <jh@suse.cz>
1935
1936         PR middle-end/57467
1937         * passes.c (for_per_function): Skip unanalyzed functions.
1938
1939 2013-06-01  Jan Hubicka  <jh@suse.cz>
1940
1941         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1942         (lto_symtab_merge_symbols_1): ... this one.
1943         (lto_symtab_merge_cgraph_nodes): Rename to ...
1944         (lto_symtab_merge_symbols): ... this one; simplify.
1945         * cgraph.c (same_body_aliases_done): Rename to ...
1946         (cpp_implicit_aliases_done): ... this one.
1947         (cgraph_create_function_alias): Update.
1948         (cgraph_same_body_alias): Update.
1949         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
1950         (verify_edge_corresponds_to_fndecl): Simplify.
1951         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
1952         (cgraph_node): Remove same_body_alias.
1953         (varpool_node): Remove alias_of and extra_name_alias.
1954         (same_body_aliases_done): Rename to ..
1955         (cpp_implicit_aliases_done): ... this one.
1956         (symtab_alias_ultimate_target): Add default parameter.
1957         (symtab_resolve_alias): New function.
1958         (fixup_same_cpp_alias_visibility): Declare.
1959         (cgraph_function_node): Add default parameter.
1960         (cgraph_node_asm_name): Likewise.
1961         (cgraph_function_or_thunk_node): Add default parameter; do
1962         not ICE when it is NULL.
1963         (varpool_variable_node): Likewise.
1964         * tree-emutls.c (create_emultls_var): Update.
1965         (ipa_lower_emutls): Update.
1966         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1967         (cgraph_reset_node): Reset alias info.
1968         (cgraph_finalize_function): Update.
1969         (fixup_same_cpp_alias_visibility): Move to symtab.c.
1970         (analyze_function): Simplify.
1971         (cgraph_process_same_body_aliases): Simplify.
1972         (analyze_functions): Fixup same body aliases.
1973         (handle_alias_pairs): Simplify.
1974         (assemble_thunk): Update.
1975         (assemble_thunks_and_aliases): Update.
1976         (output_weakrefs): Rewrite.
1977         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1978         (lto_output_varpool_node): Likewise.
1979         (compute_ltrans_boundary): Remve assert.
1980         (get_alias_symbol): New functoin.
1981         (input_node): Rewrite alias handling.
1982         (input_varpool_node): Likewise.
1983         * ipa-pure-const.c (propagate_pure_const): Fix formating.
1984         * ipa.c (process_references): Handle weakrefs correctly.
1985         (symtab_remove_unreachable_nodes): Likewise.
1986         * trans-mem.c (get_cg_data): Update.
1987         (ipa_tm_create_version_alias): Update.
1988         (ipa_tm_execute): Update.
1989         * symtab.c (dump_symtab_base): Dump aliases.
1990         (verify_symtab_base): Verify aliases.
1991         (symtab_node_availability): New function.
1992         (symtab_alias_ultimate_target): Simplify.
1993         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1994         handle all the fixup cases.
1995         (symtab_resolve_alias): New function.
1996         * passes.c (ipa_write_summaries): Handle weakrefs.
1997         * varpool.c (varpool_analyze_node): Simplify.
1998         (assemble_aliases): Update.
1999         (varpool_create_variable_alias): Simplify.
2000         (varpool_extra_name_alias): Simplify.
2001         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2002         (lto_symtab_merge_symbols): ... this one.
2003
2004 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
2005
2006         Revert
2007         PR rtl-optimization/57268
2008         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2009         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2010
2011 2013-06-01  Tobias Burnus  <burnus@net-b.de>
2012
2013         Partially reverted:
2014         2013-05-31  Tobias Burnus  <burnus@net-b.de>
2015
2016         PR middle-end/57073
2017         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2018         further up.
2019
2020 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2021
2022         PR rtl-optimization/57268
2023         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2024         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2025
2026 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2027
2028         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2029         unordered comparison operators when -fno-trapping-math is in effect
2030         on the e500.
2031         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2032         and implement unordered comparison operators properly on the e500.
2033
2034 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2035
2036         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2037         for constant scalar integers.
2038         (simplify_relational_operation_1): Likewise.
2039
2040 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
2041
2042         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2043         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
2044         Fix comment.
2045
2046 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2047             Igor Zamyatin  <igor.zamyatin@intel.com>
2048
2049         Silvermont (SLM) architecture performance tuning.
2050         * config/i386/i386.h (enum ix86_tune_indices): Add
2051         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2052         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2053
2054         * config/i386/i386.c (initial_ix86_tune_features)
2055         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2056         (ix86_lea_outperforms): Handle Silvermont tuning.
2057         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2058         call.
2059         (ix86_use_lea_for_mov): Likewise.
2060         (ix86_avoid_lea_for_addr): Likewise.
2061         (ix86_lea_for_add_ok): Likewise.
2062         (exact_dependency_1): New function.
2063         (exact_store_load_dependency): Likewise.
2064         (ix86_adjust_cost): Handle Silvermont tuning.
2065         (do_reoder_for_imul): Likewise.
2066         (swap_top_of_ready_list): New function.
2067         (ix86_sched_reorder): Changed to handle Silvermont tuning.
2068
2069         * config/i386/i386.md (peepholes that split memory operand in fp
2070         converts): New.
2071
2072 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2073
2074         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2075         Remove un-necessary braces.
2076
2077 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2078
2079         * config/aarch64/aarch64.c (aarch64_classify_symbol):
2080         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2081
2082 2013-05-31  Tobias Burnus  <burnus@net-b.de>
2083
2084         PR middle-end/57073
2085         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2086
2087 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2088
2089         PR target/56315
2090         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2091         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2092         * config/arm/neon.md (iordi3_neon): Remove.
2093         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2094         * config/arm/predicates.md (imm_for_neon_logic_operand):
2095         Move to earlier in the file.
2096         (neon_logic_op2): Likewise.
2097         (arm_iordi_operand_neon): New predicate.
2098
2099 2013-05-31  Richard Biener  <rguenther@suse.de>
2100
2101         PR tree-optimization/57478
2102         PR tree-optimization/57453
2103         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2104         are life as well.
2105
2106 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2107
2108         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2109         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2110
2111 2013-05-30  Tobias Burnus  <burnus@net-b.de>
2112             Thomas Koenig  <tkoenig@gcc.gnu.org>
2113
2114         PR middle-end/57073
2115         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2116         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2117
2118 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
2119
2120         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2121
2122 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
2123
2124         * target.def (register_usage_leveling_p): New hook.
2125         * targhooks.c (default_register_usage_leveling_p): New.
2126         * targhooks.h (default_register_usage_leveling_p): New prototype.
2127         * lra-assigns.c (register_usage_leveling_p): Use the hook.
2128         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2129         * doc/tm.texi: Update.
2130         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2131
2132 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
2133
2134         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2135         (*insv_reg<mode>): New define_insn.
2136
2137 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
2138
2139         PR rtl-optimization/57439
2140         * postreload.c (move2add_valid_value_p): Check that we have
2141         a zero subreg_regno_offset when accessing the register in
2142         the requested mode.
2143
2144 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2145             Igor Zamyatin  <igor.zamyatin@intel.com>
2146
2147         Silvermont (SLM) architecture pipeline model, tuning and
2148         insn selection.
2149         * config.gcc: Add slm config options and target.
2150
2151         * config/i386/slm.md: New.
2152
2153         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2154
2155         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
2156         PROCESSOR_SLM.
2157         (ix86_target_macros_internal): Likewise.
2158
2159         * gcc/config/i386/i386.c (slm_cost): New cost.
2160         (m_SLM): New macro flag.
2161         (initial_ix86_tune_features): Set m_SLM.
2162         (x86_accumulate_outgoing_args): Likewise.
2163         (x86_arch_always_fancy_math_387): Likewise.
2164         (processor_target_table): Add slm cost.
2165         (cpu_names): Add slm cpu name.
2166         (x86_option_override_internal): Set SLM ISA.
2167         (ix86_issue_rate): New case PROCESSOR_SLM.
2168         (ia32_multipass_dfa_lookahead): Likewise.
2169         (fold_builtin_cpu): Add slm.
2170
2171         * config/i386/i386.h (TARGET_SLM): New target macro.
2172         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2173         (processor_type): Add PROCESSOR_SLM.
2174
2175         * config/i386/i386.md (cpu): Add new value "slm".
2176         (slm.md): Include slm.md.
2177
2178 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
2179             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2180
2181         * config/arm/arm-protos.h: Add and update function protos.
2182         * config/arm/arm.c (use_simple_return_p): New added.
2183         (thumb2_expand_return): Check simple_return flag.
2184         * config/arm/arm.md: Add simple_return and conditional simple_return.
2185         * config/arm/iterators.md: Add iterator for return and simple_return.
2186
2187 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2188
2189         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2190         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2191         (arm_emit_vfp_multi_reg_pop): Likewise.
2192         (thumb2_emit_ldrd_pop): Likewise.
2193         (arm_expand_epilogue): Add misc REG_CFA notes.
2194         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2195
2196 2013-05-29  Lawrence Crowl  <crowl@google.com>
2197
2198         * config/arm/t-arm: Update for below.
2199
2200         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2201         Change type to hash_table.  Update dependent calls and types.
2202
2203         * config/i386/t-cygming: Update for below.
2204
2205         * config/i386/t-interix: Update for below.
2206
2207         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2208         Change type to hash_table.  Update dependent calls and types.
2209         (i386_find_on_wrapper_list::wrappers): Likewise.
2210
2211         * config/ia64/t-ia64: Update for below.
2212
2213         * config/ia64/ia64.c (bundle_state_table):
2214         Change type to hash_table.  Update dependent calls and types.
2215
2216         * config/mips/mips.c (mips_reorg_process_insns::htab):
2217         Change type to hash_table.  Update dependent calls and types.
2218
2219         * config/sol2.c (solaris_comdat_htab):
2220         Change type to hash_table.  Update dependent calls and types.
2221
2222         * config/t-sol2: Update for above.
2223
2224 2013-05-29  Teresa Johnson  <tejohnson@google.com>
2225
2226         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2227         functions are not yet marked as defined.
2228
2229 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2230             Pat Haugen <pthaugen@us.ibm.com>
2231             Peter Bergner <bergner@vnet.ibm.com>
2232
2233         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2234         instructions.
2235         (VEC_A): Likewise.
2236         (VEC_C): Likewise.
2237         (vrotl<mode>3): Likewise.
2238         (vashl<mode>3): Likewise.
2239         (vlshr<mode>3): Likewise.
2240         (vashr<mode>3): Likewise.
2241
2242         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2243         support for power8 V2DI builtins.
2244
2245         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2246         power8 V2DI builtins.
2247         (vupkhsw): Likewise.
2248         (vupklsw): Likewise.
2249         (vaddudm): Likewise.
2250         (vminsd): Likewise.
2251         (vmaxsd): Likewise.
2252         (vminud): Likewise.
2253         (vmaxud): Likewise.
2254         (vpkudum): Likewise.
2255         (vpksdss): Likewise.
2256         (vpkudus): Likewise.
2257         (vpksdus): Likewise.
2258         (vrld): Likewise.
2259         (vsld): Likewise.
2260         (vsrd): Likewise.
2261         (vsrad): Likewise.
2262         (vsubudm): Likewise.
2263         (vcmpequd): Likewise.
2264         (vcmpgtsd): Likewise.
2265         (vcmpgtud): Likewise.
2266         (vcmpequd_p): Likewise.
2267         (vcmpgtsd_p): Likewise.
2268         (vcmpgtud_p): Likewise.
2269         (vupkhsw): Likewise.
2270         (vupklsw): Likewise.
2271         (vaddudm): Likewise.
2272         (vmaxsd): Likewise.
2273         (vmaxud): Likewise.
2274         (vminsd): Likewise.
2275         (vminud): Likewise.
2276         (vpksdss): Likewise.
2277         (vpksdus): Likewise.
2278         (vpkudum): Likewise.
2279         (vpkudus): Likewise.
2280         (vrld): Likewise.
2281         (vsld): Likewise.
2282         (vsrad): Likewise.
2283         (vsrd): Likewise.
2284         (vsubudm): Likewise.
2285
2286         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2287         support for power8 V2DI instructions.
2288
2289         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2290         power8 V2DI instructions.  Combine pack and unpack insns to use an
2291         iterator for each mode.  Check whether a particular mode supports
2292         Altivec instructions instead of just checking TARGET_ALTIVEC.
2293         (UNSPEC_VPKUWUM): Likewise.
2294         (UNSPEC_VPKSHSS): Likewise.
2295         (UNSPEC_VPKSWSS): Likewise.
2296         (UNSPEC_VPKUHUS): Likewise.
2297         (UNSPEC_VPKSHUS): Likewise.
2298         (UNSPEC_VPKUWUS): Likewise.
2299         (UNSPEC_VPKSWUS): Likewise.
2300         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2301         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2302         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2303         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2304         (UNSPEC_VUPKHSB): Likewise.
2305         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2306         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2307         (UNSPEC_VUPKHSH): Likewise.
2308         (UNSPEC_VUPKLSB): Likewise.
2309         (UNSPEC_VUPKLSH): Likewise.
2310         (VI2): Likewise.
2311         (VI_char): Likewise.
2312         (VI_scalar): Likewise.
2313         (VI_unit): Likewise.
2314         (VP): Likewise.
2315         (VP_small): Likewise.
2316         (VP_small_lc): Likewise.
2317         (VU_char): Likewise.
2318         (add<mode>3): Likewise.
2319         (altivec_vaddcuw): Likewise.
2320         (altivec_vaddu<VI_char>s): Likewise.
2321         (altivec_vadds<VI_char>s): Likewise.
2322         (sub<mode>3): Likewise.
2323         (altivec_vsubcuw): Likewise.
2324         (altivec_vsubu<VI_char>s): Likewise.
2325         (altivec_vsubs<VI_char>s): Likewise.
2326         (altivec_vavgs<VI_char>): Likewise.
2327         (altivec_vcmpbfp): Likewise.
2328         (altivec_eq<mode>): Likewise.
2329         (altivec_gt<mode>): Likewise.
2330         (altivec_gtu<mode>): Likewise.
2331         (umax<mode>3): Likewise.
2332         (smax<mode>3): Likewise.
2333         (umin<mode>3): Likewise.
2334         (smin<mode>3): Likewise.
2335         (altivec_vpkuhum): Likewise.
2336         (altivec_vpkuwum): Likewise.
2337         (altivec_vpkshss): Likewise.
2338         (altivec_vpkswss): Likewise.
2339         (altivec_vpkuhus): Likewise.
2340         (altivec_vpkshus): Likewise.
2341         (altivec_vpkuwus): Likewise.
2342         (altivec_vpkswus): Likewise.
2343         (altivec_vpks<VI_char>ss): Likewise.
2344         (altivec_vpks<VI_char>us): Likewise.
2345         (altivec_vpku<VI_char>us): Likewise.
2346         (altivec_vpku<VI_char>um): Likewise.
2347         (altivec_vrl<VI_char>): Likewise.
2348         (altivec_vsl<VI_char>): Likewise.
2349         (altivec_vsr<VI_char>): Likewise.
2350         (altivec_vsra<VI_char>): Likewise.
2351         (altivec_vsldoi_<mode>): Likewise.
2352         (altivec_vupkhsb): Likewise.
2353         (altivec_vupkhs<VU_char>): Likewise.
2354         (altivec_vupkls<VU_char>): Likewise.
2355         (altivec_vupkhsh): Likewise.
2356         (altivec_vupklsb): Likewise.
2357         (altivec_vupklsh): Likewise.
2358         (altivec_vcmpequ<VI_char>_p): Likewise.
2359         (altivec_vcmpgts<VI_char>_p): Likewise.
2360         (altivec_vcmpgtu<VI_char>_p): Likewise.
2361         (abs<mode>2): Likewise.
2362         (vec_unpacks_hi_v16qi): Likewise.
2363         (vec_unpacks_hi_v8hi): Likewise.
2364         (vec_unpacks_lo_v16qi): Likewise.
2365         (vec_unpacks_hi_<VP_small_lc>): Likewise.
2366         (vec_unpacks_lo_v8hi): Likewise.
2367         (vec_unpacks_lo_<VP_small_lc>): Likewise.
2368         (vec_pack_trunc_v8h): Likewise.
2369         (vec_pack_trunc_v4si): Likewise.
2370         (vec_pack_trunc_<mode>): Likewise.
2371
2372         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2373         V2DI builtins.
2374         (vec_vmaxsd): Likewise.
2375         (vec_vmaxud): Likewise.
2376         (vec_vminsd): Likewise.
2377         (vec_vminud): Likewise.
2378         (vec_vpksdss): Likewise.
2379         (vec_vpksdus): Likewise.
2380         (vec_vpkudum): Likewise.
2381         (vec_vpkudus): Likewise.
2382         (vec_vrld): Likewise.
2383         (vec_vsld): Likewise.
2384         (vec_vsrad): Likewise.
2385         (vec_vsrd): Likewise.
2386         (vec_vsubudm): Likewise.
2387         (vec_vupkhsw): Likewise.
2388         (vec_vupklsw): Likewise.
2389
2390 2013-05-29  Jan Hubicka  <jh@suse.cz>
2391
2392         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2393         flags; reorder rest of fields in more consistent way.
2394         (varpool_node): Remove analyzed, finalized and alias.
2395         (cgraph_ndoe): Likewise.
2396         (symtab_alias_ultimate_target): New function.
2397         (cgraph_function_node): Move offline.
2398         (cgraph_reset_node): Declare.
2399         (cgraph_comdat_can_be_unshared_p): Remove.
2400         (varpool_remove_initializer): Declare.
2401         (varpool_first_defined_variable, varpool_next_defined_variable
2402         cgraph_first_defined_function, cgraph_next_defined_function): Update.
2403         (cgraph_function_with_gimple_body_p): Update.
2404         (varpool_all_refs_explicit_p): Update.
2405         (symtab_alias_target): New function.
2406         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2407         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
2408         (cgraph_function_or_thunk_node): Simplify using
2409         symtab_alias_ultimate_target.
2410         (varpool_variable_node): Likewise.
2411         * cgraph.c (cgraph_create_function_alias): Update.
2412         (cgraph_add_thunk): Update.
2413         (cgraph_remove_node): Update.
2414         (dump_cgraph_node): Do not dump removed flags.
2415         (cgraph_function_body_availability): Update.
2416         (cgraph_propagate_frequency): Update.
2417         (verify_cgraph_node): Check sanity of local flag.
2418         (cgraph_function_node): Move here from cgraph.h; revamp for
2419         cgraph_function_or_thunk_node.
2420         * lto-symtab.c (lto_varpool_replace_node): Update.
2421         (lto_symtab_resolve_can_prevail_p): Update.
2422         (lto_symtab_merge_cgraph_nodes): Update.
2423         * ipa-cp.c (determine_versionability, initialize_node_lattices,
2424         propagate_constants_accross_call, devirtualization_time_bonus,
2425         ipcp_propagate_stage): Update.
2426         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
2427         * ipa-inline-transform.c (clone_inlined_nodes,
2428         preserve_function_body_p): Update.
2429         * ipa-reference.c (propagate): Update.
2430         (write_node_summary_p): Update.
2431         * toplev.c (wrapup_global_declaration_2): Update.
2432         * cgraphunit.c (cgraph_analyze_function): Rename to ...
2433         (analyze_function) ... this one.
2434         (cgraph_process_new_functions): Update.
2435         (cgraph_reset_node): Export.
2436         (cgraph_finalize_function): Update.
2437         (cgraph_add_new_function): Update.
2438         (process_function_and_variable_attributes): Update.
2439         (varpool_finalize_decl): Update.
2440         (symbol_finalized): Remove.
2441         (symbol_finalized_and_needed): Rename to ...
2442         (symbol_defined_and_needed): ... update.
2443         (cgraph_analyze_functions): Update.
2444         (handle_alias_pairs): Update.
2445         (mark_functions_to_output): Update.
2446         (assemble_thunk): Update.
2447         (output_in_order): Update.
2448         (output_weakrefs): Update.
2449         (finalize_compilation_unit): Update.
2450         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2451         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2452         input_node, input_varpool_node): Update.
2453         * dbxout.c (dbxout_expand_expr): Update.
2454         * cgraphclones.c (cgraph_clone_node): Update.
2455         (cgraph_copy_node_for_versioning): Update.
2456         (cgraph_materialize_clone): Update.
2457         (cgraph_materialize_all_clones): Update.
2458         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2459         propagate_pure_const, propagate_nothrow): Update.
2460         * lto-streamer-out.c (lto_output, write_symbol): Update.
2461         * ipa-utils.c (ipa_reverse_postorder): Update.
2462         * ipa-inline.c (can_inline_edge_p): Update.
2463         (update_caller_keys, ipa_inline): Update.
2464         * dwarf2out.c (reference_to_unused,
2465         premark_types_used_by_global_vars_helper): Update.
2466         * tree-eh.c (tree_could_trap_p): Update.
2467         * ipa-split.c (consider_split, execute_split_functions): Update.
2468         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
2469         has_addr_references_p): Update; move ahead in file for better
2470         readability.
2471         (process_references): Simplify.
2472         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2473         bodies are removed.
2474         (cgraph_comdat_can_be_unshared_p): Make static.
2475         (cgraph_externally_visible_p): Update.
2476         (varpool_externally_visible_p): Update.
2477         (function_and_variable_visibility): Update.
2478         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2479         ipa_tm_mark_force_output_node): Update.
2480         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2481         estimate_edge_devirt_benefit, inline_generate_summary,
2482         inline_write_summary): Update.
2483         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2484         * ipa-prop.c (ipa_compute_jump_functions): Update.
2485         (ipa_print_node_params, ipa_prop_read_section,
2486         ipa_update_after_lto_read, read_replacements_section): Update.
2487         * varasm.c (mark_decl_referenced): Update.
2488         (assemble_alias, dump_tm_clone_pairs): Update.
2489         * tree-inline.c (copy_bb): Update.
2490         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2491         Update.
2492         * symtab.c (dump_symtab_base): Print new flags.
2493         (verify_symtab_base): Verify new flags.
2494         (symtab_alias_ultimate_target): New function.
2495         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2496         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2497         Update.
2498         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2499         Update.
2500         * i386.c (ix86_get_function_versions_dispatcher,
2501         ix86_generate_version_dispatcher_body): Update.
2502         (fold_builtin_cpu): Use varpool_add_new_variable.
2503         * varpool.c (varpool_remove_initializer): Break out from ...
2504         (varpool_remove_node): ... this one.
2505         (dump_varpool_node, varpool_node_for_asm,
2506         cgraph_variable_initializer_availability, varpool_analyze_node,
2507         varpool_assemble_decl, varpool_remove_unreferenced_decls,
2508         varpool_finalize_named_section_flags, varpool_create_variable_alias):
2509         Update.
2510
2511 2013-05-29  Jan Hubicka  <jh@suse.cz>
2512
2513         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2514
2515 2013-05-29  Easwaran Raman  <eraman@google.com>
2516
2517         PR tree-optimization/57442
2518         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2519         when control exits the main loop.
2520
2521 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
2522
2523         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2524         and RX600.
2525         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
2526         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2527         * rx/t-rx: Add rx100 under multi library matches option for nofpu
2528         option.
2529
2530 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2531
2532         PR tree-optimization/57441
2533         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2534         Don't limit size of incr_vec to number of candidates.
2535
2536 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
2537
2538         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2539         and mips16 directories.
2540         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2541         (MULTILIB_DIRNAMES): Ditto.
2542         (MULTILIB_EXCEPTIONS): Add new exceptions.
2543         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2544         (MULTILIB_DIRNAMES): Ditto.
2545         (MULTILIB_EXCEPTIONS): Add new exceptions.
2546
2547 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2548             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2549
2550         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2551         SYMBOL_TINY_ABSOLUTE.
2552         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2553         SYMBOL_TINY_ABSOLUTE.
2554         (aarch64_expand_mov_immediate): Likewise.
2555         (aarch64_classify_symbol): Likewise.
2556         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2557         Permit SYMBOL_TINY_ABSOLUTE.
2558         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2559
2560 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2561             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2562
2563         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2564         Refactor if/switch.  Replace gcc_assert with if.
2565
2566 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2567
2568         * config/i386/i386.c (initial_ix86_tune_features): Enable
2569         FP Reassociation for AMD bdver1 and bdver2.
2570
2571 2013-05-29  Martin Jambor  <mjambor@suse.cz>
2572
2573         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2574         and IMAGPART_EXPR do not occur within other handled_components.
2575
2576 2013-05-29  Richard Biener  <rguenther@suse.de>
2577
2578         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2579         access on whether the use is in the BB we currently try to
2580         vectorize.
2581         (vect_bb_vectorization_profitable_p): Pass the BB we currently
2582         vectorize to vect_bb_slp_scalar_cost.
2583
2584 2013-05-29  Richard Biener  <rguenther@suse.de>
2585
2586         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2587         computing scalar cost offsetted by stmts that are kept live
2588         by scalar uses.
2589         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2590         for computation of scalar cost.
2591
2592 2013-05-28  Steve Ellcey  <sellcey@mips.com>
2593
2594         * config/mips/mips-cpus.def (mips32r2): Change processor type.
2595
2596 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2597
2598         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2599         array notation built-in reduction functions.
2600         * doc/passes.texi (Passes): Added documentation about changes done
2601         for Cilk Plus.
2602         * doc/invoke.texi (C Dialect Options): Added documentation about
2603         the -fcilkplus flag.
2604         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2605         (BUILTINS_DEF): Depend on cilkplus.def.
2606         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
2607         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2608         * cilkplus.def: New file.
2609
2610 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
2611
2612         PR rtl-optimization/57439
2613         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2614
2615 2013-05-28  Easwaran Raman  <eraman@google.com>
2616
2617         PR tree-optimization/57337
2618         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2619         (find_insert_point): Correctly identify the insertion point
2620         when two statements with the same UID is compared.
2621
2622 2013-05-28  Richard Biener  <rguenther@suse.de>
2623
2624         PR tree-optimization/56787
2625         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2626         from the list of data references.
2627         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2628         clobbers.
2629         (vect_analyze_loop_operations): Likewise.
2630         (vect_transform_loop): Remove clobbers.
2631
2632 2013-05-28  Martin Jambor  <mjambor@suse.cz>
2633
2634         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2635         and REALPART_EXPRs have scalar type.
2636
2637 2013-05-28  Richard Biener  <rguenther@suse.de>
2638
2639         PR tree-optimization/57411
2640         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2641         virtual operands.
2642         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2643         virtual operand propagation.
2644
2645 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2646
2647         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2648         destination register for bmasksi_vis.
2649         (vector_init_bshuffle): Likewise.
2650         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2651
2652 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2653
2654         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2655         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2656         mode if the instruction isn't available in the original mode.
2657         * config/sparc/sparc.opt (mfix-ut699): New option.
2658         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2659         (divdf3): Turn into expander.
2660         (divdf3_nofix): New insn.
2661         (divdf3_fix): Likewise.
2662         (divsf3): Disable if -mfix-ut699.
2663         (sqrtdf2): Turn into expander.
2664         (sqrtdf2_nofix): New insn.
2665         (sqrtdf2_fix): Likewise.
2666         (sqrtsf2): Disable if -mfix-ut699.
2667
2668 2013-05-27  Richard Biener  <rguenther@suse.de>
2669
2670         PR middle-end/57412
2671         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2672         block for the new loop.
2673
2674 2013-05-27  Richard Biener  <rguenther@suse.de>
2675
2676         PR tree-optimization/57343
2677         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2678         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2679         (number_of_iterations_cond): Do not build the folded tree.
2680
2681 2013-05-27  Richard Biener  <rguenther@suse.de>
2682
2683         Revert
2684         PR middle-end/57381
2685         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2686         OEP_CONSTANT_ADDRESS_OF retained.
2687
2688         PR tree-optimization/57417
2689         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2690         for unchanged base.
2691         (set_ssa_val_to): Compare addresses using
2692         get_addr_base_and_unit_offset.
2693
2694 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
2695
2696         PR rtl-optimization/56833
2697         * postreload.c (move2add_record_mode): New function.
2698         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2699         (move2add_use_add2_insn): Use move2add_record_sym_value.
2700         (move2add_use_add3_insn): Likewise.
2701         (reload_cse_move2add): Use move2add_valid_value_p and
2702         move2add_record_mode.  Invalidate call-clobbered and REG_INC
2703         affected regs by setting reg_mode to VOIDmode.
2704         (move2add_note_store): Don't pretend the inside of a SUBREG is
2705         the actual destination.  Invalidate single/leading registers by
2706         setting reg_mode to VOIDmode.
2707         Use move2add_record_sym_value, move2add_valid_value_p and
2708         move2add_record_mode.
2709
2710 2013-05-27  Richard Biener  <rguenther@suse.de>
2711
2712         PR tree-optimization/57396
2713         * tree-affine.c (double_int_constant_multiple_p): Properly
2714         return false for val == 0 and div != 0.
2715
2716 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2717
2718         * config/mips/mips.h: Use #elif in preprocessor conditions.
2719
2720 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2721
2722         PR target/53916
2723         * config/mips/constraints.md (kl): New constraint.
2724         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2725         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
2726         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
2727         from LO for MIPS16.
2728         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2729
2730 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2731
2732         PR target/55777
2733         * config/mips/mips.c (mips_can_inline_p): New function.
2734         (TARGET_CAN_INLINE_P): Define.
2735
2736 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2737
2738         * sched-int.h (ds_t, dw_t): Make unsigned int.
2739         Fix documentation that describes how all the ds_t bits are used.
2740         Reserve the last bit for delayed-branch scheduling.
2741         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2742         (BITS_PER_DEP_WEAK): Fix definition and documentation.
2743         (gen_dep_weak_1): Remove prototype.
2744         * sched-deps.c (get_dep_weak_1): Make static.
2745         * target.def (speculate_insn, needs_block_p, gen_spec_check,
2746         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2747         * doc/tm.texi: Regenerate.
2748         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2749
2750 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
2751
2752         PR debug/56950
2753         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2754
2755 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
2756             Sandra Loosemore  <sandra@codesourcery.com>
2757
2758         * config.gcc (powerpc-*): Allow native for with-cpu.
2759
2760 2013-05-24  Jeff Law  <law@redhat.com>
2761
2762         PR tree-optimization/57124
2763         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2764         conversion feeding a condition if the range has an overflow
2765         if -fstrict-overflow.  Add warnings for when we do make the
2766         transformation.
2767
2768 2013-05-24  Dehao Chen  <dehao@google.com>
2769
2770         * tree-cfg.c (locus_discrim_map): Fix the typo.
2771         (locus_discrim_hasher): Likewise.
2772         (locus_discrim_hasher::hash): Likewise.
2773         (locus_discrim_hasher::equal): Likewise.
2774
2775 2013-05-24  Martin Jambor  <mjambor@suse.cz>
2776
2777         PR tree-optimization/57294
2778         * cgraph.h (ipa_record_stmt_references): Declare.
2779         * cgraphbuild.c (ipa_record_stmt_references): New function.
2780         (build_cgraph_edges): Use ipa_record_stmt_references.
2781         (rebuild_cgraph_edges): Likewise.
2782         (cgraph_rebuild_references): Likewise.
2783         * ipa-prop.c (ipa_modify_call_arguments): Discard references
2784         associated with the old statement and build references from the
2785         newly built statements.
2786         * ipa-ref.c (ipa_remove_stmt_references): New function.
2787         * ipa-ref.h (ipa_remove_stmt_references): Declare.
2788
2789 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2790
2791         * lra-constraints.c (emit_spill_move): Use smaller mode for
2792         mem-mem moves.
2793         (check_and_process_move): Consider mem-reg moves for secondary
2794         too.
2795         (curr_insn_transform): Don't lose insns emitted before for
2796         secondary memory moves.
2797         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
2798         reg set up in the current insn.
2799
2800 2013-05-24  Dehao Chen  <dehao@google.com>
2801
2802         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2803         hash function.
2804         (locus_descrim_hasher::equal): Likewise.
2805         (build_gimple_cfg): New discriminator assignment algorithm.
2806         (make_edges): Likewise.
2807         (next_discriminator_for_locus): Likewise.
2808         (same_line_p): Likewise.
2809         (assign_discriminators): Likewise.
2810         (make_cond_expr_edges): Likewise.
2811         (make_gimple_switch_edges): Likewise.
2812         (make_goto_expr_edges): Likewise.
2813         (make_gimple_asm_edges): Likewise.
2814
2815 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
2816
2817         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2818         X format specifier to only display bottom 16 bits.
2819         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2820         immediate to match for operand 2, since it will be masked.
2821
2822 2013-05-24  Richard Biener  <rguenther@suse.de>
2823
2824         PR tree-optimization/57287
2825         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2826         all SSA names that occur in abnormal PHIs.
2827
2828 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2829
2830         PR tree-ssa/57385
2831         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2832         that index is not negative.
2833
2834 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2835
2836         PR rtl-optimization/55177
2837         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2838         (simplify_byte_swapping_operation): New.
2839         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2840         (simplify_relational_operation_1): Deal with BSWAP.
2841
2842 2013-05-23  Richard Henderson  <rth@redhat.com>
2843
2844         PR target/56742
2845         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2846         (ix86_reorg): Call it.
2847
2848 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
2849
2850         PR target/57379
2851         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2852         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2853         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2854
2855 2013-05-23  Christian Bruel  <christian.bruel@st.com>
2856
2857         PR debug/57351
2858         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2859
2860 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2861             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2862
2863         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2864         * config/aarch64/constraints.md (Usa): Remove.
2865         * doc/md.texi (AArch64 Usa): Remove.
2866
2867 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2868             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2869
2870         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2871         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2872         * config/aarch64/predicates.md (aarch64_const_address): Remove.
2873         (aarch64_mov_operand): Use aarch64_mov_operand_p.
2874
2875 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
2876
2877         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2878         instruction (AdvSIMD).
2879         * config/aarch64/aarch64-builtins.c
2880         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2881         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2882
2883 2013-05-23  Martin Jambor  <mjambor@suse.cz>
2884
2885         PR middle-end/57347
2886         * tree.h (contains_bitfld_component_ref_p): Declare.
2887         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2888         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
2889         caller.
2890         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2891         not access a bit-field.  Assert all final offsets are byte-aligned.
2892
2893 2013-05-23  Richard Biener  <rguenther@suse.de>
2894
2895         PR tree-optimization/57380
2896         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2897         least one invariant or re-used load.
2898         * passes.c (init_optimization_passes): Move pass_phiprop before
2899         pass_forwprop.
2900
2901 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
2902
2903         * config/aarch64/aarch64-simd.md
2904         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2905
2906 2013-05-23  Richard Biener  <rguenther@suse.de>
2907
2908         PR middle-end/57381
2909         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2910         OEP_CONSTANT_ADDRESS_OF retained.
2911
2912 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
2913
2914         PR middle-end/57344
2915         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2916         don't lower unit.  Handle unit not being always BITS_PER_WORD.
2917
2918 2013-05-23  Richard Biener  <rguenther@suse.de>
2919
2920         PR rtl-optimization/57341
2921         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2922         instead of true_dependence.
2923
2924 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
2925
2926         * bb-reorder.c (branch_threshold): Make const.
2927         (exec_threshold): Ditto.
2928
2929 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2930             Pat Haugen <pthaugen@us.ibm.com>
2931             Peter Bergner <bergner@vnet.ibm.com>
2932
2933         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2934         documentation for the power8 crypto builtins.
2935
2936         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2937
2938         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2939         macros for defining power8 builtin functions.
2940         (BU_P8V_AV_2): Likewise.
2941         (BU_P8V_AV_P): Likewise.
2942         (BU_P8V_VSX_1): Likewise.
2943         (BU_P8V_OVERLOAD_1): Likewise.
2944         (BU_P8V_OVERLOAD_2): Likewise.
2945         (BU_CRYPTO_1): Likewise.
2946         (BU_CRYPTO_2): Likewise.
2947         (BU_CRYPTO_3): Likewise.
2948         (BU_CRYPTO_OVERLOAD_1): Likewise.
2949         (BU_CRYPTO_OVERLOAD_2): Likewise.
2950         (XSCVSPDP): Fix typo, point to the correct instruction.
2951         (VCIPHER): Add power8 crypto builtins.
2952         (VCIPHERLAST): Likewise.
2953         (VNCIPHER): Likewise.
2954         (VNCIPHERLAST): Likewise.
2955         (VPMSUMB): Likewise.
2956         (VPMSUMH): Likewise.
2957         (VPMSUMW): Likewise.
2958         (VPERMXOR_V2DI): Likewise.
2959         (VPERMXOR_V4SI: Likewise.
2960         (VPERMXOR_V8HI: Likewise.
2961         (VPERMXOR_V16QI: Likewise.
2962         (VSHASIGMAW): Likewise.
2963         (VSHASIGMAD): Likewise.
2964         (VPMSUM): Likewise.
2965         (VPERMXOR): Likewise.
2966         (VSHASIGMA): Likewise.
2967
2968         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2969         __CRYPTO__ if the crypto instructions are available.
2970         (altivec_overloaded_builtins): Add support for overloaded power8
2971         builtins.
2972
2973         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2974         support for power8 crypto builtins.
2975         (builtin_function_type): Likewise.
2976         (altivec_init_builtins): Add support for builtins that take vector
2977         long long (V2DI) arguments.
2978
2979         * config/rs6000/crypto.md: New file, define power8 crypto
2980         instructions.
2981
2982 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2983             Pat Haugen <pthaugen@us.ibm.com>
2984             Peter Bergner <bergner@vnet.ibm.com>
2985
2986         * doc/invoke.texi (Option Summary): Add power8 options.
2987         (RS/6000 and PowerPC Options): Likewise.
2988
2989         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2990         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
2991         wm, wn, wr documentation.
2992
2993         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2994         registers if direct move instructions are enabled.
2995         (wn): New constraint for no registers.
2996         (wq): New constraint for quad word even GPR registers.
2997         (wr): New constraint if 64-bit instructions are enabled.
2998         (wv): New constraint if power8 vector instructions are enabled.
2999         (wQ): New constraint for quad word memory locations.
3000
3001         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3002         constraint for 0..15 for crypto instructions.
3003         (gpc_reg_operand): If VSX allow registers in VSX registers as well
3004         as GPR and floating point registers.
3005         (int_reg_operand): New predicate to match only GPR registers.
3006         (base_reg_operand): New predicate to match base registers.
3007         (quad_int_reg_operand): New predicate to match even GPR registers
3008         for quad memory operations.
3009         (vsx_reg_or_cint_operand): New predicate to allow vector logical
3010         operations in both GPR and VSX registers.
3011         (quad_memory_operand): New predicate for quad memory operations.
3012         (reg_or_indexed_operand): New predicate for direct move support.
3013
3014         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3015         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3016         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3017         (POWERPC_MASKS): Add power8 options.
3018         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3019         various options.
3020
3021         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3022         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3023
3024         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3025         (-mpower8-fusion): New power8 options.
3026         (-mpower8-fusion-sign): Likewise.
3027         (-mpower8-vector): Likewise.
3028         (-mcrypto): Likewise.
3029         (-mdirect-move): Likewise.
3030         (-mquad-memory): Likewise.
3031
3032         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3033         power8.
3034         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3035         registers.
3036         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3037         (rs6000_debug_vector_unit): Add p8_vector.
3038         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3039         definitions.  Also print fusion state.
3040         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3041         (rs6000_builtin_mask_calculate): Add power8 builtin support.
3042         (rs6000_option_override_internal): Add support for power8.
3043         (rs6000_common_init_builtins): Add debugging for skipped builtins
3044         if -mdebug=builtin.
3045         (rs6000_adjust_cost): Add power8 support.
3046         (rs6000_issue_rate): Likewise.
3047         (insn_must_be_first_in_group): Likewise.
3048         (insn_must_be_last_in_group): Likewise.
3049         (force_new_group): Likewise.
3050         (rs6000_register_move_cost): Likewise.
3051         (rs6000_opt_masks): Likewise.
3052
3053         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3054         power8 capable assembler, default to power7 options.
3055         (TARGET_DIRECT_MOVE): Likewise.
3056         (TARGET_CRYPTO): Likewise.
3057         (TARGET_P8_VECTOR): Likewise.
3058         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3059         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3060         (VECTOR_MEM_P8_VECTOR_P): Likewise.
3061         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3062         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3063         (TARGET_XSCVDPSPN): Likewise.
3064         (TARGET_XSCVSPDPN): Likewsie.
3065         (TARGET_SYNC_HI_QI): Likewise.
3066         (TARGET_SYNC_TI): Likewise.
3067         (MASK_CRYPTO): Likewise.
3068         (MASK_DIRECT_MOVE): Likewise.
3069         (MASK_P8_FUSION): Likewise.
3070         (MASK_P8_VECTOR): Likewise.
3071         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3072         temporary used by some of the direct move instructions to get two FP
3073         temporary registers does not force creation of a stack frame.
3074         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3075         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3076         that any VSX registers are tieable, even if they are also an
3077         Altivec vector mode.
3078         (r6000_reg_class_enum): Add wm, wr, wv constraints.
3079         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3080         (RS6000_BTM_CRYPTO): Likewise.
3081         (RS6000_BTM_COMMON): Likewise.
3082
3083         * config/rs6000/rs6000.md (cpu attribute): Add power8.
3084         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3085         (enum rs6000_vector): Add power8 vector support.
3086
3087 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3088
3089         PR target/19599
3090         PR target/57340
3091         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3092         (any_sibcall_could_use_r3): this and handle indirect calls.
3093         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3094
3095 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3096
3097         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3098
3099 2013-05-22  Richard Biener  <rguenther@suse.de>
3100
3101         PR middle-end/57349
3102         * profile.c (branch_prob): Do not split blocks that are
3103         abnormally receiving from ECF_RETURNS_TWICE functions.
3104
3105 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
3106
3107         * recog.c (offsettable_address_addr_space_p): Fix calculation of
3108         address mode.  Move pointer mode initialization to the same place.
3109
3110 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3111
3112         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3113         while it has any effect.
3114
3115 2013-05-21  Easwaran Raman  <eraman@google.com>
3116
3117         PR tree-optimization/57322
3118         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3119         UID of the statement added to the BB to be 1.
3120
3121 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
3122
3123         PR tree-optimization/57331
3124         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3125         of conversion from pointer type to integral type with integer.
3126
3127 2013-05-21  Martin Jambor  <mjambor@suse.cz>
3128
3129         PR lto/57289
3130         * ipa-prop.c (ipa_read_node_info): Process param_used and
3131         controlled_uses in the same order as when writing.
3132
3133 2013-05-21  Magnus Granberg  <baldrick@free.fr>
3134
3135         PR plugins/56754
3136         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3137
3138 2013-05-21  Richard Biener  <rguenther@suse.de>
3139
3140         PR tree-optimization/57318
3141         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3142         estimate stmts with side-effects as likely eliminated.
3143
3144 2013-05-21  Richard Biener  <rguenther@suse.de>
3145
3146         PR tree-optimization/57330
3147         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3148         preserve the call stmts fntype.
3149
3150 2013-05-21  Richard Biener  <rguenther@suse.de>
3151
3152         PR tree-optimization/57303
3153         * tree-ssa-sink.c (statement_sink_location): Improve killing
3154         stmt detection and properly handle self-assignments.
3155
3156 2013-05-21  Christian Bruel  <christian.bruel@st.com>
3157
3158         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3159         spanning registers. LEAF_REG_REMAP is supported only for contiguous
3160         registers. Set register size out of the PARALLEL loop.
3161
3162 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
3163
3164         PR target/56547
3165         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3166         (*fmasf4, *fmasf4_media): New insns.
3167
3168 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3169
3170         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3171         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3172         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3173         (mips_idiv_insns): Update the comments to say that the returned
3174         instruction counts are in units of BASE_INSN_LENGTH.
3175         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3176         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
3177         using 2 rather than 4 as the length of indirect MIPS16 and
3178         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
3179         length of a NOP.  Don't divide MIPS16 lengths by 2.
3180         (mips16_split_long_branches): Assume a branch is long if the
3181         length is greater than 4 rather than 8.
3182         * config/mips/mips.md (length): Give MIPS16 lengths directly,
3183         rather than multiplying them by 2.  Multiply instruction counts
3184         by BASE_INSN_LENGTH rather than 4.
3185         (*jump_mips16, tls_get_tp_mips16_<mode>)
3186         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3187
3188 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3189
3190         * config/mips/mips.md (extended_mips16): Remove branch case.
3191         (length): Remove duplicated extended_mips16 test.
3192
3193 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3194
3195         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3196
3197 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
3198
3199         * recog.h (Recog_data): Rename to...
3200         (recog_data_d): ...this.
3201         (recog_data): Update accordingly.
3202         * recog.c (recog_data): Likewise.
3203         * reload.c (save_recog_data): Likewise.
3204         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3205         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3206
3207 2013-05-17  Julian Brown  <julian@codesourcery.com>
3208
3209         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3210         found in a REG_EQUAL note, invalidate it.
3211
3212 2013-05-17   Easwaran Raman  <eraman@google.com>
3213
3214         * tree-ssa-reassoc.c (find_insert_point): New function.
3215         (insert_stmt_after): Likewise.
3216         (get_def_stmt): Likewise.
3217         (ensure_ops_are_available): Likewise.
3218         (not_dominated_by): Likewise.
3219         (rewrite_expr_tree): Do not move statements beyond what is
3220         necessary. Remove call to swap_ops_for_binary_stmt...
3221         (reassociate_bb): ... and move it here.
3222         (build_and_add_sum): Assign UIDs for new statements.
3223         (linearize_expr): Likewise.
3224         (do_reassoc): Renumber gimple statement UIDs.
3225
3226 2013-05-17  Jan Hubicka  <jh@suse.cz>
3227
3228         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3229         weakrefs.
3230         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3231         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3232         weakrefs.
3233         (output_weakrefs): Update.
3234
3235 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
3236             Martin Jambor  <mjambor@suse.cz>
3237
3238         PR middle-end/57276
3239         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3240         value that corresponds to the given aggval is found in values vector.
3241
3242 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
3243
3244         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3245         sse, sse2, sse3, ssse3 and sse4a flags to options.
3246
3247 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
3248
3249         * gengtype-state.c: (s_expr_writer): New class, to handle
3250         prettifying of output layout of s-expressions.
3251         (state_writer): New class, to write out gtype.state.
3252         (state_written_type_count): Move this variable into member data of
3253         state_writer.
3254         (s_expr_writer::s_expr_writer): New code: constructor for new class
3255         (state_writer::state_writer(): ditto
3256         (s_expr_writer::write_new_line): New function
3257         (s_expr_writer::write_any_indent): ditto
3258         (s_expr_writer::begin_s_expr): ditto
3259         (s_expr_writer::end_s_expr): ditto
3260         (write_state_fileloc): convert to method of state_writer...
3261         (state_writer:: write_state_fileloc): ...and use methods of
3262         s_expr_writer to write indentation into the gtype.state output file
3263         to visually represent the hierarchical structure of the list
3264         structures
3265         (write_state_fields): ditto, renaming to...
3266         (state_writer::write_state_fields)
3267         (write_state_a_string): ditto, renaming to...
3268         (state_writer::write_state_a_string)
3269         (write_state_string_option): ditto, renaming to...
3270         (state_writer::write_state_string_option)
3271         (write_state_type_option): ditto, renaming to...
3272         (state_writer::write_state_type_option)
3273         (write_state_nested_option): ditto, renaming to...
3274         (state_writer::write_state_nested_option)
3275         (write_state_option): ditto, renaming to...
3276         (state_writer::write_state_option)
3277         (write_state_options): ditto, renaming to...
3278         (state_writer::write_state_options)
3279         (write_state_lang_bitmap): ditto, renaming to...
3280         (state_writer::write_state_lang_bitmap)
3281         (write_state_version): ditto, renaming to...
3282         (state_writer::write_state_version)
3283         (write_state_scalar_type): ditto, renaming to...
3284         (state_writer::write_state_scalar_type)
3285         (write_state_string_type): ditto, renaming to...
3286         (state_writer::write_state_string_type)
3287         (write_state_undefined_type): ditto, renaming to...
3288         (state_writer::write_state_undefined_type)
3289         (write_state_struct_union_type): ditto, renaming to...
3290         (state_writer::write_state_struct_union_type)
3291         (write_state_struct_type): ditto, renaming to...
3292         (state_writer::write_state_struct_type)
3293         (write_state_user_struct_type): ditto, renaming to...
3294         (state_writer::write_state_user_struct_type)
3295         (write_state_lang_struct_type): ditto, renaming to...
3296         (state_writer::write_state_lang_struct_type)
3297         (write_state_param_struct_type): ditto, renaming to...
3298         (state_writer::write_state_param_struct_type)
3299         (write_state_pointer_type): ditto, renaming to...
3300         (state_writer::write_state_pointer_type)
3301         (write_state_array_type): ditto, renaming to...
3302         (state_writer::write_state_array_type)
3303         (write_state_gc_used): ditto, renaming to...
3304         (state_writer::write_state_gc_used)
3305         (write_state_common_type_content): ditto, renaming to...
3306         (state_writer::write_state_common_type_content)
3307         (write_state_type): ditto, renaming to...
3308         (state_writer::write_state_type)
3309         (write_state_pair_list): ditto, renaming to...
3310         (state_writer::write_state_pair_list)
3311         (write_state_pair): ditto, renaming to...
3312         (state_writer::write_state_pair)
3313         (write_state_typedefs): ditto, renaming to...
3314         (state_writer::write_state_typedefs)
3315         (write_state_structures): ditto, renaming to...
3316         (state_writer::write_state_structures)
3317         (write_state_param_structs): ditto, renaming to...
3318         (state_writer::write_state_param_structs)
3319         (write_state_variables): ditto, renaming to...
3320         (state_writer::write_state_variables)
3321         (write_state_srcdir): ditto, renaming to...
3322         (state_writer::write_state_srcdir)
3323         (write_state_files_list): ditto, renaming to...
3324         (state_writer::write_state_files_list)
3325         (write_state_languages): ditto, renaming to...
3326         (state_writer::write_state_languages)
3327         (write_state): create a state_writer instance and use it when
3328         writing out the state file
3329
3330 2013-05-17  Mike Stump  <mikestump@comcast.net>
3331
3332         PR rtl-optimization/57304
3333         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3334         accessing DF_REF_REAL_LOC.
3335
3336 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3337
3338         PR rtl-optimization/57281
3339         PR rtl-optimization/57300
3340         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3341         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3342         what the other splitter did if the registers are dead.
3343
3344 2013-05-17  Richard Biener  <rguenther@suse.de>
3345
3346         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3347         MEM_REF offsets.
3348
3349 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3350
3351         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3352         linking.
3353
3354 2013-05-17  Marek Polacek  <polacek@redhat.com>
3355
3356         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3357         length when doing non-zero store of storing '\0' to '\0'.
3358
3359 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3360
3361         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3362         vect_external_def oprnd1 with loop_vinfo, try to emit
3363         optional cast, negation and and stmts on the loop preheader
3364         edge instead of into the pattern def seq.
3365
3366         PR tree-optimization/57051
3367         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3368         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3369
3370 2013-05-16  Nick Clifton  <nickc@redhat.com>
3371
3372         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3373         (rl78_is_naked_func): New function.
3374         (rl78_expand_prologue): Skip prologue generation for naked functions.
3375         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
3376         * doc/extend.texi (naked): Add RL78 to the list of processors
3377         that supports this attribute.
3378
3379 2013-05-16  Jeff Law  <law@redhat.com>
3380
3381         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3382
3383 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3384
3385         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3386         cache parameters using detect_caches_amd also for CYRIX,
3387         NSC and TM2 signatures.
3388
3389 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3390             Dzianis Kahanovich  <mahatma@eu.by>
3391
3392         PR target/45359
3393         PR target/46396
3394         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3395         VIA/Centaur processors and determine their cache parameters
3396         using detect_caches_amd.
3397
3398 2013-05-16  Teresa Johnson  <tejohnson@google.com>
3399
3400         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3401         (rtl_verify_edges): New function.
3402         (rtl_verify_bb_insns): Ditto.
3403         (rtl_verify_bb_pointers): Ditto.
3404         (rtl_verify_bb_insn_chain): Ditto.
3405         (rtl_verify_fallthru): Ditto.
3406         (rtl_verify_bb_layout): Ditto.
3407         (rtl_verify_flow_info_1): Outline checks into new functions.
3408         (rtl_verify_flow_info): Ditto.
3409
3410 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
3411
3412         * cfghooks.c (copy_bbs): Add update_dominance argument.
3413         * cfghooks.h (copy_bbs): Update prototype.
3414         * tree-cfg.c (gimple_duplicate_sese_region):
3415         Add update_dominance argument.
3416         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3417         * tree-ssa-loop-ch.c (copy_loop_headers): Update
3418         gimple_duplicate_sese_region call.
3419         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3420         Update copy_bbs call.
3421         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3422         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3423
3424 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3425
3426         * tree-vectorizer.h (NUM_PATTERNS): Increment.
3427         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3428         vect_recog_rotate_pattern.
3429         (vect_recog_rotate_pattern): New function.
3430
3431 2013-05-16  Jason Merrill  <jason@redhat.com>
3432
3433         * Makefile.in (LLINKER): New variable.
3434         (mostlyclean): Remove link mutex.
3435         * configure.ac: Handle --enable-link-mutex.
3436         * lock-and-run.sh: New script.
3437
3438 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3439
3440         PR target/19599
3441         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3442         for NULL decl.
3443
3444 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3445
3446         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3447
3448 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
3449
3450         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3451         * config/arm/arm.c (next_consecutive_mem): New function.
3452         (gen_movmem_ldrd_strd): Likewise.
3453         * config/arm/arm.md (movmemqi): Update condition and code.
3454         (unaligned_loaddi, unaligned_storedi): New patterns.
3455
3456 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3457
3458         * config.gcc: Obsolete *-*-solaris2.9*.
3459         * doc/install.texi (Specific, *-*-solaris2*): Document it.
3460
3461 2013-05-16  Richard Biener  <rguenther@suse.de>
3462
3463         * passes.c (init_optimization_passes): Move pass_parallelize_loops
3464         earlier, after GRAPHITE transforms and IV canonicalization.
3465
3466 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3467
3468         * omp-low.c (extract_omp_for_data): For collapsed loops,
3469         if at least one of the loops is known at compile time to
3470         iterate zero times, set count to 0.
3471         (expand_omp_regimplify_p): New function.
3472         (expand_omp_for_generic): For collapsed loops, if at least
3473         one of the loops isn't known to iterate at least once,
3474         add runtime check with setting count to 0.
3475         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3476         For unsigned types if it isn't known at compile time that
3477         the loop will iterate at least once, add runtime check to bypass
3478         the whole loop if initial condition isn't true.
3479
3480 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3481
3482         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3483
3484 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
3485
3486         PR middle-end/57286
3487         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3488         transformations to avoid an infinite loop.
3489
3490 2013-05-16  Marek Polacek  <polacek@redhat.com>
3491
3492         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3493
3494 2013-05-15  Leif Ekblad  <leif@rdos.net>
3495
3496         * config/i386/i386.c (ix86_decompose_address): Use
3497         DEFAULT_TLS_SEG_REG to access TLS segment register.
3498         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3499         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3500         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3501
3502 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
3503
3504         PR target/57260
3505         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3506         sibling calls to functions that would normally be lazily bound,
3507         unless $gp is call-clobbered.
3508
3509 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
3510
3511         * config/i386/i386.c (ix86_option_override_internal): Update
3512         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
3513         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3514         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3515         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3516         of TARGET_3DNOW.
3517         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3518
3519 2013-05-15  Andreas Schwab  <schwab@suse.de>
3520
3521         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3522         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
3523         third operand.
3524
3525 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3526
3527         * loop-unroll.c (report_unroll_peel): Check decision before
3528         emitting unroll/peel message.
3529
3530 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3531
3532         * function.h (has_bb_partition): New rtl_data flag.
3533         (bb_reorder_complete): Ditto.
3534         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3535         instead of flag_reorder_blocks_and_partition.
3536         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3537         with some enhancements.
3538         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3539         * bb-reorder.c (connect_traces): Check for has_bb_partition
3540         instead of flag_reorder_blocks_and_partition.
3541         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3542         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3543         verify_hot_cold_block_grouping.
3544         (partition_hot_cold_basic_blocks): Set has_bb_partition.
3545
3546 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3547
3548         PR target/19599
3549         * config/arm/predicates.md (call_insn_operand): New predicate.
3550         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
3551         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3552         if insn is not a tail call.
3553         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3554         registers.
3555         * config/arm/arm.h (enum reg_class): New caller save register class.
3556         (REG_CLASS_NAMES): Likewise.
3557         (REG_CLASS_CONTENTS): Likewise.
3558         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3559         without decls.
3560
3561 2013-05-15  Richard Biener  <rguenther@suse.de>
3562
3563         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3564         of MSG_OPTIMIZED_LOCATIONS.
3565         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3566         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3567         message.
3568         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3569         of MSG_OPTIMIZED_LOCATIONS.
3570         (execute_vect_slp): Likewise.
3571         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3572         (vect_create_cond_for_alias_checks): Likewise.
3573         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3574         (vect_recog_widen_mult_pattern): Likewise.
3575         (vect_recog_widen_sum_pattern): Likewise.
3576         (vect_recog_over_widening_pattern): Likewise.
3577         (vect_recog_widen_shift_pattern): Likewise.
3578         (vect_recog_vector_vector_shift_pattern): Likewise.
3579         (vect_recog_divmod_pattern): Likewise.
3580         (vect_recog_mixed_size_cond_pattern): Likewise.
3581         (vect_recog_bool_pattern): Likewise.
3582         (vect_pattern_recog_1): Likewise.
3583
3584 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3585
3586         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3587         non-functions to builtin_unreachable.
3588         * ipa-inline-transform.c (inline_call): Do not assert estimates were
3589         correct when new direct edges were discovered.
3590
3591 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3592
3593         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3594         header, print symbol order instead of node uid, print more information
3595         about indirect edge targets.
3596         (ipa_make_edge_direct_to_target): Print symbol order instead of node
3597         uids.
3598         (ipa_make_edge_direct_to_target): Likewise.
3599         (remove_described_reference): Likewise.
3600         (propagate_controlled_uses): Likewise.
3601         (ipa_print_node_params): Also print symbol order.
3602         (ipcp_transform_function): Print symbol order instead of node uids.
3603         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3604         (cgraph_get_create_real_symbol_node): Likewise.
3605         * ipa-cp.c (print_lattice): Likewise.
3606         (print_all_lattices): Likewise.
3607         (determine_versionability): Likewise.
3608         (initialize_node_lattices): Likewise.
3609         (estimate_local_effects): Likewise.
3610         (update_profiling_info): Likewise.
3611         (create_specialized_node): Likewise.
3612         (perhaps_add_new_callers): Likewise.
3613         (decide_about_value): Likewise.
3614         (decide_whether_version_node): Likewise.
3615         (identify_dead_nodes): Likewise.
3616         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3617         (dump_inline_summary): Likewise.
3618         (estimate_node_size_and_time): Likewise.
3619         (inline_analyze_function): Likewise.
3620         * ipa-inline.c (report_inline_failed_reason): Likewise.
3621         (want_early_inline_function_p): Likewise.
3622         (edge_badness): Likewise.
3623         (update_edge_key): Likewise.
3624         (inline_small_functions): Likewise.  Add dumping of order to two other
3625         dumps.
3626         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3627         instead of node uids.
3628         (propagate_pure_const): Likewise.
3629         (propagate_pure_const): Likewise.
3630         * ipa-utils.c (dump_cgraph_node_set): Likewise.
3631         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3632         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3633         of node uids.
3634         * tree-pretty-print.c (dump_function_header): Likewise.
3635         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3636         Print symbol order instead of node uids.
3637
3638 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3639
3640         * config/s390/s390.c (s390_register_move_cost): Don't impose the
3641         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3642
3643 2013-05-15  Richard Biener  <rguenther@suse.de>
3644
3645         PR tree-optimization/57275
3646         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3647         return value for fail to do runtime alias checks for gather loads.
3648
3649 2013-05-15  Jan Hubicka  <jh@suse.cz>
3650
3651         PR lto/57038
3652         PR lto/47375
3653         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3654         weakrefs are not external.
3655         (lto_symtab_merge_decls): Fix thinko when dealing with
3656         non-lto_symtab decls.
3657         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3658         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3659         * varpool.c (dump_varpool_node): Dump more flags.
3660
3661 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3662
3663         * config/i386/i386.c (processor_alias_table): Add instruction
3664         FSGSBASE for AMD bdver3 architecture.
3665
3666 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3667
3668         * tree.c (warn_deprecated_use): Print file:line using locus color.
3669         * diagnostic.c (diagnostic_report_current_module): Print file:line
3670         and file:line:column using locus color.
3671
3672 2013-05-14  Mike Stump  <mikestump@comcast.net>
3673
3674         * gdbinit.in: Add __null.
3675
3676 2013-05-14  Mike Stump  <mikestump@comcast.net>
3677
3678         * recog.h: Rename struct recog_data to Recog_data.
3679         * recog.c: Likewise.
3680         * reload.c (can_reload_into): Likewise.
3681         * config/picochip/picochip.c: Likewise.
3682
3683 2013-05-14  Mike Stump  <mikestump@comcast.net>
3684
3685         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3686
3687 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3688
3689         * resource.h (struct resources): Remove unch_memory member.
3690         (CLEAR_RESOURCE): Don't clear unch_memory.
3691         * resource.c (mark_referenced_resources): Don't set it.
3692         (mark_set_resources): Likewise.
3693         (mark_target_live_regs): Don't clear it.
3694         (init_resource_info): Likewise.
3695         * reorg.c (resource_conflicts_p): Don't compare it.
3696         (redundant_insn): Don't set it.
3697
3698         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3699         Remove prototypes.
3700         * emit-rtl.c (next_label): Remove unused function.
3701         (skip_consecutive_labels, link_cc0_insns): Move to ...
3702         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3703         only place where these functions are used, and make them static.
3704
3705 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3706
3707         * fold-const.c (fold_negate_expr): Handle vectors.
3708         (fold_truth_not_expr): Make it static.
3709         (fold_invert_truthvalue): New static function.
3710         (invert_truthvalue_loc): Handle vectors. Do not call
3711         fold_truth_not_expr directly.
3712         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3713         <TRUTH_NOT_EXPR>: Do not cast to boolean.
3714         (fold_comparison): Handle vector constants.
3715         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3716         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3717         * tree.h (fold_truth_not_expr): Remove declaration.
3718
3719 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
3720
3721         * config/aarch64/aarch64-simd.md
3722         (aarch64_vcond_internal<mode>): Rename to...
3723         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3724         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3725         float modes. Clarify all iterator modes.
3726         (vcond<mode><mode>): Use new name for vcond expanders.
3727         (vcond<v_cmp_result><mode>): Likewise.
3728         (vcondu<mode><mode>: Likewise.
3729         * config/aarch64/iterators.md (VDQF_COND): New.
3730
3731 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3732
3733         PR bootstrap/57266
3734         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3735         variable for the shift amount. Check that we shift by non-negative
3736         amounts.
3737
3738 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
3739
3740         PR target/42017
3741         * config/arm/arm.h (EPILOGUE_USES): Only return true
3742         for LR_REGNUM after epilogue_completed.
3743
3744 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
3745
3746         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3747         is error_mark_node.
3748
3749 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3750
3751         PR target/57261
3752         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3753         and Solaris 11+/x86 with gld.
3754         * configure: Regenerate.
3755
3756 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3757
3758         * expmed.c (expand_shift_1): Canonicalize rotates by
3759         constant bitsize / 2 to bitsize - 1.
3760         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3761         case ROTATERT>: Likewise.
3762
3763         Revert:
3764         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3765
3766         * config/i386/i386.md (rotateinv): New code attr.
3767         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3768         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3769         roll $31, %eax, etc.
3770
3771 2013-05-14  Richard Biener  <rguenther@suse.de>
3772
3773         PR middle-end/57235
3774         * tree-eh.c (sink_clobbers): Give up for successors with
3775         multiple predecessors and no virtual uses.
3776
3777 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3778
3779         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3780         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3781
3782 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3783
3784         PR middle-end/57251
3785         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3786         the case when both op0 and op1 have VOIDmode.
3787
3788 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3789
3790         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3791         in multiply-accumulate mode.
3792
3793 2013-05-13  Guozhi Wei  <carrot@google.com>
3794
3795         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3796
3797 2013-05-13  Kai Tietz  <ktietz@redhat.com>
3798
3799         PR target/56975
3800         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3801         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3802         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3803         * config/i386/i386.c (ix86_option_override_internal): Likewise.
3804         (ix86_expand_prologue): Likewise.
3805         (ix86_expand_split_stack_prologue): Likewise.
3806         (legitimate_pic_address_disp_p): Likewise.
3807         (legitimize_pic_address): Likewise.
3808         (legitimize_tls_address): Likewise.
3809         (legitimize_pe_coff_symbol): Likewise.
3810         (output_pic_addr_const): Likewise.
3811         (construct_plt_address): Likewise.
3812         (ix86_expand_call): Likewise.
3813         (x86_output_mi_thunk): Likewise.
3814         (x86_function_profiler): Likewise.
3815
3816 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
3817
3818         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3819         similar switch cases.
3820         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3821         (aarch64_simd_mov_to_<mode>low): Delete.
3822         (aarch64_simd_mov_to_<mode>high): Delete.
3823         (move_lo_quad_<mode>): Add w<-r alternative.
3824         (aarch64_simd_move_hi_quad_<mode>): Likewise.
3825         (aarch64_simd_mov_from_*): Update type attribute.
3826         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3827         statement.
3828
3829 2013-05-13  Jan Hubicka  <jh@suse.cz>
3830
3831         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3832         * config/i386/i386.c (ix86_compute_frame_layout,
3833         ix86_expand_epilogue, emit_i387_cw_initialization,
3834         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3835         ix86_local_alignment): Fix use of size/speed predicates.
3836
3837 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3838
3839         PR tree-optimization/45216
3840         PR tree-optimization/57157
3841         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3842         the (-Y) & (B - 1) variant if OP is |.
3843         * expmed.c (expand_shift_1): For rotations by const0_rtx just
3844         return shifted.  Use (-op1) & (prec - 1) as other_amount
3845         instead of prec - op1.
3846
3847 2013-05-13  Martin Jambor  <mjambor@suse.cz>
3848
3849         PR middle-end/42371
3850         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3851         (ipa_constant_data): New type.
3852         (ipa_jump_func): Use ipa_constant_data to hold information about
3853         constant jump functions.
3854         (ipa_get_jf_constant): Adjust to jump function type changes.
3855         (ipa_get_jf_constant_rdesc): New function.
3856         (ipa_param_descriptor): New field controlled_uses.
3857         (ipa_get_controlled_uses): New function.
3858         (ipa_set_controlled_uses): Likewise.
3859         * ipa-ref.h (ipa_find_reference): Declare.
3860         * ipa-prop.c (ipa_cst_ref_desc): New type.
3861         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3862         changes.
3863         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
3864         New parameter cs.  Adjust all callers.
3865         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3866         (remove_described_reference): New function.
3867         (jfunc_rdesc_usable): Likewise.
3868         (try_make_edge_direct_simple_call): Decrement controlled use count,
3869         attempt to remove reference if it hits zero.
3870         (combine_controlled_uses_counters): New function.
3871         (propagate_controlled_uses): Likewise.
3872         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3873         (ipa_edge_duplication_hook): Duplicate reference descriptions.
3874         (ipa_print_node_params): Print described use counter.
3875         (ipa_write_jump_function): Adjust to jump function type changes.
3876         (ipa_read_jump_function): New parameter CS, pass it to
3877         ipa_set_jf_constant.  Adjust caller.
3878         (ipa_write_node_info): Stream controlled use count
3879         (ipa_read_node_info): Likewise.
3880         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3881         asserting.
3882         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3883         count.  Remove cloning-added reference if it reaches zero.
3884         * ipa-ref.c (ipa_find_reference): New function.
3885
3886 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3887
3888         * config/i386/i386.c (processor_target_table): Modified default
3889         alignment values for AMD BD and BT architectures.
3890
3891 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
3892
3893         * tree-vect-generic.c (uniform_vector_p): Move ...
3894         * tree.c (uniform_vector_p): ... here.
3895         * tree.h (uniform_vector_p): Declare it.
3896         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3897         into a scalar.
3898
3899 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3900
3901         PR tree-optimization/57230
3902         * tree-ssa-strlen.c (handle_char_store): Record length for
3903         array store from STRING_CST.
3904
3905         PR tree-optimization/57230
3906         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3907         check.
3908
3909 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3910
3911         * config/epiphany/epiphany.c (epiphany_init): Check size of
3912         NUM_MODES_FOR_MODE_SWITCHING.
3913         (epiphany_expand_prologue):
3914         Remove CONFIG_REGNUM initial value handling code.
3915         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3916         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3917         (emit_set_fp_mode, epiphany_mode_after): Likewise.
3918         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3919         Don't return 1 for FP_MODE_NONE.
3920         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3921         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3922         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3923         * config/epiphany/epiphany.md (save_config): New pattern.
3924
3925 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
3926
3927         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3928
3929 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
3930
3931         * config/i386/i386.md (memory): Handle sseishft1.
3932         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3933         (*vec_extractv2di_1): Ditto.
3934
3935 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3936
3937         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3938         saved registers.
3939
3940 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3941
3942         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3943         Add mthumb/march=armv7-a multilib.
3944         Add mthumb/march=armv7-r multilib.
3945         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3946
3947 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
3948
3949         * config/v850/t-rtems: Add more multilibs.
3950
3951 2013-05-10  Richard Biener  <rguenther@suse.de>
3952
3953         PR tree-optimization/57214
3954         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3955         not propagate from SSA names that occur in abnormal PHI nodes.
3956
3957 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
3958
3959         * stor-layout.c (element_precision): New function.
3960         * machmode.h (element_precision): Declare it.
3961         * tree.c (build_minus_one_cst): New function.
3962         (element_precision): Likewise.
3963         * tree.h (build_minus_one_cst): Declare new function.
3964         (element_precision): Likewise.
3965         * fold-const.c (operand_equal_p): Use element_precision.
3966         (fold_binary_loc): Handle vector types.
3967         * convert.c (convert_to_integer): Use element_precision.
3968         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3969         separately.
3970
3971 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3972
3973         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3974         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3975         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3976         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3977         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3978         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3979         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3980         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3981         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3982         (Uuw8): New constraints.
3983         (Usb4): Move into alphabetical order.
3984         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3985         (sd8_operand, ub8_operand, uw8_operand): New predicates.
3986         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3987         previously unnamed patterns.
3988         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3989         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3990         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3991         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3992         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
3993         of specific lengths.
3994
3995 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3996
3997         * config/i386/i386.md (rotateinv): New code attr.
3998         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3999         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4000         roll $31, %eax, etc.
4001
4002         PR tree-optimization/45216
4003         PR tree-optimization/57157
4004         * tree-ssa-forwprop.c (simplify_rotate): New function.
4005         (ssa_forward_propagate_and_combine): Call it.
4006
4007 2013-05-10  Richard Biener  <rguenther@suse.de>
4008
4009         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4010         disable peeling when we version for aliasing.
4011         (vector_alignment_reachable_p): Honor explicit user alignment.
4012         (vect_supportable_dr_alignment): Likewise.
4013         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4014         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4015         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4016         then peeling to arrange for the cost-model check to come first.
4017
4018 2013-05-10  Alan Modra  <amodra@gmail.com>
4019
4020         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4021         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4022         * configure: Regenerate.
4023
4024 2013-05-10  Alan Modra  <amodra@gmail.com>
4025
4026         PR target/55033
4027         * varasm.c (default_elf_select_section): Move !DECL_P check..
4028         (get_named_section): ..to here before calling get_section_name.
4029         Adjust assertion.
4030         (default_section_type_flags): Add DECL_P check.
4031         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4032         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4033
4034 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4035
4036         * config/epiphany/epiphany.c (epiphany_expand_prologue):
4037         When using gen_stack_adjust_str with a register offset, add a
4038         REG_FRAME_RELATED_EXPR note.
4039
4040 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
4041
4042         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4043         (*vec_extractv4si_zext_mem): Ditto.
4044         (*vec_extractv2di): Add 0->x and x->x alternatives.
4045         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4046         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4047
4048 2013-05-09  Jason Merrill  <jason@redhat.com>
4049
4050         N3639 C++1y VLA support
4051         * gimplify.c (gimplify_vla_decl): Don't touch an existing
4052         DECL_VALUE_EXPR.
4053
4054         * tree.c (build_constructor_va): New.
4055         * tree.h: Declare it.
4056
4057 2013-05-09  Martin Jambor  <mjambor@suse.cz>
4058
4059         PR lto/57084
4060         * gimple-fold.c (canonicalize_constructor_val): Call
4061         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4062
4063 2013-05-09  Jan Hubicka  <jh@suse.cz>
4064             Richard Biener  <rguenther@suse.de>
4065
4066         PR lto/54095
4067         * symtab.c (symtab_make_decl_local): Do not add private names.
4068
4069 2013-05-09  Jan Hubicka  <jh@suse.cz>
4070
4071         PR lto/54095
4072         * symtab.c (insert_to_assembler_name_hash): Handle clones.
4073         (unlink_from_assembler_name_hash): Likewise.
4074         (symtab_prevail_in_asm_name_hash, symtab_register_node,
4075         symtab_unregister_node, symtab_initialize_asm_name_hash,
4076         change_decl_assembler_name): Update.
4077
4078 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
4079
4080         * config/aarch64/aarch64.md: New movtf split.
4081         (*movtf_aarch64): Update.
4082         (aarch64_movdi_tilow): Handle TF modes and rename to
4083         aarch64_movdi_<mode>low.
4084         (aarch64_movdi_tihigh): Handle TF modes and rename to
4085         aarch64_movdi_<mode>high
4086         (aarch64_movtihigh_di): Handle TF modes and rename to
4087         aarch64_mov<mode>high_di
4088         (aarch64_movtilow_di): Handle TF modes and rename to
4089         aarch64_mov<mode>low_di
4090         (aarch64_movtilow_tilow): Remove spurious whitespace.
4091         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4092         splits.
4093         (aarch64_print_operand): Update.
4094
4095 2013-05-09  Alan Modra  <amodra@gmail.com>
4096
4097         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4098         powerpc64le.
4099         * configure: Regenerate.
4100
4101 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4102
4103         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4104         splitter preparation statements.
4105         * config/i386/sse.md (*vec_extract* splitters): Ditto.
4106         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4107         adjust_address_nv.
4108
4109 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4110
4111         * gimple-ssa-strength-reduction.c (count_candidates): Change
4112         return value to int.
4113         (analyze_candidates_and_replace): Change type of length to int.
4114
4115 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4116
4117         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4118         (*vec_extract<mode>): Use VI12_128 mode iterator.
4119         (*vec_extract<mode>_mem): Ditto.
4120         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4121         attribute.
4122
4123 2013-05-08  Diego Novillo  <dnovillo@google.com>
4124
4125         PR bootstrap/54659
4126
4127         Revert:
4128         2012-08-17  Diego Novillo  <dnovillo@google.com>
4129
4130         PR bootstrap/54281
4131         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4132         * config.in: Regenerate.
4133         * configure: Regenerate.
4134         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4135
4136 2013-05-08  Jan Hubicka  <jh@suse.cz>
4137
4138         PR lto/54095
4139         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4140         * cgraph.h (symtab_node_base): Add unique_name.
4141         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4142         input_overwrite_node, input_varpool_node): Stream unique_name.
4143         * cgraphclones.c (cgraph_create_virtual_clone,
4144         cgraph_function_versioning): Set unique_name.
4145         * ipa.c (function_and_variable_visibility): Set unique_name.
4146
4147 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4148
4149         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4150         (alloc_cand_and_find_basis): Restrict conditional candidate
4151         processing to CAND_MULTs.
4152
4153 2013-05-08  Jan Hubicka  <jh@suse.cz>
4154
4155         PR lto/54095
4156         lto-symtab.c (lto_symtab_symbol_p): New function.
4157         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4158         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4159         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4160         Skip static symbols.
4161
4162 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
4163
4164         PR tree-optimization/57200
4165         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4166         Only call inform if the preceding warning_at returns true.
4167
4168 2013-05-07  Han Shen  <shenhan@google.com>
4169
4170         * cfgexpand.c (record_or_union_type_has_array_p): New function.
4171         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4172         * common.opt (fstack-protector-strong): New option.
4173         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4174         * doc/invoke.texi (Optimization Options): Document
4175         "-fstack-protector-strong".
4176         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4177
4178 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4179
4180         * config/mips/mips.c (mips_machine_reorg2): Return 0.
4181
4182 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
4183
4184         * ira.c (update_equiv_regs): Add insn having equiv memory even if
4185         it is not lhs of the insn.
4186         (setup_reg_equiv): Remove insn having equiv memory which it is not
4187         lhs of the insn.
4188         * lra-constraints.c (process_address): Try to improve generation
4189         code for address base + disp.
4190         (lra_constraints): Make correct the code for checking insn setting
4191         up backward equivalence.  Remove insn only if it is in the init
4192         insn list.
4193         * lra-eliminations.c (update_reg_eliminate): Change return value.
4194         (lra_eliminate): Use the result.
4195
4196 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
4197
4198         * config/i386/sse.md (ssescalarnummask): New mode attribute.
4199         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4200         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4201         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4202         register target operands.
4203         (*vec_extractv8hi_sse2): New pattern.
4204         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4205         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4206         (*vec_extract<mode>_mem): New insn and split pattern.
4207
4208 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
4209
4210         * config/arm/arm.c (arm_asan_shadow_offset): New function.
4211         (TARGET_ASAN_SHADOW_OFFSET): Define.
4212         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4213         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4214
4215 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4216
4217         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4218         (incr_vec_index): Return -1 if increment not found.
4219         (create_add_on_incoming_edge): Assert if increment not found.
4220         (record_increment): Limit number of increments recorded.
4221         (all_phi_incrs_profitable): Return false if an increment not found.
4222         (replace_profitable_candidates): Don't process increments that were
4223         not recorded.
4224         (analyze_candidates_and_replace): Limit size of incr_vec.
4225
4226 2013-05-07  Richard Biener  <rguenther@suse.de>
4227
4228         * calls.c (special_function_p): setjmp-like functions are leaf.
4229         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4230         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4231
4232 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
4233
4234         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4235         (aarch64_simd_mov<mode>): New expander.
4236         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4237         (aarch64_simd_mov_to_<mode>high): Likewise.
4238         (aarch64_simd_mov_from_<mode>low): Likewise.
4239         (aarch64_simd_mov_from_<mode>high): Likewise.
4240         (aarch64_dup_lane<mode>): Update.
4241         (aarch64_dup_lanedi): New instruction pattern.
4242         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4243         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4244
4245 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4246
4247         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4248         (replace_mult_candidate): Remove unnecessary argument; remove
4249         unnecessary parameter from call to introduce_cast_before_cand.
4250         (replace_unconditional_candidate): Remove unnecessary parameter
4251         from call to replace_mult_candidate.
4252         (replace_conditional_candidate): Likewise.
4253         (insert_initializers): Use make_temp_ssa_name.
4254         (introduce_cast_before_cand): Remove unnecessary argument; use
4255         make_temp_ssa_name.
4256         (replace_one_candidate): Remove unnecessary argument; remove
4257         unnecessary parameter from calls to introduce_cast_before_cand.
4258         (replace_profitable_candidates): Remove unnecessary parameters
4259         from calls to replace_one_candidate.
4260
4261 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4262
4263         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4264         phi def as possibly hiding a basis for a CAND_ADD whose operands
4265         have been commuted in the analysis.
4266         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4267
4268 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4269
4270         * config/aarch64/aarch64.md
4271         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4272         shift value between 0-4.
4273
4274 2013-05-07  Richard Biener  <rguenther@suse.de>
4275
4276         * double-int.h (rshift): New overload.
4277         * double-int.c (rshift): New function.
4278         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4279         (create_reference_ops_from_ref): Remove.
4280         (vn_reference_insert): Use shared ops for constructing the
4281         reference and copy it.
4282
4283 2013-05-07  Richard Biener  <rguenther@suse.de>
4284
4285         PR middle-end/57190
4286         * tree-eh.c (sink_clobbers): Properly propagate
4287         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4288
4289 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
4290
4291         PR tree-optimization/57149
4292         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4293         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4294         collect_phi_def_edges, execute_late_warn_uninitialized): Use
4295         uninit_undefined_value_p instead of ssa_undefined_value_p.
4296
4297         PR debug/57184
4298         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4299         for modifier == EXPAND_INITIALIZER.
4300
4301 2013-05-07  Anton Blanchard  <anton@samba.org>
4302
4303         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4304         for powerpc64 little endian.
4305         * configure: Regenerate.
4306
4307 2013-05-06  Graham Stott  <grahams@btinternet.com>
4308
4309         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4310         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4311         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4312         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4313
4314 2013-05-06  Graham Stott  <grahams@btinternet.com>
4315
4316         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4317         codes which allow non-lvalues.
4318
4319 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
4320
4321         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4322         components are all 1s.
4323         (integer_minus_onep): New function.
4324         * tree.h (integer_minus_onep): Declare it.
4325         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4326         integer_minus_onep instead of integer_all_onesp.
4327
4328 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4329
4330         PR target/52933
4331         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4332         variations of these patterns.
4333
4334 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4335
4336         * config/i386/i386.md (isa): Add x64_sse4 member.
4337         (enabled): Handle x64_sse4.
4338         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4339         instruction for 64bit SSE4_1 targets.  Update insn attributes.
4340         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4341         instruction for SSE4_1 targets.  Update insn attributes.
4342         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4343         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4344         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4345         const_1 selector.
4346         (*vec_extractv4si): Rename from *sse4_1_pextrd.
4347         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4348         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4349
4350 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4351
4352         PR target/57108
4353         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4354
4355 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
4356
4357         * final.c (do_assembler_dialects): Don't handle curly braces and
4358         vertical bar escaped by % as dialect delimiters.
4359         (output_asm_insn): Print curly braces and vertical bar if escaped
4360         by % and ASSEMBLER_DIALECT defined.
4361         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4362         * doc/tm.texi: Regenerated.
4363
4364 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4365
4366         * config/mips/mips.c: Include tree-pass.h.
4367         (mips_reorg): Split in pre- and post-dbr_schedule parts.
4368         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4369         (pass_mips_machine_reorg2): New machine specific pass.
4370         (insert_pass_mips_machine_reorg2): New pass plugin definition.
4371         (mips_option_override): Register the new pass.
4372         * rtl.h (cleanup_barriers): Remove prototype.
4373         (dbr_schedule): Likewise.
4374         * jump.c (cleanup_barriers): Make static.
4375         * reorg.c (dbr_schedule): Likewise.
4376
4377 2013-05-06  Richard Biener  <rguenther@suse.de>
4378
4379         PR tree-optimization/57185
4380         * tree-parloops.c (add_field_for_reduction): Handle anonymous
4381         SSA names properly.
4382
4383 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4384
4385         PR target/57106
4386         * config/i386/i386.c (add_parameter_dependencies): Add dependence
4387         between "first_arg" and "insn", not "last" and "insn".
4388
4389 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4390
4391         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4392         (find_candidates_in_block): Re-enable slsr_process_phi.
4393         (create_phi_basis): Fix double counting of candidate adjustment.
4394
4395 2013-05-06  Richard Biener  <rguenther@suse.de>
4396
4397         PR middle-end/57147
4398         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4399         the edge is also fallthru, preserve it and just clear the
4400         abnormal flag.
4401         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4402         also complex, preserve that and just clear the fallthru flag.
4403         * tree-inline.c (update_ssa_across_abnormal_edges): Also
4404         update virtual operands.
4405
4406 2013-05-06  Alan Modra  <amodra@gmail.com>
4407
4408         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4409         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4410         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4411         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4412         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4413         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4414
4415 2013-05-06  Alan Modra  <amodra@gmail.com>
4416
4417         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4418         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
4419         (DEFAULT_ASM_ENDIAN): Define.
4420         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4421         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4422         Update -K PIC clause from sysv4.h.
4423         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4424         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4425
4426 2013-05-06  Alan Modra  <amodra@gmail.com>
4427
4428         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4429         twice for little-endian.
4430         (ashrdi3_no_power, ashrdi3): Support little-endian.
4431
4432 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4433
4434         PR target/55303
4435         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4436         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4437         related expanders.
4438         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4439         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4440         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4441         New predicates.
4442
4443 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4444             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4445
4446         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4447         * config/pa/pa.opt: Make mbig-switch a no-op.
4448         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4449         (CASE_VECTOR_MODE): Always return SImode.
4450         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4451         for the !TARGET_BIG_SWITCH case.
4452         * config/pa/pa-linux.h: Likewise.
4453         * config/pa/pa-openbsd.h: Likewise.
4454         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4455         * config/pa/pa.md (short_jump): Remove define_insn.
4456         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4457         (casesi0): Remove define_insn.
4458         (type): Remove btable_branch.
4459         (pa_combine_type): Likewise.
4460         (in_nullified_branch_delay): Likewise.
4461         (in_call_delay): Likewise.
4462         (define_delay): Likewise.
4463         (define_insn_reservation "Z3"): Likewise.
4464         (define_insn_reservation "Z4"): Likewise.
4465         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4466         (pa_adjust_insn_length): Remove adjustment for btable branches.
4467         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4468         and mno-big-switch
4469
4470 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
4471
4472         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4473         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4474         Add m->r,x alternatives.
4475         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4476         splitters using SWI48x mode iterator.
4477         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
4478         TARGET_64BIT.  Add m->x alternative.
4479         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4480         Add o->x alternative.  Enable for TARGET_SSE.
4481         (sse_storeq): Remove expander.
4482         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4483         with memory input operand.
4484         (*vec_extractv2di_1 splitter): New.
4485         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4486         * config/i386/i386.md (ssevecmodelower): New mode attribute.
4487
4488 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4489
4490         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
4491         (INT_LOWPART): Delete.
4492         (extract_MB): Adjust.
4493         (extract_ME): Adjust.
4494         (print_operand): Adjust.
4495
4496 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4497
4498         * config/rs6000/predicates.md (reg_or_add_cint_operand,
4499         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4500         (reg_or_logical_cint_operand, easy_fp_constant,
4501         logical_const_operand): Delete "CONST_DOUBLE" case.
4502         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4503         "HOST_BITS_PER_WIDE_INT == 64" test.
4504         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
4505         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4506         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4507         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4508         test.
4509         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4510         CONST_DOUBLE DImode/VOIDmode case.
4511         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4512         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4513         CONST_DOUBLE VOIDmode case.
4514         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4515         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4516         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4517         Delete CONST_DOUBLE case.
4518         (splitters for mov FMOVE64 const_double): Delete
4519         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4520         "HOST_BITS_PER_WIDE_INT >= 64" test.
4521         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4522         case.
4523         (mov DI const_double): Delete.
4524
4525 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
4526
4527         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4528         on op shows all bits zero in mode of a lowpart subreg, return zero.
4529
4530 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4531
4532         PR target/57150
4533         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4534         to save TFmode registers and DImode to save TImode registers for
4535         caller save operations.
4536         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4537         mark being partially clobbered since they only use the first
4538         double word.
4539
4540         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4541         and TDmode only use the upper 64-bits of each VSX register.
4542
4543 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4544
4545         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4546         (find_candidates_in_block): Disable slsr_process_phi.
4547
4548 2013-05-03  Guozhi Wei  <carrot@google.com>
4549
4550         * coverage.c (coverage_obj_init): Move the construction of gcov
4551         constructor to ...
4552         (build_init_ctor): ... here.
4553
4554 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4555
4556         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4557         (slsr_cand_d): Redefine def_phi.
4558         (stride_status, phi_adjust_status, count_phis_status): New enums.
4559         (find_phi_def): New.
4560         (find_basis_for_base_expr): New.
4561         (find_basis_for_candidate): Handle hidden bases.
4562         (alloc_cand_and_find_basis): Handle phi candidates.
4563         (slsr_process_phi): New.
4564         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4565         (create_mul_imm_cand): Likewise.
4566         (create_add_ssa_cand): Exclude phi base candidates.
4567         (create_add_imm_cand): Likewise.
4568         (slsr_process_cast): Likewise.
4569         (slsr_process_copy): Likewise.
4570         (find_candidates_in_block): Handle phi candidates.
4571         (dump_candidate): Likewise.
4572         (unconditional_cands): Delete.
4573         (unconditional_cands_with_known_stride_p): Delete.
4574         (phi_dependent_cand_p): New.
4575         (cand_increment): Handle phi-dependent candidates.
4576         (replace_dependent): Delete.
4577         (replace_mult_candidate): New.
4578         (replace_unconditional_candidate): New.
4579         (incr_vec_index): Move to avoid forward reference.
4580         (create_add_on_incoming_edge): New.
4581         (create_phi_basis): New.
4582         (replace_dependents): Delete.
4583         (replace_conditional_candidate): New.
4584         (phi_add_costs): New.
4585         (replace_uncond_cands_and_profitable_phis): New.
4586         (record_increment): Handle phi adjustments.
4587         (record_phi_increments): New.
4588         (record_increments): Handle phi adjustments.
4589         (phi_incr_cost): New.
4590         (lowest_cost_path): Handle phis.
4591         (total_savings): Likewise.
4592         (analyze_increments): Likewise.
4593         (ncd_with_phi): New.
4594         (ncd_of_cand_and_phis): New.
4595         (nearest_common_dominator_for_cands): Handle phi increments.
4596         (all_phi_incrs_profitable): New.
4597         (replace_profitable_candidates): Handle phi-dependent candidates.
4598         (analyze_candidates_and_replace): Likewise.
4599
4600 2013-05-03  Teresa Johnson  <tejohnson@google.com>
4601
4602         PR bootstrap/57154
4603         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4604         do not exceed REG_BR_PROB_BASE.
4605
4606 2013-05-03  Jeff Law  <law@redhat.com>
4607
4608         PR tree-optimization/57144
4609         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4610         operand of the condition will bit into the new type when eliminating
4611         a cast feeding a condition.
4612
4613 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
4614
4615         PR rtl-optimization/57130
4616         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4617         of COMPARE as in_code to the recursive call if needed.
4618
4619 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
4620
4621         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4622         (enabled): Handle new members.
4623         * config/i386/sse.md (*vec_concatv2si): Merge from
4624         *vec_concatv2si_sse2 and vec_concatv2si_sse.
4625         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4626
4627 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
4628
4629         PR tree-optimization/57027
4630         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4631         for fnms opportunity, check we got the prerequisite kind
4632         of tree / gimple before using accessor functions.
4633
4634 2013-05-03  Richard Biener  <rguenther@suse.de>
4635
4636         * double-int.h (lshift): New overload without precision
4637         and arith argument.
4638         (operator *=, operator +=, operator -=): Move ...
4639         * double-int.c (operator *=, operator +=, operator -=): ... here
4640         and implement more efficiently.
4641         (mul_double_with_sign): Remove.
4642         (lshift_double): Adjust to take unsinged shift argument, push
4643         dispatching code to callers.
4644         (mul_double_wide_with_sign): Add early out for callers that
4645         are not interested in high parts or overflow.
4646         (lshift): New function.
4647         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4648         dispatch code here.
4649         (lrotate, rrotate): Use logical shifts.
4650         * expr.c (get_inner_reference): Use lshift.
4651         * fixed-value.c (do_fixed_divide): Likewise.
4652         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4653         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4654         (indirect_refs_may_alias_p): Likewise.
4655         (stmt_kills_ref_p_1): Likewise.
4656
4657 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4658
4659         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4660
4661 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4662
4663         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4664         scalar form of FABD instruction.
4665
4666 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4667
4668         * lra-constraints.c (process_alt_operands): Add checking alt
4669         number to choose the best alternative.
4670
4671 2013-05-02  Richard Biener  <rguenther@suse.de>
4672
4673         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4674         bitmap and its handling.
4675         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4676
4677 2013-05-02  Richard Biener  <rguenther@suse.de>
4678
4679         PR middle-end/57140
4680         * tree-inline.c (copy_loops): Properly handle removed loops.
4681         (copy_cfg_body): Mark destination loops for fixup if source
4682         loops needed fixup.
4683
4684 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
4685
4686         PR target/56732
4687         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4688         generating simple_return for naked functions.
4689
4690 2013-05-02  Martin Jambor  <mjambor@suse.cz>
4691
4692         PR middle-end/56988
4693         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4694         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4695         flags match.
4696         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4697         ipa_agg_replacement_value structures.
4698         (known_aggs_to_agg_replacement_list): Likewise.
4699         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4700         (read_agg_replacement_chain): Likewise.
4701         (ipcp_transform_function): Also check that by_ref flags match.
4702
4703 2013-05-02  Richard Biener  <rguenther@suse.de>
4704
4705         * graphds.h (struct graph): Add obstack member.
4706         * graphds.c (new_graph): Initialize obstack and allocate
4707         vertices from it.
4708         (add_edge): Allocate edge from the obstack.
4709         (free_graph): Free the obstack instead of all edges and vertices.
4710
4711 2013-05-02  Teresa Johnson  <tejohnson@google.com>
4712
4713         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4714         divides.
4715         * cfg.c (update_bb_profile_for_threading): Ditto.
4716         * tree-inline.c (copy_bb): Ditto.
4717         (copy_edges_for_bb): Ditto.
4718         (initialize_cfun): Ditto.
4719         (copy_cfg_body): Ditto.
4720         (expand_call_inline): Ditto.
4721         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4722         (estimate_node_size_and_time): Ditto.
4723         (inline_merge_summary): Ditto.
4724         * cgraphclones.c (cgraph_clone_edge): Ditto.
4725         (cgraph_clone_node): Ditto.
4726         * sched-rgn.c (compute_dom_prob_ps): Ditto.
4727         (compute_trg_info): Ditto.
4728
4729 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4730
4731         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4732         S reg when fp attribute set.
4733         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4734
4735 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4736
4737         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4738         New pattern.
4739         (*and_one_cmplsi3_compare0_uxtw): Likewise.
4740         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4741         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4742
4743 2013-05-02  Richard Biener  <rguenther@suse.de>
4744
4745         * tree-scalar-evolution.c (scev_info_hasher): Remove.
4746         (struct instantiate_cache_entry): New type.
4747         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4748         (struct instantiate_cache_type): New type.
4749         (set_instantiated_value, get_instantiated_value): Remove.
4750         (get_instantiated_value_entry): New function.
4751         (instantiate_scev_name): Use the new cache and adjust.
4752         (instantiate_scev_poly): Adjust.
4753         (instantiate_scev_binary): Likewise.
4754         (instantiate_array_ref): Likewise.
4755         (instantiate_scev_convert): Likewise.
4756         (instantiate_scev_not): Likewise.
4757         (instantiate_scev_3): Likewise.
4758         (instantiate_scev_2): Likewise.
4759         (instantiate_scev_r): Likewise.
4760         (instantiate_scev): Likewise.
4761         (resolve_mixers): Likewise.
4762
4763 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
4764
4765         PR target/57091
4766         * lra-constraints.c (best_small_class_operands_num): Remove.
4767         (process_alt_operands): Remove small_class_operands_num.  Take
4768         small classes operands into losers and only if the operand is not
4769         matched.  Modify debugging output.
4770         (curr_insn_transform): Remove best_small_class_operands_num.
4771         Print insn name.
4772
4773 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4774
4775         * config/aarch64/aarch64-builtins.c
4776         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4777         * config/aarch64/aarch64-simd-builtins.def
4778         (reduc_splus_): Add new modes.
4779         (reduc_uplus_): New.
4780         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4781         (reduc_uplus_v4sf): Likewise.
4782         (reduc_splus_v4sf): Likewise.
4783         (aarch64_addv<mode>): Likewise.
4784         (reduc_uplus_<mode>): Likewise.
4785         (reduc_splus_<mode>): Likewise.
4786         (aarch64_addvv2di): Likewise.
4787         (reduc_uplus_v2di): Likewise.
4788         (reduc_splus_v2di): Likewise.
4789         (aarch64_addvv2si): Likewise.
4790         (reduc_uplus_v2si): Likewise.
4791         (reduc_splus_v2si): Likewise.
4792         (reduc_<sur>plus_<mode>): New.
4793         (reduc_<sur>plus_v2di): Likewise.
4794         (reduc_<sur>plus_v2si): Likewise.
4795         (reduc_<sur>plus_v4sf): Likewise.
4796         (aarch64_addpv4sf): Likewise.
4797         * config/aarch64/arm_neon.h
4798         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4799         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4800         add UNSPEC_SADDV, UNSPEC_UADDV.
4801         (SUADDV): New.
4802         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4803
4804 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4805
4806         * config/aarch64/arm_neon.h
4807         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4808
4809 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4810
4811         * config/aarch64/aarch64-builtins
4812         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4813
4814 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4815
4816         * config/aarch64/aarch64-simd-builtins.def
4817         (reduc_smax_): New.
4818         (reduc_smin_): Likewise.
4819         (reduc_umax_): Likewise.
4820         (reduc_umin_): Likewise.
4821         (reduc_smax_nan_): Likewise.
4822         (reduc_smin_nan_): Likewise.
4823         (fmax): Remove.
4824         (fmin): Likewise.
4825         (smax): Update for V2SF, V4SF and V2DF modes.
4826         (smin): Likewise.
4827         (smax_nan): New.
4828         (smin_nan): Likewise.
4829         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4830         (<su><maxmin><mode>3): ...This, refactor.
4831         (s<maxmin><mode>3): New.
4832         (<maxmin_uns><mode>3): Likewise.
4833         (reduc_<maxmin_uns>_<mode>): Refactor.
4834         (reduc_<maxmin_uns>_v4sf): Likewise.
4835         (reduc_<maxmin_uns>_v2si): Likewise.
4836         (aarch64_<fmaxmin><mode>: Remove.
4837         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4838         new builtin names.
4839         (vmin<q>_f<32,64>): Likewise.
4840         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4841         (FMAXMIN): New.
4842         (su): Add mappings for smax, smin, umax, umin.
4843         (maxmin): New.
4844         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4845         (FMAXMIN): Rename as...
4846         (FMAXMIN_UNS): ...This.
4847         (maxminv): Remove.
4848         (fmaxminv): Likewise.
4849         (fmaxmin): Likewise.
4850         (maxmin_uns): New.
4851         (maxmin_uns_op): Likewise.
4852
4853 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4854
4855         * config/aarch64/arm_neon.h
4856         (vac<ge, gt><sd>_f<32, 64>): Rename to...
4857         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4858         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4859
4860 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4861
4862         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4863         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4864
4865 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4866
4867         * config/aarch64/aarch64-simd.md
4868         (vcond<mode>_internal): Handle special cases for constant masks.
4869         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4870         (vcondu<mode><mode>): Likewise.
4871         (vcond<v_cmp_result><mode>): New.
4872
4873 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4874
4875         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4876         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4877         * config/aarch64/aarch64-simd-builtins.def
4878         (cmeq): Update to BUILTIN_VALLDI.
4879         (cmgt): Likewise.
4880         (cmge): Likewise.
4881         (cmle): Likewise.
4882         (cmlt): Likewise.
4883         * config/aarch64/arm_neon.h
4884         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4885         to builtins or C as appropriate.
4886
4887 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4888
4889         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4890         (cmgeu): ...This.
4891         (cmhi): Rename to...
4892         (cmgtu): ...This.
4893         * config/aarch64/aarch64-simd.md
4894         (simd_mode): Add SF.
4895         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4896         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4897         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4898         (cstore<mode>_neg): ...This.
4899         * config/aarch64/iterators.md
4900         (VALLF): new.
4901         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4902         (COMPARISONS): New.
4903         (UCOMPARISONS): Likewise.
4904         (optab): Add missing comparisons.
4905         (n_optab): New.
4906         (cmp_1): Likewise.
4907         (cmp_2): Likewise.
4908         (CMP): Likewise.
4909         (cmp): Remove.
4910         (VCMP_S): Likewise.
4911         (VCMP_U): Likewise.
4912         (V_cmp_result): Add DF, SF modes.
4913         (v_cmp_result): Likewise.
4914         (v): Likewise.
4915         (vmtype): Likewise.
4916         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4917
4918 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
4919
4920         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4921         define_insn to define_insn_and_split.
4922         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4923         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4924         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4925         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4926         (thumb2_negscc): Likewise.
4927
4928 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4929
4930         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4931
4932 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4933
4934         * config/arm/thumb2.md: Remove trailing whitespaces.
4935
4936 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4937
4938         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4939         Use gen_int_mode rather than GEN_INT.
4940
4941 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4942
4943         * value-prof.c (stream_in_histogram_value): Remove the strayed
4944         debug_gimple_stmt.
4945
4946 2013-04-30  Richard Biener  <rguenther@suse.de>
4947
4948         PR middle-end/57122
4949         * cfghooks.c (split_edge): Properly check for the loop latch edge.
4950
4951 2013-04-30  Richard Biener  <rguenther@suse.de>
4952
4953         PR middle-end/57107
4954         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4955
4956 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
4957
4958         PR rtl-optimization/56957
4959         PR rtl-optimization/57105
4960         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4961         variable.  Use just INSN_UID for determining whether an insn
4962         should be only disconnected from the insn stream.
4963         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4964
4965 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
4966
4967         PR tree-optimization/57104
4968         * tsan.c (instrument_expr): Don't instrument accesses to
4969         DECL_HARD_REGISTER VAR_DECLs.
4970
4971 2013-04-30  Richard Biener  <rguenther@suse.de>
4972
4973         * function.h (loops_for_fn): New inline function.
4974         (set_loops_for_fn): Likewise.
4975         * cfgloop.h (place_new_loop): Add struct function parameter.
4976         (get_loop): Likewise.
4977         (get_loops): Likewise.
4978         (number_of_loops): Likewise.
4979         (fel_next): Adjust.
4980         (fel_init): Likewise.
4981         * cfg.c (get_loop_copy): Adjust.
4982         * cfgloop.c (flow_loops_dump): Likewise.
4983         (record_loop_exits): Likewise.
4984         (verify_loop_structure): Likewise.
4985         * cfgloopanal.c (mark_irreducible_loops): Likewise.
4986         (estimate_reg_pressure_cost): Likewise.
4987         (mark_loop_exit_edges): Likewise.
4988         * cfgloopmanip.c (place_new_loop): Likewise.
4989         (add_loop): Likewise.
4990         (duplicate_loop): Likewise.
4991         * graph.c (draw_cfg_nodes): Likewise.
4992         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4993         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4994         (extract_affine_chrec): Likewise.
4995         (build_scop_iteration_domain): Likewise.
4996         * graphite.c (graphite_initialize): Likewise.
4997         * ira-build.c (create_loop_tree_nodes): Likewise.
4998         (more_one_region_p): Likewise.
4999         (rebuild_regno_allocno_maps): Likewise.
5000         (mark_loops_for_removal): Likewise.
5001         (mark_all_loops_for_removal): Likewise.
5002         (remove_unnecessary_regions): Likewise.
5003         (ira_build): Likewise.
5004         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5005         * loop-init.c (fix_loop_structure): Likewise.
5006         (gate_rtl_move_loop_invariants): Likewise.
5007         (gate_rtl_unswitch): Likewise.
5008         (gate_rtl_unroll_and_peel_loops): Likewise.
5009         (rtl_doloop): Likewise.
5010         * lto-streamer-in.c (input_cfg): Likewise.
5011         * lto-streamer-out.c (output_cfg): Likewise.
5012         * modulo-sched.c (sms_schedule): Likewise.
5013         * predict.c (tree_estimate_probability): Likewise.
5014         (tree_estimate_probability_driver): Likewise.
5015         (estimate_loops): Likewise.
5016         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5017         (move_sese_region_to_fn): Likewise.
5018         (debug_loop_num): Likewise.
5019         * tree-chrec.c (chrec_evaluate): Likewise.
5020         (hide_evolution_in_other_loops_than_loop): Likewise.
5021         (chrec_component_in_loop_num): Likewise.
5022         (reset_evolution_in_loop): Likewise.
5023         (evolution_function_is_invariant_rec_p): Likewise.
5024         * tree-if-conv.c (main_tree_if_conversion): Likewise.
5025         * tree-inline.c (copy_loops): Likewise.
5026         (copy_cfg_body): Likewise.
5027         (tree_function_versioning): Likewise.
5028         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5029         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5030         Likewise.
5031         (add_to_evolution_1): Likewise.
5032         (scev_const_prop): Likewise.
5033         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5034         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5035         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5036         (tree_ssa_lim_initialize): Likewise.
5037         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5038         (verify_loop_closed_ssa): Likewise.
5039         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
5040         (tree_ssa_loop_im): Likewise.
5041         (tree_ssa_loop_unswitch): Likewise.
5042         (tree_vectorize): Likewise.
5043         (check_data_deps): Likewise.
5044         (tree_ssa_loop_ivcanon): Likewise.
5045         (tree_ssa_loop_bounds): Likewise.
5046         (tree_complete_unroll): Likewise.
5047         (tree_complete_unroll_inner): Likewise.
5048         (tree_parallelize_loops): Likewise.
5049         (tree_ssa_loop_prefetch): Likewise.
5050         (tree_ssa_loop_ivopts): Likewise.
5051         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5052         * tree-vectorizer.c (vectorize_loops): Likewise.
5053
5054 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
5055
5056         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5057         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5058         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5059         with EABI_LINK_SPEC.
5060
5061 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5062
5063         PR target/44578
5064         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5065         alternative.
5066
5067 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5068
5069         PR target/57097
5070         * lra-constraints.c (process_alt_operands): Discourage a bit more
5071         using memory for pseudos.  Print cost dump for alternatives.
5072         Modify cost values for conflicts with early clobbers.
5073         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5074
5075 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5076
5077         PR target/57098
5078         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5079
5080 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5081
5082         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5083         from/to S register.
5084         (movdi_aarch64): Support LDR/STR from/to D register.
5085
5086 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5087
5088         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5089         or higher by default.
5090
5091 2013-04-29  Richard Biener  <rguenther@suse.de>
5092
5093         PR middle-end/57075
5094         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5095         even if not adding abnormal edges for calls that can make
5096         abnormal gotos.
5097
5098 2013-04-29  Richard Biener  <rguenther@suse.de>
5099
5100         PR middle-end/57103
5101         * tree-cfg.c (move_stmt_op): Fix condition under which to update
5102         TREE_BLOCK.
5103         (move_stmt_r): Remove redundant checking.
5104
5105 2013-04-29  Teresa Johnson  <tejohnson@google.com>
5106
5107         PR bootstrap/57077
5108         * basic-block.h (apply_scale): New function.
5109         (apply_probability): Use apply_scale.
5110         * gimple-streamer-in.c (input_bb): Ditto.
5111         * lto-streamer-in.c (input_cfg): Ditto.
5112         * lto-cgraph.c (merge_profile_summaries): Ditto.
5113         * tree-optimize.c (execute_fixup_cfg): Ditto.
5114         * tree-inline.c (copy_bb): Update comment to use apply_scale.
5115         (copy_edges_for_bb): Ditto.
5116         (copy_cfg_body): Ditto.
5117
5118 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5119
5120         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5121         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5122         (tail_merge_optimize): Handle current_loops == NULL.
5123
5124 2013-04-26  Jeff Law  <law@redhat.com>
5125
5126         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5127         (simplify_cond_using_ranges): Generalize code to simplify
5128         COND_EXPRs where one argument is a constant and the other
5129         is an SSA_NAME created by an integral type conversion.
5130
5131 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5132
5133         * config/arm/arm.md (store_minmaxsi): Use only when
5134         optimize_insn_for_size_p.
5135
5136 2013-04-29  Christian Bruel  <christian.bruel@st.com>
5137
5138         PR target/57108
5139         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5140
5141 2013-04-29  Richard Biener  <rguenther@suse.de>
5142
5143         PR middle-end/57089
5144         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5145         loop tree make sure to schedule a fixup for the child as well.
5146         (expand_omp_for_generic): Properly add loops.
5147         (expand_omp_for_static_nochunk): Likewise.
5148         (expand_omp_for_static_chunk): Likewise.
5149         (expand_omp_for): For the degenerate case fixup loops.
5150         (expand_omp_sections): Fix default bb placement in loops.
5151         (expand_omp_atomic_pipeline): Properly add loops.
5152
5153 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5154
5155         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5156
5157 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5158
5159         * tree-ssa-tail-merge.c: Update header comment.
5160
5161 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5162
5163         * config/aarch64/arm_neon.h
5164         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5165         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5166         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5167         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5168         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5169         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5170         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5171         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5172
5173 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5174
5175         * config/aarch64/aarch64-simd.md
5176         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5177         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5178         fix_trunc, fixuns_trunc.
5179         (ftrunc<VDQF:mode>2): New.
5180         * config/aarch64/iterators.md (optab): Add fix, fixuns.
5181         (fix_trunc_optab): New.
5182
5183 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5184
5185         * config/aarch64/aarch64-builtins.c
5186         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5187         iceilf, lround, iroundf.
5188
5189 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5190
5191         PR target/54349
5192         * config/i386/i386.h (enum ix86_tune_indices)
5193         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5194         New, split from X86_TUNE_INTER_UNIT_MOVES.
5195         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5196         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5197         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5198         (TARGET_INTER_UNIT_MOVES): Remove.
5199         * config/i386/i386.c (initial_ix86_tune_features): Update.
5200         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5201         (ix86_expand_convert_uns_didf_sse): Use
5202         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5203         (ix86_expand_vector_init_one_nonzero): Ditto.
5204         (ix86_expand_vector_init_interleave): Ditto.
5205         (inline_secondary_memory_needed): Return true for moves from SSE class
5206         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5207         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5208         * config/i386/constraints.md (Yi, Ym): Depend on
5209         TARGET_INTER_UNIT_MOVES_TO_VEC.
5210         (Yj, Yn): New constraints.
5211         * config/i386/i386.md (*movdi_internal): Change constraints of
5212         operand 1 from Yi to Yj and from Ym to Yn.
5213         (*movsi_internal): Ditto.
5214         (*movdf_internal): Ditto.
5215         (*movsf_internal): Ditto.
5216         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5217         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5218         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5219         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5220         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5221         * config/i386/sse.md (movdi_to_sse): Ditto.
5222         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5223         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5224         TARGET_INTER_UNIT_MOVES.
5225         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5226         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5227         instead of TARGET_INTER_UNIT_MOVES.
5228         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5229         operand 1 from Yi to Yj and from Ym to Yn.
5230
5231 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5232
5233         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5234         (float_truncate_hi_): Likewise.
5235         (float_extend_lo_): Likewise.
5236         (float_truncate_lo_): Likewise.
5237         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5238         (aarch64_float_extend_lo_v2df): Likewise.
5239         (vec_unpacks_hi_v4sf): Likewise.
5240         (aarch64_float_truncate_lo_v2sf): Likewise.
5241         (aarch64_float_truncate_hi_v4sf): Likewise.
5242         (vec_pack_trunc_v2df): Likewise.
5243         (vec_pack_trunc_df): Likewise.
5244
5245 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5246
5247         * config/aarch64/aarch64-builtins.c
5248         (aarch64_fold_builtin): Fold float conversions.
5249         * config/aarch64/aarch64-simd-builtins.def
5250         (floatv2si, floatv4si, floatv2di): New.
5251         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5252         * config/aarch64/aarch64-simd.md
5253         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5254         * config/aarch64/iterators.md (FLOATUORS): New.
5255         (optab): Add float, floatuns.
5256         (su_optab): Likewise.
5257
5258 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5259
5260         * config/aarch64/aarch64-builtins.c
5261         (aarch64_builtin_vectorized_function): Use new names for
5262         fcvt builtins.
5263         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5264         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5265         (fcvtzu): Split as...
5266         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5267         (fcvtas): Split as...
5268         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5269         (fcvtau): Split as...
5270         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5271         (fcvtps): Split as...
5272         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5273         (fcvtpu): Split as...
5274         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5275         (fcvtms): Split as...
5276         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5277         (fcvtmu): Split as...
5278         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5279         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5280         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5281         (lfrintnusf, lfrintnudf): Likewise.
5282         * config/aarch64/aarch64-simd.md
5283         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5284         define_insn.
5285         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5286         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5287         (fcvt_pattern): Likewise.
5288
5289 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5290
5291         * config/aarch64/aarch64-simd.md
5292         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5293         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5294
5295 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5296
5297         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5298         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5299         (vrnd<a,m,n,p>_f32): Implement using builtins.
5300         (vrnd<i,x><q>_f<32, 64>): New.
5301
5302 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5303
5304         * config/aarch64/aarch64-builtins.c
5305         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5306         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5307         (frintz): Rename to...
5308         (btrunc): ...this.
5309         (frintp): Rename to...
5310         (ceil): ...this.
5311         (frintm): Rename to...
5312         (floor): ...this.
5313         (frinti): Rename to...
5314         (nearbyint): ...this.
5315         (frintx): Rename to...
5316         (rint): ...this.
5317         (frinta): Rename to...
5318         (round): ...this.
5319         * config/aarch64/aarch64-simd.md
5320         (aarch64_frint<frint_suffix><mode>): Delete.
5321         (<frint_pattern><mode>2): Convert to insn.
5322         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5323         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5324         (frint_pattern): Likewise.
5325         (frint_suffix): Likewise.
5326
5327 2013-04-29  Richard Biener  <rguenther@suse.de>
5328
5329         PR tree-optimization/57081
5330         * loop-init.c: Include tree-flow.h.
5331         (loop_optimizer_finalize): Free number of iteration estimates.
5332         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5333
5334 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
5335
5336         PR tree-optimization/57083
5337         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5338         non-singleton shift count range, zero extend low_bound for uns case.
5339
5340         * config/i386/predicates.md (general_vector_operand): New predicate.
5341         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5342         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5343         if they aren't nonimmediate operands.  If their original values
5344         satisfy const_vector_equal_evenodd_p, don't shift them.
5345         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5346         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
5347         if not nonimmediate_operand.
5348         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5349         instead of register_operand.
5350         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5351
5352 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5353
5354         * stor-layout.c (finalize_size_functions): Allocate a structure and
5355         reset cfun before dumping the functions.
5356
5357 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
5358
5359         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5360
5361         PR target/56866
5362         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5363         use xop_pmacsdqh if uns_p.
5364         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5365         the immediate rotate count.
5366
5367 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
5368
5369         * rtl.h (struct rtx_def): Add comment for field jump.
5370         (LRA_SUBREG_P): New macro.
5371         * recog.c (register_operand): Check LRA_SUBREG_P.
5372         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5373         stack frame.
5374         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5375         (lra_final_code_change): Skip subreg change for operators.
5376         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5377         if there are no operand changes.
5378         * lra-constraints.c (curr_insn_set): New.
5379         (match_reload): Set LRA_SUBREG_P.
5380         (emit_spill_move): Ditto.
5381         (check_and_process_move): Use curr_insn_set. Process only single
5382         set insns.  Don't initialize sec_mem_p and change_p.
5383         (simplify_operand_subreg): Use LRA_SUBREG_P.
5384         (reg_in_class_p): New function.
5385         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5386         of #ifdef.  Add code to remove cycling.
5387         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5388         non-null disp.  Reload inner instead of disp when base and index
5389         are null.  Try to put lo_sum into register.
5390         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5391         (check_and_process_move): Move code for move cost check to
5392         simple_move_p.  Remove equiv_substitution.
5393         (simple_move_p): New function.
5394         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5395         curr_insn_set.  Call check_and_process_move only for single set
5396         insns.  Use the new function.  Move call of check_and_process_move
5397         after operand equiv substitution and address process.
5398
5399 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5400
5401         PR go/57045
5402         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5403         with nonlocal goto receivers or returns twice calls, ignore
5404         unininitialized values from abnormal edges to nl goto receiver
5405         or returns twice call.
5406
5407 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5408
5409         PR tree-optimization/57051
5410         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5411         and VEC_RSHIFT_EXPR if shift count is a multiple of element
5412         bitsize.
5413
5414 2013-04-26  Richard Biener  <rguenther@suse.de>
5415
5416         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5417         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
5418         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5419         (fixup_loop_arrays_after_move): New function.
5420         (move_sese_region_to_fn): Properly outline the loop tree parts
5421         of the SESE region.
5422
5423 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
5424
5425         * config/i386/i386.md (type, unit): Fix long lines.
5426
5427 2013-04-26  Richard Biener  <rguenther@suse.de>
5428
5429         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5430         (lto-streamer-out.o): Likewise.
5431         * cfgloop.c (init_loops_structure): Export, add struct function
5432         argument and adjust.
5433         (flow_loops_find): Adjust.
5434         * cfgloop.h (enum loop_estimation): Add EST_LAST.
5435         (init_loops_structure): Declare.
5436         * lto-streamer-in.c: Include cfgloop.h.
5437         (input_cfg): Input the loop tree.
5438         * lto-streamer-out.c: Include cfgloop.h.
5439         (output_cfg): Output the loop tree.
5440         (output_struct_function_base): Do not drop PROP_loops.
5441
5442 2013-03-26  Richard Biener  <rguenther@suse.de>
5443
5444         * tree-cfg.c (execute_build_cfg): Build the loop tree.
5445         (pass_build_cfg): Provide PROP_loops.
5446         (move_sese_region_to_fn): Remove loops that are outlined into fn
5447         for now.
5448         * tree-inline.c: Include cfgloop.h.
5449         (initialize_cfun): Do not drop PROP_loops.
5450         (copy_loops): New function.
5451         (copy_cfg_body): Copy loop structure.
5452         (tree_function_versioning): Initialize destination loop tree.
5453         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5454         (pass_parallelize_loops): Do IL verification.
5455         * loop-init.c (loop_optimizer_init): Fixup loops if required.
5456         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5457         the CFG make sure we fixup loops as well.
5458         * tree-ssa-tail-merge.c: Include cfgloop.h.
5459         (replace_block_by): When merging loop latches mark loops for fixup.
5460         * lto-streamer-out.c (output_struct_function_base): Drop
5461         PROP_loops for now.
5462         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5463         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5464         * ipa-split.c: Include cfgloop.h.
5465         (split_function): Add the new return block to the loop tree root.
5466         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5467         whether we have removed the forwarder block.
5468         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5469         * cfgloop.h (place_new_loop): Declare.
5470         * cfgloopmanip.c (place_new_loop): Export.
5471         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5472         (tree-switch-conversion.o): Likewise.
5473         (tree-complex.o): Likewise.
5474         (tree-inline.o): Likewise.
5475         (tree-ssa-tailmerge.o): Likewise.
5476         (ipa-split.o): Likewise.
5477         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5478         (tree-ssa-copy.o): Likewise.
5479         * tree-switch-conversion.c: Include cfgloop.h
5480         (process_switch): If we emit a bit-test cascade, schedule loops
5481         for fixup.
5482         * tree-complex.c: Include cfgloop.h.
5483         (expand_complex_div_wide): Properly add new basic-blocks to loops.
5484         * asan.c: Include cfgloop.h.
5485         (create_cond_insert_point): Properly add new basic-blocks to
5486         loops, schedule loop fixup.
5487         * cfgloop.c (verify_loop_structure): Check that looks are not
5488         marked for fixup.
5489         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5490         to loops.
5491         (expand_omp_for_generic): Likewise.
5492         (expand_omp_sections): Likewise.
5493         (expand_omp_atomic_pipeline): Schedule loops for fixup.
5494         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5495         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5496         is initialized, not when loops are present.
5497         * tree-parloops.c (parallelize_loops): Remove checking here.
5498         * passes.c (init_optimization_passes): Schedule a copy-propagation
5499         pass before complete unrolling of inner loops.
5500
5501 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5502
5503         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5504         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5505         (colorize_init): Add argument to _WIN32 version.
5506         * toplev.c: Include diagnostic-color.h.
5507         (process_options): Default to -fdiagnostics-color=auto if
5508         GCC_COLORS env var is in the environment.
5509         * common.opt (fdiagnostics-color=): Add Var and Init.
5510         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5511         env var is in the environment, the default is auto rather than never.
5512
5513         * diagnostic.h (file_name_as_prefix): Add context argument.
5514         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
5515         the string as locus.
5516         * langhooks.c (lhd_print_error_function): Adjust caller.
5517
5518 2013-04-25  Lawrence Crowl  <crowl@google.com>
5519
5520         * var-tracking.c (shared_hash_def::htab):
5521         Change type to hash_table.  Update dependent calls and types.
5522
5523 2013-04-25  Lawrence Crowl  <crowl@google.com>
5524
5525         * Makefile.in: Update as needed below.
5526
5527         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5528         Move declaration to after the type's method definitons.
5529
5530         * attribs.c (htab_t scoped_attributes::attribute_hash):
5531         Change type to hash_table.  Update dependent calls and types.
5532
5533         * bitmap.c (htab_t bitmap_desc_hash):
5534         Change type to hash_table.  Update dependent calls and types.
5535
5536         * cselib.c (htab_t cselib_hash_table):
5537         Change type to hash_table.  Update dependent calls and types.
5538
5539         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5540         (hash_string_slot_node): Move implementation into lto-streamer.h
5541         struct string_slot_hasher.
5542         (eq_string_slot_node): Likewise.
5543
5544         * data-streamer-out.c: Update output_block::string_hash_table
5545         dependent calls and types.
5546
5547         * dwarf2cfi.c (htab_t trace_index):
5548         Change type to hash_table.  Update dependent calls and types.
5549
5550         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5551         Change type to hash_table.  Update dependent calls and types.
5552         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5553         (htab_t optimize_external_refs::map): Likewise.
5554         (htab_t output_comp_unit::extern_map): Likewise.
5555         (htab_t output_comdat_type_unit::extern_map): Likewise.
5556         (htab_t output_macinfo::macinfo_htab): Likewise.
5557         (htab_t optimize_location_lists::htab): Likewise.
5558         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5559
5560         * except.c (htab_t ehspec_hash_type):
5561         Change type to hash_table.  Update dependent calls and types.
5562         (assign_filter_values::ttypes): Likewise.
5563         (assign_filter_values::ehspec): Likewise.
5564         (sjlj_assign_call_site_values::ar_hash): Likewise.
5565         (convert_to_eh_region_ranges::ar_hash): Likewise.
5566
5567         * gcse.c (htab_t pre_ldst_table):
5568         Change type to hash_table.  Update dependent calls and types.
5569
5570         * ggc-common.c (htab_t saving_htab):
5571         Change type to hash_table.  Update dependent calls and types.
5572         (htab_t loc_hash): Likewise.
5573         (htab_t ptr_hash): Likewise.
5574         (call_count): Rename ggc_call_count.
5575         (call_alloc): Rename ggc_call_alloc.
5576         (loc_descriptor): Rename make_loc_descriptor.
5577         (add_statistics): Rename ggc_add_statistics.
5578
5579         * ggc-common.c (saving_htab):
5580         Change type to hash_table.  Update dependent calls and types.
5581
5582         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5583         (push_gimplify_context): Likewise.
5584         (pop_gimplify_context): Likewise.
5585         (struct gimple_temp_hash_elt): Added.
5586         (struct gimplify_hasher): Likewise.
5587         (struct gimplify_ctx.temp_htab):
5588         Change type to hash_table.  Update dependent calls and types.
5589
5590         * gimple-fold.c: Include gimplify-ctx.h.
5591
5592         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5593         Change type to hash_table.  Update dependent calls and types.
5594         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5595         avoid potential global name collision.
5596
5597         * gimplify.c: Include gimplify-ctx.h.
5598         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5599         (htab_t gimplify_ctx::temp_htab):
5600         Update dependent calls and types for new type hash_table.
5601         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5602         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5603
5604         * gimplify-ctx.h: New.
5605         (struct gimple_temp_hash_elt): Move from gimplify.c.
5606         (class gimplify_hasher): New.
5607         (struct gimplify_ctx): Move from gimple.h.
5608         (htab_t gimplify_ctx::temp_htab):
5609         Change type to hash_table.  Update dependent calls and types.
5610
5611         * graphite-clast-to-gimple.c: Include graphite-htab.h.
5612         (htab_t ivs_params::newivs_index):
5613         Change type to hash_table.  Update dependent calls and types.
5614         (htab_t ivs_params::params_index): Likewise.
5615         (htab_t print_generated_program::params_index): Likewise.
5616         (htab_t gloog::newivs_index): Likewise.
5617         (htab_t gloog::params_index): Likewise.
5618
5619         * graphite.c: Include graphite-htab.h.
5620         4htab_t graphite_transform_loops::bb_pbb_mapping):
5621         Change type to hash_table.  Update dependent calls and types.
5622
5623         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5624         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5625         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5626
5627         * graphite-dependences.c: Include graphite-htab.h.
5628         (loop_is_parallel_p): Change hash table type of parameter.
5629
5630         * graphite-htab.h: New.
5631         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5632         (extern find_pbb_via_hash): Move from graphite-poly.h.
5633         (extern loop_is_parallel_p): Move from graphite-poly.h.
5634         (extern get_loop_body_pbbs): Move from graphite-poly.h.
5635
5636         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5637         (extern loop_is_parallel_p): Move to graphite-htab.h.
5638         (extern get_loop_body_pbbs): Move to graphite-htab.h.
5639
5640         * haifa-sched.c (htab_t delay_htab):
5641         Change type to hash_table.  Update dependent calls and types.
5642         (htab_t delay_htab_i2): Likewise.
5643
5644         * ira-color.c (htab_t allocno_hard_regs_htab):
5645         Change type to hash_table.  Update dependent calls and types.
5646
5647         * ira-costs.c (htab_t cost_classes_htab):
5648         Change type to hash_table.  Update dependent calls and types.
5649
5650         * loop-invariant.c (htab_t merge_identical_invariants::eq):
5651         Change type to hash_table.  Update dependent calls and types.
5652
5653         * loop-iv.c (htab_t bivs):
5654         Change type to hash_table.  Update dependent calls and types.
5655
5656         * loop-unroll.c (htab_t opt_info::insns_to_split):
5657         Change type to hash_table.  Update dependent calls and types.
5658         (htab_t opt_info::insns_with_var_to_expand): Likewise.
5659
5660         * lto-streamer.h (struct string_slot): Move from data-streamer.h
5661         (struct string_slot_hasher): New.
5662         (htab_t output_block::string_hash_table):
5663         Change type to hash_table.  Update dependent calls and types.
5664
5665         * lto-streamer-in.c (freeing_string_slot_hasher): New.
5666         (htab_t file_name_hash_table):
5667         Change type to hash_table.  Update dependent calls and types.
5668
5669         * lto-streamer-out.c: Update output_block::string_hash_table dependent
5670         calls and types.
5671
5672         * lto-streamer.c (htab_t tree_htab):
5673         Change type to hash_table.  Update dependent calls and types.
5674
5675         * omp-low.c: Include gimplify-ctx.h.
5676
5677         * passes.c (htab_t name_to_pass_map):
5678         Change type to hash_table.  Update dependent calls and types.
5679         (pass_traverse): Rename to passes_pass_traverse.
5680
5681         * plugin.c (htab_t event_tab):
5682         Change type to hash_table.  Update dependent calls and types.
5683
5684         * postreload-gcse.c (htab_t expr_table):
5685         Change type to hash_table.  Update dependent calls and types.
5686         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5687
5688         * sese.c (debug_rename_map_1): Make extern.
5689         (htab_t copy_bb_and_scalar_dependences::rename_map):
5690         Change type to hash_table.  Update dependent calls and types.
5691
5692         * sese.h (extern debug_rename_map): Move to .c file.
5693
5694         * store-motion.c (htab_t store_motion_mems_table):
5695         Change type to hash_table.  Update dependent calls and types.
5696
5697         * trans-mem.c (htab_t tm_new_mem_hash):
5698         Change type to hash_table.  Update dependent calls and types.
5699
5700         * tree-browser.c (htab_t TB_up_ht):
5701         Change type to hash_table.  Update dependent calls and types.
5702
5703         * tree-cfg.c (htab_t discriminator_per_locus):
5704         Change type to hash_table.  Update dependent calls and types.
5705
5706         * tree-complex.c: Include tree-hasher.h
5707         (htab_t complex_variable_components):
5708         Change type to hash_table.  Update dependent calls and types.
5709
5710         * tree-eh.c (htab_t finally_tree):
5711         Change type to hash_table.  Update dependent calls and types.
5712
5713         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5714         struct int_tree_hasher.
5715         (extern int_tree_map_eq): Likewise.
5716         (uid_decl_map_hash): Removed.
5717         (extern decl_tree_map_eq): Likewise.
5718
5719         * tree-hasher.h: New.
5720         (struct int_tree_hasher): New.
5721         (typedef int_tree_htab_type): New.
5722
5723         * tree-inline.c: Include gimplify-ctx.h.
5724
5725         * tree-mudflap.c: Include gimplify-ctx.h.
5726
5727         * tree-parloops.c: Include tree-hasher.h.
5728         (htab_t eliminate_local_variables_stmt::decl_address):
5729         Change type to hash_table.  Update dependent calls and types.
5730         (htab_t separate_decls_in_region::decl_copies): Likewise.
5731
5732         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5733         Change type to hash_table.  Update dependent calls and types.
5734
5735         * tree-sra.c (candidates):
5736         Change type to hash_table.  Update dependent calls and types.
5737
5738         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5739         in tree-flow.h.
5740         (int_tree_map_hash): Likewise.
5741
5742         * tree-ssa-dom.c (htab_t avail_exprs):
5743         Change type to hash_table.  Update dependent calls and types.
5744
5745         * tree-ssa-live.c (var_map_base_init::tree_to_index):
5746         Change type to hash_table.  Update dependent calls and types.
5747
5748         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5749         Change type to hash_table.  Update dependent calls and types.
5750
5751         * tree-ssa-phiopt.c (seen_ssa_names):
5752         Change type to hash_table.  Update dependent calls and types.
5753
5754         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5755         Change type to hash_table.  Update dependent calls and types.
5756
5757         * tree-ssa-uncprop.c (equiv):
5758         Change type to hash_table.  Update dependent calls and types.
5759
5760 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
5761
5762         PR rtl-optimization/57003
5763         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5764         call note_stores with kill_clobbered_value callback again after
5765         killing regs_invalidated_by_call.
5766
5767 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5768
5769         * config/aarch64/aarch64-simd.md
5770         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5771         (aarch64_simd_bsl<mode>): Likewise.
5772         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5773
5774 2013-04-25  Marek Polacek  <polacek@redhat.com>
5775
5776         PR tree-optimization/57066
5777         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5778
5779 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
5780
5781         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5782
5783 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5784
5785         * config/aarch64/aarch64-builtins.c
5786         (aarch64_fold_builtin): New.
5787         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5788         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5789         * config/aarch64/aarch64-simd-builtins.def (abs): New.
5790         * config/aarch64/arm_neon.h
5791         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5792
5793 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5794             Tejas Belagod  <tejas.belagod@arm.com>
5795
5796         * config/aarch64/aarch64-builtins.c
5797         (aarch64_gimple_fold_builtin): New.
5798         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5799         * config/aarch64/aarch64-simd-builtins.def (addv): New.
5800         * config/aarch64/aarch64-simd.md (addpv4sf): New.
5801         (addvv4sf): Update.
5802         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5803
5804 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5805
5806         * config/aarch64/aarch64.md
5807         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5808
5809 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5810
5811         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5812         (*ngcsi_uxtw): New pattern.
5813
5814 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5815             Julian Brown  <julian@codesourcery.com>
5816
5817         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5818         (TB_DREG): Add T_V4HF.
5819         (v4hf_UP): New macro.
5820         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5821         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5822         Handle initialisation of V4HF. Adjust initialisation of reinterpret
5823         built-ins.
5824         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5825         (arm_vector_mode_supported_p): Handle V4HF.
5826         (arm_mangle_map): Handle V4HFmode.
5827         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5828         * config/arm/arm_neon_builtins.def: Add entries for
5829         vcvtv4hfv4sf, vcvtv4sfv4hf.
5830         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5831         (neon_vcvtv4hfv4sf): Likewise.
5832         * config/arm/neon-gen.ml: Handle half-precision floating point
5833         features.
5834         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5835         * config/arm/arm_neon.h: Regenerate.
5836         * config/arm/neon.ml (type elts): Add F16.
5837         (type vectype): Add T_float16x4, T_floatHF.
5838         (type vecmode): Add V4HF.
5839         (type features): Add Requires_FP_bit feature.
5840         (elt_width): Handle F16.
5841         (elt_class): Likewise.
5842         (elt_of_class_width): Likewise.
5843         (mode_of_elt): Refactor.
5844         (type_for_elt): Handle F16, fix error messages.
5845         (vectype_size): Handle T_float16x4.
5846         (vcvt_sh): New function.
5847         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5848         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5849         (string_of_mode): Handle V4HF.
5850         * doc/arm-neon-intrinsics.texi: Regenerate.
5851
5852 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5853
5854         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5855         format specifier in 'X' case.
5856
5857 2013-04-25  Alan Modra  <amodra@gmail.com>
5858
5859         PR target/57052
5860         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5861         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5862         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5863         Repeat for many other rotate/shift and mask patterns using subregs.
5864         Name lshiftrt insns.
5865         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5866         on WORDS_BIG_ENDIAN.
5867
5868 2013-04-25  Alan Modra  <amodra@gmail.com>
5869
5870         * config.gcc: Support little-endian powerpc-linux targets.
5871         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5872         (LINK_OS_LINUX_SPEC): Define.
5873         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5874         Preserve MASK_LITTLE_ENDIAN.
5875         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5876         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5877         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5878         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5879         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5880         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5881         Correct fp word order for little-endian.  Don't shift toc entries
5882         smaller than a word for little-endian.
5883         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5884         (bswapdi2 splits): Correct low-part subreg for little-endian.
5885         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5886         low/high where such is correct only for be.
5887         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5888         little-endian for -mcall-aixdesc.
5889
5890 2013-04-25  Alan Modra  <amodra@gmail.com>
5891
5892         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5893         replace_equiv_address_nv.
5894
5895 2013-04-25  Alan Modra  <amodra@gmail.com>
5896
5897         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5898
5899 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5900
5901         Revert:
5902         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5903         * rtl.h (struct rtx_def): ...
5904
5905 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5906
5907         PR rtl-optimizations/57046
5908         * lra-constraints (split_reg): Set up lra_risky_transformations_p
5909         for multi-reg splits.
5910
5911 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
5912
5913         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5914
5915 2013-04-24  Sterling Augustine  <saugustine@google.com>
5916
5917         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5918         (comp_dir_string, debug_str_dwo_section): New.
5919         (DEBUG_STR_DWO_SECTION): Rename to ...
5920         (DEBUG_DWO_STR_SECTION): ... this.
5921         (DEBUG_NORM_STR_SECTION): Delete.
5922         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5923         (DEBUG_STR_DWO_SECTION_FLAGS): New.
5924         (find_AT_string): Move most logic to ...
5925         (find_AT_string_in_table): ... here.  New.
5926         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5927         add_skeleton_AT_string.  Delete logic.
5928         (output_skeleton_debug_sections): Remove call to
5929         add_top_level_skeleton_die_attrs.
5930         (add_comp_dir_attribute): Move logic to comp_dir_string.
5931         (dwarf2out_init): Initialize debug_str_dwo_section.
5932         (output_indirect_string): Call find_string_form.
5933         (output_indirect_strings): Rewrite.
5934         (prune_unused_types): Empty skeleton_debug_str_hash.
5935         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5936         (dwarf2out_finish):  Call output_indirect_strings.
5937
5938 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5939
5940         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5941
5942 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5943
5944         * rtl.h (struct rtx_def): Add comment for field jump.
5945         (LRA_SUBREG_P): New macro.
5946         * recog.c (register_operand): Check LRA_SUBREG_P.
5947         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5948         stack frame.
5949         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5950         (lra_final_code_change): Skip subreg change for operators.
5951         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5952         if there are no operand changes.
5953         * lra-constraints.c (curr_insn_set): New.
5954         (match_reload): Set LRA_SUBREG_P.
5955         (emit_spill_move): Ditto.
5956         (check_and_process_move): Use curr_insn_set. Process only single
5957         set insns.  Don't initialize sec_mem_p and change_p.
5958         (simplify_operand_subreg): Use LRA_SUBREG_P.
5959         (reg_in_class_p): New function.
5960         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5961         of #ifdef.  Add code to remove cycling.
5962         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5963         non-null disp.  Reload inner instead of disp when base and index
5964         are null.  Try to put lo_sum into register.
5965         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5966         (check_and_process_move): Move code for move cost check to
5967         simple_move_p.  Remove equiv_substitution.
5968         (simple_move_p): New function.
5969         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5970         curr_insn_set.  Call check_and_process_move only for single set
5971         insns.  Use the new function.  Move call of check_and_process_move
5972         after operand equiv substitution and address process.
5973
5974 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
5975
5976         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5977         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5978         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5979
5980 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5981
5982         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5983
5984 2013-04-24  Marek Polacek  <polacek@redhat.com>
5985
5986         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5987         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5988         (select_loops_exit_conditions): Likewise.
5989         (number_of_iterations_for_all_loops): Likewise.
5990         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5991         (scev_analysis): Likewise.
5992
5993 2013-04-02  Catherine Moore  <clm@codesourcery.com>
5994             Chao-ying Fu <fu@mips.com>
5995
5996         * config/mips/micromips.md (jraddiusp): New pattern.
5997         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5998         instruction if possible.
5999
6000 2013-04-24  Alan Modra  <amodra@gmail.com>
6001
6002         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6003
6004 2013-04-24  Julian Brown  <julian@codesourcery.com>
6005             Chung-Lin Tang  <cltang@codesourcery.com>
6006
6007         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6008         dependency behavior in enumeration type DIE generation. Add TODO note
6009         to comments about future DW_FORM_sdata/udata re-work of related code.
6010
6011 2013-04-23  Lawrence Crowl  <crowl@google.com>
6012
6013         * Makefile.in: Update as needed below.
6014
6015         * hash-table.h (class hash_table):
6016         Correct many methods with parameter types compare_type to the correct
6017         value_type.  (Correct code was unlikely to notice the change.)
6018         (hash_table::elements_with_deleted) New.
6019         (class hashtable::iterator): New.
6020         (hashtable::begin()): New.
6021         (hashtable::end()): New.
6022         (FOR_EACH_HASH_TABLE_ELEMENT): New.
6023
6024         * statistics.c (statistics_hashes):
6025         Change type to hash_table.  Update dependent calls and types.
6026
6027         * tree-into-ssa.c (var_infos):
6028         Change type to hash_table.  Update dependent calls and types.
6029
6030         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6031         Change type to hash_table.  Update dependent calls and types.
6032
6033         * tree-ssa-loop-im.c (struct mem_ref.refs):
6034         Change type to hash_table.  Update dependent calls and types.
6035
6036         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6037         Change type to hash_table.  Update dependent calls and types.
6038
6039         * tree-ssa-sccvn.c (vn_tables_s::nary):
6040         Change type to hash_table.  Update dependent calls and types.
6041         (vn_tables_s::phis): Likewise.
6042         (vn_tables_s::references): Likewise.
6043
6044         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6045         (vn_reference_eq): Update parameter and return types.
6046
6047         * tree-ssa-structalias.c (pointer_equiv_class_table):
6048         Change type to hash_table.  Update dependent calls and types.
6049         (location_equiv_class_table): Likewise.
6050
6051         * tree-vect-data-refs.c: Consequential changes for making
6052         peeling a hash_table.
6053
6054         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6055         (destroy_loop_vec_info): Dependent hash_table update.
6056
6057         * tree-vectorizer.h (peeling_htab):
6058         Change type to hash_table.  Update dependent calls and types.
6059
6060 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
6061
6062         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6063         to check the register content is equal or not.
6064         * lra-constraints.c (match_reload): Use lra_assign_reg_val
6065         to assign register content record.
6066         * lra-eliminations.c (update_reg_eliminate): Use
6067         lra_update_reg_val_offset to update register content offset.
6068         * lra-int.h (struct lra_reg): Add offset member.
6069         (lra_reg_val_equal_p): New static inline function.
6070         (lra_update_reg_val_offset): New static inline function.
6071         (lra_assign_reg_val): New static inline function.
6072         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6073         to assign register content record.
6074         (initialize_lra_reg_info_element): Initial offset to zero.
6075
6076 2013-04-23  Catherine Moore  <clm@codesourcery.com>
6077
6078         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6079         operands.  Record compression.
6080
6081 2013-04-23  Xinliang David Li  <davidxl@google.com>
6082
6083         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6084
6085 2013-04-23  Richard Biener  <rguenther@suse.de>
6086
6087         PR middle-end/57036
6088         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6089         parameter, only add abnormal goto edges from the copied body
6090         if the call could perform abnormal gotos.
6091         (copy_cfg_body): Adjust.
6092
6093 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
6094
6095         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6096
6097 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6098
6099         * coretypes.h (gimple_stmt_iterator): Add struct to make
6100         compatible with C.
6101
6102 2013-04-23  Richard Biener  <rguenther@suse.de>
6103
6104         PR tree-optimization/57026
6105         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6106         from SSA names occuring in abnormal PHI nodes.
6107
6108 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6109
6110         * lto/lto.c (print_lto_report_1): Fix LTO report names.
6111
6112 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6113
6114         * lto/lto.c (print_lto_report_1): Declare early.
6115         (read_cgraph_and_symbols): Call print_lto_report_1 early.
6116
6117 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6118
6119         * common.opt (-flto-report-wpa): Add.
6120         * doc/invoke.texi (-flto-report-wpa): Add.
6121         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6122         (lto_main): dito.
6123
6124 2013-04-22  Xinliang David Li  <davidxl@google.com>
6125
6126         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6127         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6128         * Makefile.in: New dependency
6129
6130             David Daney <ddaney.cavm@gmail.com>
6131
6132         * configure.ac (gcc_cv_as_micromips_support):  Use the
6133         --fatal-warnings option.
6134         * configure: Regenerate.
6135
6136 2013-04-22  Marek Polacek  <polacek@redhat.com>
6137
6138         PR sanitizer/56990
6139         * tsan.c (instrument_expr): Don't instrument expression
6140         in case its size is zero.
6141
6142 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
6143
6144         PR target/57032
6145         Revert:
6146         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6147
6148         * config/alpha/alpha.c (TARGET_LRA_P): New define.
6149
6150 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6151
6152         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6153         (gimple_stmt_iterator): New typedef.
6154         * gimple.h (gimple_stmt_iterator): Rename to...
6155         (gimple_stmt_iterator_d): ... This.
6156         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6157         trees be valid for GIMPLE and GENERIC.
6158         (TARGET_GIMPLE_FOLD_BUILTIN): New.
6159         * gimple-fold.c (gimple_fold_call): Call target hook
6160         gimple_fold_builtin.
6161         * hooks.c (hook_bool_gsiptr_false): New.
6162         * hooks.h (hook_bool_gsiptr_false): New.
6163         * target.def (fold_stmt): New.
6164         * doc/tm.texi: Regenerate.
6165
6166 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
6167
6168         PR target/57018
6169         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6170         a set sp if no stack realignment.
6171
6172 2013-04-22  Nick Clifton  <nickc@redhat.com>
6173
6174         * config.gcc (tilegx-linux): Extend extra_objs rather than
6175         overwriting it.
6176         (tilepro-linux): Likewise.
6177
6178 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6179
6180         * config/aarch64/aarch64-builtins.c
6181         (CF): Remove.
6182         (CF0, CF1, CF2, CF3, CF4, CF10): New.
6183         (VAR<1-12>): Add MAP parameter.
6184         (BUILTIN_*): Likewise.
6185         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6186         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6187         (aarch64_ushl_n<mode>): Likewise.
6188         (aarch64_sshr_n<mode>): Likewise.
6189         (aarch64_ushr_n<mode>): Likewise.
6190         (aarch64_<maxmin><mode>): Likewise.
6191         (aarch64_sqrt<mode>): Likewise.
6192         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6193         (vshr<q>_n_*): Likewise.
6194
6195 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6196
6197         * config/aarch64/aarch64-builtins.c
6198         (aarch64_simd_builtin_type_mode): Handle SF types.
6199         (sf_UP): Define.
6200         (BUILTIN_GPF): Define.
6201         (aarch64_init_simd_builtins): Handle SF types.
6202         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6203         (frecps): Likewise.
6204         (frecpx): Likewise.
6205         * config/aarch64/aarch64-simd.md
6206         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6207         (aarch64_frecpe<mode>): New.
6208         (aarch64_frecps<mode>): Likewise.
6209         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6210         (v8type): Add frecp<esx>.
6211         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6212         (aarch64_frecps<mode>): Likewise.
6213         * config/aarch64/iterators.md (FRECP): New.
6214         (frecp_suffix): Likewise.
6215         * config/aarch64/arm_neon.h
6216         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6217
6218 2013-04-22  Christian Bruel  <christian.bruel@st.com>
6219
6220         PR target/56995
6221         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6222         (REG_CLASS_NAMES): Idem.
6223         (REG_CLASS_CONTENTS): Idem.
6224         (REGCLASS_HAS_FP_REG): Idem.
6225         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6226         (sh_conditional_register_usage): Idem.
6227
6228 2013-04-21  Jeff Law  <law@redhat.com>
6229
6230         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6231         (ssa_forward_propagate_and_combine): Use it.
6232
6233 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6234
6235         * lra.c: Update the flow chart diagram.
6236
6237 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6238
6239         PR rtl-optimization/56847
6240         * lra-constraints.c (process_alt_operands): Discourage alternative
6241         with non-matche doffsettable memory constraint fro memory with
6242         known offset.
6243
6244 2013-04-19  Richard Biener  <rguenther@suse.de>
6245
6246         PR tree-optimization/56982
6247         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6248         function.
6249         * gimplify.c (gimplify_call_expr): Notice special calls.
6250         (gimplify_modify_expr): Likewise.
6251         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6252         abnormal control flow receivers.
6253         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6254         in the same way as cfun->has_nonlocal_labels.
6255         (gimple_purge_dead_abnormal_call_edges): Likewise.
6256         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6257         receivers start a basic-block.
6258
6259 2013-04-19  Richard Biener  <rguenther@suse.de>
6260
6261         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6262         member ...
6263         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
6264         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6265         (SLP_TREE_LOAD_PERMUTATION): Add.
6266         (vect_transform_slp_perm_load): Adjust prototype.
6267         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6268         (vect_free_slp_instance): Likewise.
6269         (vect_create_new_slp_node): Likewise.
6270         (vect_supported_slp_permutation_p): Remove.
6271         (vect_slp_rearrange_stmts): Adjust.
6272         (vect_supported_load_permutation_p): Likewise.  Inline
6273         vect_supported_slp_permutation_p here.
6274         (vect_analyze_slp_instance): Compute load permutations per
6275         slp node instead of per instance.
6276         (vect_get_slp_defs): Adjust.
6277         (vect_transform_slp_perm_load): Likewise.
6278         (vect_schedule_slp_instance): Remove redundant code.
6279         (vect_schedule_slp): Remove hack for PR56270, add it ...
6280         * tree-vect-stmts.c (vectorizable_load): ... here, do not
6281         CSE loads for SLP.  Adjust.
6282
6283 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6284
6285         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6286         spelling in two comments.
6287
6288 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6289
6290         PR target/56797
6291         * config/arm/arm.c (load_multiple_sequence): Require SP
6292         as base register for loads if SP is in the register list.
6293
6294 2013-04-19  Martin Jambor  <mjambor@suse.cz>
6295
6296         PR tree-optimization/56718
6297         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6298         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6299         and made public.  Adjusted all callers.
6300         (ipa_intraprocedural_devirtualization): New function.
6301         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6302         (ipa_intraprocedural_devirtualization): Likewise.
6303         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6304
6305 2013-04-19  Richard Biener  <rguenther@suse.de>
6306
6307         PR tree-optimization/57000
6308         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6309
6310 2013-04-19  Terry Guo  <terry.guo@arm.com>
6311
6312         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6313         Replace with ...
6314         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
6315         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6316         (cortex_m4_fmacs): Use new reservations.
6317         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6318
6319 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
6320
6321         PR rtl-optimization/56999
6322         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6323         related code.
6324         (lra_coalesce): Remove split_origin_bitmap and related code.
6325         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
6326         ranges if necessary.
6327
6328 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
6329
6330         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6331         New array.
6332         (ix86_expand_call): Remove clobbered_registers array and use
6333         x86_64_ms_sysv_extra_clobbered_registers instead.
6334         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6335         Declare here.
6336         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6337         predicate.
6338         * config/i386/i386.md (*call_rex64_ms_sysv): Use
6339         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
6340         (*call_value_rex64_ms_sysv): Ditto.
6341
6342 2013-04-18  Cary Coutant  <ccoutant@google.com>
6343
6344         * dwarf2out.c (output_pubnames): Check die_perennial_p of
6345         parent instead of die_mark.
6346
6347 2013-04-18  Diego Novillo  <dnovillo@google.com>
6348
6349         * gimple.c (create_gimple_tmp): New.
6350         (get_expr_type): New.
6351         (build_assign): New.
6352         (build_type_cast): New.
6353         * gimple.h (enum ssa_mode): Define.
6354         (gimple_seq_set_location): New.
6355         * asan.c (build_check_stmt): Change some gimple_build_* calls
6356         to use build_assign and build_type_cast.
6357
6358 2013-04-18  Richard Biener  <rguenther@suse.de>
6359
6360         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6361         handle negative step.  Remove redundant checks.
6362         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6363         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6364         for negative step and grouped loads fail to vectorize.
6365
6366 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6367
6368         * emit-rtl.c (reset_insn_used_flags): New function.
6369         (reset_all_used_flags): Use it.
6370         (verify_insn_sharing): New function.
6371         (verify_rtl_sharing): Fix verification for SEQUENCEs.
6372
6373 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
6374
6375         PR tree-optimization/56984
6376         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6377         and (x >> M) >= N don't register any assertion if N << M is the
6378         minimum value.
6379
6380 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6381
6382         * lower-subreg.c (resolve_simple_move): If called self-recursive,
6383         do not delete_insn insns that have not yet been emitted, only
6384         unlink them with remove_insn.
6385         * df-scan.c (df_insn_delete): Revert r197492.
6386
6387 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
6388
6389         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6390         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6391
6392 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6393
6394         * config/arm/arm.md (movsicc_insn): Convert define_insn into
6395         define_insn_and_split.
6396         (and_scc,ior_scc,negscc): Likewise.
6397         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6398
6399 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6400
6401         * config/arm/arm.c (use_return_insn): Return 0 for targets that
6402         can benefit from using a sequence of LDRD instructions in epilogue
6403         instead of a single LDM instruction.
6404
6405 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6406
6407         PR 45688
6408         * doc/extend.texi: Fix typo.
6409
6410 2013-04-17  Richard Biener  <rguenther@suse.de>
6411
6412         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6413         (vect_build_slp_tree): ... here.
6414         (vect_build_slp_tree_1): Compute which stmts of the SLP group
6415         match.  Remove special-casing of mismatched complex loads.
6416         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6417         re-try the match with swapped commutative operands.
6418         (vect_supported_load_permutation_p): Remove special-casing of
6419         mismatched complex loads.
6420         (vect_analyze_slp_instance): Adjust.
6421
6422 2013-04-17  Richard Biener  <rguenther@suse.de>
6423
6424         PR rtl-optimization/56921
6425         * cfgloop.h (struct loop): Add simple_loop_desc member.
6426         (struct niter_desc): Mark with GTY(()).
6427         (simple_loop_desc): Do not use aux field but simple_loop_desc.
6428         * loop-iv.c (get_simple_loop_desc): Likewise.
6429         (free_simple_loop_desc): Likewise.
6430
6431         Revert
6432         2013-04-16  Richard Biener  <rguenther@suse.de>
6433
6434         PR rtl-optimization/56921
6435         * loop-init.c (pass_rtl_move_loop_invariants): Add
6436         TODO_do_not_ggc_collect to todo_flags_finish.
6437         (pass_rtl_unswitch): Same.
6438         (pass_rtl_unroll_and_peel_loops): Same.
6439         (pass_rtl_doloop): Same.
6440
6441 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6442
6443         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6444         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6445         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6446         references.
6447         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6448         * tree-streamer.c (record_common_node): Adjust reference in comment.
6449
6450 2013-04-17  Terry Guo  <terry.guo@arm.com>
6451
6452         * config/arm/cortex-m4.md: Add a new bypass.
6453
6454 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6455
6456         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6457         New pattern.
6458         (*subs_<optab><mode>_multp2): New pattern.
6459         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6460         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6461
6462 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6463
6464         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6465         (*subs_mul_imm_<mode>): New pattern.
6466
6467 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
6468
6469         PR target/56948
6470         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6471         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
6472         (vsx_movti_32bit): Change j->wa to O->wa.
6473
6474 2013-04-16  Richard Biener  <rguenther@suse.de>
6475
6476         PR rtl-optimization/56921
6477         * loop-init.c (pass_rtl_move_loop_invariants): Add
6478         TODO_do_not_ggc_collect to todo_flags_finish.
6479         (pass_rtl_unswitch): Same.
6480         (pass_rtl_unroll_and_peel_loops): Same.
6481         (pass_rtl_doloop): Same.
6482
6483 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
6484
6485         * config/arm/arm.c (emit_multi_reg_push): New declaration
6486         for an existing function.
6487         (arm_emit_strd_push): New function.
6488         (arm_expand_prologue): Used here.
6489         (arm_emit_ldrd_pop): New function.
6490         (arm_expand_epilogue): Used here.
6491         (arm_get_frame_offsets): Update condition.
6492         (arm_emit_multi_reg_pop): Add a special case for load of a single
6493         register with writeback.
6494
6495 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
6496
6497         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6498         description.
6499
6500 2013-04-16  Richard Biener  <rguenther@suse.de>
6501
6502         PR tree-optimization/56756
6503         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6504         (first_mem_ref_loc): New.
6505         (execute_sm): Place the load temporarily before a previous
6506         access instead of in the latch edge to ensure its SSA dependencies
6507         are defined at points dominating the load.
6508
6509 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
6510
6511         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6512         correct fix by moving header and footer insn to the footer of
6513         the merged basic block.  Clear BB_END of the merged-away block.
6514
6515         PR middle-end/43631
6516         * emit-rtl.c (make_note_raw): New function.
6517         (link_insn_into_chain): New static inline function.
6518         (add_insn): Use it.
6519         (add_insn_before, add_insn_after): Factor insn chain linking code...
6520         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6521         using link_insn_into_chain.
6522         (note_outside_basic_block_p): New helper function for emit_note_after
6523         and emit_note_before.
6524         (emit_note_after): Use nobb variant of add_insn_after if the note
6525         should not be contained in a basic block.
6526         (emit_note_before): Use nobb variant of add_insn_before if the note
6527         should not be contained in a basic block.
6528         (emit_note_copy): Use make_note_raw.
6529         (emit_note): Likewise.
6530         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6531         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6532         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6533         the moved barrier the tail of the basic block it follows.
6534         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6535
6536 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
6537
6538         PR tree-optimization/56962
6539         * gimple-ssa-strength-reduction.c (record_increment): Only set
6540         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6541         either rhs1 or rhs2 is equal to c->base_expr.
6542
6543 2013-04-15  Richard Biener  <rguenther@suse.de>
6544
6545         PR tree-optimization/56933
6546         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6547         member.
6548         (GROUP_READ_WRITE_DEPENDENCE): Remove.
6549         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6550         * tree-vect-data-refs.c (vect_analyze_group_access): Move
6551         dependence check ...
6552         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6553         ... here.
6554         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6555         GROUP_READ_WRITE_DEPENDENCE.
6556
6557 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6558
6559         * emit-rtl.c (reset_all_used_flags): New function.
6560         (verify_rtl_sharing): Call reset_all_used_flags before and after
6561         performing the checks.
6562
6563 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6564
6565         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6566         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6567         * config/arm/constraints.md (De): New constraint.
6568         * config/arm/neon.md (anddi3_neon): Delete.
6569         (neon_vand<mode>): Expand to standard anddi3 pattern.
6570         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6571         Move earlier in the file.
6572         (neon_inv_logic_op2): Likewise.
6573         (arm_anddi_operand_neon): New predicate.
6574
6575 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6576
6577         * configure.ac (gcc_cv_ld_as_needed): Set
6578         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6579         Use -z ignore, -z record on *-*-solaris2*.
6580         (HAVE_LD_AS_NEEDED): Update comment.
6581         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6582         * configure: Regenerate.
6583         * config.in: Regenerate.
6584         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6585         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6586         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6587         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6588         equivalents.  Fix markup.
6589         * doc/tm.texi: Regenerate.
6590
6591 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
6592
6593         * config/i386/i386.opt: New option mstack-protector-guard=.
6594         * config/i386/i386-opts.h: Add enum stack_protector_guard.
6595         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6596         TARGET_SSP_TLS_GUARD.
6597         * config/i386/i386.c (ix86_option_override_internal): Set
6598         ix86_stack_protector_guard.
6599         * config/i386/i386.md (stack_protect_set): Enable for
6600         TARGET_SSP_TLS_GUARD only.
6601         (stack_protect_set_<mode>): Ditto.
6602         (stack_protect_test): Ditto.
6603         (stack_protect_test_<mode>): Ditto.
6604         * doc/invoke.texi (i386 Option): Document.
6605
6606 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6607
6608         PR target/56890
6609         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6610         (S_MODES): Set H_MODE bit.
6611         (SF_MODES): Set only S_MODE and SF_MODE bits.
6612         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6613         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6614         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6615         <MODE_FLOAT>: Likewise.
6616
6617 2013-04-15  Joey Ye  <joey.ye@arm.com>
6618
6619         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6620
6621 2013-04-15  Joey Ye  <joey.ye@arm.com>
6622
6623         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6624         for real far jump.
6625         (thumb_far_jump_used_p): Count instruction size and set
6626         far_jump_used.
6627
6628 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
6629
6630         * reorg.c (fill_simple_delay_slots): Reindent block of code.
6631         * resource.c (mark_target_live_regs): Reformat conditional block.
6632
6633 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6634
6635         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6636         notes, they are emitted only just before final.
6637         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6638
6639 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6640
6641         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6642         * cfgrtl.c (delete_insn): Call it here instead.
6643         * lra-spills.c (lra_final_code_change): Use delete_insn.
6644         * haifa-sched.c (sched_remove_insn): Likewise.
6645         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6646         returning to the nop pool.
6647         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6648         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
6649
6650 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6651
6652         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6653         * doc/tm.texi: Regenerated.
6654
6655 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
6656
6657         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6658         QImode checks.
6659
6660 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6661
6662         * df-core.c (df_find_def): Compare register numbers.
6663         (df_find_use): Likewise.
6664
6665 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
6666
6667         PR target/56903
6668         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6669         lra_in_progress for return.
6670
6671 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6672
6673         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6674         define_insn into define_insn_and_split and emit movsicc patterns.
6675
6676 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6677
6678         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6679
6680 2013-04-12  Richard Biener  <rguenther@suse.de>
6681
6682         * tree-pass.h (TODO_do_not_ggc_collect): New.
6683         * passes.c (execute_one_ipa_transform_pass): Honor
6684         TODO_do_not_ggc_collect.
6685         (execute_one_pass): Likewise.
6686
6687         Revert
6688         2013-04-10  Richard Biener  <rguenther@suse.de>
6689
6690         * passes.c (init_optimization_passes): Remove reload pass.
6691         * ira.c (do_reload): Merge into ...
6692         (ira): ... this.
6693         (rest_of_handle_reload): Remove.
6694         (pass_reload): Likewise.
6695         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6696         of reload for vzeroupper pass placement.
6697
6698 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6699
6700         PR tree-optimization/56918
6701         PR tree-optimization/56920
6702         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6703         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
6704         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
6705         use wide_mul_with_sign method.
6706
6707 2013-04-12  Richard Biener  <rguenther@suse.de>
6708
6709         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6710         not be considered a gimple constant.
6711
6712 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
6713
6714         * fold-const.c (const_binop): Handle vector shifts by a scalar.
6715         (fold_binary_loc): Call const_binop also for mixed vector-scalar
6716         operations.
6717
6718 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6719             Jakub Jelinek  <jakub@redhat.com>
6720
6721         * opts.c: Include diagnostic-color.h.
6722         (common_handle_option): Handle OPT_fdiagnostics_color_.
6723         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6724         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6725         (diagnostic-color.o): New.
6726         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6727         (diagnostic_color_rule): New enum.
6728         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6729         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6730         the location string.
6731         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6732         either NULL, or color kind.
6733         * diagnostic-color.c: New file.
6734         * diagnostic-color.h: New file.
6735         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6736         arguments.
6737         * doc/invoke.texi (-fdiagnostics-color): Document.
6738         * pretty-print.h (pp_show_color): Define.
6739         (struct pretty_print_info): Add show_color field.
6740         * diagnostic.c: Include diagnostic-color.h.
6741         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6742         macros.  Colorize error:, warning: etc. strings and also the location
6743         string.
6744         (diagnostic_show_locus): Colorize the caret line.
6745         * pretty-print.c: Include diagnostic-color.h.
6746         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
6747         inside of %< %> quotes or quoted through q format modifier.
6748
6749 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6750
6751         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6752
6753 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6754
6755         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6756         code in CC_NZ mode.
6757         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6758         pattern.
6759
6760 2013-04-11  Marek Polacek  <polacek@redhat.com>
6761
6762         PR tree-optimization/48184
6763         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6764
6765 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6766
6767         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6768         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6769         (skip_simple_arithmetic): Tidy up.
6770         * tree.h (skip_simple_constant_arithmetic): Declare.
6771
6772 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6773
6774         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6775
6776 2013-04-11  Richard Biener  <rguenther@suse.de>
6777
6778         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6779         generate vector constants.
6780
6781 2013-04-11  Richard Biener  <rguenther@suse.de>
6782
6783         PR tree-optimization/56878
6784         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6785         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6786         New function.
6787         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6788         Prefer to align the DR with the most invariant base address.
6789
6790 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6791
6792         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6793         comment.
6794
6795 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6796
6797         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6798         floating-point vector comparisons against 0.
6799
6800 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
6801
6802         PR tree-optimization/56899
6803         * fold-const.c (extract_muldiv_1): Apply distributive law
6804         only if TYPE_OVERFLOW_WRAPS (ctype).
6805
6806 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
6807
6808         PR target/56124
6809         * ira-costs.c (scan_one_insn): Check whether the source rtx of
6810         loading has side effect.
6811
6812 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
6813
6814         * config/sparc/sparc.c: Include tree-pass.h.
6815         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6816         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
6817         head of file.  Change return type.  Split off gate function.
6818         (sparc_gate_work_around_errata): New function.
6819         (pass_work_around_errata): New pass definition.
6820         (insert_pass_work_around_errata) New pass insert definition to
6821         insert pass_work_around_errata just after delayed-branch scheduling.
6822         (sparc_option_override): Insert the pass.
6823         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6824
6825 2013-04-10  David S. Miller  <davem@davemloft.net>
6826
6827         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6828         or -mcpu=hypersparc.
6829
6830         * target.def (cstore_mode): New hook.
6831         * target.h: Include insn-codes.h
6832         * targhooks.c: Likewise.
6833         (default_cstore_mode): New function.
6834         * targhooks.h: Declare it.
6835         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6836         * doc/tm.texi: Rebuild.
6837         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6838         target hook, rather than inspecting the insn_data.
6839         * config/sparc/sparc.c (sparc_cstore_mode): New function.
6840         (TARGET_CSTORE_MODE): Redefine.
6841         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6842         result patterns.
6843         * config/sparc/predicates.md (cstore_result_operand): New special
6844         predicate.
6845         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6846         Use it for operand 0.
6847         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6848         (*snesi_special): Likewise.
6849         (*snesi_zero): Likewise.
6850         (*seqsi_zero): Likewise.
6851         (*sltu_insn): Likewise.
6852         (*sgeu_insn): Likewise.
6853         (*seqdi_special): Make operand 0 and comparison operation be of
6854         DImode.
6855         (*snedi_special): Likewise.
6856         (*snedi_special_vis3): Likewise.
6857         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6858         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6859         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6860         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6861         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6862         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6863         (*sltu_extend_sp64): Likewise.
6864         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6865         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6866         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6867         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6868         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6869
6870 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
6871
6872         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6873         (aarch64_start_file): Use the new function.
6874
6875 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6876             Jason Merrill  <jason@redhat.com>
6877
6878         * common.opt: Add -gdwarf.
6879         * opts.c (common_handle_option): Handle it.
6880         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6881
6882 2013-04-10  Richard Biener  <rguenther@suse.de>
6883
6884         * passes.c (execute_todo): Do not call ggc_collect conditional here.
6885         (execute_one_ipa_transform_pass): But unconditionally here.
6886         (execute_one_pass): And here.
6887         (init_optimization_passes): Remove reload pass.
6888         * tree-pass.h (TODO_ggc_collect): Remove.
6889         (pass_reload): Likewise.
6890         * ira.c (do_reload): Merge into ...
6891         (ira): ... this.
6892         (rest_of_handle_reload): Remove.
6893         (pass_reload): Likewise.
6894         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6895         of reload for vzeroupper pass placement.
6896         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6897         and todo_flags_finish of all passes.
6898
6899 2013-04-10  Richard Biener  <rguenther@suse.de>
6900
6901         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6902         first_const_oprnd field, rename first_def_type to first_op_type.
6903         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6904         (vect_get_and_check_slp_defs): Always use the type of the
6905         operand.  Allow mixed vect_external_def, vect_constant_def types.
6906         (vect_get_constant_vectors): Handle mixed vect_external_def,
6907         vect_constant_def types.
6908
6909 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
6910
6911         PR tree-optimization/55524
6912         * tree-ssa-math-opts.c
6913         (convert_mult_to_fma): Don't use an fms construct
6914         when we don't have an fms operation, but fnma, and it looks
6915         likely that we'll be able to use the latter.
6916
6917 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6918
6919         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6920         function.
6921         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6922         inline fail caused by overwritable functions.
6923
6924 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
6925
6926         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6927         unnecessary bits in the constant power of two case.
6928
6929 2013-04-10  Richard Biener  <rguenther@suse.de>
6930
6931         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6932         broken code swapping operands.
6933         (vect_build_slp_tree): Do not compute load permutations here.
6934         (vect_analyze_slp_instance): Compute load permutations here,
6935         after building the SLP tree.
6936
6937 2013-04-09  Christian Bruel  <christian.bruel@st.com>
6938
6939         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6940         of next/prev_real_insn.
6941
6942 2013-04-09  Jan Hubicka  <jh@suse.cz>
6943
6944         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6945         Drop aliased parameter.
6946         (function_and_variable_visibility): Do not handle alias pairs.
6947         * cgraph.c (varpool_externally_visible_p): Update prototype.
6948         * varpool.c (varpool_add_new_variable): Update.
6949
6950 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6951
6952         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6953
6954 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
6955
6956         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6957
6958         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6959
6960 2013-04-09  Marek Polacek  <polacek@redhat.com>
6961
6962         PR tree-optimization/48762
6963         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
6964
6965 2013-04-09  Richard Biener  <rguenther@suse.de>
6966
6967         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6968         dealing with cost.
6969         (vect_build_slp_tree): Likewise.
6970         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6971         calculating the cost of a SLP instance.
6972         (vect_analyze_slp_instance): Use it from here, after building
6973         the SLP tree.
6974
6975 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6976
6977         PR middle-end/56883
6978         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6979         expand_omp_for_static_chunk): Use simple_p = true in
6980         force_gimple_operand_gsi calls when assigning to addressable decls.
6981
6982 2013-04-09  Jeff Law  <law@redhat.com>
6983
6984         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6985         when the boolean was created by converting a wider object which
6986         had a boolean range.
6987
6988 2013-04-09  Richard Biener  <rguenther@suse.de>
6989
6990         * tree-vectorizer.h (slp_void_p): Remove.
6991         (slp_tree): Typedef before _slp_tree declaration.
6992         (struct _slp_tree): Use a vector of slp_tree as children.
6993         (vect_get_place_in_interleaving_chain): Remove.
6994         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6995         Move ...
6996         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6997         and make static.
6998         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6999         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7000         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7001         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7002         Use slp_node instead of slp_void_p and adjust.
7003
7004 2013-04-09  Richard Biener  <rguenther@suse.de>
7005
7006         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7007         work that is not necessary.
7008
7009 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7010
7011         PR tree-optimization/56854
7012         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7013         forward into clobber stmts if it would change MEM_REF lhs into
7014         non-MEM_REF.
7015
7016 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
7017
7018         * tree.c (type_hash_lookup, type_hash_add): Make static.
7019         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7020
7021 2013-04-09  Richard Biener  <rguenther@suse.de>
7022
7023         * tree.h (unsave_expr_now): Remove.
7024         * tree-inline.c (mark_local_for_remap_r): Remove.
7025         (unsave_expr_1): Likewise.
7026         (unsave_r): Likewise.
7027         (unsave_expr_now): Likewise.
7028         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7029         (propagate_tree_value): Likewise.
7030
7031 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
7032
7033         * doc/rtl.texi (sequence): Rewrite documentation to match the
7034         current use of SEQUENCE rtl objects.
7035         * rtl.def (SEQUENCE): Likewise.
7036
7037         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7038         Update documentation.
7039         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7040         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7041
7042         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7043
7044 2013-04-08  Teresa Johnson  <tejohnson@google.com>
7045
7046         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7047         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7048         methods.
7049         (estimate_edge_size_and_time): Add comment to suggest using rounding
7050         methods.
7051         (estimate_node_size_and_time): Ditto.
7052         (remap_edge_change_prob): Use helper rounding divide methods.
7053         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7054         (gimple_mod_pow2_value_transform): Ditto.
7055         (gimple_mod_subtract_transform): Ditto.
7056         (gimple_ic_transform): Ditto.
7057         (gimple_stringops_transform): Ditto.
7058         * stmt.c (conditional_probability): Ditto.
7059         (emit_case_dispatch_table): Ditto.
7060         * lto-cgraph.c (merge_profile_summaries): Ditto.
7061         * tree-optimize.c (execute_fixup_cfg): Ditto.
7062         * cfgcleanup.c (try_forward_edges): Ditto.
7063         * cfgloopmanip.c (scale_loop_profile): Ditto.
7064         (loopify): Ditto.
7065         (duplicate_loop_to_header_edge): Ditto.
7066         (lv_adjust_loop_entry_edge): Ditto.
7067         * tree-vect-loop.c (vect_transform_loop): Ditto.
7068         * profile.c (compute_branch_probabilities): Ditto.
7069         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7070         * lto-streamer-in.c (input_cfg): Ditto.
7071         * gimple-streamer-in.c (input_bb): Ditto.
7072         * ipa-cp.c (update_profiling_info): Ditto.
7073         (update_specialized_profile): Ditto.
7074         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7075         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7076         rounding methods.
7077         * sched-rgn.c (compute_dom_prob_ps): Ditto.
7078         (compute_trg_info): Ditto.
7079         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7080         (purge_dead_edges): Ditto.
7081         * loop-unswitch.c (unswitch_loop): Ditto.
7082         * cgraphclones.c (cgraph_clone_edge): Ditto.
7083         (cgraph_clone_node): Ditto.
7084         * tree-inline.c (copy_bb): Ditto.
7085         (copy_edges_for_bb): Ditto.
7086         (initialize_cfun): Ditto.
7087         (copy_cfg_body): Ditto.
7088         (expand_call_inline): Ditto.
7089
7090 2013-04-08  Kai Tietz  <ktietz@redhat.com>
7091
7092         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7093         TARGET_CYGWIN64 by TARGET_64BIT.
7094
7095 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7096
7097         * config/epiphany/epiphany.md (GPR_1): New constant.
7098         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7099         * config/epiphany/epiphany.c (gen_compare_reg):
7100         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7101         is already in place.
7102         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7103         Don't require being called during rtl expansion; If y operlaps r0,
7104         return 0.
7105         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7106         (epiphany_expand_epilogue): Likewise.
7107
7108         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7109         Don't use CC_FPmode for ORDERED / UNORDERED.
7110         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7111
7112         * config/epiphany/constraints.md (CnL): New constraint.
7113         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7114         * config/epiphany/predicates.md (add_operand): Allow 1024.
7115
7116         * config/epiphany/epiphany.md (logical_op): New code iterator.
7117         (op_mnc): New code attribute.
7118         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7119         (mov_f+1, mov_f+2): New peephole2 patterns.
7120
7121         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7122         (cstoresi4): Also allow re-use of zero result when doing a NE
7123         comparison to a non-zero operand.
7124         Use (clobber (scratch)) for first insn if the gpr output is not needed.
7125
7126         * config/epiphany/epiphany.md (<insn_opname>v2si3):
7127         Use gen_addsi3_i / gen_subsi3_i.
7128
7129 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7130
7131         PR c++/34949
7132         PR c++/50243
7133         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7134         contain anything but clobbers, at most one __builtin_stack_restore,
7135         optionally debug stmts and final resx, and if it has at least one
7136         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
7137         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7138         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7139         which isn't defaut definition, remove them.
7140         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7141         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7142         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7143         with MEM_REF LHS with SSA_NAME address.
7144
7145 2013-04-08  Jeff Law  <law@redhat.com>
7146
7147         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7148
7149 2013-04-08  Richard Biener  <rguenther@suse.de>
7150
7151         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7152         extra newline.
7153         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7154         determined vector type.
7155         (vect_analyze_data_refs): Likewise.
7156         (vect_get_new_vect_var): Adjust.
7157         (vect_create_destination_var): Preserve SSA name versions.
7158         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7159         not dump anything here.
7160
7161 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7162
7163         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7164         Add member lr_slot_known.
7165         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7166         if necessary.
7167         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7168         Remove code that sets lr_slot_offset according to what a previous
7169         version of epiphany_emit_save_restore used to do.
7170         (epiphany_emit_save_restore): When doing an lr save or restore,
7171         set/verify lr_slot_known and lr_slot_offset.
7172
7173 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
7174
7175         PR target/54338
7176         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7177         in ALL_REGS.
7178
7179 2013-04-08  Richard Biener  <rguenther@suse.de>
7180
7181         * alias.c (find_base_term): Fix thinko in previous change.
7182
7183 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7184
7185         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7186         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7187         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
7188         if possible to compute val.
7189         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7190         For QImode integers don't require anything about precision.  Use
7191         const_with_all_bytes_same to find out if the constant doesn't have
7192         repeated bytes in it.
7193
7194 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7195
7196         * config/s390/s390.c (s390_expand_insv): Only accept insertions
7197         within mode size.
7198
7199 2013-04-08  Marek Polacek  <polacek@redhat.com>
7200
7201         PR rtl-optimization/48182
7202         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7203         value to 1.
7204
7205 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7206
7207         PR target/55487
7208         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7209         nuses, make sure we have a label.
7210
7211 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7212
7213         PR target/56843
7214         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7215         (rs6000_emit_swdiv_low_precision): Remove.
7216         (rs6000_emit_swdiv): Rewrite to handle between one and four
7217         iterations of Newton-Raphson generally; modify required number of
7218         iterations for some cases.
7219         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7220
7221 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7222
7223         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7224         set-but-unused variable.
7225
7226         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7227         basic blocks of released function bodies garbage-collectable.
7228
7229         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7230         (struct rtl_opt_pass): Add TODO_df_finish.
7231
7232         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7233
7234 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7235
7236         * config/arm/constraints.md (q): New constraint.
7237         * config/arm/ldrdstrd.md: New file.
7238         * config/arm/arm.md (ldrdstrd.md) New include.
7239         (arm_movdi): Use "q" instead of "r" constraint
7240         for double-word memory access.
7241         (movdf_soft_insn): Likewise.
7242         * config/arm/vfp.md (movdi_vfp): Likewise.
7243         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7244         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7245         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7246         (mem_ok_for_ldrd_strd): Likewise.
7247         (output_move_double): Update assertion.
7248
7249 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7250
7251         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7252
7253 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7254
7255         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7256         define_insn_and_split.
7257         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7258
7259 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7260
7261         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7262         define_insn_and_split.
7263         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7264         (shiftsi3_compare): New pattern.
7265         (rrx): New pattern.
7266         * config/arm/unspecs.md (UNSPEC_RRX): New.
7267
7268 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7269
7270         * config/arm/arm.md (negdi_extendsidi): New pattern.
7271         (negdi_zero_extendsidi): Likewise.
7272
7273 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7274
7275         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7276         define_insn_and_split.
7277         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7278         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7279
7280 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7281
7282         * config/arm/arm.md (arm_subdi3): Convert define_insn into
7283         define_insn_and_split.
7284         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7285         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7286
7287 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7288
7289         * config/arm/arm.md (subsi3_carryin): New pattern.
7290         (subsi3_carryin_const): Likewise.
7291         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7292         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7293
7294 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7295
7296         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7297
7298 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7299
7300         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7301         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7302
7303 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7304
7305         * config/arm/arm.c (arm_expand_builtin): Change fcode
7306         type to unsigned int.
7307
7308 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7309
7310         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7311
7312 2013-04-04  Ian Lance Taylor  <iant@google.com>
7313
7314         * doc/standards.texi (Standards): The Go frontend supports the Go 1
7315         language standard.
7316
7317 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7318
7319         PR middle-end/56729
7320         * df-scan.c (df_insn_delete): Disable failing assert.
7321
7322 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7323
7324         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7325         New function prototype.
7326         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7327         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7328         (arm_builtin_vectorized_function): New function.
7329
7330 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7331
7332         * config/arm/arm_neon_builtins.def: New file.
7333         * config/arm/arm.c (neon_builtin_data): Move contents to
7334         arm_neon_builtins.def.
7335         (enum arm_builtins): Include neon builtin definitions.
7336         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7337         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7338
7339 2013-04-04  Marek Polacek  <polacek@redhat.com>
7340
7341         PR tree-optimization/48186
7342         * predict.c (maybe_hot_frequency_p): Return false if
7343         HOT_BB_FREQUENCY_FRACTION is 0.
7344         (cgraph_maybe_hot_edge_p): Likewise.
7345
7346 2013-04-04  Richard Biener  <rguenther@suse.de>
7347
7348         PR tree-optimization/56826
7349         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7350         more accurately.
7351
7352 2013-04-04  Richard Biener  <rguenther@suse.de>
7353
7354         PR tree-optimization/56213
7355         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
7356         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
7357
7358 2013-04-04  Richard Biener  <rguenther@suse.de>
7359
7360         PR tree-optimization/56837
7361         * tree-loop-distribution.c (classify_partition): For non-zero
7362         values require that the value has the same precision as its
7363         mode to be useful as memset value.
7364
7365 2013-04-03  Nick Clifton  <nickc@redhat.com>
7366
7367         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
7368         (fmssf4): Use fmsf.s on E3V5 architectures.
7369         (fnmasf4): Use fnmaf.s on E3V5 architectures.
7370         (fnmssf4): Use fnmsf.s on E3V5 architectures.
7371
7372 2013-04-03  Jeff Law  <law@redhat.com>
7373
7374         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7375         (lra-eliminations.o): Likewise.
7376
7377 2013-04-03  Teresa Johnson  <tejohnson@google.com>
7378
7379         * gcov-io.c (compute_working_sets): Moved most of body of old
7380         compute_working_sets here from profile.c.
7381         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
7382         (gcov_working_set_t): Moved typedef here from basic-block.h
7383         (compute_working_set): Declare.
7384         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7385         (get_working_sets): Renamed from compute_working_set,
7386         replace most of body with call to new compute_working_sets.
7387         (get_exec_counts): Replace call to compute_working_sets
7388         to get_working_sets.
7389         * profile.h (get_working_sets): Renamed from compute_working_set.
7390         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
7391         to get_working_sets.
7392         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7393         * gcov-dump.c (dump_working_sets): New function.
7394
7395 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
7396
7397         * hwint.c (sext_hwi, zext_hwi): New functions.
7398         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7399         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7400         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7401         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7402         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7403         (sext_hwi, zext_hwi): New functions.
7404
7405 2013-04-03  Jeff Law  <law@redhat.com>
7406
7407         PR tree-optimization/56799
7408         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7409         back test for widening conversion erroneously dropped in prior change.
7410
7411 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7412
7413         PR target/56809
7414         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7415         instead of next_real_insn.
7416
7417 2013-04-03  Marek Polacek  <polacek@redhat.com>
7418
7419         PR sanitizer/55702
7420         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
7421
7422 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7423
7424         PR target/56809
7425         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7426         next_real_insn.
7427         (thumb1_output_casesi): Likewise.
7428         (thumb2_output_casesi): Likewise.
7429
7430 2013-04-03  Richard Biener  <rguenther@suse.de>
7431
7432         PR tree-optimization/56817
7433         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7434         Split out ...
7435         (tree_unroll_loops_completely_1): ... new function to manually
7436         walk the loop tree, properly defering outer loops of unrolled
7437         loops to later iterations.
7438
7439 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7440
7441         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7442         (vectorizable_load): Likewise.
7443         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7444         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7445
7446 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7447
7448         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7449         BIT_FIELD_REF.
7450
7451 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7452
7453         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7454
7455 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
7456
7457         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7458
7459 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7460
7461         PR tree-optimization/56790
7462         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7463         folding.
7464
7465 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7466
7467         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7468         Handle VEC_MERGE.
7469         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7470         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7471         equal arguments.
7472
7473 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
7474
7475         PR c/19449
7476         * tree.h (force_folding_builtin_constant_p): New decl.
7477         * builtins.c (force_folding_builtin_constant_p): New variable.
7478         (fold_builtin_constant_p): Fold immediately also if
7479         force_folding_builtin_constant_p.
7480
7481 2013-04-03  Richard Biener  <rguenther@suse.de>
7482
7483         PR tree-optimization/56812
7484         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7485         DRs of the same interleaving chain are independent.
7486
7487 2013-04-02  Jason Merrill  <jason@redhat.com>
7488
7489         * gdbinit.in (pbb): Use debug fn.
7490
7491 2013-04-02  Lawrence Crowl  <crowl@google.com>
7492
7493         * sese.h (struct ivtype_map_elt_s): Remove unused.
7494         (extern debug_ivtype_map): Remove unused.
7495         (extern eq_ivtype_map_elts): Remove unused.
7496         * sese.c (debug_ivtype_map): Removed unused.
7497         (debug_ivtype_map_1): Removed unused.
7498         (debug_ivtype_elt): Remove unused.
7499         (eq_ivtype_map_elts): Remove unused.
7500
7501
7502 2013-04-02  Kai Tietz  <ktietz@redhat.com>
7503
7504         PR target/52790
7505         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7506         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
7507         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7508         function.
7509         (legitimize_pe_coff_symbol): Likewise.
7510         (is_imported_p): New helper-function.
7511         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7512         for Windows x64 targets.
7513         (ix86_expand_prologue): Optimize for pe-coff targets.
7514         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7515         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7516         medium/large code-model.
7517         (legitimize_pic_address): Likewise.
7518         (legitimize_tls_address): Likewise.
7519         (ix86_expand_call): Likewise.
7520         (x86_output_mi_thunk): Likewise.
7521         (get_dllimport_decl): Add new beimport argument.
7522         (construct_plt_address): Don't assert for x64 pe-coff targets.
7523         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7524         targets.
7525         (SYMBOL_FLAG_STUBVAR): New macro.
7526         (SYMBOL_REF_STUBVAR_P): Likewise.
7527         * config/i386/winnt.c (stub_list): New structure.
7528         (stub_head): New local variable.
7529         (i386_pe_record_stub): New function.
7530         (i386_pe_file_end): Emit refptr-stubs.
7531
7532 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
7533
7534         PR rtl-optimization/56745
7535         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7536         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7537
7538         PR c++/34949
7539         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7540         and both of them are MEM_REFs, just compare first argument for
7541         equality and attempt to deal even with differing offsets.
7542
7543         PR c++/34949
7544         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7545         of gimple_clobber_p to be MEM_REF.
7546         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7547         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
7548         after gimplification.
7549         * asan.c (get_mem_ref_of_assignment): Don't instrument
7550         gimple_clobber_p stmts.
7551         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7552         gimple_clobber_p stmt if they have MEM_REF lhs and
7553         are dead because of another gimple_clobber_p stmt.
7554         * tree-ssa-live.c (clear_unused_block_pointer): Treat
7555         gimple_clobber_p stmts like debug stmts.
7556         (remove_unused_locals): Remove clobbers with MEM_REF lhs
7557         that refer to unused VAR_DECLs or uninitialized values.
7558         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7559         gimple_clobber_p stmts if they refer to removed parameters.
7560         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7561         formatting.
7562
7563 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
7564
7565         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7566         using SWI48 mode attribute.
7567
7568 2013-04-02  Wei Mi  <wmi@google.com>
7569
7570         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7571         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7572         *<rotate_insn><mode>3_mask in i386.md.
7573
7574 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7575
7576         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7577
7578 2013-04-02  Richard Biener  <rguenther@suse.de>
7579
7580         PR tree-optimization/56778
7581         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7582         Runtime alias tests are not supported for gather loads.
7583         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7584         stmts referenced from SSA operands before updating SSA form.
7585
7586 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
7587             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7588
7589         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7590         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7591         * config/arm/cortex-a53.md: New file.
7592         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7593         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7594         * config/arm/arm.c (arm_issue_rate): Likewise.
7595         * config/arm/arm-tune.md: Regenerate
7596         * config/arm/arm-tables.opt: Regenerate.
7597         * config/arm/arm-cores.def: Add cortex-a53.
7598
7599 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7600
7601         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7602         non-static link.
7603
7604 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7605
7606         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7607         scalar load/store operations using B/H registers.
7608         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7609
7610 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7611
7612         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7613         scalar move.
7614         * config/aarch64/aarch64.c
7615         (aarch64_simd_scalar_immediate_valid_for_move): New.
7616         * config/aarch64/aarch64-protos.h
7617         (aarch64_simd_scalar_immediate_valid_for_move): New.
7618         * config/aarch64/constraints.md (Dh, Dq): New.
7619         * config/aarch64/iterators.md (hq): New.
7620
7621 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
7622
7623         * reorg.c (get_branch_condition): Deal with conditional returns.
7624         (fill_simple_delay_slots): Remove dead code dealing with jumps.
7625
7626 2013-04-01  Wei Mi  <wmi@google.com>
7627
7628         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7629         Truncate operand 2 using %b asm operand modifier.
7630         (*<shift_insn><mode>3_mask): Ditto.
7631         (*<rotate_insn><mode>3_mask): Ditto.
7632
7633 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
7634
7635         PR middle-end/56798
7636         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7637
7638 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7639
7640         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7641         of next_real_insn.
7642         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7643
7644 2013-03-30  Lawrence Crowl  <crowl@google.com>
7645
7646         * dse.c (clear_alias_sets): Remove never set.
7647         (disqualified_clear_alias_sets): Remove never set.
7648         (clear_alias_mode_pool): Remove never set.
7649         (dse_step0): Remove condition that is never true.
7650         (canon_address): Remove condition that is never true.
7651         (dse_step7): Remove condition that is never true.
7652         (rest_of_handle_dse): Remove condition that is never true.
7653         (rest_of_handle_dse::did_global): Remove never read from above.
7654         (dse_step2_spill): Remove never called from above.
7655         (dse_step5_spill): Remove never called from above.
7656
7657 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
7658
7659         * doc/md.texi (Standard Names) <casesi>: Update documentation for
7660         JUMP_TABLE_DATA changes.
7661         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7662         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7663         (Insns) <jump_table_data>: New entry.
7664         * doc/tm.texi: Regenerate.
7665
7666         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7667
7668         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7669         for table jump at the end of a basic block using tablejump_p.
7670         * targhooks.c (default_invalid_within_doloop): Likewise.
7671         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7672         target hook implementation that is identical to the default hook.
7673         (rs6000_invalid_within_doloop): Remove.
7674
7675         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7676         unused variable from tablejump_p call.
7677
7678         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7679         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7680         (INSN_DELETED_P): Likewise.
7681         (emit_jump_table_data): New prototype.
7682         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7683         after 4th as unused.
7684         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7685         * sched-vis.c (print_insn): Likewise.
7686         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7687         insn for compatibility with back ends that use next_active_insn to
7688         identify jump table data.
7689         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7690         (remove_insn): Likewise.
7691         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7692         to be emitted.
7693         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7694         (emit_jump_table_data): New function.
7695
7696         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7697         basic block, a JUMP_TABLE_DATA never is.
7698         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7699         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7700         off from code handling real insns.
7701         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7702         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7703         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7704         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7705         is not a NONDEBUG_INSN_P.
7706         * ira-costs.c (scan_one_insn): Likewise.
7707         * jump.c (mark_all_labels): Likewise.
7708         (mark_jump_label_1): Likewise.
7709         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7710         * lra.c (get_insn_freq): Expect all insns reaching here to be in
7711         a basic block.
7712         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7713         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7714         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7715         JUMP_TABLE_DATA_P insns.
7716         (calculate_elim_costs_all_insns): Likewise.
7717         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7718         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7719         (delete_output_reload): Code style fixups.
7720         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7721         insn flags on this non-insn.
7722         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7723         as scheduling barriers, for pre-change compatibility.
7724         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7725         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7726
7727         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7728         redundant JUMP_TABLE_DATA_P test.
7729         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7730         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7731         (frv_for_each_packet): Likewise.
7732         * config/i386/i386.c (min_insn_size): Likewise.
7733         (ix86_avoid_jump_mispredicts): Likewise.
7734         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7735         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7736         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7737         (mips16_insn_length): Robustify.
7738         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7739         (mips16_split_long_branches): Likewise.
7740         * config/pa/pa.c (pa_combine_instructions): Likewise.
7741         * config/rs6000/rs6000.c (get_next_active_insn): Treat
7742         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7743         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7744         as contributing to pool range lengths.
7745         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7746         Remove redundant JUMP_TABLE_DATA_P test.
7747         (sh_loop_align): Likewise.
7748         (split_branches): Likewise.
7749         (sh_insn_length_adjustment): Likewise.
7750         * config/spu/spu.c (get_branch_target): Likewise.
7751
7752 2013-03-29  Jan Hubicka  <jh@suse.cz>
7753
7754         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7755         gcov streaming; stream hot bb threshold to ltrans.
7756         * predict.c (get_hot_bb_threshold): Break out from ....
7757         (maybe_hot_count_p): ... here.
7758         (set_hot_bb_threshold): New function.
7759         * lto-section-in.c (lto_section_name): Add profile.
7760         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7761         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7762         and data-streamer.h
7763         (histogram_entry): New structure.
7764         (histogram, histogram_pool): New global vars.
7765         (histogram_hash): New structure.
7766         (histogram_hash::hash): New method.
7767         (histogram_hash::equal): Likewise.
7768         (account_time_size): New function.
7769         (cmp_counts): New function.
7770         (dump_histogram): New function.
7771         (ipa_profile_generate_summary): New function.
7772         (ipa_profile_write_summary): New function.
7773         (ipa_profile_read_summary): New function.
7774         (ipa_profile): Decide on threshold.
7775         (pass_ipa_profile): Add ipa_profile_write_summary and
7776         ipa_profile_read_summary.
7777         * Makefile.in (ipa.o): Update dependencies.
7778         * lto-streamer.h (LTO_section_ipa_profile): New section.
7779
7780 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7781
7782         * tree.h (VAR_P): New.
7783
7784 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
7785
7786         PR lto/56777
7787         * doc/invoke.texi ([-fwhole-program]): Fix typo.
7788
7789 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7790
7791         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7792         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7793         (control_flow_insn_p): Likewise.
7794         * cfgrtl.c (duplicate_insn_chain): Likewise.
7795         * final.c (get_attr_length_1): Likewise.
7796         (shorten_branches): Likewise.
7797         (final_scan_insn): Likewise.
7798         * function.c (instantiate_virtual_regs): Likewise.
7799         * gcse.c (insert_insn_end_basic_block): Likewise.
7800         * ira-costs.c (scan_one_insn): Likewise.
7801         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7802         * lra.c (check_rtl): Likewise.
7803         * reload1.c (elimination_costs_in_insn): Likewise.
7804         * reorg.c (follow_jumps): Likewise.
7805
7806         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7807         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7808         (thumb_far_jump_used_p): Likewise.
7809         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7810         (workaround_speculation): Likewise.
7811         (add_sched_insns_for_speculation): Likewise.
7812         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7813         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7814         (frv_for_each_packet): Likewise.
7815         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7816         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7817         (final_emit_insn_group_barriers): Likewise.
7818         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7819         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7820         (mips16_insn_length): Likewise.
7821         * config/pa/pa.c (pa_reorg): Likewise.
7822         (pa_combine_instructions): Likewise.
7823         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7824         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7825         (sh_reorg): Likewise.
7826         (split_branches): Likewise.
7827         * config/spu/spu.c (get_branch_target): Likewise.
7828
7829         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7830         JUMP_TABLE_DATA_P.
7831
7832 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
7833
7834         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7835         Fix declaration name.
7836
7837 2013-03-28  Lawrence Crowl  <crowl@google.com>
7838
7839         * graphds.h (struct graph.indicies): Remove unused.
7840         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7841         (SCOP_ORIGINAL_PDDRS): Remove unused.
7842         * sese.h (extern insert_loop_close_phis): Removed unused.
7843         (extern insert_guard_phis): Removed unused.
7844         (extern ivtype_map_elt_info): Removed unused.
7845         (new_ivtype_map_elt): Removed unused.
7846         * sese.c (ivtype_map_elt_info): Removed unused.
7847
7848 2013-03-28  Lawrence Crowl  <crowl@google.com>
7849
7850         * Makefile.in: Add several missing include dependences.
7851         (DUMPFILE_H): New.
7852         (test-dump.o): New.  This object is not added to any executable,
7853         but is present for ad-hoc testing.
7854         * bitmap.c
7855         (debug (const bitmap_head_def &)): New.
7856         (debug (const bitmap_head_def *)): New.
7857         * bitmap.h
7858         (extern debug (const bitmap_head_def &)): New.
7859         (extern debug (const bitmap_head_def *)): New.
7860         * cfg.c
7861         (debug (edge_def &)): New.
7862         (debug (edge_def *)): New.
7863         * cfghooks.c
7864         (debug (basic_block_def &)): New.
7865         (debug (basic_block_def *)): New.
7866         * dumpfile.h
7867         (dump_node (const_tree, int, FILE *)): Correct source file.
7868         * dwarf2out.c
7869         (debug (die_struct &)): New.
7870         (debug (die_struct *)): New.
7871         * dwarf2out.h
7872         (extern debug (die_struct &)): New.
7873         (extern debug (die_struct *)): New.
7874         * gimple-pretty-print.c
7875         (debug (gimple_statement_d &)): New.
7876         (debug (gimple_statement_d *)): New.
7877         * gimple-pretty-print.h
7878         (extern debug (gimple_statement_d &)): New.
7879         (extern debug (gimple_statement_d *)): New.
7880         * ira-build.c
7881         (debug (ira_allocno_copy &)): New.
7882         (debug (ira_allocno_copy *)): New.
7883         (debug (ira_allocno &)): New.
7884         (debug (ira_allocno *)): New.
7885         * ira-int.h
7886         (extern debug (ira_allocno_copy &)): New.
7887         (extern debug (ira_allocno_copy *)): New.
7888         (extern debug (ira_allocno &)): New.
7889         (extern debug (ira_allocno *)): New.
7890         * ira-lives.c
7891         (debug (live_range &)): New.
7892         (debug (live_range *)): New.
7893         * lra-int.h
7894         (debug (lra_live_range &)): New.
7895         (debug (lra_live_range *)): New.
7896         * lra-lives.c
7897         (debug (lra_live_range &)): New.
7898         (debug (lra_live_range *)): New.
7899         * omega.c
7900         (debug (omega_pb_d &)): New.
7901         (debug (omega_pb_d *)): New.
7902         * omega.h
7903         (extern debug (omega_pb_d &)): New.
7904         (extern debug (omega_pb_d *)): New.
7905         * print-rtl.c
7906         (debug (const rtx_def &)): New.
7907         (debug (const rtx_def *)): New.
7908         * print-tree.c
7909         (debug_tree (tree): Move within file.
7910         (debug_raw (const tree_node &)): New.
7911         (debug_raw (const tree_node *)): New.
7912         (dump_tree_via_hooks (const tree_node *, int)): New.
7913         (debug (const tree_node &)): New.
7914         (debug (const tree_node *)): New.
7915         (debug_verbose (const tree_node &)): New.
7916         (debug_verbose (const tree_node *)): New.
7917         (debug_head (const tree_node &)): New.
7918         (debug_head (const tree_node *)): New.
7919         (debug_body (const tree_node &)): New.
7920         (debug_body (const tree_node *)): New.
7921         (debug_vec_tree (tree): Move and reimplement in terms of dump.
7922         (debug (vec<tree, va_gc> &)): New.
7923         (debug (vec<tree, va_gc> *)): New.
7924         * rtl.h
7925         (extern debug (const rtx_def &)): New.
7926         (extern debug (const rtx_def *)): New.
7927         * sbitmap.c
7928         (debug_raw (simple_bitmap_def &)): New.
7929         (debug_raw (simple_bitmap_def *)): New.
7930         (debug (simple_bitmap_def &)): New.
7931         (debug (simple_bitmap_def *)): New.
7932         * sbitmap.h
7933         (extern debug (simple_bitmap_def &)): New.
7934         (extern debug (simple_bitmap_def *)): New.
7935         (extern debug_raw (simple_bitmap_def &)): New.
7936         (extern debug_raw (simple_bitmap_def *)): New.
7937         * sel-sched-dump.c
7938         (debug (vinsn_def &)): New.
7939         (debug (vinsn_def *)): New.
7940         (debug_verbose (vinsn_def &)): New.
7941         (debug_verbose (vinsn_def *)): New.
7942         (debug (expr_def &)): New.
7943         (debug (expr_def *)): New.
7944         (debug_verbose (expr_def &)): New.
7945         (debug_verbose (expr_def *)): New.
7946         (debug (vec<rtx> &)): New.
7947         (debug (vec<rtx> *)): New.
7948         * sel-sched-dump.h
7949         (extern debug (vinsn_def &)): New.
7950         (extern debug (vinsn_def *)): New.
7951         (extern debug_verbose (vinsn_def &)): New.
7952         (extern debug_verbose (vinsn_def *)): New.
7953         (extern debug (expr_def &)): New.
7954         (extern debug (expr_def *)): New.
7955         (extern debug_verbose (expr_def &)): New.
7956         (extern debug_verbose (expr_def *)): New.
7957         (extern debug (vec<rtx> &)): New.
7958         (extern debug (vec<rtx> *)): New.
7959         * sel-sched-ir.h
7960         (_list_iter_cond_expr): Make inline instead of static.
7961         * sreal.c
7962         (debug (sreal &)): New.
7963         (debug (sreal *)): New.
7964         * sreal.h
7965         (extern debug (sreal &)): New.
7966         (extern debug (sreal *)): New.
7967         * tree.h
7968         (extern debug_raw (const tree_node &)): New.
7969         (extern debug_raw (const tree_node *)): New.
7970         (extern debug (const tree_node &)): New.
7971         (extern debug (const tree_node *)): New.
7972         (extern debug_verbose (const tree_node &)): New.
7973         (extern debug_verbose (const tree_node *)): New.
7974         (extern debug_head (const tree_node &)): New.
7975         (extern debug_head (const tree_node *)): New.
7976         (extern debug_body (const tree_node &)): New.
7977         (extern debug_body (const tree_node *)): New.
7978         (extern debug (vec<tree, va_gc> &)): New.
7979         (extern debug (vec<tree, va_gc> *)): New.
7980         * tree-cfg.c
7981         (debug (struct loop &)): New.
7982         (debug (struct loop *)): New.
7983         (debug_verbose (struct loop &)): New.
7984         (debug_verbose (struct loop *)): New.
7985         * tree-dump.c: Add header dependence.
7986         * tree-flow.h
7987         (extern debug (struct loop &)): New.
7988         (extern debug (struct loop *)): New.
7989         (extern debug_verbose (struct loop &)): New.
7990         (extern debug_verbose (struct loop *)): New.
7991         * tree-data-ref.c
7992         (debug (data_reference &)): New.
7993         (debug (data_reference *)): New.
7994         (debug (vec<data_reference_p> &)): New.
7995         (debug (vec<data_reference_p> *)): New.
7996         (debug (vec<ddr_p> &)): New.
7997         (debug (vec<ddr_p> *)): New.
7998         * tree-data-ref.h
7999         (extern debug (data_reference &)): New.
8000         (extern debug (data_reference *)): New.
8001         (extern debug (vec<data_reference_p> &)): New.
8002         (extern debug (vec<data_reference_p> *)): New.
8003         (extern debug (vec<ddr_p> &)): New.
8004         (extern debug (vec<ddr_p> *)): New.
8005         * tree-ssa-alias.c
8006         (debug (pt_solution &)): New.
8007         (debug (pt_solution *)): New.
8008         * tree-ssa-alias.h
8009         (extern debug (pt_solution &)): New.
8010         (extern debug (pt_solution *)): New.
8011         * tree-ssa-alias.c
8012         (debug (_var_map &)): New.
8013         (debug (_var_map *)): New.
8014         (debug (tree_live_info_d &)): New.
8015         (debug (tree_live_info_d *)): New.
8016         * tree-ssa-alias.h
8017         (extern debug (_var_map &)): New.
8018         (extern debug (_var_map *)): New.
8019         (extern debug (tree_live_info_d &)): New.
8020         (extern debug (tree_live_info_d *)): New.
8021
8022 2013-03-28  Jan Hubicka  <jh@suse.cz>
8023
8024         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8025
8026 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
8027
8028         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8029         record only when desired or required.
8030
8031 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
8032
8033         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8034         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
8035
8036 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8037
8038         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8039         (*andsi3_compare0_uxtw): New pattern.
8040         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8041         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8042
8043 2013-03-28  Jan Hubicka  <jh@suse.cz>
8044
8045         * data-streamer-in.c (streamer_read_gcov_count): New function.
8046         * gimple-streamer-out.c: Include value-prof.h.
8047         (output_gimple_stmt): Output histogram.
8048         (output_bb): Use streamer_write_gcov_count.
8049         * value-prof.c: Include data-streamer.h
8050         (dump_histogram_value): Add HIST_TYPE_MAX.
8051         (stream_out_histogram_value): New function.
8052         (stream_in_histogram_value): New function.
8053         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8054         (stream_out_histogram_value, stream_in_histogram_value): Declare.
8055         * data-streamer-out.c (streamer_write_gcov_count): New function.
8056         (streamer_write_gcov_count_stream): New function.
8057         * lto-cgraph.c (lto_output_edge): Update counter streaming.
8058         (lto_output_node): Likewise.
8059         (input_node, input_edge): Likewise.
8060         * lto-streamer-out.c (output_cfg): Update streaming.
8061         * lto-streamer-in.c (input_cfg): Likewise.
8062         * data-streamer.h (streamer_write_gcov_count,
8063         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8064         * gimple-streamer-in.c: Include value-prof.h
8065         (input_gimple_stmt): Input histograms.
8066         (input_bb): Update profile streaming.
8067
8068 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8069
8070         * genmodes.c (emit_max_int): New function.
8071         (emit_insn_modes_h): Added call to emit_max_function.
8072         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8073         Added doc.
8074         * machmode.def: Fixed comment.
8075
8076 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8077
8078         * combine.c (try_combine): Removed useless assert.
8079         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8080
8081 2013-03-28  Marek Polacek  <polacek@redhat.com>
8082             Richard Biener  <rguenther@suse.de>
8083
8084         PR tree-optimization/56695
8085         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8086         build signed result of a vector comparison.
8087         * tree-cfg.c (verify_gimple_comparison): Check that a result
8088         of a vector comparison has signed type.
8089
8090 2013-03-28  Richard Biener  <rguenther@suse.de>
8091
8092         PR tree-optimization/37021
8093         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8094         do not restrict gaps between groups.
8095         * tree-vect-stmts.c (vectorizable_load): Properly account for
8096         a gap between groups.
8097
8098 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8099
8100         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8101         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8102         is not enabled.
8103
8104 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
8105
8106         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8107         * doc/extend.texi (Named Address Spaces): Ditto.
8108         (Variable Attributes): Ditto.
8109
8110 2013-03-27  Kai Tietz  <ktietz@redhat.com>
8111
8112         * config.build: Add support for cygwin x64 target.
8113         * config.gcc: Likewise.
8114         * config.host: Likewise.
8115         * configure.ac: Likewise
8116         * configure: Regenerated.
8117
8118 2013-03-27 Kai Tietz  <ktietz@redhat.com>
8119
8120         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8121         * config/i386/t-cygwin-w64: New file.
8122         * config/i386/cygwin-w64.h: New file.
8123         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8124         and add support for x64-cygwin target.
8125         (CPP_SPEC): Likewise.
8126         (CXX_WRAP_SPEC_LIST): Undefine before define.
8127         (LIBGCJ_SONAME): Use 15 as version.
8128
8129 2013-03-27  Richard Biener  <rguenther@suse.de>
8130
8131         PR tree-optimization/56716
8132         * tree-ssa-structalias.c (perform_var_substitution): Adjust
8133         dumping for ref nodes.
8134
8135 2013-03-27  Martin Jambor  <mjambor@suse.cz>
8136
8137         PR tree-optimization/55334
8138         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8139         restricted pointers to arrays.
8140
8141 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8142
8143         * Makefile.in (.SUFFIXES): Add .cc.
8144         (.c.o): Apply same recipe for implicit rule .cc.o.
8145
8146 2013-03-27  Richard Biener  <rguenther@suse.de>
8147
8148         PR tree-optimization/37021
8149         * tree-vect-data-refs.c (vect_check_strided_load): Allow
8150         REALPART/IMAGPART_EXPRs around the supported refs.
8151         * tree-ssa-structalias.c (find_func_aliases): Assume that
8152         floating-point values are not used to transfer pointers.
8153
8154 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8155
8156         * target.def (TARGET_HAS_IFUNC_P): New target hook.
8157         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8158         * doc/tm.texi: Regenerate.
8159         * targhooks.h (default_has_ifunc_p): New.
8160         * targhooks.c (default_has_ifunc_p): Ditto.
8161         * config/linux-protos.h: New file.
8162         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8163         this hook for linux which disables support of indirect functions in
8164         android.
8165         * config/linux-android.c: New file.
8166         * config/t-linux-android.c: Ditto.
8167         * config.gcc: Added new object file linux-android.o.
8168         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8169         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8170         * varasm.c (do_assemble_alias): Likewise.
8171         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8172         doesn't support indirect functions.
8173         * configure: Regenerate.
8174
8175 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
8176
8177         PR target/56102
8178         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8179         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8180         mult-word mode.
8181
8182 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8183
8184         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8185
8186 2013-03-27  Terry Guo  <terry.guo@arm.com>
8187
8188         * config/arm/arm-cores.def: Added core cortex-r7.
8189         * config/arm/arm-tune.md: Regenerated.
8190         * config/arm/arm-tables.opt: Regenerated.
8191         * doc/invoke.texi: Added entry for core cortex-r7.
8192
8193 2013-03-27  Walter Lee  <walt@tilera.com>
8194
8195         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8196         double-decrement of next_scratch_regno.
8197
8198 2013-03-27  Walter Lee  <walt@tilera.com>
8199
8200         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8201         input operands.
8202         (insn_v1mulus): Ditto.
8203         (insn_v2muls): Ditto.
8204
8205 2013-03-27  Walter Lee  <walt@tilera.com>
8206
8207         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8208         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8209
8210 2013-03-27  Walter Lee  <walt@tilera.com>
8211
8212         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8213         (*sibcall_value): Ditto.
8214
8215 2013-03-27  Walter Lee  <walt@tilera.com>
8216
8217         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8218         (insn_mnz_v8qi): ... this ...
8219         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
8220         vector equivalent.
8221         (insn_v<n>mnz): Replaced by ...
8222         (insn_v1mnz): ... this ...
8223         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
8224         equivalent.
8225         (insn_mz_<mode>): Replaced by ...
8226         (insn_mz_v8qi): ... this ...
8227         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
8228         vector equivalent.
8229         (insn_v<n>mz): Replaced by ...
8230         (insn_v1mz): ... this ...
8231         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
8232         equivalent.
8233
8234 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8235
8236         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8237
8238 2013-03-26  Roland McGrath  <mcgrathr@google.com>
8239
8240         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8241         than fprintf with a non-constant, non-format string.
8242
8243 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8244
8245         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8246         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
8247         operand 0 predicate.
8248         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8249         attribute.  Use general_x64nomem_operand as operand 1 predicate.
8250         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8251         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8252         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8253         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8254         (mov<mode>_insv_1): Remove expander.  Merge insn with
8255         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8256         Use general_x64nomem_operand as operand 1 predicate.
8257         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8258         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8259         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8260         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8261         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
8262         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8263         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8264         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8265         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
8266         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8267         (general_x64nomem_operand): Ditto.
8268
8269 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8270
8271         * config/rtems.opt: Add -pthread option.
8272
8273 2013-03-26  Richard Biener  <rguenther@suse.de>
8274
8275         * alias.c (find_base_term): Avoid redundant and not used recursion.
8276         (base_alias_check): Get the initial base term from the caller.
8277         (true_dependence_1): Compute and pass base terms to base_alias_check.
8278         (write_dependence_p): Likewise.
8279         (may_alias_p): Likewise.
8280
8281 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
8282
8283         * config/aarch64/aarch64.c (aarch64_classify_address): Support
8284         PC-relative load in SI modes and above only.
8285
8286 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
8287
8288         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8289         * config/arm/iwmmxt.md (WCGR0): Update.
8290         (WCGR1, WCGR2, WCGR3): Likewise.
8291
8292 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8293
8294         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8295         Use x64 and nox64 isa attributes.
8296
8297 2013-03-26  Richard Biener  <rguenther@suse.de>
8298
8299         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8300         alignment computations and rely on get_object_alignment_1
8301         for the !TYPE_P case.
8302         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8303
8304 2013-03-26  Walter Lee  <walt@tilera.com>
8305
8306         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8307         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8308
8309 2013-03-25  Jeff Law  <law@redhat.com>
8310
8311         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8312         check for INTEGRAL_TYPE_P that was missing due to checking in
8313         wrong version of prior patch.
8314
8315 2013-03-25  Walter Lee  <walt@tilera.com>
8316
8317         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8318         TILEGX_INSN_SHUFFLEBYTES1.
8319         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8320         shufflebytes1.
8321         (tilegx_builtins): Ditto.
8322         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8323
8324 2013-03-25  Walter Lee  <walt@tilera.com>
8325
8326         * config/tilegx/tilegx.md (floatsisf2): New pattern.
8327         (floatunssisf2): New pattern.
8328         (floatsidf2): New pattern.
8329         (floatunssidf2): New pattern.
8330
8331 2013-03-25  Walter Lee  <walt@tilera.com>
8332
8333         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8334         tests for constraint J, K, N, P.
8335
8336 2013-03-25  Walter Lee  <walt@tilera.com>
8337
8338         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8339         Use indirect/pcrel encoding.
8340         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8341         Ditto.
8342
8343 2013-03-25  Steve Ellcey  <sellcey@mips.com>
8344
8345         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8346         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8347         * config/mips/mips.c (mips_option_override): Set IMADD default.
8348         * config/mips/mips.h (PTF_AVOID_IMADD): New.
8349         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8350         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8351         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8352         * doc/invoke.texi (-mimadd/-mno-imadd): New.
8353
8354 2013-03-25  Jeff Law  <law@redhat.com>
8355
8356         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8357         slightly to avoid creating and folding useless trees.  Simplify
8358         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8359
8360 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
8361
8362         * config/i386/i386.md (*zero_extendsidi2): Merge with
8363         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
8364         * config/i386/predicates.md (x86_64_zext_operand): Rename from
8365         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
8366         targets.  Clarify comment.
8367
8368 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8369
8370         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8371         pass-through jump functions differently.
8372         (ipa_read_jump_function): Likewise.  Also use setter functions to set
8373         up jump functions.
8374
8375 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8376
8377         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8378         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8379         process it.
8380         (ipa_get_indirect_edge_target): New function.
8381         (devirtualization_time_bonus): New parameter known_aggs, pass it to
8382         ipa_get_indirect_edge_target.  Update all callers.
8383         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
8384         ipa_get_indirect_edge_target_1 instead of calling
8385         ipa_get_indirect_edge_target.
8386         (create_specialized_node): Pass aggvlas to
8387         ipcp_discover_new_direct_edges.
8388
8389 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8390
8391         * config/arm/arm.md (f_sels, f_seld): New types.
8392         (*cmov<mode>): New pattern.
8393         * config/arm/predicates.md (arm_vsel_comparison_operator): New
8394         predicate.
8395
8396 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8397
8398         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8399         POSIX-printf for mingw-hosted  builds.
8400
8401 2013-03-25  Richard Biener  <rguenther@suse.de>
8402
8403         PR middle-end/56694
8404         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8405         must-not-throw stmt location.
8406
8407 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8408
8409         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8410         Emit load-acquire versions when acq is true.
8411         (arm_emit_store_exclusive): Add rel parameter.
8412         Emit store-release versions when rel is true.
8413         (arm_split_compare_and_swap): Use acquire-release instructions
8414         instead.
8415         of barriers when appropriate.
8416         (arm_split_atomic_op): Likewise.
8417         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8418         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8419         (VUNSPEC_SLX): Likewise.
8420         (VUNSPEC_LDA): Likewise.
8421         (VUNSPEC_STL): Likewise.
8422         * config/arm/sync.md (atomic_load<mode>): New pattern.
8423         (atomic_store<mode>): Likewise.
8424         (arm_load_acquire_exclusive<mode>): Likewise.
8425         (arm_load_acquire_exclusivesi): Likewise.
8426         (arm_load_acquire_exclusivedi): Likewise.
8427         (arm_store_release_exclusive<mode>): Likewise.
8428
8429 2013-03-25  Catherine Moore  <clm@codesourcery.com>
8430
8431         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8432         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8433         * config/mip/predicates.md (lwsp_swsp_operand,
8434         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8435         sb16_operand, db4_operand, db7_operand, ib3_operand,
8436         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8437         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8438         andi16_operand): New predicates.
8439         * config/mips/mips.md (compression): New attribute.
8440         (enabled): New attribute.
8441         (length): Consider compression in computing length.
8442         (shift_compression): New code attribute.
8443         (*add<mode>3): New operands. Record compression.
8444         (sub<mode>3): Likewise.
8445         (one_cmpl<mode>2): Likewise.
8446         (*and<mode>3): Likewise.
8447         (*ior<mode>3): Likewise.
8448         (unnamed pattern for xor): Likewise.
8449         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8450         (*<optab><mode>3): Likewise.
8451         (*mov<mode>_internal: Likewise.
8452         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8453         (mips_unsigned_immediate_p): New.
8454         (umips_lwsp_swsp_address_p): New.
8455         (m16_based_address_p): New.
8456         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8457         (mips_unsigned_immediate_p): New prototype.
8458         (lwsp_swsp_address_p): New prototype.
8459         (m16_based_address_p): New prototype.
8460         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8461         (mips_signed_immediate_p): New function.
8462         (m16_based_address_p): New function.
8463         (lwsp_swsp_address_p): New function.
8464         (mips_print_operand_punctuation): Recognize short delay slot insns
8465         for microMIPS.add<mode>3"
8466
8467 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8468
8469         PR target/56720
8470         * config/arm/iterators.md (v_cmp_result): New mode attribute.
8471         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8472
8473 2013-03-25  Richard Biener  <rguenther@suse.de>
8474
8475         PR tree-optimization/56689
8476         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8477         any edge.
8478
8479 2013-03-25  Richard Biener  <rguenther@suse.de>
8480
8481         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8482         of bitmap.
8483         (memory_references): Likewise.
8484         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8485         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8486         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8487         (gather_mem_refs_in_loops): Fold into ...
8488         (analyze_memory_references): ... this.  Move initialization
8489         to tree_ssa_lim_initialize.
8490         (fill_always_executed_in): Rename to ...
8491         (fill_always_executed_in_1): ... this.
8492         (fill_always_executed_in): Move contains_call computation to
8493         this new function from ...
8494         (tree_ssa_lim_initialize): ... here.
8495         (tree_ssa_lim): Call fill_always_executed_in.
8496
8497 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8498
8499         * postreload.c (reload_combine): Fix code detecting returns.
8500
8501 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8502
8503         * function.c (emit_use_return_register_into_block): On cc0 targets,
8504         do not emit the sequence between cc0 setter and user.
8505
8506 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8507
8508         * config/i386/predicates.md (local_symbolic_operand): Interpret
8509         dll-imported symbols as none-local.
8510
8511 2013-03-25  Richard Biener  <rguenther@suse.de>
8512
8513         * tree-ssa-loop-im.c (struct depend): Remove.
8514         (struct lim_aux_data): Make depends a vec of gimples.
8515         (free_lim_aux_data): Adjust.
8516         (add_dependency): Likewise.
8517         (set_level): Likewise.
8518
8519 2013-03-25  Richard Biener  <rguenther@suse.de>
8520
8521         PR middle-end/56434
8522         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8523         the pointer returned by calls with ECF_MALLOC set.
8524
8525 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8526
8527         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8528
8529 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8530
8531         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8532         using MMXMODE mode iterator.
8533         (*move<mode>_internal): Merge with *movv2sf_internal and
8534         *movv2sf_internal_rex64 using MMXMODE mode iterator.
8535
8536 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8537
8538         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8539         (record_last_mem_set_info): Likewise.
8540
8541         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8542         of XNEWVEC followed by memset.
8543         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8544
8545 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8546
8547         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8548         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8549         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8550         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8551         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8552         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8553         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8554         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8555         BARRIER_P instead of GET_CODE.
8556
8557 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8558
8559         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8560         inaccuracy in the probing code.
8561
8562         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8563         (ctrapdi4): Likewise.
8564
8565 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8566
8567         * calls.c (expand_call): Add missing guard to code handling return
8568         of non-BLKmode structures in MSB.
8569         * function.c (expand_function_end): Likewise.
8570
8571 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8572
8573         * combine.c (try_combine): Adjust comment.  Do not add the set of
8574         insn #0 if the destination indirectly is set or dies in insn #2.
8575         Tidy up code to distribute a new note.
8576
8577 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8578
8579         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8580         also for alternatives 16 and 17.
8581
8582 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8583
8584         * config/i386/sse.md (*mov<mode>_internal): Merge with
8585         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
8586         Emit insn template depending on type attribute.  Use
8587         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8588         movd instead of movq mnemonic for interunit moves.  Rewrite mode
8589         attribute calculation.  Remove unit attribute calculation.
8590         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8591         Set prefix_data16 attribute for DImode ssemov types.
8592         Use Ym instead of y for SSE-MMX conversion alternatives.
8593         Reorder operand constraints.
8594
8595 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
8596
8597         * df.h (df_insn_delete): Adjust prototype.
8598         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8599         and let it decide whether mark the basic block dirty.
8600         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8601         * df-scan.c (df_insn_info_delete): New helper function, split
8602         off from df_insn_delete.
8603         (df_scan_free_bb_info): Use it.
8604         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8605         Likewise.
8606         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
8607         that the insn is actually an insn and it has a non-NULL basic block.
8608         Do not mark basic block dirty if only deleting a DEBUG_INSN.
8609
8610 2013-03-22  Richard Biener  <rguenther@suse.de>
8611
8612         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8613         dep_ref members.
8614         (mem_ref_alloc): Do not allocate them.
8615         (refs_independent_p): Do not query or maintain a cache.
8616
8617 2013-03-22  Richard Biener  <rguenther@suse.de>
8618
8619         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8620         (gather_mem_refs_in_loops): Do not compute it.
8621         (analyze_memory_references): Do not allocate it.
8622         (tree_ssa_lim_finalize): Do not free it.
8623         (for_all_locs_in_loop): Do not query all_refs_in_loop.
8624
8625 2013-03-22  Richard Biener  <rguenther@suse.de>
8626
8627         * is-a.h (as_a): Use gcc_checking_assert.
8628
8629 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
8630
8631         * config/aarch64/aarch64.c (aarch64_print_operand): New
8632         format specifier for printing a constant in hex.
8633         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8634         format specifier for printing second operand.
8635
8636 2013-03-22  Richard Biener  <rguenther@suse.de>
8637
8638         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8639         bitmaps.
8640         (gather_mem_refs_in_loops): Perform store accumulation here.
8641         (create_vop_ref_mapping_loop): Remove.
8642         (create_vop_ref_mapping): Likewise.
8643         (analyze_memory_references): Initialize refs_stored_in_loop.
8644         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8645         (record_indep_loop): Remove.
8646         (record_dep_loop): New function.
8647         (ref_indep_loop_p_1): Adjust to only walk over references
8648         in the loop, not its subloops.
8649         (ref_indep_loop_p): Rename to ...
8650         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8651         maintaining a more fine-grained cache.
8652         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8653         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8654
8655 2013-03-22  Richard Biener  <rguenther@suse.de>
8656
8657         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8658         (struct mem_ref): Make accesses_in_loop a vec of a vec of
8659         aggregate mem_ref_loc.
8660         (free_mem_ref_locs): Inline into ...
8661         (memref_free): ... this and adjust.
8662         (mem_ref_alloc): Adjust.
8663         (mem_ref_locs_alloc): Remove.
8664         (record_mem_ref_loc): Adjust.
8665         (get_all_locs_in_loop): Rewrite into ...
8666         (for_all_locs_in_loop): ... this iterator.
8667         (rewrite_mem_ref_loc): New functor.
8668         (rewrite_mem_refs): Use for_all_locs_in_loop.
8669         (sm_set_flag_if_changed): New functor.
8670         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8671         (ref_always_accessed): New functor.
8672         (ref_always_accessed_p): Use for_all_locs_in_loop.
8673
8674 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8675
8676         * tree-pass.h (PROP_gimple_lvec): New.
8677         * passes.c (dump_properties): Handle PROP_gimple_lvec.
8678         (init_optimization_passes): Move pass_lower_vector.
8679         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8680         PROP_gimple_lvec.
8681         (pass_lower_vector): Provide PROP_gimple_lvec.
8682         (pass_lower_vector_ssa): Likewise.
8683         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8684
8685 2013-03-21  Mark Wielaard  <mjw@redhat.com>
8686
8687         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8688
8689 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8690
8691         * config/i386/i386.md (*movdi_internal): Disparage slightly
8692         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
8693         conversion alternatives.
8694
8695 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
8696
8697         PR middle-end/48087
8698         * diagnostic.def (DK_WERROR): New kind.
8699         * diagnostic.h (werrorcount): Define.
8700         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8701         promoted to DK_ERROR, increment DK_WERROR counter instead of
8702         DK_ERROR counter.
8703         * toplev.c (toplev_main): Call print_ignored_options even if
8704         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
8705         even if just werrorcount is non-zero.
8706
8707         PR debug/55608
8708         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8709         on failure.
8710         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8711         (string_cst_pool_decl): New function.
8712         (optimize_one_addr_into_implicit_ptr): New function.
8713         (resolve_addr_in_expr): Optimize DWARF location expression
8714         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8715         which doesn't live in memory, but has DW_AT_location or
8716         DW_AT_const_value, or refers to a string literal, into
8717         DW_OP_GNU_implicit_pointer.
8718         (optimize_location_into_implicit_ptr): New function.
8719         (resolve_addr): If removing DW_AT_location of a variable because
8720         it was DW_OP_addr of address of the variable, but the variable doesn't
8721         live in memory, try to emit const value attribute for the initializer.
8722
8723 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8724
8725         * tree.h (VECTOR_TYPE_P): New macro.
8726         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8727         TYPE_MODE): Use it.
8728         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8729         VEC_COND_EXPR cannot be lvalues.
8730         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8731
8732 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8733
8734         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8735         Restrict the transformation to equal modes.
8736
8737 2013-03-21  Richard Biener  <rguenther@suse.de>
8738
8739         PR tree-optimization/39326
8740         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8741         (MEM_ANALYZABLE): Adjust.
8742         (record_mem_ref_loc): Move bitmap ops ...
8743         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
8744         unanalyzable refs, do not record locations for it.
8745         (analyze_memory_references): Allocate ref zero as shared
8746         unanalyzable ref.
8747         (refs_independent_p): Do not test for unanalyzed mems here.
8748         (ref_indep_loop_p_1): Special-case disambiguation against
8749         the unanalyzed ref.
8750         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8751
8752 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
8753
8754         * config/arm/arm-protos.h (tune_params): Add
8755         prefer_neon_for_64bits field.
8756         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8757         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8758         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8759         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8760         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8761         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8762         (arm_option_override): Handle -mneon-for-64bits new option.
8763         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8764         (prefer_neon_for_64bits): Declare new variable.
8765         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8766         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8767         (arch_enabled): Handle new arch types. Remove support for onlya8
8768         and nota8.
8769         (one_cmpldi2): Use new arch names.
8770         (zero_extend<mode>di2, extend<mode>di2): Ditto.
8771         * config/arm/arm.opt (mneon-for-64bits): Add option.
8772         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8773         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8774         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8775         of onlya8.
8776         * doc/invoke.texi (-mneon-for-64bits): Document.
8777
8778 2013-03-21  Richard Biener  <rguenther@suse.de>
8779
8780         PR tree-optimization/39326
8781         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8782         (sort_bbs_in_loop_postorder_cmp): New function.
8783         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8784
8785 2013-03-21  Richard Biener  <rguenther@suse.de>
8786
8787         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8788         (vect_insert_into_interleaving_chain): Likewise.
8789         (vect_drs_dependent_in_basic_block): Inline ...
8790         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
8791         split out from ...
8792         (vect_analyze_data_ref_dependence): ... here.  Simplify.
8793         (vect_check_interleaving): Simplify.
8794         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
8795         (vect_slp_analyze_data_ref_dependences): ... this new function.
8796         (dr_group_sort_cmp): New function.
8797         (vect_analyze_data_ref_accesses): Compute data-reference groups
8798         here instead of in vect_analyze_data_ref_dependence.  Use
8799         a more efficient algorithm.
8800         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8801         vect_slp_analyze_data_ref_dependences.  Call
8802         vect_analyze_data_ref_accesses earlier.
8803         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8804         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8805         (vect_slp_analyze_data_ref_dependences): New prototype.
8806
8807 2013-03-21  Richard Biener  <rguenther@suse.de>
8808
8809         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8810         ref is stored in the loop.
8811         (find_refs_for_sm): Walk only over all stores.
8812         (store_motion_loop): Allocate from lim_bitmap_obstack.
8813         (store_motion): Likewise.
8814
8815 2013-03-21  Richard Biener  <rguenther@suse.de>
8816
8817         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8818         Update virtual SSA form.
8819
8820 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8821
8822         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8823         * configure: Regenerate.
8824         * config.in: Regenerate.
8825         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8826         if !HAVE_LD_EH_FRAME_CIEV3.
8827
8828 2013-03-21  Richard Biener  <rguenther@suse.de>
8829
8830         * tree-cfg.c (verify_expr_no_block): New function.
8831         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8832         nor DECL_VALUE_EXPR have locations with associated blocks.
8833         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8834         (clear_unused_block_pointer): Remove code dealing with
8835         blocks in DECL_DEBUG_EXPR locations.
8836
8837 2013-03-21  Richard Biener  <rguenther@suse.de>
8838
8839         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8840         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
8841         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8842         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8843         instead of DECL_DEBUG_EXPR_IS_FROM.
8844         * gimplify.c (gimplify_modify_expr): Likewise.
8845         * tree-cfg.c (verify_expr_location_1): Likewise.
8846         * tree-complex.c (create_one_component_var): Likewise.
8847         * tree-sra.c (create_access_replacement): Likewise.
8848         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8849         (clear_unused_block_pointer): Likewise.
8850         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8851         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8852         * var-tracking.c (var_debug_decl): Likewise.
8853         (track_expr_p): Likewise.
8854         * tree-inline.c (add_local_variables): Likewise.  Set
8855         DECL_HAS_DEBUG_EXPR_P after copying it.
8856         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8857         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
8858
8859 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8860
8861         PR bootstrap/56656
8862         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8863         * configure: Regenerate.
8864         * config.in: Regenerate.
8865         * config/i386/i386.md (*movdf_internal): Use
8866         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8867         movd instead of movq mnemonic for interunit moves.
8868         (*movdi_internal): Ditto.
8869
8870 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8871
8872         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8873         (abd<mode>_3): New pattern.
8874         (aba<mode>_3): New pattern.
8875         (fabd<mode>_3): New pattern.
8876
8877 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8878
8879         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8880         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8881         occurrence of REGISTER_PREFIX as its empty string.
8882
8883 2013-03-20  Jeff Law  <law@redhat.com>
8884
8885         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8886         addititional equivalences for equality comparisons between an SSA_NAME
8887         and a constant where the SSA_NAME was set from a widening conversion.
8888
8889 2013-03-20  Walter Lee  <walt@tilera.com>
8890
8891         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8892
8893 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8894
8895         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8896         depending on type attribute.
8897         (*movti_internal): Ditto.
8898         (*movtf_internal): Ditto.
8899         (*movxf_internal): Ditto.
8900         (*movdf_internal): Ditto.
8901         (*movsf_internal): Ditto.
8902
8903 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8904
8905         * config/i386/i386.md (*movti_internal): Set prefix attribute to
8906         maybe_vex for sselog1 and ssemov types.
8907         (*movdi_internal): Reorder operand constraints.
8908         (*movsi_internal): Ditto.  Set prefix attribute to
8909         maybe_vex for sselog1 and ssemov types.
8910         (*movtf_internal): Set prefix attribute to maybe_vex
8911         for sselog1 and ssemov types.
8912         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
8913         DImode ssemov types.  Reorder operand constraints.
8914         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
8915         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
8916         attribute for SImode ssemov types.  Reorder operand constraints.
8917
8918 2013-03-20  Martin Jambor  <mjambor@suse.cz>
8919
8920         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8921         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8922
8923 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
8924
8925         * config/rs6000/predicates.md (indexed_address, update_address_mem
8926         update_indexed_address_mem): New predicates.
8927         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8928         attribute for load/store instructions.
8929         * config/rs6000/dfp.md (movsd_store): Likewise.
8930         (movsd_load): Likewise.
8931         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8932         (unnamed HI->DI extend define_insn): Likewise.
8933         (unnamed SI->DI extend define_insn): Likewise.
8934         (unnamed QI->SI extend define_insn): Likewise.
8935         (unnamed QI->HI extend define_insn): Likewise.
8936         (unnamed HI->SI extend define_insn): Likewise.
8937         (unnamed HI->SI extend define_insn): Likewise.
8938         (extendsfdf2_fpr): Likewise.
8939         (movsi_internal1): Likewise.
8940         (movsi_internal1_single): Likewise.
8941         (movhi_internal): Likewise.
8942         (movqi_internal): Likewise.
8943         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8944         attribute for load/store instructions.
8945         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8946         instructions.
8947         (mov<mode>_softfloat): Likewise.
8948         (mov<mode>_hardfloat32): Likewise.
8949         (mov<mode>_hardfloat64): Likewise.
8950         (mov<mode>_softfloat64): Likewise.
8951         (movdi_internal32): Likewise.
8952         (movdi_internal64): Likewise.
8953         (probe_stack_<mode>): Likewise.
8954
8955 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8956
8957         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8958         floating point, and decimal floating point to reload iterator.
8959
8960         * config/rs6000/constraints.md (wl constraint): New constraints to
8961         return FLOAT_REGS if certain options are used to reduce the number
8962         of separate patterns that exist in the file.
8963         (wx constraint): Likewise.
8964         (wz constraint): Likewise.
8965
8966         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8967         -mdebug=reg, print wg, wl, wx, and wz constraints.
8968         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8969         Initialize the reload functions for 64-bit binary/decimal floating
8970         point types.
8971         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8972         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8973         create the buffer on the stack to overcome not having a 32-bit
8974         load and store.
8975         (rs6000_emit_move): Likewise.
8976         (rs6000_secondary_memory_needed_rtx): Likewise.
8977         (rs6000_alloc_sdmode_stack_slot): Likewise.
8978         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8979         via xxlxor, just like DFmode 0.0.
8980
8981         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8982         define as 1 if we are running on a power7 or newer.
8983         (enum r6000_reg_class_enum): Add new constraints.
8984
8985         * config/rs6000/dfp.md (movsd): Delete, combine with binary
8986         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
8987         with other moves by using conditional constraits (wg).  Use LFIWZX
8988         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
8989         (movsd splitter): Likewise.
8990         (movsd_hardfloat): Likewise.
8991         (movsd_softfloat): Likewise.
8992
8993         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8994         binary and decimal floating point moves.
8995         (fmove_ok): New attributes to combine binary and decimal floating
8996         point moves, and to combine power6x (mfpgpr) moves along normal
8997         floating moves.
8998         (real_value_to_target): Likewise.
8999         (f32_lr): Likewise.
9000         (f32_lm): Likewise.
9001         (f32_li): Likewise.
9002         (f32_sr): Likewise.
9003         (f32_sm): Likewise.
9004         (f32_si): Likewise.
9005         (movsf): Combine binary and decimal floating point moves.  Combine
9006         power6x (mfpgpr) moves with other moves by using conditional
9007         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
9008         (mov<mode> for SFmode/SDmode); Likewise.
9009         (SFmode/SDmode splitters): Likewise.
9010         (movsf_hardfloat): Likewise.
9011         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9012         (movsf_softfloat): Likewise.
9013         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9014
9015         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9016         wx and wz constraints.
9017
9018         * config/rs6000/constraints.md (wg constraint): New constraint to
9019         return FLOAT_REGS if -mmfpgpr (power6x) was used.
9020
9021         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9022         constraint.
9023
9024         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9025         -mdebug=reg, print wg, wl, wx, and wz constraints.
9026         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9027         Initialize the reload functions for 64-bit binary/decimal floating
9028         point types.
9029         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9030         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9031         create the buffer on the stack to overcome not having a 32-bit
9032         load and store.
9033         (rs6000_emit_move): Likewise.
9034         (rs6000_secondary_memory_needed_rtx): Likewise.
9035         (rs6000_alloc_sdmode_stack_slot): Likewise.
9036         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9037         via xxlxor, just like DFmode 0.0.
9038
9039         * config/rs6000/dfp.md (movdd): Delete, combine with binary
9040         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9041         with other moves by using conditional constraits (wg).  Use LFIWZX
9042         and STFIWX for loading SDmode on power7.
9043         (movdd splitters): Likewise.
9044         (movdd_hardfloat32): Likewise.
9045         (movdd_softfloat32): Likewise.
9046         (movdd_hardfloat64_mfpgpr): Likewise.
9047         (movdd_hardfloat64): Likewise.
9048         (movdd_softfloat64): Likewise.
9049
9050         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9051         64-bit binary and decimal floating point moves.
9052         (FMOVE64X): Likewise.
9053         (movdf): Combine 64-bit binary and decimal floating point moves.
9054         Combine power6x (mfpgpr) moves with other moves by using
9055         conditional constraits (wg).
9056         (mov<mode> for DFmode/DDmode): Likewise.
9057         (DFmode/DDmode splitters): Likewise.
9058         (movdf_hardfloat32): Likewise.
9059         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9060         (movdf_softfloat32): Likewise.
9061         (movdf_hardfloat64_mfpgpr): Likewise.
9062         (movdf_hardfloat64): Likewise.
9063         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9064         (movdf_softfloat64): Likewise.
9065         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9066         (reload_<mode>_load): Move to later in the file so they aren't in
9067         the middle of the floating point move insns.
9068         (reload_<mode>_store): Likewise.
9069
9070         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9071         constraint.
9072
9073         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9074         constraint if -mdebug=reg.
9075         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9076         Enable using dd reload support if needed.
9077
9078         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9079         binary and decimal floating point moves in rs6000.md.
9080         (movtd_internal): Likewise.
9081
9082         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9083         decimal floating point moves.
9084         (movtf): Likewise.
9085         (movtf_internal): Likewise.
9086         (mov<mode>_internal, TDmode/TFmode): Likewise.
9087         (movtf_softfloat): Likewise.
9088         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9089
9090         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9091         movdi_internal64, using wg constraint for move direct operations.
9092         (movdi_internal64): Likewise.
9093
9094         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9095         MODES_TIEABLE_P for selected modes.  Print the numerical value of
9096         the various virtual registers. Use GPR/FPR first/last values,
9097         instead of hard coding the register numbers.  Print which modes
9098         have reload functions registered.
9099         (rs6000_option_override_internal): If -mdebug=reg, trace the options
9100         settings before/after setting cpu, target and subtarget settings.
9101         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9102         and for secondary reload failures in rs6000_secondary_reload_inner.
9103         (rs6000_secondary_reload_fail): Likewise.
9104         (rs6000_secondary_reload_inner): Likewise.
9105
9106         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9107         macros for first/last GPR and FPR registers.
9108         (LAST_GPR_REGNO): Likewise.
9109         (FIRST_FPR_REGNO): Likewise.
9110         (LAST_FPR_REGNO): Likewise.
9111
9112         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9113         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9114         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9115         (vcond<mode><mode>): Likewise.
9116         (vcondu<mode><mode>): Likewise.
9117         (vector_gtu<mode>): Likewise.
9118         (vector_gte<mode>): Likewise.
9119         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9120         to prevent the compiler from converting DImode operations to TImode.
9121         (ior<mode>3): Likewise.
9122         (and<mode>3): Likewise.
9123         (one_cmpl<mode>2): Likewise.
9124         (nor<mode>3): Likewise.
9125         (andc<mode>3): Likewise.
9126
9127         * config/rs6000/constraints.md (wt constraint): New constraint
9128         that returns VSX_REGS if TImode is allowed in VSX registers.
9129
9130         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9131         constant under VSX.
9132
9133         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9134         similar to TImode, but it is restricted to being in the GPRs.
9135
9136         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9137         TImode to occupy a single VSX register.
9138
9139         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9140         -mvsx-timode for power7/power8.
9141         (power7 cpu): Likewise.
9142         (power8 cpu): Likewise.
9143
9144         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9145         sure that TFmode/TDmode take up two registers if they are ever
9146         allowed in the upper VSX registers.
9147         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9148         registers.
9149         (rs6000_init_hard_regno_mode_ok): Likewise.
9150         (rs6000_debug_reg_global): Add debugging for PTImode and wt
9151         constraint.  Print if LRA is turned on.
9152         (rs6000_option_override_internal): Give an error if -mvsx-timode
9153         and VSX is not enabled.
9154         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
9155         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9156         to reg+offset addressing.  Use PTImode when checking offset
9157         addresses for validity.
9158         (reg_offset_addressing_ok_p): Likewise.
9159         (rs6000_legitimate_offset_address_p): Likewise.
9160         (rs6000_legitimize_address): Likewise.
9161         (rs6000_legitimize_reload_address): Likewise.
9162         (rs6000_legitimate_address_p): Likewise.
9163         (rs6000_eliminate_indexed_memrefs): Likewise.
9164         (rs6000_emit_move): Likewise.
9165         (rs6000_secondary_reload): Likewise.
9166         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
9167         reloads to fpr registers to continue to use reg+offset addressing,
9168         but 64-bit reloads to altivec registers need reg+reg addressing.
9169         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9170         it.  Treat LO_SUM like a PLUS operation.
9171         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9172         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9173         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9174         registers to share a register with a smaller sized type, since VSX
9175         puts scalars in the upper 64-bits.
9176         (print_operand): Add support for PTImode.
9177         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9178         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9179         registers, but don't have arithmetic support.
9180         (rs6000_memory_move_cost): Add test for VSX.
9181         (rs6000_opt_masks): Add -mvsx-timode.
9182
9183         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9184         for TImode.
9185         (VSs): Likewise.
9186         (VSr): Use wt constraint for TImode.
9187         (VSv): Drop TImode support.
9188         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9189         (vsx_movti_64bit): Likewise.
9190         (vsx_movti_32bit): Likewise.
9191         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9192         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9193         one '?' on the appropriate output constraint.  Do not allow TImode
9194         logical operations on 32-bit systems.
9195         (vsx_ior<mode>3): Likewise.
9196         (vsx_xor<mode>3): Likewise.
9197         (vsx_one_cmpl<mode>2): Likewise.
9198         (vsx_nor<mode>3): Likewise.
9199         (vsx_andc<mode>3): Likewise.
9200         (vsx_concat_<mode>): Likewise.
9201         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9202
9203         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9204         OPTION_MASK_VSX_TIMODE.
9205         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9206         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9207
9208         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9209         (TI2 iterator): New iterator for TImode, PTImode.
9210         (wd mode attribute): Add values for vector types.
9211         (movti_string): Replace TI move operations with operations for TImode
9212         and PTImode.  Add support for TImode being allowed in VSX registers.
9213         (mov<mode>_string, TImode/PTImode): Likewise.
9214         (movti_ppc64): Likewise.
9215         (mov<mode>_ppc64, TImode/PTImode): Likewise.
9216         (TI mode splitters): Likewise.
9217
9218         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9219         constraint.
9220
9221 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
9222
9223         PR tree-optimization/56355
9224         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9225         Also handle integers with undefined overflow.
9226
9227 2013-03-20  Catherine Moore  <clm@codesourcery.com>
9228             Maciej W. Rozycki  <macro@codesourcery.com>
9229             Tom de Vries  <tom@codesourcery.com>
9230             Nathan Sidwell <nathan@codesourcery.com>
9231             Iain Sandoe  <iain@codesourcery.com>
9232             Nathan Froyd  <froydnj@codesourcery.com>
9233             Chao-ying Fu <fu@mips.com>
9234
9235         * doc/extend.texi: (micromips, nomicromips, nocompression):
9236         Document new function attributes.
9237         * doc/invoke.texi (minterlink-compressed, mmicromips,
9238         m14k, m14ke, m14kec): Document new options.
9239         (minterlink-mips16): Update documentation.
9240         * doc/md.texi (ZC, ZD): Document new constraints.
9241         * configure.ac (gcc_cv_as_micromips): Check if linker
9242         supports the .set micromips directive.
9243         * configure: Regenerate.
9244         * config.in: Regenerate.
9245         * config/mips/mips-tables.opt: Regenerate.
9246         * config/mips/micromips.md: New file.
9247         * constraints.md (ZC, ZD): New constraints.
9248         * config/mips/predicates.md (movep_src_register): New predicate.
9249         (movep_src_operand): New predicate.
9250         (non_volatile_mem_operand): New predicate.
9251         * config/mips/mips.md (multimem): New type.
9252         (length): Differentiate between 17-bit and 18-bit branch offsets.
9253         (MOVEP1, MOVEP2): New mode iterator.
9254         (mov_<load>l): Use ZC constraint.
9255         (mov_<load>r): Likewise.
9256         (mov_<store>l): Likewise.
9257         (mov_<store>r): Likewise.
9258         (*branch_equality<mode>_inverted): Add microMIPS support.
9259         (*branch_equality<mode>): Likewise.
9260         (*jump_absolute): Likewise.
9261         (indirect_jump_<mode>): Likewise.
9262         (tablejump_<mode>): Likewise.
9263         (<optab>_internal): Likewise.
9264         (sibcall_internal): Likewise.
9265         (sibcall_value_internal): Likewise.
9266         (prefetch): Use constraint ZD.
9267         * config/mips/mips.opt (minterlink-compressed): New option.
9268         (minterlink-mips16): Now an alias for minterlink-compressed.
9269         (mmicromips): New option.
9270         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9271         (compare_and_swap_12): Likewise.
9272         (sync_add<mode>): Likewise.
9273         (sync_<optab>_12): Likewise.
9274         (sync_old_<optab>_12): Likewise.
9275         (sync_new_<optab>_12): Likewise.
9276         (sync_nand_12): Likewise.
9277         (sync_old_nand_12): Likewise.
9278         (sync_new_nand_12): Likewise.
9279         (sync_sub<mode>): Likewise.
9280         (sync_old_add<mode>): Likewise.
9281         (sync_old_sub<mode>): Likewise.
9282         (sync_new_add<mode>): Likewise.
9283         (sync_new_sub<mode>): Likewise.
9284         (sync_<optab><mode>): Likewise.
9285         (sync_old_<optab><mode>): Likewise.
9286         (sync_new_<optab><mode>): Likewise.
9287         (sync_nand<mode>): Likewise.
9288         (sync_old_nand<mode>): Likewise.
9289         (sync_new_nand<mode>): Likewise.
9290         (sync_lock_test_and_set<mode>): Likewise.
9291         (test_and_set_12): Likewise.
9292         (atomic_compare_and_swap<mode>): Likewise.
9293         (atomic_exchange<mode>_llsc): Likewise.
9294         (atomic_fetch_add<mode>_llsc): Likewise.
9295         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9296         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9297         (umips_save_restore_pattern_p): Likewise.
9298         (umips_load_store_pair_p): Likewise.
9299         (umips_output_load_store_pair): Likewise.
9300         (umips_movep_target_p): Likewise.
9301         (umips_12bit_offset_address_p): Likewise.
9302         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9303         (mips_base_mips16): Rename this...
9304         (mips_base_compression_flags): ...to this. Update all uses.
9305         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9306         (mips_mips16_decl_p): Delete.
9307         (mips_nomips16_decl_p): Delete.
9308         (mips_get_compress_on_flags): New function.
9309         (mips_get_compress_off_flags): New function.
9310         (mips_get_compress_mode): New function.
9311         (mips_get_compress_on_name): New function.
9312         (mips_get_compress_off_name): New function.
9313         (mips_insert_attributes): Support multiple compression types.
9314         (mips_merge_decl_attributes): Likewise.
9315         (umips_12bit_offset_address_p): New function.
9316         (mips_start_function_definition): Emit .set micromips directive.
9317         (mips_call_may_need_jalx_p): New function.
9318         (mips_function_ok_for_sibcall): Add microMIPS support.
9319         (mips_print_operand_punctuation): Support short delay slots and
9320         compact jumps.
9321         (umips_swm_mask, umips_swm_encoding): New.
9322         (umips_build_save_restore): New function.
9323         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9324         (was_mips16_p): Remove.
9325         (old_compression_mode): New.
9326         (mips_set_compression_mode): New function.
9327         (mips_set_current_function): Add microMIPS support.
9328         (mips_option_override): Likewise.
9329         (umips_save_restore_pattern_p): New function.
9330         (umips_output_save_restore): New function.
9331         (umips_load_store_pair_p_1): New function.
9332         (umips_load_store_pair_p): New function.
9333         (umips_output_load_store_pair_1): New function.
9334         (umips_output_load_store_pair): New function.
9335         (umips_movep_target_p) New function.
9336         (mips_prepare_pch_save): Add microMIPS support.
9337         * config/mips/mips.h (TARGET_COMPRESSION): New.
9338         (TARGET_CPU_CPP_BUILTINS): Update macro
9339         to use new compression flags and to support microMIPS.
9340         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9341         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9342         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9343         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9344         (ASM_SPEC): Support mmicromips and mno-micromips.
9345         (M16STORE_REG_P): New macro.
9346         (MIPS_CALL): Support TARGET_MICROMIPS.
9347         (MICROMIPS_J): New macro.
9348         (mips_base_mips16): Rename this...
9349         (mips_base_compression_flags): ...to this.
9350         (UMIPS_12BIT_OFFSET_P): New macro.
9351         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9352         (MULTILIB_DIRNAMES): Likewise.
9353 2013-03-20  Richard Biener  <rguenther@suse.de>
9354
9355         PR tree-optimization/56661
9356         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9357         the result does not have to be distinct.
9358
9359 2013-03-20  Richard Biener  <rguenther@suse.de>
9360
9361         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9362         remap_gimple_op_r.
9363
9364 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9365             Steven Bosscher <steven@gcc.gnu.org>
9366
9367         PR rtl-optimization/56605
9368         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9369
9370 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9371
9372         PR bootstrap/56656
9373         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9374         that require movd instead of movq.
9375
9376 2013-03-20  Richard Biener  <rguenther@suse.de>
9377
9378         * tree-ssa-structalias.c (struct variable_info): Add pointer
9379         to the first field of an aggregate with sub-vars.  Make
9380         this and the pointer to the next subfield its ID.
9381         (vi_next): New function.
9382         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9383         storedanything_id, integer_id): Increment by one.
9384         (new_var_info, get_call_vi, lookup_call_clobber_vi,
9385         get_call_clobber_vi): Adjust.
9386         (solution_set_expand): Simplify and speedup.
9387         (solution_set_add): Inline into ...
9388         (set_union_with_increment): ... this.  Adjust accordingly.
9389         (do_sd_constraint): Likewise.
9390         (do_ds_constraint): Likewise.
9391         (do_complex_constraint): Simplify.
9392         (build_pred_graph): Adjust.
9393         (solve_graph): Likewise.  Simplify and speedup.
9394         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9395         get_constraint_for_component_ref, get_constraint_for_1,
9396         first_vi_for_offset, first_or_preceding_vi_for_offset,
9397         create_function_info_for, create_variable_info_for_1,
9398         create_variable_info_for, intra_create_variable_infos): Adjust.
9399         (init_base_vars): Push NULL for ID zero.
9400         (compute_points_to_sets): Adjust.
9401
9402 2013-03-20  Richard Biener  <rguenther@suse.de>
9403
9404         * cfgloop.c (verify_loop_structure): Streamline and avoid
9405         ICEing on corrupt loop tree.
9406         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9407         loop tree.
9408
9409 2013-03-20  Richard Biener  <rguenther@suse.de>
9410
9411         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9412         check whether an SSA update is needed.
9413
9414 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
9415
9416         * config/mips/constraints.md (T): Rename to...
9417         (Yf): ...this.
9418         (U): Rename to...
9419         (Yd): ...this.
9420         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9421         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9422
9423 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9424
9425         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9426         (*subsi3_carryin_uxtw): Likewise.
9427
9428 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9429
9430         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9431         (*rorsi3_insn_uxtw): Likewise.
9432
9433 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9434
9435         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9436         (*extrsi5_insn_uxtw): Likewise.
9437
9438 2013-03-19  Richard Biener  <rguenther@suse.de>
9439
9440         PR tree-optimization/56273
9441         * passes.c (init_optimization_passes): Move second VRP after DOM.
9442
9443 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
9444
9445         * config/i386/i386.md (*movti_internal): Merge from
9446         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
9447         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
9448         nox64 isa attributes.
9449
9450 2013-03-18  Richard Biener  <rguenther@suse.de>
9451
9452         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9453         (unite): Likewise.
9454         (merge_node_constraints): Likewise.
9455         (build_succ_graph): Likewise.
9456         (valid_graph_edge): Inline into single caller.
9457         (unify_nodes): Likewise.  Use bitmap_set_bit return value
9458         and cache varinfo.
9459         (scc_visit): Fix formatting and variable use.
9460         (do_sd_constraint): Use gcc_checking_assert.
9461         (do_ds_constraint): Likewise.
9462         (do_complex_constraint): Likewise.
9463         (condense_visit): Likewise.  Cleanup.
9464         (dump_pred_graph): New function.
9465         (perform_var_substitution): Dump the pred-graph before
9466         variable substitution.
9467         (find_equivalent_node): Use gcc_checking_assert.
9468         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9469
9470 2013-03-18  Richard Biener  <rguenther@suse.de>
9471
9472         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9473         Remove cond_expr_stmt_list argument and do not gimplify the
9474         built expression.
9475         (vect_loop_versioning): Adjust.
9476         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9477         Cleanup to use less temporaries.
9478         (vect_create_data_ref_ptr): Cleanup.
9479
9480 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9481
9482         PR tree-optimization/56635
9483         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9484         require types_compatible_p types.
9485
9486 2013-03-18  Nick Clifton  <nickc@redhat.com>
9487
9488         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9489         spurious backslash.
9490
9491         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9492         Add missing line to comment describing function.
9493
9494 2013-03-18  Richard Biener  <rguenther@suse.de>
9495
9496         PR tree-optimization/56210
9497         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9498         Handle string / character search functions.
9499         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9500
9501 2013-03-18  Richard Biener  <rguenther@suse.de>
9502
9503         PR middle-end/56483
9504         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9505         and implement properly.
9506         * gimple.h (gimple_cond_single_var_p): Remove.
9507
9508 2013-03-18  Richard Biener  <rguenther@suse.de>
9509
9510         * tree-data-ref.h (find_data_references_in_loop): Declare.
9511         * tree-data-ref.c (get_references_in_stmt): Use a stack
9512         vector pre-allocated in the callers.
9513         (find_data_references_in_stmt): Adjust.
9514         (graphite_find_data_references_in_stmt): Likewise.
9515         (create_rdg_vertices): Likewise.
9516         (find_data_references_in_loop): Export.
9517         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9518         Compute dependences here...
9519         (vect_analyze_data_refs): ...not here.  When we encounter
9520         a non-vectorizable data reference in basic-block vectorization
9521         truncate the data reference vector.  Do not bother to
9522         fixup data-dependence information for gather loads.
9523         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9524         of data references, as reported.
9525
9526 2013-03-18  Richard Biener  <rguenther@suse.de>
9527
9528         PR tree-optimization/3713
9529         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
9530         has_constants and expr.
9531         (stmt_has_constants): Properly valueize SSA names when deciding
9532         whether the stmt has constants.
9533
9534 2013-03-18  Richard Biener  <rguenther@suse.de>
9535
9536         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9537         whole function when there is nothing to do.
9538         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9539         * tree-vectorizer.c (vectorize_loops): Update virtual and
9540         loop-closed SSA once.
9541         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9542
9543 2013-03-18  Richard Biener  <rguenther@suse.de>
9544
9545         PR middle-end/56113
9546         * domwalk.c (bb_postorder): New global static.
9547         (cmp_bb_postorder): New function.
9548         (walk_dominator_tree): Replace scheme imposing an order for
9549         visiting dominator sons by one sorting them at the time they
9550         are pushed on the stack.
9551
9552 2013-03-18  Richard Biener  <rguenther@suse.de>
9553
9554         PR tree-optimization/39326
9555         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9556         (struct mem_ref): Replace mem member with ao_ref typed member.
9557         (MEM_ANALYZABLE): Adjust.
9558         (memref_eq): Likewise.
9559         (mem_ref_alloc): Likewise.
9560         (gather_mem_refs_stmt): Likewise.
9561         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9562         (execute_sm_if_changed_flag_set): Adjust.
9563         (execute_sm): Likewise.
9564         (ref_always_accessed_p): Likewise.
9565         (refs_independent_p): Likewise.
9566         (can_sm_ref_p): Likewise.
9567
9568 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9569
9570         PR c/56566
9571         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9572         return 1 even for !unsignedp.
9573
9574 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9575
9576         * config/i386/i386.md (isa): Add x64 and nox64.
9577         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9578         (*pushtf): Enable *roF alternative for x64 isa only.
9579         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
9580         mode attribute of integer alternatives to DImode for TARGET_64BIT.
9581         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
9582         (*movtf_internal): Merge from *movtf_internal_rex64 and
9583         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
9584         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
9585         nox64 isa attributes.
9586         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
9587         nox64 isa attributes.
9588         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9589
9590 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9591
9592         * config/alpha/alpha.c (TARGET_LRA_P): New define.
9593
9594 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
9595
9596         PR target/56640
9597         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9598         class names.  Remove trailing comma after "ALL_REGS".
9599
9600 2013-03-16  Jan Hubicka  <jh@suse.cz>
9601
9602         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9603         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9604         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9605         of cgraph_get_create_node.
9606         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9607
9608 2013-03-16  Jason Merrill  <jason@redhat.com>
9609
9610         PR debug/49090
9611         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9612         with DW_AT_default_value.
9613
9614 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
9615
9616         * BASE-VER: Set to 4.9.0.
9617
9618 2013-03-14  Andi Kleen  <ak@linux.intel.com>
9619
9620         PR target/56619
9621         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9622         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9623         Document _x* TSX intrinsics.
9624
9625 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
9626             David Holsgrove  <david.holsgrove@xilinx.com>
9627
9628         * configure.ac: Add MicroBlaze TLS support detection.
9629         * configure: Regenerate.
9630         * config/microblaze/microblaze-protos.h
9631         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9632         symbol_mentioned_p, label_mentioned_p): Add prototypes.
9633         * config/microblaze/microblaze.c (microblaze_address_type): Add
9634         ADDRESS_TLS and tls_reloc address types.
9635         (microblaze_address_info): Add tls_reloc.
9636         (TARGET_HAVE_TLS): Define.
9637         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9638          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
9639          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9640         load_tls_operand,  microblaze_call_tls_get_addr,
9641         microblaze_legitimize_tls_address): New functions.
9642         (microblaze_classify_unspec): Handle UNSPEC_TLS.
9643         (get_base_reg): Use microblaze_tls_symbol_p.
9644         (microblaze_classify_address): Handle TLS.
9645         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9646         label_mentioned_p and microblaze_tls_referenced_p.
9647         (microblaze_legitimize_address): Handle TLS.
9648         (microblaze_address_insns): Handle ADDRESS_TLS.
9649         (pic_address_needs_scratch): Handle TLS.
9650         (print_operand_address): Handle TLS.
9651         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9652         (microblaze_expand_move): Handle TLS.
9653         (microblaze_legitimate_constant_p): Check
9654         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
9655         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9656         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9657         (PIC_OFFSET_TABLE_REGNUM): Set.
9658         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9659         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9660         (addsi3, movsi_internal2, movdf_internal): Update constraints
9661         * config/microblaze/predicates.md (arith_plus_operand): Define
9662         (move_operand): Redefine as move_src_operand,
9663         check microblaze_tls_referenced_p.
9664
9665 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9666
9667         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9668         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9669
9670 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9671
9672         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9673         CC mode for AND.
9674
9675 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
9676
9677         PR tree-optimization/53265
9678         * common.opt (Waggressive-loop-optimizations): New option.
9679         * tree-ssa-loop-niter.c: Include tree-pass.h.
9680         (do_warn_aggressive_loop_optimizations): New function.
9681         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
9682         if number_of_latch_executions returned constant.
9683         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9684         early.  If number_of_latch_executions returned constant, set
9685         nb_iterations_upper_bound back to it.
9686         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9687         field.
9688         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9689         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9690
9691         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9692         (MULTILIB_OSDIRNAMES): Set.
9693         * genmultilib: If defaultosdirname doesn't start with :: , set
9694         defaultosdirname2 instead, clear it and emit two . multilib_raw
9695         entries instead of just one.
9696
9697 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
9698
9699         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9700         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9701         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9702         (SUBTARGET_OVERRIDE_OPTIONS): New.
9703
9704 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
9705
9706         PR target/49880
9707         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9708         (musermode): Convert to Var(TARGET_USERMODE).
9709         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9710         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9711         * config/sh/sh.c (sh_option_override): Use
9712         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9713         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9714         condition.
9715         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9716         TARGET_SH4.
9717         (udivsi3_i4_single, divsi3_i4_single): Use
9718         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9719
9720 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
9721
9722         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9723         default setting.
9724
9725 2013-03-13  Richard Biener  <rguenther@suse.de>
9726
9727         PR tree-optimization/56608
9728         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9729         calls when vectorizing basic-blocks.
9730
9731 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
9732
9733         PR plugins/45078
9734         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9735         tm_file.
9736
9737 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
9738
9739         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9740
9741 2013-03-11  Jan Hubicka  <jh@suse.cz>
9742
9743         PR lto/56557
9744         * lto-streamer-out.c (output_symbol_p): Skip references from
9745         constructors of external variables.
9746
9747 2013-03-11  Jan Hubicka  <jh@suse.cz>
9748
9749         PR middle-end/56571
9750         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9751         from pseudos.
9752         * emit-rtl.c (verify_rtx_sharing): Likewise.
9753         (copy_insn_1): Likewise.
9754         * rtl.c (copy_rtx): Likewise.
9755
9756 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
9757
9758         PR target/56591
9759         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9760         output_operand_lossage message.
9761
9762 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
9763
9764         PR target/56470
9765         * arm.c (shift_op): Validate RTL pattern on the fly.
9766         (arm_print_operand, case 'S'): Don't use shift_operator to validate
9767         the RTL.
9768
9769 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9770
9771         PR target/56347
9772         * config/pa/pa.md (call_value): Check for calls to powf and direct to
9773         new call patterns that clobber %fr12.
9774         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9775         split and postreload patterns.
9776         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9777         registers %fr12 and %fr12R as call used.
9778
9779 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
9780
9781         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9782         (canon_address, record_store, replace_read, check_mem_read_rtx,
9783         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9784         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9785         rest_of_handle_dse): Likewise.
9786
9787 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
9788
9789         PR middle-end/56524
9790         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9791         Add base_optabs.
9792         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9793         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9794         (save_optabs_if_changed): Replace with...
9795         (init_tree_optimization_optabs): ...this.
9796         * optabs.c (save_optabs_if_changed): Rename to...
9797         (init_tree_optimization_optabs): ...this.  Take the optimization node
9798         as argument.  Do nothing if the base optabs are already correct.
9799         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9800         to recompute optabs.
9801         * function.h (function): Remove optabs field.
9802         * function.c (invoke_set_current_function_hook): Call
9803         init_tree_optimization_optabs.  Use the result to initialize
9804         this_fn_optabs.
9805
9806 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
9807
9808         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9809         if GTMA_HAS_NO_INSTRUMENTATION.
9810         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9811         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9812         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9813         * gimple-pretty-print.c (dump_gimple_transaction): Handle
9814         GTMA_HAS_NO_INSTRUMENTATION.
9815
9816 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
9817
9818         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9819         libasan_preinit.o.
9820
9821 2013-03-08  Marek Polacek  <polacek@redhat.com>
9822             Jakub Jelinek  <jakub@redhat.com>
9823
9824         PR tree-optimization/56478
9825         * predict.c (is_comparison_with_loop_invariant_p): Change the
9826         type of loop_step to tree.
9827         (predict_loops): Adjust.
9828         (predict_iv_comparison): Perform the computations on double_ints.
9829
9830 2013-03-08  Richard Biener  <rguenther@suse.de>
9831
9832         PR tree-optimization/56570
9833         * tree-cfg.c (verify_expr_location_1): Verify locations for
9834         DECL_DEBUG_EXPR.
9835         * tree-sra.c (create_access_replacement): Strip locations
9836         from DECL_DEBUG_EXPRs.
9837
9838 2013-03-08  Richard Biener  <rguenther@suse.de>
9839
9840         * tree-inline.c (expand_call_inline): Do not associate
9841         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9842         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9843
9844 2013-03-08  Richard Biener  <rguenther@suse.de>
9845
9846         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9847         or block changes with -Og.  Fix for location / block encoding
9848         changes and PHI arguments with locations.
9849
9850 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
9851
9852         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9853         for all counters.
9854         (struct output_info): Likewise.
9855         (register_overhead): Remove bad gcc_assert.
9856         (bitmap_find_bit): If there is only a single bitmap element, do not
9857         count a miss as a search.
9858         (print_statistics): Update for counter type changes.
9859         (dump_bitmap_statistics): Likewise.  Print headers such that they
9860         are properly lined up with the printed counters.
9861
9862 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
9863
9864         PR tree-optimization/56559
9865         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9866         check that it has only a single use.
9867
9868 2013-03-07  Richard Biener  <rguenther@suse.de>
9869
9870         * doc/invoke.texi (fwhole-program): Discourage use in combination
9871         with -flto.
9872
9873 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
9874
9875         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9876
9877         PR tree-optimization/56539
9878         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9879         instead of GSI_CONTINUE_LINKING as last argument to
9880         force_gimple_operand_gsi.  Adjust function comment.
9881
9882         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9883         aarch64-cores.def.
9884
9885         PR middle-end/56548
9886         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9887         promoted mode, convert the result back to the original mode.
9888
9889 2013-03-06  Richard Biener  <rguenther@suse.de>
9890
9891         PR middle-end/56294
9892         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9893         (insert_updated_phi_nodes_compare_uids): New function.
9894         (update_ssa): Sort symbols_to_rename after UID before
9895         traversing it to insert PHI nodes.
9896
9897 2013-03-06  Richard Biener  <rguenther@suse.de>
9898
9899         PR middle-end/50494
9900         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9901         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9902
9903         Revert
9904         2013-02-13  Richard Biener  <rguenther@suse.de>
9905
9906         PR lto/50494
9907         * varasm.c (output_constant_def_1): Get the decl representing
9908         the constant as argument.
9909         (output_constant_def): Wrap output_constant_def_1.
9910         (make_decl_rtl): Use output_constant_def_1 with the decl
9911         representing the constant.
9912         (build_constant_desc): Optionally re-use a decl already
9913         representing the constant.
9914         (tree_output_constant_def): Adjust.
9915
9916 2013-03-06  Joey Ye  <joey.ye@arm.com>
9917
9918         PR lto/50293
9919         * gcc.c (convert_white_space): New function.
9920         (main): Handles white space in function name.
9921
9922 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
9923
9924         PR target/56529
9925         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9926         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
9927         to SH_DIV_CALL_TABLE for TARGET_SH2.
9928         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9929         list.
9930         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9931         call-table options.
9932
9933 2013-03-05  Sterling Augustine  <saugustine@google.com>
9934             Cary Coutant  <ccoutant@google.com>
9935
9936         PR debug/55364
9937         * dwarf2out.c (resolve_addr): Don't call
9938         remove_loc_list_addr_table_entries a second time for the same
9939         expression.
9940
9941 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9942
9943         PR debug/56510
9944         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9945         (avoid_complex_debug_insns): New function.
9946         (expand_debug_locations): Call it.
9947
9948         PR rtl-optimization/56484
9949         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9950         lifetimes of hard registers on small register class machines.
9951
9952 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9953
9954         * config/microblaze/microblaze-protos.h: Rename
9955         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
9956         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
9957         fast_interrupt.
9958         (microblaze_fast_interrupt_function_p): New function.
9959         (microblaze_is_interrupt_handler): Rename to
9960         microblaze_is_interrupt_variant and add fast_interrupt check.
9961         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9962         (save_restore_insns): Likewise.
9963         (compute_frame_size): Likewise.
9964         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9965         (microblaze_globalize_label): Likewise.
9966         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9967         * config/microblaze/microblaze.md: Use wrapper
9968         microblaze_is_interrupt_variant.
9969
9970 2013-03-05  Kai Tietz  <ktietz@redhat.com>
9971
9972         * sdbout.c (sdbout_one_type): Switch to current function's section
9973         supporting cold/hot.
9974
9975 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9976
9977         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9978         -mxl-reorder.
9979
9980 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9981
9982         PR middle-end/56461
9983         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9984         if VALGRIND_GET_VBITS is defined, temporarily make object
9985         memory all defined, and restore previous valgrind addressability
9986         and definability afterwards.  Free this_object at the end.
9987
9988         PR middle-end/56461
9989         * lra.c (lra): Call lra_clear_live_ranges if live_p,
9990         right before calling lra_create_live_ranges, also call it
9991         when clearing live_p.  Only call lra_clear_live_ranges
9992         at the end if live_p.
9993
9994         PR middle-end/56461
9995         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9996
9997 2013-03-05  Richard Biener  <rguenther@suse.de>
9998
9999         PR tree-optimization/56521
10000         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10001         value-id.
10002
10003 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
10004
10005         PR c++/55135
10006         * except.h (remove_unreachable_eh_regions): New prototype.
10007         * except.c (remove_eh_handler_splicer): New function, split out
10008         of remove_eh_handler.
10009         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
10010         warning about running it on many EH regions one at a time.
10011         (remove_unreachable_eh_regions_worker): New function, walk the
10012         EH tree in depth-first order and remove non-marked regions.
10013         (remove_unreachable_eh_regions): New function.
10014         * tree-eh.c (mark_reachable_handlers): New function, split out
10015         from remove_unreachable_handlers.
10016         (remove_unreachable_handlers): Use mark_reachable_handlers and
10017         remove_unreachable_eh_regions.
10018         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10019         and remove_unreachable_eh_regions.
10020
10021 2013-03-05  Richard Biener  <rguenther@suse.de>
10022
10023         PR middle-end/56525
10024         * loop-init.c (fix_loop_structure): Remove loops in two stages,
10025         not freeing them until the end.
10026
10027 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10028
10029         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10030
10031 2013-03-05  Richard Biener  <rguenther@suse.de>
10032
10033         PR tree-optimization/56270
10034         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10035         of loads after scheduling an SLP instance.
10036
10037 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10038
10039         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10040         tic6x.exp.
10041         (check_gcc_parallelize): Run guality.exp as a separate job from
10042         vect.exp with unsorted.exp and $(dg_target_exps) separately from
10043         struct-layout-1.exp with stackalign.exp.
10044
10045         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10046
10047         PR middle-end/56461
10048         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10049         load_index sbitmap even if some bit in it isn't set.
10050
10051         PR middle-end/56461
10052         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10053         (discover_iteration_bound_by_body_walk): Change queues to
10054         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
10055         spelling in comment.  Call safe_push on queues[bound_index] directly.
10056         Release queues[queue_index] in every iteration unconditionally.
10057         Release bounds vector.
10058
10059         PR middle-end/56461
10060         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10061         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10062         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10063         inner_phis vector.
10064
10065 2013-03-05  Richard Biener  <rguenther@suse.de>
10066
10067         PR lto/56515
10068         * tree-inline.c (remap_blocks_to_null): New function.
10069         (expand_call_inline): When expanding a call stmt without
10070         an associated block inline remap all callee blocks to NULL.
10071
10072 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10073
10074         PR rtl-optimization/56494
10075         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10076         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10077         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10078
10079         PR middle-end/56461
10080         * sel-sched-ir.c (free_sched_pools): Release
10081         succs_info_pool.stack[succs_info_pool.max_top] vectors too
10082         if succs_info_pool.max_top isn't -1.
10083
10084         PR bootstrap/56509
10085         * opts.c (opts_obstack, opts_concat): Moved to...
10086         * opts-common.c (opts_obstack, opts_concat): ... here.
10087
10088 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10089
10090         PR middle-end/56461
10091         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10092
10093 2013-03-04  Martin Jambor  <mjambor@suse.cz>
10094
10095         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10096         all appropriate places.
10097
10098 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10099
10100         PR tree-optimization/56424
10101         * ipa-split.c (split_function): Do not set the RSO flag if result is
10102         not by reference and its type is a register type.
10103
10104 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
10105
10106         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10107         (microblaze_legitimate_pic_operand): Likewise
10108         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10109         new function microblaze_legitimate_pic_operand
10110         * config/microblaze/microblaze-protos.h
10111         (microblaze_legitimate_pic_operand): Declare.
10112
10113 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10114
10115         * config/microblaze/predicates.md (call_insn_simple_operand):
10116         New predicate for supported rtx code types.
10117         * config/microblaze/microblaze.md (call_internal1): Use
10118         call_insn_simple_operand predicate.
10119
10120 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10121
10122         PR middle-end/56461
10123         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10124         partitions.ordered_remove.
10125
10126         PR middle-end/56461
10127         * tree-vect-stmts.c (vectorizable_conversion): Don't call
10128         vec_oprnds0.create (1) for modifier == NONE.
10129
10130         PR middle-end/56461
10131         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10132         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10133         vec_oprnds1 right before pushing anything to it for
10134         scalar_shift_arg.
10135
10136         PR middle-end/56461
10137         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10138         set nbbs to 0 instead of having separate code path.
10139         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10140         instead of false as last argument if returning NULL.
10141
10142 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
10143
10144         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10145         the attribute is now called "target" instead of "option".
10146         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10147         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
10148         attribute/pragma name for TARGET_OPTION_VALID_P and
10149         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
10150         * doc/tm.texi: Regenerated.
10151
10152 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
10153
10154         * config/microblaze/microblaze.c:
10155         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10156         * config/microblaze/microblaze.h: Add -mxl-reorder to
10157         DRIVER_SELF_SPECS.
10158         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10159         instructions emitted if TARGET_REORDER.
10160         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10161         or 0 for -m/-mno case, but initialises as 2 to detect default use case
10162         separately.
10163
10164 2013-03-01  Xinliang David Li  <davidxl@google.com>
10165
10166         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10167         walk length.
10168
10169 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
10170
10171         PR middle-end/56461
10172         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10173         vector even when returning true.  Fix up function comment formatting.
10174
10175         PR middle-end/56461
10176         * ira-build.c (ira_loop_nodes_count): New variable.
10177         (create_loop_tree_nodes): Initialize it.
10178         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10179
10180         PR middle-end/56461
10181         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10182         method on dr_chain and result_chain.
10183         * tree-vect-stmts.c (vectorizable_store): Only call
10184         result_chain.create if j == 0.
10185
10186         PR middle-end/56461
10187         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10188         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10189         before overwriting it.
10190
10191 2013-03-01  Tobias Burnus  <burnus@net-b.de>
10192
10193         * doc/extended.texi (C Extensions): Change order in @menu
10194         to match @node.
10195         (Other MIPS Built-in Functions): Move last MIPS entry before
10196         "picoChip Built-in Functions".
10197         (SH Built-in Functions): Move after RX Built-in Functions.
10198         * doc/gcc.texi (Introduction): Change order in @menu
10199         to match @node.
10200         * doc/md.texi (Constraints): Ditto.
10201         * gty.texi (Type Information): Ditto.
10202         (User-provided marking routines for template types): Make
10203         subsection.
10204         * doc/invoke.texi (AArch64 Options): Move before
10205         "Adapteva Epiphany Options".
10206
10207 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
10208             Jakub Jelinek  <jakub@redhat.com>
10209
10210         PR sanitizer/56454
10211         * asan.c (gate_asan): Lookup no_sanitize_address instead of
10212         no_address_safety_analysis attribute.
10213         * doc/extend.texi (no_address_safety_attribute): Rename to
10214         no_sanitize_address attribute, mention no_address_safety_analysis
10215         attribute as deprecated alias.
10216
10217 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
10218
10219         PR middle-end/56461
10220         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10221         type to vec<vec<tree> > *.
10222         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
10223         to be vec<tree> instead of vec<tree> *, set vec_defs
10224         to vNULL and call vec_defs.create (number_of_vects), adjust other
10225         uses of vec_defs.
10226         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10227         vectorizable_condition): Adjust vect_get_slp_defs callers.
10228
10229 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10230
10231         * config/aarch64/aarch64.c
10232         (aarch64_float_const_representable): Remove unused variable.
10233
10234 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10235
10236         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10237
10238 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10239
10240         * config/aarch64/aarch64-builtins.c
10241         (aarch64_init_simd_builtins): Make static.
10242
10243 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10244
10245         * config/aarch64/aarch64.c
10246         (aarch64_simd_make_constant): Make static.
10247
10248 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10249
10250         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10251         with no initialization to the RHS of debug statements.
10252
10253 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10254
10255         PR tree-optimization/56294
10256         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10257         Adjust dumping.
10258         (get_access_replacement): Do not call create_access_replacement.
10259         Assert a replacement exists.
10260         (get_repl_default_def_ssa_name): Create the replacement declaration
10261         itself.
10262
10263 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10264
10265         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10266         final_end_function.
10267
10268 2013-02-28  Marek Polacek  <polacek@redhat.com>
10269
10270         PR rtl-optimization/56466
10271         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10272         if we're changing a loop.
10273         (peel_loops_completely): Likewise.
10274
10275 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
10276
10277         PR c++/55813
10278         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10279
10280 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10281
10282         PR target/56445
10283         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10284         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10285         INTX_FTYPE_FX, FX_FTYPE_INTX.
10286         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10287
10288 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10289
10290         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10291         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10292         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10293         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10294         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10295         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10296         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10297         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10298         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10299         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10300         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10301         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10302         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10303         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10304         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10305         (avrxmega6): Increase max flash segments from 5 to 6.
10306         * config/avr/t-multilib: Regenerate.
10307         * config/avr/avr-tables.opt: Regenerate.
10308         * doc/avr-mmcu.texi: Regenerate.
10309
10310 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10311
10312         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10313         (avr_device_to_arch): Rename to avr_device_to_ld.
10314         (avr_device_to_as): New prototype.
10315         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10316         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10317         * config/avr/driver-avr.c (avr_device_to_as): New.
10318         (avr_device_to_arch): Rename to avr_device_to_ld.
10319
10320 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10321
10322         PR middle-end/56461
10323         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10324         method on dr_chain and result_chain.
10325
10326         PR middle-end/56461
10327         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10328         pointer_set_destroy on not_executed_last_iteration.
10329
10330         PR middle-end/56461
10331         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10332
10333         PR middle-end/56461
10334         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10335         FOR_EACH_DEFINED_FUNCTION when freeing state.
10336
10337         PR middle-end/56461
10338         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10339         pool_free.
10340         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10341         overwriting it.
10342
10343         PR middle-end/56461
10344         * ipa-cp.c (decide_whether_version_node): Call vec_free on
10345         known_aggs[i].items and release known_aggs vector.
10346
10347         PR middle-end/56461
10348         * ipa-reference.c (propagate): Free node_info even for alias nodes.
10349
10350 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10351
10352         * config/microblaze/microblaze.c (microblaze_emit_compare):
10353         Use xor for EQ/NE comparisions.
10354         * config/microblaze/microblaze.md (cstoresf4): Add constraints
10355         (cbranchsf4): Adjust operator to comparison_operator.
10356
10357 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10358
10359         PR middle-end/56461
10360         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10361         vector.
10362         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10363         vec_safe_push, always update *slot.
10364         (redirect_edge_var_map_clear): Use vec_free.
10365         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10366         (free_var_map_entry): Use vec_free.
10367         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10368         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10369
10370 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
10371
10372         PR middle-end/45472
10373         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10374         when the may_trap_p bit of the exprs being merged differs.
10375         Reorder tests for speculativeness in the logical and operator.
10376
10377 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10378
10379         * incpath.c (add_standard_paths): Use reconcat instead of concat
10380         where appropriate and avoid leaking memory.
10381
10382         * opts.h: Include obstack.h.
10383         (opts_concat): New prototype.
10384         (opts_obstack): New declaration.
10385         * opts.c (opts_concat): New function.
10386         (opts_obstack): New variable.
10387         (init_options_struct): Call gcc_init_obstack on opts_obstack.
10388         (finish_options): Use opts_concat instead of concat
10389         and XOBNEWVEC instead of XNEWVEC.
10390         * opts-common.c (generate_canonical_option, decode_cmdline_option,
10391         generate_option): Likewise.
10392         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10393         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10394
10395         PR target/56455
10396         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10397         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10398
10399 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10400
10401         PR middle-end/56461
10402         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10403
10404 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10405
10406         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10407         (arm_block_move_unaligned_straight): Likewise.
10408         (arm_adjust_block_mem): Likewise.
10409
10410 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10411
10412         PR target/48901
10413         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10414         temp, cond and label.
10415         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10416
10417         PR target/52500
10418         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10419         * config/c6x/c6x.h (dbx_register_map): Update declaration.
10420
10421         PR target/52501
10422         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10423         of prologue/epilogue functions.
10424
10425         PR target/52550
10426         * config/tilegx/tilegx.c (tilegx_expand_prologue):
10427         Remove unused variable cfa_offset.
10428         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10429
10430         PR target/54639
10431         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10432         type promotion to unsigned.
10433
10434         PR target/54640
10435         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10436         for HOST_WIDE_INT of 32 bit / same size as int.
10437         (arm_block_move_unaligned_straight): Likewise.
10438         (arm_adjust_block_mem): Likewise.
10439
10440         PR target/54662
10441         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10442         ALL_CFLAGS.
10443
10444 2013-02-26  Marek Polacek  <polacek@redhat.com>
10445
10446         PR tree-optimization/56426
10447         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
10448
10449 2013-02-26  Richard Biener  <rguenther@suse.de>
10450
10451         PR target/56444
10452         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10453         unused variable loops.
10454
10455 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10456
10457         PR tree-optimization/56448
10458         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10459         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10460         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10461         later operands of the references, or even first operand for
10462         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10463
10464         PR tree-optimization/56443
10465         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10466         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10467         to type_for_mode langhook.
10468
10469 2013-02-25  Matt Turner  <mattst88@gmail.com>
10470
10471         * doc/invoke.texi: Document r4700.
10472
10473 2013-02-25  Richard Biener  <rguenther@suse.de>
10474
10475         PR tree-optimization/56175
10476         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10477         split out from ...
10478         (simplify_bitwise_binary): ... here.  Also guard the conversion
10479         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10480
10481 2013-02-25  Catherine Moore  <clm@codesourcery.com>
10482
10483         Revert:
10484         2013-02-24  Catherine Moore  <clm@codesourcery.com>
10485             Maciej W. Rozycki  <macro@codesourcery.com>
10486             Tom de Vries  <tom@codesourcery.com>
10487             Nathan Sidwell  <nathan@codesourcery.com>
10488             Iain Sandoe  <iain@codesourcery.com>
10489             Nathan Froyd  <froydnj@codesourcery.com>
10490             Chao-ying Fu  <fu@mips.com>
10491
10492         * doc/extend.texi: (micromips, nomicromips, nocompression):
10493         Document new function attributes.
10494         * doc/invoke.texi (minterlink-compressed, mmicromips,
10495         m14k, m14ke, m14kec): Document new options.
10496         (minterlink-mips16): Update documentation.
10497         * doc/md.texi (ZC, ZD): Document new constraints.
10498         * configure.ac (gcc_cv_as_micromips): Check if linker
10499         supports the .set micromips directive.
10500         * configure: Regenerate.
10501         * config.in: Regenerate.
10502         * config/mips/mips-tables.opt: Regenerate.
10503         * config/mips/micromips.md: New file.
10504         * constraints.md (ZC, AD): New constraints.
10505         * config/mips/predicates.md (movep_src_register): New predicate.
10506         (movep_src_operand): New predicate.
10507         (non_volatile_mem_operand): New predicate.
10508         * config/mips/mips.md (multimem): New type.
10509         (length): Differentiate between 17-bit and 18-bit branch offsets.
10510         (MOVEP1, MOVEP2): New mode iterator.
10511         (mov_<load>l): Use ZC constraint.
10512         (mov_<load>r): Likewise.
10513         (mov_<store>l): Likewise.
10514         (mov_<store>r): Likewise.
10515         (*branch_equality<mode>_inverted): Add microMIPS support.
10516         (*branch_equality<mode>): Likewise.
10517         (*jump_absolute): Likewise.
10518         (indirect_jump_<mode>): Likewise.
10519         (tablejump_<mode>): Likewise.
10520         (<optab>_internal): Likewise.
10521         (sibcall_internal): Likewise.
10522         (sibcall_value_internal): Likewise.
10523         (prefetch): Use constraint ZD.
10524         * config/mips/mips.opt (minterlink-compressed): New option.
10525         (minterlink-mips16): Now an alias for minterlink-compressed.
10526         (mmicromips): New option.
10527         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10528         (compare_and_swap_12): Likewise.
10529         (sync_add<mode>): Likewise.
10530         (sync_<optab>_12): Likewise.
10531         (sync_old_<optab>_12): Likewise.
10532         (sync_new_<optab>_12): Likewise.
10533         (sync_nand_12): Likewise.
10534         (sync_old_nand_12): Likewise.
10535         (sync_new_nand_12): Likewise.
10536         (sync_sub<mode>): Likewise.
10537         (sync_old_add<mode>): Likewise.
10538         (sync_old_sub<mode>): Likewise.
10539         (sync_new_add<mode>): Likewise.
10540         (sync_new_sub<mode>): Likewise.
10541         (sync_<optab><mode>): Likewise.
10542         (sync_old_<optab><mode>): Likewise.
10543         (sync_new_<optab><mode>): Likewise.
10544         (sync_nand<mode>): Likewise.
10545         (sync_old_nand<mode>): Likewise.
10546         (sync_new_nand<mode>): Likewise.
10547         (sync_lock_test_and_set<mode>): Likewise.
10548         (test_and_set_12): Likewise.
10549         (atomic_compare_and_swap<mode>): Likewise.
10550         (atomic_exchange<mode>_llsc): Likewise.
10551         (atomic_fetch_add<mode>_llsc): Likewise.
10552         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10553         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10554         (umips_save_restore_pattern_p): Likewise.
10555         (umips_load_store_pair_p): Likewise.
10556         (umips_output_load_store_pair): Likewise.
10557         (umips_movep_target_p): Likewise.
10558         (umips_12bit_offset_address_p): Likewise.
10559         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10560         (mips_base_mips16): Rename this...
10561         (mips_base_compression_flags): ...to this. Update all uses.
10562         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10563         (mips_mips16_decl_p): Delete.
10564         (mips_nomips16_decl_p): Delete.
10565         (mips_get_compress_on_flags): New function.
10566         (mips_get_compress_off_flags): New function.
10567         (mips_get_compress_mode): New function.
10568         (mips_get_compress_on_name): New function.
10569         (mips_get_compress_off_name): New function.
10570         (mips_insert_attributes): Support multiple compression types.
10571         (mips_merge_decl_attributes): Likewise.
10572         (umips_12bit_offset_address_p): New function.
10573         (mips_start_function_definition): Emit .set micromips directive.
10574         (mips_call_may_need_jalx_p): New function.
10575         (mips_function_ok_for_sibcall): Add microMIPS support.
10576         (mips_print_operand_punctuation): Support short delay slots and
10577         compact jumps.
10578         (umips_swm_mask, umips_swm_encoding): New.
10579         (umips_build_save_restore): New function.
10580         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10581         (was_mips16_p): Remove.
10582         (old_compression_mode): New.
10583         (mips_set_compression_mode): New function.
10584         (mips_set_current_function): Add microMIPS support.
10585         (mips_option_override): Likewise.
10586         (umips_save_restore_pattern_p): New function.
10587         (umips_output_save_restore): New function.
10588         (umips_load_store_pair_p_1): New function.
10589         (umips_load_store_pair_p): New function.
10590         (umips_output_load_store_pair_1): New function.
10591         (umips_output_load_store_pair): New function.
10592         (umips_movep_target_p) New function.
10593         (mips_prepare_pch_save): Add microMIPS support.
10594         * config/mips/mips.h (TARGET_COMPRESSION): New.
10595         (TARGET_CPU_CPP_BUILTINS): Update macro
10596         to use new compression flags and to support microMIPS.
10597         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10598         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10599         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10600         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10601         (ASM_SPEC): Support mmicromips and mno-micromips.
10602         (M16STORE_REG_P): New macro.
10603         (MIPS_CALL): Support TARGET_MICROMIPS.
10604         (MICROMIPS_J): New macro.
10605         (mips_base_mips16): Rename this...
10606         (mips_base_compression_flags): ...to this.
10607         (UMIPS_12BIT_OFFSET_P): New macro.
10608         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10609         (MULTILIB_DIRNAMES): Likewise.
10610
10611 2013-02-25  Tom de Vries  <tom@codesourcery.com>
10612
10613         PR rtl-optimization/56131
10614         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10615         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10616         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10617
10618 2013-02-25  Tobias Burnus  <burnus@net-b.de>
10619
10620         * doc/invoke.texi (-fsanitize=): Move from optimization
10621         to debugging options.
10622
10623 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10624
10625         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10626
10627 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10628             Alexander Monakov  <amonakov@ispras.ru>
10629
10630         PR middle-end/56077
10631         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10632         flush pending lists also on non-jumps.  Adjust comment.
10633
10634 2013-02-24  Catherine Moore  <clm@codesourcery.com>
10635             Maciej W. Rozycki  <macro@codesourcery.com>
10636             Tom de Vries  <tom@codesourcery.com>
10637             Nathan Sidwell  <nathan@codesourcery.com>
10638             Iain Sandoe  <iain@codesourcery.com>
10639             Nathan Froyd  <froydnj@codesourcery.com>
10640             Chao-ying Fu  <fu@mips.com>
10641
10642         * doc/extend.texi: (micromips, nomicromips, nocompression):
10643         Document new function attributes.
10644         * doc/invoke.texi (minterlink-compressed, mmicromips,
10645         m14k, m14ke, m14kec): Document new options.
10646         (minterlink-mips16): Update documentation.
10647         * doc/md.texi (ZC, ZD): Document new constraints.
10648         * configure.ac (gcc_cv_as_micromips): Check if linker
10649         supports the .set micromips directive.
10650         * configure: Regenerate.
10651         * config.in: Regenerate.
10652         * config/mips/mips-tables.opt: Regenerate.
10653         * config/mips/micromips.md: New file.
10654         * constraints.md (ZC, AD): New constraints.
10655         * config/mips/predicates.md (movep_src_register): New predicate.
10656         (movep_src_operand): New predicate.
10657         (non_volatile_mem_operand): New predicate.
10658         * config/mips/mips.md (multimem): New type.
10659         (length): Differentiate between 17-bit and 18-bit branch offsets.
10660         (MOVEP1, MOVEP2): New mode iterator.
10661         (mov_<load>l): Use ZC constraint.
10662         (mov_<load>r): Likewise.
10663         (mov_<store>l): Likewise.
10664         (mov_<store>r): Likewise.
10665         (*branch_equality<mode>_inverted): Add microMIPS support.
10666         (*branch_equality<mode>): Likewise.
10667         (*jump_absolute): Likewise.
10668         (indirect_jump_<mode>): Likewise.
10669         (tablejump_<mode>): Likewise.
10670         (<optab>_internal): Likewise.
10671         (sibcall_internal): Likewise.
10672         (sibcall_value_internal): Likewise.
10673         (prefetch): Use constraint ZD.
10674         * config/mips/mips.opt (minterlink-compressed): New option.
10675         (minterlink-mips16): Now an alias for minterlink-compressed.
10676         (mmicromips): New option.
10677         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10678         (compare_and_swap_12): Likewise.
10679         (sync_add<mode>): Likewise.
10680         (sync_<optab>_12): Likewise.
10681         (sync_old_<optab>_12): Likewise.
10682         (sync_new_<optab>_12): Likewise.
10683         (sync_nand_12): Likewise.
10684         (sync_old_nand_12): Likewise.
10685         (sync_new_nand_12): Likewise.
10686         (sync_sub<mode>): Likewise.
10687         (sync_old_add<mode>): Likewise.
10688         (sync_old_sub<mode>): Likewise.
10689         (sync_new_add<mode>): Likewise.
10690         (sync_new_sub<mode>): Likewise.
10691         (sync_<optab><mode>): Likewise.
10692         (sync_old_<optab><mode>): Likewise.
10693         (sync_new_<optab><mode>): Likewise.
10694         (sync_nand<mode>): Likewise.
10695         (sync_old_nand<mode>): Likewise.
10696         (sync_new_nand<mode>): Likewise.
10697         (sync_lock_test_and_set<mode>): Likewise.
10698         (test_and_set_12): Likewise.
10699         (atomic_compare_and_swap<mode>): Likewise.
10700         (atomic_exchange<mode>_llsc): Likewise.
10701         (atomic_fetch_add<mode>_llsc): Likewise.
10702         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10703         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10704         (umips_save_restore_pattern_p): Likewise.
10705         (umips_load_store_pair_p): Likewise.
10706         (umips_output_load_store_pair): Likewise.
10707         (umips_movep_target_p): Likewise.
10708         (umips_12bit_offset_address_p): Likewise.
10709         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10710         (mips_base_mips16): Rename this...
10711         (mips_base_compression_flags): ...to this. Update all uses.
10712         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10713         (mips_mips16_decl_p): Delete.
10714         (mips_nomips16_decl_p): Delete.
10715         (mips_get_compress_on_flags): New function.
10716         (mips_get_compress_off_flags): New function.
10717         (mips_get_compress_mode): New function.
10718         (mips_get_compress_on_name): New function.
10719         (mips_get_compress_off_name): New function.
10720         (mips_insert_attributes): Support multiple compression types.
10721         (mips_merge_decl_attributes): Likewise.
10722         (umips_12bit_offset_address_p): New function.
10723         (mips_start_function_definition): Emit .set micromips directive.
10724         (mips_call_may_need_jalx_p): New function.
10725         (mips_function_ok_for_sibcall): Add microMIPS support.
10726         (mips_print_operand_punctuation): Support short delay slots and
10727         compact jumps.
10728         (umips_swm_mask, umips_swm_encoding): New.
10729         (umips_build_save_restore): New function.
10730         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10731         (was_mips16_p): Remove.
10732         (old_compression_mode): New.
10733         (mips_set_compression_mode): New function.
10734         (mips_set_current_function): Add microMIPS support.
10735         (mips_option_override): Likewise.
10736         (umips_save_restore_pattern_p): New function.
10737         (umips_output_save_restore): New function.
10738         (umips_load_store_pair_p_1): New function.
10739         (umips_load_store_pair_p): New function.
10740         (umips_output_load_store_pair_1): New function.
10741         (umips_output_load_store_pair): New function.
10742         (umips_movep_target_p) New function.
10743         (mips_prepare_pch_save): Add microMIPS support.
10744         * config/mips/mips.h (TARGET_COMPRESSION): New.
10745         (TARGET_CPU_CPP_BUILTINS): Update macro
10746         to use new compression flags and to support microMIPS.
10747         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10748         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10749         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10750         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10751         (ASM_SPEC): Support mmicromips and mno-micromips.
10752         (M16STORE_REG_P): New macro.
10753         (MIPS_CALL): Support TARGET_MICROMIPS.
10754         (MICROMIPS_J): New macro.
10755         (mips_base_mips16): Rename this...
10756         (mips_base_compression_flags): ...to this.
10757         (UMIPS_12BIT_OFFSET_P): New macro.
10758         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10759         (MULTILIB_DIRNAMES): Likewise.
10760
10761 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
10762
10763         PR target/52555
10764         * target-globals.c (save_target_globals): For init_reg_sets and
10765         target_reinit remporarily set this_fn_optabs to this_target_optabs.
10766
10767 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
10768
10769         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10770         * config/aarch64/t-aarch64
10771         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10772
10773 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10774
10775         PR inline-asm/56148
10776         * lra-constraints.c (process_alt_operands): Reload operand
10777         conflicting with earlier clobber only if no more other conflicting
10778         operands.
10779
10780 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
10781
10782         PR sanitizer/56393
10783         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10784         if not linking a shared library.
10785
10786 2013-02-22  Seth LaForge  <sethml@google.com>
10787
10788         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10789
10790 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
10791
10792         * config/arm/arm.md (split for extendsidi): Update condition.
10793         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10794         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10795         (qhs_zextenddi_cstr): Likewise.
10796
10797 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10798
10799         PR middle-end/56420
10800         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10801         avoid signed wrapping.
10802         (expand_mult): Handle properly multiplication by
10803         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
10804         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
10805         in the compiler if coeff is HOST_WIDE_INT_MIN.
10806         (expand_divmod): Don't make ext_op1 static, change it's type to
10807         uhwi.  Avoid undefined behavior in -INTVAL (op1).
10808
10809         PR rtl-optimization/50339
10810         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10811         field.
10812         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10813         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10814         into splitting_ashiftrt field.
10815         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10816         ASHIFTRT.
10817         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10818         choices.
10819
10820 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
10821
10822         PR middle-end/56108
10823         * trans-mem.c (execute_tm_mark): Do not expand transactions that
10824         are sure to go irrevocable.
10825
10826 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
10827
10828         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10829         scalars are valid operands.
10830
10831 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10832
10833         PR tree-optimization/56310
10834         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10835         only matching indices and non-negative final offsets.
10836         (intersect_aggregates_with_edge): Pass src_idx to
10837         agg_replacements_to_vector.  Pass src_idx insstead of index to
10838         intersect_with_agg_replacements.
10839
10840 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10841
10842         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10843         instead of hard-wired defaults.
10844
10845 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
10846
10847         * doc/invoke.texi (MIPS Options): Update documentation of the
10848         floating-point multiply-accumulate instruction restrictions.
10849
10850 2013-02-21  Kostya Serebryany  <kcc@google.com>
10851
10852         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10853         asan_shadow_offset on x86_64 linux.
10854
10855 2013-02-21  Richard Biener  <rguenther@suse.de>
10856
10857         PR tree-optimization/56415
10858         Revert
10859         2013-02-11  Richard Biener  <rguenther@suse.de>
10860
10861         PR tree-optimization/56273
10862         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10863         first VRP run.
10864
10865 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10866
10867         PR bootstrap/56258
10868         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10869         instead of @itemx.
10870
10871         PR inline-asm/56405
10872         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10873         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10874
10875 2013-02-20  Jan Hubicka  <jh@suse.cz>
10876
10877         PR tree-optimization/56265
10878         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10879         when target is referenced for first time.
10880
10881 2013-02-20  Richard Biener  <rguenther@suse.de>
10882
10883         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10884         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10885         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10886         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10887         not return anything.
10888         (rename_ssa_copies): Do not remove unused locals.
10889         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
10890         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
10891         * passes.c (execute_function_todo): Do not schedule unused locals
10892         removal if cleanup_tree_cfg did something.
10893         * tree-ssa-live.c (remove_unused_locals): Dump statistics
10894         about the number of removed locals.
10895
10896 2013-02-20  Richard Biener  <rguenther@suse.de>
10897
10898         PR tree-optimization/56398
10899         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
10900
10901 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10902
10903         PR tree-optimization/55334
10904         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10905         restricted pointers to arrays.
10906
10907 2013-02-20  Richard Biener  <rguenther@suse.de>
10908             Jakub Jelinek  <jakub@redhat.com>
10909
10910         PR tree-optimization/56396
10911         * tree-ssa-ccp.c (n_const_val): New static variable.
10912         (get_value): Return NULL for SSA names we don't have a lattice
10913         entry for.
10914         (ccp_initialize): Initialize n_const_val.
10915         * tree-ssa-copy.c (n_copy_of): New static variable.
10916         (init_copy_prop): Initialize n_copy_of.
10917         (get_value): Return NULL_TREE for SSA names we don't have a
10918         lattice entry for.
10919
10920 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10921
10922         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10923
10924 2013-02-20  Richard Biener  <rguenther@suse.de>
10925
10926         * genpreds.c (write_lookup_constraint): Do not compare first
10927         letter of the constraint again.
10928
10929 2013-02-20  Richard Biener  <rguenther@suse.de>
10930
10931         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10932         and ceil_log2.
10933         (get_use_iv_cost): Terminate hashtable walk when coming across
10934         an empty entry.
10935
10936 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10937
10938         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10939         reassociation for avx2 targets.
10940
10941 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10942
10943         * config/microblaze/microblaze.c: microblaze_has_clz = 0
10944         Add version check for v8.10.a to enable microblaze_has_clz
10945         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
10946         version and TARGET_PATTERN_COMPARE check
10947         * config/microblaze/microblaze.md: New clzsi2 instruction
10948
10949 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10950
10951         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
10952         function before branching.
10953
10954 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10955
10956         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10957         DUMP_INSN_RTX_UID.
10958         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10959
10960 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10961
10962         PR middle-end/55889
10963         * sel-sched.c: Include ira.h.
10964         (implicit_clobber_conflict_p): New function.
10965         (moveup_expr): Use it.
10966         * Makefile.in (sel-sched.o): Depend on ira.h.
10967
10968 2013-02-19  Richard Biener  <rguenther@suse.de>
10969
10970         PR tree-optimization/56384
10971         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10972         (vn_hash_type): Split out from ...
10973         (vn_hash_constant_with_type): ... here.
10974         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10975         (vn_phi_eq): Compare types from vn_phi_s structure.
10976         (vn_phi_lookup): Populate vn_phi_s type.
10977         (vn_phi_insert): Likewise.
10978
10979 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
10980
10981         PR tree-optimization/56350
10982         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10983         if haven't found reduction or nested cycle operand, rather than
10984         asserting we must find it.
10985
10986         PR tree-optimization/56381
10987         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10988         to fold_build3.
10989
10990 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
10991             Jakub Jelinek  <jakub@redhat.com>
10992
10993         PR target/52555
10994         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10995         (swap_optab_enable): Same.
10996         (init_all_optabs): Use argument instead of global.
10997         * tree.h (struct tree_optimization_option): New field target_optabs.
10998         * expr.h (init_all_optabs): Add argument to prototype.
10999         (TREE_OPTIMIZATION_OPTABS): New.
11000         (save_optabs_if_changed): Protoize.
11001         * optabs.h: Declare this_fn_optabs.
11002         * optabs.c (save_optabs_if_changed): New.
11003         Declare this_fn_optabs.
11004         (init_optabs): Add argument to init_all_optabs() call.
11005         * function.c (invoke_set_current_function_hook): Handle per
11006         function optabs.
11007         * function.h (struct function): New field optabs.
11008         * config/mips/mips.c (mips_set_mips16_mode): Handle when
11009         optimization_current_node has changed.
11010         * target-globals.h (save_target_globals_default_opts): Protoize.
11011         * target-globals.c (save_target_globals_default_opts): New.
11012
11013 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11014
11015         PR target/56347
11016         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11017         registers %fr12 and %fr12R as call used.
11018
11019         PR target/56214
11020         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11021         and HImode, require all displacements to be an integer multiple of
11022         their mode size.
11023         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11024         only allow QImode and HImode when reload is in progress and strict is
11025         true.  Likewise for symbolic addresses.  Use base14_operand to check
11026         displacements in REG+BASE addresses.
11027
11028 2013-02-18  Richard Biener  <rguenther@suse.de>
11029
11030         PR tree-optimization/56366
11031         * tree-vect-loop.c (get_initial_def_for_induction): Properly
11032         handle sign-conversion of outer-loop initial induction value.
11033
11034 2013-02-18  Richard Biener  <rguenther@suse.de>
11035
11036         PR middle-end/56349
11037         * cfghooks.c (merge_blocks): If we merge a latch into another
11038         block adjust references to it.
11039         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11040         (verify_loop_structure): Verify that a recorded latch is in fact
11041         a latch.
11042
11043 2013-02-18  Richard Biener  <rguenther@suse.de>
11044
11045         PR tree-optimization/56321
11046         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11047         order SSA name release and virtual operand unlinking.
11048
11049 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11050
11051         * config/microblaze/microblaze.md (save_stack_block): Define.
11052         (restore_stack_block): Likewise.
11053
11054 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11055
11056         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11057         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11058         * config/microblaze/microblaze.c (microblaze_option_override):
11059         Bail out early for PIC modes when target does not support PIC.
11060
11061 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11062
11063         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11064         Replace with a microblaze version.
11065         (microblaze_trampoline_init): Adapt for microblaze.
11066         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11067         microblaze.
11068
11069 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
11070             Dodji Seketeli  <dodji@redhat.com>
11071
11072         PR asan/56330
11073         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11074         (instrument_mem_region_access): Do not forget to always put
11075         instrumentation of the of 'base' and 'base + len' in a "if (len !=
11076         0) statement, even for cases where either 'base' or 'base + len'
11077         are not instrumented -- because they have been previously
11078         instrumented.  Simplify the logic by putting all the statements
11079         instrument 'base + len' inside a sequence, and then insert that
11080         sequence right before the current insertion point.  Then, to
11081         instrument 'base + len', just get an iterator on that statement.
11082         And do not forget to update the pointer to iterator the function
11083         received as argument.
11084
11085 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
11086
11087         PR rtl-optimization/56348
11088         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11089
11090 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
11091
11092         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11093         (clean_graph_dump_file): Pass base to start_graph_dump.
11094
11095 2013-02-14  Richard Henderson  <rth@redhat.com>
11096
11097         PR target/55941
11098         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11099
11100 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
11101
11102         * collect2-aix.h: Define F_LOADONLY.
11103
11104 2013-02-14  Richard Biener  <rguenther@suse.de>
11105
11106         PR lto/50494
11107         * varasm.c (output_constant_def_1): Get the decl representing
11108         the constant as argument.
11109         (output_constant_def): Wrap output_constant_def_1.
11110         (make_decl_rtl): Use output_constant_def_1 with the decl
11111         representing the constant.
11112         (build_constant_desc): Optionally re-use a decl already
11113         representing the constant.
11114         (tree_output_constant_def): Adjust.
11115
11116 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
11117
11118         Fix an asan crash
11119         * asan.c (instrument_builtin_call):  Really put the length of the
11120         second source argument into src1_len.
11121
11122 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11123
11124         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11125         argument.  If it is false, don't create edge from then_bb to
11126         fallthru_bb.
11127         (insert_if_then_before_iter): Pass true to it.
11128         (build_check_stmt): Pass false to it.
11129         (transform_statements): Flush hash table only on extended basic
11130         block boundaries, rather than at the beginning of every bb.
11131         Don't flush hash table on nonfreeing_call_p calls.
11132         * tree-flow.h (nonfreeing_call_p): New prototype.
11133         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11134
11135 2013-02-13  David S. Miller  <davem@davemloft.net>
11136
11137         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11138
11139 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
11140
11141         PR target/56184
11142         * ira.c (max_regno_before_ira): Move from ...
11143         (ira): ... here.
11144         (fix_reg_equiv_init): Use max_regno_before_ira instead of
11145         vec_safe_length.
11146
11147 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11148
11149         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11150
11151 2013-02-13  Richard Biener  <rguenther@suse.de>
11152
11153         PR lto/56295
11154         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11155         globals in MEM_REFs.
11156
11157 2013-02-13  Richard Biener  <rguenther@suse.de>
11158
11159         * loop-init.c (loop_optimizer_init): Clear loop state when
11160         re-initializing preserved loops.
11161         * loop-unswitch.c (unswitch_single_loop): Return whether
11162         we unswitched the loop.  Do not verify loop state here.
11163         (unswitch_loops): When we unswitched a loop discover new loops.
11164
11165 2013-02-13  Kostya Serebryany  <kcc@google.com>
11166
11167         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11168         on x86_64 linux.
11169         * sanitizer.def: Rename __asan_init to __asan_init_v1.
11170
11171 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
11172
11173         Avoid instrumenting duplicated memory access in the same basic block
11174         * Makefile.in (asan.o): Add new dependency on hash-table.h
11175         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11176         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11177         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11178         (free_mem_ref_resources, has_mem_ref_been_instrumented)
11179         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11180         (get_mem_ref_of_assignment): New functions.
11181         (get_mem_refs_of_builtin_call): Extract from
11182         instrument_builtin_call and tweak a little bit to make it fit with
11183         the new signature.
11184         (instrument_builtin_call): Use the new
11185         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
11186         of is_gimple_builtin_call.
11187         (instrument_derefs, instrument_mem_region_access): Insert the
11188         instrumented memory reference into the hash table.
11189         (maybe_instrument_assignment): Renamed instrument_assignment into
11190         this, and change it to advance the iterator when instrumentation
11191         actually happened and return true in that case.  This makes it
11192         homogeneous with maybe_instrument_assignment, and thus give a
11193         chance to callers to be more 'regular'.
11194         (transform_statements): Clear the memory reference hash table
11195         whenever we enter a new BB, when we cross a function call, or when
11196         we are done transforming statements.  Use
11197         maybe_instrument_assignment instead of instrumentation.  No more
11198         need to special case maybe_instrument_assignment and advance the
11199         iterator after calling it; it's now handled just like
11200         maybe_instrument_call.  Update comment.
11201
11202 2013-02-13  Richard Biener  <rguenther@suse.de>
11203
11204         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11205         Fix loop discovery code.
11206
11207 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
11208
11209         PR inline-asm/56148
11210         * lra-constraints.c (process_alt_operands): Match early clobber
11211         operand with itself.  Check conflicts with earlyclobber only if
11212         the operand is not reloaded.  Prefer to reload conflicting operand
11213         if earlyclobber and matching operands are the same.
11214
11215 2013-02-12  Richard Biener  <rguenther@suse.de>
11216
11217         PR lto/56297
11218         * lto-streamer-out.c (write_symbol): Do not output symbols
11219         for hard register variables.
11220
11221 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
11222
11223         PR target/54222
11224         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11225         (umulsidi3_insn, mulsidi3_insn): New insns.
11226
11227 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
11228
11229         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11230         (struct tune_params): Add vec_costs field.
11231         * config/arm/arm.c (arm_builtin_vectorization_cost)
11232         (arm_add_stmt_cost): New functions.
11233         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11234         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11235         (arm_default_vec_cost): New struct of type cpu_vec_costs.
11236         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11237         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11238         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11239         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11240
11241 2013-02-12  Richard Biener  <rguenther@suse.de>
11242
11243         PR lto/56295
11244         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11245         decls again if possible.
11246
11247 2013-02-12  Richard Biener  <rguenther@suse.de>
11248
11249         PR middle-end/56288
11250         * tree-ssa.c (verify_ssa_name): Fix check, move
11251         SSA_NAME_IN_FREE_LIST check up.
11252
11253 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
11254             Steven Bosscher   <steven@gcc.gnu.org>
11255
11256         PR rtl-optimization/56151
11257         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11258         equal to op0 or op1, and last_insn pattern is CODE operation
11259         with MEM dest and one of the operands matches that MEM.
11260
11261 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
11262
11263         * doc/extend.texi: Document Function Multiversioning and "default"
11264         parameter string to target attribute.
11265         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11266         target attribute parameter is "default".
11267         (ix86_compare_version_priority): Remove checks for target attribute.
11268         (ix86_mangle_function_version_assembler_name): Change error to sorry.
11269         Remove check for target attribute equal to NULL. Add assert.
11270         (ix86_generate_version_dispatcher_body): Change error to sorry.
11271
11272 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
11273             Jack Howarth  <howarth@bromo.med.uc.edu>
11274             Patrick Marlier  <patrick.marlier@gmail.com>
11275
11276         PR libitm/55693
11277         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11278         define ENDFILE_SPEC as TM_DESTRUCTOR.
11279         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11280
11281 2013-02-11  Alexander Potapenko  <glider@google.com>
11282             Jack Howarth  <howarth@bromo.med.uc.edu>
11283             Jakub Jelinek  <jakub@redhat.com>
11284
11285         PR sanitizer/55617
11286         * config/darwin.c (cdtor_record): Rename ctor_record.
11287         (sort_cdtor_records): Rename sort_ctor_records.
11288         (finalize_dtors): New routine to sort destructors by
11289         priority before use in assemble_integer.
11290         (machopic_asm_out_destructor): Use finalize_dtors if needed.
11291
11292 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
11293
11294         PR rtl-optimization/56275
11295         * simplify-rtx.c (avoid_constant_pool_reference): Check that
11296         offset is non-negative and less than cmode size before
11297         calling simplify_subreg.
11298
11299 2013-02-11  Richard Biener  <rguenther@suse.de>
11300
11301         PR tree-optimization/56264
11302         * cfgloop.h (fix_loop_structure): Adjust prototype.
11303         * loop-init.c (fix_loop_structure): Return the number of
11304         newly discovered loops.
11305         * tree-cfgcleanup.c (repair_loop_structures): When new loops
11306         are discovered, do a full loop-closed SSA rewrite.
11307
11308 2013-02-11  Richard Biener  <rguenther@suse.de>
11309
11310         PR tree-optimization/56273
11311         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11312         first VRP run.
11313         (check_array_ref): Fix missing newline in dumps.
11314         (search_for_addr_array): Likewise.
11315
11316 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
11317
11318         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11319
11320 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
11321
11322         PR target/56256
11323         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11324
11325 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
11326
11327         PR rtl-optimization/56246
11328         * lra-constraints.c (simplify_operand_subreg): Try to reuse
11329         reload pseudo.
11330         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11331         constraints are satisfied.
11332
11333 2013-02-08  Jeff Law  <law@redhat.com>
11334
11335         PR debug/53948
11336         * emit-rtl.c (reg_is_parm_p): New function.
11337         * regs.h (reg_is_parm_p): New prototype.
11338         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11339         callee-clobbered registers.
11340
11341 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11342
11343         PR target/56043
11344         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11345         If there is no implicit builtin declaration, just return NULL.
11346
11347 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11348
11349         * config/i386/sse.md (FMAMODEM): New mode iterator.
11350         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11351         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11352
11353 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11354
11355         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11356         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11357         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11358
11359 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11360
11361         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11362         (microblaze*-*-elf): Likewise.
11363         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11364         LINK_SPEC.
11365         * config/microblaze/microblaze-c.c: Add builtin defines for
11366         _LITTLE_ENDIAN and _BIG_ENDIAN.
11367         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11368         add to TARGET_DEFAULT flags.
11369         Expand ASM_SPEC and LINK_SPEC.
11370         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11371         * config/microblaze/microblaze.md: Update extendsidi2 and
11372         movdi_internal instructions to use low-order / high-order reg
11373         print_operands.
11374         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11375         options and inversemask / mask of LITTLE_ENDIAN.
11376         * config/microblaze/t-microblaze: Expand multilib options to
11377         include mlittle-endian (le) and update exceptions patterns.
11378
11379 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
11380
11381         PR rtl-optimization/56195
11382         * lra-constraints.c (get_reload_reg): Don't reuse regs
11383         if they have smaller mode than requested, if they have
11384         wider mode than requested, try to return a SUBREG.
11385
11386         PR tree-optimization/56250
11387         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11388         if type is unsigned and code isn't MULT_EXPR.
11389
11390 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11391
11392         PR tree-optimization/56064
11393         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11394         bits according to mode.
11395         * fixed-value.h (fixed_from_double_int)
11396         (const_fixed_from_double_int): Adjust comments.
11397
11398 2013-02-08  Richard Biener  <rguenther@suse.de>
11399
11400         PR lto/56231
11401         * lto-streamer.h (struct data_in): Remove current_file, current_line
11402         and current_col members.
11403         * lto-streamer-out.c (lto_output_location): Stream changed bits
11404         en-block for efficiency.
11405         * lto-streamer-in.c (clear_line_info): Remove.
11406         (lto_input_location): Cache current file, line and column
11407         globally via local statics.  Read changed bits en-block.
11408         (input_function): Do not call clear_line_info.
11409         (lto_read_body): Likewise.
11410         (lto_input_toplevel_asms): Likewise.
11411
11412 2013-02-08  Michael Matz  <matz@suse.de>
11413
11414         PR tree-optimization/52448
11415         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11416         (nt_call_phase): New static.
11417         (add_or_mark_expr): Only mark accesses with newer phase than any
11418         call seen.
11419         (nonfreeing_call_p): New.
11420         (nt_init_block): Update nt_call_phase, mark blocks as visited.
11421         (nt_fini_block): Keep blocks marked as visited.
11422         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11423
11424 2013-02-08  Richard Biener  <rguenther@suse.de>
11425
11426         * ira.c (ira): Free broken dominator information.
11427
11428 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11429
11430         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11431
11432 2013-02-08  Marek Polacek  <polacek@redhat.com>
11433
11434         * cfgloop.c (verify_loop_structure): Add more checking of headers.
11435
11436 2013-02-08  Richard Biener  <rguenther@suse.de>
11437
11438         PR middle-end/56181
11439         * cfgloop.h (flow_loops_find): Adjust.
11440         (bb_loop_header_p): Declare.
11441         * cfgloop.c (bb_loop_header_p): New function split out from ...
11442         (flow_loops_find): ... here.  Adjust function signature,
11443         support incremental loop structure update.
11444         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
11445         * cfgloopmanip.c (fix_loop_structure): Move ...
11446         * loop-init.c (fix_loop_structure): ... here.
11447         (apply_loop_flags): Split out from ...
11448         (loop_optimizer_init): ... here.
11449         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
11450         in incremental mode, only remove dead loops here.
11451
11452 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11453
11454         PR target/54222
11455         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11456         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11457         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11458         (*round<mode>3.libgcc): New insns for fixed-modes.
11459         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11460         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11461         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11462         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11463         implementations.  Define to __builtin_avr_absFX,
11464         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11465         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11466         __builtin_avr_countlsFX, respectively.
11467         * config/avr/avr-c.c (target.h): Include it.
11468         (enum avr_builtin_id): New enum.
11469         (avr_resolve_overloaded_builtin): New static function.
11470         (avr_register_target_pragmas): Use it to set
11471         targetm.resolve_overloaded_builtin.
11472         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11473         tree nodes used by DEF_BUILTIN.
11474         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11475         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11476         <AVR_BUILTIN_xxBITS>: Same.
11477
11478 2013-02-08  Richard Biener  <rguenther@suse.de>
11479
11480         * cfgloop.c (verify_loop_structure): Properly handle
11481         a loop exiting to another loop header.
11482         * ira-int.h (ira_loops): Remove.
11483         * ira.c (ira_loops): Remove.
11484         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11485         (do_reload): Use loop_optimizer_finalize.
11486         * ira-build.c (create_loop_tree_nodes): Use get_loops and
11487         number_of_loops to access the loop tree.
11488         (more_one_region_p): Likewise.
11489         (finish_loop_tree_nodes): Likewise.
11490         (rebuild_regno_allocno_maps): Likewise.
11491         (mark_loops_for_removal): Likewise.
11492         (mark_all_loops_for_removal): Likewise.
11493         (remove_unnecessary_regions): Likewise.
11494         (ira_build): Likewise.
11495         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11496
11497 2013-02-08  Richard Biener  <rguenther@suse.de>
11498
11499         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11500         * ipa-pure-const.c (analyze_function): Avoid calling
11501         mark_irreducible_loops twice.
11502         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
11503
11504 2013-02-07  David S. Miller  <davem@davemloft.net>
11505
11506         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11507         on 'reg'.
11508         * var-tracking.c (vt_add_function_parameter): Test the presence of
11509         HAVE_window_save properly and do not remap argument registers when
11510         we have a leaf function.
11511
11512 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
11513
11514         PR bootstrap/56227
11515         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11516         instead of "ll".
11517         * config/i386/i386.c (ix86_print_operand): Ditto.
11518
11519 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11520
11521         * lra-constraints.c (process_alt_operands): Fix recently added comment.
11522
11523 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11524
11525         PR rtl-optimization/56225
11526         * lra-constraints.c (process_alt_operands): Check that reload hard
11527         reg can hold value for strict_low_part.
11528
11529 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11530
11531         PR debug/56154
11532         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11533         dwarf2out_end_function.
11534         (in_first_function_p, maybe_at_text_label_p,
11535         first_loclabel_num_not_at_text_label): New variables.
11536         (dwarf2out_var_location): In the first function find out
11537         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11538         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11539         functions.
11540
11541 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
11542
11543         PR rtl-optimization/56178
11544         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11545         SUBREG of a register.  Tidy up related block of code.
11546         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11547         note if the source is a register or a SUBREG of a register.
11548
11549 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11550
11551         PR target/56228
11552         * config/rs6000/rs6000.md (ptrm): New mode attr.
11553         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11554         call_value_indirect_aix<pttrsize>,
11555         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11556         m in constraints.
11557
11558 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11559
11560         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11561         if -bnortl. Convert to strcmp and strncmp.
11562
11563 2013-02-07  Alan Modra  <amodra@gmail.com>
11564
11565         PR target/54009
11566         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11567         addresses won't wrap when offsetting.
11568         (rs6000_secondary_reload): Provide secondary reloads needed for
11569         wrapping LO_SUM addresses.
11570
11571 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
11572
11573         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11574         MACH, just __MACH__.
11575
11576 2013-02-06  Richard Biener  <rguenther@suse.de>
11577
11578         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11579         instead of calling fix_loop_structure.
11580
11581 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11582
11583         PR middle-end/56217
11584         * omp-low.c (use_pointer_for_field): Return false if
11585         lower_send_shared_vars doesn't generate any copy-out code.
11586
11587 2013-02-06  Tom de Vries  <tom@codesourcery.com>
11588
11589         PR rtl-optimization/56131
11590         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11591         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
11592         of the label is NULL.  Add comment.
11593
11594 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11595
11596         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11597
11598         PR sanitizer/55374
11599         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11600         (STATIC_LIBTSAN_LIBS): Likewise.
11601         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11602         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11603         is defined, don't add anything else beyond that.
11604         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11605         (LINK_COMMAND_SPEC): Use them.
11606
11607         PR tree-optimization/56205
11608         * tree-stdarg.c (check_all_va_list_escapes): Return true if
11609         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11610         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11611
11612 2013-02-05  Richard Biener  <rguenther@suse.de>
11613
11614         PR tree-optimization/53342
11615         PR tree-optimization/53185
11616         * tree-vectorizer.h (vect_check_strided_load): Remove.
11617         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11618         not disallow peeling for vectorized strided loads.
11619         (vect_check_strided_load): Make static and simplify.
11620         (vect_analyze_data_refs): Adjust.
11621         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11622         correctly when vectorizing strided loads.
11623
11624 2013-02-05  Richard Biener  <rguenther@suse.de>
11625
11626         * doc/install.texi: Refer to ISL, not PPL.
11627
11628 2013-02-05  Jan Hubicka  <jh@suse.cz>
11629
11630         PR tree-optimization/55789
11631         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11632
11633 2013-02-05  Jan Hubicka  <jh@suse.cz>
11634
11635         PR tree-optimization/55789
11636         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11637         the dead call anyway.
11638
11639 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11640
11641         PR sanitizer/55374
11642         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11643
11644 2013-02-04  Alexander Potapenko  <glider@google.com>
11645             Jack Howarth  <howarth@bromo.med.uc.edu>
11646             Jakub Jelinek  <jakub@redhat.com>
11647
11648         PR sanitizer/55617
11649         * config/darwin.c (sort_ctor_records): Stabilized qsort
11650         on constructor priority by using original position.
11651         (finalize_ctors): New routine to sort constructors by
11652         priority before use in assemble_integer.
11653         (machopic_asm_out_constructor): Use finalize_ctors if needed.
11654
11655 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
11656
11657         PR libstdc++/54314
11658         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11659         about visibility on artificial decls.
11660         * config/sol2.c (solaris_assemble_visibility): Likewise.
11661
11662 2013-02-04  Kai Tietz  <ktietz@redhat.com>
11663
11664         PR target/56186
11665         * config/i386/i386.c (function_value_ms_64): Add additional valtype
11666         argument and improve checking of return-argument types for 16-byte
11667         modes.
11668         (ix86_function_value_1): Add additional valtype argument on call
11669         of function_value_64.
11670         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11671         handling infunction_value_64 function.
11672
11673 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11674
11675         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
11676
11677 2013-02-04  Richard Biener  <rguenther@suse.de>
11678
11679         PR tree-optimization/56188
11680         * tree-ssa-structalias.c (label_visit): Consider case with
11681         initially non-empty points-to set.
11682         (perform_var_substitution): Dump node mapping and clean up.
11683
11684 2013-02-04  Richard Guenther  <rguenther@suse.de>
11685
11686         PR lto/56168
11687         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11688         node prevail as last resort.
11689         (lto_symtab_merge_decls): Remove guard on LTRANS here.
11690         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
11691
11692 2013-02-04  Richard Biener  <rguenther@suse.de>
11693
11694         PR tree-optimization/56113
11695         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11696         Merge into ...
11697         (equiv_class_lookup_or_add): ... this.
11698         (label_visit): Adjust and fix error in previous patch.
11699         (perform_var_substitution): Adjust.
11700
11701 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
11702
11703         * config/sh/divtab.c: Fix formatting and comments throughout the file.
11704         * config/sh/sh4-300.md: Likewise.
11705         * config/sh/sh4a.md: Likewise.
11706         * config/sh/constraints.md: Likewise.
11707         * config/sh/sh.md: Likewise.
11708         * config/sh/netbsd-elf.h: Likewise.
11709         * config/sh/predicates.md: Likewise.
11710         * config/sh/sh-protos.h: Likewise.
11711         * config/sh/ushmedia.h: Likewise.
11712         * config/sh/linux.h: Likewise.
11713         * config/sh/sh.c: Likewise.
11714         * config/sh/superh.h: Likewise.
11715         * config/sh/elf.h: Likewise.
11716         * config/sh/sh4.md: Likewise.
11717         * config/sh/sh.h: Likewise.
11718
11719 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11720
11721         * config/pa/constraints.md: Adjust unused letters.  Change "T"
11722         constraint to match_test floating_point_store_memory_operand().
11723         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11724         (base14_operand): New.
11725         (floating_point_store_memory_operand): New.
11726         (integer_store_memory_operand): Revise to use base14_operand and
11727         reg_plus_base_memory_operand.
11728         (move_dest_operand): Allow symbolic_memory_operands.
11729         (symbolic_memory_operand): Check for LO_SOM.
11730         (symbolic_operand): Change default case to break.
11731         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11732         CONST_DOUBLE values to be reloaded by putting them into memory when
11733         the destination is a floating point register.
11734         (movdf): Remove code to handle CONST_DOUBLE.
11735         (movsf): Likewise.
11736         (reload_indf_r1): New.
11737         (reload_insf_r1): New.
11738         Consistently use "Q" and "T" constraints with integer and floating
11739         point move instructions, respectively.
11740         (movdi): Remove FAIL.
11741         Change predicate for source operand unamed DImode move from
11742         general_operand to move_src_operand.
11743         (umulsidi3): Change predicate for destination operand to
11744         register_operand.
11745         Likewise for similar unamed patterns.
11746         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11747         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11748         (hppa_legitimize_address): Simplify mask calculation.
11749         (pa_emit_move_sequence): Revised handling of secondary reloads from
11750         REG+D addresses for floating point loads and stores.  Directly handle
11751         loading CONST0_RTX (mode) to a floating point register.
11752         (pa_secondary_reload): Handle reloading DF and SFmode constant values
11753         to floating point registers.  Don't restrict secondary reloads to
11754         floating point registers to integer modes.  Revise some comments and
11755         cleanup some code.
11756         (TARGET_LEGITIMATE_ADDRESS_P): Define.
11757         (pa_legitimate_address_p): New.
11758         (pa_legitimize_reload_address): New.
11759         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11760         (STRICT_REG_OK_FOR_BASE_P): New.
11761         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
11762         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11763
11764 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
11765             Andrew Dixie  <andrewd@gentrack.com>
11766
11767         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11768         flag set.
11769
11770 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
11771
11772         * expmed.c (extract_bit_field_1): Pass the full width of the
11773         structure to get_best_reg_extraction_insn.
11774
11775 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11776
11777         PR target/54601
11778         * configure.ac (use_cxa_atexit): Add AIX.
11779         * configure: Regenerate.
11780
11781         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11782
11783 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
11784
11785         PR debug/54793
11786         * final.c (need_profile_function): New variable.
11787         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11788         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11789         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11790         notes, targetm.asm_out.function_prologue doesn't emit anything,
11791         HAVE_prologue and profiler should be emitted before prologue,
11792         set need_profile_function instead of emitting it.
11793         (final_scan_insn): If need_profile_function, emit
11794         profile_function on the first NOTE_INSN_BASIC_BLOCK or
11795         NOTE_INSN_FUNCTION_BEG note.
11796
11797 2013-02-01  Richard Henderson  <rth@redhat.com>
11798
11799         * config/rs6000/rs6000.md (smulditi3): New.
11800         (umulditi3): New.
11801
11802         * config/alpha/alpha.md (umulditi3): New.
11803
11804 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11805
11806         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11807         (ASM_OUTPUT_ALIGNED_LOCAL): New.
11808
11809 2013-02-01  Richard Biener  <rguenther@suse.de>
11810
11811         PR tree-optimization/56113
11812         * tree-ssa-structalias.c (label_visit): Reduce work for
11813         single-predecessor nodes.
11814
11815 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11816
11817         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11818         range isn't testing for zero.
11819
11820 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
11821
11822         PR middle-end/56113
11823         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11824
11825 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
11826             Nick Clifton  <nickc@redhat.com>
11827
11828         * config/v850/constraints.md (Q): Define as a memory constraint.
11829         * config/v850/predicates.md (label_ref_operand): New predicate.
11830         (e3v5_shift_operand): New predicate.
11831         (ior_operator): New predicate.
11832         * config/v850/t-v850: Add e3v5 multilib.
11833         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11834         (v850_gen_movdi): Prototype.
11835         * config/v850/v850.c: Add support for e3v5 architecture.
11836         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11837         TARGET_V850E_UP.
11838         (construct_save_jarl): Add e3v5 long JARL support.
11839         (v850_adjust_insn_length): New function.  Adjust length of call
11840         insns when using e3v5 instructions.
11841         (v850_gen_movdi): New function: Generate instructions to move a
11842         DImode value.
11843         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11844         (CPP_SPEC): Define __v850e3v5__ as appropriate.
11845         (TARGET_USE_FPU): Enable for e3v5.
11846         (CONST_OK_FOR_W): New macro.
11847         (ADJUST_INSN_LENGTH): Define.
11848         * config/v850/v850.md (UNSPEC_LOOP): Define.
11849         (attr cpu): Add v850e3v5.
11850         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11851         (movdi): New pattern.
11852         (movdi_internal): New pattern.
11853         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11854         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11855         (cstoresf4): Likewise.
11856         (cstoredf4): Likewise.
11857         (insv): New pattern.
11858         (rotlso3_a): New pattern.
11859         (rotlsi3_b): New pattern
11860         (rotlsi3_v850e3v5): New pattern.
11861         (doloop_begin): New pattern.
11862         (fix_loop_counter): New pattern.
11863         (doloop_end): New pattern.
11864         (branch_normal): Add e3v5 long branch support.
11865         (branch_invert): Likewise.
11866         (branch_z_normal): Likewise.
11867         (branch_z_invert): Likewise.
11868         (branch_nz_normal): Likewise.
11869         (branch_nz_invert): Likewise.
11870         (call_internal_short): Add e3v5 register-indirect JARL support.
11871         (call_internal_long): Likewise.
11872         (call_value_internal_short): Likewise.
11873         (call_value_internal_long): Likewise.
11874         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11875         (mloop): New option.
11876         * config.gcc: Add support for configuring v840e3v5 target.
11877         * doc/invoke.texi: Document new v850 specific command line options.
11878
11879 2013-01-31  Paul Koning  <ni1d@arrl.net>
11880
11881         PR debug/55059
11882         PR debug/54508
11883         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11884         children if parent is a class.
11885         (prune_unused_types_prune): Don't add DW_AT_declaration.
11886
11887 2013-01-31  Richard Biener  <rguenther@suse.de>
11888
11889         PR tree-optimization/56157
11890         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11891         match up operand with SLP child.
11892
11893 2013-01-31  Jason Merrill  <jason@redhat.com>
11894
11895         PR debug/54410
11896         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11897         parameters the first time.
11898         (gen_scheduled_generic_parms_dies): Check completeness here.
11899
11900 2013-01-31  Richard Biener  <rguenther@suse.de>
11901
11902         PR middle-end/53073
11903         * common.opt (faggressive-loop-optimizations): New flag,
11904         enabled by default.
11905         * doc/invoke.texi (faggressive-loop-optimizations): Document.
11906         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11907         infer_loop_bounds_from_undefined by it.
11908
11909 2013-01-31  Richard Biener  <rguenther@suse.de>
11910
11911         PR tree-optimization/56150
11912         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11913         visit virtual operands.
11914         (find_uses_to_rename_bb): Likewise.
11915
11916 2013-01-31  Richard Biener  <rguenther@suse.de>
11917
11918         PR tree-optimization/56150
11919         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11920         mixed store non-store stmts.
11921
11922 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
11923
11924         PR sanitizer/55374
11925         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11926         LIBASAN_EARLY_SPEC is defined.
11927         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11928         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11929         before %o.
11930         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11931
11932         PR c++/55742
11933         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11934         invalid args instead of ICEing on it.
11935         (ix86_valid_target_attribute_tree): Return error_mark_node if
11936         ix86_valid_target_attribute_inner_p failed.
11937         (ix86_valid_target_attribute_p): Return false only if
11938         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
11939         target("default") attribute.
11940         (sorted_attr_string): Change argument from const char * to tree,
11941         merge in all target attribute arguments rather than just one.
11942         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
11943         instead of free.  Avoid using strcat.
11944         (ix86_mangle_function_version_assembler_name): Mangle
11945         target("default") as if no target attribute is present.  Adjust
11946         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
11947         instead of xmalloc and XDELETEVEC instead of free.
11948         (ix86_function_versions): Don't return true if one of the decls
11949         doesn't have target attribute.  If they don't and one of the decls
11950         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
11951         sorted_attr_string caller.  Use XDELETEVEC instead of free.
11952         (ix86_supports_function_versions): Remove.
11953         (make_name): Fix up formatting.
11954         (make_dispatcher_decl): Remove resolver_name and its initialization.
11955         Avoid leaking memory.
11956         (is_function_default_version): Return true if there is
11957         target("default") attribute rather than no target attribute at all.
11958         (make_resolver_func): Avoid leaking memory.
11959         (ix86_generate_version_dispatcher_body): Likewise.
11960         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11961         * target.def (supports_function_versions): Remove.
11962         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11963         * doc/tm.texi: Regenerated.
11964
11965 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11966
11967         PR rtl-optimization/56144
11968         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11969         for values with side effects.
11970
11971 2013-01-30  Richard Biener  <rguenther@suse.de>
11972
11973         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11974         (sparseset_pop): Likewise.
11975         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
11976         to be able to use quick_push in the worker loop.
11977
11978 2013-01-30  Marek Polacek  <polacek@redhat.com>
11979
11980         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11981
11982 2013-01-30  Richard Biener  <rguenther@suse.de>
11983
11984         PR lto/56147
11985         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
11986
11987 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
11988
11989         PR tree-optimization/56064
11990         * fixed-value.c (fixed_from_double_int): New function.
11991         * fixed-value.h (fixed_from_double_int): New prototype.
11992         (const_fixed_from_double_int): New static inline function.
11993         * fold-const.c (native_interpret_fixed): New static function.
11994         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11995         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11996         (native_encode_fixed): New static function.
11997         (native_encode_expr) <FIXED_CST>: Use it.
11998         (native_interpret_int): Move double_int worker code to...
11999         * double-int.c (double_int::from_buffer): ...this new static method.
12000         * double-int.h (double_int::from_buffer): Prototype it.
12001
12002 2013-01-30  Richard Biener  <rguenther@suse.de>
12003
12004         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12005         New pointer-map and obstack.
12006         (init_alias_vars): Allocate pointer-map and obstack.
12007         (delete_points_to_sets): Free them.
12008         (find_what_var_points_to): Cache result.
12009         (find_what_p_points_to): Adjust for changed interface of
12010         find_what_var_points_to.
12011         (compute_points_to_sets): Likewise.
12012         (ipa_pta_execute): Likewise.
12013
12014 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12015
12016         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12017         * configure: Regenerate.
12018         * config.in: Regenerate.
12019         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12020         #nobits/#progbits if supported.
12021
12022 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
12023
12024         PR target/56121
12025         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12026         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12027         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12028
12029 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12030
12031         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12032         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12033
12034 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12035
12036         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12037         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12038
12039 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12040
12041         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12042         declaration.
12043         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12044         * config/arm/cortex-a7.md: New bypasses using
12045         arm_mac_accumulator_is_result.
12046
12047 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12048
12049         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
12050         (cortex_a7_neon_mla): Likewise.
12051         (cortex_a7_fpfmad): New reservation.
12052         (cortex_a7_fpmacs): Use ffmas and update required units.
12053         (cortex_a7_fpmuld): Update required units and latency.
12054         (cortex_a7_fpmacd): Likewise.
12055         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12056         (cortex_a7_neon). Likewise.
12057         (bypass) Update participating units.
12058
12059 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12060
12061         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12062         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12063         from fmac to ffma.
12064         * config/arm/vfp11.md (vfp_farith): Use ffmas.
12065         (vfp_fmul): Use ffmad.
12066         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12067         (cortex_r4_fmacd): Use ffmad.
12068         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12069         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
12070         (cortex_a9_fmacd): Use ffmad.
12071         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12072         (cortex_a8_vfp_macd): Use ffmad.
12073         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12074         (cortex_a5_fpmacd): Use ffmad.
12075         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12076         (cortex_a15_vfp_macd): Use ffmad.
12077         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12078
12079 2013-01-29  Jason Merrill  <jason@redhat.com>
12080
12081         PR libstdc++/54314
12082         * varasm.c (default_assemble_visibility): Don't warn about
12083         visibility on artificial decls.
12084
12085 2013-01-29  Richard Biener  <rguenther@suse.de>
12086
12087         PR tree-optimization/56113
12088         * tree-ssa-structalias.c (equiv_class_lookup): Also return
12089         the bitmap leader.
12090         (label_visit): Free duplicate bitmaps and record the leader instead.
12091         (perform_var_substitution): Adjust.
12092
12093 2013-01-29  Richard Biener  <rguenther@suse.de>
12094
12095         PR tree-optimization/55270
12096         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12097         the CFG, schedule loops for fixup.
12098
12099 2013-01-29  Nick Clifton  <nickc@redhat.com>
12100
12101         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12102         SP_REG.
12103
12104 2013-01-28  Leif Ekblad  <leif@rdos.net>
12105
12106         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12107         * config/i386/i386.h (TARGET_RDOS): New macro.
12108         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12109         * config/i386/i386.c (ix86_option_override_internal): For 64bit
12110         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12111         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12112         DEFAULT_LARGE_SECTION_THRESHOLD.
12113         * config/i386/i386.md (R14_REG, R15_REG): New constants.
12114         * config/i386/rdos.h: New file.
12115         * config/i386/rdos64.h: New file.
12116
12117 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
12118
12119         PR other/54814
12120         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12121         TEST_HARD_REG_BIT.
12122
12123 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12124
12125         PR rtl-optimization/56117
12126         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12127         call cselib_lookup_from_insn on the MEM before calling
12128         add_insn_mem_dependence.
12129
12130 2013-01-28  Richard Biener  <rguenther@suse.de>
12131
12132         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12133         to a stmt that didn't have one.
12134         (copy_phis_for_bb): Likewise for PHI arguments.
12135         (copy_debug_stmt): Likewise for debug stmts.
12136
12137 2013-01-28  Richard Biener  <rguenther@suse.de>
12138
12139         PR tree-optimization/56034
12140         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12141         (partition_builtin_p): Adjust.
12142         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
12143         it is the last partition.
12144         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12145         up the vertex for the definition.
12146         (classify_partition): Classify whether a partition is a
12147         PKIND_REDUCTION, thus has uses outside of the loop.
12148         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12149         Merge all PKIND_REDUCTION partitions into the last partition.
12150         (tree_loop_distribution): Seed partitions from reductions as well.
12151
12152 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12153
12154         PR tree-optimization/56125
12155         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12156         pow(x,c) into sqrt(x) * powi(x, n/2) or
12157         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12158         optimizing for size.
12159         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12160         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12161         integer.
12162
12163         PR tree-optimization/56094
12164         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12165         to UNKNOWN_LOCATION while gimplifying expr.
12166
12167 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
12168
12169         PR target/56114
12170         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12171         operand 0 in movabs insn template for -masm=intel asm alternative.
12172         (*movabs<mode>_2): Ditto for operand 1.
12173
12174 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
12175
12176         PR target/54663
12177         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12178         of microblaze-c.o
12179
12180 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12181
12182         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12183         tm_file.
12184
12185 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12186
12187         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12188         Undef to avoid warning.
12189
12190 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12191
12192         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12193         * configure: Regenerate.
12194
12195 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
12196
12197         PR tree-optimization/56098
12198         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12199         for stmts with volatile ops.
12200         (cond_store_replacement): Don't optimize if assign has volatile ops.
12201         (cond_if_else_store_replacement_1): Don't optimize if either
12202         then_assign or else_assign have volatile ops.
12203         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12204         volatile ops.
12205
12206 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12207
12208         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12209
12210 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12211
12212         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12213         missing ':' in asm example.
12214
12215 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
12216
12217         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12218         entries into lane and laneq entries.
12219         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12220         Remove AdvSIMD scalar modes.
12221         (aarch64_sq<r>dmulh_laneq<mode>): New.
12222         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12223         modes.
12224         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12225         builtin implementations to relfect changes in RTL in aarch64-simd.md.
12226         * config/aarch64/iterators.md (VCOND): New.
12227         (VCONQ): New.
12228
12229 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12230
12231         PR target/54222
12232         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12233         Add NULL LIBNAME argument to existing definitions.
12234         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12235         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12236         * config/avr/avr.c (DEF_BUILTIN): Same.
12237         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12238         (avr_expand_builtin): Expand to a vanilla call if a libgcc
12239         implementation is available (DECL_ASSEMBLER_NAME is set).
12240         (avr_fold_absfx): New static function.
12241         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12242         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12243         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12244         AVR_BUILTIN_ABSLLK.
12245         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12246         (abshk, absk, abslk, absllk): Provide as static inline functions.
12247
12248 2013-01-25  Marek Polacek  <polacek@redhat.com>
12249
12250         PR tree-optimization/56035
12251         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12252
12253 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
12254
12255         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12256         (*movtf_internal_rex64): Add (!o,C) alternative
12257         (*movxf_internal_rex64): Ditto.
12258         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12259
12260 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
12261
12262         * doc/invoke.texi: fix typo.
12263         * doc/objc.texi: fix typo.
12264
12265 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12266
12267         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12268         for the first two alternatives.
12269
12270 2013-01-24  Diego Novillo  <dnovillo@google.com>
12271
12272         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
12273         (ggc-zone.o): Remove.
12274         * configure.ac: Remove option --with-gc.
12275         * configure: Re-generate.
12276         * doc/install.texi: Remove documentation for --with-gc.
12277         * gengtype.c (write_enum_defn): Remove.  Update all users.
12278         (write_Types_process_field): Remove generation of gt_e_* argument.
12279         (output_type_enum): Remove.  Update all users.
12280         (write_enum_defn): Remove.  Update all users.
12281         (enum alloc_zone): Remove.  Update all users.
12282         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12283         * ggc-common.c (ggc_splay_alloc): Remove first argument.
12284         Update all callers.
12285         (struct ptr_data): Remove field TYPE.  Update all users.
12286         (gt_pch_note_object): Remove argument TYPE.  Update all users.
12287         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12288         Update all users.
12289         * ggc-none.c (ggc_alloc_typed_stat): Remove.
12290         (struct alloc_zone): Remove.
12291         (ggc_internal_alloc_zone_stat): Remove.
12292         (ggc_internal_cleared_alloc_zone_stat): Remove.
12293         * ggc-page.c (ggc_alloc_typed_stat): Remove.
12294         (ggc_pch_count_object): Remove last argument.  Update all users.
12295         (ggc_pch_alloc_object): Remove last argument.  Update all users.
12296         (struct alloc_zone): Remove.
12297         * ggc-zone.c: Remove.
12298         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
12299         (struct alloc_zone): Remove.
12300         (ggc_alloc_typed_stat): Remove.
12301         (ggc_alloc_typed): Remove.
12302         (ggc_splay_alloc): Remove first argument.
12303         (rtl_zone): Remove.  Update all users.
12304         (tree_zone): Remove.  Update all users.
12305         (tree_id_zone): Remove.  Update all users.
12306         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
12307         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
12308         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
12309         * tree-ssanames.c: Remove references to zone allocator in comments.
12310
12311 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
12312
12313         * config/avr/avr.c (avr_out_fract): Make register numbers that
12314         might be outside of source operand signed.
12315
12316 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
12317
12318         * config/i386/constraints.md (Yf): New constraint.
12319         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12320         of f constraint to conditionaly disable x87 register preferences.
12321         (*movdf_internal): Ditto.
12322         (*movsf_internal): Ditto.
12323
12324 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
12325
12326         PR inline-asm/55934
12327         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12328         that have operands with impossible constraints.
12329         Add a FIXME for a speed-up opportunity.
12330         * lra-constraints.c (process_alt_operands): Verify that a class
12331         selected from constraints on asms is valid for the operand mode.
12332         (curr_insn_transform): Remove incorrect comment.
12333
12334 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
12335
12336         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12337         TOC operand is a valid symbol ref in the constant pool.
12338
12339 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12340
12341         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12342
12343 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
12344
12345         PR target/54222
12346         * config/avr/stdfix.h: New file.
12347         * t-avr (stdfix-gcc.h): New rule to build it.
12348         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12349
12350 2013-01-23  Kostya Serebryany  <kcc@google.com>
12351
12352         * config/darwin.h: remove dependency on
12353         CoreFoundation (asan on Mac OS).
12354
12355 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
12356
12357         PR target/49069
12358         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12359         instead of cmpdi_operand for first comparison operand.
12360         Don't assert that comparison operands aren't both constants.
12361
12362 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12363
12364         * doc/install.texi (Downloading the Source): Update references to
12365         downloading separate components.
12366
12367 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12368
12369         * doc/extend.texi (__int128): Improve grammar.
12370
12371 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
12372
12373         PR target/56028
12374         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12375         alternative to (o,r).
12376         (*movdi_internal_rex64): Remove (!o,n) alternative.
12377         (DImode immediate->memory splitter): Remove.
12378         (DImode immediate->memory peephole2): Remove.
12379         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12380         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12381         alternative to (!o,*r).
12382         (*movtf_internal_sse): New pattern.
12383         (*movxf_internal_rex64): New pattern.
12384         (*movxf_internal): Disable for TARGET_64BIT.
12385         (*movdf_internal_rex64): Remove (!o,F) alternative.
12386
12387 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
12388
12389         PR middle-end/56074
12390         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12391         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12392         * tree-vect-loop-manip.c (find_loop_location): Also ignore
12393         stmt locations where LOCATION_LOCUS of the stmt location is
12394         UNKNOWN_LOCATION or BUILTINS_LOCATION.
12395
12396         PR target/55686
12397         * config/i386/i386.md (UNSPEC_STOS): New.
12398         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12399         *strsetqi_1): Add UNSPEC_STOS.
12400
12401 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
12402
12403         PR c++/56067
12404         * doc/invoke.texi: Remove left over -Wsynth example.
12405
12406 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12407
12408         PR tree-optimization/56051
12409         * fold-const.c (fold_binary_loc): Don't fold
12410         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12411         a narrowing conversion, or widening conversion from signed
12412         to unsigned.
12413
12414 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12415
12416         PR rtl-optimization/56023
12417         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12418         dependent on debug instruction.
12419
12420 2013-01-21  Martin Jambor  <mjambor@suse.cz>
12421
12422         PR middle-end/56022
12423         * function.c (allocate_struct_function): Call
12424         invoke_set_current_function_hook earlier.
12425
12426 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12427
12428         * reload1.c (init_reload): Only initialize reload_obstack
12429         during the first call.
12430
12431 2013-01-21  Marek Polacek  <polacek@redhat.com>
12432
12433         * cfgloop.c (verify_loop_structure): Fix up grammar.
12434
12435 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
12436
12437         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12438         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12439
12440 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12441
12442         PR target/56058
12443         * config/arm/marvell-pj4.md: Update copyright year.
12444         Fix up use of alu to alu_reg and simple_alu_imm.
12445
12446 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12447
12448         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12449
12450 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
12451
12452         PR target/55433
12453         * lra-constraints.c (curr_insn_transform): Don't reuse original
12454         insn for secondary memory move when memory mode should be different.
12455
12456 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12457
12458         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12459         atomic_storedi_1): New patterns.
12460
12461 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12462
12463         btver2 pipeline descriptions.
12464         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12465         descriptions.
12466         * config/i386/i386.md (btver2_decode): New type attributes.
12467         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
12468         type attributes.
12469         * config/i386/btver2.md: New file describing btver2 pipelines.
12470
12471 2013-01-19  Andrew Pinski  <apinski@cavium.com>
12472
12473         PR tree-optimization/52631
12474         * tree-ssa-sccvn (visit_use): Before looking up the original
12475         statement, try looking up the simplified expression.
12476
12477 2013-01-19  Anthony Green  <green@moxielogic.com>
12478
12479         * config/moxie/moxie.c (moxie_expand_prologue): Set
12480         current_function_static_stack_size.
12481
12482 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12483
12484         PR tree-optimization/56029
12485         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12486         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12487
12488 2013-01-18  Sharad Singhai  <singhai@google.com>
12489
12490         PR tree-optimization/55995
12491         * dumpfile.c (dump_loc): Print location only if available.
12492         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12493
12494 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
12495
12496         PR target/55433
12497         * lra-constraints.c (curr_insn_transform): Reuse original insn for
12498         secondary memory move.
12499         (inherit_reload_reg): Use rclass instead of cl for
12500         check_secondary_memory_needed_p.
12501
12502 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12503
12504         PR middle-end/56015
12505         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
12506         the case where writing real complex part of target modifies op1.
12507
12508 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
12509
12510         * config/aarch64/aarch64-simd.md
12511         (aarch64_vcond_internal<mode>): Handle unordered cases.
12512         * config/aarch64/iterators.md (v_cmp_result): New.
12513
12514 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
12515             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12516
12517         * config/arm/marvell-pj4.md: New file.
12518         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12519         * config/arm/arm.md (generic_sched): Add marvell_pj4.
12520         (generic_vfp): Likewise.
12521         * config/arm/arm-cores.def: Add marvell-pj4.
12522         * config/arm/arm-tune.md: Regenerate.
12523         * config/arm/arm-tables.opt: Regenerate.
12524         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12525         * doc/invoke.texi: Document marvell-pj4.
12526
12527 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
12528
12529         * config/aarch64/arm_neon.h: Map scalar types to standard types.
12530
12531 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12532
12533         PR debug/54114
12534         PR debug/54402
12535         PR debug/49888
12536         * var-tracking.c (negative_power_of_two_p): New.
12537         (global_get_addr_cache, local_get_addr_cache): New.
12538         (get_addr_from_global_cache, get_addr_from_local_cache): New.
12539         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
12540         heading comment.
12541         (vt_stack_offset_p): Remove.
12542         (vt_canon_true_dep): Always canonicalize loc's address.
12543         (clobber_overlapping_mems): Make sure we have a MEM.
12544         (local_get_addr_clear_given_value): New.
12545         (val_reset): Clear local cached entries.
12546         (compute_bb_dataflow): Create and release the local cache.
12547         Disable duplicate MEMs clobbering.
12548         (emit_notes_in_bb): Clobber MEMs likewise.
12549         (vt_emit_notes): Create and release the local cache.
12550         (vt_initialize, vt_finalize): Create and release the global
12551         cache, respectively.
12552         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12553
12554 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12555
12556         PR libmudflap/53359
12557         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12558         not found in the symtab.
12559
12560 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12561
12562         PR debug/56006
12563         PR rtl-optimization/55547
12564         PR rtl-optimization/53827
12565         PR debug/53671
12566         PR debug/49888
12567         * alias.c (offset_overlap_p): New, factored out of...
12568         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
12569         the conservative special case for symbolic constants.  Don't
12570         adjust zero sizes on alignment.
12571
12572 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
12573
12574         PR rtl-optimization/52573
12575         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12576         REG_UNUSED for the same register.
12577
12578 2013-01-17  Richard Biener  <rguenther@suse.de>
12579             Marek Polacek  <polacek@redhat.com>
12580
12581         PR rtl-optimization/55833
12582         * loop-unswitch.c (unswitch_loops): Move loop verification...
12583         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
12584         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12585         Set it to true when we're removing a loop from hierarchy tree in
12586         an irreducible region.
12587         (fix_bb_placements): Adjust caller.
12588         (fix_loop_placements): Likewise.
12589
12590 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
12591
12592         * config/avr/builtins.def (DEF_BUILTIN): Factor out
12593         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12594         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12595         Remove ID.  Adjust comments.
12596         * config/avr/avr-c.c (avr_builtin_name): Remove.
12597         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12598         * config/avr/avr.c (avr_tolower): New static function.
12599         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
12600         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12601         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12602         default expansion.
12603
12604 2013-01-17  Jan Hubicka  <jh@suse.cz>
12605
12606         PR tree-optimization/55273
12607         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12608
12609 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
12610
12611         PR target/55981
12612         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12613         store through atomic_store<mode>_1.
12614         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12615
12616 2013-01-17  Martin Jambor  <mjambor@suse.cz>
12617
12618         PR tree-optimizations/55264
12619         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12620         for virtual methods.
12621         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12622         virtual methods before inlining is over.
12623         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12624         virtual functions.
12625         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12626         non-virtual.
12627
12628 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
12629
12630         PR rtl-optimization/56005
12631         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12632         pending reads for prefetch.
12633
12634 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
12635
12636         * config/aarch64/aarch64.md
12637         (*cstoresi_neg_uxtw): New pattern.
12638         (*cmovsi_insn_uxtw): New pattern.
12639         (*<optab>si3_uxtw): New pattern.
12640         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12641         (*<optab>si3_insn_uxtw): New pattern.
12642         (*bswapsi2_uxtw): New pattern.
12643
12644 2013-01-16  Richard Biener  <rguenther@suse.de>
12645
12646         * tree-inline.c (tree_function_versioning): Remove set but
12647         never used variable.
12648
12649 2013-01-16  Richard Biener  <rguenther@suse.de>
12650
12651         PR tree-optimization/55964
12652         * tree-flow.h (rename_variables_in_loop): Remove.
12653         (rename_variables_in_bb): Likewise.
12654         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12655         (copy_loop_before): Adjust and delete update-ssa status.
12656         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
12657         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
12658         (rename_variables_in_loop): Remove.
12659         (slpeel_update_phis_for_duplicate_loop): Likewise.
12660         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12661         use available cfg machinery instead of duplicating it.
12662         Update PHI nodes and perform poor-mans SSA update here.
12663         (slpeel_tree_peel_loop_to_edge): Adjust.
12664
12665 2013-01-16  Richard Biener  <rguenther@suse.de>
12666
12667         PR tree-optimization/54767
12668         PR tree-optimization/53465
12669         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12670         (vrp_visit_phi_node): For PHI arguments coming via backedges
12671         drop all symbolical range information.
12672         (execute_vrp): Compute backedges.
12673
12674 2013-01-16  Richard Biener  <rguenther@suse.de>
12675
12676         * doc/install.texi: Update CLooG and ISL requirements to
12677         0.18.0 and 0.11.1.
12678
12679 2013-01-16  Christian Bruel  <christian.bruel@st.com>
12680
12681         PR target/55301
12682         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12683         (broken_move): Handle UNSPECV_SP_SWITCH_B.
12684         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12685
12686 2013-01-16  DJ Delorie  <dj@redhat.com>
12687
12688         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12689         (UNSPECV_SP_SWITCH_E): New.
12690         (sp_switch_1): Change to an unspec.
12691         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
12692         replace $r15.
12693
12694 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
12695
12696         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12697         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12698         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12699         (expand_mem_thread_fence): Ditto.
12700         (expand_mem_signal_fence): Ditto.
12701         (expand_atomic_load): Ditto.
12702         (expand_atomic_store): Ditto.
12703
12704 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
12705
12706         PR rtl-optimization/55547
12707         PR rtl-optimization/53827
12708         PR debug/53671
12709         PR debug/49888
12710         * alias.c (memrefs_conflict_p): Set sizes to negative after
12711         AND adjustments.
12712
12713 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12714
12715         PR target/55940
12716         * function.c (thread_prologue_and_epilogue_insns): Always
12717         add crtl->drap_reg to set_up_by_prologue.set, even if
12718         stack_realign_drap is false.
12719
12720 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12721
12722         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12723         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12724         *call): Fix indention.
12725
12726 2013-01-15  Tom de Vries  <tom@codesourcery.com>
12727
12728         PR target/55876
12729         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12730         Update comment.
12731
12732 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12733
12734         PR rtl-optimization/55153
12735         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12736
12737 2013-01-15  Martin Jambor  <mjambor@suse.cz>
12738
12739         PR tree-optimization/55920
12740         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12741         accesses as grp_to_be_debug_replaced.
12742
12743 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12744
12745         PR tree-optimization/55920
12746         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12747         there is non-useless type conversion needed from debug rhs to lhs,
12748         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12749
12750 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
12751             Mikael Pettersson  <mikpe@it.uu.se>
12752
12753         PR target/43961
12754         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12755         Thumb.
12756         (ASM_OUTPUT_CASE_LABEL): Remove.
12757         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12758         * final.c (shorten_branches): Update alignment of labels before
12759         jump tables if CASE_VECTOR_SHORTEN_MODE.
12760
12761 2013-01-15  Richard Biener  <rguenther@suse.de>
12762
12763         PR bootstrap/55961
12764         * system.h: Do not include gmp.h for building host tools.
12765
12766 2013-01-15  Richard Biener  <rguenther@suse.de>
12767
12768         PR middle-end/55882
12769         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12770         account for bitpos when computing alignment.
12771
12772 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
12773
12774         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12775         (ix86_target_macros_internal): Likewise.
12776
12777         * config/i386/i386.c (m_CORE2I7): Removed.
12778         (m_CORE_HASWELL): New macro.
12779         (m_CORE_ALL): Likewise.
12780         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12781         (initial_ix86_arch_features): Likewise.
12782         (processor_target_table): Initializations for Core avx2.
12783         (cpu_names): New names "core-avx2".
12784         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12785         PROCESSOR_CORE_HASWELL.
12786         (ix86_issue_rate): New case.
12787         (ia32_multipass_dfa_lookahead): Likewise.
12788         (ix86_sched_init_global): Likewise.
12789
12790         * config/i386/i386.h (TARGET_HASWELL): New macro.
12791         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12792         (processor_type): New PROCESSOR_HASWELL.
12793
12794 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12795
12796         PR tree-optimization/55955
12797         * tree-vect-loop.c (vectorizable_reduction): Give up early on
12798         *SHIFT_EXPR and *ROTATE_EXPR codes.
12799
12800         PR tree-optimization/48766
12801         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12802         -ftrapv disable -fwrapv.
12803
12804 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12805
12806         PR target/55974
12807         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12808         etc. to 1 and not to __flash.
12809         Use LL suffix for __INT24_MAX__ with -mint8.
12810         Use ULL suffix for __UINT24_MAX__ with -mint8.
12811
12812 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12813
12814         * config/avr/avr-arch.h
12815         (struct base_arch_s): Use typedef avr_arch_t instead.
12816         (struct arch_info_s): Use typedef avr_arch_info_t instead.
12817         (struct mcu_type_s): Use typedef avr_mcu_t instead.
12818         * config/avr/avr.c: Same.
12819         * config/avr/avr-devices.c: Same.
12820         * config/avr/driver-avr.c: Same.
12821         * config/avr/gen-avr-mmcu-texi.c: Same.
12822         * config/avr/avr-mcus.def: Adjust comment.
12823
12824 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
12825
12826         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12827         * config/aarch64/iterators.md (VALLDI): New.
12828
12829 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
12830             Andi Kleen  <ak@linux.intel.com>
12831
12832         PR target/55948
12833         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12834         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12835         memmodel flag.
12836
12837 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12838
12839         * config/avr/avr-stdint.h: Remove trailing blanks.
12840         * config/avr/avr-log.h: Same.
12841         * config/avr/avr-arch.h: Same.
12842         * config/avr/avr-devices.c: Same.
12843         * config/avr/avr-dimode.md: Same.
12844         * config/avr/predicates.md: Same.
12845         * config/avr/avr-c.c: Same.  And fix typo.
12846
12847         * config/avr/avr-protos.h: Same.  And:
12848         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12849         (init_cumulative_args): Rename to avr_init_cumulative_args.
12850         (expand_prologue): Rename to avr_expand_prologue.
12851         (expand_epilogue): Rename to avr_expand_epilogue.
12852         (adjust_insn_length): Rename to avr_adjust_insn_length.
12853         (notice_update_cc): Rename to avr_notice_update_cc.
12854         (final_prescan_insn): Rename to avr_final_prescan_insn.
12855         * config/avr/avr.c: Same.
12856         * config/avr/avr.h: Same.
12857         * config/avr/avr.md: Remove trailing blanks.
12858         (prologue): Use avr_expand_prologue.
12859         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12860
12861 2013-01-14  Richard Biener  <rguenther@suse.de>
12862
12863         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12864         verify_location, collect_subblocks): New functions.
12865         (verify_gimple_in_cfg): Verify that locations only reference
12866         BLOCKs in the functions BLOCK tree.
12867
12868 2013-01-14  Richard Biener  <rguenther@suse.de>
12869
12870         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12871         PHI argument.
12872         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12873         unshare reference.
12874         (insert_out_of_ssa_copy_on_edge): Likewise.
12875         (rewrite_close_phi_out_of_ssa): Likewise.
12876         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12877         debug expressions.
12878         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12879         propagated constants.
12880         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12881         can not be shared.
12882
12883 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12884
12885         * config/avr/avr-modes.def: Add GPL copyright notice.
12886
12887 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
12888
12889         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12890         MEMMODEL_MASK to determine memory model.
12891         (atomic_store<mode>): Ditto from operands[2].
12892         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12893
12894 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
12895
12896         PR fortran/55935
12897         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
12898         (fold_gimple_assign): Don't call unshare_expr here.
12899         (fold_ctor_reference): Call unshare_expr.
12900
12901 2013-01-13  Terry Guo  <terry.guo@arm.com>
12902
12903         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12904         * doc/fragments.texi: Document MULTILIB_REUSE.
12905         * gcc.c (multilib_reuse): New internal spec.
12906         (set_multilib_dir): Also search multilib from multilib_reuse.
12907         * genmultilib (tmpmultilib3): Refactor code.
12908         (tmpmultilib4): Ditto.
12909         (multilib_reuse): New multilib argument.
12910
12911 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
12912
12913         * Makefile.in: Update copyright.
12914
12915 2013-01-12  Tom de Vries  <tom@codesourcery.com>
12916
12917         PR middle-end/55890
12918         * calls.c (expand_call): Check if arg_nr is valid.
12919
12920 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12921
12922         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12923         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
12924         documentation.  Add missing '__' in front of
12925         __builtin_ia32_packssdw256.
12926
12927 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12928
12929         PR target/55719
12930         * config/s390/s390.c (s390_preferred_reload_class): Do not return
12931         NO_REGS for larl operands.
12932         (s390_reload_larl_operand): Use s390_load_address instead of
12933         emit_move_insn.
12934
12935 2013-01-11  Richard Biener  <rguenther@suse.de>
12936
12937         * tree-cfg.c (verify_node_sharing_1): Split out from ...
12938         (verify_node_sharing): ... here.
12939         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12940
12941 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12942
12943         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12944         Substitute TREECHECKING.
12945         * configure: Regenerate.
12946         * Makefile.in (TREECHECKING): New.
12947
12948 2013-01-11  Richard Guenther  <rguenther@suse.de>
12949
12950         PR tree-optimization/44061
12951         * tree-vrp.c (extract_range_basic): Compute zero as
12952         value-range for __builtin_constant_p of function parameters.
12953
12954 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
12955
12956         Update copyright years.
12957
12958 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
12959
12960         PR rtl-optimization/55672
12961         * lra-eliminations.c (mark_not_eliminable): Permit addition with
12962         const to be eliminable.
12963
12964 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
12965
12966         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12967         * configure: Regenerate.
12968
12969 2013-01-10  Richard Biener  <rguenther@suse.de>
12970
12971         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
12972
12973 2013-01-10  Richard Biener  <rguenther@suse.de>
12974
12975         PR bootstrap/55792
12976         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12977         locations for virtual PHI arguments.
12978         (rewrite_update_phi_arguments): Likewise.
12979
12980 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
12981
12982         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12983         on to assembler.
12984
12985 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
12986
12987         PR tree-optimization/55921
12988         * tree-complex.c (expand_complex_asm): New function.
12989         (expand_complex_operations_1): Call it for GIMPLE_ASM.
12990
12991 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12992
12993         PR target/55718
12994         * config/s390/s390.c (s390_symref_operand_p)
12995         (s390_loadrelative_operand_p): Merge the two functions.
12996         (s390_check_qrst_address, print_operand_address): Add parameters
12997         to s390_loadrelative_operand_p invokation.
12998         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12999         (s390_reload_larl_operand, s390_secondary_reload): Use
13000         s390_loadrelative_operand_p instead of s390_symref_operand_p.
13001         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13002
13003 2013-01-09  Mike Stump  <mikestump@comcast.net>
13004
13005         * dse.c (record_store): Remove unnecessary assert.
13006
13007 2013-01-09  Jan Hubicka  <jh@suse.cz>
13008
13009         PR tree-optimization/55569
13010         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13011         * cfgloop.h (scale_loop_profile): Likewise.
13012
13013 2013-01-09  Jan Hubicka  <jh@suse.cz>
13014
13015         PR lto/45375
13016         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13017         functions.
13018         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13019
13020 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
13021
13022         PR middle-end/55114
13023         * expr.h (maybe_emit_group_store): Declare.
13024         * expr.c (maybe_emit_group_store): New function.
13025         * builtins.c (expand_builtin_int_roundingfn): Call it.
13026         (expand_builtin_int_roundingfn_2): Likewise.
13027
13028 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
13029
13030         PR rtl-optimization/55829
13031         * lra-constraints.c (match_reload): Add code for absent output.
13032         (curr_insn_transform): Add code for reloads of matched inputs
13033         without output.
13034
13035 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
13036
13037         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13038         attribute of movddup insn to DF.
13039         (*vec_interleave_lowv2df): Ditto.
13040         (vec_dupv2df): Ditto.
13041
13042 2013-01-09  Jan Hubicka  <jh@suse.cz>
13043
13044         PR tree-optimiation/55875
13045         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13046         EVERY_ITERATION parameter.
13047         (number_of_iterations_exit): Check if exit is executed every iteration.
13048         (idx_infer_loop_bounds): Similarly here.
13049         (n_of_executions_at_most): Simplify
13050         to only test for cases where statement is dominated by the
13051         particular bound; handle correctly the "postdominance" test.
13052         (scev_probably_wraps_p): Use max loop iterations info
13053         as a global bound first.
13054
13055 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
13056             Nick Clifton  <nickc@redhat.com>
13057
13058         * config/v850/v850.md (cbranchsf4): New pattern.
13059         (cstoresf4): New pattern.
13060         (cbranchdf4): New pattern.
13061         (cstoredf4): New pattern.
13062         (movsicc): Disallow floating point comparisons.
13063         (cmpsf_le_insn): Fix order of operators.
13064         (cmpsf_lt_insn): Likewise.
13065         (cmpsf_eq_insn): Likewise.
13066         (cmpdf_le_insn): Likewise.
13067         (cmpdf_lt_insn): Likewise.
13068         (cmpdf_eq_insn): Likewise.
13069         (cmpsf_ge_insn): Use LE comparison.
13070         (cmpdf_ge_insn): Likewise.
13071         (cmpsf_gt_insn): Use LT comparison.
13072         (cmpdf_gt_insn): Likewise.
13073         (cmpsf_ne_insn): Delete pattern.
13074         (cmpdf_ne_insn): Delete pattern.
13075         * config/v850/v850.c (v850_gen_float_compare): Use
13076         gen_cmpdf_eq_insn for NE comparison.
13077         (v850_float_z_comparison_operator)
13078         (v850_float_nz_comparison_operator): Move from here ...
13079         * config/v850/predicates.md: ... to here.  Move GT and GE
13080         comparisons into v850_float_z_comparison_operator.
13081         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13082         Delete prototype.
13083         (v850_float_nz_comparison_operator): Likewise.
13084
13085 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13086
13087         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13088         with calls to gen_insvsi/gen_insvdi.
13089
13090 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13091
13092         * config/i386/i386.c (initial_ix86_tune_features): Set up
13093         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13094
13095 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
13096             Jakub Jelinek  <jakub@redhat.com>
13097
13098         PR tree-optimization/48189
13099         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13100         If nitercst is 0, don't predict the exit edge.
13101
13102 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13103
13104         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13105         in asm_fprintf with reg_names.
13106         (aarch64_print_operand_address): Likewise.
13107         (aarch64_return_addr): Likewise.
13108         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13109
13110 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13111
13112         * config/pa/pa.h (VAL_U6_BITS_P): Define.
13113         (INT_U6_BITS): Likewise.
13114         * config/pa/predicates.md (uint6_operand): New predicate.
13115         (shift5_operand, shift6_operand): Likewise.
13116         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13117         arith32_operand.
13118         (lshrdi3): Use shift6_operand.
13119         (shrpsi4, shrpdi4): New insn patterns.
13120         (extzv): Delete expander.
13121         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
13122         predicates in unamed zero extract patterns.  Tighten common constraint.
13123         (extv): Delete expander.
13124         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
13125         predicates in unamed sign extract patterns.  Tighten common constraint.
13126         (insv): Delete expander.
13127         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
13128         predicates in unamed insert patterns.  Tighten common constraint.
13129         Change uint32_operand predicate to uint6_operand predicate in unamed
13130         DImode pattern to insert constant values of type 1...1xxxx.
13131
13132 2013-01-04  Jan Hubicka  <jh@suse.cz>
13133
13134         PR tree-optimization/55823
13135         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13136         issue.
13137
13138 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13139             Uros Bizjak  <ubizjak@gmail.com>
13140
13141         PR rtl-optimization/55845
13142         * df-problems.c (can_move_insns_across): Stop scanning at
13143         volatile_insn_p source instruction or give up if
13144         across_from .. across_to range contains any volatile_insn_p
13145         instructions.
13146
13147 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13148
13149         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13150         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13151         Declare.
13152         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13153         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13154
13155 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13156
13157         PR fortran/55341
13158         * asan.c (asan_clear_shadow): New function.
13159         (asan_emit_stack_protection): Use it.
13160
13161 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13162
13163         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13164         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13165         with tab instead of space.
13166
13167 2013-01-08  Nick Clifton  <nickc@redhat.com>
13168
13169         * config/rl78/rl78.c (rl78_expand_prologue): Always select
13170         register bank 0 at the start of an interrupt handler.
13171         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13172         MDBH registers.
13173
13174 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13175
13176         * config/aarch64/aarch64-simd.md
13177         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13178         (aarch64_simd_bsl): Likewise.
13179         (aarch64_vcond_internal<mode>): Likewise.
13180         (vcond<mode><mode>): Likewise.
13181         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13182         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13183
13184 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13185
13186         * config/aarch64/aarch64-builtins.c
13187         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13188
13189 2013-01-08  Martin Jambor  <mjambor@suse.cz>
13190
13191         PR debug/55579
13192         * tree-sra.c (analyze_access_subtree): Return true also after
13193         potentially creating a debug-only replacement.
13194
13195 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13196
13197         PR middle-end/55890
13198         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13199
13200         PR tree-optimization/54120
13201         * tree-vrp.c (range_fits_type_p): Don't allow
13202         src_precision < precision from signed vr to unsigned_p
13203         if vr->min or vr->max is negative.
13204         (simplify_float_conversion_using_ranges): Test can_float_p
13205         against CODE_FOR_nothing.
13206
13207 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13208             Richard Biener  <rguenther@suse.de>
13209
13210         PR middle-end/55851
13211         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13212         types instead of just INTEGER_TYPE types.
13213
13214 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
13215
13216         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13217         TF_SIZE): Define.
13218
13219 2013-01-07  Steve Ellcey  <sellcey@mips.com>
13220
13221         PR target/42661
13222         * config/mips/mips.opt: Change mad to mmad to match documentation.
13223
13224 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13225
13226         PR target/55897
13227         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13228         .progmemx.data now.
13229
13230 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13231
13232         PR target/55897
13233         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13234         (avr_addrspace_t): Add .section_name field.
13235         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13236         array size.
13237         (avr_addrspace): Same.  Initialize .section_name.  Remove last
13238         NULL entry.  Put __memx into .progmemx.data.
13239         (progmem_section_prefix): Remove.
13240         (avr_asm_init_sections): No need to initialize progmem_section.
13241         (avr_asm_named_section): Use avr_addrspace[].section_name to get
13242         section name prefix.
13243         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
13244         retrieve the progmem section.
13245         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13246         boundary to run over avr_addrspace[].
13247         (avr_register_target_pragmas): Ditto.
13248
13249 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
13250
13251         * varasm.c (output_constant_def_contents): For asan_protect_global
13252         protected strings, adjust DECL_ALIGN if needed, before testing for
13253         anchored symbols.
13254         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13255         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
13256         normal decls.
13257         (output_object_block): For asan protected decls, emit asan padding
13258         after their contents.
13259         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13260         (asan_finish_file): Test it here instead.
13261
13262 2013-01-07  Nick Clifton  <nickc@redhat.com>
13263             Matthias Klose  <doko@debian.org>
13264             Doug Kwan  <dougkwan@google.com>
13265             H.J. Lu  <hongjiu.lu@intel.com>
13266
13267         PR driver/55470
13268         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13269
13270         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13271
13272         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13273
13274         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13275
13276         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13277
13278 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13279
13280         PR target/54461
13281         * doc/install.texi (Cross-Compiler-Specific Options): Document
13282         --with-avrlibc.
13283
13284 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
13285
13286         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13287         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13288         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13289         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13290         vqmovun_high_s64): Fix source operand number and update copyright.
13291
13292 2013-01-07  Richard Biener  <rguenther@suse.de>
13293
13294         PR middle-end/55890
13295         * gimple.h (gimple_call_builtin_p): New overload.
13296         * gimple.c (validate_call): New function.
13297         (gimple_call_builtin_p): Likewise.
13298         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13299         Use gimple_call_builtin_p.
13300         (find_func_clobbers): Likewise.
13301         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13302         (strlen_optimize_stmt): Likewise.
13303
13304 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13305
13306         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13307         (vld1q_dup_*): Likewise.
13308         (vld1_*): Likewise.
13309         (vld1q_*): Likewise.
13310         (vld1_lane_*): Likewise.
13311         (vld1q_lane_*): Likewise.
13312
13313 2013-01-07  Richard Biener  <rguenther@suse.de>
13314
13315         * lto-streamer.h (LTO_minor_version): Bump to 2.
13316
13317 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13318
13319         * config/aarch64/aarch64-protos.h
13320         (aarch64_const_double_zero_rtx_p): Rename to...
13321         (aarch64_float_const_zero_rtx_p): ...this.
13322         (aarch64_float_const_representable_p): New.
13323         (aarch64_output_simd_mov_immediate): Likewise.
13324         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13325         move immediate case.
13326         * config/aarch64/aarch64.c
13327         (aarch64_const_double_zero_rtx_p): Rename to...
13328         (aarch64_float_const_zero_rtx_p): ...this.
13329         (aarch64_print_operand): Allow printing of new constants.
13330         (aarch64_valid_floating_const): New.
13331         (aarch64_legitimate_constant_p): Check for valid floating-point
13332         constants.
13333         (aarch64_simd_valid_immediate): Likewise.
13334         (aarch64_vect_float_const_representable_p): New.
13335         (aarch64_float_const_representable_p): Likewise.
13336         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13337         (aarch64_output_simd_mov_immediate): New.
13338         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13339         (*movdf_aarch64): Likewise.
13340         * config/aarch64/constraints.md (Ufc): New.
13341         (Y): call aarch64_float_const_zero_rtx.
13342         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13343
13344 2013-01-07  Richard Biener  <rguenther@suse.de>
13345
13346         PR tree-optimization/55888
13347         PR tree-optimization/55862
13348         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13349         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13350         not if it is contained therein.
13351
13352 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13353
13354         * config/avr/t-avr: Typo.
13355
13356 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13357
13358         PR55243
13359         * config/avr/t-avr: Don't automatically rebuild
13360         $(srcdir)/config/avr/t-multilib
13361         $(srcdir)/config/avr/avr-tables.opt
13362         $(srcdir)/doc/avr-mmcu.texi
13363         (avr-mcus): New phony target to build them on request.
13364         (s-avr-mlib, s-avr-mmcu-texi): Remove.
13365         * avr/avr-mcus.def: Adjust comments.
13366
13367 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
13368
13369         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13370
13371 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13372
13373         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13374
13375 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13376
13377         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13378
13379 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
13380
13381         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13382         to generate profiling.
13383         * config/rs6000/aix64.h (LIB_SPEC): Same.
13384
13385 2013-01-04  Andrew Pinski  <apinski@cavium.com>
13386
13387         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13388         New function.
13389         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13390
13391 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
13392
13393         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13394         unconditionally.
13395         (ix86_expand_move): Ditto.
13396         (ix86_zero_extend_to_Pmode): Ditto.
13397         (ix86_expand_call): Ditto.
13398         (ix86_expand_special_args_builtin): Ditto.
13399         (ix86_expand_builtin): Ditto.
13400
13401 2013-01-04  Richard Biener  <rguenther@suse.de>
13402
13403         PR tree-optimization/55862
13404         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13405         translating them through PHI nodes.
13406
13407 2013-01-04  Martin Jambor  <mjambor@suse.cz>
13408
13409         PR tree-optimization/55755
13410         * tree-sra.c (sra_modify_assign): Do not check that an access has no
13411         children when trying to avoid producing a VIEW_CONVERT_EXPR.
13412
13413 2013-01-04  Marek Polacek  <polacek@redhat.com>
13414
13415         PR middle-end/55859
13416         * opts.c (default_options_optimization): Clarify error message.
13417
13418 2013-01-04  Richard Biener  <rguenther@suse.de>
13419
13420         PR middle-end/55863
13421         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13422         reassociation.
13423
13424 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13425
13426         PR target/53789
13427         * config/pa/pa.md (movsi): Revert previous change.
13428         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13429         references.
13430
13431 2013-01-03  Richard Henderson  <rth@redhat.com>
13432
13433         * config/i386/i386.c (ix86_expand_move): Always assign to op1
13434         after eliminating TLS symbols.
13435
13436 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
13437
13438         PR bootstrap/50167
13439         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13440         * graphite-poly.c (debug_gmp_value): Likewise.
13441
13442 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
13443
13444         PR target/55712
13445         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13446         selected code model, define __code_mode_small__, __code_model_medium__,
13447         __code_model_large__, __code_model_32__ or __code_model_kernel__.
13448         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13449         xchg temporary register with %k.  Declare temporary register as
13450         early clobbered.
13451         [__x86_64__]: For medium and large code models, preserve %rbx register.
13452
13453 2013-01-03  Richard Biener  <rguenther@suse.de>
13454
13455         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
13456         (dump_subscript): Adjust.
13457         (finalize_ddr_dependent): Do not dump redundant info.
13458         (analyze_siv_subscript): Adjust.
13459         (subscript_dependence_tester): Likewise.
13460         (compute_affine_dependence): Likewise.
13461
13462 2013-01-03  Richard Biener  <rguenther@suse.de>
13463
13464         Revert
13465         2013-01-03  Richard Biener  <rguenther@suse.de>
13466
13467         PR tree-optimization/55857
13468         * tree-vect-stmts.c (vectorizable_load): Do not setup
13469         re-alignment for invariant loads.
13470
13471         2013-01-02  Richard Biener  <rguenther@suse.de>
13472
13473         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13474         invariant load do not generate a vector load from the scalar location.
13475
13476 2013-01-03  Richard Biener  <rguenther@suse.de>
13477
13478         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13479         for not vectorizing.
13480         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13481         not build INDIRECT_REFs, call get_name once only.
13482         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
13483         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13484
13485 2013-01-03  Richard Biener  <rguenther@suse.de>
13486
13487         PR tree-optimization/55857
13488         * tree-vect-stmts.c (vectorizable_load): Do not setup
13489         re-alignment for invariant loads.
13490
13491 2013-01-03  Richard Biener  <rguenther@suse.de>
13492
13493         PR lto/55848
13494         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13495         prefer a built-in decl.
13496
13497 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13498
13499         * gcc.c (process_command): Update copyright notice dates.
13500         * gcov.c (print_version): Likewise.
13501         * gcov-dump.c (print_version): Likewise.
13502
13503         PR rtl-optimization/55838
13504         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13505         iv0.step, iv1.step and step.
13506
13507 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13508             Marc Glisse  <marc.glisse@inria.fr>
13509
13510         PR tree-optimization/55832
13511         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13512         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13513         integer_{one,zero}_node.
13514
13515 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13516
13517         PR debug/54402
13518         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13519         * var-tracking.c (reverse_op): Don't add reverse ops to
13520         VALUEs that have already
13521         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
13522
13523 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13524
13525         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13526
13527 2013-01-02  Teresa Johnson  <tejohnson@google.com>
13528
13529         * dumpfile.c (dump_loc): Print filename with location.
13530         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13531         new location_t parameter to emit complete unroll message with
13532         new dump framework.
13533         (canonicalize_loop_induction_variables): Compute loops location
13534         and pass to try_unroll_loop_completely.
13535         * loop-unroll.c (report_unroll_peel): New function.
13536         (peel_loops_completely): Use new dump format with location
13537         for main dumpfile message, and invoke report_unroll_peel on success.
13538         (decide_unrolling_and_peeling): Ditto.
13539         (decide_peel_once_rolling): Remove old dumpfile message subsumed
13540         by report_unroll_peel.
13541         (decide_peel_completely): Ditto.
13542         (decide_unroll_constant_iterations): Ditto.
13543         (decide_unroll_runtime_iterations): Ditto.
13544         (decide_peel_simple): Ditto.
13545         (decide_unroll_stupid): Ditto.
13546         * cfgloop.c (get_loop_location): New function.
13547         * cfgloop.h (get_loop_location): Declare.
13548
13549 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13550
13551         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13552         NULL.
13553
13554 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13555
13556         PR middle-end/55198
13557         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13558         BLKmode objects when EXPAND_MEMORY is specified.
13559
13560 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13561
13562         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13563         in loop predicate.
13564         (fold_builtin_cpu): Do not share cpu model decls across statements.
13565
13566 2013-01-02  Jason Merrill  <jason@redhat.com>
13567
13568         PR c++/55804
13569         * tree.c (build_array_type_1): Revert earlier change.
13570
13571 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13572
13573         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13574         "cortex-a57".
13575         * config/aarch64/aarch64-tune.md: Re-generate.
13576
13577 2013-01-02  Richard Biener  <rguenther@suse.de>
13578
13579         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13580         invariant load do not generate a vector load from the scalar location.
13581
13582 2013-01-02  Richard Biener  <rguenther@suse.de>
13583
13584         PR bootstrap/55784
13585         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13586         * configure: Regenerate.
13587
13588 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13589
13590         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13591         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13592         (expand_builtin_int_roundingfn_2): Keep the original target around
13593         for the fallback case.
13594
13595 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13596
13597         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13598         to be clear for sign changes.
13599
13600 2013-01-01  Jan Hubicka  <jh@suse.cz>
13601
13602         * ipa-inline-analysis.c: Fix formatting.
13603
13604 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
13605
13606         PR tree-optimization/55831
13607         * tree-vect-loop.c (get_initial_def_for_induction): Use
13608         gsi_after_labels instead of gsi_start_bb.
13609 \f
13610 Copyright (C) 2013 Free Software Foundation, Inc.
13611
13612 Copying and distribution of this file, with or without modification,
13613 are permitted in any medium without royalty provided the copyright
13614 notice and this notice are preserved.