bmiintrin.h (_bextr_u32): New.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
2
3         * config/i386/bmiintrin.h (_bextr_u32): New.
4         (_bextr_u64): Ditto.
5
6 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
7
8         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
9         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
10         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
11         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
12         * config/mips/n32-elf.h: ...this new file.
13
14 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
15
16         PR target/57224
17         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
18         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
19
20 2013-06-27  Catherine Moore <clm@codesourcery.com>
21
22         * config/mips/mips-tables.opt: Regenerate.
23         * config/mips/mips-cpus.def: Add m14ke and m14kec.
24         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies
25         -mdspr2.
26         * doc/invoke.texi: Add -m14kc.
27
28 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
29
30         PR target/57623
31         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
32         constraints of operand 1 and 2.
33
34         PR target/57623
35         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
36         to match RTL canonicalization.  Swap predicates and
37         constraints of operand 1 and 2.
38
39 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
40
41         * lra-constraints.c (inherit_in_ebb): Process static hard regs
42         too.  Process OP_INOUT regs for splitting too.
43
44 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
45
46         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
47         decl before the loop, initialize to NULL.
48         (vectorizable_load): Initialize ptr_incr to NULL.
49
50 2013-06-27  Martin Jambor  <mjambor@suse.cz>
51
52         PR lto/57208
53         * ipa-ref.h (ipa_maybe_record_reference): Declare.
54         * ipa-ref.c (ipa_maybe_record_reference): New function.
55         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
56         * ipa-cp.c (create_specialized_node): Record potential references from
57         aggvals.
58         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
59
60 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
61
62         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
63         parameter 'mode' of type 'enum machine_mode mode'; change to pass
64         'mode' to force_reg.
65         (aarch64_add_offset): Update calls to aarch64_force_temporary.
66         (aarch64_expand_mov_immediate): Likewise.
67
68 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
69
70         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
71         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
72
73 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74
75         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
76         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
77         (struct machine_function): Add tbegin_p.
78         (s390_canonicalize_comparison): Fold CC mode compares to
79         conditional jump if possible.
80         (s390_emit_jump): Return the emitted jump.
81         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
82         Handle CCRAWmode compares.
83         (s390_option_override): Default to -mhtm if available.
84         (s390_reg_clobbered_rtx): Handle floating point regs as well.
85         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
86         FPRs instead of df_regs_ever_live_p.
87         (s390_optimize_nonescaping_tx): New function.
88         (s390_init_frame_layout): Extend clobbered_regs array to cover
89         FPRs as well.
90         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
91         (s390_expand_tbegin): New function.
92         (enum s390_builtin): New enum definition.
93         (code_for_builtin): New array definition.
94         (s390_init_builtins): New function.
95         (s390_expand_builtin): New function.
96         (TARGET_INIT_BUILTINS): Define.
97         (TARGET_EXPAND_BUILTIN): Define.
98         * common/config/s390/s390-common.c (processor_flags_table): Add
99         PF_TX.
100         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
101         (s390_alc_comparison): Likewise.
102         * config/s390/s390-modes.def: Add CCRAWmode.
103         * config/s390/s390.h (processor_flags): Add PF_TX.
104         (TARGET_CPU_HTM): Define macro.
105         (TARGET_HTM): Define macro.
106         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
107         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
108         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
109         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
110         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
111         values.
112         (TBEGIN_MASK, TBEGINC_MASK): New constants.
113         ("*cc_to_int"): Move up.
114         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
115         constants other than 0.
116         ("*ccraw_to_int"): New insn and splitter definition.
117         ("tbegin", "tbegin_nofloat", "tbegin_retry")
118         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
119         ("tx_assist"): New expander.
120         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
121         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
122         * config/s390/s390.opt: Add -mhtm option.
123         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
124         * config/s390/htmxlintrin.h: New file.
125         * config/s390/htmintrin.h: New file.
126         * config/s390/s390intrin.h: New file.
127         * doc/extend.texi: Document htm builtins.
128         * config.gcc: Add the new header files to extra_headers.
129
130 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
131
132         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
133         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET):
134         Undefine.
135
136 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
137             Pat Haugen <pthaugen@us.ibm.com>
138             Peter Bergner <bergner@vnet.ibm.com>
139
140         * config/rs6000/power8.md: New.
141         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
142         setting for power8 entry.
143         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
144         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
145         test for Power4/Power5 only.
146         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
147         support.
148         (force_new_group): Adjust comment.
149         * config/rs6000/rs6000.md: Include power8.md.
150
151 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
152
153         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
154         * config/arm/arm-protos.h (arm_max_conditional_execute): New
155         declaration.
156         (tune_params): Update comment.
157         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
158         (arm_max_conditional_execute): New function.
159         (thumb2_final_prescan_insn): Use max_insn_skipped and
160         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
161
162 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
163
164         PR tree-optimization/57705
165         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
166         SSA_NAME step, provided that it is not defined inside the loop.
167         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested
168         loop.
169         (get_initial_def_for_induction): Handle SSA_NAME IV step.
170
171 2013-06-25  Martin Jambor  <mjambor@suse.cz>
172
173         PR middle-end/57670
174         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
175         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
176         calls in the dump.
177         (ipa_note_param_call): Initialize member_ptr flag.
178         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
179         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
180         (ipa_write_indirect_edge_info): Stream member_ptr flag.
181         (ipa_read_indirect_edge_info): Likewise.
182
183 2013-06-25  Richard Biener  <rguenther@suse.de>
184
185         PR middle-end/56977
186         * passes.c (init_optimization_passes): Move pass_fold_builtins
187         and pass_dce earlier with -Og.
188
189 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
190
191         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
192         <BIT_FIELD_REF>: Remove trailing TAB.
193         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
194         remove blank line.
195
196 2013-06-24  Martin Jambor  <mjambor@suse.cz>
197
198         PR tree-optimization/57358
199         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
200         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
201         (ipa_analyze_params_uses): Generate pessimistic info when true.
202
203 2013-06-24  Martin Jambor  <mjambor@suse.cz>
204
205         PR tree-optimization/57539
206         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
207         global.inlined_to of the new node to it.  All callers changed.
208         * ipa-inline-transform.c (clone_inlined_nodes): New variable
209         inlining_into, pass it to cgraph_clone_node.
210         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
211         ipa_free_edge_args_substructures.
212         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
213         rdesc linked list.  Do not assert rdesc edges have inlined caller.
214         Assert we have found an rdesc in the rdesc list.
215
216 2013-06-24  Richard Biener  <rguenther@suse.de>
217
218         * pointer-set.h (struct pointer_set_t): Move here from
219         pointer-set.c.
220         (pointer_set_lookup): Declare.
221         (class pointer_map): New template class implementing a
222         generic pointer to T map.
223         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
224         pointer_map<T>::contains, pointer_map<T>::insert,
225         pointer_map<T>::traverse): New functions.
226         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
227         (pointer_set_lookup): New function.
228         (pointer_set_contains): Use pointer_set_lookup.
229         (pointer_set_insert): Likewise.
230         (insert_aux): Remove.
231         (struct pointer_map_t): Embed a pointer_set_t.
232         (pointer_map_create): Adjust.
233         (pointer_map_destroy): Likewise.
234         (pointer_map_contains): Likewise.
235         (pointer_map_insert): Likewise.
236         (pointer_map_traverse): Likewise.
237         * tree-streamer.h (struct streamer_tree_cache_d): Use a
238         pointer_map<unsigned> instead of a pointer_map_t.
239         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
240         (streamer_tree_cache_lookup): Likewise.
241         (streamer_tree_cache_create): Likewise.
242         (streamer_tree_cache_delete): Likewise.
243         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
244         pointer_map<unsigned> instead of a pointer_map_t.
245         (lto_init_tree_ref_encoder): Adjust.
246         (lto_destroy_tree_ref_encoder): Likewise.
247         * lto-section-out.c (lto_output_decl_index): Likewise.
248         (lto_record_function_out_decl_state): Likewise.
249         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
250
251 2013-06-24  Richard Biener  <rguenther@suse.de>
252
253         PR tree-optimization/57488
254         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
255
256 2013-06-24  Alan Modra  <amodra@gmail.com>
257
258         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
259         (gen_easy_altivec_constant): Likewise.
260         * config/rs6000/predicates.md (easy_vector_constant_add_self,
261         easy_vector_constant_msb): Likewise.
262
263 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
264
265         PR target/57688
266         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
267         add missing return true.
268
269 2013-06-23  Oleg Endo <olegendo@gcc.gnu.org>
270
271         PR target/52483
272         * config/sh/predicates.md (general_extend_operand): Invoke
273         general_movsrc_operand for memory operands.
274         (general_movsrc_operand): Allow reg+reg addressing, do not use
275         general_operand for memory operands.
276
277 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
278
279         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
280         when current target options does not apply.
281         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
282         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
283         * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
284         * config/i386/mmintrin.h: Ditto.
285         * config/i386/nmmintrin.h: Ditto.
286         * config/i386/avx2intrin.h: Ditto.
287         * config/i386/fxsrintrin.h: Ditto.
288         * config/i386/tbmintrin.h: Ditto.
289         * config/i386/xsaveintrin.h: Ditto.
290         * config/i386/f16cintrin.h: Ditto.
291         * config/i386/xtestintrin.h: Ditto.
292         * config/i386/xsaveoptintrin.h: Ditto.
293         * config/i386/bmi2intrin.h: Ditto.
294         * config/i386/lzcntintrin.h: Ditto.
295         * config/i386/smmintrin.h: Ditto.
296         * config/i386/wmmintrin.h: Ditto.
297         * config/i386/x86intrin.h: Remove all header include guards.
298         * config/i386/prfchwintrin.h: Ditto.
299         * config/i386/pmmintrin.h: Ditto.
300         * config/i386/tmmintrin.h: Ditto.
301         * config/i386/xmmintrin.h: Ditto.
302         * config/i386/popcntintrin.h: Ditto.
303         * config/i386/rdseedintrin.h: Ditto.
304         * config/i386/ammintrin.h: Ditto.
305         * config/i386/emmintrin.h: Ditto.
306         * config/i386/immintrin.h: Remove all header include guards.
307         * config/i386/fma4intrin.h: Ditto.
308         * config/i386/lwpintrin.h: Ditto.
309         * config/i386/xopintrin.h: Ditto.
310         * config/i386/ia32intrin.h: Ditto.
311         * config/i386/avxintrin.h: Ditto.
312         * config/i386/rtmintrin.h: Ditto.
313         * config/i386/fmaintrin.h: Ditto.
314         * config/i386/mm3dnow.h: Ditto.
315
316 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
317
318         * common/config/i386/i386-common.c: Handle LZCNT.
319
320 2013-06-22  Andi Kleen  <ak@linux.intel.com>
321
322         * doc/extend.texi: Use __atomic_store_n instead of
323         __atomic_store in HLE example.
324
325 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
326
327         * config/sh/sh.c: Remove <cstdlib> workaround.
328
329 2013-06-21  Andi Kleen  <ak@linux.intel.com>
330
331         * doc/extend.texi: Dont use __atomic_clear in HLE
332         example.  Fix typo.
333
334 2013-06-21  Andi Kleen  <ak@linux.intel.com>
335
336         * doc/extend.texi: Document that __atomic_clear and
337           __atomic_test_and_set should only be used with bool.
338
339 2013-06-20  Jan Hubicka  <jh@suse.cz>
340
341         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
342         types_same_for_odr.
343         * tree.c (decls_same_for_odr): New function.
344         (same_for_edr): New function.
345         (types_same_for_odr): New function.
346         (get_binfo_at_offset): Use it.
347         * tree.h (types_same_for_odr): Declare.
348
349 2013-06-20  Oleg Endo <olegendo@gcc.gnu.org>
350             Jason Merrill  <jason@redhat.com>
351
352         * system.h: Include <cstdlib> as well as <stdlib.h>.
353
354 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
355
356         PR target/57655
357         * config/i386/i386.c (construct_container): Report error if
358         long double is used with disabled x87 float returns.
359
360 2013-06-20  Jan Hubicka  <jh@suse.cz>
361
362         * lto-cgraph.c (input_symtab): Do not set cgraph state.
363
364 2013-06-20  Joern Rennecke <joern.rennecke@embecosm.com>
365
366         PR rtl-optimization/57425
367         PR rtl-optimization/57569
368         * alias.c (write_dependence_p): Remove parameters mem_mode and
369         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
370         Changed all callers.
371         (canon_anti_dependence): Get comments and semantics in sync.
372         Add parameter mem_canonicalized.  Changed all callers.
373         * rtl.h (canon_anti_dependence): Update prototype.
374
375 2013-06-20  Richard Biener  <rguenther@suse.de>
376
377         * data-streamer-in.c (streamer_read_uhwi): Optimize single
378         byte case, inline streamer_read_uchar and defer section
379         overrun check.
380
381 2013-06-20  Richard Biener  <rguenther@suse.de>
382
383         PR tree-optimization/57584
384         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
385         SSA names into the expanded expression that take part in
386         abnormal coalescing.
387
388 2013-06-19    <singhai@google.com>
389
390         * gcov.c (print_usage): Handle new option.
391         (process_args): Ditto.
392         (get_gcov_intermediate_filename): New function.
393         (output_intermediate_file): New function.
394         (output_gcov_file): New function
395         (generate_results): Handle new option.
396         (release_function): Relase demangled name.
397         (read_graph_file): Handle demangled name.
398         (output_lines): Ditto.
399         * doc/gcov.texi: Document gcov intermediate format.
400
401 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
402
403         PR bootstrap/57604
404         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
405         (lra_emit_add): Use the functions.  Add comment about Y as an
406         address segment.
407
408 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
409
410         PR driver/57652
411         * collect2.c (collect_atexit): New.
412         (collect_exit): Delete.
413         (main): Register collect_atexit with atexit.
414         (collect_wait): Change collect_exit to exit.
415         (do_wait): Same.
416         * collect2.h (collect_exit): Delete.
417         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
418
419 2013-06-19  Wei Mi  <wmi@google.com>
420
421         PR rtl-optimization/57518
422         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
423         if regno is used in paradoxical subreg.
424         (update_equiv_regs): Check pdx_subregs[regno] before
425         set a reg to be equivalent with a mem.
426
427 2013-06-19  Matthias Klose  <doko@ubuntu.com>
428
429         PR driver/57651
430         * file-find.h (find_a_file): Add a mode parameter.
431         * file-find.c (find_a_file): Likewise.
432         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
433         with X_OK for the executables.
434         * collect2.c (main): Call find_a_file with X_OK.
435
436 2013-06-19  Steve Ellcey  <sellcey@mips.com>
437
438         PR target/56942
439         * config/mips/mips.md (casesi_internal_mips16_<mode>):
440         Use NEXT_INSN instead of next_real_insn.
441
442 2013-06-19  Jan Hubicka  <jh@suse.cz>
443
444         * cgraph.h (const_value_known_p): Replace by ...
445         (ctor_for_folding): .. this one.
446         * cgraphunit.c (process_function_and_variable_attributes): Use it.
447         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
448         * expr.c (expand_expr_real_1): Likewise.
449         (string_constant): Likewise.
450         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
451         * ipa.c (process_references): Likewise.
452         (symtab_remove_unreachable_nodes): Likewise.
453         * ipa-inline-analysis.c (param_change_prob): Likewise.
454         * gimple-fold.c (canonicalize_constructor_val): Likewise.
455         (get_base_constructor): Likwise.
456         * varpool.c (varpool_remove_node): Likewise.
457         (varpool_remove_initializer): LIkewise.
458         (dump_varpool_node): LIkwise.
459         (const_value_known_p): Rewrite to ...
460         (ctor_for_folding): ... this one.
461
462 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
463
464         PR driver/57651
465         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
466         PERSONALITY in $PATH derived prefixes.
467
468 2013-06-19  Jeff Law  <law@redhat.com>
469
470         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
471         in comment.
472
473         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
474         (simplify_bitwise_binary): Use it to simpify certain binary ops on
475         booleans.
476
477 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
478
479         * config/arm/vfp.md: Move VFP instruction classification documentation
480         to ...
481         * config/arm/arm.md: ... here.  Update instruction classification
482         documentation.
483
484 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
485
486         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
487         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
488         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
489
490 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
491
492         PR target/57609
493         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
494         with NEXT_INSN.  Use tablejump_p to check for jump table data
495         insns.
496
497 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
498
499         PR c++/56544
500         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
501         that now in C++ the value is correct per the C++ standards.
502
503 2013-06-19  Richard Biener  <rguenther@suse.de>
504
505         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
506         for global context.
507
508 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
509
510         Revert:
511         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
512
513         PR target/57609
514         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
515         with next_active_insn.
516
517 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
518
519         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
520         functions are inlined during failures to flag an error.
521         * tree-inline.c (expand_call_inline): Allow the error to be flagged
522         in early inline pass.
523
524 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
525
526         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
527         in comments.
528
529 2013-06-18  Julian Brown  <julian@codesourcery.com>
530
531         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
532         Permit virtual register pre-reload if !strict.
533         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
534         change.
535         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
536         prototype.
537         * config/arm/neon.md (movmisalign<mode>): Use
538         neon_perm_struct_or_reg_operand instead of
539         neon_struct_or_register_operand.
540         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
541         neon_permissive_struct_operand instead of neon_struct_operand.
542         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
543         neon_vector_mem_operand.
544         * config/arm/predicates.md (neon_struct_operand): Adjust call to
545         neon_vector_mem_operand.
546         (neon_permissive_struct_operand): New.
547         (neon_struct_or_register_operand): Rename to...
548         (neon_perm_struct_or_reg_operand): This. Adjust call to
549         neon_vector_mem_operand.
550
551 2013-06-18  Richard Biener  <rguenther@suse.de>
552
553         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
554         * lto-streamer.h: Include pointer-set.h.
555         (struct lto_decl_slot): Remove.
556         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
557         Remove next_index entry.
558         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
559         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
560         (lto_init_tree_ref_encoder): Adjust.
561         (lto_destroy_tree_ref_encoder): Likewise.
562         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
563         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
564         (lto_output_decl_index): Adjust.
565         (lto_new_out_decl_state): Likewise.
566         (lto_record_function_out_decl_state): Likewise.
567         * lto-streamer-out.c (copy_function): Likewise.
568
569 2013-06-18  Richard Biener  <rguenther@suse.de>
570
571         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
572         * cgraphunit.c: Include cfgloop.h.
573         (init_lowered_empty_function): Initialize the loop tree.
574         (assemble_thunk): Insert new BBs into loops.
575
576 2013-06-18  Richard Biener  <rguenther@suse.de>
577
578         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
579         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
580         the map from cache entry to cache index optional.
581         (streamer_tree_cache_replace_tree): Adjust accordingly.
582         (streamer_tree_cache_append): Likewise.
583         (streamer_tree_cache_delete): Likewise.
584         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
585         streamer cache map from cache entry to cache index.
586         * lto-streamer-out.c (create_output_block): Adjust.
587
588 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
589
590         * config/arm/arm.md (attribute "insn"): Move multiplication and
591         division attributes to...
592         (attribute "type"): ... here.  Remove mult.
593         (attribute "mul32"): New attribute.
594         (attribute "mul64"): Add umaal.
595         (*arm_mulsi3): Update attributes.
596         (*arm_mulsi3_v6): Likewise.
597         (*thumb_mulsi3): Likewise.
598         (*thumb_mulsi3_v6): Likewise.
599         (*mulsi3_compare0): Likewise.
600         (*mulsi3_compare0_v6): Likewise.
601         (*mulsi_compare0_scratch): Likewise.
602         (*mulsi_compare0_scratch_v6): Likewise.
603         (*mulsi3addsi): Likewise.
604         (*mulsi3addsi_v6): Likewise.
605         (*mulsi3addsi_compare0): Likewise.
606         (*mulsi3addsi_compare0_v6): Likewise.
607         (*mulsi3addsi_compare0_scratch): Likewise.
608         (*mulsi3addsi_compare0_scratch_v6): Likewise.
609         (*mulsi3subsi): Likewise.
610         (*mulsidi3adddi): Likewise.
611         (*mulsi3addsi_v6): Likewise.
612         (*mulsidi3adddi_v6): Likewise.
613         (*mulsidi3_nov6): Likewise.
614         (*mulsidi3_v6): Likewise.
615         (*umulsidi3_nov6): Likewise.
616         (*umulsidi3_v6): Likewise.
617         (*umulsidi3adddi): Likewise.
618         (*umulsidi3adddi_v6): Likewise.
619         (*smulsi3_highpart_nov6): Likewise.
620         (*smulsi3_highpart_v6): Likewise.
621         (*umulsi3_highpart_nov6): Likewise.
622         (*umulsi3_highpart_v6): Likewise.
623         (mulhisi3): Likewise.
624         (*mulhisi3tb): Likewise.
625         (*mulhisi3bt): Likewise.
626         (*mulhisi3tt): Likewise.
627         (maddhisi4): Likewise.
628         (*maddhisi4tb): Likewise.
629         (*maddhisi4tt): Likewise.
630         (maddhidi4): Likewise.
631         (*maddhidi4tb): Likewise.
632         (*maddhidi4tt): Likewise.
633         (divsi3): Likewise.
634         (udivsi3): Likewise.
635         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
636         (thumb2_mulsi_short_compare0): Likewise.
637         (thumb2_mulsi_short_compare0_scratch): Likewise.
638         * config/arm/arm1020e.md (1020mult1): Update attribute change.
639         (1020mult2): Likewise.
640         (1020mult3): Likewise.
641         (1020mult4): Likewise.
642         (1020mult5): Likewise.
643         (1020mult6): Likewise.
644         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
645         change.
646         (cortex_a15_mult64): Likewise.
647         (cortex_a15_sdiv): Likewise.
648         (cortex_a15_udiv): Likewise.
649         * config/arm/arm1026ejs.md (mult1): Update attribute change.
650         (mult2): Likewise.
651         (mult3): Likewise.
652         (mult4): Likewise.
653         (mult5): Likewise.
654         (mult6): Likewise.
655         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
656         (pj4_ir_div): Likewise.
657         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
658         (11_mult2): Likewise.
659         (11_mult3): Likewise.
660         (11_mult4): Likewise.
661         (11_mult5): Likewise.
662         (11_mult6): Likewise.
663         (11_mult7): Likewise.
664         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
665         (cortex_a8_mla): Likewise.
666         (cortex_a8_mull): Likewise.
667         (cortex_a8_smulwy): Likewise.
668         (cortex_a8_smlald): Likewise.
669         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
670         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
671         (cortex_r4_mul_3): Likewise.
672         (cortex_r4_mla_4): Likewise.
673         (cortex_r4_mla_3): Likewise.
674         (cortex_r4_smlald): Likewise.
675         (cortex_r4_mull): Likewise.
676         (cortex_r4_sdiv): Likewise.
677         (cortex_r4_udiv): Likewise.
678         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
679         (cortex_a7_idiv): Likewise.
680         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
681         (9_mult2): Likewise.
682         (9_mult3): Likewise.
683         (9_mult4): Likewise.
684         (9_mult5): Likewise.
685         (9_mult6): Likewise.
686         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
687         (cortex_a53_sdiv): Likewise.
688         (cortex_a53_udiv): Likewise.
689         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
690         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
691         (mp626_mult2): Likewise.
692         (mp626_mult3): Likewise.
693         (mp626_mult4): Likewise.
694         * config/arm/fa526.md (526_mult1): Update attribute change.
695         (526_mult2): Likewise.
696         * config/arm/arm-generic.md (mult): Update attribute change.
697         (mult_ldsched_strongarm): Likewise.
698         (mult_ldsched): Likewise.
699         (multi_cycle): Likewise.
700         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
701         * config/arm/fa606te.md (606te_mult1): Update attribute change.
702         (606te_mult2): Likewise.
703         (606te_mult3): Likewise.
704         (606te_mult4): Likewise.
705         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
706         (cortex_a9_mac16): Likewise.
707         (cortex_a9_multiply): Likewise.
708         (cortex_a9_mac): Likewise.
709         (cortex_a9_multiply_long): Likewise.
710         * config/arm/fa626te.md (626te_mult1): Update attribute change.
711         (626te_mult2): Likewise.
712         (626te_mult3): Likewise.
713         (626te_mult4): Likewise.
714
715 2013-06-18  Richard Biener  <rguenther@suse.de>
716
717         PR lto/57334
718         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
719
720 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
721
722         PR target/57609
723         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
724         with next_active_insn.
725
726 2013-06-18  Alan Modra  <amodra@gmail.com>
727
728         * config/rs6000/rs6000.h (enum data_align): New.
729         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
730         (DATA_ABI_ALIGNMENT): Define.
731         (CONSTANT_ALIGNMENT): Correct comment.
732         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
733         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
734
735 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
736
737         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
738         ATTRIBUTE_UNUSED marking.
739
740 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
741
742         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
743         alternative and update.
744         (aarch64_dup_lanedi): Delete.
745         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
746         * config/aarch64/aarch64-simd-builtins.def: Update.
747
748 2013-06-17  Richard Biener  <rguenther@suse.de>
749
750         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
751         (lto_input_scc): Declare.
752         (lto_input_tree_1): Likewise.
753         (struct lto_stats_d): Add num_tree_bodies_output and
754         num_pickle_refs_output.
755         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
756         (lto_read_tree_1): Split out from ...
757         (lto_read_tree): ... this.
758         (lto_input_scc): New function.
759         (lto_input_tree_1): Split out from ...
760         (lto_input_tree): ... this.  Handle LTO_tree_scc.
761         (lto_data_in_create): Create the streamer cache without hashes.
762         * lto-streamer-out.c (create_output_block): Create the streamer
763         cache with hashes when not doing WPA.
764         (lto_write_tree_1): Split out from ...
765         (lto_write_tree): ... this.
766         (get_symbol_initial_value): New function.
767         (lto_output_tree_1): Split out from ...
768         (lto_output_tree): ... this.  Write trees as series of SCCs
769         using a DFS walk via DFS_write_tree.
770         (struct sccs, struct scc_entry): New types.
771         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
772         (DFS_write_tree_body): New function.
773         (DFS_write_tree): Likewise.
774         (hash_tree): Likewise.
775         (scc_entry_compare): Likewise.
776         (hash_scc): Likewise.
777         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
778         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
779         TREE_CHAIN as regular reference.
780         (streamer_read_integer_cst): Remove.
781         (streamer_get_pickled_tree): Adjust.
782         * tree-streamer-out.c (streamer_write_chain): Disable streaming
783         of DECL_EXTERNALs in BLOCK_VARS for now.
784         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
785         reference.
786         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
787         Add hash value argument and record that if hashes are recorded
788         in the cache.
789         (streamer_tree_cache_insert_1): Adjust.
790         (streamer_tree_cache_insert): Likewise.
791         (streamer_tree_cache_insert_at): Rename to ...
792         (streamer_tree_cache_replace_tree): ... this and adjust.
793         (streamer_tree_cache_append): Adjust.
794         (record_common_node): Likewise.
795         (streamer_tree_cache_create): Add argument whether to
796         record hash values together with trees.
797         (streamer_tree_cache_delete): Adjust.
798         * tree-streamer.h (struct streamer_tree_cache_d): Add
799         vector of hashes.
800         (streamer_read_integer_cst): Remove.
801         (streamer_tree_cache_insert): Adjust.
802         (streamer_tree_cache_append): Likewise.
803         (streamer_tree_cache_insert_at): Rename to ...
804         (streamer_tree_cache_replace_tree): ... this and adjust.
805         (streamer_tree_cache_create): Add argument whether to record hashes.
806         (streamer_tree_cache_get): Rename to ...
807         (streamer_tree_cache_get_tree): ... this.
808         (streamer_tree_cache_get_hash): New function.
809         * tree.c (cache_integer_cst): New function.
810         * tree.h (cache_integer_cst): Declare.
811         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
812         * lto-symtab.c (lto_varpool_replace_node): Only release
813         DECL_INITIAL of non-prevailing decls.
814         * varpool.c (varpool_remove_initializer): Do not release
815         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
816
817 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
818
819         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
820         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
821         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
822         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
823         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
824         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
825         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
826         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
827         instead of TARGET_64BIT.
828         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
829         Require ISA_HAS_<D>DIV.
830
831 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
832
833         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
834         (mips*-*-linux*): Move default with_llsc setting to where other
835         defaults are set.
836         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
837         with_arch block.
838         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
839         Likewise.  Remove default with_tune setting.  Move default float
840         setting to its own block.  Handle with_llsc in the same block as above.
841
842 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
843
844         PR rtl-optimization/57425
845         PR rtl-optimization/57569
846         * alias.c (write_dependence_p): Add new parameters mem_mode,
847         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
848         Changed all callers.
849         (canon_anti_dependence): New function.
850         * cse.c (check_dependence): Use canon_anti_dependence.
851         * cselib.c (cselib_invalidate_mem): Likewise.
852         * rtl.h (canon_anti_dependence): Declare.
853
854 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
855
856         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
857         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
858         ".set mips3" for 64-bit targets.
859
860 2013-06-15  Dehao Chen  <dehao@google.com>
861
862         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
863         * gimple-low.c (gimple_check_call_matching_types): Likewise.
864         (gimple_check_call_args): Likewise.
865         * value-prof.c (check_ic_target): Likewise.
866         * ipa-inline.c (early_inliner): Likewise.
867         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
868         * cgraph.c (cgraph_create_edge_1): Likewise.
869         (cgraph_make_edge_direct): Likewise.
870
871 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
872
873         PR target/57615
874         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
875         rs6000_output_move_128bit to handle emitting quad memory
876         operations.  Set attribute length to 8 bytes.
877
878 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
879
880         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
881         New pattern.
882         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
883         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
884         (aarch64_<su>mlsl<mode>): Likewise.
885
886 2013-06-14  Mike Stump  <mikestump@comcast.net>
887
888         * Makefile.in (TARGET_H): Add insn-codes.h.
889
890 2013-06-14  Alan Modra  <amodra@gmail.com>
891
892         PR middle-end/57134
893         PR middle-end/57586
894         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
895         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
896         bitfield expansion when EXPAND_MEMORY.
897         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
898
899 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
900
901         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
902         test for clearing quad memory on 32-bit later.
903
904 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
905
906         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
907         (fold_negate_expr): Likewise.
908         (fold_real_zero_addition_p): Handle vectors.
909         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
910
911 2013-06-14  Alan Modra  <amodra@gmail.com>
912
913         * varasm.c (force_const_mem): Revert 2013-06-07 change.
914
915 2013-06-13  Jan Hubicka  <jh@suse.cz>
916
917         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
918         Local comdats are not externally visible.
919         * symtab.c (dump_symtab_base): Dump externally visible.
920         (verify_symtab_base): Verify back links in the symtab hash.
921
922 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
923
924         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
925         CONVERT_EXPR as equal nodes.
926
927 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
928
929         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
930
931 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
932
933         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
934         Generalize to complex and vector.
935         * tree.c (build_all_ones_cst): New function.
936         * tree.h (build_all_ones_cst): Declare it.
937
938 2013-06-13  Alan Modra  <amodra@gmail.com>
939
940         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
941         * config/rs6000/rs6000.md (signbittf2): New insn.
942         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
943         (abstf2_internal, cmptf_internal2): Likewise.
944         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
945
946 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
947             Pat Haugen <pthaugen@us.ibm.com>
948             Peter Bergner <bergner@vnet.ibm.com>
949
950         * config/rs6000/rs6000.c (emit_load_locked): Add support for
951         power8 byte, half-word, and quad-word atomic instructions.
952         (emit_store_conditional): Likewise.
953         (rs6000_expand_atomic_compare_and_swap): Likewise.
954         (rs6000_expand_atomic_op): Likewise.
955
956         * config/rs6000/sync.md (larx): Add new modes for power8.
957         (stcx): Likewise.
958         (AINT): New mode iterator to include TImode as well as normal
959         integer modes on power8.
960         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
961         that VSX registers are not considered.  Use AINT mode iterator
962         instead of INT1 to allow inclusion of quad word atomic operations
963         on power8.
964         (load_locked<mode>): Likewise.
965         (store_conditional<mode>): Likewise.
966         (atomic_compare_and_swap<mode>): Likewise.
967         (atomic_exchange<mode>): Likewise.
968         (atomic_nand<mode>): Likewise.
969         (atomic_fetch_<fetchop_name><mode>): Likewise.
970         (atomic_nand_fetch<mode>): Likewise.
971         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
972         each type.
973         (ATOMIC): On power8, add QImode, HImode modes.
974         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
975         modes that promote to SImode.
976         (load_lockedti): Convert TImode arguments to PTImode, so that we
977         get a guaranteed even/odd register pair.
978         (load_lockedpti): Likewise.
979         (store_conditionalti): Likewise.
980         (store_conditionalpti): Likewise.
981
982         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
983         atomic load/store instructions.
984         (HSI): Likewise.
985
986 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
987
988         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
989         loads.
990         (insn_count): New attribute, with most cases extracted from...
991         (length): ...here.  Redefine most cases in terms of insn_count.
992         (single_insn): Delete.
993         (can_delay): Use insn_count to check for single instructions.
994         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
995         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
996         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
997         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
998         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
999         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1000         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1001         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1002         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1003         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1004         rather than "length".
1005         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
1006         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1007         Use "insn_count" rather than "length".
1008         * config/mips/mips-dsp.md
1009         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1010         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1011         length attributes.
1012
1013 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
1014
1015         PR tree-optimization/57361
1016         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1017
1018 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
1019
1020         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1021         to split.
1022         (aarch64_simd_combine<mode>): New instruction expansion.
1023         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1024         function prototype.
1025         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1026         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1027
1028 2013-06-12  Jan Hubicka  <jh@suse.cz>
1029
1030         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1031         decl has when in streaming stage.
1032         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1033         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1034
1035 2013-06-12  Roland Stigge <stigge@antcom.de>
1036
1037         PR target/57578
1038         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1039
1040 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1041
1042         PR tree-optimization/57537
1043         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1044         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1045
1046 2013-06-12  Richard Biener  <rguenther@suse.de>
1047
1048         * data-streamer.h (streamer_write_char_stream): CSE
1049         obs->current_pointer.
1050         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1051         streamer_write_char_stream manually and optimize the resulting loop.
1052         (streamer_write_hwi_stream): Likewise.
1053
1054 2013-06-12  Jan Hubicka  <jh@suse.cz>
1055
1056         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1057         * cgraph.h (varpool_create_empty_node): Declare.
1058         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1059         duplicated nodes.
1060         * symtab.c (symtab_unregister_node): Be lax about missin entries
1061         in node hash.
1062         (symtab_get_node): Update comment.
1063         * varpool.c (varpool_create_empty_node): Break out from ...
1064         (varpool_node_for_decl): ... here.
1065         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1066
1067 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1068
1069         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1070         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1071         part.  Use straight-line flow at the end.
1072         <COMPONENT_REF>: Remove superfluous else.
1073         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1074
1075 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1076
1077         PR target/56564
1078         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1079         target hook even for !TREE_PUBLIC decls.  If no resolution info
1080         is available, return false for common and external decls.
1081
1082 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1083
1084         * config/rl78/constraints.md (U): New constraint.
1085         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1086         valloc attribute.
1087
1088 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1089
1090         PR target/57589
1091         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1092         to allow returning address to AT_PLATFORM name.
1093
1094 2013-06-11  Jan Hubicka  <jh@suse.cz>
1095
1096         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1097         * cgraph.h (symtab_node_base): Add weakref flag.
1098         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1099         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1100         (output_weakrefs): Use weakref flag.
1101         * fold-const.c (simple_operand_p): Handle WEAK.
1102         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1103         * ipa.c (varpool_externally_visible_p): Drop weakref.
1104         (function_and_variable_visibility): Update comment; fix weakref
1105         sanity checks; do not clear DECL_WEAK on them.
1106         * lto-cgraph.c (lto_output_node): update.
1107         (lto_output_varpool_node): Update.
1108         (input_overwrite_node): Update.
1109         (input_node): Update.
1110         (input_varpool_node): Update.
1111         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1112         (lto_symtab_merge_symbols): Add sanity check.
1113         (lto_symtab_prevailing_decl): Do not special case weakrefs.
1114         * passes.c (rest_of_decl_compilation): Set static flag, too.
1115         * symtab.c (dump_symtab_base): Dump weakref.
1116         (verify_symtab_base): Sanity check weakrefs.
1117         (symtab_make_decl_local): Remove duplicated code.
1118         (symtab_alias_ultimate_target): Simplify.
1119         * varpool.c (varpool_create_variable_alias): Set weakref flag.
1120
1121 2013-06-11  DJ Delorie  <dj@redhat.com>
1122
1123         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1124         (rl78_unwind_word_mode): New.
1125
1126 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1127
1128         * final.c (debug_prefix_maps): Make static.
1129
1130 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1131
1132         * function.c (initial_trampoline): Remove stray copy.
1133
1134 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
1135
1136         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1137
1138 2013-06-11  Martin Jambor  <mjambor@suse.cz>
1139
1140         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1141         within bounds at the beginning of the function.
1142
1143 2013-06-11  Alan Modra  <amodra@gmail.com>
1144
1145         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
1146         reporting.
1147         (get_named_section): Don't NULL !DECL_P decl.
1148
1149 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
1150
1151         * doc/invoke.texi (core-avx2): Document.
1152         (slm): Likewise.
1153         (atom): Updated with MOVBE.
1154
1155 2013-06-11  Richard Biener  <rguenther@suse.de>
1156
1157         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1158
1159 2013-06-11  Anton Blanchard  <anton@samba.org>
1160
1161         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1162         correct shift value in little-endian mode.
1163
1164 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
1165
1166         PR target/56564
1167         * varasm.c (get_variable_align): Move #endif to the right place.
1168
1169 2013-06-10  Cary Coutant  <ccoutant@google.com>
1170
1171         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1172         for hash so that hash table traversal order is deterministic.
1173
1174 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1175             Pat Haugen <pthaugen@us.ibm.com>
1176             Peter Bergner <bergner@vnet.ibm.com>
1177
1178         * config/rs6000/vector.md (GPR move splitter): Do not split moves
1179         of vectors in GPRS if they are direct moves or quad word load or
1180         store moves.
1181
1182         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1183         declaration.
1184         (direct_move_p): Likewise.
1185         (quad_load_store_p): Likewise.
1186
1187         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1188         classes into bins based on the physical register type.
1189         (reg_class_to_reg_type): Likewise.
1190         (IS_STD_REG_TYPE): Likewise.
1191         (IS_FP_VECT_REG_TYPE): Likewise.
1192         (reload_fpr_gpr): Arrays to determine what insn to use if we can
1193         use direct move instructions.
1194         (reload_gpr_vsx): Likewise.
1195         (reload_vsx_gpr): Likewise.
1196         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1197         information that is a simplification of register classes.  Also
1198         precalculate direct move reload helpers.
1199         (direct_move_p): New function to return true if the operation can
1200         be done as a direct move instruciton.
1201         (quad_load_store_p): New function to return true if the operation
1202         is a quad memory operation.
1203         (rs6000_legitimize_address): If quad memory, only allow register
1204         indirect for TImode addresses.
1205         (rs6000_legitimate_address_p): Likewise.
1206         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1207         (rs6000_reload_register_type): Likewise.
1208         (register_to_reg_type): Return register type.
1209         (rs6000_secondary_reload_simple_move): New helper function for
1210         secondary reload and secondary memory needed to identify anything
1211         that is a simple move, and does not need reloading.
1212         (rs6000_secondary_reload_direct_move): New helper function for
1213         secondary reload to identify cases that can be done with several
1214         instructions via the direct move instructions.
1215         (rs6000_secondary_reload_move): New helper function for secondary
1216         reload to identify moves between register types that can be done.
1217         (rs6000_secondary_reload): Add support for quad memory operations
1218         and for direct move.
1219         (rs6000_secondary_memory_needed): Likewise.
1220         (rs6000_debug_secondary_memory_needed): Change argument names.
1221         (rs6000_output_move_128bit): New function to return the move to
1222         use for 128-bit moves, including knowing about the various
1223         limitations of quad memory operations.
1224
1225         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1226         memory operations.  call rs6000_output_move_128bit for the actual
1227         instruciton(s) to generate.
1228         (vsx_movti_64bit): Likewise.
1229
1230         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1231         (UNSPEC_P8V_MTVSRWZ): Likewise.
1232         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1233         (UNSPEC_P8V_MTVSRD): Likewise.
1234         (UNSPEC_P8V_XXPERMDI): Likewise.
1235         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1236         (UNSPEC_FUSION_GPR): Likewise.
1237         (FMOVE128_GPR): New iterator for direct move.
1238         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1239         (f32_sv): Likewise.
1240         (f32_dm): Likewise.
1241         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1242         loads and direct move instructions.
1243         (zero_extendsidi2_lfiwzx): Likewise.
1244         (extendsidi2_lfiwax): Likewise.
1245         (extendsidi2_nocell): Likewise.
1246         (floatsi<mode>2_lfiwax): Likewise.
1247         (lfiwax): Likewise.
1248         (floatunssi<mode>2_lfiwzx): Likewise.
1249         (lfiwzx): Likewise.
1250         (fix_trunc<mode>_stfiwx): Likewise.
1251         (fixuns_trunc<mode>_stfiwx): Likewise.
1252         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1253         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1254         (parity<mode>2_cmpb): Set length/type attr.
1255         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1256         for 'mr.' to fast_compare.
1257         (bpermd_<mode>): Change type attr to popcnt.
1258         (p8_fmrgow_<mode>): New insns for power8 direct move support.
1259         (p8_mtvsrwz_1): Likewise.
1260         (p8_mtvsrwz_2): Likewise.
1261         (reload_fpr_from_gpr<mode>): Likewise.
1262         (p8_mtvsrd_1): Likewise.
1263         (p8_mtvsrd_2): Likewise.
1264         (p8_xxpermdi_<mode>): Likewise.
1265         (reload_vsx_from_gpr<mode>): Likewise.
1266         (reload_vsx_from_gprsf): Likewise.
1267         (p8_mfvsrd_3_<mode>): LIkewise.
1268         (reload_gpr_from_vsx<mode>): Likewise.
1269         (reload_gpr_from_vsxsf): Likewise.
1270         (p8_mfvsrd_4_disf): Likewise.
1271         (multi-word GPR splits): Do not split direct moves or quad memory
1272         operations.
1273
1274 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
1275
1276         * tree-into-ssa.c (interesting_blocks): Make static.
1277
1278 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
1279
1280         PR target/56564
1281         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1282         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1283         Use DATA_ABI_ALIGNMENT for that case instead if defined.
1284         (get_variable_align): New function.
1285         (get_variable_section, emit_bss, emit_common,
1286         assemble_variable_contents, place_block_symbol): Use
1287         get_variable_align instead of DECL_ALIGN.
1288         (assemble_noswitch_variable): Add align argument, use it
1289         instead of DECL_ALIGN.
1290         (assemble_variable): Adjust caller.  Use get_variable_align
1291         instead of DECL_ALIGN.
1292         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1293         caller.
1294         (DATA_ABI_ALIGNMENT): Define.
1295         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1296         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
1297         opt is false, only return the psABI mandated alignment increase.
1298         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1299         (DATA_ABI_ALIGNMENT): ... this.
1300         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1301         (DATA_ABI_ALIGNMENT): ... this.
1302         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1303         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1304         (DATA_ABI_ALIGNMENT): ... this.
1305         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1306         * doc/tm.texi: Regenerated.
1307
1308 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
1309
1310         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1311         cmp_code to construct REG_EQUAL note.
1312
1313 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
1314
1315         PR target/57568
1316         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1317         that operands[2] doesn't overlap with operands[0].
1318
1319 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
1320             Jan Hubicka  <jh@suse.cz>
1321
1322         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1323         hack to mark symbols as used.
1324
1325 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
1326
1327         PR rtl-optimization/57559
1328         * lra-constraints.c (process_alt_operands): Don't discourage
1329         memory with known offset for offsetable memory constraint.
1330         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1331
1332 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
1333
1334         * varasm.c (struct oc_local_state): Reorder fields.
1335         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1336         and adjust accordingly.
1337         (output_constructor): Reorder initialization code and adjust call to
1338         output_constructor_bitfield.
1339
1340 2013-06-07  Jan Hubicka  <jh@suse.cz>
1341
1342         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1343
1344 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
1345
1346         * tree-object-size.c (unknown): Make const.
1347
1348 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1349
1350         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1351         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1352         for last alternative in the cpu_facility attribute.
1353
1354 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1355
1356         PR target/56315
1357         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1358         (xordi3): Change operand 2 constraint to arm_xordi_operand.
1359         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1360         * config/arm/constraints.md (Dg): New constraint.
1361         * config/arm/neon.md (xordi3_neon): Remove.
1362         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1363         * config/arm/predicates.md (arm_xordi_operand): New predicate.
1364
1365 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1366
1367         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1368         Clean up alternatives.
1369
1370 2013-06-07  Alan Modra  <amodra@gmail.com>
1371
1372         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1373         va_list_gpr_size.
1374
1375 2013-06-07  Alan Modra  <amodra@gmail.com>
1376
1377         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1378
1379 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1380
1381         * config/arm/constraints.md (Df): New constraint.
1382         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1383         Correct length attribute for last two alternatives.
1384
1385 2013-06-07  Alan Modra  <amodra@gmail.com>
1386
1387         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1388         override user -mfp-in-toc.
1389         (offsettable_ok_by_alignment): Consider just the current access
1390         rather than the whole object, unless BLKmode.  Handle
1391         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1392         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1393         for -mcmodel=medium.
1394         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1395         override user -mfp-in-toc or -msum-in-toc.  Default to
1396         -mno-fp-in-toc for -mcmodel=medium.
1397
1398 2013-06-06  DJ Delorie  <dj@redhat.com>
1399
1400         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1401         TARGET_VALID_POINTER_MODE.
1402
1403 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1404             Pat Haugen <pthaugen@us.ibm.com>
1405             Peter Bergner <bergner@vnet.ibm.com>
1406
1407         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1408         Document new power8 builtins.
1409
1410         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1411         condition code register, to allow 128-bit logical operations to be
1412         done in the VSX or GPR registers.
1413         (nor<mode>3): Use the canonical form for nor.
1414         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1415         vclz*, and vpopcnt* vector instructions.
1416         (nand<mode>3): Likewise.
1417         (orc<mode>3): Likewise.
1418         (clz<mode>2): LIkewise.
1419         (popcount<mode>2): Likewise.
1420
1421         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1422         that only the GPRs are recognized.
1423
1424         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1425         support for new power8 builtins.
1426
1427         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1428         builtin functions.
1429         (xscvdpspn): Likewise.
1430         (vclz): Likewise.
1431         (vclzb): Likewise.
1432         (vclzh): Likewise.
1433         (vclzw): Likewise.
1434         (vclzd): Likewise.
1435         (vpopcnt): Likewise.
1436         (vpopcntb): Likewise.
1437         (vpopcnth): Likewise.
1438         (vpopcntw): Likewise.
1439         (vpopcntd): Likewise.
1440         (vgbbd): Likewise.
1441         (vmrgew): Likewise.
1442         (vmrgow): Likewise.
1443         (eqv): Likewise.
1444         (eqv_v16qi3): Likewise.
1445         (eqv_v8hi3): Likewise.
1446         (eqv_v4si3): Likewise.
1447         (eqv_v2di3): Likewise.
1448         (eqv_v4sf3): Likewise.
1449         (eqv_v2df3): Likewise.
1450         (nand): Likewise.
1451         (nand_v16qi3): Likewise.
1452         (nand_v8hi3): Likewise.
1453         (nand_v4si3): Likewise.
1454         (nand_v2di3): Likewise.
1455         (nand_v4sf3): Likewise.
1456         (nand_v2df3): Likewise.
1457         (orc): Likewise.
1458         (orc_v16qi3): Likewise.
1459         (orc_v8hi3): Likewise.
1460         (orc_v4si3): Likewise.
1461         (orc_v2di3): Likewise.
1462         (orc_v4sf3): Likewise.
1463         (orc_v2df3): Likewise.
1464
1465         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1466         allow power8 quad mode in 64-bit.
1467         (rs6000_builtin_vectorized_function): Add support to vectorize
1468         ISA 2.07 count leading zeros, population count builtins.
1469         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1470         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1471         (builtin_function_type): Add vgbbd builtin function which takes an
1472         unsigned argument.
1473         (altivec_expand_vec_perm_const): Add support for new power8 merge
1474         instructions.
1475
1476         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1477         that does not include TImdoe for use with 32-bit.
1478         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1479         instructions.
1480         (UNSPEC_VSX_CVDPSPN): Likewise.
1481         (vsx_xscvdpspn): Likewise.
1482         (vsx_xscvspdpn): Likewise.
1483         (vsx_xscvdpspn_scalar): Likewise.
1484         (vsx_xscvspdpn_directmove): Likewise.
1485         (vsx_and<mode>3): Split logical operations into 32-bit and
1486         64-bit. Add support to do logical operations on TImode as well as
1487         VSX vector types.  Allow logical operations to be done in either
1488         VSX registers or in general purpose registers in 64-bit mode.  Add
1489         splitters if GPRs were used. For AND, add clobber of CCmode to
1490         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
1491         encoding.
1492         (vsx_and<mode>3_32bit): Likewise.
1493         (vsx_and<mode>3_64bit): Likewise.
1494         (vsx_ior<mode>3): Likewise.
1495         (vsx_ior<mode>3_32bit): Likewise.
1496         (vsx_ior<mode>3_64bit): Likewise.
1497         (vsx_xor<mode>3): Likewise.
1498         (vsx_xor<mode>3_32bit): Likewise.
1499         (vsx_xor<mode>3_64bit): Likewise.
1500         (vsx_one_cmpl<mode>2): Likewise.
1501         (vsx_one_cmpl<mode>2_32bit): Likewise.
1502         (vsx_one_cmpl<mode>2_64bit): Likewise.
1503         (vsx_nor<mode>3): Likewise.
1504         (vsx_nor<mode>3_32bit): Likewise.
1505         (vsx_nor<mode>3_64bit): Likewise.
1506         (vsx_andc<mode>3): Likewise.
1507         (vsx_andc<mode>3_32bit): Likewise.
1508         (vsx_andc<mode>3_64bit): Likewise.
1509         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1510         and xxlorc instructions.
1511         (vsx_eqv<mode>3_64bit): Likewise.
1512         (vsx_nand<mode>3_32bit): Likewise.
1513         (vsx_nand<mode>3_64bit): Likewise.
1514         (vsx_orc<mode>3_32bit): Likewise.
1515         (vsx_orc<mode>3_64bit): Likewise.
1516
1517         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1518
1519         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1520         instruction.
1521         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1522         (p8_vmrgow): Likewise.
1523         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1524         GPRs to be split under VSX.
1525         (p8v_clz<mode>2): Add power8 count leading zero support.
1526         (p8v_popcount<mode>2): Add power8 population count support.
1527         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1528         support.
1529
1530         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1531         instruction.
1532
1533         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1534         builtin functions.
1535         (vec_nand): Likewise.
1536         (vec_vclz): Likewise.
1537         (vec_vclzb): Likewise.
1538         (vec_vclzd): Likewise.
1539         (vec_vclzh): Likewise.
1540         (vec_vclzw): Likewise.
1541         (vec_vgbbd): Likewise.
1542         (vec_vmrgew): Likewise.
1543         (vec_vmrgow): Likewise.
1544         (vec_vpopcnt): Likewise.
1545         (vec_vpopcntb): Likewise.
1546         (vec_vpopcntd): Likewise.
1547         (vec_vpopcnth): Likewise.
1548         (vec_vpopcntw): Likewise.
1549
1550 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1551
1552         PR rtl-optimization/57468
1553         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1554         spilled pseudos.
1555
1556 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1557
1558         PR rtl-optimization/57459
1559         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1560         type when setting live regs.
1561
1562 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1563
1564         * config/s390/s390.opt (mlra): New option.
1565         * config/s390/s390.c (s390_decompose_address): Check displacement
1566         for all registers for LRA.
1567         (s390_secondary_reload): Don't used secondary reloads for LRA.
1568         (s390_lra_p): New function.
1569         (TARGET_LRA_P): Define.
1570         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1571         of attribute cpu_facility to zarch for the last alternative.
1572         (*cmpmem_short): Ditto.
1573
1574 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
1575
1576         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1577         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
1578         (arm_expand_prologue): Likewise.
1579
1580 2013-06-06  Teresa Johnson  <tejohnson@google.com>
1581
1582         PR c++/53743
1583         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1584         as this is now done by redirect_edge_and_branch_force.
1585         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1586         barriers, and fix interaction with splitting.
1587         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1588         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1589         reflect changes made in the routine.
1590         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1591         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1592         since this is called in cfglayout mode, and replace partition fixup
1593         with assert as that is now done by force_nonfallthru_and_redirect.
1594         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1595         already be marked with region crossing note.
1596         (insert_section_boundary_note): Make non-static, gate on flag
1597         has_bb_partition, rewrite to also check for multiple partitions.
1598         (rest_of_handle_reorder_blocks): Remove call to
1599         insert_section_boundary_note, now done later during free_cfg.
1600         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1601         * bb-reorder.h (insert_section_boundary_note): Declare.
1602         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1603         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1604         invoke insert_section_boundary_note.
1605         (try_redirect_by_replacing_jump): Remove unnecessary
1606         check for region crossing note.
1607         (fixup_partition_crossing): New function.
1608         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1609         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1610         in non-cfglayout mode.
1611         (force_nonfallthru_and_redirect): Fixup partition boundaries,
1612         remove old code that tried to do this. Emit barrier correctly
1613         when we are in cfglayout mode.
1614         (last_bb_in_partition): New function.
1615         (rtl_split_edge): Correctly fixup partition boundaries.
1616         (commit_one_edge_insertion): Remove old code that tried to
1617         fixup region crossing edge since this is now handled in
1618         split_block, and set up insertion point correctly since
1619         block may now end in a jump.
1620         (verify_hot_cold_block_grouping): Guard against checking when not in
1621         linearized RTL mode.
1622         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1623         notes.
1624         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1625         rtl_verify_flow_info, so not called in cfglayout mode.
1626         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1627         (fixup_reorder_chain): Remove old code that attempted to fixup region
1628         crossing note as this is now handled in force_nonfallthru_and_redirect.
1629         (duplicate_insn_chain): Don't duplicate switch section notes.
1630         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1631         note.
1632         * basic-block.h (emit_barrier_after_bb): Declare.
1633
1634 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1635
1636         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1637         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1638         arm_usatsihi): Adjust alternatives for arm_restrict_it.
1639
1640 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1641
1642         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1643         where appropriate.
1644         * config/arm/ldmstm.md: Regenerate.
1645
1646 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1647
1648         * config/arm/sync.md (atomic_loaddi_1):
1649         Disable predication for arm_restrict_it.
1650         (arm_load_exclusive<mode>): Likewise.
1651         (arm_load_exclusivesi): Likewise.
1652         (arm_load_exclusivedi): Likewise.
1653         (arm_load_acquire_exclusive<mode>): Likewise.
1654         (arm_load_acquire_exclusivesi): Likewise.
1655         (arm_load_acquire_exclusivedi): Likewise.
1656         (arm_store_exclusive<mode>): Likewise.
1657         (arm_store_exclusive<mode>): Likewise.
1658         (arm_store_release_exclusivedi): Likewise.
1659         (arm_store_release_exclusive<mode>): Likewise.
1660
1661 2013-06-06  Richard Biener  <rguenther@suse.de>
1662
1663         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1664         after LTO_null.
1665         (lto_tag_is_tree_code_p): Adjust.
1666         (lto_tag_is_gimple_code_p): Likewise.
1667         (lto_gimple_code_to_tag): Likewise.
1668         (lto_tag_to_gimple_code): Likewise.
1669         (lto_tree_code_to_tag): Likewise.
1670         (lto_tag_to_tree_code): Likewise.
1671         * data-streamer.h (streamer_write_hwi_in_range): Use
1672         uhwi streaming to stream the normalized range.
1673         (streamer_read_hwi_in_range): Likewise.
1674
1675 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1676
1677         * config/arm/arm.md (enabled_for_depr_it): New attribute.
1678         (predicable_short_it): Likewise.
1679         (predicated): Likewise.
1680         (enabled): Handle above.
1681         (define_cond_exec): Set predicated attribute to yes.
1682
1683 2013-06-05  Mike Stump  <mikestump@comcast.net>
1684
1685         * gdbinit.in (__FUNCTION__): Add.
1686
1687 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
1688
1689         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1690         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1691
1692 2013-06-05  Jan Hubicka  <jh@suse.cz>
1693
1694         * varasm.c (mark_decl_referenced): Revert the removal until targets
1695         are fixed.
1696
1697 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
1698
1699         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1700         instead of mark_decl_referenced.
1701
1702 2013-06-05  Jan Hubicka  <jh@suse.cz>
1703
1704         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1705         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1706         and symtab_used_from_object_file_p.
1707         (cgraph_make_node_local_1): Clear forced_by_abi.
1708         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1709         * cgraph.h (symtab_node_base): Add forced_by_abi.
1710         (decide_is_variable_needed): Remove.
1711         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1712         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1713         (decide_is_symbol_needed): ... this one; handle symbols in general;
1714         always analyze virtuals; honnor forced_by_abi.
1715         (cgraph_finalize_function): Update.
1716         (varpool_finalize_decl): Update.
1717         (symbol_defined_and_needed): Remove.
1718         (analyze_functions): Update.
1719         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1720         output_refs, input_overwrite_node): Handle forced_by_abi.
1721         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1722         (address_taken_from_non_vtable_p): ... this one.
1723         (comdat_can_be_unshared_p_1): New function.
1724         (cgraph_comdat_can_be_unshared_p): Rename to ...
1725         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1726         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1727         (function_and_variable_visibility): Clear forced_by_abi as needed.
1728         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1729         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1730         * symtab.c (dump_symtab_base): Dump forced_by_abi.
1731         * varpool.c (decide_is_variable_needed): Remove.
1732
1733 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1734
1735         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1736         (arm_option_override): Override arm_restrict_it where appropriate.
1737         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1738         * config/arm/arm.opt (mrestrict-it): New command-line option.
1739         * doc/invoke.texi: Document -mrestrict-it.
1740
1741 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1742
1743         * tsan.c (tsan_atomic_table): Make const.
1744
1745 2013-06-05  Richard Biener  <rguenther@suse.de>
1746
1747         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1748         index associated with the tree we are supposed to replace.
1749         * tree-streamer-out.c (pack_ts_base_value_fields): Output
1750         TREE_ASM_WRITTEN as zero for everything but SSA names.
1751
1752 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1753
1754         * tree-ssa-structalias.c (call_stmt_vars): Make static.
1755
1756 2013-06-04  Jan Hubicka  <jh@suse.cz>
1757
1758         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1759         (input_node, input_varpool_node): Handle correctly external same
1760         body aliases.
1761         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1762         nodes at ltrans stage.
1763
1764 2013-06-04  Jan Hubicka  <jh@suse.cz>
1765
1766         * ipa-inline.c (update_caller_keys): Fix availability test.
1767         (update_callee_keys): Likewise.
1768         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1769         to follow ELF standard.
1770
1771 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
1772
1773         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1774         (mips64r5900el-*-elf*): New configurations.
1775         * config/mips/mips-cpus.def (r5900): New processor.
1776         * config/mips/mips-tables.opt: Regenerate.
1777         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1778         (mips_issue_rate): Handle PROCESSOR_R5900.
1779         (mips_reorg_process_insns): Force reorder mode for the R5900.
1780         * config/mips/mips.h (TARGET_MIPS5900): Define.
1781         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1782         TARGET_MIPS5900.
1783         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1784         TARGET_MIPS5900.
1785         * config/mips/mips.md (processor): Add r5900.
1786         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1787
1788 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1789
1790         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1791         into function to generate MOVI instruction.
1792         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1793         (aarch64_preferred_simd_mode): Turn into wrapper.
1794         (aarch64_output_scalar_simd_mov_immediate): New function.
1795         * config/aarch64/aarch64-protos.h: Add prototype for above.
1796
1797 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1798
1799         * config/aarch64/aarch64.c (simd_immediate_info): Remove
1800         element_char member.
1801         (sizetochar): Return signed char.
1802         (aarch64_simd_valid_immediate): Remove elchar and other
1803         unnecessary variables.
1804         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1805         Calculate element_char as required.
1806         * config/aarch64/aarch64-protos.h: Update and move prototype
1807         for aarch64_output_simd_mov_immediate.
1808         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1809         Update arguments.
1810
1811 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1812
1813         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1814         information completed by aarch64_simd_valid_immediate.
1815         (aarch64_legitimate_constant_p): Update arguments.
1816         (aarch64_simd_valid_immediate): Work with struct rather than many
1817         pointers.
1818         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1819         (aarch64_simd_make_constant): Update arguments.
1820         (aarch64_output_simd_mov_immediate): Work with struct rather than
1821         many pointers.  Output immediate directly rather than as operand.
1822         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1823         Update prototype.
1824         * config/aarch64/constraints.md (Dn): Update arguments.
1825
1826 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1827
1828         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1829         longer static.
1830         (aarch64_simd_immediate_valid_for_move): Remove.
1831         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1832         (aarch64_simd_make_constant): Update call.
1833         (aarch64_output_simd_mov_immediate): Update call.
1834         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1835         Add prototype.
1836         * config/aarch64/constraints.md (Dn): Update call.
1837
1838 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1839
1840         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1841         return type to bool for prototype.
1842         (aarch64_legitimate_constant_p): Check for true instead of not -1.
1843         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1844         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1845
1846 2013-06-04  Catherine Moore  <clm@codesourcery.com>
1847
1848         * config/mips/mips.opt (meva): New.
1849         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1850         (ASM_SPEC): Handle -meva.
1851         * doc/invoke.texi (meva):  Document.
1852
1853 2013-06-04  Alan Modra  <amodra@gmail.com>
1854
1855         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1856         constant output.
1857
1858 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1859
1860         * rtl.def: Add extra fourth optional field to define_cond_exec.
1861         * gensupport.c (process_one_cond_exec): Process attributes from
1862         define_cond_exec.
1863         * doc/md.texi: Document fourth field in define_cond_exec.
1864
1865 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
1866
1867         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1868         out the processing order as in store_bit_field_1.
1869
1870 2013-06-04  Jan Hubicka  <jh@suse.cz>
1871
1872         PR middle-end/57500
1873         * cgraphunit.c (cgraph_process_same_body_aliases): Create
1874         non-VAR_DECL node if it does not exist yet.
1875
1876 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
1877
1878         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1879         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1880         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1881         target_cpu_default setting.
1882
1883 2013-06-03  Teresa Johnson  <tejohnson@google.com>
1884
1885         * dumpfile.c (opt_info_switch_p): Change -fopt-info
1886         default to -fopt-info=optimized instead of all.
1887         * doc/invoke.texi: Ditto.
1888         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1889         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1890         (execute_vect_slp): Emit BB vectorization success under
1891         MSG_OPTIMIZED_LOCATIONS.
1892         * tree-vect-slp.c (vect_slp_transform_bb): Change
1893         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1894         * tree-vect-loop.c (vect_transform_loop): Ditto.
1895
1896 2013-06-03  Jason Merrill  <jason@redhat.com>
1897
1898         PR c++/57415
1899         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1900         Use TARGET_EXPR for C++.
1901
1902 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
1903
1904         PR rtl-optimization/57268
1905         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1906         if DEBUG_INSN_P (insn).
1907
1908         Reapply
1909         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
1910
1911         PR rtl-optimization/57268
1912         * sched-deps.c (sched_analyze_2): Flush dependence lists if
1913         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1914
1915 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
1916
1917         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1918         (ix86_avoid_lea_for_addr): Likewise.
1919         (exact_dependency_1): Likewise.
1920         (ix86_adjust_cost): Likewise.
1921         (swap_top_of_ready_list): Fix formatting and !reload_completed check
1922         removed.
1923         (do_reorder_for_imul): Fix typo, formatting and
1924         !reload_completed check removed.
1925         (ix86_sched_reorder): Fix typo and formatting.
1926         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1927         list.
1928
1929 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
1930
1931         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1932
1933 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1934
1935         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1936         <STRING_CST>: Likewise.
1937         <VECTOR_CST>: Likewise.
1938
1939 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
1940             Mikael Morin  <mikael@gcc.gnu.org>
1941
1942         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1943         * config.in: Regenerated.
1944         * configure: Regenerated.
1945
1946 2013-06-01  Jan Hubicka  <jh@suse.cz>
1947
1948         PR middle-end/57366
1949         * cgraphunit.c (compile): When weakref is not supported,
1950         set up transparent aliases before final output pass.
1951         * varasm.c (assemble_alias): Do not try to do it here.
1952
1953 2013-06-01  Jan Hubicka  <jh@suse.cz>
1954
1955         PR middle-end/57467
1956         * passes.c (for_per_function): Skip unanalyzed functions.
1957
1958 2013-06-01  Jan Hubicka  <jh@suse.cz>
1959
1960         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1961         (lto_symtab_merge_symbols_1): ... this one.
1962         (lto_symtab_merge_cgraph_nodes): Rename to ...
1963         (lto_symtab_merge_symbols): ... this one; simplify.
1964         * cgraph.c (same_body_aliases_done): Rename to ...
1965         (cpp_implicit_aliases_done): ... this one.
1966         (cgraph_create_function_alias): Update.
1967         (cgraph_same_body_alias): Update.
1968         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
1969         (verify_edge_corresponds_to_fndecl): Simplify.
1970         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
1971         (cgraph_node): Remove same_body_alias.
1972         (varpool_node): Remove alias_of and extra_name_alias.
1973         (same_body_aliases_done): Rename to ..
1974         (cpp_implicit_aliases_done): ... this one.
1975         (symtab_alias_ultimate_target): Add default parameter.
1976         (symtab_resolve_alias): New function.
1977         (fixup_same_cpp_alias_visibility): Declare.
1978         (cgraph_function_node): Add default parameter.
1979         (cgraph_node_asm_name): Likewise.
1980         (cgraph_function_or_thunk_node): Add default parameter; do
1981         not ICE when it is NULL.
1982         (varpool_variable_node): Likewise.
1983         * tree-emutls.c (create_emultls_var): Update.
1984         (ipa_lower_emutls): Update.
1985         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1986         (cgraph_reset_node): Reset alias info.
1987         (cgraph_finalize_function): Update.
1988         (fixup_same_cpp_alias_visibility): Move to symtab.c.
1989         (analyze_function): Simplify.
1990         (cgraph_process_same_body_aliases): Simplify.
1991         (analyze_functions): Fixup same body aliases.
1992         (handle_alias_pairs): Simplify.
1993         (assemble_thunk): Update.
1994         (assemble_thunks_and_aliases): Update.
1995         (output_weakrefs): Rewrite.
1996         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1997         (lto_output_varpool_node): Likewise.
1998         (compute_ltrans_boundary): Remve assert.
1999         (get_alias_symbol): New functoin.
2000         (input_node): Rewrite alias handling.
2001         (input_varpool_node): Likewise.
2002         * ipa-pure-const.c (propagate_pure_const): Fix formating.
2003         * ipa.c (process_references): Handle weakrefs correctly.
2004         (symtab_remove_unreachable_nodes): Likewise.
2005         * trans-mem.c (get_cg_data): Update.
2006         (ipa_tm_create_version_alias): Update.
2007         (ipa_tm_execute): Update.
2008         * symtab.c (dump_symtab_base): Dump aliases.
2009         (verify_symtab_base): Verify aliases.
2010         (symtab_node_availability): New function.
2011         (symtab_alias_ultimate_target): Simplify.
2012         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2013         handle all the fixup cases.
2014         (symtab_resolve_alias): New function.
2015         * passes.c (ipa_write_summaries): Handle weakrefs.
2016         * varpool.c (varpool_analyze_node): Simplify.
2017         (assemble_aliases): Update.
2018         (varpool_create_variable_alias): Simplify.
2019         (varpool_extra_name_alias): Simplify.
2020         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2021         (lto_symtab_merge_symbols): ... this one.
2022
2023 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
2024
2025         Revert
2026         PR rtl-optimization/57268
2027         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2028         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2029
2030 2013-06-01  Tobias Burnus  <burnus@net-b.de>
2031
2032         Partially reverted:
2033         2013-05-31  Tobias Burnus  <burnus@net-b.de>
2034
2035         PR middle-end/57073
2036         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2037         further up.
2038
2039 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2040
2041         PR rtl-optimization/57268
2042         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2043         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2044
2045 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2046
2047         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2048         unordered comparison operators when -fno-trapping-math is in effect
2049         on the e500.
2050         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2051         and implement unordered comparison operators properly on the e500.
2052
2053 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2054
2055         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2056         for constant scalar integers.
2057         (simplify_relational_operation_1): Likewise.
2058
2059 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
2060
2061         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2062         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
2063         Fix comment.
2064
2065 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2066             Igor Zamyatin  <igor.zamyatin@intel.com>
2067
2068         Silvermont (SLM) architecture performance tuning.
2069         * config/i386/i386.h (enum ix86_tune_indices): Add
2070         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2071         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2072
2073         * config/i386/i386.c (initial_ix86_tune_features)
2074         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2075         (ix86_lea_outperforms): Handle Silvermont tuning.
2076         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2077         call.
2078         (ix86_use_lea_for_mov): Likewise.
2079         (ix86_avoid_lea_for_addr): Likewise.
2080         (ix86_lea_for_add_ok): Likewise.
2081         (exact_dependency_1): New function.
2082         (exact_store_load_dependency): Likewise.
2083         (ix86_adjust_cost): Handle Silvermont tuning.
2084         (do_reoder_for_imul): Likewise.
2085         (swap_top_of_ready_list): New function.
2086         (ix86_sched_reorder): Changed to handle Silvermont tuning.
2087
2088         * config/i386/i386.md (peepholes that split memory operand in fp
2089         converts): New.
2090
2091 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2092
2093         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2094         Remove un-necessary braces.
2095
2096 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2097
2098         * config/aarch64/aarch64.c (aarch64_classify_symbol):
2099         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2100
2101 2013-05-31  Tobias Burnus  <burnus@net-b.de>
2102
2103         PR middle-end/57073
2104         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2105
2106 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2107
2108         PR target/56315
2109         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2110         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2111         * config/arm/neon.md (iordi3_neon): Remove.
2112         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2113         * config/arm/predicates.md (imm_for_neon_logic_operand):
2114         Move to earlier in the file.
2115         (neon_logic_op2): Likewise.
2116         (arm_iordi_operand_neon): New predicate.
2117
2118 2013-05-31  Richard Biener  <rguenther@suse.de>
2119
2120         PR tree-optimization/57478
2121         PR tree-optimization/57453
2122         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2123         are life as well.
2124
2125 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2126
2127         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2128         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2129
2130 2013-05-30  Tobias Burnus  <burnus@net-b.de>
2131             Thomas Koenig  <tkoenig@gcc.gnu.org>
2132
2133         PR middle-end/57073
2134         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2135         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2136
2137 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
2138
2139         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2140
2141 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
2142
2143         * target.def (register_usage_leveling_p): New hook.
2144         * targhooks.c (default_register_usage_leveling_p): New.
2145         * targhooks.h (default_register_usage_leveling_p): New prototype.
2146         * lra-assigns.c (register_usage_leveling_p): Use the hook.
2147         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2148         * doc/tm.texi: Update.
2149         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2150
2151 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
2152
2153         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2154         (*insv_reg<mode>): New define_insn.
2155
2156 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
2157
2158         PR rtl-optimization/57439
2159         * postreload.c (move2add_valid_value_p): Check that we have
2160         a zero subreg_regno_offset when accessing the register in
2161         the requested mode.
2162
2163 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2164             Igor Zamyatin  <igor.zamyatin@intel.com>
2165
2166         Silvermont (SLM) architecture pipeline model, tuning and
2167         insn selection.
2168         * config.gcc: Add slm config options and target.
2169
2170         * config/i386/slm.md: New.
2171
2172         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2173
2174         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
2175         PROCESSOR_SLM.
2176         (ix86_target_macros_internal): Likewise.
2177
2178         * gcc/config/i386/i386.c (slm_cost): New cost.
2179         (m_SLM): New macro flag.
2180         (initial_ix86_tune_features): Set m_SLM.
2181         (x86_accumulate_outgoing_args): Likewise.
2182         (x86_arch_always_fancy_math_387): Likewise.
2183         (processor_target_table): Add slm cost.
2184         (cpu_names): Add slm cpu name.
2185         (x86_option_override_internal): Set SLM ISA.
2186         (ix86_issue_rate): New case PROCESSOR_SLM.
2187         (ia32_multipass_dfa_lookahead): Likewise.
2188         (fold_builtin_cpu): Add slm.
2189
2190         * config/i386/i386.h (TARGET_SLM): New target macro.
2191         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2192         (processor_type): Add PROCESSOR_SLM.
2193
2194         * config/i386/i386.md (cpu): Add new value "slm".
2195         (slm.md): Include slm.md.
2196
2197 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
2198             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2199
2200         * config/arm/arm-protos.h: Add and update function protos.
2201         * config/arm/arm.c (use_simple_return_p): New added.
2202         (thumb2_expand_return): Check simple_return flag.
2203         * config/arm/arm.md: Add simple_return and conditional simple_return.
2204         * config/arm/iterators.md: Add iterator for return and simple_return.
2205
2206 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2207
2208         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2209         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2210         (arm_emit_vfp_multi_reg_pop): Likewise.
2211         (thumb2_emit_ldrd_pop): Likewise.
2212         (arm_expand_epilogue): Add misc REG_CFA notes.
2213         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2214
2215 2013-05-29  Lawrence Crowl  <crowl@google.com>
2216
2217         * config/arm/t-arm: Update for below.
2218
2219         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2220         Change type to hash_table.  Update dependent calls and types.
2221
2222         * config/i386/t-cygming: Update for below.
2223
2224         * config/i386/t-interix: Update for below.
2225
2226         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2227         Change type to hash_table.  Update dependent calls and types.
2228         (i386_find_on_wrapper_list::wrappers): Likewise.
2229
2230         * config/ia64/t-ia64: Update for below.
2231
2232         * config/ia64/ia64.c (bundle_state_table):
2233         Change type to hash_table.  Update dependent calls and types.
2234
2235         * config/mips/mips.c (mips_reorg_process_insns::htab):
2236         Change type to hash_table.  Update dependent calls and types.
2237
2238         * config/sol2.c (solaris_comdat_htab):
2239         Change type to hash_table.  Update dependent calls and types.
2240
2241         * config/t-sol2: Update for above.
2242
2243 2013-05-29  Teresa Johnson  <tejohnson@google.com>
2244
2245         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2246         functions are not yet marked as defined.
2247
2248 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2249             Pat Haugen <pthaugen@us.ibm.com>
2250             Peter Bergner <bergner@vnet.ibm.com>
2251
2252         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2253         instructions.
2254         (VEC_A): Likewise.
2255         (VEC_C): Likewise.
2256         (vrotl<mode>3): Likewise.
2257         (vashl<mode>3): Likewise.
2258         (vlshr<mode>3): Likewise.
2259         (vashr<mode>3): Likewise.
2260
2261         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2262         support for power8 V2DI builtins.
2263
2264         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2265         power8 V2DI builtins.
2266         (vupkhsw): Likewise.
2267         (vupklsw): Likewise.
2268         (vaddudm): Likewise.
2269         (vminsd): Likewise.
2270         (vmaxsd): Likewise.
2271         (vminud): Likewise.
2272         (vmaxud): Likewise.
2273         (vpkudum): Likewise.
2274         (vpksdss): Likewise.
2275         (vpkudus): Likewise.
2276         (vpksdus): Likewise.
2277         (vrld): Likewise.
2278         (vsld): Likewise.
2279         (vsrd): Likewise.
2280         (vsrad): Likewise.
2281         (vsubudm): Likewise.
2282         (vcmpequd): Likewise.
2283         (vcmpgtsd): Likewise.
2284         (vcmpgtud): Likewise.
2285         (vcmpequd_p): Likewise.
2286         (vcmpgtsd_p): Likewise.
2287         (vcmpgtud_p): Likewise.
2288         (vupkhsw): Likewise.
2289         (vupklsw): Likewise.
2290         (vaddudm): Likewise.
2291         (vmaxsd): Likewise.
2292         (vmaxud): Likewise.
2293         (vminsd): Likewise.
2294         (vminud): Likewise.
2295         (vpksdss): Likewise.
2296         (vpksdus): Likewise.
2297         (vpkudum): Likewise.
2298         (vpkudus): Likewise.
2299         (vrld): Likewise.
2300         (vsld): Likewise.
2301         (vsrad): Likewise.
2302         (vsrd): Likewise.
2303         (vsubudm): Likewise.
2304
2305         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2306         support for power8 V2DI instructions.
2307
2308         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2309         power8 V2DI instructions.  Combine pack and unpack insns to use an
2310         iterator for each mode.  Check whether a particular mode supports
2311         Altivec instructions instead of just checking TARGET_ALTIVEC.
2312         (UNSPEC_VPKUWUM): Likewise.
2313         (UNSPEC_VPKSHSS): Likewise.
2314         (UNSPEC_VPKSWSS): Likewise.
2315         (UNSPEC_VPKUHUS): Likewise.
2316         (UNSPEC_VPKSHUS): Likewise.
2317         (UNSPEC_VPKUWUS): Likewise.
2318         (UNSPEC_VPKSWUS): Likewise.
2319         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2320         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2321         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2322         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2323         (UNSPEC_VUPKHSB): Likewise.
2324         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2325         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2326         (UNSPEC_VUPKHSH): Likewise.
2327         (UNSPEC_VUPKLSB): Likewise.
2328         (UNSPEC_VUPKLSH): Likewise.
2329         (VI2): Likewise.
2330         (VI_char): Likewise.
2331         (VI_scalar): Likewise.
2332         (VI_unit): Likewise.
2333         (VP): Likewise.
2334         (VP_small): Likewise.
2335         (VP_small_lc): Likewise.
2336         (VU_char): Likewise.
2337         (add<mode>3): Likewise.
2338         (altivec_vaddcuw): Likewise.
2339         (altivec_vaddu<VI_char>s): Likewise.
2340         (altivec_vadds<VI_char>s): Likewise.
2341         (sub<mode>3): Likewise.
2342         (altivec_vsubcuw): Likewise.
2343         (altivec_vsubu<VI_char>s): Likewise.
2344         (altivec_vsubs<VI_char>s): Likewise.
2345         (altivec_vavgs<VI_char>): Likewise.
2346         (altivec_vcmpbfp): Likewise.
2347         (altivec_eq<mode>): Likewise.
2348         (altivec_gt<mode>): Likewise.
2349         (altivec_gtu<mode>): Likewise.
2350         (umax<mode>3): Likewise.
2351         (smax<mode>3): Likewise.
2352         (umin<mode>3): Likewise.
2353         (smin<mode>3): Likewise.
2354         (altivec_vpkuhum): Likewise.
2355         (altivec_vpkuwum): Likewise.
2356         (altivec_vpkshss): Likewise.
2357         (altivec_vpkswss): Likewise.
2358         (altivec_vpkuhus): Likewise.
2359         (altivec_vpkshus): Likewise.
2360         (altivec_vpkuwus): Likewise.
2361         (altivec_vpkswus): Likewise.
2362         (altivec_vpks<VI_char>ss): Likewise.
2363         (altivec_vpks<VI_char>us): Likewise.
2364         (altivec_vpku<VI_char>us): Likewise.
2365         (altivec_vpku<VI_char>um): Likewise.
2366         (altivec_vrl<VI_char>): Likewise.
2367         (altivec_vsl<VI_char>): Likewise.
2368         (altivec_vsr<VI_char>): Likewise.
2369         (altivec_vsra<VI_char>): Likewise.
2370         (altivec_vsldoi_<mode>): Likewise.
2371         (altivec_vupkhsb): Likewise.
2372         (altivec_vupkhs<VU_char>): Likewise.
2373         (altivec_vupkls<VU_char>): Likewise.
2374         (altivec_vupkhsh): Likewise.
2375         (altivec_vupklsb): Likewise.
2376         (altivec_vupklsh): Likewise.
2377         (altivec_vcmpequ<VI_char>_p): Likewise.
2378         (altivec_vcmpgts<VI_char>_p): Likewise.
2379         (altivec_vcmpgtu<VI_char>_p): Likewise.
2380         (abs<mode>2): Likewise.
2381         (vec_unpacks_hi_v16qi): Likewise.
2382         (vec_unpacks_hi_v8hi): Likewise.
2383         (vec_unpacks_lo_v16qi): Likewise.
2384         (vec_unpacks_hi_<VP_small_lc>): Likewise.
2385         (vec_unpacks_lo_v8hi): Likewise.
2386         (vec_unpacks_lo_<VP_small_lc>): Likewise.
2387         (vec_pack_trunc_v8h): Likewise.
2388         (vec_pack_trunc_v4si): Likewise.
2389         (vec_pack_trunc_<mode>): Likewise.
2390
2391         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2392         V2DI builtins.
2393         (vec_vmaxsd): Likewise.
2394         (vec_vmaxud): Likewise.
2395         (vec_vminsd): Likewise.
2396         (vec_vminud): Likewise.
2397         (vec_vpksdss): Likewise.
2398         (vec_vpksdus): Likewise.
2399         (vec_vpkudum): Likewise.
2400         (vec_vpkudus): Likewise.
2401         (vec_vrld): Likewise.
2402         (vec_vsld): Likewise.
2403         (vec_vsrad): Likewise.
2404         (vec_vsrd): Likewise.
2405         (vec_vsubudm): Likewise.
2406         (vec_vupkhsw): Likewise.
2407         (vec_vupklsw): Likewise.
2408
2409 2013-05-29  Jan Hubicka  <jh@suse.cz>
2410
2411         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2412         flags; reorder rest of fields in more consistent way.
2413         (varpool_node): Remove analyzed, finalized and alias.
2414         (cgraph_ndoe): Likewise.
2415         (symtab_alias_ultimate_target): New function.
2416         (cgraph_function_node): Move offline.
2417         (cgraph_reset_node): Declare.
2418         (cgraph_comdat_can_be_unshared_p): Remove.
2419         (varpool_remove_initializer): Declare.
2420         (varpool_first_defined_variable, varpool_next_defined_variable
2421         cgraph_first_defined_function, cgraph_next_defined_function): Update.
2422         (cgraph_function_with_gimple_body_p): Update.
2423         (varpool_all_refs_explicit_p): Update.
2424         (symtab_alias_target): New function.
2425         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2426         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
2427         (cgraph_function_or_thunk_node): Simplify using
2428         symtab_alias_ultimate_target.
2429         (varpool_variable_node): Likewise.
2430         * cgraph.c (cgraph_create_function_alias): Update.
2431         (cgraph_add_thunk): Update.
2432         (cgraph_remove_node): Update.
2433         (dump_cgraph_node): Do not dump removed flags.
2434         (cgraph_function_body_availability): Update.
2435         (cgraph_propagate_frequency): Update.
2436         (verify_cgraph_node): Check sanity of local flag.
2437         (cgraph_function_node): Move here from cgraph.h; revamp for
2438         cgraph_function_or_thunk_node.
2439         * lto-symtab.c (lto_varpool_replace_node): Update.
2440         (lto_symtab_resolve_can_prevail_p): Update.
2441         (lto_symtab_merge_cgraph_nodes): Update.
2442         * ipa-cp.c (determine_versionability, initialize_node_lattices,
2443         propagate_constants_accross_call, devirtualization_time_bonus,
2444         ipcp_propagate_stage): Update.
2445         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
2446         * ipa-inline-transform.c (clone_inlined_nodes,
2447         preserve_function_body_p): Update.
2448         * ipa-reference.c (propagate): Update.
2449         (write_node_summary_p): Update.
2450         * toplev.c (wrapup_global_declaration_2): Update.
2451         * cgraphunit.c (cgraph_analyze_function): Rename to ...
2452         (analyze_function) ... this one.
2453         (cgraph_process_new_functions): Update.
2454         (cgraph_reset_node): Export.
2455         (cgraph_finalize_function): Update.
2456         (cgraph_add_new_function): Update.
2457         (process_function_and_variable_attributes): Update.
2458         (varpool_finalize_decl): Update.
2459         (symbol_finalized): Remove.
2460         (symbol_finalized_and_needed): Rename to ...
2461         (symbol_defined_and_needed): ... update.
2462         (cgraph_analyze_functions): Update.
2463         (handle_alias_pairs): Update.
2464         (mark_functions_to_output): Update.
2465         (assemble_thunk): Update.
2466         (output_in_order): Update.
2467         (output_weakrefs): Update.
2468         (finalize_compilation_unit): Update.
2469         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2470         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2471         input_node, input_varpool_node): Update.
2472         * dbxout.c (dbxout_expand_expr): Update.
2473         * cgraphclones.c (cgraph_clone_node): Update.
2474         (cgraph_copy_node_for_versioning): Update.
2475         (cgraph_materialize_clone): Update.
2476         (cgraph_materialize_all_clones): Update.
2477         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2478         propagate_pure_const, propagate_nothrow): Update.
2479         * lto-streamer-out.c (lto_output, write_symbol): Update.
2480         * ipa-utils.c (ipa_reverse_postorder): Update.
2481         * ipa-inline.c (can_inline_edge_p): Update.
2482         (update_caller_keys, ipa_inline): Update.
2483         * dwarf2out.c (reference_to_unused,
2484         premark_types_used_by_global_vars_helper): Update.
2485         * tree-eh.c (tree_could_trap_p): Update.
2486         * ipa-split.c (consider_split, execute_split_functions): Update.
2487         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
2488         has_addr_references_p): Update; move ahead in file for better
2489         readability.
2490         (process_references): Simplify.
2491         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2492         bodies are removed.
2493         (cgraph_comdat_can_be_unshared_p): Make static.
2494         (cgraph_externally_visible_p): Update.
2495         (varpool_externally_visible_p): Update.
2496         (function_and_variable_visibility): Update.
2497         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2498         ipa_tm_mark_force_output_node): Update.
2499         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2500         estimate_edge_devirt_benefit, inline_generate_summary,
2501         inline_write_summary): Update.
2502         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2503         * ipa-prop.c (ipa_compute_jump_functions): Update.
2504         (ipa_print_node_params, ipa_prop_read_section,
2505         ipa_update_after_lto_read, read_replacements_section): Update.
2506         * varasm.c (mark_decl_referenced): Update.
2507         (assemble_alias, dump_tm_clone_pairs): Update.
2508         * tree-inline.c (copy_bb): Update.
2509         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2510         Update.
2511         * symtab.c (dump_symtab_base): Print new flags.
2512         (verify_symtab_base): Verify new flags.
2513         (symtab_alias_ultimate_target): New function.
2514         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2515         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2516         Update.
2517         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2518         Update.
2519         * i386.c (ix86_get_function_versions_dispatcher,
2520         ix86_generate_version_dispatcher_body): Update.
2521         (fold_builtin_cpu): Use varpool_add_new_variable.
2522         * varpool.c (varpool_remove_initializer): Break out from ...
2523         (varpool_remove_node): ... this one.
2524         (dump_varpool_node, varpool_node_for_asm,
2525         cgraph_variable_initializer_availability, varpool_analyze_node,
2526         varpool_assemble_decl, varpool_remove_unreferenced_decls,
2527         varpool_finalize_named_section_flags, varpool_create_variable_alias):
2528         Update.
2529
2530 2013-05-29  Jan Hubicka  <jh@suse.cz>
2531
2532         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2533
2534 2013-05-29  Easwaran Raman  <eraman@google.com>
2535
2536         PR tree-optimization/57442
2537         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2538         when control exits the main loop.
2539
2540 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
2541
2542         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2543         and RX600.
2544         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
2545         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2546         * rx/t-rx: Add rx100 under multi library matches option for nofpu
2547         option.
2548
2549 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2550
2551         PR tree-optimization/57441
2552         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2553         Don't limit size of incr_vec to number of candidates.
2554
2555 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
2556
2557         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2558         and mips16 directories.
2559         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2560         (MULTILIB_DIRNAMES): Ditto.
2561         (MULTILIB_EXCEPTIONS): Add new exceptions.
2562         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2563         (MULTILIB_DIRNAMES): Ditto.
2564         (MULTILIB_EXCEPTIONS): Add new exceptions.
2565
2566 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2567             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2568
2569         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2570         SYMBOL_TINY_ABSOLUTE.
2571         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2572         SYMBOL_TINY_ABSOLUTE.
2573         (aarch64_expand_mov_immediate): Likewise.
2574         (aarch64_classify_symbol): Likewise.
2575         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2576         Permit SYMBOL_TINY_ABSOLUTE.
2577         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2578
2579 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2580             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2581
2582         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2583         Refactor if/switch.  Replace gcc_assert with if.
2584
2585 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2586
2587         * config/i386/i386.c (initial_ix86_tune_features): Enable
2588         FP Reassociation for AMD bdver1 and bdver2.
2589
2590 2013-05-29  Martin Jambor  <mjambor@suse.cz>
2591
2592         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2593         and IMAGPART_EXPR do not occur within other handled_components.
2594
2595 2013-05-29  Richard Biener  <rguenther@suse.de>
2596
2597         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2598         access on whether the use is in the BB we currently try to
2599         vectorize.
2600         (vect_bb_vectorization_profitable_p): Pass the BB we currently
2601         vectorize to vect_bb_slp_scalar_cost.
2602
2603 2013-05-29  Richard Biener  <rguenther@suse.de>
2604
2605         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2606         computing scalar cost offsetted by stmts that are kept live
2607         by scalar uses.
2608         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2609         for computation of scalar cost.
2610
2611 2013-05-28  Steve Ellcey  <sellcey@mips.com>
2612
2613         * config/mips/mips-cpus.def (mips32r2): Change processor type.
2614
2615 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2616
2617         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2618         array notation built-in reduction functions.
2619         * doc/passes.texi (Passes): Added documentation about changes done
2620         for Cilk Plus.
2621         * doc/invoke.texi (C Dialect Options): Added documentation about
2622         the -fcilkplus flag.
2623         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2624         (BUILTINS_DEF): Depend on cilkplus.def.
2625         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
2626         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2627         * cilkplus.def: New file.
2628
2629 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
2630
2631         PR rtl-optimization/57439
2632         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2633
2634 2013-05-28  Easwaran Raman  <eraman@google.com>
2635
2636         PR tree-optimization/57337
2637         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2638         (find_insert_point): Correctly identify the insertion point
2639         when two statements with the same UID is compared.
2640
2641 2013-05-28  Richard Biener  <rguenther@suse.de>
2642
2643         PR tree-optimization/56787
2644         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2645         from the list of data references.
2646         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2647         clobbers.
2648         (vect_analyze_loop_operations): Likewise.
2649         (vect_transform_loop): Remove clobbers.
2650
2651 2013-05-28  Martin Jambor  <mjambor@suse.cz>
2652
2653         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2654         and REALPART_EXPRs have scalar type.
2655
2656 2013-05-28  Richard Biener  <rguenther@suse.de>
2657
2658         PR tree-optimization/57411
2659         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2660         virtual operands.
2661         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2662         virtual operand propagation.
2663
2664 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2665
2666         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2667         destination register for bmasksi_vis.
2668         (vector_init_bshuffle): Likewise.
2669         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2670
2671 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2672
2673         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2674         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2675         mode if the instruction isn't available in the original mode.
2676         * config/sparc/sparc.opt (mfix-ut699): New option.
2677         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2678         (divdf3): Turn into expander.
2679         (divdf3_nofix): New insn.
2680         (divdf3_fix): Likewise.
2681         (divsf3): Disable if -mfix-ut699.
2682         (sqrtdf2): Turn into expander.
2683         (sqrtdf2_nofix): New insn.
2684         (sqrtdf2_fix): Likewise.
2685         (sqrtsf2): Disable if -mfix-ut699.
2686
2687 2013-05-27  Richard Biener  <rguenther@suse.de>
2688
2689         PR middle-end/57412
2690         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2691         block for the new loop.
2692
2693 2013-05-27  Richard Biener  <rguenther@suse.de>
2694
2695         PR tree-optimization/57343
2696         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2697         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2698         (number_of_iterations_cond): Do not build the folded tree.
2699
2700 2013-05-27  Richard Biener  <rguenther@suse.de>
2701
2702         Revert
2703         PR middle-end/57381
2704         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2705         OEP_CONSTANT_ADDRESS_OF retained.
2706
2707         PR tree-optimization/57417
2708         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2709         for unchanged base.
2710         (set_ssa_val_to): Compare addresses using
2711         get_addr_base_and_unit_offset.
2712
2713 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
2714
2715         PR rtl-optimization/56833
2716         * postreload.c (move2add_record_mode): New function.
2717         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2718         (move2add_use_add2_insn): Use move2add_record_sym_value.
2719         (move2add_use_add3_insn): Likewise.
2720         (reload_cse_move2add): Use move2add_valid_value_p and
2721         move2add_record_mode.  Invalidate call-clobbered and REG_INC
2722         affected regs by setting reg_mode to VOIDmode.
2723         (move2add_note_store): Don't pretend the inside of a SUBREG is
2724         the actual destination.  Invalidate single/leading registers by
2725         setting reg_mode to VOIDmode.
2726         Use move2add_record_sym_value, move2add_valid_value_p and
2727         move2add_record_mode.
2728
2729 2013-05-27  Richard Biener  <rguenther@suse.de>
2730
2731         PR tree-optimization/57396
2732         * tree-affine.c (double_int_constant_multiple_p): Properly
2733         return false for val == 0 and div != 0.
2734
2735 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2736
2737         * config/mips/mips.h: Use #elif in preprocessor conditions.
2738
2739 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2740
2741         PR target/53916
2742         * config/mips/constraints.md (kl): New constraint.
2743         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2744         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
2745         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
2746         from LO for MIPS16.
2747         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2748
2749 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2750
2751         PR target/55777
2752         * config/mips/mips.c (mips_can_inline_p): New function.
2753         (TARGET_CAN_INLINE_P): Define.
2754
2755 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2756
2757         * sched-int.h (ds_t, dw_t): Make unsigned int.
2758         Fix documentation that describes how all the ds_t bits are used.
2759         Reserve the last bit for delayed-branch scheduling.
2760         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2761         (BITS_PER_DEP_WEAK): Fix definition and documentation.
2762         (gen_dep_weak_1): Remove prototype.
2763         * sched-deps.c (get_dep_weak_1): Make static.
2764         * target.def (speculate_insn, needs_block_p, gen_spec_check,
2765         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2766         * doc/tm.texi: Regenerate.
2767         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2768
2769 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
2770
2771         PR debug/56950
2772         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2773
2774 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
2775             Sandra Loosemore  <sandra@codesourcery.com>
2776
2777         * config.gcc (powerpc-*): Allow native for with-cpu.
2778
2779 2013-05-24  Jeff Law  <law@redhat.com>
2780
2781         PR tree-optimization/57124
2782         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2783         conversion feeding a condition if the range has an overflow
2784         if -fstrict-overflow.  Add warnings for when we do make the
2785         transformation.
2786
2787 2013-05-24  Dehao Chen  <dehao@google.com>
2788
2789         * tree-cfg.c (locus_discrim_map): Fix the typo.
2790         (locus_discrim_hasher): Likewise.
2791         (locus_discrim_hasher::hash): Likewise.
2792         (locus_discrim_hasher::equal): Likewise.
2793
2794 2013-05-24  Martin Jambor  <mjambor@suse.cz>
2795
2796         PR tree-optimization/57294
2797         * cgraph.h (ipa_record_stmt_references): Declare.
2798         * cgraphbuild.c (ipa_record_stmt_references): New function.
2799         (build_cgraph_edges): Use ipa_record_stmt_references.
2800         (rebuild_cgraph_edges): Likewise.
2801         (cgraph_rebuild_references): Likewise.
2802         * ipa-prop.c (ipa_modify_call_arguments): Discard references
2803         associated with the old statement and build references from the
2804         newly built statements.
2805         * ipa-ref.c (ipa_remove_stmt_references): New function.
2806         * ipa-ref.h (ipa_remove_stmt_references): Declare.
2807
2808 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2809
2810         * lra-constraints.c (emit_spill_move): Use smaller mode for
2811         mem-mem moves.
2812         (check_and_process_move): Consider mem-reg moves for secondary
2813         too.
2814         (curr_insn_transform): Don't lose insns emitted before for
2815         secondary memory moves.
2816         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
2817         reg set up in the current insn.
2818
2819 2013-05-24  Dehao Chen  <dehao@google.com>
2820
2821         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2822         hash function.
2823         (locus_descrim_hasher::equal): Likewise.
2824         (build_gimple_cfg): New discriminator assignment algorithm.
2825         (make_edges): Likewise.
2826         (next_discriminator_for_locus): Likewise.
2827         (same_line_p): Likewise.
2828         (assign_discriminators): Likewise.
2829         (make_cond_expr_edges): Likewise.
2830         (make_gimple_switch_edges): Likewise.
2831         (make_goto_expr_edges): Likewise.
2832         (make_gimple_asm_edges): Likewise.
2833
2834 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
2835
2836         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2837         X format specifier to only display bottom 16 bits.
2838         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2839         immediate to match for operand 2, since it will be masked.
2840
2841 2013-05-24  Richard Biener  <rguenther@suse.de>
2842
2843         PR tree-optimization/57287
2844         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2845         all SSA names that occur in abnormal PHIs.
2846
2847 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2848
2849         PR tree-ssa/57385
2850         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2851         that index is not negative.
2852
2853 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2854
2855         PR rtl-optimization/55177
2856         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2857         (simplify_byte_swapping_operation): New.
2858         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2859         (simplify_relational_operation_1): Deal with BSWAP.
2860
2861 2013-05-23  Richard Henderson  <rth@redhat.com>
2862
2863         PR target/56742
2864         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2865         (ix86_reorg): Call it.
2866
2867 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
2868
2869         PR target/57379
2870         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2871         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2872         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2873
2874 2013-05-23  Christian Bruel  <christian.bruel@st.com>
2875
2876         PR debug/57351
2877         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2878
2879 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2880             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2881
2882         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2883         * config/aarch64/constraints.md (Usa): Remove.
2884         * doc/md.texi (AArch64 Usa): Remove.
2885
2886 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2887             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2888
2889         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2890         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2891         * config/aarch64/predicates.md (aarch64_const_address): Remove.
2892         (aarch64_mov_operand): Use aarch64_mov_operand_p.
2893
2894 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
2895
2896         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2897         instruction (AdvSIMD).
2898         * config/aarch64/aarch64-builtins.c
2899         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2900         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2901
2902 2013-05-23  Martin Jambor  <mjambor@suse.cz>
2903
2904         PR middle-end/57347
2905         * tree.h (contains_bitfld_component_ref_p): Declare.
2906         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2907         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
2908         caller.
2909         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2910         not access a bit-field.  Assert all final offsets are byte-aligned.
2911
2912 2013-05-23  Richard Biener  <rguenther@suse.de>
2913
2914         PR tree-optimization/57380
2915         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2916         least one invariant or re-used load.
2917         * passes.c (init_optimization_passes): Move pass_phiprop before
2918         pass_forwprop.
2919
2920 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
2921
2922         * config/aarch64/aarch64-simd.md
2923         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2924
2925 2013-05-23  Richard Biener  <rguenther@suse.de>
2926
2927         PR middle-end/57381
2928         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2929         OEP_CONSTANT_ADDRESS_OF retained.
2930
2931 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
2932
2933         PR middle-end/57344
2934         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2935         don't lower unit.  Handle unit not being always BITS_PER_WORD.
2936
2937 2013-05-23  Richard Biener  <rguenther@suse.de>
2938
2939         PR rtl-optimization/57341
2940         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2941         instead of true_dependence.
2942
2943 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
2944
2945         * bb-reorder.c (branch_threshold): Make const.
2946         (exec_threshold): Ditto.
2947
2948 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2949             Pat Haugen <pthaugen@us.ibm.com>
2950             Peter Bergner <bergner@vnet.ibm.com>
2951
2952         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2953         documentation for the power8 crypto builtins.
2954
2955         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2956
2957         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2958         macros for defining power8 builtin functions.
2959         (BU_P8V_AV_2): Likewise.
2960         (BU_P8V_AV_P): Likewise.
2961         (BU_P8V_VSX_1): Likewise.
2962         (BU_P8V_OVERLOAD_1): Likewise.
2963         (BU_P8V_OVERLOAD_2): Likewise.
2964         (BU_CRYPTO_1): Likewise.
2965         (BU_CRYPTO_2): Likewise.
2966         (BU_CRYPTO_3): Likewise.
2967         (BU_CRYPTO_OVERLOAD_1): Likewise.
2968         (BU_CRYPTO_OVERLOAD_2): Likewise.
2969         (XSCVSPDP): Fix typo, point to the correct instruction.
2970         (VCIPHER): Add power8 crypto builtins.
2971         (VCIPHERLAST): Likewise.
2972         (VNCIPHER): Likewise.
2973         (VNCIPHERLAST): Likewise.
2974         (VPMSUMB): Likewise.
2975         (VPMSUMH): Likewise.
2976         (VPMSUMW): Likewise.
2977         (VPERMXOR_V2DI): Likewise.
2978         (VPERMXOR_V4SI: Likewise.
2979         (VPERMXOR_V8HI: Likewise.
2980         (VPERMXOR_V16QI: Likewise.
2981         (VSHASIGMAW): Likewise.
2982         (VSHASIGMAD): Likewise.
2983         (VPMSUM): Likewise.
2984         (VPERMXOR): Likewise.
2985         (VSHASIGMA): Likewise.
2986
2987         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2988         __CRYPTO__ if the crypto instructions are available.
2989         (altivec_overloaded_builtins): Add support for overloaded power8
2990         builtins.
2991
2992         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2993         support for power8 crypto builtins.
2994         (builtin_function_type): Likewise.
2995         (altivec_init_builtins): Add support for builtins that take vector
2996         long long (V2DI) arguments.
2997
2998         * config/rs6000/crypto.md: New file, define power8 crypto
2999         instructions.
3000
3001 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3002             Pat Haugen <pthaugen@us.ibm.com>
3003             Peter Bergner <bergner@vnet.ibm.com>
3004
3005         * doc/invoke.texi (Option Summary): Add power8 options.
3006         (RS/6000 and PowerPC Options): Likewise.
3007
3008         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3009         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
3010         wm, wn, wr documentation.
3011
3012         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3013         registers if direct move instructions are enabled.
3014         (wn): New constraint for no registers.
3015         (wq): New constraint for quad word even GPR registers.
3016         (wr): New constraint if 64-bit instructions are enabled.
3017         (wv): New constraint if power8 vector instructions are enabled.
3018         (wQ): New constraint for quad word memory locations.
3019
3020         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3021         constraint for 0..15 for crypto instructions.
3022         (gpc_reg_operand): If VSX allow registers in VSX registers as well
3023         as GPR and floating point registers.
3024         (int_reg_operand): New predicate to match only GPR registers.
3025         (base_reg_operand): New predicate to match base registers.
3026         (quad_int_reg_operand): New predicate to match even GPR registers
3027         for quad memory operations.
3028         (vsx_reg_or_cint_operand): New predicate to allow vector logical
3029         operations in both GPR and VSX registers.
3030         (quad_memory_operand): New predicate for quad memory operations.
3031         (reg_or_indexed_operand): New predicate for direct move support.
3032
3033         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3034         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3035         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3036         (POWERPC_MASKS): Add power8 options.
3037         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3038         various options.
3039
3040         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3041         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3042
3043         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3044         (-mpower8-fusion): New power8 options.
3045         (-mpower8-fusion-sign): Likewise.
3046         (-mpower8-vector): Likewise.
3047         (-mcrypto): Likewise.
3048         (-mdirect-move): Likewise.
3049         (-mquad-memory): Likewise.
3050
3051         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3052         power8.
3053         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3054         registers.
3055         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3056         (rs6000_debug_vector_unit): Add p8_vector.
3057         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3058         definitions.  Also print fusion state.
3059         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3060         (rs6000_builtin_mask_calculate): Add power8 builtin support.
3061         (rs6000_option_override_internal): Add support for power8.
3062         (rs6000_common_init_builtins): Add debugging for skipped builtins
3063         if -mdebug=builtin.
3064         (rs6000_adjust_cost): Add power8 support.
3065         (rs6000_issue_rate): Likewise.
3066         (insn_must_be_first_in_group): Likewise.
3067         (insn_must_be_last_in_group): Likewise.
3068         (force_new_group): Likewise.
3069         (rs6000_register_move_cost): Likewise.
3070         (rs6000_opt_masks): Likewise.
3071
3072         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3073         power8 capable assembler, default to power7 options.
3074         (TARGET_DIRECT_MOVE): Likewise.
3075         (TARGET_CRYPTO): Likewise.
3076         (TARGET_P8_VECTOR): Likewise.
3077         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3078         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3079         (VECTOR_MEM_P8_VECTOR_P): Likewise.
3080         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3081         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3082         (TARGET_XSCVDPSPN): Likewise.
3083         (TARGET_XSCVSPDPN): Likewsie.
3084         (TARGET_SYNC_HI_QI): Likewise.
3085         (TARGET_SYNC_TI): Likewise.
3086         (MASK_CRYPTO): Likewise.
3087         (MASK_DIRECT_MOVE): Likewise.
3088         (MASK_P8_FUSION): Likewise.
3089         (MASK_P8_VECTOR): Likewise.
3090         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3091         temporary used by some of the direct move instructions to get two FP
3092         temporary registers does not force creation of a stack frame.
3093         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3094         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3095         that any VSX registers are tieable, even if they are also an
3096         Altivec vector mode.
3097         (r6000_reg_class_enum): Add wm, wr, wv constraints.
3098         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3099         (RS6000_BTM_CRYPTO): Likewise.
3100         (RS6000_BTM_COMMON): Likewise.
3101
3102         * config/rs6000/rs6000.md (cpu attribute): Add power8.
3103         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3104         (enum rs6000_vector): Add power8 vector support.
3105
3106 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3107
3108         PR target/19599
3109         PR target/57340
3110         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3111         (any_sibcall_could_use_r3): this and handle indirect calls.
3112         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3113
3114 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3115
3116         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3117
3118 2013-05-22  Richard Biener  <rguenther@suse.de>
3119
3120         PR middle-end/57349
3121         * profile.c (branch_prob): Do not split blocks that are
3122         abnormally receiving from ECF_RETURNS_TWICE functions.
3123
3124 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
3125
3126         * recog.c (offsettable_address_addr_space_p): Fix calculation of
3127         address mode.  Move pointer mode initialization to the same place.
3128
3129 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3130
3131         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3132         while it has any effect.
3133
3134 2013-05-21  Easwaran Raman  <eraman@google.com>
3135
3136         PR tree-optimization/57322
3137         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3138         UID of the statement added to the BB to be 1.
3139
3140 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
3141
3142         PR tree-optimization/57331
3143         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3144         of conversion from pointer type to integral type with integer.
3145
3146 2013-05-21  Martin Jambor  <mjambor@suse.cz>
3147
3148         PR lto/57289
3149         * ipa-prop.c (ipa_read_node_info): Process param_used and
3150         controlled_uses in the same order as when writing.
3151
3152 2013-05-21  Magnus Granberg  <baldrick@free.fr>
3153
3154         PR plugins/56754
3155         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3156
3157 2013-05-21  Richard Biener  <rguenther@suse.de>
3158
3159         PR tree-optimization/57318
3160         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3161         estimate stmts with side-effects as likely eliminated.
3162
3163 2013-05-21  Richard Biener  <rguenther@suse.de>
3164
3165         PR tree-optimization/57330
3166         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3167         preserve the call stmts fntype.
3168
3169 2013-05-21  Richard Biener  <rguenther@suse.de>
3170
3171         PR tree-optimization/57303
3172         * tree-ssa-sink.c (statement_sink_location): Improve killing
3173         stmt detection and properly handle self-assignments.
3174
3175 2013-05-21  Christian Bruel  <christian.bruel@st.com>
3176
3177         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3178         spanning registers. LEAF_REG_REMAP is supported only for contiguous
3179         registers. Set register size out of the PARALLEL loop.
3180
3181 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
3182
3183         PR target/56547
3184         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3185         (*fmasf4, *fmasf4_media): New insns.
3186
3187 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3188
3189         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3190         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3191         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3192         (mips_idiv_insns): Update the comments to say that the returned
3193         instruction counts are in units of BASE_INSN_LENGTH.
3194         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3195         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
3196         using 2 rather than 4 as the length of indirect MIPS16 and
3197         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
3198         length of a NOP.  Don't divide MIPS16 lengths by 2.
3199         (mips16_split_long_branches): Assume a branch is long if the
3200         length is greater than 4 rather than 8.
3201         * config/mips/mips.md (length): Give MIPS16 lengths directly,
3202         rather than multiplying them by 2.  Multiply instruction counts
3203         by BASE_INSN_LENGTH rather than 4.
3204         (*jump_mips16, tls_get_tp_mips16_<mode>)
3205         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3206
3207 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3208
3209         * config/mips/mips.md (extended_mips16): Remove branch case.
3210         (length): Remove duplicated extended_mips16 test.
3211
3212 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3213
3214         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3215
3216 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
3217
3218         * recog.h (Recog_data): Rename to...
3219         (recog_data_d): ...this.
3220         (recog_data): Update accordingly.
3221         * recog.c (recog_data): Likewise.
3222         * reload.c (save_recog_data): Likewise.
3223         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3224         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3225
3226 2013-05-17  Julian Brown  <julian@codesourcery.com>
3227
3228         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3229         found in a REG_EQUAL note, invalidate it.
3230
3231 2013-05-17   Easwaran Raman  <eraman@google.com>
3232
3233         * tree-ssa-reassoc.c (find_insert_point): New function.
3234         (insert_stmt_after): Likewise.
3235         (get_def_stmt): Likewise.
3236         (ensure_ops_are_available): Likewise.
3237         (not_dominated_by): Likewise.
3238         (rewrite_expr_tree): Do not move statements beyond what is
3239         necessary. Remove call to swap_ops_for_binary_stmt...
3240         (reassociate_bb): ... and move it here.
3241         (build_and_add_sum): Assign UIDs for new statements.
3242         (linearize_expr): Likewise.
3243         (do_reassoc): Renumber gimple statement UIDs.
3244
3245 2013-05-17  Jan Hubicka  <jh@suse.cz>
3246
3247         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3248         weakrefs.
3249         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3250         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3251         weakrefs.
3252         (output_weakrefs): Update.
3253
3254 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
3255             Martin Jambor  <mjambor@suse.cz>
3256
3257         PR middle-end/57276
3258         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3259         value that corresponds to the given aggval is found in values vector.
3260
3261 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
3262
3263         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3264         sse, sse2, sse3, ssse3 and sse4a flags to options.
3265
3266 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
3267
3268         * gengtype-state.c: (s_expr_writer): New class, to handle
3269         prettifying of output layout of s-expressions.
3270         (state_writer): New class, to write out gtype.state.
3271         (state_written_type_count): Move this variable into member data of
3272         state_writer.
3273         (s_expr_writer::s_expr_writer): New code: constructor for new class
3274         (state_writer::state_writer(): ditto
3275         (s_expr_writer::write_new_line): New function
3276         (s_expr_writer::write_any_indent): ditto
3277         (s_expr_writer::begin_s_expr): ditto
3278         (s_expr_writer::end_s_expr): ditto
3279         (write_state_fileloc): convert to method of state_writer...
3280         (state_writer:: write_state_fileloc): ...and use methods of
3281         s_expr_writer to write indentation into the gtype.state output file
3282         to visually represent the hierarchical structure of the list
3283         structures
3284         (write_state_fields): ditto, renaming to...
3285         (state_writer::write_state_fields)
3286         (write_state_a_string): ditto, renaming to...
3287         (state_writer::write_state_a_string)
3288         (write_state_string_option): ditto, renaming to...
3289         (state_writer::write_state_string_option)
3290         (write_state_type_option): ditto, renaming to...
3291         (state_writer::write_state_type_option)
3292         (write_state_nested_option): ditto, renaming to...
3293         (state_writer::write_state_nested_option)
3294         (write_state_option): ditto, renaming to...
3295         (state_writer::write_state_option)
3296         (write_state_options): ditto, renaming to...
3297         (state_writer::write_state_options)
3298         (write_state_lang_bitmap): ditto, renaming to...
3299         (state_writer::write_state_lang_bitmap)
3300         (write_state_version): ditto, renaming to...
3301         (state_writer::write_state_version)
3302         (write_state_scalar_type): ditto, renaming to...
3303         (state_writer::write_state_scalar_type)
3304         (write_state_string_type): ditto, renaming to...
3305         (state_writer::write_state_string_type)
3306         (write_state_undefined_type): ditto, renaming to...
3307         (state_writer::write_state_undefined_type)
3308         (write_state_struct_union_type): ditto, renaming to...
3309         (state_writer::write_state_struct_union_type)
3310         (write_state_struct_type): ditto, renaming to...
3311         (state_writer::write_state_struct_type)
3312         (write_state_user_struct_type): ditto, renaming to...
3313         (state_writer::write_state_user_struct_type)
3314         (write_state_lang_struct_type): ditto, renaming to...
3315         (state_writer::write_state_lang_struct_type)
3316         (write_state_param_struct_type): ditto, renaming to...
3317         (state_writer::write_state_param_struct_type)
3318         (write_state_pointer_type): ditto, renaming to...
3319         (state_writer::write_state_pointer_type)
3320         (write_state_array_type): ditto, renaming to...
3321         (state_writer::write_state_array_type)
3322         (write_state_gc_used): ditto, renaming to...
3323         (state_writer::write_state_gc_used)
3324         (write_state_common_type_content): ditto, renaming to...
3325         (state_writer::write_state_common_type_content)
3326         (write_state_type): ditto, renaming to...
3327         (state_writer::write_state_type)
3328         (write_state_pair_list): ditto, renaming to...
3329         (state_writer::write_state_pair_list)
3330         (write_state_pair): ditto, renaming to...
3331         (state_writer::write_state_pair)
3332         (write_state_typedefs): ditto, renaming to...
3333         (state_writer::write_state_typedefs)
3334         (write_state_structures): ditto, renaming to...
3335         (state_writer::write_state_structures)
3336         (write_state_param_structs): ditto, renaming to...
3337         (state_writer::write_state_param_structs)
3338         (write_state_variables): ditto, renaming to...
3339         (state_writer::write_state_variables)
3340         (write_state_srcdir): ditto, renaming to...
3341         (state_writer::write_state_srcdir)
3342         (write_state_files_list): ditto, renaming to...
3343         (state_writer::write_state_files_list)
3344         (write_state_languages): ditto, renaming to...
3345         (state_writer::write_state_languages)
3346         (write_state): create a state_writer instance and use it when
3347         writing out the state file
3348
3349 2013-05-17  Mike Stump  <mikestump@comcast.net>
3350
3351         PR rtl-optimization/57304
3352         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3353         accessing DF_REF_REAL_LOC.
3354
3355 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3356
3357         PR rtl-optimization/57281
3358         PR rtl-optimization/57300
3359         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3360         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3361         what the other splitter did if the registers are dead.
3362
3363 2013-05-17  Richard Biener  <rguenther@suse.de>
3364
3365         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3366         MEM_REF offsets.
3367
3368 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3369
3370         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3371         linking.
3372
3373 2013-05-17  Marek Polacek  <polacek@redhat.com>
3374
3375         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3376         length when doing non-zero store of storing '\0' to '\0'.
3377
3378 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3379
3380         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3381         vect_external_def oprnd1 with loop_vinfo, try to emit
3382         optional cast, negation and and stmts on the loop preheader
3383         edge instead of into the pattern def seq.
3384
3385         PR tree-optimization/57051
3386         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3387         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3388
3389 2013-05-16  Nick Clifton  <nickc@redhat.com>
3390
3391         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3392         (rl78_is_naked_func): New function.
3393         (rl78_expand_prologue): Skip prologue generation for naked functions.
3394         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
3395         * doc/extend.texi (naked): Add RL78 to the list of processors
3396         that supports this attribute.
3397
3398 2013-05-16  Jeff Law  <law@redhat.com>
3399
3400         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3401
3402 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3403
3404         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3405         cache parameters using detect_caches_amd also for CYRIX,
3406         NSC and TM2 signatures.
3407
3408 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3409             Dzianis Kahanovich  <mahatma@eu.by>
3410
3411         PR target/45359
3412         PR target/46396
3413         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3414         VIA/Centaur processors and determine their cache parameters
3415         using detect_caches_amd.
3416
3417 2013-05-16  Teresa Johnson  <tejohnson@google.com>
3418
3419         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3420         (rtl_verify_edges): New function.
3421         (rtl_verify_bb_insns): Ditto.
3422         (rtl_verify_bb_pointers): Ditto.
3423         (rtl_verify_bb_insn_chain): Ditto.
3424         (rtl_verify_fallthru): Ditto.
3425         (rtl_verify_bb_layout): Ditto.
3426         (rtl_verify_flow_info_1): Outline checks into new functions.
3427         (rtl_verify_flow_info): Ditto.
3428
3429 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
3430
3431         * cfghooks.c (copy_bbs): Add update_dominance argument.
3432         * cfghooks.h (copy_bbs): Update prototype.
3433         * tree-cfg.c (gimple_duplicate_sese_region):
3434         Add update_dominance argument.
3435         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3436         * tree-ssa-loop-ch.c (copy_loop_headers): Update
3437         gimple_duplicate_sese_region call.
3438         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3439         Update copy_bbs call.
3440         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3441         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3442
3443 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3444
3445         * tree-vectorizer.h (NUM_PATTERNS): Increment.
3446         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3447         vect_recog_rotate_pattern.
3448         (vect_recog_rotate_pattern): New function.
3449
3450 2013-05-16  Jason Merrill  <jason@redhat.com>
3451
3452         * Makefile.in (LLINKER): New variable.
3453         (mostlyclean): Remove link mutex.
3454         * configure.ac: Handle --enable-link-mutex.
3455         * lock-and-run.sh: New script.
3456
3457 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3458
3459         PR target/19599
3460         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3461         for NULL decl.
3462
3463 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3464
3465         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3466
3467 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
3468
3469         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3470         * config/arm/arm.c (next_consecutive_mem): New function.
3471         (gen_movmem_ldrd_strd): Likewise.
3472         * config/arm/arm.md (movmemqi): Update condition and code.
3473         (unaligned_loaddi, unaligned_storedi): New patterns.
3474
3475 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3476
3477         * config.gcc: Obsolete *-*-solaris2.9*.
3478         * doc/install.texi (Specific, *-*-solaris2*): Document it.
3479
3480 2013-05-16  Richard Biener  <rguenther@suse.de>
3481
3482         * passes.c (init_optimization_passes): Move pass_parallelize_loops
3483         earlier, after GRAPHITE transforms and IV canonicalization.
3484
3485 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3486
3487         * omp-low.c (extract_omp_for_data): For collapsed loops,
3488         if at least one of the loops is known at compile time to
3489         iterate zero times, set count to 0.
3490         (expand_omp_regimplify_p): New function.
3491         (expand_omp_for_generic): For collapsed loops, if at least
3492         one of the loops isn't known to iterate at least once,
3493         add runtime check with setting count to 0.
3494         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3495         For unsigned types if it isn't known at compile time that
3496         the loop will iterate at least once, add runtime check to bypass
3497         the whole loop if initial condition isn't true.
3498
3499 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3500
3501         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3502
3503 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
3504
3505         PR middle-end/57286
3506         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3507         transformations to avoid an infinite loop.
3508
3509 2013-05-16  Marek Polacek  <polacek@redhat.com>
3510
3511         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3512
3513 2013-05-15  Leif Ekblad  <leif@rdos.net>
3514
3515         * config/i386/i386.c (ix86_decompose_address): Use
3516         DEFAULT_TLS_SEG_REG to access TLS segment register.
3517         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3518         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3519         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3520
3521 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
3522
3523         PR target/57260
3524         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3525         sibling calls to functions that would normally be lazily bound,
3526         unless $gp is call-clobbered.
3527
3528 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
3529
3530         * config/i386/i386.c (ix86_option_override_internal): Update
3531         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
3532         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3533         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3534         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3535         of TARGET_3DNOW.
3536         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3537
3538 2013-05-15  Andreas Schwab  <schwab@suse.de>
3539
3540         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3541         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
3542         third operand.
3543
3544 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3545
3546         * loop-unroll.c (report_unroll_peel): Check decision before
3547         emitting unroll/peel message.
3548
3549 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3550
3551         * function.h (has_bb_partition): New rtl_data flag.
3552         (bb_reorder_complete): Ditto.
3553         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3554         instead of flag_reorder_blocks_and_partition.
3555         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3556         with some enhancements.
3557         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3558         * bb-reorder.c (connect_traces): Check for has_bb_partition
3559         instead of flag_reorder_blocks_and_partition.
3560         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3561         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3562         verify_hot_cold_block_grouping.
3563         (partition_hot_cold_basic_blocks): Set has_bb_partition.
3564
3565 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3566
3567         PR target/19599
3568         * config/arm/predicates.md (call_insn_operand): New predicate.
3569         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
3570         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3571         if insn is not a tail call.
3572         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3573         registers.
3574         * config/arm/arm.h (enum reg_class): New caller save register class.
3575         (REG_CLASS_NAMES): Likewise.
3576         (REG_CLASS_CONTENTS): Likewise.
3577         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3578         without decls.
3579
3580 2013-05-15  Richard Biener  <rguenther@suse.de>
3581
3582         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3583         of MSG_OPTIMIZED_LOCATIONS.
3584         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3585         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3586         message.
3587         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3588         of MSG_OPTIMIZED_LOCATIONS.
3589         (execute_vect_slp): Likewise.
3590         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3591         (vect_create_cond_for_alias_checks): Likewise.
3592         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3593         (vect_recog_widen_mult_pattern): Likewise.
3594         (vect_recog_widen_sum_pattern): Likewise.
3595         (vect_recog_over_widening_pattern): Likewise.
3596         (vect_recog_widen_shift_pattern): Likewise.
3597         (vect_recog_vector_vector_shift_pattern): Likewise.
3598         (vect_recog_divmod_pattern): Likewise.
3599         (vect_recog_mixed_size_cond_pattern): Likewise.
3600         (vect_recog_bool_pattern): Likewise.
3601         (vect_pattern_recog_1): Likewise.
3602
3603 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3604
3605         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3606         non-functions to builtin_unreachable.
3607         * ipa-inline-transform.c (inline_call): Do not assert estimates were
3608         correct when new direct edges were discovered.
3609
3610 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3611
3612         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3613         header, print symbol order instead of node uid, print more information
3614         about indirect edge targets.
3615         (ipa_make_edge_direct_to_target): Print symbol order instead of node
3616         uids.
3617         (ipa_make_edge_direct_to_target): Likewise.
3618         (remove_described_reference): Likewise.
3619         (propagate_controlled_uses): Likewise.
3620         (ipa_print_node_params): Also print symbol order.
3621         (ipcp_transform_function): Print symbol order instead of node uids.
3622         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3623         (cgraph_get_create_real_symbol_node): Likewise.
3624         * ipa-cp.c (print_lattice): Likewise.
3625         (print_all_lattices): Likewise.
3626         (determine_versionability): Likewise.
3627         (initialize_node_lattices): Likewise.
3628         (estimate_local_effects): Likewise.
3629         (update_profiling_info): Likewise.
3630         (create_specialized_node): Likewise.
3631         (perhaps_add_new_callers): Likewise.
3632         (decide_about_value): Likewise.
3633         (decide_whether_version_node): Likewise.
3634         (identify_dead_nodes): Likewise.
3635         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3636         (dump_inline_summary): Likewise.
3637         (estimate_node_size_and_time): Likewise.
3638         (inline_analyze_function): Likewise.
3639         * ipa-inline.c (report_inline_failed_reason): Likewise.
3640         (want_early_inline_function_p): Likewise.
3641         (edge_badness): Likewise.
3642         (update_edge_key): Likewise.
3643         (inline_small_functions): Likewise.  Add dumping of order to two other
3644         dumps.
3645         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3646         instead of node uids.
3647         (propagate_pure_const): Likewise.
3648         (propagate_pure_const): Likewise.
3649         * ipa-utils.c (dump_cgraph_node_set): Likewise.
3650         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3651         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3652         of node uids.
3653         * tree-pretty-print.c (dump_function_header): Likewise.
3654         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3655         Print symbol order instead of node uids.
3656
3657 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3658
3659         * config/s390/s390.c (s390_register_move_cost): Don't impose the
3660         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3661
3662 2013-05-15  Richard Biener  <rguenther@suse.de>
3663
3664         PR tree-optimization/57275
3665         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3666         return value for fail to do runtime alias checks for gather loads.
3667
3668 2013-05-15  Jan Hubicka  <jh@suse.cz>
3669
3670         PR lto/57038
3671         PR lto/47375
3672         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3673         weakrefs are not external.
3674         (lto_symtab_merge_decls): Fix thinko when dealing with
3675         non-lto_symtab decls.
3676         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3677         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3678         * varpool.c (dump_varpool_node): Dump more flags.
3679
3680 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3681
3682         * config/i386/i386.c (processor_alias_table): Add instruction
3683         FSGSBASE for AMD bdver3 architecture.
3684
3685 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3686
3687         * tree.c (warn_deprecated_use): Print file:line using locus color.
3688         * diagnostic.c (diagnostic_report_current_module): Print file:line
3689         and file:line:column using locus color.
3690
3691 2013-05-14  Mike Stump  <mikestump@comcast.net>
3692
3693         * gdbinit.in: Add __null.
3694
3695 2013-05-14  Mike Stump  <mikestump@comcast.net>
3696
3697         * recog.h: Rename struct recog_data to Recog_data.
3698         * recog.c: Likewise.
3699         * reload.c (can_reload_into): Likewise.
3700         * config/picochip/picochip.c: Likewise.
3701
3702 2013-05-14  Mike Stump  <mikestump@comcast.net>
3703
3704         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3705
3706 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3707
3708         * resource.h (struct resources): Remove unch_memory member.
3709         (CLEAR_RESOURCE): Don't clear unch_memory.
3710         * resource.c (mark_referenced_resources): Don't set it.
3711         (mark_set_resources): Likewise.
3712         (mark_target_live_regs): Don't clear it.
3713         (init_resource_info): Likewise.
3714         * reorg.c (resource_conflicts_p): Don't compare it.
3715         (redundant_insn): Don't set it.
3716
3717         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3718         Remove prototypes.
3719         * emit-rtl.c (next_label): Remove unused function.
3720         (skip_consecutive_labels, link_cc0_insns): Move to ...
3721         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3722         only place where these functions are used, and make them static.
3723
3724 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3725
3726         * fold-const.c (fold_negate_expr): Handle vectors.
3727         (fold_truth_not_expr): Make it static.
3728         (fold_invert_truthvalue): New static function.
3729         (invert_truthvalue_loc): Handle vectors. Do not call
3730         fold_truth_not_expr directly.
3731         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3732         <TRUTH_NOT_EXPR>: Do not cast to boolean.
3733         (fold_comparison): Handle vector constants.
3734         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3735         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3736         * tree.h (fold_truth_not_expr): Remove declaration.
3737
3738 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
3739
3740         * config/aarch64/aarch64-simd.md
3741         (aarch64_vcond_internal<mode>): Rename to...
3742         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3743         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3744         float modes. Clarify all iterator modes.
3745         (vcond<mode><mode>): Use new name for vcond expanders.
3746         (vcond<v_cmp_result><mode>): Likewise.
3747         (vcondu<mode><mode>: Likewise.
3748         * config/aarch64/iterators.md (VDQF_COND): New.
3749
3750 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3751
3752         PR bootstrap/57266
3753         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3754         variable for the shift amount. Check that we shift by non-negative
3755         amounts.
3756
3757 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
3758
3759         PR target/42017
3760         * config/arm/arm.h (EPILOGUE_USES): Only return true
3761         for LR_REGNUM after epilogue_completed.
3762
3763 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
3764
3765         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3766         is error_mark_node.
3767
3768 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3769
3770         PR target/57261
3771         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3772         and Solaris 11+/x86 with gld.
3773         * configure: Regenerate.
3774
3775 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3776
3777         * expmed.c (expand_shift_1): Canonicalize rotates by
3778         constant bitsize / 2 to bitsize - 1.
3779         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3780         case ROTATERT>: Likewise.
3781
3782         Revert:
3783         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3784
3785         * config/i386/i386.md (rotateinv): New code attr.
3786         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3787         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3788         roll $31, %eax, etc.
3789
3790 2013-05-14  Richard Biener  <rguenther@suse.de>
3791
3792         PR middle-end/57235
3793         * tree-eh.c (sink_clobbers): Give up for successors with
3794         multiple predecessors and no virtual uses.
3795
3796 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3797
3798         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3799         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3800
3801 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3802
3803         PR middle-end/57251
3804         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3805         the case when both op0 and op1 have VOIDmode.
3806
3807 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3808
3809         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3810         in multiply-accumulate mode.
3811
3812 2013-05-13  Guozhi Wei  <carrot@google.com>
3813
3814         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3815
3816 2013-05-13  Kai Tietz  <ktietz@redhat.com>
3817
3818         PR target/56975
3819         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3820         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3821         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3822         * config/i386/i386.c (ix86_option_override_internal): Likewise.
3823         (ix86_expand_prologue): Likewise.
3824         (ix86_expand_split_stack_prologue): Likewise.
3825         (legitimate_pic_address_disp_p): Likewise.
3826         (legitimize_pic_address): Likewise.
3827         (legitimize_tls_address): Likewise.
3828         (legitimize_pe_coff_symbol): Likewise.
3829         (output_pic_addr_const): Likewise.
3830         (construct_plt_address): Likewise.
3831         (ix86_expand_call): Likewise.
3832         (x86_output_mi_thunk): Likewise.
3833         (x86_function_profiler): Likewise.
3834
3835 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
3836
3837         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3838         similar switch cases.
3839         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3840         (aarch64_simd_mov_to_<mode>low): Delete.
3841         (aarch64_simd_mov_to_<mode>high): Delete.
3842         (move_lo_quad_<mode>): Add w<-r alternative.
3843         (aarch64_simd_move_hi_quad_<mode>): Likewise.
3844         (aarch64_simd_mov_from_*): Update type attribute.
3845         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3846         statement.
3847
3848 2013-05-13  Jan Hubicka  <jh@suse.cz>
3849
3850         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3851         * config/i386/i386.c (ix86_compute_frame_layout,
3852         ix86_expand_epilogue, emit_i387_cw_initialization,
3853         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3854         ix86_local_alignment): Fix use of size/speed predicates.
3855
3856 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3857
3858         PR tree-optimization/45216
3859         PR tree-optimization/57157
3860         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3861         the (-Y) & (B - 1) variant if OP is |.
3862         * expmed.c (expand_shift_1): For rotations by const0_rtx just
3863         return shifted.  Use (-op1) & (prec - 1) as other_amount
3864         instead of prec - op1.
3865
3866 2013-05-13  Martin Jambor  <mjambor@suse.cz>
3867
3868         PR middle-end/42371
3869         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3870         (ipa_constant_data): New type.
3871         (ipa_jump_func): Use ipa_constant_data to hold information about
3872         constant jump functions.
3873         (ipa_get_jf_constant): Adjust to jump function type changes.
3874         (ipa_get_jf_constant_rdesc): New function.
3875         (ipa_param_descriptor): New field controlled_uses.
3876         (ipa_get_controlled_uses): New function.
3877         (ipa_set_controlled_uses): Likewise.
3878         * ipa-ref.h (ipa_find_reference): Declare.
3879         * ipa-prop.c (ipa_cst_ref_desc): New type.
3880         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3881         changes.
3882         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
3883         New parameter cs.  Adjust all callers.
3884         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3885         (remove_described_reference): New function.
3886         (jfunc_rdesc_usable): Likewise.
3887         (try_make_edge_direct_simple_call): Decrement controlled use count,
3888         attempt to remove reference if it hits zero.
3889         (combine_controlled_uses_counters): New function.
3890         (propagate_controlled_uses): Likewise.
3891         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3892         (ipa_edge_duplication_hook): Duplicate reference descriptions.
3893         (ipa_print_node_params): Print described use counter.
3894         (ipa_write_jump_function): Adjust to jump function type changes.
3895         (ipa_read_jump_function): New parameter CS, pass it to
3896         ipa_set_jf_constant.  Adjust caller.
3897         (ipa_write_node_info): Stream controlled use count
3898         (ipa_read_node_info): Likewise.
3899         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3900         asserting.
3901         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3902         count.  Remove cloning-added reference if it reaches zero.
3903         * ipa-ref.c (ipa_find_reference): New function.
3904
3905 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3906
3907         * config/i386/i386.c (processor_target_table): Modified default
3908         alignment values for AMD BD and BT architectures.
3909
3910 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
3911
3912         * tree-vect-generic.c (uniform_vector_p): Move ...
3913         * tree.c (uniform_vector_p): ... here.
3914         * tree.h (uniform_vector_p): Declare it.
3915         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3916         into a scalar.
3917
3918 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3919
3920         PR tree-optimization/57230
3921         * tree-ssa-strlen.c (handle_char_store): Record length for
3922         array store from STRING_CST.
3923
3924         PR tree-optimization/57230
3925         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3926         check.
3927
3928 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3929
3930         * config/epiphany/epiphany.c (epiphany_init): Check size of
3931         NUM_MODES_FOR_MODE_SWITCHING.
3932         (epiphany_expand_prologue):
3933         Remove CONFIG_REGNUM initial value handling code.
3934         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3935         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3936         (emit_set_fp_mode, epiphany_mode_after): Likewise.
3937         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3938         Don't return 1 for FP_MODE_NONE.
3939         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3940         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3941         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3942         * config/epiphany/epiphany.md (save_config): New pattern.
3943
3944 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
3945
3946         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3947
3948 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
3949
3950         * config/i386/i386.md (memory): Handle sseishft1.
3951         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3952         (*vec_extractv2di_1): Ditto.
3953
3954 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
3955
3956         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3957         saved registers.
3958
3959 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3960
3961         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3962         Add mthumb/march=armv7-a multilib.
3963         Add mthumb/march=armv7-r multilib.
3964         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3965
3966 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
3967
3968         * config/v850/t-rtems: Add more multilibs.
3969
3970 2013-05-10  Richard Biener  <rguenther@suse.de>
3971
3972         PR tree-optimization/57214
3973         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3974         not propagate from SSA names that occur in abnormal PHI nodes.
3975
3976 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
3977
3978         * stor-layout.c (element_precision): New function.
3979         * machmode.h (element_precision): Declare it.
3980         * tree.c (build_minus_one_cst): New function.
3981         (element_precision): Likewise.
3982         * tree.h (build_minus_one_cst): Declare new function.
3983         (element_precision): Likewise.
3984         * fold-const.c (operand_equal_p): Use element_precision.
3985         (fold_binary_loc): Handle vector types.
3986         * convert.c (convert_to_integer): Use element_precision.
3987         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3988         separately.
3989
3990 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3991
3992         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3993         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3994         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3995         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3996         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3997         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3998         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3999         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4000         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4001         (Uuw8): New constraints.
4002         (Usb4): Move into alphabetical order.
4003         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4004         (sd8_operand, ub8_operand, uw8_operand): New predicates.
4005         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4006         previously unnamed patterns.
4007         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4008         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4009         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4010         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4011         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
4012         of specific lengths.
4013
4014 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
4015
4016         * config/i386/i386.md (rotateinv): New code attr.
4017         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4018         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4019         roll $31, %eax, etc.
4020
4021         PR tree-optimization/45216
4022         PR tree-optimization/57157
4023         * tree-ssa-forwprop.c (simplify_rotate): New function.
4024         (ssa_forward_propagate_and_combine): Call it.
4025
4026 2013-05-10  Richard Biener  <rguenther@suse.de>
4027
4028         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4029         disable peeling when we version for aliasing.
4030         (vector_alignment_reachable_p): Honor explicit user alignment.
4031         (vect_supportable_dr_alignment): Likewise.
4032         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4033         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4034         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4035         then peeling to arrange for the cost-model check to come first.
4036
4037 2013-05-10  Alan Modra  <amodra@gmail.com>
4038
4039         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4040         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4041         * configure: Regenerate.
4042
4043 2013-05-10  Alan Modra  <amodra@gmail.com>
4044
4045         PR target/55033
4046         * varasm.c (default_elf_select_section): Move !DECL_P check..
4047         (get_named_section): ..to here before calling get_section_name.
4048         Adjust assertion.
4049         (default_section_type_flags): Add DECL_P check.
4050         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4051         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4052
4053 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4054
4055         * config/epiphany/epiphany.c (epiphany_expand_prologue):
4056         When using gen_stack_adjust_str with a register offset, add a
4057         REG_FRAME_RELATED_EXPR note.
4058
4059 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
4060
4061         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4062         (*vec_extractv4si_zext_mem): Ditto.
4063         (*vec_extractv2di): Add 0->x and x->x alternatives.
4064         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4065         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4066
4067 2013-05-09  Jason Merrill  <jason@redhat.com>
4068
4069         N3639 C++1y VLA support
4070         * gimplify.c (gimplify_vla_decl): Don't touch an existing
4071         DECL_VALUE_EXPR.
4072
4073         * tree.c (build_constructor_va): New.
4074         * tree.h: Declare it.
4075
4076 2013-05-09  Martin Jambor  <mjambor@suse.cz>
4077
4078         PR lto/57084
4079         * gimple-fold.c (canonicalize_constructor_val): Call
4080         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4081
4082 2013-05-09  Jan Hubicka  <jh@suse.cz>
4083             Richard Biener  <rguenther@suse.de>
4084
4085         PR lto/54095
4086         * symtab.c (symtab_make_decl_local): Do not add private names.
4087
4088 2013-05-09  Jan Hubicka  <jh@suse.cz>
4089
4090         PR lto/54095
4091         * symtab.c (insert_to_assembler_name_hash): Handle clones.
4092         (unlink_from_assembler_name_hash): Likewise.
4093         (symtab_prevail_in_asm_name_hash, symtab_register_node,
4094         symtab_unregister_node, symtab_initialize_asm_name_hash,
4095         change_decl_assembler_name): Update.
4096
4097 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
4098
4099         * config/aarch64/aarch64.md: New movtf split.
4100         (*movtf_aarch64): Update.
4101         (aarch64_movdi_tilow): Handle TF modes and rename to
4102         aarch64_movdi_<mode>low.
4103         (aarch64_movdi_tihigh): Handle TF modes and rename to
4104         aarch64_movdi_<mode>high
4105         (aarch64_movtihigh_di): Handle TF modes and rename to
4106         aarch64_mov<mode>high_di
4107         (aarch64_movtilow_di): Handle TF modes and rename to
4108         aarch64_mov<mode>low_di
4109         (aarch64_movtilow_tilow): Remove spurious whitespace.
4110         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4111         splits.
4112         (aarch64_print_operand): Update.
4113
4114 2013-05-09  Alan Modra  <amodra@gmail.com>
4115
4116         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4117         powerpc64le.
4118         * configure: Regenerate.
4119
4120 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4121
4122         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4123         splitter preparation statements.
4124         * config/i386/sse.md (*vec_extract* splitters): Ditto.
4125         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4126         adjust_address_nv.
4127
4128 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4129
4130         * gimple-ssa-strength-reduction.c (count_candidates): Change
4131         return value to int.
4132         (analyze_candidates_and_replace): Change type of length to int.
4133
4134 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4135
4136         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4137         (*vec_extract<mode>): Use VI12_128 mode iterator.
4138         (*vec_extract<mode>_mem): Ditto.
4139         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4140         attribute.
4141
4142 2013-05-08  Diego Novillo  <dnovillo@google.com>
4143
4144         PR bootstrap/54659
4145
4146         Revert:
4147         2012-08-17  Diego Novillo  <dnovillo@google.com>
4148
4149         PR bootstrap/54281
4150         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4151         * config.in: Regenerate.
4152         * configure: Regenerate.
4153         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4154
4155 2013-05-08  Jan Hubicka  <jh@suse.cz>
4156
4157         PR lto/54095
4158         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4159         * cgraph.h (symtab_node_base): Add unique_name.
4160         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4161         input_overwrite_node, input_varpool_node): Stream unique_name.
4162         * cgraphclones.c (cgraph_create_virtual_clone,
4163         cgraph_function_versioning): Set unique_name.
4164         * ipa.c (function_and_variable_visibility): Set unique_name.
4165
4166 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4167
4168         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4169         (alloc_cand_and_find_basis): Restrict conditional candidate
4170         processing to CAND_MULTs.
4171
4172 2013-05-08  Jan Hubicka  <jh@suse.cz>
4173
4174         PR lto/54095
4175         lto-symtab.c (lto_symtab_symbol_p): New function.
4176         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4177         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4178         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4179         Skip static symbols.
4180
4181 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
4182
4183         PR tree-optimization/57200
4184         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4185         Only call inform if the preceding warning_at returns true.
4186
4187 2013-05-07  Han Shen  <shenhan@google.com>
4188
4189         * cfgexpand.c (record_or_union_type_has_array_p): New function.
4190         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4191         * common.opt (fstack-protector-strong): New option.
4192         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4193         * doc/invoke.texi (Optimization Options): Document
4194         "-fstack-protector-strong".
4195         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4196
4197 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4198
4199         * config/mips/mips.c (mips_machine_reorg2): Return 0.
4200
4201 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
4202
4203         * ira.c (update_equiv_regs): Add insn having equiv memory even if
4204         it is not lhs of the insn.
4205         (setup_reg_equiv): Remove insn having equiv memory which it is not
4206         lhs of the insn.
4207         * lra-constraints.c (process_address): Try to improve generation
4208         code for address base + disp.
4209         (lra_constraints): Make correct the code for checking insn setting
4210         up backward equivalence.  Remove insn only if it is in the init
4211         insn list.
4212         * lra-eliminations.c (update_reg_eliminate): Change return value.
4213         (lra_eliminate): Use the result.
4214
4215 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
4216
4217         * config/i386/sse.md (ssescalarnummask): New mode attribute.
4218         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4219         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4220         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4221         register target operands.
4222         (*vec_extractv8hi_sse2): New pattern.
4223         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4224         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4225         (*vec_extract<mode>_mem): New insn and split pattern.
4226
4227 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
4228
4229         * config/arm/arm.c (arm_asan_shadow_offset): New function.
4230         (TARGET_ASAN_SHADOW_OFFSET): Define.
4231         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4232         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4233
4234 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4235
4236         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4237         (incr_vec_index): Return -1 if increment not found.
4238         (create_add_on_incoming_edge): Assert if increment not found.
4239         (record_increment): Limit number of increments recorded.
4240         (all_phi_incrs_profitable): Return false if an increment not found.
4241         (replace_profitable_candidates): Don't process increments that were
4242         not recorded.
4243         (analyze_candidates_and_replace): Limit size of incr_vec.
4244
4245 2013-05-07  Richard Biener  <rguenther@suse.de>
4246
4247         * calls.c (special_function_p): setjmp-like functions are leaf.
4248         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4249         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4250
4251 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
4252
4253         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4254         (aarch64_simd_mov<mode>): New expander.
4255         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4256         (aarch64_simd_mov_to_<mode>high): Likewise.
4257         (aarch64_simd_mov_from_<mode>low): Likewise.
4258         (aarch64_simd_mov_from_<mode>high): Likewise.
4259         (aarch64_dup_lane<mode>): Update.
4260         (aarch64_dup_lanedi): New instruction pattern.
4261         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4262         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4263
4264 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4265
4266         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4267         (replace_mult_candidate): Remove unnecessary argument; remove
4268         unnecessary parameter from call to introduce_cast_before_cand.
4269         (replace_unconditional_candidate): Remove unnecessary parameter
4270         from call to replace_mult_candidate.
4271         (replace_conditional_candidate): Likewise.
4272         (insert_initializers): Use make_temp_ssa_name.
4273         (introduce_cast_before_cand): Remove unnecessary argument; use
4274         make_temp_ssa_name.
4275         (replace_one_candidate): Remove unnecessary argument; remove
4276         unnecessary parameter from calls to introduce_cast_before_cand.
4277         (replace_profitable_candidates): Remove unnecessary parameters
4278         from calls to replace_one_candidate.
4279
4280 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4281
4282         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4283         phi def as possibly hiding a basis for a CAND_ADD whose operands
4284         have been commuted in the analysis.
4285         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4286
4287 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4288
4289         * config/aarch64/aarch64.md
4290         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4291         shift value between 0-4.
4292
4293 2013-05-07  Richard Biener  <rguenther@suse.de>
4294
4295         * double-int.h (rshift): New overload.
4296         * double-int.c (rshift): New function.
4297         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4298         (create_reference_ops_from_ref): Remove.
4299         (vn_reference_insert): Use shared ops for constructing the
4300         reference and copy it.
4301
4302 2013-05-07  Richard Biener  <rguenther@suse.de>
4303
4304         PR middle-end/57190
4305         * tree-eh.c (sink_clobbers): Properly propagate
4306         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4307
4308 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
4309
4310         PR tree-optimization/57149
4311         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4312         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4313         collect_phi_def_edges, execute_late_warn_uninitialized): Use
4314         uninit_undefined_value_p instead of ssa_undefined_value_p.
4315
4316         PR debug/57184
4317         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4318         for modifier == EXPAND_INITIALIZER.
4319
4320 2013-05-07  Anton Blanchard  <anton@samba.org>
4321
4322         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4323         for powerpc64 little endian.
4324         * configure: Regenerate.
4325
4326 2013-05-06  Graham Stott  <grahams@btinternet.com>
4327
4328         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4329         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4330         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4331         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4332
4333 2013-05-06  Graham Stott  <grahams@btinternet.com>
4334
4335         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4336         codes which allow non-lvalues.
4337
4338 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
4339
4340         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4341         components are all 1s.
4342         (integer_minus_onep): New function.
4343         * tree.h (integer_minus_onep): Declare it.
4344         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4345         integer_minus_onep instead of integer_all_onesp.
4346
4347 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4348
4349         PR target/52933
4350         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4351         variations of these patterns.
4352
4353 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4354
4355         * config/i386/i386.md (isa): Add x64_sse4 member.
4356         (enabled): Handle x64_sse4.
4357         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4358         instruction for 64bit SSE4_1 targets.  Update insn attributes.
4359         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4360         instruction for SSE4_1 targets.  Update insn attributes.
4361         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4362         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4363         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4364         const_1 selector.
4365         (*vec_extractv4si): Rename from *sse4_1_pextrd.
4366         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4367         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4368
4369 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4370
4371         PR target/57108
4372         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4373
4374 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
4375
4376         * final.c (do_assembler_dialects): Don't handle curly braces and
4377         vertical bar escaped by % as dialect delimiters.
4378         (output_asm_insn): Print curly braces and vertical bar if escaped
4379         by % and ASSEMBLER_DIALECT defined.
4380         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4381         * doc/tm.texi: Regenerated.
4382
4383 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4384
4385         * config/mips/mips.c: Include tree-pass.h.
4386         (mips_reorg): Split in pre- and post-dbr_schedule parts.
4387         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4388         (pass_mips_machine_reorg2): New machine specific pass.
4389         (insert_pass_mips_machine_reorg2): New pass plugin definition.
4390         (mips_option_override): Register the new pass.
4391         * rtl.h (cleanup_barriers): Remove prototype.
4392         (dbr_schedule): Likewise.
4393         * jump.c (cleanup_barriers): Make static.
4394         * reorg.c (dbr_schedule): Likewise.
4395
4396 2013-05-06  Richard Biener  <rguenther@suse.de>
4397
4398         PR tree-optimization/57185
4399         * tree-parloops.c (add_field_for_reduction): Handle anonymous
4400         SSA names properly.
4401
4402 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4403
4404         PR target/57106
4405         * config/i386/i386.c (add_parameter_dependencies): Add dependence
4406         between "first_arg" and "insn", not "last" and "insn".
4407
4408 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4409
4410         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4411         (find_candidates_in_block): Re-enable slsr_process_phi.
4412         (create_phi_basis): Fix double counting of candidate adjustment.
4413
4414 2013-05-06  Richard Biener  <rguenther@suse.de>
4415
4416         PR middle-end/57147
4417         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4418         the edge is also fallthru, preserve it and just clear the
4419         abnormal flag.
4420         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4421         also complex, preserve that and just clear the fallthru flag.
4422         * tree-inline.c (update_ssa_across_abnormal_edges): Also
4423         update virtual operands.
4424
4425 2013-05-06  Alan Modra  <amodra@gmail.com>
4426
4427         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4428         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4429         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4430         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4431         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4432         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4433
4434 2013-05-06  Alan Modra  <amodra@gmail.com>
4435
4436         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4437         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
4438         (DEFAULT_ASM_ENDIAN): Define.
4439         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4440         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4441         Update -K PIC clause from sysv4.h.
4442         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4443         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4444
4445 2013-05-06  Alan Modra  <amodra@gmail.com>
4446
4447         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4448         twice for little-endian.
4449         (ashrdi3_no_power, ashrdi3): Support little-endian.
4450
4451 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4452
4453         PR target/55303
4454         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4455         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4456         related expanders.
4457         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4458         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4459         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4460         New predicates.
4461
4462 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4463             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4464
4465         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4466         * config/pa/pa.opt: Make mbig-switch a no-op.
4467         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4468         (CASE_VECTOR_MODE): Always return SImode.
4469         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4470         for the !TARGET_BIG_SWITCH case.
4471         * config/pa/pa-linux.h: Likewise.
4472         * config/pa/pa-openbsd.h: Likewise.
4473         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4474         * config/pa/pa.md (short_jump): Remove define_insn.
4475         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4476         (casesi0): Remove define_insn.
4477         (type): Remove btable_branch.
4478         (pa_combine_type): Likewise.
4479         (in_nullified_branch_delay): Likewise.
4480         (in_call_delay): Likewise.
4481         (define_delay): Likewise.
4482         (define_insn_reservation "Z3"): Likewise.
4483         (define_insn_reservation "Z4"): Likewise.
4484         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4485         (pa_adjust_insn_length): Remove adjustment for btable branches.
4486         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4487         and mno-big-switch
4488
4489 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
4490
4491         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4492         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4493         Add m->r,x alternatives.
4494         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4495         splitters using SWI48x mode iterator.
4496         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
4497         TARGET_64BIT.  Add m->x alternative.
4498         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4499         Add o->x alternative.  Enable for TARGET_SSE.
4500         (sse_storeq): Remove expander.
4501         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4502         with memory input operand.
4503         (*vec_extractv2di_1 splitter): New.
4504         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4505         * config/i386/i386.md (ssevecmodelower): New mode attribute.
4506
4507 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4508
4509         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
4510         (INT_LOWPART): Delete.
4511         (extract_MB): Adjust.
4512         (extract_ME): Adjust.
4513         (print_operand): Adjust.
4514
4515 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4516
4517         * config/rs6000/predicates.md (reg_or_add_cint_operand,
4518         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4519         (reg_or_logical_cint_operand, easy_fp_constant,
4520         logical_const_operand): Delete "CONST_DOUBLE" case.
4521         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4522         "HOST_BITS_PER_WIDE_INT == 64" test.
4523         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
4524         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4525         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4526         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4527         test.
4528         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4529         CONST_DOUBLE DImode/VOIDmode case.
4530         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4531         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4532         CONST_DOUBLE VOIDmode case.
4533         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4534         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4535         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4536         Delete CONST_DOUBLE case.
4537         (splitters for mov FMOVE64 const_double): Delete
4538         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4539         "HOST_BITS_PER_WIDE_INT >= 64" test.
4540         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4541         case.
4542         (mov DI const_double): Delete.
4543
4544 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
4545
4546         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4547         on op shows all bits zero in mode of a lowpart subreg, return zero.
4548
4549 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4550
4551         PR target/57150
4552         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4553         to save TFmode registers and DImode to save TImode registers for
4554         caller save operations.
4555         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4556         mark being partially clobbered since they only use the first
4557         double word.
4558
4559         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4560         and TDmode only use the upper 64-bits of each VSX register.
4561
4562 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4563
4564         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4565         (find_candidates_in_block): Disable slsr_process_phi.
4566
4567 2013-05-03  Guozhi Wei  <carrot@google.com>
4568
4569         * coverage.c (coverage_obj_init): Move the construction of gcov
4570         constructor to ...
4571         (build_init_ctor): ... here.
4572
4573 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4574
4575         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4576         (slsr_cand_d): Redefine def_phi.
4577         (stride_status, phi_adjust_status, count_phis_status): New enums.
4578         (find_phi_def): New.
4579         (find_basis_for_base_expr): New.
4580         (find_basis_for_candidate): Handle hidden bases.
4581         (alloc_cand_and_find_basis): Handle phi candidates.
4582         (slsr_process_phi): New.
4583         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4584         (create_mul_imm_cand): Likewise.
4585         (create_add_ssa_cand): Exclude phi base candidates.
4586         (create_add_imm_cand): Likewise.
4587         (slsr_process_cast): Likewise.
4588         (slsr_process_copy): Likewise.
4589         (find_candidates_in_block): Handle phi candidates.
4590         (dump_candidate): Likewise.
4591         (unconditional_cands): Delete.
4592         (unconditional_cands_with_known_stride_p): Delete.
4593         (phi_dependent_cand_p): New.
4594         (cand_increment): Handle phi-dependent candidates.
4595         (replace_dependent): Delete.
4596         (replace_mult_candidate): New.
4597         (replace_unconditional_candidate): New.
4598         (incr_vec_index): Move to avoid forward reference.
4599         (create_add_on_incoming_edge): New.
4600         (create_phi_basis): New.
4601         (replace_dependents): Delete.
4602         (replace_conditional_candidate): New.
4603         (phi_add_costs): New.
4604         (replace_uncond_cands_and_profitable_phis): New.
4605         (record_increment): Handle phi adjustments.
4606         (record_phi_increments): New.
4607         (record_increments): Handle phi adjustments.
4608         (phi_incr_cost): New.
4609         (lowest_cost_path): Handle phis.
4610         (total_savings): Likewise.
4611         (analyze_increments): Likewise.
4612         (ncd_with_phi): New.
4613         (ncd_of_cand_and_phis): New.
4614         (nearest_common_dominator_for_cands): Handle phi increments.
4615         (all_phi_incrs_profitable): New.
4616         (replace_profitable_candidates): Handle phi-dependent candidates.
4617         (analyze_candidates_and_replace): Likewise.
4618
4619 2013-05-03  Teresa Johnson  <tejohnson@google.com>
4620
4621         PR bootstrap/57154
4622         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4623         do not exceed REG_BR_PROB_BASE.
4624
4625 2013-05-03  Jeff Law  <law@redhat.com>
4626
4627         PR tree-optimization/57144
4628         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4629         operand of the condition will bit into the new type when eliminating
4630         a cast feeding a condition.
4631
4632 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
4633
4634         PR rtl-optimization/57130
4635         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4636         of COMPARE as in_code to the recursive call if needed.
4637
4638 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
4639
4640         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4641         (enabled): Handle new members.
4642         * config/i386/sse.md (*vec_concatv2si): Merge from
4643         *vec_concatv2si_sse2 and vec_concatv2si_sse.
4644         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4645
4646 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
4647
4648         PR tree-optimization/57027
4649         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4650         for fnms opportunity, check we got the prerequisite kind
4651         of tree / gimple before using accessor functions.
4652
4653 2013-05-03  Richard Biener  <rguenther@suse.de>
4654
4655         * double-int.h (lshift): New overload without precision
4656         and arith argument.
4657         (operator *=, operator +=, operator -=): Move ...
4658         * double-int.c (operator *=, operator +=, operator -=): ... here
4659         and implement more efficiently.
4660         (mul_double_with_sign): Remove.
4661         (lshift_double): Adjust to take unsinged shift argument, push
4662         dispatching code to callers.
4663         (mul_double_wide_with_sign): Add early out for callers that
4664         are not interested in high parts or overflow.
4665         (lshift): New function.
4666         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4667         dispatch code here.
4668         (lrotate, rrotate): Use logical shifts.
4669         * expr.c (get_inner_reference): Use lshift.
4670         * fixed-value.c (do_fixed_divide): Likewise.
4671         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4672         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4673         (indirect_refs_may_alias_p): Likewise.
4674         (stmt_kills_ref_p_1): Likewise.
4675
4676 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4677
4678         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4679
4680 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4681
4682         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4683         scalar form of FABD instruction.
4684
4685 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4686
4687         * lra-constraints.c (process_alt_operands): Add checking alt
4688         number to choose the best alternative.
4689
4690 2013-05-02  Richard Biener  <rguenther@suse.de>
4691
4692         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4693         bitmap and its handling.
4694         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4695
4696 2013-05-02  Richard Biener  <rguenther@suse.de>
4697
4698         PR middle-end/57140
4699         * tree-inline.c (copy_loops): Properly handle removed loops.
4700         (copy_cfg_body): Mark destination loops for fixup if source
4701         loops needed fixup.
4702
4703 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
4704
4705         PR target/56732
4706         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4707         generating simple_return for naked functions.
4708
4709 2013-05-02  Martin Jambor  <mjambor@suse.cz>
4710
4711         PR middle-end/56988
4712         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4713         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4714         flags match.
4715         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4716         ipa_agg_replacement_value structures.
4717         (known_aggs_to_agg_replacement_list): Likewise.
4718         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4719         (read_agg_replacement_chain): Likewise.
4720         (ipcp_transform_function): Also check that by_ref flags match.
4721
4722 2013-05-02  Richard Biener  <rguenther@suse.de>
4723
4724         * graphds.h (struct graph): Add obstack member.
4725         * graphds.c (new_graph): Initialize obstack and allocate
4726         vertices from it.
4727         (add_edge): Allocate edge from the obstack.
4728         (free_graph): Free the obstack instead of all edges and vertices.
4729
4730 2013-05-02  Teresa Johnson  <tejohnson@google.com>
4731
4732         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4733         divides.
4734         * cfg.c (update_bb_profile_for_threading): Ditto.
4735         * tree-inline.c (copy_bb): Ditto.
4736         (copy_edges_for_bb): Ditto.
4737         (initialize_cfun): Ditto.
4738         (copy_cfg_body): Ditto.
4739         (expand_call_inline): Ditto.
4740         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4741         (estimate_node_size_and_time): Ditto.
4742         (inline_merge_summary): Ditto.
4743         * cgraphclones.c (cgraph_clone_edge): Ditto.
4744         (cgraph_clone_node): Ditto.
4745         * sched-rgn.c (compute_dom_prob_ps): Ditto.
4746         (compute_trg_info): Ditto.
4747
4748 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4749
4750         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4751         S reg when fp attribute set.
4752         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4753
4754 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4755
4756         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4757         New pattern.
4758         (*and_one_cmplsi3_compare0_uxtw): Likewise.
4759         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4760         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4761
4762 2013-05-02  Richard Biener  <rguenther@suse.de>
4763
4764         * tree-scalar-evolution.c (scev_info_hasher): Remove.
4765         (struct instantiate_cache_entry): New type.
4766         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4767         (struct instantiate_cache_type): New type.
4768         (set_instantiated_value, get_instantiated_value): Remove.
4769         (get_instantiated_value_entry): New function.
4770         (instantiate_scev_name): Use the new cache and adjust.
4771         (instantiate_scev_poly): Adjust.
4772         (instantiate_scev_binary): Likewise.
4773         (instantiate_array_ref): Likewise.
4774         (instantiate_scev_convert): Likewise.
4775         (instantiate_scev_not): Likewise.
4776         (instantiate_scev_3): Likewise.
4777         (instantiate_scev_2): Likewise.
4778         (instantiate_scev_r): Likewise.
4779         (instantiate_scev): Likewise.
4780         (resolve_mixers): Likewise.
4781
4782 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
4783
4784         PR target/57091
4785         * lra-constraints.c (best_small_class_operands_num): Remove.
4786         (process_alt_operands): Remove small_class_operands_num.  Take
4787         small classes operands into losers and only if the operand is not
4788         matched.  Modify debugging output.
4789         (curr_insn_transform): Remove best_small_class_operands_num.
4790         Print insn name.
4791
4792 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4793
4794         * config/aarch64/aarch64-builtins.c
4795         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4796         * config/aarch64/aarch64-simd-builtins.def
4797         (reduc_splus_): Add new modes.
4798         (reduc_uplus_): New.
4799         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4800         (reduc_uplus_v4sf): Likewise.
4801         (reduc_splus_v4sf): Likewise.
4802         (aarch64_addv<mode>): Likewise.
4803         (reduc_uplus_<mode>): Likewise.
4804         (reduc_splus_<mode>): Likewise.
4805         (aarch64_addvv2di): Likewise.
4806         (reduc_uplus_v2di): Likewise.
4807         (reduc_splus_v2di): Likewise.
4808         (aarch64_addvv2si): Likewise.
4809         (reduc_uplus_v2si): Likewise.
4810         (reduc_splus_v2si): Likewise.
4811         (reduc_<sur>plus_<mode>): New.
4812         (reduc_<sur>plus_v2di): Likewise.
4813         (reduc_<sur>plus_v2si): Likewise.
4814         (reduc_<sur>plus_v4sf): Likewise.
4815         (aarch64_addpv4sf): Likewise.
4816         * config/aarch64/arm_neon.h
4817         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4818         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4819         add UNSPEC_SADDV, UNSPEC_UADDV.
4820         (SUADDV): New.
4821         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4822
4823 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4824
4825         * config/aarch64/arm_neon.h
4826         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4827
4828 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4829
4830         * config/aarch64/aarch64-builtins
4831         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4832
4833 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4834
4835         * config/aarch64/aarch64-simd-builtins.def
4836         (reduc_smax_): New.
4837         (reduc_smin_): Likewise.
4838         (reduc_umax_): Likewise.
4839         (reduc_umin_): Likewise.
4840         (reduc_smax_nan_): Likewise.
4841         (reduc_smin_nan_): Likewise.
4842         (fmax): Remove.
4843         (fmin): Likewise.
4844         (smax): Update for V2SF, V4SF and V2DF modes.
4845         (smin): Likewise.
4846         (smax_nan): New.
4847         (smin_nan): Likewise.
4848         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4849         (<su><maxmin><mode>3): ...This, refactor.
4850         (s<maxmin><mode>3): New.
4851         (<maxmin_uns><mode>3): Likewise.
4852         (reduc_<maxmin_uns>_<mode>): Refactor.
4853         (reduc_<maxmin_uns>_v4sf): Likewise.
4854         (reduc_<maxmin_uns>_v2si): Likewise.
4855         (aarch64_<fmaxmin><mode>: Remove.
4856         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4857         new builtin names.
4858         (vmin<q>_f<32,64>): Likewise.
4859         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4860         (FMAXMIN): New.
4861         (su): Add mappings for smax, smin, umax, umin.
4862         (maxmin): New.
4863         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4864         (FMAXMIN): Rename as...
4865         (FMAXMIN_UNS): ...This.
4866         (maxminv): Remove.
4867         (fmaxminv): Likewise.
4868         (fmaxmin): Likewise.
4869         (maxmin_uns): New.
4870         (maxmin_uns_op): Likewise.
4871
4872 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4873
4874         * config/aarch64/arm_neon.h
4875         (vac<ge, gt><sd>_f<32, 64>): Rename to...
4876         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4877         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4878
4879 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4880
4881         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4882         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4883
4884 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4885
4886         * config/aarch64/aarch64-simd.md
4887         (vcond<mode>_internal): Handle special cases for constant masks.
4888         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4889         (vcondu<mode><mode>): Likewise.
4890         (vcond<v_cmp_result><mode>): New.
4891
4892 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4893
4894         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4895         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4896         * config/aarch64/aarch64-simd-builtins.def
4897         (cmeq): Update to BUILTIN_VALLDI.
4898         (cmgt): Likewise.
4899         (cmge): Likewise.
4900         (cmle): Likewise.
4901         (cmlt): Likewise.
4902         * config/aarch64/arm_neon.h
4903         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4904         to builtins or C as appropriate.
4905
4906 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4907
4908         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4909         (cmgeu): ...This.
4910         (cmhi): Rename to...
4911         (cmgtu): ...This.
4912         * config/aarch64/aarch64-simd.md
4913         (simd_mode): Add SF.
4914         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4915         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4916         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4917         (cstore<mode>_neg): ...This.
4918         * config/aarch64/iterators.md
4919         (VALLF): new.
4920         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4921         (COMPARISONS): New.
4922         (UCOMPARISONS): Likewise.
4923         (optab): Add missing comparisons.
4924         (n_optab): New.
4925         (cmp_1): Likewise.
4926         (cmp_2): Likewise.
4927         (CMP): Likewise.
4928         (cmp): Remove.
4929         (VCMP_S): Likewise.
4930         (VCMP_U): Likewise.
4931         (V_cmp_result): Add DF, SF modes.
4932         (v_cmp_result): Likewise.
4933         (v): Likewise.
4934         (vmtype): Likewise.
4935         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4936
4937 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
4938
4939         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4940         define_insn to define_insn_and_split.
4941         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4942         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4943         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4944         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4945         (thumb2_negscc): Likewise.
4946
4947 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4948
4949         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4950
4951 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
4952
4953         * config/arm/thumb2.md: Remove trailing whitespaces.
4954
4955 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4956
4957         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4958         Use gen_int_mode rather than GEN_INT.
4959
4960 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4961
4962         * value-prof.c (stream_in_histogram_value): Remove the strayed
4963         debug_gimple_stmt.
4964
4965 2013-04-30  Richard Biener  <rguenther@suse.de>
4966
4967         PR middle-end/57122
4968         * cfghooks.c (split_edge): Properly check for the loop latch edge.
4969
4970 2013-04-30  Richard Biener  <rguenther@suse.de>
4971
4972         PR middle-end/57107
4973         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4974
4975 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
4976
4977         PR rtl-optimization/56957
4978         PR rtl-optimization/57105
4979         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4980         variable.  Use just INSN_UID for determining whether an insn
4981         should be only disconnected from the insn stream.
4982         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4983
4984 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
4985
4986         PR tree-optimization/57104
4987         * tsan.c (instrument_expr): Don't instrument accesses to
4988         DECL_HARD_REGISTER VAR_DECLs.
4989
4990 2013-04-30  Richard Biener  <rguenther@suse.de>
4991
4992         * function.h (loops_for_fn): New inline function.
4993         (set_loops_for_fn): Likewise.
4994         * cfgloop.h (place_new_loop): Add struct function parameter.
4995         (get_loop): Likewise.
4996         (get_loops): Likewise.
4997         (number_of_loops): Likewise.
4998         (fel_next): Adjust.
4999         (fel_init): Likewise.
5000         * cfg.c (get_loop_copy): Adjust.
5001         * cfgloop.c (flow_loops_dump): Likewise.
5002         (record_loop_exits): Likewise.
5003         (verify_loop_structure): Likewise.
5004         * cfgloopanal.c (mark_irreducible_loops): Likewise.
5005         (estimate_reg_pressure_cost): Likewise.
5006         (mark_loop_exit_edges): Likewise.
5007         * cfgloopmanip.c (place_new_loop): Likewise.
5008         (add_loop): Likewise.
5009         (duplicate_loop): Likewise.
5010         * graph.c (draw_cfg_nodes): Likewise.
5011         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5012         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5013         (extract_affine_chrec): Likewise.
5014         (build_scop_iteration_domain): Likewise.
5015         * graphite.c (graphite_initialize): Likewise.
5016         * ira-build.c (create_loop_tree_nodes): Likewise.
5017         (more_one_region_p): Likewise.
5018         (rebuild_regno_allocno_maps): Likewise.
5019         (mark_loops_for_removal): Likewise.
5020         (mark_all_loops_for_removal): Likewise.
5021         (remove_unnecessary_regions): Likewise.
5022         (ira_build): Likewise.
5023         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5024         * loop-init.c (fix_loop_structure): Likewise.
5025         (gate_rtl_move_loop_invariants): Likewise.
5026         (gate_rtl_unswitch): Likewise.
5027         (gate_rtl_unroll_and_peel_loops): Likewise.
5028         (rtl_doloop): Likewise.
5029         * lto-streamer-in.c (input_cfg): Likewise.
5030         * lto-streamer-out.c (output_cfg): Likewise.
5031         * modulo-sched.c (sms_schedule): Likewise.
5032         * predict.c (tree_estimate_probability): Likewise.
5033         (tree_estimate_probability_driver): Likewise.
5034         (estimate_loops): Likewise.
5035         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5036         (move_sese_region_to_fn): Likewise.
5037         (debug_loop_num): Likewise.
5038         * tree-chrec.c (chrec_evaluate): Likewise.
5039         (hide_evolution_in_other_loops_than_loop): Likewise.
5040         (chrec_component_in_loop_num): Likewise.
5041         (reset_evolution_in_loop): Likewise.
5042         (evolution_function_is_invariant_rec_p): Likewise.
5043         * tree-if-conv.c (main_tree_if_conversion): Likewise.
5044         * tree-inline.c (copy_loops): Likewise.
5045         (copy_cfg_body): Likewise.
5046         (tree_function_versioning): Likewise.
5047         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5048         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5049         Likewise.
5050         (add_to_evolution_1): Likewise.
5051         (scev_const_prop): Likewise.
5052         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5053         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5054         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5055         (tree_ssa_lim_initialize): Likewise.
5056         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5057         (verify_loop_closed_ssa): Likewise.
5058         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
5059         (tree_ssa_loop_im): Likewise.
5060         (tree_ssa_loop_unswitch): Likewise.
5061         (tree_vectorize): Likewise.
5062         (check_data_deps): Likewise.
5063         (tree_ssa_loop_ivcanon): Likewise.
5064         (tree_ssa_loop_bounds): Likewise.
5065         (tree_complete_unroll): Likewise.
5066         (tree_complete_unroll_inner): Likewise.
5067         (tree_parallelize_loops): Likewise.
5068         (tree_ssa_loop_prefetch): Likewise.
5069         (tree_ssa_loop_ivopts): Likewise.
5070         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5071         * tree-vectorizer.c (vectorize_loops): Likewise.
5072
5073 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
5074
5075         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5076         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5077         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5078         with EABI_LINK_SPEC.
5079
5080 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5081
5082         PR target/44578
5083         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5084         alternative.
5085
5086 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5087
5088         PR target/57097
5089         * lra-constraints.c (process_alt_operands): Discourage a bit more
5090         using memory for pseudos.  Print cost dump for alternatives.
5091         Modify cost values for conflicts with early clobbers.
5092         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5093
5094 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5095
5096         PR target/57098
5097         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5098
5099 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5100
5101         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5102         from/to S register.
5103         (movdi_aarch64): Support LDR/STR from/to D register.
5104
5105 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5106
5107         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5108         or higher by default.
5109
5110 2013-04-29  Richard Biener  <rguenther@suse.de>
5111
5112         PR middle-end/57075
5113         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5114         even if not adding abnormal edges for calls that can make
5115         abnormal gotos.
5116
5117 2013-04-29  Richard Biener  <rguenther@suse.de>
5118
5119         PR middle-end/57103
5120         * tree-cfg.c (move_stmt_op): Fix condition under which to update
5121         TREE_BLOCK.
5122         (move_stmt_r): Remove redundant checking.
5123
5124 2013-04-29  Teresa Johnson  <tejohnson@google.com>
5125
5126         PR bootstrap/57077
5127         * basic-block.h (apply_scale): New function.
5128         (apply_probability): Use apply_scale.
5129         * gimple-streamer-in.c (input_bb): Ditto.
5130         * lto-streamer-in.c (input_cfg): Ditto.
5131         * lto-cgraph.c (merge_profile_summaries): Ditto.
5132         * tree-optimize.c (execute_fixup_cfg): Ditto.
5133         * tree-inline.c (copy_bb): Update comment to use apply_scale.
5134         (copy_edges_for_bb): Ditto.
5135         (copy_cfg_body): Ditto.
5136
5137 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5138
5139         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5140         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5141         (tail_merge_optimize): Handle current_loops == NULL.
5142
5143 2013-04-26  Jeff Law  <law@redhat.com>
5144
5145         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5146         (simplify_cond_using_ranges): Generalize code to simplify
5147         COND_EXPRs where one argument is a constant and the other
5148         is an SSA_NAME created by an integral type conversion.
5149
5150 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5151
5152         * config/arm/arm.md (store_minmaxsi): Use only when
5153         optimize_insn_for_size_p.
5154
5155 2013-04-29  Christian Bruel  <christian.bruel@st.com>
5156
5157         PR target/57108
5158         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5159
5160 2013-04-29  Richard Biener  <rguenther@suse.de>
5161
5162         PR middle-end/57089
5163         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5164         loop tree make sure to schedule a fixup for the child as well.
5165         (expand_omp_for_generic): Properly add loops.
5166         (expand_omp_for_static_nochunk): Likewise.
5167         (expand_omp_for_static_chunk): Likewise.
5168         (expand_omp_for): For the degenerate case fixup loops.
5169         (expand_omp_sections): Fix default bb placement in loops.
5170         (expand_omp_atomic_pipeline): Properly add loops.
5171
5172 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5173
5174         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5175
5176 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5177
5178         * tree-ssa-tail-merge.c: Update header comment.
5179
5180 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5181
5182         * config/aarch64/arm_neon.h
5183         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5184         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5185         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5186         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5187         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5188         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5189         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5190         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5191
5192 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5193
5194         * config/aarch64/aarch64-simd.md
5195         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5196         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5197         fix_trunc, fixuns_trunc.
5198         (ftrunc<VDQF:mode>2): New.
5199         * config/aarch64/iterators.md (optab): Add fix, fixuns.
5200         (fix_trunc_optab): New.
5201
5202 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5203
5204         * config/aarch64/aarch64-builtins.c
5205         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5206         iceilf, lround, iroundf.
5207
5208 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5209
5210         PR target/54349
5211         * config/i386/i386.h (enum ix86_tune_indices)
5212         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5213         New, split from X86_TUNE_INTER_UNIT_MOVES.
5214         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5215         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5216         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5217         (TARGET_INTER_UNIT_MOVES): Remove.
5218         * config/i386/i386.c (initial_ix86_tune_features): Update.
5219         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5220         (ix86_expand_convert_uns_didf_sse): Use
5221         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5222         (ix86_expand_vector_init_one_nonzero): Ditto.
5223         (ix86_expand_vector_init_interleave): Ditto.
5224         (inline_secondary_memory_needed): Return true for moves from SSE class
5225         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5226         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5227         * config/i386/constraints.md (Yi, Ym): Depend on
5228         TARGET_INTER_UNIT_MOVES_TO_VEC.
5229         (Yj, Yn): New constraints.
5230         * config/i386/i386.md (*movdi_internal): Change constraints of
5231         operand 1 from Yi to Yj and from Ym to Yn.
5232         (*movsi_internal): Ditto.
5233         (*movdf_internal): Ditto.
5234         (*movsf_internal): Ditto.
5235         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5236         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5237         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5238         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5239         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5240         * config/i386/sse.md (movdi_to_sse): Ditto.
5241         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5242         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5243         TARGET_INTER_UNIT_MOVES.
5244         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5245         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5246         instead of TARGET_INTER_UNIT_MOVES.
5247         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5248         operand 1 from Yi to Yj and from Ym to Yn.
5249
5250 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5251
5252         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5253         (float_truncate_hi_): Likewise.
5254         (float_extend_lo_): Likewise.
5255         (float_truncate_lo_): Likewise.
5256         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5257         (aarch64_float_extend_lo_v2df): Likewise.
5258         (vec_unpacks_hi_v4sf): Likewise.
5259         (aarch64_float_truncate_lo_v2sf): Likewise.
5260         (aarch64_float_truncate_hi_v4sf): Likewise.
5261         (vec_pack_trunc_v2df): Likewise.
5262         (vec_pack_trunc_df): Likewise.
5263
5264 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5265
5266         * config/aarch64/aarch64-builtins.c
5267         (aarch64_fold_builtin): Fold float conversions.
5268         * config/aarch64/aarch64-simd-builtins.def
5269         (floatv2si, floatv4si, floatv2di): New.
5270         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5271         * config/aarch64/aarch64-simd.md
5272         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5273         * config/aarch64/iterators.md (FLOATUORS): New.
5274         (optab): Add float, floatuns.
5275         (su_optab): Likewise.
5276
5277 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5278
5279         * config/aarch64/aarch64-builtins.c
5280         (aarch64_builtin_vectorized_function): Use new names for
5281         fcvt builtins.
5282         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5283         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5284         (fcvtzu): Split as...
5285         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5286         (fcvtas): Split as...
5287         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5288         (fcvtau): Split as...
5289         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5290         (fcvtps): Split as...
5291         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5292         (fcvtpu): Split as...
5293         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5294         (fcvtms): Split as...
5295         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5296         (fcvtmu): Split as...
5297         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5298         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5299         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5300         (lfrintnusf, lfrintnudf): Likewise.
5301         * config/aarch64/aarch64-simd.md
5302         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5303         define_insn.
5304         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5305         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5306         (fcvt_pattern): Likewise.
5307
5308 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5309
5310         * config/aarch64/aarch64-simd.md
5311         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5312         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5313
5314 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5315
5316         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5317         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5318         (vrnd<a,m,n,p>_f32): Implement using builtins.
5319         (vrnd<i,x><q>_f<32, 64>): New.
5320
5321 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5322
5323         * config/aarch64/aarch64-builtins.c
5324         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5325         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5326         (frintz): Rename to...
5327         (btrunc): ...this.
5328         (frintp): Rename to...
5329         (ceil): ...this.
5330         (frintm): Rename to...
5331         (floor): ...this.
5332         (frinti): Rename to...
5333         (nearbyint): ...this.
5334         (frintx): Rename to...
5335         (rint): ...this.
5336         (frinta): Rename to...
5337         (round): ...this.
5338         * config/aarch64/aarch64-simd.md
5339         (aarch64_frint<frint_suffix><mode>): Delete.
5340         (<frint_pattern><mode>2): Convert to insn.
5341         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5342         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5343         (frint_pattern): Likewise.
5344         (frint_suffix): Likewise.
5345
5346 2013-04-29  Richard Biener  <rguenther@suse.de>
5347
5348         PR tree-optimization/57081
5349         * loop-init.c: Include tree-flow.h.
5350         (loop_optimizer_finalize): Free number of iteration estimates.
5351         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5352
5353 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
5354
5355         PR tree-optimization/57083
5356         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5357         non-singleton shift count range, zero extend low_bound for uns case.
5358
5359         * config/i386/predicates.md (general_vector_operand): New predicate.
5360         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5361         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5362         if they aren't nonimmediate operands.  If their original values
5363         satisfy const_vector_equal_evenodd_p, don't shift them.
5364         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5365         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
5366         if not nonimmediate_operand.
5367         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5368         instead of register_operand.
5369         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5370
5371 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5372
5373         * stor-layout.c (finalize_size_functions): Allocate a structure and
5374         reset cfun before dumping the functions.
5375
5376 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
5377
5378         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5379
5380         PR target/56866
5381         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5382         use xop_pmacsdqh if uns_p.
5383         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5384         the immediate rotate count.
5385
5386 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
5387
5388         * rtl.h (struct rtx_def): Add comment for field jump.
5389         (LRA_SUBREG_P): New macro.
5390         * recog.c (register_operand): Check LRA_SUBREG_P.
5391         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5392         stack frame.
5393         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5394         (lra_final_code_change): Skip subreg change for operators.
5395         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5396         if there are no operand changes.
5397         * lra-constraints.c (curr_insn_set): New.
5398         (match_reload): Set LRA_SUBREG_P.
5399         (emit_spill_move): Ditto.
5400         (check_and_process_move): Use curr_insn_set. Process only single
5401         set insns.  Don't initialize sec_mem_p and change_p.
5402         (simplify_operand_subreg): Use LRA_SUBREG_P.
5403         (reg_in_class_p): New function.
5404         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5405         of #ifdef.  Add code to remove cycling.
5406         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5407         non-null disp.  Reload inner instead of disp when base and index
5408         are null.  Try to put lo_sum into register.
5409         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5410         (check_and_process_move): Move code for move cost check to
5411         simple_move_p.  Remove equiv_substitution.
5412         (simple_move_p): New function.
5413         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5414         curr_insn_set.  Call check_and_process_move only for single set
5415         insns.  Use the new function.  Move call of check_and_process_move
5416         after operand equiv substitution and address process.
5417
5418 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5419
5420         PR go/57045
5421         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5422         with nonlocal goto receivers or returns twice calls, ignore
5423         unininitialized values from abnormal edges to nl goto receiver
5424         or returns twice call.
5425
5426 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5427
5428         PR tree-optimization/57051
5429         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5430         and VEC_RSHIFT_EXPR if shift count is a multiple of element
5431         bitsize.
5432
5433 2013-04-26  Richard Biener  <rguenther@suse.de>
5434
5435         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5436         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
5437         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5438         (fixup_loop_arrays_after_move): New function.
5439         (move_sese_region_to_fn): Properly outline the loop tree parts
5440         of the SESE region.
5441
5442 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
5443
5444         * config/i386/i386.md (type, unit): Fix long lines.
5445
5446 2013-04-26  Richard Biener  <rguenther@suse.de>
5447
5448         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5449         (lto-streamer-out.o): Likewise.
5450         * cfgloop.c (init_loops_structure): Export, add struct function
5451         argument and adjust.
5452         (flow_loops_find): Adjust.
5453         * cfgloop.h (enum loop_estimation): Add EST_LAST.
5454         (init_loops_structure): Declare.
5455         * lto-streamer-in.c: Include cfgloop.h.
5456         (input_cfg): Input the loop tree.
5457         * lto-streamer-out.c: Include cfgloop.h.
5458         (output_cfg): Output the loop tree.
5459         (output_struct_function_base): Do not drop PROP_loops.
5460
5461 2013-03-26  Richard Biener  <rguenther@suse.de>
5462
5463         * tree-cfg.c (execute_build_cfg): Build the loop tree.
5464         (pass_build_cfg): Provide PROP_loops.
5465         (move_sese_region_to_fn): Remove loops that are outlined into fn
5466         for now.
5467         * tree-inline.c: Include cfgloop.h.
5468         (initialize_cfun): Do not drop PROP_loops.
5469         (copy_loops): New function.
5470         (copy_cfg_body): Copy loop structure.
5471         (tree_function_versioning): Initialize destination loop tree.
5472         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5473         (pass_parallelize_loops): Do IL verification.
5474         * loop-init.c (loop_optimizer_init): Fixup loops if required.
5475         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5476         the CFG make sure we fixup loops as well.
5477         * tree-ssa-tail-merge.c: Include cfgloop.h.
5478         (replace_block_by): When merging loop latches mark loops for fixup.
5479         * lto-streamer-out.c (output_struct_function_base): Drop
5480         PROP_loops for now.
5481         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5482         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5483         * ipa-split.c: Include cfgloop.h.
5484         (split_function): Add the new return block to the loop tree root.
5485         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5486         whether we have removed the forwarder block.
5487         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5488         * cfgloop.h (place_new_loop): Declare.
5489         * cfgloopmanip.c (place_new_loop): Export.
5490         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5491         (tree-switch-conversion.o): Likewise.
5492         (tree-complex.o): Likewise.
5493         (tree-inline.o): Likewise.
5494         (tree-ssa-tailmerge.o): Likewise.
5495         (ipa-split.o): Likewise.
5496         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5497         (tree-ssa-copy.o): Likewise.
5498         * tree-switch-conversion.c: Include cfgloop.h
5499         (process_switch): If we emit a bit-test cascade, schedule loops
5500         for fixup.
5501         * tree-complex.c: Include cfgloop.h.
5502         (expand_complex_div_wide): Properly add new basic-blocks to loops.
5503         * asan.c: Include cfgloop.h.
5504         (create_cond_insert_point): Properly add new basic-blocks to
5505         loops, schedule loop fixup.
5506         * cfgloop.c (verify_loop_structure): Check that looks are not
5507         marked for fixup.
5508         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5509         to loops.
5510         (expand_omp_for_generic): Likewise.
5511         (expand_omp_sections): Likewise.
5512         (expand_omp_atomic_pipeline): Schedule loops for fixup.
5513         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5514         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5515         is initialized, not when loops are present.
5516         * tree-parloops.c (parallelize_loops): Remove checking here.
5517         * passes.c (init_optimization_passes): Schedule a copy-propagation
5518         pass before complete unrolling of inner loops.
5519
5520 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5521
5522         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5523         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5524         (colorize_init): Add argument to _WIN32 version.
5525         * toplev.c: Include diagnostic-color.h.
5526         (process_options): Default to -fdiagnostics-color=auto if
5527         GCC_COLORS env var is in the environment.
5528         * common.opt (fdiagnostics-color=): Add Var and Init.
5529         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5530         env var is in the environment, the default is auto rather than never.
5531
5532         * diagnostic.h (file_name_as_prefix): Add context argument.
5533         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
5534         the string as locus.
5535         * langhooks.c (lhd_print_error_function): Adjust caller.
5536
5537 2013-04-25  Lawrence Crowl  <crowl@google.com>
5538
5539         * var-tracking.c (shared_hash_def::htab):
5540         Change type to hash_table.  Update dependent calls and types.
5541
5542 2013-04-25  Lawrence Crowl  <crowl@google.com>
5543
5544         * Makefile.in: Update as needed below.
5545
5546         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5547         Move declaration to after the type's method definitons.
5548
5549         * attribs.c (htab_t scoped_attributes::attribute_hash):
5550         Change type to hash_table.  Update dependent calls and types.
5551
5552         * bitmap.c (htab_t bitmap_desc_hash):
5553         Change type to hash_table.  Update dependent calls and types.
5554
5555         * cselib.c (htab_t cselib_hash_table):
5556         Change type to hash_table.  Update dependent calls and types.
5557
5558         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5559         (hash_string_slot_node): Move implementation into lto-streamer.h
5560         struct string_slot_hasher.
5561         (eq_string_slot_node): Likewise.
5562
5563         * data-streamer-out.c: Update output_block::string_hash_table
5564         dependent calls and types.
5565
5566         * dwarf2cfi.c (htab_t trace_index):
5567         Change type to hash_table.  Update dependent calls and types.
5568
5569         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5570         Change type to hash_table.  Update dependent calls and types.
5571         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5572         (htab_t optimize_external_refs::map): Likewise.
5573         (htab_t output_comp_unit::extern_map): Likewise.
5574         (htab_t output_comdat_type_unit::extern_map): Likewise.
5575         (htab_t output_macinfo::macinfo_htab): Likewise.
5576         (htab_t optimize_location_lists::htab): Likewise.
5577         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5578
5579         * except.c (htab_t ehspec_hash_type):
5580         Change type to hash_table.  Update dependent calls and types.
5581         (assign_filter_values::ttypes): Likewise.
5582         (assign_filter_values::ehspec): Likewise.
5583         (sjlj_assign_call_site_values::ar_hash): Likewise.
5584         (convert_to_eh_region_ranges::ar_hash): Likewise.
5585
5586         * gcse.c (htab_t pre_ldst_table):
5587         Change type to hash_table.  Update dependent calls and types.
5588
5589         * ggc-common.c (htab_t saving_htab):
5590         Change type to hash_table.  Update dependent calls and types.
5591         (htab_t loc_hash): Likewise.
5592         (htab_t ptr_hash): Likewise.
5593         (call_count): Rename ggc_call_count.
5594         (call_alloc): Rename ggc_call_alloc.
5595         (loc_descriptor): Rename make_loc_descriptor.
5596         (add_statistics): Rename ggc_add_statistics.
5597
5598         * ggc-common.c (saving_htab):
5599         Change type to hash_table.  Update dependent calls and types.
5600
5601         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5602         (push_gimplify_context): Likewise.
5603         (pop_gimplify_context): Likewise.
5604         (struct gimple_temp_hash_elt): Added.
5605         (struct gimplify_hasher): Likewise.
5606         (struct gimplify_ctx.temp_htab):
5607         Change type to hash_table.  Update dependent calls and types.
5608
5609         * gimple-fold.c: Include gimplify-ctx.h.
5610
5611         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5612         Change type to hash_table.  Update dependent calls and types.
5613         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5614         avoid potential global name collision.
5615
5616         * gimplify.c: Include gimplify-ctx.h.
5617         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5618         (htab_t gimplify_ctx::temp_htab):
5619         Update dependent calls and types for new type hash_table.
5620         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5621         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5622
5623         * gimplify-ctx.h: New.
5624         (struct gimple_temp_hash_elt): Move from gimplify.c.
5625         (class gimplify_hasher): New.
5626         (struct gimplify_ctx): Move from gimple.h.
5627         (htab_t gimplify_ctx::temp_htab):
5628         Change type to hash_table.  Update dependent calls and types.
5629
5630         * graphite-clast-to-gimple.c: Include graphite-htab.h.
5631         (htab_t ivs_params::newivs_index):
5632         Change type to hash_table.  Update dependent calls and types.
5633         (htab_t ivs_params::params_index): Likewise.
5634         (htab_t print_generated_program::params_index): Likewise.
5635         (htab_t gloog::newivs_index): Likewise.
5636         (htab_t gloog::params_index): Likewise.
5637
5638         * graphite.c: Include graphite-htab.h.
5639         4htab_t graphite_transform_loops::bb_pbb_mapping):
5640         Change type to hash_table.  Update dependent calls and types.
5641
5642         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5643         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5644         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5645
5646         * graphite-dependences.c: Include graphite-htab.h.
5647         (loop_is_parallel_p): Change hash table type of parameter.
5648
5649         * graphite-htab.h: New.
5650         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5651         (extern find_pbb_via_hash): Move from graphite-poly.h.
5652         (extern loop_is_parallel_p): Move from graphite-poly.h.
5653         (extern get_loop_body_pbbs): Move from graphite-poly.h.
5654
5655         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5656         (extern loop_is_parallel_p): Move to graphite-htab.h.
5657         (extern get_loop_body_pbbs): Move to graphite-htab.h.
5658
5659         * haifa-sched.c (htab_t delay_htab):
5660         Change type to hash_table.  Update dependent calls and types.
5661         (htab_t delay_htab_i2): Likewise.
5662
5663         * ira-color.c (htab_t allocno_hard_regs_htab):
5664         Change type to hash_table.  Update dependent calls and types.
5665
5666         * ira-costs.c (htab_t cost_classes_htab):
5667         Change type to hash_table.  Update dependent calls and types.
5668
5669         * loop-invariant.c (htab_t merge_identical_invariants::eq):
5670         Change type to hash_table.  Update dependent calls and types.
5671
5672         * loop-iv.c (htab_t bivs):
5673         Change type to hash_table.  Update dependent calls and types.
5674
5675         * loop-unroll.c (htab_t opt_info::insns_to_split):
5676         Change type to hash_table.  Update dependent calls and types.
5677         (htab_t opt_info::insns_with_var_to_expand): Likewise.
5678
5679         * lto-streamer.h (struct string_slot): Move from data-streamer.h
5680         (struct string_slot_hasher): New.
5681         (htab_t output_block::string_hash_table):
5682         Change type to hash_table.  Update dependent calls and types.
5683
5684         * lto-streamer-in.c (freeing_string_slot_hasher): New.
5685         (htab_t file_name_hash_table):
5686         Change type to hash_table.  Update dependent calls and types.
5687
5688         * lto-streamer-out.c: Update output_block::string_hash_table dependent
5689         calls and types.
5690
5691         * lto-streamer.c (htab_t tree_htab):
5692         Change type to hash_table.  Update dependent calls and types.
5693
5694         * omp-low.c: Include gimplify-ctx.h.
5695
5696         * passes.c (htab_t name_to_pass_map):
5697         Change type to hash_table.  Update dependent calls and types.
5698         (pass_traverse): Rename to passes_pass_traverse.
5699
5700         * plugin.c (htab_t event_tab):
5701         Change type to hash_table.  Update dependent calls and types.
5702
5703         * postreload-gcse.c (htab_t expr_table):
5704         Change type to hash_table.  Update dependent calls and types.
5705         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5706
5707         * sese.c (debug_rename_map_1): Make extern.
5708         (htab_t copy_bb_and_scalar_dependences::rename_map):
5709         Change type to hash_table.  Update dependent calls and types.
5710
5711         * sese.h (extern debug_rename_map): Move to .c file.
5712
5713         * store-motion.c (htab_t store_motion_mems_table):
5714         Change type to hash_table.  Update dependent calls and types.
5715
5716         * trans-mem.c (htab_t tm_new_mem_hash):
5717         Change type to hash_table.  Update dependent calls and types.
5718
5719         * tree-browser.c (htab_t TB_up_ht):
5720         Change type to hash_table.  Update dependent calls and types.
5721
5722         * tree-cfg.c (htab_t discriminator_per_locus):
5723         Change type to hash_table.  Update dependent calls and types.
5724
5725         * tree-complex.c: Include tree-hasher.h
5726         (htab_t complex_variable_components):
5727         Change type to hash_table.  Update dependent calls and types.
5728
5729         * tree-eh.c (htab_t finally_tree):
5730         Change type to hash_table.  Update dependent calls and types.
5731
5732         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5733         struct int_tree_hasher.
5734         (extern int_tree_map_eq): Likewise.
5735         (uid_decl_map_hash): Removed.
5736         (extern decl_tree_map_eq): Likewise.
5737
5738         * tree-hasher.h: New.
5739         (struct int_tree_hasher): New.
5740         (typedef int_tree_htab_type): New.
5741
5742         * tree-inline.c: Include gimplify-ctx.h.
5743
5744         * tree-mudflap.c: Include gimplify-ctx.h.
5745
5746         * tree-parloops.c: Include tree-hasher.h.
5747         (htab_t eliminate_local_variables_stmt::decl_address):
5748         Change type to hash_table.  Update dependent calls and types.
5749         (htab_t separate_decls_in_region::decl_copies): Likewise.
5750
5751         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5752         Change type to hash_table.  Update dependent calls and types.
5753
5754         * tree-sra.c (candidates):
5755         Change type to hash_table.  Update dependent calls and types.
5756
5757         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5758         in tree-flow.h.
5759         (int_tree_map_hash): Likewise.
5760
5761         * tree-ssa-dom.c (htab_t avail_exprs):
5762         Change type to hash_table.  Update dependent calls and types.
5763
5764         * tree-ssa-live.c (var_map_base_init::tree_to_index):
5765         Change type to hash_table.  Update dependent calls and types.
5766
5767         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5768         Change type to hash_table.  Update dependent calls and types.
5769
5770         * tree-ssa-phiopt.c (seen_ssa_names):
5771         Change type to hash_table.  Update dependent calls and types.
5772
5773         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5774         Change type to hash_table.  Update dependent calls and types.
5775
5776         * tree-ssa-uncprop.c (equiv):
5777         Change type to hash_table.  Update dependent calls and types.
5778
5779 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
5780
5781         PR rtl-optimization/57003
5782         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5783         call note_stores with kill_clobbered_value callback again after
5784         killing regs_invalidated_by_call.
5785
5786 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5787
5788         * config/aarch64/aarch64-simd.md
5789         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5790         (aarch64_simd_bsl<mode>): Likewise.
5791         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5792
5793 2013-04-25  Marek Polacek  <polacek@redhat.com>
5794
5795         PR tree-optimization/57066
5796         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5797
5798 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
5799
5800         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5801
5802 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5803
5804         * config/aarch64/aarch64-builtins.c
5805         (aarch64_fold_builtin): New.
5806         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5807         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5808         * config/aarch64/aarch64-simd-builtins.def (abs): New.
5809         * config/aarch64/arm_neon.h
5810         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5811
5812 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5813             Tejas Belagod  <tejas.belagod@arm.com>
5814
5815         * config/aarch64/aarch64-builtins.c
5816         (aarch64_gimple_fold_builtin): New.
5817         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5818         * config/aarch64/aarch64-simd-builtins.def (addv): New.
5819         * config/aarch64/aarch64-simd.md (addpv4sf): New.
5820         (addvv4sf): Update.
5821         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5822
5823 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5824
5825         * config/aarch64/aarch64.md
5826         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5827
5828 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5829
5830         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5831         (*ngcsi_uxtw): New pattern.
5832
5833 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5834             Julian Brown  <julian@codesourcery.com>
5835
5836         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5837         (TB_DREG): Add T_V4HF.
5838         (v4hf_UP): New macro.
5839         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5840         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5841         Handle initialisation of V4HF. Adjust initialisation of reinterpret
5842         built-ins.
5843         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5844         (arm_vector_mode_supported_p): Handle V4HF.
5845         (arm_mangle_map): Handle V4HFmode.
5846         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5847         * config/arm/arm_neon_builtins.def: Add entries for
5848         vcvtv4hfv4sf, vcvtv4sfv4hf.
5849         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5850         (neon_vcvtv4hfv4sf): Likewise.
5851         * config/arm/neon-gen.ml: Handle half-precision floating point
5852         features.
5853         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5854         * config/arm/arm_neon.h: Regenerate.
5855         * config/arm/neon.ml (type elts): Add F16.
5856         (type vectype): Add T_float16x4, T_floatHF.
5857         (type vecmode): Add V4HF.
5858         (type features): Add Requires_FP_bit feature.
5859         (elt_width): Handle F16.
5860         (elt_class): Likewise.
5861         (elt_of_class_width): Likewise.
5862         (mode_of_elt): Refactor.
5863         (type_for_elt): Handle F16, fix error messages.
5864         (vectype_size): Handle T_float16x4.
5865         (vcvt_sh): New function.
5866         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5867         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5868         (string_of_mode): Handle V4HF.
5869         * doc/arm-neon-intrinsics.texi: Regenerate.
5870
5871 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5872
5873         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5874         format specifier in 'X' case.
5875
5876 2013-04-25  Alan Modra  <amodra@gmail.com>
5877
5878         PR target/57052
5879         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5880         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5881         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5882         Repeat for many other rotate/shift and mask patterns using subregs.
5883         Name lshiftrt insns.
5884         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5885         on WORDS_BIG_ENDIAN.
5886
5887 2013-04-25  Alan Modra  <amodra@gmail.com>
5888
5889         * config.gcc: Support little-endian powerpc-linux targets.
5890         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5891         (LINK_OS_LINUX_SPEC): Define.
5892         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5893         Preserve MASK_LITTLE_ENDIAN.
5894         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5895         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5896         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5897         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5898         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5899         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5900         Correct fp word order for little-endian.  Don't shift toc entries
5901         smaller than a word for little-endian.
5902         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5903         (bswapdi2 splits): Correct low-part subreg for little-endian.
5904         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5905         low/high where such is correct only for be.
5906         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5907         little-endian for -mcall-aixdesc.
5908
5909 2013-04-25  Alan Modra  <amodra@gmail.com>
5910
5911         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5912         replace_equiv_address_nv.
5913
5914 2013-04-25  Alan Modra  <amodra@gmail.com>
5915
5916         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5917
5918 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5919
5920         Revert:
5921         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5922         * rtl.h (struct rtx_def): ...
5923
5924 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5925
5926         PR rtl-optimizations/57046
5927         * lra-constraints (split_reg): Set up lra_risky_transformations_p
5928         for multi-reg splits.
5929
5930 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
5931
5932         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5933
5934 2013-04-24  Sterling Augustine  <saugustine@google.com>
5935
5936         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5937         (comp_dir_string, debug_str_dwo_section): New.
5938         (DEBUG_STR_DWO_SECTION): Rename to ...
5939         (DEBUG_DWO_STR_SECTION): ... this.
5940         (DEBUG_NORM_STR_SECTION): Delete.
5941         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5942         (DEBUG_STR_DWO_SECTION_FLAGS): New.
5943         (find_AT_string): Move most logic to ...
5944         (find_AT_string_in_table): ... here.  New.
5945         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5946         add_skeleton_AT_string.  Delete logic.
5947         (output_skeleton_debug_sections): Remove call to
5948         add_top_level_skeleton_die_attrs.
5949         (add_comp_dir_attribute): Move logic to comp_dir_string.
5950         (dwarf2out_init): Initialize debug_str_dwo_section.
5951         (output_indirect_string): Call find_string_form.
5952         (output_indirect_strings): Rewrite.
5953         (prune_unused_types): Empty skeleton_debug_str_hash.
5954         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5955         (dwarf2out_finish):  Call output_indirect_strings.
5956
5957 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5958
5959         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5960
5961 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5962
5963         * rtl.h (struct rtx_def): Add comment for field jump.
5964         (LRA_SUBREG_P): New macro.
5965         * recog.c (register_operand): Check LRA_SUBREG_P.
5966         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5967         stack frame.
5968         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5969         (lra_final_code_change): Skip subreg change for operators.
5970         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5971         if there are no operand changes.
5972         * lra-constraints.c (curr_insn_set): New.
5973         (match_reload): Set LRA_SUBREG_P.
5974         (emit_spill_move): Ditto.
5975         (check_and_process_move): Use curr_insn_set. Process only single
5976         set insns.  Don't initialize sec_mem_p and change_p.
5977         (simplify_operand_subreg): Use LRA_SUBREG_P.
5978         (reg_in_class_p): New function.
5979         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5980         of #ifdef.  Add code to remove cycling.
5981         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5982         non-null disp.  Reload inner instead of disp when base and index
5983         are null.  Try to put lo_sum into register.
5984         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5985         (check_and_process_move): Move code for move cost check to
5986         simple_move_p.  Remove equiv_substitution.
5987         (simple_move_p): New function.
5988         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5989         curr_insn_set.  Call check_and_process_move only for single set
5990         insns.  Use the new function.  Move call of check_and_process_move
5991         after operand equiv substitution and address process.
5992
5993 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
5994
5995         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5996         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5997         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5998
5999 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6000
6001         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6002
6003 2013-04-24  Marek Polacek  <polacek@redhat.com>
6004
6005         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6006         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6007         (select_loops_exit_conditions): Likewise.
6008         (number_of_iterations_for_all_loops): Likewise.
6009         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6010         (scev_analysis): Likewise.
6011
6012 2013-04-02  Catherine Moore  <clm@codesourcery.com>
6013             Chao-ying Fu <fu@mips.com>
6014
6015         * config/mips/micromips.md (jraddiusp): New pattern.
6016         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6017         instruction if possible.
6018
6019 2013-04-24  Alan Modra  <amodra@gmail.com>
6020
6021         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6022
6023 2013-04-24  Julian Brown  <julian@codesourcery.com>
6024             Chung-Lin Tang  <cltang@codesourcery.com>
6025
6026         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6027         dependency behavior in enumeration type DIE generation. Add TODO note
6028         to comments about future DW_FORM_sdata/udata re-work of related code.
6029
6030 2013-04-23  Lawrence Crowl  <crowl@google.com>
6031
6032         * Makefile.in: Update as needed below.
6033
6034         * hash-table.h (class hash_table):
6035         Correct many methods with parameter types compare_type to the correct
6036         value_type.  (Correct code was unlikely to notice the change.)
6037         (hash_table::elements_with_deleted) New.
6038         (class hashtable::iterator): New.
6039         (hashtable::begin()): New.
6040         (hashtable::end()): New.
6041         (FOR_EACH_HASH_TABLE_ELEMENT): New.
6042
6043         * statistics.c (statistics_hashes):
6044         Change type to hash_table.  Update dependent calls and types.
6045
6046         * tree-into-ssa.c (var_infos):
6047         Change type to hash_table.  Update dependent calls and types.
6048
6049         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6050         Change type to hash_table.  Update dependent calls and types.
6051
6052         * tree-ssa-loop-im.c (struct mem_ref.refs):
6053         Change type to hash_table.  Update dependent calls and types.
6054
6055         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6056         Change type to hash_table.  Update dependent calls and types.
6057
6058         * tree-ssa-sccvn.c (vn_tables_s::nary):
6059         Change type to hash_table.  Update dependent calls and types.
6060         (vn_tables_s::phis): Likewise.
6061         (vn_tables_s::references): Likewise.
6062
6063         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6064         (vn_reference_eq): Update parameter and return types.
6065
6066         * tree-ssa-structalias.c (pointer_equiv_class_table):
6067         Change type to hash_table.  Update dependent calls and types.
6068         (location_equiv_class_table): Likewise.
6069
6070         * tree-vect-data-refs.c: Consequential changes for making
6071         peeling a hash_table.
6072
6073         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6074         (destroy_loop_vec_info): Dependent hash_table update.
6075
6076         * tree-vectorizer.h (peeling_htab):
6077         Change type to hash_table.  Update dependent calls and types.
6078
6079 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
6080
6081         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6082         to check the register content is equal or not.
6083         * lra-constraints.c (match_reload): Use lra_assign_reg_val
6084         to assign register content record.
6085         * lra-eliminations.c (update_reg_eliminate): Use
6086         lra_update_reg_val_offset to update register content offset.
6087         * lra-int.h (struct lra_reg): Add offset member.
6088         (lra_reg_val_equal_p): New static inline function.
6089         (lra_update_reg_val_offset): New static inline function.
6090         (lra_assign_reg_val): New static inline function.
6091         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6092         to assign register content record.
6093         (initialize_lra_reg_info_element): Initial offset to zero.
6094
6095 2013-04-23  Catherine Moore  <clm@codesourcery.com>
6096
6097         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6098         operands.  Record compression.
6099
6100 2013-04-23  Xinliang David Li  <davidxl@google.com>
6101
6102         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6103
6104 2013-04-23  Richard Biener  <rguenther@suse.de>
6105
6106         PR middle-end/57036
6107         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6108         parameter, only add abnormal goto edges from the copied body
6109         if the call could perform abnormal gotos.
6110         (copy_cfg_body): Adjust.
6111
6112 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
6113
6114         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6115
6116 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6117
6118         * coretypes.h (gimple_stmt_iterator): Add struct to make
6119         compatible with C.
6120
6121 2013-04-23  Richard Biener  <rguenther@suse.de>
6122
6123         PR tree-optimization/57026
6124         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6125         from SSA names occuring in abnormal PHI nodes.
6126
6127 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6128
6129         * lto/lto.c (print_lto_report_1): Fix LTO report names.
6130
6131 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6132
6133         * lto/lto.c (print_lto_report_1): Declare early.
6134         (read_cgraph_and_symbols): Call print_lto_report_1 early.
6135
6136 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6137
6138         * common.opt (-flto-report-wpa): Add.
6139         * doc/invoke.texi (-flto-report-wpa): Add.
6140         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6141         (lto_main): dito.
6142
6143 2013-04-22  Xinliang David Li  <davidxl@google.com>
6144
6145         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6146         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6147         * Makefile.in: New dependency
6148
6149             David Daney <ddaney.cavm@gmail.com>
6150
6151         * configure.ac (gcc_cv_as_micromips_support):  Use the
6152         --fatal-warnings option.
6153         * configure: Regenerate.
6154
6155 2013-04-22  Marek Polacek  <polacek@redhat.com>
6156
6157         PR sanitizer/56990
6158         * tsan.c (instrument_expr): Don't instrument expression
6159         in case its size is zero.
6160
6161 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
6162
6163         PR target/57032
6164         Revert:
6165         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6166
6167         * config/alpha/alpha.c (TARGET_LRA_P): New define.
6168
6169 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6170
6171         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6172         (gimple_stmt_iterator): New typedef.
6173         * gimple.h (gimple_stmt_iterator): Rename to...
6174         (gimple_stmt_iterator_d): ... This.
6175         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6176         trees be valid for GIMPLE and GENERIC.
6177         (TARGET_GIMPLE_FOLD_BUILTIN): New.
6178         * gimple-fold.c (gimple_fold_call): Call target hook
6179         gimple_fold_builtin.
6180         * hooks.c (hook_bool_gsiptr_false): New.
6181         * hooks.h (hook_bool_gsiptr_false): New.
6182         * target.def (fold_stmt): New.
6183         * doc/tm.texi: Regenerate.
6184
6185 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
6186
6187         PR target/57018
6188         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6189         a set sp if no stack realignment.
6190
6191 2013-04-22  Nick Clifton  <nickc@redhat.com>
6192
6193         * config.gcc (tilegx-linux): Extend extra_objs rather than
6194         overwriting it.
6195         (tilepro-linux): Likewise.
6196
6197 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6198
6199         * config/aarch64/aarch64-builtins.c
6200         (CF): Remove.
6201         (CF0, CF1, CF2, CF3, CF4, CF10): New.
6202         (VAR<1-12>): Add MAP parameter.
6203         (BUILTIN_*): Likewise.
6204         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6205         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6206         (aarch64_ushl_n<mode>): Likewise.
6207         (aarch64_sshr_n<mode>): Likewise.
6208         (aarch64_ushr_n<mode>): Likewise.
6209         (aarch64_<maxmin><mode>): Likewise.
6210         (aarch64_sqrt<mode>): Likewise.
6211         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6212         (vshr<q>_n_*): Likewise.
6213
6214 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6215
6216         * config/aarch64/aarch64-builtins.c
6217         (aarch64_simd_builtin_type_mode): Handle SF types.
6218         (sf_UP): Define.
6219         (BUILTIN_GPF): Define.
6220         (aarch64_init_simd_builtins): Handle SF types.
6221         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6222         (frecps): Likewise.
6223         (frecpx): Likewise.
6224         * config/aarch64/aarch64-simd.md
6225         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6226         (aarch64_frecpe<mode>): New.
6227         (aarch64_frecps<mode>): Likewise.
6228         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6229         (v8type): Add frecp<esx>.
6230         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6231         (aarch64_frecps<mode>): Likewise.
6232         * config/aarch64/iterators.md (FRECP): New.
6233         (frecp_suffix): Likewise.
6234         * config/aarch64/arm_neon.h
6235         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6236
6237 2013-04-22  Christian Bruel  <christian.bruel@st.com>
6238
6239         PR target/56995
6240         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6241         (REG_CLASS_NAMES): Idem.
6242         (REG_CLASS_CONTENTS): Idem.
6243         (REGCLASS_HAS_FP_REG): Idem.
6244         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6245         (sh_conditional_register_usage): Idem.
6246
6247 2013-04-21  Jeff Law  <law@redhat.com>
6248
6249         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6250         (ssa_forward_propagate_and_combine): Use it.
6251
6252 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6253
6254         * lra.c: Update the flow chart diagram.
6255
6256 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6257
6258         PR rtl-optimization/56847
6259         * lra-constraints.c (process_alt_operands): Discourage alternative
6260         with non-matche doffsettable memory constraint fro memory with
6261         known offset.
6262
6263 2013-04-19  Richard Biener  <rguenther@suse.de>
6264
6265         PR tree-optimization/56982
6266         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6267         function.
6268         * gimplify.c (gimplify_call_expr): Notice special calls.
6269         (gimplify_modify_expr): Likewise.
6270         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6271         abnormal control flow receivers.
6272         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6273         in the same way as cfun->has_nonlocal_labels.
6274         (gimple_purge_dead_abnormal_call_edges): Likewise.
6275         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6276         receivers start a basic-block.
6277
6278 2013-04-19  Richard Biener  <rguenther@suse.de>
6279
6280         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6281         member ...
6282         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
6283         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6284         (SLP_TREE_LOAD_PERMUTATION): Add.
6285         (vect_transform_slp_perm_load): Adjust prototype.
6286         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6287         (vect_free_slp_instance): Likewise.
6288         (vect_create_new_slp_node): Likewise.
6289         (vect_supported_slp_permutation_p): Remove.
6290         (vect_slp_rearrange_stmts): Adjust.
6291         (vect_supported_load_permutation_p): Likewise.  Inline
6292         vect_supported_slp_permutation_p here.
6293         (vect_analyze_slp_instance): Compute load permutations per
6294         slp node instead of per instance.
6295         (vect_get_slp_defs): Adjust.
6296         (vect_transform_slp_perm_load): Likewise.
6297         (vect_schedule_slp_instance): Remove redundant code.
6298         (vect_schedule_slp): Remove hack for PR56270, add it ...
6299         * tree-vect-stmts.c (vectorizable_load): ... here, do not
6300         CSE loads for SLP.  Adjust.
6301
6302 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6303
6304         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6305         spelling in two comments.
6306
6307 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6308
6309         PR target/56797
6310         * config/arm/arm.c (load_multiple_sequence): Require SP
6311         as base register for loads if SP is in the register list.
6312
6313 2013-04-19  Martin Jambor  <mjambor@suse.cz>
6314
6315         PR tree-optimization/56718
6316         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6317         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6318         and made public.  Adjusted all callers.
6319         (ipa_intraprocedural_devirtualization): New function.
6320         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6321         (ipa_intraprocedural_devirtualization): Likewise.
6322         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6323
6324 2013-04-19  Richard Biener  <rguenther@suse.de>
6325
6326         PR tree-optimization/57000
6327         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6328
6329 2013-04-19  Terry Guo  <terry.guo@arm.com>
6330
6331         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6332         Replace with ...
6333         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
6334         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6335         (cortex_m4_fmacs): Use new reservations.
6336         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6337
6338 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
6339
6340         PR rtl-optimization/56999
6341         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6342         related code.
6343         (lra_coalesce): Remove split_origin_bitmap and related code.
6344         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
6345         ranges if necessary.
6346
6347 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
6348
6349         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6350         New array.
6351         (ix86_expand_call): Remove clobbered_registers array and use
6352         x86_64_ms_sysv_extra_clobbered_registers instead.
6353         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6354         Declare here.
6355         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6356         predicate.
6357         * config/i386/i386.md (*call_rex64_ms_sysv): Use
6358         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
6359         (*call_value_rex64_ms_sysv): Ditto.
6360
6361 2013-04-18  Cary Coutant  <ccoutant@google.com>
6362
6363         * dwarf2out.c (output_pubnames): Check die_perennial_p of
6364         parent instead of die_mark.
6365
6366 2013-04-18  Diego Novillo  <dnovillo@google.com>
6367
6368         * gimple.c (create_gimple_tmp): New.
6369         (get_expr_type): New.
6370         (build_assign): New.
6371         (build_type_cast): New.
6372         * gimple.h (enum ssa_mode): Define.
6373         (gimple_seq_set_location): New.
6374         * asan.c (build_check_stmt): Change some gimple_build_* calls
6375         to use build_assign and build_type_cast.
6376
6377 2013-04-18  Richard Biener  <rguenther@suse.de>
6378
6379         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6380         handle negative step.  Remove redundant checks.
6381         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6382         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6383         for negative step and grouped loads fail to vectorize.
6384
6385 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6386
6387         * emit-rtl.c (reset_insn_used_flags): New function.
6388         (reset_all_used_flags): Use it.
6389         (verify_insn_sharing): New function.
6390         (verify_rtl_sharing): Fix verification for SEQUENCEs.
6391
6392 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
6393
6394         PR tree-optimization/56984
6395         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6396         and (x >> M) >= N don't register any assertion if N << M is the
6397         minimum value.
6398
6399 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6400
6401         * lower-subreg.c (resolve_simple_move): If called self-recursive,
6402         do not delete_insn insns that have not yet been emitted, only
6403         unlink them with remove_insn.
6404         * df-scan.c (df_insn_delete): Revert r197492.
6405
6406 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
6407
6408         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6409         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6410
6411 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6412
6413         * config/arm/arm.md (movsicc_insn): Convert define_insn into
6414         define_insn_and_split.
6415         (and_scc,ior_scc,negscc): Likewise.
6416         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6417
6418 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6419
6420         * config/arm/arm.c (use_return_insn): Return 0 for targets that
6421         can benefit from using a sequence of LDRD instructions in epilogue
6422         instead of a single LDM instruction.
6423
6424 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6425
6426         PR 45688
6427         * doc/extend.texi: Fix typo.
6428
6429 2013-04-17  Richard Biener  <rguenther@suse.de>
6430
6431         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6432         (vect_build_slp_tree): ... here.
6433         (vect_build_slp_tree_1): Compute which stmts of the SLP group
6434         match.  Remove special-casing of mismatched complex loads.
6435         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6436         re-try the match with swapped commutative operands.
6437         (vect_supported_load_permutation_p): Remove special-casing of
6438         mismatched complex loads.
6439         (vect_analyze_slp_instance): Adjust.
6440
6441 2013-04-17  Richard Biener  <rguenther@suse.de>
6442
6443         PR rtl-optimization/56921
6444         * cfgloop.h (struct loop): Add simple_loop_desc member.
6445         (struct niter_desc): Mark with GTY(()).
6446         (simple_loop_desc): Do not use aux field but simple_loop_desc.
6447         * loop-iv.c (get_simple_loop_desc): Likewise.
6448         (free_simple_loop_desc): Likewise.
6449
6450         Revert
6451         2013-04-16  Richard Biener  <rguenther@suse.de>
6452
6453         PR rtl-optimization/56921
6454         * loop-init.c (pass_rtl_move_loop_invariants): Add
6455         TODO_do_not_ggc_collect to todo_flags_finish.
6456         (pass_rtl_unswitch): Same.
6457         (pass_rtl_unroll_and_peel_loops): Same.
6458         (pass_rtl_doloop): Same.
6459
6460 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6461
6462         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6463         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6464         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6465         references.
6466         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6467         * tree-streamer.c (record_common_node): Adjust reference in comment.
6468
6469 2013-04-17  Terry Guo  <terry.guo@arm.com>
6470
6471         * config/arm/cortex-m4.md: Add a new bypass.
6472
6473 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6474
6475         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6476         New pattern.
6477         (*subs_<optab><mode>_multp2): New pattern.
6478         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6479         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6480
6481 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6482
6483         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6484         (*subs_mul_imm_<mode>): New pattern.
6485
6486 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
6487
6488         PR target/56948
6489         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6490         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
6491         (vsx_movti_32bit): Change j->wa to O->wa.
6492
6493 2013-04-16  Richard Biener  <rguenther@suse.de>
6494
6495         PR rtl-optimization/56921
6496         * loop-init.c (pass_rtl_move_loop_invariants): Add
6497         TODO_do_not_ggc_collect to todo_flags_finish.
6498         (pass_rtl_unswitch): Same.
6499         (pass_rtl_unroll_and_peel_loops): Same.
6500         (pass_rtl_doloop): Same.
6501
6502 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
6503
6504         * config/arm/arm.c (emit_multi_reg_push): New declaration
6505         for an existing function.
6506         (arm_emit_strd_push): New function.
6507         (arm_expand_prologue): Used here.
6508         (arm_emit_ldrd_pop): New function.
6509         (arm_expand_epilogue): Used here.
6510         (arm_get_frame_offsets): Update condition.
6511         (arm_emit_multi_reg_pop): Add a special case for load of a single
6512         register with writeback.
6513
6514 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
6515
6516         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6517         description.
6518
6519 2013-04-16  Richard Biener  <rguenther@suse.de>
6520
6521         PR tree-optimization/56756
6522         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6523         (first_mem_ref_loc): New.
6524         (execute_sm): Place the load temporarily before a previous
6525         access instead of in the latch edge to ensure its SSA dependencies
6526         are defined at points dominating the load.
6527
6528 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
6529
6530         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6531         correct fix by moving header and footer insn to the footer of
6532         the merged basic block.  Clear BB_END of the merged-away block.
6533
6534         PR middle-end/43631
6535         * emit-rtl.c (make_note_raw): New function.
6536         (link_insn_into_chain): New static inline function.
6537         (add_insn): Use it.
6538         (add_insn_before, add_insn_after): Factor insn chain linking code...
6539         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6540         using link_insn_into_chain.
6541         (note_outside_basic_block_p): New helper function for emit_note_after
6542         and emit_note_before.
6543         (emit_note_after): Use nobb variant of add_insn_after if the note
6544         should not be contained in a basic block.
6545         (emit_note_before): Use nobb variant of add_insn_before if the note
6546         should not be contained in a basic block.
6547         (emit_note_copy): Use make_note_raw.
6548         (emit_note): Likewise.
6549         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6550         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6551         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6552         the moved barrier the tail of the basic block it follows.
6553         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6554
6555 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
6556
6557         PR tree-optimization/56962
6558         * gimple-ssa-strength-reduction.c (record_increment): Only set
6559         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6560         either rhs1 or rhs2 is equal to c->base_expr.
6561
6562 2013-04-15  Richard Biener  <rguenther@suse.de>
6563
6564         PR tree-optimization/56933
6565         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6566         member.
6567         (GROUP_READ_WRITE_DEPENDENCE): Remove.
6568         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6569         * tree-vect-data-refs.c (vect_analyze_group_access): Move
6570         dependence check ...
6571         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6572         ... here.
6573         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6574         GROUP_READ_WRITE_DEPENDENCE.
6575
6576 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6577
6578         * emit-rtl.c (reset_all_used_flags): New function.
6579         (verify_rtl_sharing): Call reset_all_used_flags before and after
6580         performing the checks.
6581
6582 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6583
6584         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6585         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6586         * config/arm/constraints.md (De): New constraint.
6587         * config/arm/neon.md (anddi3_neon): Delete.
6588         (neon_vand<mode>): Expand to standard anddi3 pattern.
6589         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6590         Move earlier in the file.
6591         (neon_inv_logic_op2): Likewise.
6592         (arm_anddi_operand_neon): New predicate.
6593
6594 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6595
6596         * configure.ac (gcc_cv_ld_as_needed): Set
6597         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6598         Use -z ignore, -z record on *-*-solaris2*.
6599         (HAVE_LD_AS_NEEDED): Update comment.
6600         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6601         * configure: Regenerate.
6602         * config.in: Regenerate.
6603         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6604         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6605         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6606         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6607         equivalents.  Fix markup.
6608         * doc/tm.texi: Regenerate.
6609
6610 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
6611
6612         * config/i386/i386.opt: New option mstack-protector-guard=.
6613         * config/i386/i386-opts.h: Add enum stack_protector_guard.
6614         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6615         TARGET_SSP_TLS_GUARD.
6616         * config/i386/i386.c (ix86_option_override_internal): Set
6617         ix86_stack_protector_guard.
6618         * config/i386/i386.md (stack_protect_set): Enable for
6619         TARGET_SSP_TLS_GUARD only.
6620         (stack_protect_set_<mode>): Ditto.
6621         (stack_protect_test): Ditto.
6622         (stack_protect_test_<mode>): Ditto.
6623         * doc/invoke.texi (i386 Option): Document.
6624
6625 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6626
6627         PR target/56890
6628         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6629         (S_MODES): Set H_MODE bit.
6630         (SF_MODES): Set only S_MODE and SF_MODE bits.
6631         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6632         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6633         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6634         <MODE_FLOAT>: Likewise.
6635
6636 2013-04-15  Joey Ye  <joey.ye@arm.com>
6637
6638         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6639
6640 2013-04-15  Joey Ye  <joey.ye@arm.com>
6641
6642         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6643         for real far jump.
6644         (thumb_far_jump_used_p): Count instruction size and set
6645         far_jump_used.
6646
6647 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
6648
6649         * reorg.c (fill_simple_delay_slots): Reindent block of code.
6650         * resource.c (mark_target_live_regs): Reformat conditional block.
6651
6652 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6653
6654         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6655         notes, they are emitted only just before final.
6656         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6657
6658 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6659
6660         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6661         * cfgrtl.c (delete_insn): Call it here instead.
6662         * lra-spills.c (lra_final_code_change): Use delete_insn.
6663         * haifa-sched.c (sched_remove_insn): Likewise.
6664         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6665         returning to the nop pool.
6666         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6667         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
6668
6669 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6670
6671         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6672         * doc/tm.texi: Regenerated.
6673
6674 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
6675
6676         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6677         QImode checks.
6678
6679 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6680
6681         * df-core.c (df_find_def): Compare register numbers.
6682         (df_find_use): Likewise.
6683
6684 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
6685
6686         PR target/56903
6687         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6688         lra_in_progress for return.
6689
6690 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6691
6692         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6693         define_insn into define_insn_and_split and emit movsicc patterns.
6694
6695 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6696
6697         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6698
6699 2013-04-12  Richard Biener  <rguenther@suse.de>
6700
6701         * tree-pass.h (TODO_do_not_ggc_collect): New.
6702         * passes.c (execute_one_ipa_transform_pass): Honor
6703         TODO_do_not_ggc_collect.
6704         (execute_one_pass): Likewise.
6705
6706         Revert
6707         2013-04-10  Richard Biener  <rguenther@suse.de>
6708
6709         * passes.c (init_optimization_passes): Remove reload pass.
6710         * ira.c (do_reload): Merge into ...
6711         (ira): ... this.
6712         (rest_of_handle_reload): Remove.
6713         (pass_reload): Likewise.
6714         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6715         of reload for vzeroupper pass placement.
6716
6717 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6718
6719         PR tree-optimization/56918
6720         PR tree-optimization/56920
6721         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6722         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
6723         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
6724         use wide_mul_with_sign method.
6725
6726 2013-04-12  Richard Biener  <rguenther@suse.de>
6727
6728         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6729         not be considered a gimple constant.
6730
6731 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
6732
6733         * fold-const.c (const_binop): Handle vector shifts by a scalar.
6734         (fold_binary_loc): Call const_binop also for mixed vector-scalar
6735         operations.
6736
6737 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6738             Jakub Jelinek  <jakub@redhat.com>
6739
6740         * opts.c: Include diagnostic-color.h.
6741         (common_handle_option): Handle OPT_fdiagnostics_color_.
6742         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6743         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6744         (diagnostic-color.o): New.
6745         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6746         (diagnostic_color_rule): New enum.
6747         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6748         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6749         the location string.
6750         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6751         either NULL, or color kind.
6752         * diagnostic-color.c: New file.
6753         * diagnostic-color.h: New file.
6754         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6755         arguments.
6756         * doc/invoke.texi (-fdiagnostics-color): Document.
6757         * pretty-print.h (pp_show_color): Define.
6758         (struct pretty_print_info): Add show_color field.
6759         * diagnostic.c: Include diagnostic-color.h.
6760         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6761         macros.  Colorize error:, warning: etc. strings and also the location
6762         string.
6763         (diagnostic_show_locus): Colorize the caret line.
6764         * pretty-print.c: Include diagnostic-color.h.
6765         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
6766         inside of %< %> quotes or quoted through q format modifier.
6767
6768 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6769
6770         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6771
6772 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6773
6774         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6775         code in CC_NZ mode.
6776         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6777         pattern.
6778
6779 2013-04-11  Marek Polacek  <polacek@redhat.com>
6780
6781         PR tree-optimization/48184
6782         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6783
6784 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6785
6786         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6787         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6788         (skip_simple_arithmetic): Tidy up.
6789         * tree.h (skip_simple_constant_arithmetic): Declare.
6790
6791 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6792
6793         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6794
6795 2013-04-11  Richard Biener  <rguenther@suse.de>
6796
6797         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6798         generate vector constants.
6799
6800 2013-04-11  Richard Biener  <rguenther@suse.de>
6801
6802         PR tree-optimization/56878
6803         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6804         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6805         New function.
6806         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6807         Prefer to align the DR with the most invariant base address.
6808
6809 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6810
6811         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6812         comment.
6813
6814 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6815
6816         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6817         floating-point vector comparisons against 0.
6818
6819 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
6820
6821         PR tree-optimization/56899
6822         * fold-const.c (extract_muldiv_1): Apply distributive law
6823         only if TYPE_OVERFLOW_WRAPS (ctype).
6824
6825 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
6826
6827         PR target/56124
6828         * ira-costs.c (scan_one_insn): Check whether the source rtx of
6829         loading has side effect.
6830
6831 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
6832
6833         * config/sparc/sparc.c: Include tree-pass.h.
6834         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6835         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
6836         head of file.  Change return type.  Split off gate function.
6837         (sparc_gate_work_around_errata): New function.
6838         (pass_work_around_errata): New pass definition.
6839         (insert_pass_work_around_errata) New pass insert definition to
6840         insert pass_work_around_errata just after delayed-branch scheduling.
6841         (sparc_option_override): Insert the pass.
6842         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6843
6844 2013-04-10  David S. Miller  <davem@davemloft.net>
6845
6846         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6847         or -mcpu=hypersparc.
6848
6849         * target.def (cstore_mode): New hook.
6850         * target.h: Include insn-codes.h
6851         * targhooks.c: Likewise.
6852         (default_cstore_mode): New function.
6853         * targhooks.h: Declare it.
6854         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6855         * doc/tm.texi: Rebuild.
6856         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6857         target hook, rather than inspecting the insn_data.
6858         * config/sparc/sparc.c (sparc_cstore_mode): New function.
6859         (TARGET_CSTORE_MODE): Redefine.
6860         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6861         result patterns.
6862         * config/sparc/predicates.md (cstore_result_operand): New special
6863         predicate.
6864         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6865         Use it for operand 0.
6866         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6867         (*snesi_special): Likewise.
6868         (*snesi_zero): Likewise.
6869         (*seqsi_zero): Likewise.
6870         (*sltu_insn): Likewise.
6871         (*sgeu_insn): Likewise.
6872         (*seqdi_special): Make operand 0 and comparison operation be of
6873         DImode.
6874         (*snedi_special): Likewise.
6875         (*snedi_special_vis3): Likewise.
6876         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6877         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6878         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6879         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6880         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6881         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6882         (*sltu_extend_sp64): Likewise.
6883         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6884         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6885         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6886         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6887         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6888
6889 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
6890
6891         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6892         (aarch64_start_file): Use the new function.
6893
6894 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6895             Jason Merrill  <jason@redhat.com>
6896
6897         * common.opt: Add -gdwarf.
6898         * opts.c (common_handle_option): Handle it.
6899         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6900
6901 2013-04-10  Richard Biener  <rguenther@suse.de>
6902
6903         * passes.c (execute_todo): Do not call ggc_collect conditional here.
6904         (execute_one_ipa_transform_pass): But unconditionally here.
6905         (execute_one_pass): And here.
6906         (init_optimization_passes): Remove reload pass.
6907         * tree-pass.h (TODO_ggc_collect): Remove.
6908         (pass_reload): Likewise.
6909         * ira.c (do_reload): Merge into ...
6910         (ira): ... this.
6911         (rest_of_handle_reload): Remove.
6912         (pass_reload): Likewise.
6913         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6914         of reload for vzeroupper pass placement.
6915         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6916         and todo_flags_finish of all passes.
6917
6918 2013-04-10  Richard Biener  <rguenther@suse.de>
6919
6920         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6921         first_const_oprnd field, rename first_def_type to first_op_type.
6922         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6923         (vect_get_and_check_slp_defs): Always use the type of the
6924         operand.  Allow mixed vect_external_def, vect_constant_def types.
6925         (vect_get_constant_vectors): Handle mixed vect_external_def,
6926         vect_constant_def types.
6927
6928 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
6929
6930         PR tree-optimization/55524
6931         * tree-ssa-math-opts.c
6932         (convert_mult_to_fma): Don't use an fms construct
6933         when we don't have an fms operation, but fnma, and it looks
6934         likely that we'll be able to use the latter.
6935
6936 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6937
6938         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6939         function.
6940         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6941         inline fail caused by overwritable functions.
6942
6943 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
6944
6945         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6946         unnecessary bits in the constant power of two case.
6947
6948 2013-04-10  Richard Biener  <rguenther@suse.de>
6949
6950         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6951         broken code swapping operands.
6952         (vect_build_slp_tree): Do not compute load permutations here.
6953         (vect_analyze_slp_instance): Compute load permutations here,
6954         after building the SLP tree.
6955
6956 2013-04-09  Christian Bruel  <christian.bruel@st.com>
6957
6958         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6959         of next/prev_real_insn.
6960
6961 2013-04-09  Jan Hubicka  <jh@suse.cz>
6962
6963         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6964         Drop aliased parameter.
6965         (function_and_variable_visibility): Do not handle alias pairs.
6966         * cgraph.c (varpool_externally_visible_p): Update prototype.
6967         * varpool.c (varpool_add_new_variable): Update.
6968
6969 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6970
6971         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6972
6973 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
6974
6975         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6976
6977         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6978
6979 2013-04-09  Marek Polacek  <polacek@redhat.com>
6980
6981         PR tree-optimization/48762
6982         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
6983
6984 2013-04-09  Richard Biener  <rguenther@suse.de>
6985
6986         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6987         dealing with cost.
6988         (vect_build_slp_tree): Likewise.
6989         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6990         calculating the cost of a SLP instance.
6991         (vect_analyze_slp_instance): Use it from here, after building
6992         the SLP tree.
6993
6994 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
6995
6996         PR middle-end/56883
6997         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6998         expand_omp_for_static_chunk): Use simple_p = true in
6999         force_gimple_operand_gsi calls when assigning to addressable decls.
7000
7001 2013-04-09  Jeff Law  <law@redhat.com>
7002
7003         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7004         when the boolean was created by converting a wider object which
7005         had a boolean range.
7006
7007 2013-04-09  Richard Biener  <rguenther@suse.de>
7008
7009         * tree-vectorizer.h (slp_void_p): Remove.
7010         (slp_tree): Typedef before _slp_tree declaration.
7011         (struct _slp_tree): Use a vector of slp_tree as children.
7012         (vect_get_place_in_interleaving_chain): Remove.
7013         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7014         Move ...
7015         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7016         and make static.
7017         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7018         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7019         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7020         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7021         Use slp_node instead of slp_void_p and adjust.
7022
7023 2013-04-09  Richard Biener  <rguenther@suse.de>
7024
7025         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7026         work that is not necessary.
7027
7028 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7029
7030         PR tree-optimization/56854
7031         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7032         forward into clobber stmts if it would change MEM_REF lhs into
7033         non-MEM_REF.
7034
7035 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
7036
7037         * tree.c (type_hash_lookup, type_hash_add): Make static.
7038         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7039
7040 2013-04-09  Richard Biener  <rguenther@suse.de>
7041
7042         * tree.h (unsave_expr_now): Remove.
7043         * tree-inline.c (mark_local_for_remap_r): Remove.
7044         (unsave_expr_1): Likewise.
7045         (unsave_r): Likewise.
7046         (unsave_expr_now): Likewise.
7047         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7048         (propagate_tree_value): Likewise.
7049
7050 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
7051
7052         * doc/rtl.texi (sequence): Rewrite documentation to match the
7053         current use of SEQUENCE rtl objects.
7054         * rtl.def (SEQUENCE): Likewise.
7055
7056         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7057         Update documentation.
7058         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7059         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7060
7061         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7062
7063 2013-04-08  Teresa Johnson  <tejohnson@google.com>
7064
7065         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7066         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7067         methods.
7068         (estimate_edge_size_and_time): Add comment to suggest using rounding
7069         methods.
7070         (estimate_node_size_and_time): Ditto.
7071         (remap_edge_change_prob): Use helper rounding divide methods.
7072         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7073         (gimple_mod_pow2_value_transform): Ditto.
7074         (gimple_mod_subtract_transform): Ditto.
7075         (gimple_ic_transform): Ditto.
7076         (gimple_stringops_transform): Ditto.
7077         * stmt.c (conditional_probability): Ditto.
7078         (emit_case_dispatch_table): Ditto.
7079         * lto-cgraph.c (merge_profile_summaries): Ditto.
7080         * tree-optimize.c (execute_fixup_cfg): Ditto.
7081         * cfgcleanup.c (try_forward_edges): Ditto.
7082         * cfgloopmanip.c (scale_loop_profile): Ditto.
7083         (loopify): Ditto.
7084         (duplicate_loop_to_header_edge): Ditto.
7085         (lv_adjust_loop_entry_edge): Ditto.
7086         * tree-vect-loop.c (vect_transform_loop): Ditto.
7087         * profile.c (compute_branch_probabilities): Ditto.
7088         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7089         * lto-streamer-in.c (input_cfg): Ditto.
7090         * gimple-streamer-in.c (input_bb): Ditto.
7091         * ipa-cp.c (update_profiling_info): Ditto.
7092         (update_specialized_profile): Ditto.
7093         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7094         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7095         rounding methods.
7096         * sched-rgn.c (compute_dom_prob_ps): Ditto.
7097         (compute_trg_info): Ditto.
7098         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7099         (purge_dead_edges): Ditto.
7100         * loop-unswitch.c (unswitch_loop): Ditto.
7101         * cgraphclones.c (cgraph_clone_edge): Ditto.
7102         (cgraph_clone_node): Ditto.
7103         * tree-inline.c (copy_bb): Ditto.
7104         (copy_edges_for_bb): Ditto.
7105         (initialize_cfun): Ditto.
7106         (copy_cfg_body): Ditto.
7107         (expand_call_inline): Ditto.
7108
7109 2013-04-08  Kai Tietz  <ktietz@redhat.com>
7110
7111         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7112         TARGET_CYGWIN64 by TARGET_64BIT.
7113
7114 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7115
7116         * config/epiphany/epiphany.md (GPR_1): New constant.
7117         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7118         * config/epiphany/epiphany.c (gen_compare_reg):
7119         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7120         is already in place.
7121         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7122         Don't require being called during rtl expansion; If y operlaps r0,
7123         return 0.
7124         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7125         (epiphany_expand_epilogue): Likewise.
7126
7127         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7128         Don't use CC_FPmode for ORDERED / UNORDERED.
7129         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7130
7131         * config/epiphany/constraints.md (CnL): New constraint.
7132         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7133         * config/epiphany/predicates.md (add_operand): Allow 1024.
7134
7135         * config/epiphany/epiphany.md (logical_op): New code iterator.
7136         (op_mnc): New code attribute.
7137         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7138         (mov_f+1, mov_f+2): New peephole2 patterns.
7139
7140         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7141         (cstoresi4): Also allow re-use of zero result when doing a NE
7142         comparison to a non-zero operand.
7143         Use (clobber (scratch)) for first insn if the gpr output is not needed.
7144
7145         * config/epiphany/epiphany.md (<insn_opname>v2si3):
7146         Use gen_addsi3_i / gen_subsi3_i.
7147
7148 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7149
7150         PR c++/34949
7151         PR c++/50243
7152         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7153         contain anything but clobbers, at most one __builtin_stack_restore,
7154         optionally debug stmts and final resx, and if it has at least one
7155         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
7156         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7157         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7158         which isn't defaut definition, remove them.
7159         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7160         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7161         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7162         with MEM_REF LHS with SSA_NAME address.
7163
7164 2013-04-08  Jeff Law  <law@redhat.com>
7165
7166         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7167
7168 2013-04-08  Richard Biener  <rguenther@suse.de>
7169
7170         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7171         extra newline.
7172         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7173         determined vector type.
7174         (vect_analyze_data_refs): Likewise.
7175         (vect_get_new_vect_var): Adjust.
7176         (vect_create_destination_var): Preserve SSA name versions.
7177         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7178         not dump anything here.
7179
7180 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7181
7182         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7183         Add member lr_slot_known.
7184         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7185         if necessary.
7186         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7187         Remove code that sets lr_slot_offset according to what a previous
7188         version of epiphany_emit_save_restore used to do.
7189         (epiphany_emit_save_restore): When doing an lr save or restore,
7190         set/verify lr_slot_known and lr_slot_offset.
7191
7192 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
7193
7194         PR target/54338
7195         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7196         in ALL_REGS.
7197
7198 2013-04-08  Richard Biener  <rguenther@suse.de>
7199
7200         * alias.c (find_base_term): Fix thinko in previous change.
7201
7202 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7203
7204         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7205         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7206         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
7207         if possible to compute val.
7208         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7209         For QImode integers don't require anything about precision.  Use
7210         const_with_all_bytes_same to find out if the constant doesn't have
7211         repeated bytes in it.
7212
7213 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7214
7215         * config/s390/s390.c (s390_expand_insv): Only accept insertions
7216         within mode size.
7217
7218 2013-04-08  Marek Polacek  <polacek@redhat.com>
7219
7220         PR rtl-optimization/48182
7221         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7222         value to 1.
7223
7224 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7225
7226         PR target/55487
7227         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7228         nuses, make sure we have a label.
7229
7230 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7231
7232         PR target/56843
7233         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7234         (rs6000_emit_swdiv_low_precision): Remove.
7235         (rs6000_emit_swdiv): Rewrite to handle between one and four
7236         iterations of Newton-Raphson generally; modify required number of
7237         iterations for some cases.
7238         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7239
7240 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7241
7242         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7243         set-but-unused variable.
7244
7245         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7246         basic blocks of released function bodies garbage-collectable.
7247
7248         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7249         (struct rtl_opt_pass): Add TODO_df_finish.
7250
7251         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7252
7253 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7254
7255         * config/arm/constraints.md (q): New constraint.
7256         * config/arm/ldrdstrd.md: New file.
7257         * config/arm/arm.md (ldrdstrd.md) New include.
7258         (arm_movdi): Use "q" instead of "r" constraint
7259         for double-word memory access.
7260         (movdf_soft_insn): Likewise.
7261         * config/arm/vfp.md (movdi_vfp): Likewise.
7262         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7263         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7264         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7265         (mem_ok_for_ldrd_strd): Likewise.
7266         (output_move_double): Update assertion.
7267
7268 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7269
7270         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7271
7272 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7273
7274         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7275         define_insn_and_split.
7276         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7277
7278 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7279
7280         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7281         define_insn_and_split.
7282         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7283         (shiftsi3_compare): New pattern.
7284         (rrx): New pattern.
7285         * config/arm/unspecs.md (UNSPEC_RRX): New.
7286
7287 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7288
7289         * config/arm/arm.md (negdi_extendsidi): New pattern.
7290         (negdi_zero_extendsidi): Likewise.
7291
7292 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7293
7294         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7295         define_insn_and_split.
7296         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7297         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7298
7299 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7300
7301         * config/arm/arm.md (arm_subdi3): Convert define_insn into
7302         define_insn_and_split.
7303         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7304         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7305
7306 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7307
7308         * config/arm/arm.md (subsi3_carryin): New pattern.
7309         (subsi3_carryin_const): Likewise.
7310         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7311         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7312
7313 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7314
7315         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7316
7317 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7318
7319         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7320         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7321
7322 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7323
7324         * config/arm/arm.c (arm_expand_builtin): Change fcode
7325         type to unsigned int.
7326
7327 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7328
7329         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7330
7331 2013-04-04  Ian Lance Taylor  <iant@google.com>
7332
7333         * doc/standards.texi (Standards): The Go frontend supports the Go 1
7334         language standard.
7335
7336 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7337
7338         PR middle-end/56729
7339         * df-scan.c (df_insn_delete): Disable failing assert.
7340
7341 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7342
7343         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7344         New function prototype.
7345         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7346         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7347         (arm_builtin_vectorized_function): New function.
7348
7349 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7350
7351         * config/arm/arm_neon_builtins.def: New file.
7352         * config/arm/arm.c (neon_builtin_data): Move contents to
7353         arm_neon_builtins.def.
7354         (enum arm_builtins): Include neon builtin definitions.
7355         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7356         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7357
7358 2013-04-04  Marek Polacek  <polacek@redhat.com>
7359
7360         PR tree-optimization/48186
7361         * predict.c (maybe_hot_frequency_p): Return false if
7362         HOT_BB_FREQUENCY_FRACTION is 0.
7363         (cgraph_maybe_hot_edge_p): Likewise.
7364
7365 2013-04-04  Richard Biener  <rguenther@suse.de>
7366
7367         PR tree-optimization/56826
7368         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7369         more accurately.
7370
7371 2013-04-04  Richard Biener  <rguenther@suse.de>
7372
7373         PR tree-optimization/56213
7374         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
7375         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
7376
7377 2013-04-04  Richard Biener  <rguenther@suse.de>
7378
7379         PR tree-optimization/56837
7380         * tree-loop-distribution.c (classify_partition): For non-zero
7381         values require that the value has the same precision as its
7382         mode to be useful as memset value.
7383
7384 2013-04-03  Nick Clifton  <nickc@redhat.com>
7385
7386         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
7387         (fmssf4): Use fmsf.s on E3V5 architectures.
7388         (fnmasf4): Use fnmaf.s on E3V5 architectures.
7389         (fnmssf4): Use fnmsf.s on E3V5 architectures.
7390
7391 2013-04-03  Jeff Law  <law@redhat.com>
7392
7393         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7394         (lra-eliminations.o): Likewise.
7395
7396 2013-04-03  Teresa Johnson  <tejohnson@google.com>
7397
7398         * gcov-io.c (compute_working_sets): Moved most of body of old
7399         compute_working_sets here from profile.c.
7400         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
7401         (gcov_working_set_t): Moved typedef here from basic-block.h
7402         (compute_working_set): Declare.
7403         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7404         (get_working_sets): Renamed from compute_working_set,
7405         replace most of body with call to new compute_working_sets.
7406         (get_exec_counts): Replace call to compute_working_sets
7407         to get_working_sets.
7408         * profile.h (get_working_sets): Renamed from compute_working_set.
7409         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
7410         to get_working_sets.
7411         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7412         * gcov-dump.c (dump_working_sets): New function.
7413
7414 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
7415
7416         * hwint.c (sext_hwi, zext_hwi): New functions.
7417         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7418         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7419         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7420         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7421         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7422         (sext_hwi, zext_hwi): New functions.
7423
7424 2013-04-03  Jeff Law  <law@redhat.com>
7425
7426         PR tree-optimization/56799
7427         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7428         back test for widening conversion erroneously dropped in prior change.
7429
7430 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7431
7432         PR target/56809
7433         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7434         instead of next_real_insn.
7435
7436 2013-04-03  Marek Polacek  <polacek@redhat.com>
7437
7438         PR sanitizer/55702
7439         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
7440
7441 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7442
7443         PR target/56809
7444         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7445         next_real_insn.
7446         (thumb1_output_casesi): Likewise.
7447         (thumb2_output_casesi): Likewise.
7448
7449 2013-04-03  Richard Biener  <rguenther@suse.de>
7450
7451         PR tree-optimization/56817
7452         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7453         Split out ...
7454         (tree_unroll_loops_completely_1): ... new function to manually
7455         walk the loop tree, properly defering outer loops of unrolled
7456         loops to later iterations.
7457
7458 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7459
7460         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7461         (vectorizable_load): Likewise.
7462         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7463         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7464
7465 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7466
7467         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7468         BIT_FIELD_REF.
7469
7470 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7471
7472         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7473
7474 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
7475
7476         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7477
7478 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7479
7480         PR tree-optimization/56790
7481         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7482         folding.
7483
7484 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7485
7486         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7487         Handle VEC_MERGE.
7488         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7489         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7490         equal arguments.
7491
7492 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
7493
7494         PR c/19449
7495         * tree.h (force_folding_builtin_constant_p): New decl.
7496         * builtins.c (force_folding_builtin_constant_p): New variable.
7497         (fold_builtin_constant_p): Fold immediately also if
7498         force_folding_builtin_constant_p.
7499
7500 2013-04-03  Richard Biener  <rguenther@suse.de>
7501
7502         PR tree-optimization/56812
7503         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7504         DRs of the same interleaving chain are independent.
7505
7506 2013-04-02  Jason Merrill  <jason@redhat.com>
7507
7508         * gdbinit.in (pbb): Use debug fn.
7509
7510 2013-04-02  Lawrence Crowl  <crowl@google.com>
7511
7512         * sese.h (struct ivtype_map_elt_s): Remove unused.
7513         (extern debug_ivtype_map): Remove unused.
7514         (extern eq_ivtype_map_elts): Remove unused.
7515         * sese.c (debug_ivtype_map): Removed unused.
7516         (debug_ivtype_map_1): Removed unused.
7517         (debug_ivtype_elt): Remove unused.
7518         (eq_ivtype_map_elts): Remove unused.
7519
7520
7521 2013-04-02  Kai Tietz  <ktietz@redhat.com>
7522
7523         PR target/52790
7524         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7525         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
7526         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7527         function.
7528         (legitimize_pe_coff_symbol): Likewise.
7529         (is_imported_p): New helper-function.
7530         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7531         for Windows x64 targets.
7532         (ix86_expand_prologue): Optimize for pe-coff targets.
7533         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7534         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7535         medium/large code-model.
7536         (legitimize_pic_address): Likewise.
7537         (legitimize_tls_address): Likewise.
7538         (ix86_expand_call): Likewise.
7539         (x86_output_mi_thunk): Likewise.
7540         (get_dllimport_decl): Add new beimport argument.
7541         (construct_plt_address): Don't assert for x64 pe-coff targets.
7542         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7543         targets.
7544         (SYMBOL_FLAG_STUBVAR): New macro.
7545         (SYMBOL_REF_STUBVAR_P): Likewise.
7546         * config/i386/winnt.c (stub_list): New structure.
7547         (stub_head): New local variable.
7548         (i386_pe_record_stub): New function.
7549         (i386_pe_file_end): Emit refptr-stubs.
7550
7551 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
7552
7553         PR rtl-optimization/56745
7554         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7555         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7556
7557         PR c++/34949
7558         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7559         and both of them are MEM_REFs, just compare first argument for
7560         equality and attempt to deal even with differing offsets.
7561
7562         PR c++/34949
7563         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7564         of gimple_clobber_p to be MEM_REF.
7565         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7566         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
7567         after gimplification.
7568         * asan.c (get_mem_ref_of_assignment): Don't instrument
7569         gimple_clobber_p stmts.
7570         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7571         gimple_clobber_p stmt if they have MEM_REF lhs and
7572         are dead because of another gimple_clobber_p stmt.
7573         * tree-ssa-live.c (clear_unused_block_pointer): Treat
7574         gimple_clobber_p stmts like debug stmts.
7575         (remove_unused_locals): Remove clobbers with MEM_REF lhs
7576         that refer to unused VAR_DECLs or uninitialized values.
7577         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7578         gimple_clobber_p stmts if they refer to removed parameters.
7579         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7580         formatting.
7581
7582 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
7583
7584         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7585         using SWI48 mode attribute.
7586
7587 2013-04-02  Wei Mi  <wmi@google.com>
7588
7589         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7590         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7591         *<rotate_insn><mode>3_mask in i386.md.
7592
7593 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7594
7595         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7596
7597 2013-04-02  Richard Biener  <rguenther@suse.de>
7598
7599         PR tree-optimization/56778
7600         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7601         Runtime alias tests are not supported for gather loads.
7602         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7603         stmts referenced from SSA operands before updating SSA form.
7604
7605 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
7606             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7607
7608         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7609         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7610         * config/arm/cortex-a53.md: New file.
7611         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7612         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7613         * config/arm/arm.c (arm_issue_rate): Likewise.
7614         * config/arm/arm-tune.md: Regenerate
7615         * config/arm/arm-tables.opt: Regenerate.
7616         * config/arm/arm-cores.def: Add cortex-a53.
7617
7618 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7619
7620         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7621         non-static link.
7622
7623 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7624
7625         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7626         scalar load/store operations using B/H registers.
7627         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7628
7629 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7630
7631         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7632         scalar move.
7633         * config/aarch64/aarch64.c
7634         (aarch64_simd_scalar_immediate_valid_for_move): New.
7635         * config/aarch64/aarch64-protos.h
7636         (aarch64_simd_scalar_immediate_valid_for_move): New.
7637         * config/aarch64/constraints.md (Dh, Dq): New.
7638         * config/aarch64/iterators.md (hq): New.
7639
7640 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
7641
7642         * reorg.c (get_branch_condition): Deal with conditional returns.
7643         (fill_simple_delay_slots): Remove dead code dealing with jumps.
7644
7645 2013-04-01  Wei Mi  <wmi@google.com>
7646
7647         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7648         Truncate operand 2 using %b asm operand modifier.
7649         (*<shift_insn><mode>3_mask): Ditto.
7650         (*<rotate_insn><mode>3_mask): Ditto.
7651
7652 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
7653
7654         PR middle-end/56798
7655         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7656
7657 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7658
7659         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7660         of next_real_insn.
7661         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7662
7663 2013-03-30  Lawrence Crowl  <crowl@google.com>
7664
7665         * dse.c (clear_alias_sets): Remove never set.
7666         (disqualified_clear_alias_sets): Remove never set.
7667         (clear_alias_mode_pool): Remove never set.
7668         (dse_step0): Remove condition that is never true.
7669         (canon_address): Remove condition that is never true.
7670         (dse_step7): Remove condition that is never true.
7671         (rest_of_handle_dse): Remove condition that is never true.
7672         (rest_of_handle_dse::did_global): Remove never read from above.
7673         (dse_step2_spill): Remove never called from above.
7674         (dse_step5_spill): Remove never called from above.
7675
7676 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
7677
7678         * doc/md.texi (Standard Names) <casesi>: Update documentation for
7679         JUMP_TABLE_DATA changes.
7680         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7681         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7682         (Insns) <jump_table_data>: New entry.
7683         * doc/tm.texi: Regenerate.
7684
7685         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7686
7687         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7688         for table jump at the end of a basic block using tablejump_p.
7689         * targhooks.c (default_invalid_within_doloop): Likewise.
7690         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7691         target hook implementation that is identical to the default hook.
7692         (rs6000_invalid_within_doloop): Remove.
7693
7694         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7695         unused variable from tablejump_p call.
7696
7697         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7698         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7699         (INSN_DELETED_P): Likewise.
7700         (emit_jump_table_data): New prototype.
7701         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7702         after 4th as unused.
7703         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7704         * sched-vis.c (print_insn): Likewise.
7705         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7706         insn for compatibility with back ends that use next_active_insn to
7707         identify jump table data.
7708         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7709         (remove_insn): Likewise.
7710         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7711         to be emitted.
7712         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7713         (emit_jump_table_data): New function.
7714
7715         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7716         basic block, a JUMP_TABLE_DATA never is.
7717         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7718         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7719         off from code handling real insns.
7720         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7721         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7722         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7723         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7724         is not a NONDEBUG_INSN_P.
7725         * ira-costs.c (scan_one_insn): Likewise.
7726         * jump.c (mark_all_labels): Likewise.
7727         (mark_jump_label_1): Likewise.
7728         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7729         * lra.c (get_insn_freq): Expect all insns reaching here to be in
7730         a basic block.
7731         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7732         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7733         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7734         JUMP_TABLE_DATA_P insns.
7735         (calculate_elim_costs_all_insns): Likewise.
7736         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7737         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7738         (delete_output_reload): Code style fixups.
7739         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7740         insn flags on this non-insn.
7741         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7742         as scheduling barriers, for pre-change compatibility.
7743         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7744         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7745
7746         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7747         redundant JUMP_TABLE_DATA_P test.
7748         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7749         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7750         (frv_for_each_packet): Likewise.
7751         * config/i386/i386.c (min_insn_size): Likewise.
7752         (ix86_avoid_jump_mispredicts): Likewise.
7753         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7754         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7755         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7756         (mips16_insn_length): Robustify.
7757         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7758         (mips16_split_long_branches): Likewise.
7759         * config/pa/pa.c (pa_combine_instructions): Likewise.
7760         * config/rs6000/rs6000.c (get_next_active_insn): Treat
7761         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7762         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7763         as contributing to pool range lengths.
7764         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7765         Remove redundant JUMP_TABLE_DATA_P test.
7766         (sh_loop_align): Likewise.
7767         (split_branches): Likewise.
7768         (sh_insn_length_adjustment): Likewise.
7769         * config/spu/spu.c (get_branch_target): Likewise.
7770
7771 2013-03-29  Jan Hubicka  <jh@suse.cz>
7772
7773         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7774         gcov streaming; stream hot bb threshold to ltrans.
7775         * predict.c (get_hot_bb_threshold): Break out from ....
7776         (maybe_hot_count_p): ... here.
7777         (set_hot_bb_threshold): New function.
7778         * lto-section-in.c (lto_section_name): Add profile.
7779         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7780         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7781         and data-streamer.h
7782         (histogram_entry): New structure.
7783         (histogram, histogram_pool): New global vars.
7784         (histogram_hash): New structure.
7785         (histogram_hash::hash): New method.
7786         (histogram_hash::equal): Likewise.
7787         (account_time_size): New function.
7788         (cmp_counts): New function.
7789         (dump_histogram): New function.
7790         (ipa_profile_generate_summary): New function.
7791         (ipa_profile_write_summary): New function.
7792         (ipa_profile_read_summary): New function.
7793         (ipa_profile): Decide on threshold.
7794         (pass_ipa_profile): Add ipa_profile_write_summary and
7795         ipa_profile_read_summary.
7796         * Makefile.in (ipa.o): Update dependencies.
7797         * lto-streamer.h (LTO_section_ipa_profile): New section.
7798
7799 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7800
7801         * tree.h (VAR_P): New.
7802
7803 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
7804
7805         PR lto/56777
7806         * doc/invoke.texi ([-fwhole-program]): Fix typo.
7807
7808 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7809
7810         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7811         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7812         (control_flow_insn_p): Likewise.
7813         * cfgrtl.c (duplicate_insn_chain): Likewise.
7814         * final.c (get_attr_length_1): Likewise.
7815         (shorten_branches): Likewise.
7816         (final_scan_insn): Likewise.
7817         * function.c (instantiate_virtual_regs): Likewise.
7818         * gcse.c (insert_insn_end_basic_block): Likewise.
7819         * ira-costs.c (scan_one_insn): Likewise.
7820         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7821         * lra.c (check_rtl): Likewise.
7822         * reload1.c (elimination_costs_in_insn): Likewise.
7823         * reorg.c (follow_jumps): Likewise.
7824
7825         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7826         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7827         (thumb_far_jump_used_p): Likewise.
7828         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7829         (workaround_speculation): Likewise.
7830         (add_sched_insns_for_speculation): Likewise.
7831         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7832         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7833         (frv_for_each_packet): Likewise.
7834         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7835         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7836         (final_emit_insn_group_barriers): Likewise.
7837         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7838         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7839         (mips16_insn_length): Likewise.
7840         * config/pa/pa.c (pa_reorg): Likewise.
7841         (pa_combine_instructions): Likewise.
7842         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7843         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7844         (sh_reorg): Likewise.
7845         (split_branches): Likewise.
7846         * config/spu/spu.c (get_branch_target): Likewise.
7847
7848         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7849         JUMP_TABLE_DATA_P.
7850
7851 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
7852
7853         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7854         Fix declaration name.
7855
7856 2013-03-28  Lawrence Crowl  <crowl@google.com>
7857
7858         * graphds.h (struct graph.indicies): Remove unused.
7859         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7860         (SCOP_ORIGINAL_PDDRS): Remove unused.
7861         * sese.h (extern insert_loop_close_phis): Removed unused.
7862         (extern insert_guard_phis): Removed unused.
7863         (extern ivtype_map_elt_info): Removed unused.
7864         (new_ivtype_map_elt): Removed unused.
7865         * sese.c (ivtype_map_elt_info): Removed unused.
7866
7867 2013-03-28  Lawrence Crowl  <crowl@google.com>
7868
7869         * Makefile.in: Add several missing include dependences.
7870         (DUMPFILE_H): New.
7871         (test-dump.o): New.  This object is not added to any executable,
7872         but is present for ad-hoc testing.
7873         * bitmap.c
7874         (debug (const bitmap_head_def &)): New.
7875         (debug (const bitmap_head_def *)): New.
7876         * bitmap.h
7877         (extern debug (const bitmap_head_def &)): New.
7878         (extern debug (const bitmap_head_def *)): New.
7879         * cfg.c
7880         (debug (edge_def &)): New.
7881         (debug (edge_def *)): New.
7882         * cfghooks.c
7883         (debug (basic_block_def &)): New.
7884         (debug (basic_block_def *)): New.
7885         * dumpfile.h
7886         (dump_node (const_tree, int, FILE *)): Correct source file.
7887         * dwarf2out.c
7888         (debug (die_struct &)): New.
7889         (debug (die_struct *)): New.
7890         * dwarf2out.h
7891         (extern debug (die_struct &)): New.
7892         (extern debug (die_struct *)): New.
7893         * gimple-pretty-print.c
7894         (debug (gimple_statement_d &)): New.
7895         (debug (gimple_statement_d *)): New.
7896         * gimple-pretty-print.h
7897         (extern debug (gimple_statement_d &)): New.
7898         (extern debug (gimple_statement_d *)): New.
7899         * ira-build.c
7900         (debug (ira_allocno_copy &)): New.
7901         (debug (ira_allocno_copy *)): New.
7902         (debug (ira_allocno &)): New.
7903         (debug (ira_allocno *)): New.
7904         * ira-int.h
7905         (extern debug (ira_allocno_copy &)): New.
7906         (extern debug (ira_allocno_copy *)): New.
7907         (extern debug (ira_allocno &)): New.
7908         (extern debug (ira_allocno *)): New.
7909         * ira-lives.c
7910         (debug (live_range &)): New.
7911         (debug (live_range *)): New.
7912         * lra-int.h
7913         (debug (lra_live_range &)): New.
7914         (debug (lra_live_range *)): New.
7915         * lra-lives.c
7916         (debug (lra_live_range &)): New.
7917         (debug (lra_live_range *)): New.
7918         * omega.c
7919         (debug (omega_pb_d &)): New.
7920         (debug (omega_pb_d *)): New.
7921         * omega.h
7922         (extern debug (omega_pb_d &)): New.
7923         (extern debug (omega_pb_d *)): New.
7924         * print-rtl.c
7925         (debug (const rtx_def &)): New.
7926         (debug (const rtx_def *)): New.
7927         * print-tree.c
7928         (debug_tree (tree): Move within file.
7929         (debug_raw (const tree_node &)): New.
7930         (debug_raw (const tree_node *)): New.
7931         (dump_tree_via_hooks (const tree_node *, int)): New.
7932         (debug (const tree_node &)): New.
7933         (debug (const tree_node *)): New.
7934         (debug_verbose (const tree_node &)): New.
7935         (debug_verbose (const tree_node *)): New.
7936         (debug_head (const tree_node &)): New.
7937         (debug_head (const tree_node *)): New.
7938         (debug_body (const tree_node &)): New.
7939         (debug_body (const tree_node *)): New.
7940         (debug_vec_tree (tree): Move and reimplement in terms of dump.
7941         (debug (vec<tree, va_gc> &)): New.
7942         (debug (vec<tree, va_gc> *)): New.
7943         * rtl.h
7944         (extern debug (const rtx_def &)): New.
7945         (extern debug (const rtx_def *)): New.
7946         * sbitmap.c
7947         (debug_raw (simple_bitmap_def &)): New.
7948         (debug_raw (simple_bitmap_def *)): New.
7949         (debug (simple_bitmap_def &)): New.
7950         (debug (simple_bitmap_def *)): New.
7951         * sbitmap.h
7952         (extern debug (simple_bitmap_def &)): New.
7953         (extern debug (simple_bitmap_def *)): New.
7954         (extern debug_raw (simple_bitmap_def &)): New.
7955         (extern debug_raw (simple_bitmap_def *)): New.
7956         * sel-sched-dump.c
7957         (debug (vinsn_def &)): New.
7958         (debug (vinsn_def *)): New.
7959         (debug_verbose (vinsn_def &)): New.
7960         (debug_verbose (vinsn_def *)): New.
7961         (debug (expr_def &)): New.
7962         (debug (expr_def *)): New.
7963         (debug_verbose (expr_def &)): New.
7964         (debug_verbose (expr_def *)): New.
7965         (debug (vec<rtx> &)): New.
7966         (debug (vec<rtx> *)): New.
7967         * sel-sched-dump.h
7968         (extern debug (vinsn_def &)): New.
7969         (extern debug (vinsn_def *)): New.
7970         (extern debug_verbose (vinsn_def &)): New.
7971         (extern debug_verbose (vinsn_def *)): New.
7972         (extern debug (expr_def &)): New.
7973         (extern debug (expr_def *)): New.
7974         (extern debug_verbose (expr_def &)): New.
7975         (extern debug_verbose (expr_def *)): New.
7976         (extern debug (vec<rtx> &)): New.
7977         (extern debug (vec<rtx> *)): New.
7978         * sel-sched-ir.h
7979         (_list_iter_cond_expr): Make inline instead of static.
7980         * sreal.c
7981         (debug (sreal &)): New.
7982         (debug (sreal *)): New.
7983         * sreal.h
7984         (extern debug (sreal &)): New.
7985         (extern debug (sreal *)): New.
7986         * tree.h
7987         (extern debug_raw (const tree_node &)): New.
7988         (extern debug_raw (const tree_node *)): New.
7989         (extern debug (const tree_node &)): New.
7990         (extern debug (const tree_node *)): New.
7991         (extern debug_verbose (const tree_node &)): New.
7992         (extern debug_verbose (const tree_node *)): New.
7993         (extern debug_head (const tree_node &)): New.
7994         (extern debug_head (const tree_node *)): New.
7995         (extern debug_body (const tree_node &)): New.
7996         (extern debug_body (const tree_node *)): New.
7997         (extern debug (vec<tree, va_gc> &)): New.
7998         (extern debug (vec<tree, va_gc> *)): New.
7999         * tree-cfg.c
8000         (debug (struct loop &)): New.
8001         (debug (struct loop *)): New.
8002         (debug_verbose (struct loop &)): New.
8003         (debug_verbose (struct loop *)): New.
8004         * tree-dump.c: Add header dependence.
8005         * tree-flow.h
8006         (extern debug (struct loop &)): New.
8007         (extern debug (struct loop *)): New.
8008         (extern debug_verbose (struct loop &)): New.
8009         (extern debug_verbose (struct loop *)): New.
8010         * tree-data-ref.c
8011         (debug (data_reference &)): New.
8012         (debug (data_reference *)): New.
8013         (debug (vec<data_reference_p> &)): New.
8014         (debug (vec<data_reference_p> *)): New.
8015         (debug (vec<ddr_p> &)): New.
8016         (debug (vec<ddr_p> *)): New.
8017         * tree-data-ref.h
8018         (extern debug (data_reference &)): New.
8019         (extern debug (data_reference *)): New.
8020         (extern debug (vec<data_reference_p> &)): New.
8021         (extern debug (vec<data_reference_p> *)): New.
8022         (extern debug (vec<ddr_p> &)): New.
8023         (extern debug (vec<ddr_p> *)): New.
8024         * tree-ssa-alias.c
8025         (debug (pt_solution &)): New.
8026         (debug (pt_solution *)): New.
8027         * tree-ssa-alias.h
8028         (extern debug (pt_solution &)): New.
8029         (extern debug (pt_solution *)): New.
8030         * tree-ssa-alias.c
8031         (debug (_var_map &)): New.
8032         (debug (_var_map *)): New.
8033         (debug (tree_live_info_d &)): New.
8034         (debug (tree_live_info_d *)): New.
8035         * tree-ssa-alias.h
8036         (extern debug (_var_map &)): New.
8037         (extern debug (_var_map *)): New.
8038         (extern debug (tree_live_info_d &)): New.
8039         (extern debug (tree_live_info_d *)): New.
8040
8041 2013-03-28  Jan Hubicka  <jh@suse.cz>
8042
8043         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8044
8045 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
8046
8047         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8048         record only when desired or required.
8049
8050 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
8051
8052         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8053         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
8054
8055 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8056
8057         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8058         (*andsi3_compare0_uxtw): New pattern.
8059         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8060         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8061
8062 2013-03-28  Jan Hubicka  <jh@suse.cz>
8063
8064         * data-streamer-in.c (streamer_read_gcov_count): New function.
8065         * gimple-streamer-out.c: Include value-prof.h.
8066         (output_gimple_stmt): Output histogram.
8067         (output_bb): Use streamer_write_gcov_count.
8068         * value-prof.c: Include data-streamer.h
8069         (dump_histogram_value): Add HIST_TYPE_MAX.
8070         (stream_out_histogram_value): New function.
8071         (stream_in_histogram_value): New function.
8072         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8073         (stream_out_histogram_value, stream_in_histogram_value): Declare.
8074         * data-streamer-out.c (streamer_write_gcov_count): New function.
8075         (streamer_write_gcov_count_stream): New function.
8076         * lto-cgraph.c (lto_output_edge): Update counter streaming.
8077         (lto_output_node): Likewise.
8078         (input_node, input_edge): Likewise.
8079         * lto-streamer-out.c (output_cfg): Update streaming.
8080         * lto-streamer-in.c (input_cfg): Likewise.
8081         * data-streamer.h (streamer_write_gcov_count,
8082         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8083         * gimple-streamer-in.c: Include value-prof.h
8084         (input_gimple_stmt): Input histograms.
8085         (input_bb): Update profile streaming.
8086
8087 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8088
8089         * genmodes.c (emit_max_int): New function.
8090         (emit_insn_modes_h): Added call to emit_max_function.
8091         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8092         Added doc.
8093         * machmode.def: Fixed comment.
8094
8095 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8096
8097         * combine.c (try_combine): Removed useless assert.
8098         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8099
8100 2013-03-28  Marek Polacek  <polacek@redhat.com>
8101             Richard Biener  <rguenther@suse.de>
8102
8103         PR tree-optimization/56695
8104         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8105         build signed result of a vector comparison.
8106         * tree-cfg.c (verify_gimple_comparison): Check that a result
8107         of a vector comparison has signed type.
8108
8109 2013-03-28  Richard Biener  <rguenther@suse.de>
8110
8111         PR tree-optimization/37021
8112         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8113         do not restrict gaps between groups.
8114         * tree-vect-stmts.c (vectorizable_load): Properly account for
8115         a gap between groups.
8116
8117 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8118
8119         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8120         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8121         is not enabled.
8122
8123 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
8124
8125         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8126         * doc/extend.texi (Named Address Spaces): Ditto.
8127         (Variable Attributes): Ditto.
8128
8129 2013-03-27  Kai Tietz  <ktietz@redhat.com>
8130
8131         * config.build: Add support for cygwin x64 target.
8132         * config.gcc: Likewise.
8133         * config.host: Likewise.
8134         * configure.ac: Likewise
8135         * configure: Regenerated.
8136
8137 2013-03-27 Kai Tietz  <ktietz@redhat.com>
8138
8139         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8140         * config/i386/t-cygwin-w64: New file.
8141         * config/i386/cygwin-w64.h: New file.
8142         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8143         and add support for x64-cygwin target.
8144         (CPP_SPEC): Likewise.
8145         (CXX_WRAP_SPEC_LIST): Undefine before define.
8146         (LIBGCJ_SONAME): Use 15 as version.
8147
8148 2013-03-27  Richard Biener  <rguenther@suse.de>
8149
8150         PR tree-optimization/56716
8151         * tree-ssa-structalias.c (perform_var_substitution): Adjust
8152         dumping for ref nodes.
8153
8154 2013-03-27  Martin Jambor  <mjambor@suse.cz>
8155
8156         PR tree-optimization/55334
8157         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8158         restricted pointers to arrays.
8159
8160 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8161
8162         * Makefile.in (.SUFFIXES): Add .cc.
8163         (.c.o): Apply same recipe for implicit rule .cc.o.
8164
8165 2013-03-27  Richard Biener  <rguenther@suse.de>
8166
8167         PR tree-optimization/37021
8168         * tree-vect-data-refs.c (vect_check_strided_load): Allow
8169         REALPART/IMAGPART_EXPRs around the supported refs.
8170         * tree-ssa-structalias.c (find_func_aliases): Assume that
8171         floating-point values are not used to transfer pointers.
8172
8173 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8174
8175         * target.def (TARGET_HAS_IFUNC_P): New target hook.
8176         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8177         * doc/tm.texi: Regenerate.
8178         * targhooks.h (default_has_ifunc_p): New.
8179         * targhooks.c (default_has_ifunc_p): Ditto.
8180         * config/linux-protos.h: New file.
8181         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8182         this hook for linux which disables support of indirect functions in
8183         android.
8184         * config/linux-android.c: New file.
8185         * config/t-linux-android.c: Ditto.
8186         * config.gcc: Added new object file linux-android.o.
8187         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8188         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8189         * varasm.c (do_assemble_alias): Likewise.
8190         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8191         doesn't support indirect functions.
8192         * configure: Regenerate.
8193
8194 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
8195
8196         PR target/56102
8197         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8198         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8199         mult-word mode.
8200
8201 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8202
8203         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8204
8205 2013-03-27  Terry Guo  <terry.guo@arm.com>
8206
8207         * config/arm/arm-cores.def: Added core cortex-r7.
8208         * config/arm/arm-tune.md: Regenerated.
8209         * config/arm/arm-tables.opt: Regenerated.
8210         * doc/invoke.texi: Added entry for core cortex-r7.
8211
8212 2013-03-27  Walter Lee  <walt@tilera.com>
8213
8214         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8215         double-decrement of next_scratch_regno.
8216
8217 2013-03-27  Walter Lee  <walt@tilera.com>
8218
8219         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8220         input operands.
8221         (insn_v1mulus): Ditto.
8222         (insn_v2muls): Ditto.
8223
8224 2013-03-27  Walter Lee  <walt@tilera.com>
8225
8226         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8227         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8228
8229 2013-03-27  Walter Lee  <walt@tilera.com>
8230
8231         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8232         (*sibcall_value): Ditto.
8233
8234 2013-03-27  Walter Lee  <walt@tilera.com>
8235
8236         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8237         (insn_mnz_v8qi): ... this ...
8238         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
8239         vector equivalent.
8240         (insn_v<n>mnz): Replaced by ...
8241         (insn_v1mnz): ... this ...
8242         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
8243         equivalent.
8244         (insn_mz_<mode>): Replaced by ...
8245         (insn_mz_v8qi): ... this ...
8246         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
8247         vector equivalent.
8248         (insn_v<n>mz): Replaced by ...
8249         (insn_v1mz): ... this ...
8250         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
8251         equivalent.
8252
8253 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8254
8255         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8256
8257 2013-03-26  Roland McGrath  <mcgrathr@google.com>
8258
8259         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8260         than fprintf with a non-constant, non-format string.
8261
8262 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8263
8264         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8265         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
8266         operand 0 predicate.
8267         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8268         attribute.  Use general_x64nomem_operand as operand 1 predicate.
8269         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8270         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8271         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8272         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8273         (mov<mode>_insv_1): Remove expander.  Merge insn with
8274         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8275         Use general_x64nomem_operand as operand 1 predicate.
8276         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8277         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8278         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8279         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8280         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
8281         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8282         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8283         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8284         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
8285         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8286         (general_x64nomem_operand): Ditto.
8287
8288 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8289
8290         * config/rtems.opt: Add -pthread option.
8291
8292 2013-03-26  Richard Biener  <rguenther@suse.de>
8293
8294         * alias.c (find_base_term): Avoid redundant and not used recursion.
8295         (base_alias_check): Get the initial base term from the caller.
8296         (true_dependence_1): Compute and pass base terms to base_alias_check.
8297         (write_dependence_p): Likewise.
8298         (may_alias_p): Likewise.
8299
8300 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
8301
8302         * config/aarch64/aarch64.c (aarch64_classify_address): Support
8303         PC-relative load in SI modes and above only.
8304
8305 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
8306
8307         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8308         * config/arm/iwmmxt.md (WCGR0): Update.
8309         (WCGR1, WCGR2, WCGR3): Likewise.
8310
8311 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8312
8313         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8314         Use x64 and nox64 isa attributes.
8315
8316 2013-03-26  Richard Biener  <rguenther@suse.de>
8317
8318         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8319         alignment computations and rely on get_object_alignment_1
8320         for the !TYPE_P case.
8321         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8322
8323 2013-03-26  Walter Lee  <walt@tilera.com>
8324
8325         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8326         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8327
8328 2013-03-25  Jeff Law  <law@redhat.com>
8329
8330         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8331         check for INTEGRAL_TYPE_P that was missing due to checking in
8332         wrong version of prior patch.
8333
8334 2013-03-25  Walter Lee  <walt@tilera.com>
8335
8336         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8337         TILEGX_INSN_SHUFFLEBYTES1.
8338         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8339         shufflebytes1.
8340         (tilegx_builtins): Ditto.
8341         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8342
8343 2013-03-25  Walter Lee  <walt@tilera.com>
8344
8345         * config/tilegx/tilegx.md (floatsisf2): New pattern.
8346         (floatunssisf2): New pattern.
8347         (floatsidf2): New pattern.
8348         (floatunssidf2): New pattern.
8349
8350 2013-03-25  Walter Lee  <walt@tilera.com>
8351
8352         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8353         tests for constraint J, K, N, P.
8354
8355 2013-03-25  Walter Lee  <walt@tilera.com>
8356
8357         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8358         Use indirect/pcrel encoding.
8359         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8360         Ditto.
8361
8362 2013-03-25  Steve Ellcey  <sellcey@mips.com>
8363
8364         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8365         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8366         * config/mips/mips.c (mips_option_override): Set IMADD default.
8367         * config/mips/mips.h (PTF_AVOID_IMADD): New.
8368         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8369         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8370         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8371         * doc/invoke.texi (-mimadd/-mno-imadd): New.
8372
8373 2013-03-25  Jeff Law  <law@redhat.com>
8374
8375         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8376         slightly to avoid creating and folding useless trees.  Simplify
8377         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8378
8379 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
8380
8381         * config/i386/i386.md (*zero_extendsidi2): Merge with
8382         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
8383         * config/i386/predicates.md (x86_64_zext_operand): Rename from
8384         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
8385         targets.  Clarify comment.
8386
8387 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8388
8389         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8390         pass-through jump functions differently.
8391         (ipa_read_jump_function): Likewise.  Also use setter functions to set
8392         up jump functions.
8393
8394 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8395
8396         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8397         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8398         process it.
8399         (ipa_get_indirect_edge_target): New function.
8400         (devirtualization_time_bonus): New parameter known_aggs, pass it to
8401         ipa_get_indirect_edge_target.  Update all callers.
8402         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
8403         ipa_get_indirect_edge_target_1 instead of calling
8404         ipa_get_indirect_edge_target.
8405         (create_specialized_node): Pass aggvlas to
8406         ipcp_discover_new_direct_edges.
8407
8408 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8409
8410         * config/arm/arm.md (f_sels, f_seld): New types.
8411         (*cmov<mode>): New pattern.
8412         * config/arm/predicates.md (arm_vsel_comparison_operator): New
8413         predicate.
8414
8415 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8416
8417         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8418         POSIX-printf for mingw-hosted  builds.
8419
8420 2013-03-25  Richard Biener  <rguenther@suse.de>
8421
8422         PR middle-end/56694
8423         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8424         must-not-throw stmt location.
8425
8426 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8427
8428         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8429         Emit load-acquire versions when acq is true.
8430         (arm_emit_store_exclusive): Add rel parameter.
8431         Emit store-release versions when rel is true.
8432         (arm_split_compare_and_swap): Use acquire-release instructions
8433         instead.
8434         of barriers when appropriate.
8435         (arm_split_atomic_op): Likewise.
8436         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8437         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8438         (VUNSPEC_SLX): Likewise.
8439         (VUNSPEC_LDA): Likewise.
8440         (VUNSPEC_STL): Likewise.
8441         * config/arm/sync.md (atomic_load<mode>): New pattern.
8442         (atomic_store<mode>): Likewise.
8443         (arm_load_acquire_exclusive<mode>): Likewise.
8444         (arm_load_acquire_exclusivesi): Likewise.
8445         (arm_load_acquire_exclusivedi): Likewise.
8446         (arm_store_release_exclusive<mode>): Likewise.
8447
8448 2013-03-25  Catherine Moore  <clm@codesourcery.com>
8449
8450         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8451         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8452         * config/mip/predicates.md (lwsp_swsp_operand,
8453         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8454         sb16_operand, db4_operand, db7_operand, ib3_operand,
8455         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8456         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8457         andi16_operand): New predicates.
8458         * config/mips/mips.md (compression): New attribute.
8459         (enabled): New attribute.
8460         (length): Consider compression in computing length.
8461         (shift_compression): New code attribute.
8462         (*add<mode>3): New operands. Record compression.
8463         (sub<mode>3): Likewise.
8464         (one_cmpl<mode>2): Likewise.
8465         (*and<mode>3): Likewise.
8466         (*ior<mode>3): Likewise.
8467         (unnamed pattern for xor): Likewise.
8468         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8469         (*<optab><mode>3): Likewise.
8470         (*mov<mode>_internal: Likewise.
8471         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8472         (mips_unsigned_immediate_p): New.
8473         (umips_lwsp_swsp_address_p): New.
8474         (m16_based_address_p): New.
8475         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8476         (mips_unsigned_immediate_p): New prototype.
8477         (lwsp_swsp_address_p): New prototype.
8478         (m16_based_address_p): New prototype.
8479         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8480         (mips_signed_immediate_p): New function.
8481         (m16_based_address_p): New function.
8482         (lwsp_swsp_address_p): New function.
8483         (mips_print_operand_punctuation): Recognize short delay slot insns
8484         for microMIPS.add<mode>3"
8485
8486 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8487
8488         PR target/56720
8489         * config/arm/iterators.md (v_cmp_result): New mode attribute.
8490         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8491
8492 2013-03-25  Richard Biener  <rguenther@suse.de>
8493
8494         PR tree-optimization/56689
8495         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8496         any edge.
8497
8498 2013-03-25  Richard Biener  <rguenther@suse.de>
8499
8500         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8501         of bitmap.
8502         (memory_references): Likewise.
8503         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8504         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8505         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8506         (gather_mem_refs_in_loops): Fold into ...
8507         (analyze_memory_references): ... this.  Move initialization
8508         to tree_ssa_lim_initialize.
8509         (fill_always_executed_in): Rename to ...
8510         (fill_always_executed_in_1): ... this.
8511         (fill_always_executed_in): Move contains_call computation to
8512         this new function from ...
8513         (tree_ssa_lim_initialize): ... here.
8514         (tree_ssa_lim): Call fill_always_executed_in.
8515
8516 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8517
8518         * postreload.c (reload_combine): Fix code detecting returns.
8519
8520 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8521
8522         * function.c (emit_use_return_register_into_block): On cc0 targets,
8523         do not emit the sequence between cc0 setter and user.
8524
8525 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8526
8527         * config/i386/predicates.md (local_symbolic_operand): Interpret
8528         dll-imported symbols as none-local.
8529
8530 2013-03-25  Richard Biener  <rguenther@suse.de>
8531
8532         * tree-ssa-loop-im.c (struct depend): Remove.
8533         (struct lim_aux_data): Make depends a vec of gimples.
8534         (free_lim_aux_data): Adjust.
8535         (add_dependency): Likewise.
8536         (set_level): Likewise.
8537
8538 2013-03-25  Richard Biener  <rguenther@suse.de>
8539
8540         PR middle-end/56434
8541         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8542         the pointer returned by calls with ECF_MALLOC set.
8543
8544 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8545
8546         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8547
8548 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8549
8550         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8551         using MMXMODE mode iterator.
8552         (*move<mode>_internal): Merge with *movv2sf_internal and
8553         *movv2sf_internal_rex64 using MMXMODE mode iterator.
8554
8555 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8556
8557         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8558         (record_last_mem_set_info): Likewise.
8559
8560         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8561         of XNEWVEC followed by memset.
8562         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8563
8564 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8565
8566         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8567         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8568         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8569         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8570         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8571         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8572         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8573         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8574         BARRIER_P instead of GET_CODE.
8575
8576 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8577
8578         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8579         inaccuracy in the probing code.
8580
8581         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8582         (ctrapdi4): Likewise.
8583
8584 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8585
8586         * calls.c (expand_call): Add missing guard to code handling return
8587         of non-BLKmode structures in MSB.
8588         * function.c (expand_function_end): Likewise.
8589
8590 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8591
8592         * combine.c (try_combine): Adjust comment.  Do not add the set of
8593         insn #0 if the destination indirectly is set or dies in insn #2.
8594         Tidy up code to distribute a new note.
8595
8596 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8597
8598         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8599         also for alternatives 16 and 17.
8600
8601 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8602
8603         * config/i386/sse.md (*mov<mode>_internal): Merge with
8604         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
8605         Emit insn template depending on type attribute.  Use
8606         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8607         movd instead of movq mnemonic for interunit moves.  Rewrite mode
8608         attribute calculation.  Remove unit attribute calculation.
8609         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8610         Set prefix_data16 attribute for DImode ssemov types.
8611         Use Ym instead of y for SSE-MMX conversion alternatives.
8612         Reorder operand constraints.
8613
8614 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
8615
8616         * df.h (df_insn_delete): Adjust prototype.
8617         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8618         and let it decide whether mark the basic block dirty.
8619         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8620         * df-scan.c (df_insn_info_delete): New helper function, split
8621         off from df_insn_delete.
8622         (df_scan_free_bb_info): Use it.
8623         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8624         Likewise.
8625         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
8626         that the insn is actually an insn and it has a non-NULL basic block.
8627         Do not mark basic block dirty if only deleting a DEBUG_INSN.
8628
8629 2013-03-22  Richard Biener  <rguenther@suse.de>
8630
8631         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8632         dep_ref members.
8633         (mem_ref_alloc): Do not allocate them.
8634         (refs_independent_p): Do not query or maintain a cache.
8635
8636 2013-03-22  Richard Biener  <rguenther@suse.de>
8637
8638         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8639         (gather_mem_refs_in_loops): Do not compute it.
8640         (analyze_memory_references): Do not allocate it.
8641         (tree_ssa_lim_finalize): Do not free it.
8642         (for_all_locs_in_loop): Do not query all_refs_in_loop.
8643
8644 2013-03-22  Richard Biener  <rguenther@suse.de>
8645
8646         * is-a.h (as_a): Use gcc_checking_assert.
8647
8648 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
8649
8650         * config/aarch64/aarch64.c (aarch64_print_operand): New
8651         format specifier for printing a constant in hex.
8652         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8653         format specifier for printing second operand.
8654
8655 2013-03-22  Richard Biener  <rguenther@suse.de>
8656
8657         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8658         bitmaps.
8659         (gather_mem_refs_in_loops): Perform store accumulation here.
8660         (create_vop_ref_mapping_loop): Remove.
8661         (create_vop_ref_mapping): Likewise.
8662         (analyze_memory_references): Initialize refs_stored_in_loop.
8663         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8664         (record_indep_loop): Remove.
8665         (record_dep_loop): New function.
8666         (ref_indep_loop_p_1): Adjust to only walk over references
8667         in the loop, not its subloops.
8668         (ref_indep_loop_p): Rename to ...
8669         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8670         maintaining a more fine-grained cache.
8671         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8672         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8673
8674 2013-03-22  Richard Biener  <rguenther@suse.de>
8675
8676         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8677         (struct mem_ref): Make accesses_in_loop a vec of a vec of
8678         aggregate mem_ref_loc.
8679         (free_mem_ref_locs): Inline into ...
8680         (memref_free): ... this and adjust.
8681         (mem_ref_alloc): Adjust.
8682         (mem_ref_locs_alloc): Remove.
8683         (record_mem_ref_loc): Adjust.
8684         (get_all_locs_in_loop): Rewrite into ...
8685         (for_all_locs_in_loop): ... this iterator.
8686         (rewrite_mem_ref_loc): New functor.
8687         (rewrite_mem_refs): Use for_all_locs_in_loop.
8688         (sm_set_flag_if_changed): New functor.
8689         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8690         (ref_always_accessed): New functor.
8691         (ref_always_accessed_p): Use for_all_locs_in_loop.
8692
8693 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8694
8695         * tree-pass.h (PROP_gimple_lvec): New.
8696         * passes.c (dump_properties): Handle PROP_gimple_lvec.
8697         (init_optimization_passes): Move pass_lower_vector.
8698         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8699         PROP_gimple_lvec.
8700         (pass_lower_vector): Provide PROP_gimple_lvec.
8701         (pass_lower_vector_ssa): Likewise.
8702         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8703
8704 2013-03-21  Mark Wielaard  <mjw@redhat.com>
8705
8706         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8707
8708 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8709
8710         * config/i386/i386.md (*movdi_internal): Disparage slightly
8711         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
8712         conversion alternatives.
8713
8714 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
8715
8716         PR middle-end/48087
8717         * diagnostic.def (DK_WERROR): New kind.
8718         * diagnostic.h (werrorcount): Define.
8719         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8720         promoted to DK_ERROR, increment DK_WERROR counter instead of
8721         DK_ERROR counter.
8722         * toplev.c (toplev_main): Call print_ignored_options even if
8723         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
8724         even if just werrorcount is non-zero.
8725
8726         PR debug/55608
8727         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8728         on failure.
8729         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8730         (string_cst_pool_decl): New function.
8731         (optimize_one_addr_into_implicit_ptr): New function.
8732         (resolve_addr_in_expr): Optimize DWARF location expression
8733         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8734         which doesn't live in memory, but has DW_AT_location or
8735         DW_AT_const_value, or refers to a string literal, into
8736         DW_OP_GNU_implicit_pointer.
8737         (optimize_location_into_implicit_ptr): New function.
8738         (resolve_addr): If removing DW_AT_location of a variable because
8739         it was DW_OP_addr of address of the variable, but the variable doesn't
8740         live in memory, try to emit const value attribute for the initializer.
8741
8742 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8743
8744         * tree.h (VECTOR_TYPE_P): New macro.
8745         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8746         TYPE_MODE): Use it.
8747         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8748         VEC_COND_EXPR cannot be lvalues.
8749         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8750
8751 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8752
8753         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8754         Restrict the transformation to equal modes.
8755
8756 2013-03-21  Richard Biener  <rguenther@suse.de>
8757
8758         PR tree-optimization/39326
8759         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8760         (MEM_ANALYZABLE): Adjust.
8761         (record_mem_ref_loc): Move bitmap ops ...
8762         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
8763         unanalyzable refs, do not record locations for it.
8764         (analyze_memory_references): Allocate ref zero as shared
8765         unanalyzable ref.
8766         (refs_independent_p): Do not test for unanalyzed mems here.
8767         (ref_indep_loop_p_1): Special-case disambiguation against
8768         the unanalyzed ref.
8769         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8770
8771 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
8772
8773         * config/arm/arm-protos.h (tune_params): Add
8774         prefer_neon_for_64bits field.
8775         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8776         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8777         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8778         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8779         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8780         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8781         (arm_option_override): Handle -mneon-for-64bits new option.
8782         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8783         (prefer_neon_for_64bits): Declare new variable.
8784         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8785         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8786         (arch_enabled): Handle new arch types. Remove support for onlya8
8787         and nota8.
8788         (one_cmpldi2): Use new arch names.
8789         (zero_extend<mode>di2, extend<mode>di2): Ditto.
8790         * config/arm/arm.opt (mneon-for-64bits): Add option.
8791         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8792         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8793         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8794         of onlya8.
8795         * doc/invoke.texi (-mneon-for-64bits): Document.
8796
8797 2013-03-21  Richard Biener  <rguenther@suse.de>
8798
8799         PR tree-optimization/39326
8800         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8801         (sort_bbs_in_loop_postorder_cmp): New function.
8802         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8803
8804 2013-03-21  Richard Biener  <rguenther@suse.de>
8805
8806         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8807         (vect_insert_into_interleaving_chain): Likewise.
8808         (vect_drs_dependent_in_basic_block): Inline ...
8809         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
8810         split out from ...
8811         (vect_analyze_data_ref_dependence): ... here.  Simplify.
8812         (vect_check_interleaving): Simplify.
8813         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
8814         (vect_slp_analyze_data_ref_dependences): ... this new function.
8815         (dr_group_sort_cmp): New function.
8816         (vect_analyze_data_ref_accesses): Compute data-reference groups
8817         here instead of in vect_analyze_data_ref_dependence.  Use
8818         a more efficient algorithm.
8819         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8820         vect_slp_analyze_data_ref_dependences.  Call
8821         vect_analyze_data_ref_accesses earlier.
8822         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8823         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8824         (vect_slp_analyze_data_ref_dependences): New prototype.
8825
8826 2013-03-21  Richard Biener  <rguenther@suse.de>
8827
8828         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8829         ref is stored in the loop.
8830         (find_refs_for_sm): Walk only over all stores.
8831         (store_motion_loop): Allocate from lim_bitmap_obstack.
8832         (store_motion): Likewise.
8833
8834 2013-03-21  Richard Biener  <rguenther@suse.de>
8835
8836         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8837         Update virtual SSA form.
8838
8839 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8840
8841         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8842         * configure: Regenerate.
8843         * config.in: Regenerate.
8844         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8845         if !HAVE_LD_EH_FRAME_CIEV3.
8846
8847 2013-03-21  Richard Biener  <rguenther@suse.de>
8848
8849         * tree-cfg.c (verify_expr_no_block): New function.
8850         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8851         nor DECL_VALUE_EXPR have locations with associated blocks.
8852         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8853         (clear_unused_block_pointer): Remove code dealing with
8854         blocks in DECL_DEBUG_EXPR locations.
8855
8856 2013-03-21  Richard Biener  <rguenther@suse.de>
8857
8858         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8859         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
8860         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8861         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8862         instead of DECL_DEBUG_EXPR_IS_FROM.
8863         * gimplify.c (gimplify_modify_expr): Likewise.
8864         * tree-cfg.c (verify_expr_location_1): Likewise.
8865         * tree-complex.c (create_one_component_var): Likewise.
8866         * tree-sra.c (create_access_replacement): Likewise.
8867         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8868         (clear_unused_block_pointer): Likewise.
8869         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8870         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8871         * var-tracking.c (var_debug_decl): Likewise.
8872         (track_expr_p): Likewise.
8873         * tree-inline.c (add_local_variables): Likewise.  Set
8874         DECL_HAS_DEBUG_EXPR_P after copying it.
8875         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8876         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
8877
8878 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8879
8880         PR bootstrap/56656
8881         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8882         * configure: Regenerate.
8883         * config.in: Regenerate.
8884         * config/i386/i386.md (*movdf_internal): Use
8885         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8886         movd instead of movq mnemonic for interunit moves.
8887         (*movdi_internal): Ditto.
8888
8889 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8890
8891         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8892         (abd<mode>_3): New pattern.
8893         (aba<mode>_3): New pattern.
8894         (fabd<mode>_3): New pattern.
8895
8896 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8897
8898         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8899         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8900         occurrence of REGISTER_PREFIX as its empty string.
8901
8902 2013-03-20  Jeff Law  <law@redhat.com>
8903
8904         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8905         addititional equivalences for equality comparisons between an SSA_NAME
8906         and a constant where the SSA_NAME was set from a widening conversion.
8907
8908 2013-03-20  Walter Lee  <walt@tilera.com>
8909
8910         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8911
8912 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8913
8914         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8915         depending on type attribute.
8916         (*movti_internal): Ditto.
8917         (*movtf_internal): Ditto.
8918         (*movxf_internal): Ditto.
8919         (*movdf_internal): Ditto.
8920         (*movsf_internal): Ditto.
8921
8922 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
8923
8924         * config/i386/i386.md (*movti_internal): Set prefix attribute to
8925         maybe_vex for sselog1 and ssemov types.
8926         (*movdi_internal): Reorder operand constraints.
8927         (*movsi_internal): Ditto.  Set prefix attribute to
8928         maybe_vex for sselog1 and ssemov types.
8929         (*movtf_internal): Set prefix attribute to maybe_vex
8930         for sselog1 and ssemov types.
8931         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
8932         DImode ssemov types.  Reorder operand constraints.
8933         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
8934         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
8935         attribute for SImode ssemov types.  Reorder operand constraints.
8936
8937 2013-03-20  Martin Jambor  <mjambor@suse.cz>
8938
8939         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8940         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8941
8942 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
8943
8944         * config/rs6000/predicates.md (indexed_address, update_address_mem
8945         update_indexed_address_mem): New predicates.
8946         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8947         attribute for load/store instructions.
8948         * config/rs6000/dfp.md (movsd_store): Likewise.
8949         (movsd_load): Likewise.
8950         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8951         (unnamed HI->DI extend define_insn): Likewise.
8952         (unnamed SI->DI extend define_insn): Likewise.
8953         (unnamed QI->SI extend define_insn): Likewise.
8954         (unnamed QI->HI extend define_insn): Likewise.
8955         (unnamed HI->SI extend define_insn): Likewise.
8956         (unnamed HI->SI extend define_insn): Likewise.
8957         (extendsfdf2_fpr): Likewise.
8958         (movsi_internal1): Likewise.
8959         (movsi_internal1_single): Likewise.
8960         (movhi_internal): Likewise.
8961         (movqi_internal): Likewise.
8962         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8963         attribute for load/store instructions.
8964         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8965         instructions.
8966         (mov<mode>_softfloat): Likewise.
8967         (mov<mode>_hardfloat32): Likewise.
8968         (mov<mode>_hardfloat64): Likewise.
8969         (mov<mode>_softfloat64): Likewise.
8970         (movdi_internal32): Likewise.
8971         (movdi_internal64): Likewise.
8972         (probe_stack_<mode>): Likewise.
8973
8974 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8975
8976         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8977         floating point, and decimal floating point to reload iterator.
8978
8979         * config/rs6000/constraints.md (wl constraint): New constraints to
8980         return FLOAT_REGS if certain options are used to reduce the number
8981         of separate patterns that exist in the file.
8982         (wx constraint): Likewise.
8983         (wz constraint): Likewise.
8984
8985         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8986         -mdebug=reg, print wg, wl, wx, and wz constraints.
8987         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8988         Initialize the reload functions for 64-bit binary/decimal floating
8989         point types.
8990         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8991         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8992         create the buffer on the stack to overcome not having a 32-bit
8993         load and store.
8994         (rs6000_emit_move): Likewise.
8995         (rs6000_secondary_memory_needed_rtx): Likewise.
8996         (rs6000_alloc_sdmode_stack_slot): Likewise.
8997         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8998         via xxlxor, just like DFmode 0.0.
8999
9000         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9001         define as 1 if we are running on a power7 or newer.
9002         (enum r6000_reg_class_enum): Add new constraints.
9003
9004         * config/rs6000/dfp.md (movsd): Delete, combine with binary
9005         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9006         with other moves by using conditional constraits (wg).  Use LFIWZX
9007         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
9008         (movsd splitter): Likewise.
9009         (movsd_hardfloat): Likewise.
9010         (movsd_softfloat): Likewise.
9011
9012         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9013         binary and decimal floating point moves.
9014         (fmove_ok): New attributes to combine binary and decimal floating
9015         point moves, and to combine power6x (mfpgpr) moves along normal
9016         floating moves.
9017         (real_value_to_target): Likewise.
9018         (f32_lr): Likewise.
9019         (f32_lm): Likewise.
9020         (f32_li): Likewise.
9021         (f32_sr): Likewise.
9022         (f32_sm): Likewise.
9023         (f32_si): Likewise.
9024         (movsf): Combine binary and decimal floating point moves.  Combine
9025         power6x (mfpgpr) moves with other moves by using conditional
9026         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
9027         (mov<mode> for SFmode/SDmode); Likewise.
9028         (SFmode/SDmode splitters): Likewise.
9029         (movsf_hardfloat): Likewise.
9030         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9031         (movsf_softfloat): Likewise.
9032         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9033
9034         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9035         wx and wz constraints.
9036
9037         * config/rs6000/constraints.md (wg constraint): New constraint to
9038         return FLOAT_REGS if -mmfpgpr (power6x) was used.
9039
9040         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9041         constraint.
9042
9043         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9044         -mdebug=reg, print wg, wl, wx, and wz constraints.
9045         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9046         Initialize the reload functions for 64-bit binary/decimal floating
9047         point types.
9048         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9049         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9050         create the buffer on the stack to overcome not having a 32-bit
9051         load and store.
9052         (rs6000_emit_move): Likewise.
9053         (rs6000_secondary_memory_needed_rtx): Likewise.
9054         (rs6000_alloc_sdmode_stack_slot): Likewise.
9055         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9056         via xxlxor, just like DFmode 0.0.
9057
9058         * config/rs6000/dfp.md (movdd): Delete, combine with binary
9059         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9060         with other moves by using conditional constraits (wg).  Use LFIWZX
9061         and STFIWX for loading SDmode on power7.
9062         (movdd splitters): Likewise.
9063         (movdd_hardfloat32): Likewise.
9064         (movdd_softfloat32): Likewise.
9065         (movdd_hardfloat64_mfpgpr): Likewise.
9066         (movdd_hardfloat64): Likewise.
9067         (movdd_softfloat64): Likewise.
9068
9069         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9070         64-bit binary and decimal floating point moves.
9071         (FMOVE64X): Likewise.
9072         (movdf): Combine 64-bit binary and decimal floating point moves.
9073         Combine power6x (mfpgpr) moves with other moves by using
9074         conditional constraits (wg).
9075         (mov<mode> for DFmode/DDmode): Likewise.
9076         (DFmode/DDmode splitters): Likewise.
9077         (movdf_hardfloat32): Likewise.
9078         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9079         (movdf_softfloat32): Likewise.
9080         (movdf_hardfloat64_mfpgpr): Likewise.
9081         (movdf_hardfloat64): Likewise.
9082         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9083         (movdf_softfloat64): Likewise.
9084         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9085         (reload_<mode>_load): Move to later in the file so they aren't in
9086         the middle of the floating point move insns.
9087         (reload_<mode>_store): Likewise.
9088
9089         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9090         constraint.
9091
9092         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9093         constraint if -mdebug=reg.
9094         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9095         Enable using dd reload support if needed.
9096
9097         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9098         binary and decimal floating point moves in rs6000.md.
9099         (movtd_internal): Likewise.
9100
9101         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9102         decimal floating point moves.
9103         (movtf): Likewise.
9104         (movtf_internal): Likewise.
9105         (mov<mode>_internal, TDmode/TFmode): Likewise.
9106         (movtf_softfloat): Likewise.
9107         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9108
9109         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9110         movdi_internal64, using wg constraint for move direct operations.
9111         (movdi_internal64): Likewise.
9112
9113         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9114         MODES_TIEABLE_P for selected modes.  Print the numerical value of
9115         the various virtual registers. Use GPR/FPR first/last values,
9116         instead of hard coding the register numbers.  Print which modes
9117         have reload functions registered.
9118         (rs6000_option_override_internal): If -mdebug=reg, trace the options
9119         settings before/after setting cpu, target and subtarget settings.
9120         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9121         and for secondary reload failures in rs6000_secondary_reload_inner.
9122         (rs6000_secondary_reload_fail): Likewise.
9123         (rs6000_secondary_reload_inner): Likewise.
9124
9125         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9126         macros for first/last GPR and FPR registers.
9127         (LAST_GPR_REGNO): Likewise.
9128         (FIRST_FPR_REGNO): Likewise.
9129         (LAST_FPR_REGNO): Likewise.
9130
9131         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9132         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9133         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9134         (vcond<mode><mode>): Likewise.
9135         (vcondu<mode><mode>): Likewise.
9136         (vector_gtu<mode>): Likewise.
9137         (vector_gte<mode>): Likewise.
9138         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9139         to prevent the compiler from converting DImode operations to TImode.
9140         (ior<mode>3): Likewise.
9141         (and<mode>3): Likewise.
9142         (one_cmpl<mode>2): Likewise.
9143         (nor<mode>3): Likewise.
9144         (andc<mode>3): Likewise.
9145
9146         * config/rs6000/constraints.md (wt constraint): New constraint
9147         that returns VSX_REGS if TImode is allowed in VSX registers.
9148
9149         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9150         constant under VSX.
9151
9152         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9153         similar to TImode, but it is restricted to being in the GPRs.
9154
9155         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9156         TImode to occupy a single VSX register.
9157
9158         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9159         -mvsx-timode for power7/power8.
9160         (power7 cpu): Likewise.
9161         (power8 cpu): Likewise.
9162
9163         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9164         sure that TFmode/TDmode take up two registers if they are ever
9165         allowed in the upper VSX registers.
9166         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9167         registers.
9168         (rs6000_init_hard_regno_mode_ok): Likewise.
9169         (rs6000_debug_reg_global): Add debugging for PTImode and wt
9170         constraint.  Print if LRA is turned on.
9171         (rs6000_option_override_internal): Give an error if -mvsx-timode
9172         and VSX is not enabled.
9173         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
9174         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9175         to reg+offset addressing.  Use PTImode when checking offset
9176         addresses for validity.
9177         (reg_offset_addressing_ok_p): Likewise.
9178         (rs6000_legitimate_offset_address_p): Likewise.
9179         (rs6000_legitimize_address): Likewise.
9180         (rs6000_legitimize_reload_address): Likewise.
9181         (rs6000_legitimate_address_p): Likewise.
9182         (rs6000_eliminate_indexed_memrefs): Likewise.
9183         (rs6000_emit_move): Likewise.
9184         (rs6000_secondary_reload): Likewise.
9185         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
9186         reloads to fpr registers to continue to use reg+offset addressing,
9187         but 64-bit reloads to altivec registers need reg+reg addressing.
9188         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9189         it.  Treat LO_SUM like a PLUS operation.
9190         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9191         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9192         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9193         registers to share a register with a smaller sized type, since VSX
9194         puts scalars in the upper 64-bits.
9195         (print_operand): Add support for PTImode.
9196         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9197         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9198         registers, but don't have arithmetic support.
9199         (rs6000_memory_move_cost): Add test for VSX.
9200         (rs6000_opt_masks): Add -mvsx-timode.
9201
9202         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9203         for TImode.
9204         (VSs): Likewise.
9205         (VSr): Use wt constraint for TImode.
9206         (VSv): Drop TImode support.
9207         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9208         (vsx_movti_64bit): Likewise.
9209         (vsx_movti_32bit): Likewise.
9210         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9211         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9212         one '?' on the appropriate output constraint.  Do not allow TImode
9213         logical operations on 32-bit systems.
9214         (vsx_ior<mode>3): Likewise.
9215         (vsx_xor<mode>3): Likewise.
9216         (vsx_one_cmpl<mode>2): Likewise.
9217         (vsx_nor<mode>3): Likewise.
9218         (vsx_andc<mode>3): Likewise.
9219         (vsx_concat_<mode>): Likewise.
9220         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9221
9222         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9223         OPTION_MASK_VSX_TIMODE.
9224         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9225         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9226
9227         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9228         (TI2 iterator): New iterator for TImode, PTImode.
9229         (wd mode attribute): Add values for vector types.
9230         (movti_string): Replace TI move operations with operations for TImode
9231         and PTImode.  Add support for TImode being allowed in VSX registers.
9232         (mov<mode>_string, TImode/PTImode): Likewise.
9233         (movti_ppc64): Likewise.
9234         (mov<mode>_ppc64, TImode/PTImode): Likewise.
9235         (TI mode splitters): Likewise.
9236
9237         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9238         constraint.
9239
9240 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
9241
9242         PR tree-optimization/56355
9243         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9244         Also handle integers with undefined overflow.
9245
9246 2013-03-20  Catherine Moore  <clm@codesourcery.com>
9247             Maciej W. Rozycki  <macro@codesourcery.com>
9248             Tom de Vries  <tom@codesourcery.com>
9249             Nathan Sidwell <nathan@codesourcery.com>
9250             Iain Sandoe  <iain@codesourcery.com>
9251             Nathan Froyd  <froydnj@codesourcery.com>
9252             Chao-ying Fu <fu@mips.com>
9253
9254         * doc/extend.texi: (micromips, nomicromips, nocompression):
9255         Document new function attributes.
9256         * doc/invoke.texi (minterlink-compressed, mmicromips,
9257         m14k, m14ke, m14kec): Document new options.
9258         (minterlink-mips16): Update documentation.
9259         * doc/md.texi (ZC, ZD): Document new constraints.
9260         * configure.ac (gcc_cv_as_micromips): Check if linker
9261         supports the .set micromips directive.
9262         * configure: Regenerate.
9263         * config.in: Regenerate.
9264         * config/mips/mips-tables.opt: Regenerate.
9265         * config/mips/micromips.md: New file.
9266         * constraints.md (ZC, ZD): New constraints.
9267         * config/mips/predicates.md (movep_src_register): New predicate.
9268         (movep_src_operand): New predicate.
9269         (non_volatile_mem_operand): New predicate.
9270         * config/mips/mips.md (multimem): New type.
9271         (length): Differentiate between 17-bit and 18-bit branch offsets.
9272         (MOVEP1, MOVEP2): New mode iterator.
9273         (mov_<load>l): Use ZC constraint.
9274         (mov_<load>r): Likewise.
9275         (mov_<store>l): Likewise.
9276         (mov_<store>r): Likewise.
9277         (*branch_equality<mode>_inverted): Add microMIPS support.
9278         (*branch_equality<mode>): Likewise.
9279         (*jump_absolute): Likewise.
9280         (indirect_jump_<mode>): Likewise.
9281         (tablejump_<mode>): Likewise.
9282         (<optab>_internal): Likewise.
9283         (sibcall_internal): Likewise.
9284         (sibcall_value_internal): Likewise.
9285         (prefetch): Use constraint ZD.
9286         * config/mips/mips.opt (minterlink-compressed): New option.
9287         (minterlink-mips16): Now an alias for minterlink-compressed.
9288         (mmicromips): New option.
9289         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9290         (compare_and_swap_12): Likewise.
9291         (sync_add<mode>): Likewise.
9292         (sync_<optab>_12): Likewise.
9293         (sync_old_<optab>_12): Likewise.
9294         (sync_new_<optab>_12): Likewise.
9295         (sync_nand_12): Likewise.
9296         (sync_old_nand_12): Likewise.
9297         (sync_new_nand_12): Likewise.
9298         (sync_sub<mode>): Likewise.
9299         (sync_old_add<mode>): Likewise.
9300         (sync_old_sub<mode>): Likewise.
9301         (sync_new_add<mode>): Likewise.
9302         (sync_new_sub<mode>): Likewise.
9303         (sync_<optab><mode>): Likewise.
9304         (sync_old_<optab><mode>): Likewise.
9305         (sync_new_<optab><mode>): Likewise.
9306         (sync_nand<mode>): Likewise.
9307         (sync_old_nand<mode>): Likewise.
9308         (sync_new_nand<mode>): Likewise.
9309         (sync_lock_test_and_set<mode>): Likewise.
9310         (test_and_set_12): Likewise.
9311         (atomic_compare_and_swap<mode>): Likewise.
9312         (atomic_exchange<mode>_llsc): Likewise.
9313         (atomic_fetch_add<mode>_llsc): Likewise.
9314         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9315         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9316         (umips_save_restore_pattern_p): Likewise.
9317         (umips_load_store_pair_p): Likewise.
9318         (umips_output_load_store_pair): Likewise.
9319         (umips_movep_target_p): Likewise.
9320         (umips_12bit_offset_address_p): Likewise.
9321         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9322         (mips_base_mips16): Rename this...
9323         (mips_base_compression_flags): ...to this. Update all uses.
9324         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9325         (mips_mips16_decl_p): Delete.
9326         (mips_nomips16_decl_p): Delete.
9327         (mips_get_compress_on_flags): New function.
9328         (mips_get_compress_off_flags): New function.
9329         (mips_get_compress_mode): New function.
9330         (mips_get_compress_on_name): New function.
9331         (mips_get_compress_off_name): New function.
9332         (mips_insert_attributes): Support multiple compression types.
9333         (mips_merge_decl_attributes): Likewise.
9334         (umips_12bit_offset_address_p): New function.
9335         (mips_start_function_definition): Emit .set micromips directive.
9336         (mips_call_may_need_jalx_p): New function.
9337         (mips_function_ok_for_sibcall): Add microMIPS support.
9338         (mips_print_operand_punctuation): Support short delay slots and
9339         compact jumps.
9340         (umips_swm_mask, umips_swm_encoding): New.
9341         (umips_build_save_restore): New function.
9342         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9343         (was_mips16_p): Remove.
9344         (old_compression_mode): New.
9345         (mips_set_compression_mode): New function.
9346         (mips_set_current_function): Add microMIPS support.
9347         (mips_option_override): Likewise.
9348         (umips_save_restore_pattern_p): New function.
9349         (umips_output_save_restore): New function.
9350         (umips_load_store_pair_p_1): New function.
9351         (umips_load_store_pair_p): New function.
9352         (umips_output_load_store_pair_1): New function.
9353         (umips_output_load_store_pair): New function.
9354         (umips_movep_target_p) New function.
9355         (mips_prepare_pch_save): Add microMIPS support.
9356         * config/mips/mips.h (TARGET_COMPRESSION): New.
9357         (TARGET_CPU_CPP_BUILTINS): Update macro
9358         to use new compression flags and to support microMIPS.
9359         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9360         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9361         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9362         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9363         (ASM_SPEC): Support mmicromips and mno-micromips.
9364         (M16STORE_REG_P): New macro.
9365         (MIPS_CALL): Support TARGET_MICROMIPS.
9366         (MICROMIPS_J): New macro.
9367         (mips_base_mips16): Rename this...
9368         (mips_base_compression_flags): ...to this.
9369         (UMIPS_12BIT_OFFSET_P): New macro.
9370         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9371         (MULTILIB_DIRNAMES): Likewise.
9372 2013-03-20  Richard Biener  <rguenther@suse.de>
9373
9374         PR tree-optimization/56661
9375         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9376         the result does not have to be distinct.
9377
9378 2013-03-20  Richard Biener  <rguenther@suse.de>
9379
9380         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9381         remap_gimple_op_r.
9382
9383 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9384             Steven Bosscher <steven@gcc.gnu.org>
9385
9386         PR rtl-optimization/56605
9387         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9388
9389 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9390
9391         PR bootstrap/56656
9392         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9393         that require movd instead of movq.
9394
9395 2013-03-20  Richard Biener  <rguenther@suse.de>
9396
9397         * tree-ssa-structalias.c (struct variable_info): Add pointer
9398         to the first field of an aggregate with sub-vars.  Make
9399         this and the pointer to the next subfield its ID.
9400         (vi_next): New function.
9401         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9402         storedanything_id, integer_id): Increment by one.
9403         (new_var_info, get_call_vi, lookup_call_clobber_vi,
9404         get_call_clobber_vi): Adjust.
9405         (solution_set_expand): Simplify and speedup.
9406         (solution_set_add): Inline into ...
9407         (set_union_with_increment): ... this.  Adjust accordingly.
9408         (do_sd_constraint): Likewise.
9409         (do_ds_constraint): Likewise.
9410         (do_complex_constraint): Simplify.
9411         (build_pred_graph): Adjust.
9412         (solve_graph): Likewise.  Simplify and speedup.
9413         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9414         get_constraint_for_component_ref, get_constraint_for_1,
9415         first_vi_for_offset, first_or_preceding_vi_for_offset,
9416         create_function_info_for, create_variable_info_for_1,
9417         create_variable_info_for, intra_create_variable_infos): Adjust.
9418         (init_base_vars): Push NULL for ID zero.
9419         (compute_points_to_sets): Adjust.
9420
9421 2013-03-20  Richard Biener  <rguenther@suse.de>
9422
9423         * cfgloop.c (verify_loop_structure): Streamline and avoid
9424         ICEing on corrupt loop tree.
9425         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9426         loop tree.
9427
9428 2013-03-20  Richard Biener  <rguenther@suse.de>
9429
9430         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9431         check whether an SSA update is needed.
9432
9433 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
9434
9435         * config/mips/constraints.md (T): Rename to...
9436         (Yf): ...this.
9437         (U): Rename to...
9438         (Yd): ...this.
9439         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9440         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9441
9442 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9443
9444         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9445         (*subsi3_carryin_uxtw): Likewise.
9446
9447 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9448
9449         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9450         (*rorsi3_insn_uxtw): Likewise.
9451
9452 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9453
9454         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9455         (*extrsi5_insn_uxtw): Likewise.
9456
9457 2013-03-19  Richard Biener  <rguenther@suse.de>
9458
9459         PR tree-optimization/56273
9460         * passes.c (init_optimization_passes): Move second VRP after DOM.
9461
9462 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
9463
9464         * config/i386/i386.md (*movti_internal): Merge from
9465         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
9466         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
9467         nox64 isa attributes.
9468
9469 2013-03-18  Richard Biener  <rguenther@suse.de>
9470
9471         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9472         (unite): Likewise.
9473         (merge_node_constraints): Likewise.
9474         (build_succ_graph): Likewise.
9475         (valid_graph_edge): Inline into single caller.
9476         (unify_nodes): Likewise.  Use bitmap_set_bit return value
9477         and cache varinfo.
9478         (scc_visit): Fix formatting and variable use.
9479         (do_sd_constraint): Use gcc_checking_assert.
9480         (do_ds_constraint): Likewise.
9481         (do_complex_constraint): Likewise.
9482         (condense_visit): Likewise.  Cleanup.
9483         (dump_pred_graph): New function.
9484         (perform_var_substitution): Dump the pred-graph before
9485         variable substitution.
9486         (find_equivalent_node): Use gcc_checking_assert.
9487         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9488
9489 2013-03-18  Richard Biener  <rguenther@suse.de>
9490
9491         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9492         Remove cond_expr_stmt_list argument and do not gimplify the
9493         built expression.
9494         (vect_loop_versioning): Adjust.
9495         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9496         Cleanup to use less temporaries.
9497         (vect_create_data_ref_ptr): Cleanup.
9498
9499 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9500
9501         PR tree-optimization/56635
9502         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9503         require types_compatible_p types.
9504
9505 2013-03-18  Nick Clifton  <nickc@redhat.com>
9506
9507         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9508         spurious backslash.
9509
9510         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9511         Add missing line to comment describing function.
9512
9513 2013-03-18  Richard Biener  <rguenther@suse.de>
9514
9515         PR tree-optimization/56210
9516         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9517         Handle string / character search functions.
9518         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9519
9520 2013-03-18  Richard Biener  <rguenther@suse.de>
9521
9522         PR middle-end/56483
9523         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9524         and implement properly.
9525         * gimple.h (gimple_cond_single_var_p): Remove.
9526
9527 2013-03-18  Richard Biener  <rguenther@suse.de>
9528
9529         * tree-data-ref.h (find_data_references_in_loop): Declare.
9530         * tree-data-ref.c (get_references_in_stmt): Use a stack
9531         vector pre-allocated in the callers.
9532         (find_data_references_in_stmt): Adjust.
9533         (graphite_find_data_references_in_stmt): Likewise.
9534         (create_rdg_vertices): Likewise.
9535         (find_data_references_in_loop): Export.
9536         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9537         Compute dependences here...
9538         (vect_analyze_data_refs): ...not here.  When we encounter
9539         a non-vectorizable data reference in basic-block vectorization
9540         truncate the data reference vector.  Do not bother to
9541         fixup data-dependence information for gather loads.
9542         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9543         of data references, as reported.
9544
9545 2013-03-18  Richard Biener  <rguenther@suse.de>
9546
9547         PR tree-optimization/3713
9548         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
9549         has_constants and expr.
9550         (stmt_has_constants): Properly valueize SSA names when deciding
9551         whether the stmt has constants.
9552
9553 2013-03-18  Richard Biener  <rguenther@suse.de>
9554
9555         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9556         whole function when there is nothing to do.
9557         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9558         * tree-vectorizer.c (vectorize_loops): Update virtual and
9559         loop-closed SSA once.
9560         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9561
9562 2013-03-18  Richard Biener  <rguenther@suse.de>
9563
9564         PR middle-end/56113
9565         * domwalk.c (bb_postorder): New global static.
9566         (cmp_bb_postorder): New function.
9567         (walk_dominator_tree): Replace scheme imposing an order for
9568         visiting dominator sons by one sorting them at the time they
9569         are pushed on the stack.
9570
9571 2013-03-18  Richard Biener  <rguenther@suse.de>
9572
9573         PR tree-optimization/39326
9574         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9575         (struct mem_ref): Replace mem member with ao_ref typed member.
9576         (MEM_ANALYZABLE): Adjust.
9577         (memref_eq): Likewise.
9578         (mem_ref_alloc): Likewise.
9579         (gather_mem_refs_stmt): Likewise.
9580         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9581         (execute_sm_if_changed_flag_set): Adjust.
9582         (execute_sm): Likewise.
9583         (ref_always_accessed_p): Likewise.
9584         (refs_independent_p): Likewise.
9585         (can_sm_ref_p): Likewise.
9586
9587 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9588
9589         PR c/56566
9590         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9591         return 1 even for !unsignedp.
9592
9593 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9594
9595         * config/i386/i386.md (isa): Add x64 and nox64.
9596         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9597         (*pushtf): Enable *roF alternative for x64 isa only.
9598         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
9599         mode attribute of integer alternatives to DImode for TARGET_64BIT.
9600         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
9601         (*movtf_internal): Merge from *movtf_internal_rex64 and
9602         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
9603         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
9604         nox64 isa attributes.
9605         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
9606         nox64 isa attributes.
9607         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9608
9609 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9610
9611         * config/alpha/alpha.c (TARGET_LRA_P): New define.
9612
9613 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
9614
9615         PR target/56640
9616         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9617         class names.  Remove trailing comma after "ALL_REGS".
9618
9619 2013-03-16  Jan Hubicka  <jh@suse.cz>
9620
9621         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9622         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9623         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9624         of cgraph_get_create_node.
9625         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9626
9627 2013-03-16  Jason Merrill  <jason@redhat.com>
9628
9629         PR debug/49090
9630         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9631         with DW_AT_default_value.
9632
9633 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
9634
9635         * BASE-VER: Set to 4.9.0.
9636
9637 2013-03-14  Andi Kleen  <ak@linux.intel.com>
9638
9639         PR target/56619
9640         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9641         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9642         Document _x* TSX intrinsics.
9643
9644 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
9645             David Holsgrove  <david.holsgrove@xilinx.com>
9646
9647         * configure.ac: Add MicroBlaze TLS support detection.
9648         * configure: Regenerate.
9649         * config/microblaze/microblaze-protos.h
9650         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9651         symbol_mentioned_p, label_mentioned_p): Add prototypes.
9652         * config/microblaze/microblaze.c (microblaze_address_type): Add
9653         ADDRESS_TLS and tls_reloc address types.
9654         (microblaze_address_info): Add tls_reloc.
9655         (TARGET_HAVE_TLS): Define.
9656         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9657          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
9658          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9659         load_tls_operand,  microblaze_call_tls_get_addr,
9660         microblaze_legitimize_tls_address): New functions.
9661         (microblaze_classify_unspec): Handle UNSPEC_TLS.
9662         (get_base_reg): Use microblaze_tls_symbol_p.
9663         (microblaze_classify_address): Handle TLS.
9664         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9665         label_mentioned_p and microblaze_tls_referenced_p.
9666         (microblaze_legitimize_address): Handle TLS.
9667         (microblaze_address_insns): Handle ADDRESS_TLS.
9668         (pic_address_needs_scratch): Handle TLS.
9669         (print_operand_address): Handle TLS.
9670         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9671         (microblaze_expand_move): Handle TLS.
9672         (microblaze_legitimate_constant_p): Check
9673         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
9674         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9675         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9676         (PIC_OFFSET_TABLE_REGNUM): Set.
9677         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9678         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9679         (addsi3, movsi_internal2, movdf_internal): Update constraints
9680         * config/microblaze/predicates.md (arith_plus_operand): Define
9681         (move_operand): Redefine as move_src_operand,
9682         check microblaze_tls_referenced_p.
9683
9684 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9685
9686         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9687         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9688
9689 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9690
9691         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9692         CC mode for AND.
9693
9694 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
9695
9696         PR tree-optimization/53265
9697         * common.opt (Waggressive-loop-optimizations): New option.
9698         * tree-ssa-loop-niter.c: Include tree-pass.h.
9699         (do_warn_aggressive_loop_optimizations): New function.
9700         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
9701         if number_of_latch_executions returned constant.
9702         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9703         early.  If number_of_latch_executions returned constant, set
9704         nb_iterations_upper_bound back to it.
9705         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9706         field.
9707         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9708         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9709
9710         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9711         (MULTILIB_OSDIRNAMES): Set.
9712         * genmultilib: If defaultosdirname doesn't start with :: , set
9713         defaultosdirname2 instead, clear it and emit two . multilib_raw
9714         entries instead of just one.
9715
9716 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
9717
9718         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9719         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9720         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9721         (SUBTARGET_OVERRIDE_OPTIONS): New.
9722
9723 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
9724
9725         PR target/49880
9726         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9727         (musermode): Convert to Var(TARGET_USERMODE).
9728         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9729         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9730         * config/sh/sh.c (sh_option_override): Use
9731         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9732         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9733         condition.
9734         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9735         TARGET_SH4.
9736         (udivsi3_i4_single, divsi3_i4_single): Use
9737         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9738
9739 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
9740
9741         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9742         default setting.
9743
9744 2013-03-13  Richard Biener  <rguenther@suse.de>
9745
9746         PR tree-optimization/56608
9747         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9748         calls when vectorizing basic-blocks.
9749
9750 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
9751
9752         PR plugins/45078
9753         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9754         tm_file.
9755
9756 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
9757
9758         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9759
9760 2013-03-11  Jan Hubicka  <jh@suse.cz>
9761
9762         PR lto/56557
9763         * lto-streamer-out.c (output_symbol_p): Skip references from
9764         constructors of external variables.
9765
9766 2013-03-11  Jan Hubicka  <jh@suse.cz>
9767
9768         PR middle-end/56571
9769         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9770         from pseudos.
9771         * emit-rtl.c (verify_rtx_sharing): Likewise.
9772         (copy_insn_1): Likewise.
9773         * rtl.c (copy_rtx): Likewise.
9774
9775 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
9776
9777         PR target/56591
9778         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9779         output_operand_lossage message.
9780
9781 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
9782
9783         PR target/56470
9784         * arm.c (shift_op): Validate RTL pattern on the fly.
9785         (arm_print_operand, case 'S'): Don't use shift_operator to validate
9786         the RTL.
9787
9788 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9789
9790         PR target/56347
9791         * config/pa/pa.md (call_value): Check for calls to powf and direct to
9792         new call patterns that clobber %fr12.
9793         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9794         split and postreload patterns.
9795         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9796         registers %fr12 and %fr12R as call used.
9797
9798 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
9799
9800         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9801         (canon_address, record_store, replace_read, check_mem_read_rtx,
9802         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9803         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9804         rest_of_handle_dse): Likewise.
9805
9806 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
9807
9808         PR middle-end/56524
9809         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9810         Add base_optabs.
9811         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9812         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9813         (save_optabs_if_changed): Replace with...
9814         (init_tree_optimization_optabs): ...this.
9815         * optabs.c (save_optabs_if_changed): Rename to...
9816         (init_tree_optimization_optabs): ...this.  Take the optimization node
9817         as argument.  Do nothing if the base optabs are already correct.
9818         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9819         to recompute optabs.
9820         * function.h (function): Remove optabs field.
9821         * function.c (invoke_set_current_function_hook): Call
9822         init_tree_optimization_optabs.  Use the result to initialize
9823         this_fn_optabs.
9824
9825 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
9826
9827         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9828         if GTMA_HAS_NO_INSTRUMENTATION.
9829         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9830         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9831         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9832         * gimple-pretty-print.c (dump_gimple_transaction): Handle
9833         GTMA_HAS_NO_INSTRUMENTATION.
9834
9835 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
9836
9837         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9838         libasan_preinit.o.
9839
9840 2013-03-08  Marek Polacek  <polacek@redhat.com>
9841             Jakub Jelinek  <jakub@redhat.com>
9842
9843         PR tree-optimization/56478
9844         * predict.c (is_comparison_with_loop_invariant_p): Change the
9845         type of loop_step to tree.
9846         (predict_loops): Adjust.
9847         (predict_iv_comparison): Perform the computations on double_ints.
9848
9849 2013-03-08  Richard Biener  <rguenther@suse.de>
9850
9851         PR tree-optimization/56570
9852         * tree-cfg.c (verify_expr_location_1): Verify locations for
9853         DECL_DEBUG_EXPR.
9854         * tree-sra.c (create_access_replacement): Strip locations
9855         from DECL_DEBUG_EXPRs.
9856
9857 2013-03-08  Richard Biener  <rguenther@suse.de>
9858
9859         * tree-inline.c (expand_call_inline): Do not associate
9860         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9861         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9862
9863 2013-03-08  Richard Biener  <rguenther@suse.de>
9864
9865         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9866         or block changes with -Og.  Fix for location / block encoding
9867         changes and PHI arguments with locations.
9868
9869 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
9870
9871         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9872         for all counters.
9873         (struct output_info): Likewise.
9874         (register_overhead): Remove bad gcc_assert.
9875         (bitmap_find_bit): If there is only a single bitmap element, do not
9876         count a miss as a search.
9877         (print_statistics): Update for counter type changes.
9878         (dump_bitmap_statistics): Likewise.  Print headers such that they
9879         are properly lined up with the printed counters.
9880
9881 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
9882
9883         PR tree-optimization/56559
9884         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9885         check that it has only a single use.
9886
9887 2013-03-07  Richard Biener  <rguenther@suse.de>
9888
9889         * doc/invoke.texi (fwhole-program): Discourage use in combination
9890         with -flto.
9891
9892 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
9893
9894         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9895
9896         PR tree-optimization/56539
9897         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9898         instead of GSI_CONTINUE_LINKING as last argument to
9899         force_gimple_operand_gsi.  Adjust function comment.
9900
9901         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9902         aarch64-cores.def.
9903
9904         PR middle-end/56548
9905         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9906         promoted mode, convert the result back to the original mode.
9907
9908 2013-03-06  Richard Biener  <rguenther@suse.de>
9909
9910         PR middle-end/56294
9911         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9912         (insert_updated_phi_nodes_compare_uids): New function.
9913         (update_ssa): Sort symbols_to_rename after UID before
9914         traversing it to insert PHI nodes.
9915
9916 2013-03-06  Richard Biener  <rguenther@suse.de>
9917
9918         PR middle-end/50494
9919         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9920         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9921
9922         Revert
9923         2013-02-13  Richard Biener  <rguenther@suse.de>
9924
9925         PR lto/50494
9926         * varasm.c (output_constant_def_1): Get the decl representing
9927         the constant as argument.
9928         (output_constant_def): Wrap output_constant_def_1.
9929         (make_decl_rtl): Use output_constant_def_1 with the decl
9930         representing the constant.
9931         (build_constant_desc): Optionally re-use a decl already
9932         representing the constant.
9933         (tree_output_constant_def): Adjust.
9934
9935 2013-03-06  Joey Ye  <joey.ye@arm.com>
9936
9937         PR lto/50293
9938         * gcc.c (convert_white_space): New function.
9939         (main): Handles white space in function name.
9940
9941 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
9942
9943         PR target/56529
9944         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9945         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
9946         to SH_DIV_CALL_TABLE for TARGET_SH2.
9947         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9948         list.
9949         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9950         call-table options.
9951
9952 2013-03-05  Sterling Augustine  <saugustine@google.com>
9953             Cary Coutant  <ccoutant@google.com>
9954
9955         PR debug/55364
9956         * dwarf2out.c (resolve_addr): Don't call
9957         remove_loc_list_addr_table_entries a second time for the same
9958         expression.
9959
9960 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
9961
9962         PR debug/56510
9963         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9964         (avoid_complex_debug_insns): New function.
9965         (expand_debug_locations): Call it.
9966
9967         PR rtl-optimization/56484
9968         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9969         lifetimes of hard registers on small register class machines.
9970
9971 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9972
9973         * config/microblaze/microblaze-protos.h: Rename
9974         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
9975         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
9976         fast_interrupt.
9977         (microblaze_fast_interrupt_function_p): New function.
9978         (microblaze_is_interrupt_handler): Rename to
9979         microblaze_is_interrupt_variant and add fast_interrupt check.
9980         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9981         (save_restore_insns): Likewise.
9982         (compute_frame_size): Likewise.
9983         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9984         (microblaze_globalize_label): Likewise.
9985         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9986         * config/microblaze/microblaze.md: Use wrapper
9987         microblaze_is_interrupt_variant.
9988
9989 2013-03-05  Kai Tietz  <ktietz@redhat.com>
9990
9991         * sdbout.c (sdbout_one_type): Switch to current function's section
9992         supporting cold/hot.
9993
9994 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
9995
9996         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9997         -mxl-reorder.
9998
9999 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10000
10001         PR middle-end/56461
10002         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10003         if VALGRIND_GET_VBITS is defined, temporarily make object
10004         memory all defined, and restore previous valgrind addressability
10005         and definability afterwards.  Free this_object at the end.
10006
10007         PR middle-end/56461
10008         * lra.c (lra): Call lra_clear_live_ranges if live_p,
10009         right before calling lra_create_live_ranges, also call it
10010         when clearing live_p.  Only call lra_clear_live_ranges
10011         at the end if live_p.
10012
10013         PR middle-end/56461
10014         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10015
10016 2013-03-05  Richard Biener  <rguenther@suse.de>
10017
10018         PR tree-optimization/56521
10019         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10020         value-id.
10021
10022 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
10023
10024         PR c++/55135
10025         * except.h (remove_unreachable_eh_regions): New prototype.
10026         * except.c (remove_eh_handler_splicer): New function, split out
10027         of remove_eh_handler.
10028         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
10029         warning about running it on many EH regions one at a time.
10030         (remove_unreachable_eh_regions_worker): New function, walk the
10031         EH tree in depth-first order and remove non-marked regions.
10032         (remove_unreachable_eh_regions): New function.
10033         * tree-eh.c (mark_reachable_handlers): New function, split out
10034         from remove_unreachable_handlers.
10035         (remove_unreachable_handlers): Use mark_reachable_handlers and
10036         remove_unreachable_eh_regions.
10037         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10038         and remove_unreachable_eh_regions.
10039
10040 2013-03-05  Richard Biener  <rguenther@suse.de>
10041
10042         PR middle-end/56525
10043         * loop-init.c (fix_loop_structure): Remove loops in two stages,
10044         not freeing them until the end.
10045
10046 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10047
10048         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10049
10050 2013-03-05  Richard Biener  <rguenther@suse.de>
10051
10052         PR tree-optimization/56270
10053         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10054         of loads after scheduling an SLP instance.
10055
10056 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10057
10058         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10059         tic6x.exp.
10060         (check_gcc_parallelize): Run guality.exp as a separate job from
10061         vect.exp with unsorted.exp and $(dg_target_exps) separately from
10062         struct-layout-1.exp with stackalign.exp.
10063
10064         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10065
10066         PR middle-end/56461
10067         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10068         load_index sbitmap even if some bit in it isn't set.
10069
10070         PR middle-end/56461
10071         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10072         (discover_iteration_bound_by_body_walk): Change queues to
10073         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
10074         spelling in comment.  Call safe_push on queues[bound_index] directly.
10075         Release queues[queue_index] in every iteration unconditionally.
10076         Release bounds vector.
10077
10078         PR middle-end/56461
10079         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10080         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10081         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10082         inner_phis vector.
10083
10084 2013-03-05  Richard Biener  <rguenther@suse.de>
10085
10086         PR lto/56515
10087         * tree-inline.c (remap_blocks_to_null): New function.
10088         (expand_call_inline): When expanding a call stmt without
10089         an associated block inline remap all callee blocks to NULL.
10090
10091 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10092
10093         PR rtl-optimization/56494
10094         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10095         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10096         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10097
10098         PR middle-end/56461
10099         * sel-sched-ir.c (free_sched_pools): Release
10100         succs_info_pool.stack[succs_info_pool.max_top] vectors too
10101         if succs_info_pool.max_top isn't -1.
10102
10103         PR bootstrap/56509
10104         * opts.c (opts_obstack, opts_concat): Moved to...
10105         * opts-common.c (opts_obstack, opts_concat): ... here.
10106
10107 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10108
10109         PR middle-end/56461
10110         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10111
10112 2013-03-04  Martin Jambor  <mjambor@suse.cz>
10113
10114         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10115         all appropriate places.
10116
10117 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10118
10119         PR tree-optimization/56424
10120         * ipa-split.c (split_function): Do not set the RSO flag if result is
10121         not by reference and its type is a register type.
10122
10123 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
10124
10125         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10126         (microblaze_legitimate_pic_operand): Likewise
10127         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10128         new function microblaze_legitimate_pic_operand
10129         * config/microblaze/microblaze-protos.h
10130         (microblaze_legitimate_pic_operand): Declare.
10131
10132 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10133
10134         * config/microblaze/predicates.md (call_insn_simple_operand):
10135         New predicate for supported rtx code types.
10136         * config/microblaze/microblaze.md (call_internal1): Use
10137         call_insn_simple_operand predicate.
10138
10139 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10140
10141         PR middle-end/56461
10142         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10143         partitions.ordered_remove.
10144
10145         PR middle-end/56461
10146         * tree-vect-stmts.c (vectorizable_conversion): Don't call
10147         vec_oprnds0.create (1) for modifier == NONE.
10148
10149         PR middle-end/56461
10150         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10151         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10152         vec_oprnds1 right before pushing anything to it for
10153         scalar_shift_arg.
10154
10155         PR middle-end/56461
10156         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10157         set nbbs to 0 instead of having separate code path.
10158         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10159         instead of false as last argument if returning NULL.
10160
10161 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
10162
10163         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10164         the attribute is now called "target" instead of "option".
10165         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10166         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
10167         attribute/pragma name for TARGET_OPTION_VALID_P and
10168         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
10169         * doc/tm.texi: Regenerated.
10170
10171 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
10172
10173         * config/microblaze/microblaze.c:
10174         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10175         * config/microblaze/microblaze.h: Add -mxl-reorder to
10176         DRIVER_SELF_SPECS.
10177         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10178         instructions emitted if TARGET_REORDER.
10179         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10180         or 0 for -m/-mno case, but initialises as 2 to detect default use case
10181         separately.
10182
10183 2013-03-01  Xinliang David Li  <davidxl@google.com>
10184
10185         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10186         walk length.
10187
10188 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
10189
10190         PR middle-end/56461
10191         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10192         vector even when returning true.  Fix up function comment formatting.
10193
10194         PR middle-end/56461
10195         * ira-build.c (ira_loop_nodes_count): New variable.
10196         (create_loop_tree_nodes): Initialize it.
10197         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10198
10199         PR middle-end/56461
10200         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10201         method on dr_chain and result_chain.
10202         * tree-vect-stmts.c (vectorizable_store): Only call
10203         result_chain.create if j == 0.
10204
10205         PR middle-end/56461
10206         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10207         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10208         before overwriting it.
10209
10210 2013-03-01  Tobias Burnus  <burnus@net-b.de>
10211
10212         * doc/extended.texi (C Extensions): Change order in @menu
10213         to match @node.
10214         (Other MIPS Built-in Functions): Move last MIPS entry before
10215         "picoChip Built-in Functions".
10216         (SH Built-in Functions): Move after RX Built-in Functions.
10217         * doc/gcc.texi (Introduction): Change order in @menu
10218         to match @node.
10219         * doc/md.texi (Constraints): Ditto.
10220         * gty.texi (Type Information): Ditto.
10221         (User-provided marking routines for template types): Make
10222         subsection.
10223         * doc/invoke.texi (AArch64 Options): Move before
10224         "Adapteva Epiphany Options".
10225
10226 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
10227             Jakub Jelinek  <jakub@redhat.com>
10228
10229         PR sanitizer/56454
10230         * asan.c (gate_asan): Lookup no_sanitize_address instead of
10231         no_address_safety_analysis attribute.
10232         * doc/extend.texi (no_address_safety_attribute): Rename to
10233         no_sanitize_address attribute, mention no_address_safety_analysis
10234         attribute as deprecated alias.
10235
10236 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
10237
10238         PR middle-end/56461
10239         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10240         type to vec<vec<tree> > *.
10241         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
10242         to be vec<tree> instead of vec<tree> *, set vec_defs
10243         to vNULL and call vec_defs.create (number_of_vects), adjust other
10244         uses of vec_defs.
10245         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10246         vectorizable_condition): Adjust vect_get_slp_defs callers.
10247
10248 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10249
10250         * config/aarch64/aarch64.c
10251         (aarch64_float_const_representable): Remove unused variable.
10252
10253 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10254
10255         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10256
10257 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10258
10259         * config/aarch64/aarch64-builtins.c
10260         (aarch64_init_simd_builtins): Make static.
10261
10262 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10263
10264         * config/aarch64/aarch64.c
10265         (aarch64_simd_make_constant): Make static.
10266
10267 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10268
10269         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10270         with no initialization to the RHS of debug statements.
10271
10272 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10273
10274         PR tree-optimization/56294
10275         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10276         Adjust dumping.
10277         (get_access_replacement): Do not call create_access_replacement.
10278         Assert a replacement exists.
10279         (get_repl_default_def_ssa_name): Create the replacement declaration
10280         itself.
10281
10282 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10283
10284         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10285         final_end_function.
10286
10287 2013-02-28  Marek Polacek  <polacek@redhat.com>
10288
10289         PR rtl-optimization/56466
10290         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10291         if we're changing a loop.
10292         (peel_loops_completely): Likewise.
10293
10294 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
10295
10296         PR c++/55813
10297         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10298
10299 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10300
10301         PR target/56445
10302         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10303         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10304         INTX_FTYPE_FX, FX_FTYPE_INTX.
10305         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10306
10307 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10308
10309         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10310         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10311         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10312         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10313         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10314         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10315         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10316         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10317         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10318         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10319         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10320         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10321         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10322         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10323         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10324         (avrxmega6): Increase max flash segments from 5 to 6.
10325         * config/avr/t-multilib: Regenerate.
10326         * config/avr/avr-tables.opt: Regenerate.
10327         * doc/avr-mmcu.texi: Regenerate.
10328
10329 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10330
10331         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10332         (avr_device_to_arch): Rename to avr_device_to_ld.
10333         (avr_device_to_as): New prototype.
10334         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10335         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10336         * config/avr/driver-avr.c (avr_device_to_as): New.
10337         (avr_device_to_arch): Rename to avr_device_to_ld.
10338
10339 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10340
10341         PR middle-end/56461
10342         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10343         method on dr_chain and result_chain.
10344
10345         PR middle-end/56461
10346         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10347         pointer_set_destroy on not_executed_last_iteration.
10348
10349         PR middle-end/56461
10350         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10351
10352         PR middle-end/56461
10353         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10354         FOR_EACH_DEFINED_FUNCTION when freeing state.
10355
10356         PR middle-end/56461
10357         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10358         pool_free.
10359         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10360         overwriting it.
10361
10362         PR middle-end/56461
10363         * ipa-cp.c (decide_whether_version_node): Call vec_free on
10364         known_aggs[i].items and release known_aggs vector.
10365
10366         PR middle-end/56461
10367         * ipa-reference.c (propagate): Free node_info even for alias nodes.
10368
10369 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10370
10371         * config/microblaze/microblaze.c (microblaze_emit_compare):
10372         Use xor for EQ/NE comparisions.
10373         * config/microblaze/microblaze.md (cstoresf4): Add constraints
10374         (cbranchsf4): Adjust operator to comparison_operator.
10375
10376 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10377
10378         PR middle-end/56461
10379         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10380         vector.
10381         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10382         vec_safe_push, always update *slot.
10383         (redirect_edge_var_map_clear): Use vec_free.
10384         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10385         (free_var_map_entry): Use vec_free.
10386         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10387         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10388
10389 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
10390
10391         PR middle-end/45472
10392         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10393         when the may_trap_p bit of the exprs being merged differs.
10394         Reorder tests for speculativeness in the logical and operator.
10395
10396 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10397
10398         * incpath.c (add_standard_paths): Use reconcat instead of concat
10399         where appropriate and avoid leaking memory.
10400
10401         * opts.h: Include obstack.h.
10402         (opts_concat): New prototype.
10403         (opts_obstack): New declaration.
10404         * opts.c (opts_concat): New function.
10405         (opts_obstack): New variable.
10406         (init_options_struct): Call gcc_init_obstack on opts_obstack.
10407         (finish_options): Use opts_concat instead of concat
10408         and XOBNEWVEC instead of XNEWVEC.
10409         * opts-common.c (generate_canonical_option, decode_cmdline_option,
10410         generate_option): Likewise.
10411         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10412         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10413
10414         PR target/56455
10415         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10416         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10417
10418 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10419
10420         PR middle-end/56461
10421         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10422
10423 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10424
10425         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10426         (arm_block_move_unaligned_straight): Likewise.
10427         (arm_adjust_block_mem): Likewise.
10428
10429 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10430
10431         PR target/48901
10432         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10433         temp, cond and label.
10434         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10435
10436         PR target/52500
10437         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10438         * config/c6x/c6x.h (dbx_register_map): Update declaration.
10439
10440         PR target/52501
10441         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10442         of prologue/epilogue functions.
10443
10444         PR target/52550
10445         * config/tilegx/tilegx.c (tilegx_expand_prologue):
10446         Remove unused variable cfa_offset.
10447         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10448
10449         PR target/54639
10450         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10451         type promotion to unsigned.
10452
10453         PR target/54640
10454         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10455         for HOST_WIDE_INT of 32 bit / same size as int.
10456         (arm_block_move_unaligned_straight): Likewise.
10457         (arm_adjust_block_mem): Likewise.
10458
10459         PR target/54662
10460         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10461         ALL_CFLAGS.
10462
10463 2013-02-26  Marek Polacek  <polacek@redhat.com>
10464
10465         PR tree-optimization/56426
10466         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
10467
10468 2013-02-26  Richard Biener  <rguenther@suse.de>
10469
10470         PR target/56444
10471         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10472         unused variable loops.
10473
10474 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10475
10476         PR tree-optimization/56448
10477         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10478         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10479         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10480         later operands of the references, or even first operand for
10481         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10482
10483         PR tree-optimization/56443
10484         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10485         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10486         to type_for_mode langhook.
10487
10488 2013-02-25  Matt Turner  <mattst88@gmail.com>
10489
10490         * doc/invoke.texi: Document r4700.
10491
10492 2013-02-25  Richard Biener  <rguenther@suse.de>
10493
10494         PR tree-optimization/56175
10495         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10496         split out from ...
10497         (simplify_bitwise_binary): ... here.  Also guard the conversion
10498         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10499
10500 2013-02-25  Catherine Moore  <clm@codesourcery.com>
10501
10502         Revert:
10503         2013-02-24  Catherine Moore  <clm@codesourcery.com>
10504             Maciej W. Rozycki  <macro@codesourcery.com>
10505             Tom de Vries  <tom@codesourcery.com>
10506             Nathan Sidwell  <nathan@codesourcery.com>
10507             Iain Sandoe  <iain@codesourcery.com>
10508             Nathan Froyd  <froydnj@codesourcery.com>
10509             Chao-ying Fu  <fu@mips.com>
10510
10511         * doc/extend.texi: (micromips, nomicromips, nocompression):
10512         Document new function attributes.
10513         * doc/invoke.texi (minterlink-compressed, mmicromips,
10514         m14k, m14ke, m14kec): Document new options.
10515         (minterlink-mips16): Update documentation.
10516         * doc/md.texi (ZC, ZD): Document new constraints.
10517         * configure.ac (gcc_cv_as_micromips): Check if linker
10518         supports the .set micromips directive.
10519         * configure: Regenerate.
10520         * config.in: Regenerate.
10521         * config/mips/mips-tables.opt: Regenerate.
10522         * config/mips/micromips.md: New file.
10523         * constraints.md (ZC, AD): New constraints.
10524         * config/mips/predicates.md (movep_src_register): New predicate.
10525         (movep_src_operand): New predicate.
10526         (non_volatile_mem_operand): New predicate.
10527         * config/mips/mips.md (multimem): New type.
10528         (length): Differentiate between 17-bit and 18-bit branch offsets.
10529         (MOVEP1, MOVEP2): New mode iterator.
10530         (mov_<load>l): Use ZC constraint.
10531         (mov_<load>r): Likewise.
10532         (mov_<store>l): Likewise.
10533         (mov_<store>r): Likewise.
10534         (*branch_equality<mode>_inverted): Add microMIPS support.
10535         (*branch_equality<mode>): Likewise.
10536         (*jump_absolute): Likewise.
10537         (indirect_jump_<mode>): Likewise.
10538         (tablejump_<mode>): Likewise.
10539         (<optab>_internal): Likewise.
10540         (sibcall_internal): Likewise.
10541         (sibcall_value_internal): Likewise.
10542         (prefetch): Use constraint ZD.
10543         * config/mips/mips.opt (minterlink-compressed): New option.
10544         (minterlink-mips16): Now an alias for minterlink-compressed.
10545         (mmicromips): New option.
10546         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10547         (compare_and_swap_12): Likewise.
10548         (sync_add<mode>): Likewise.
10549         (sync_<optab>_12): Likewise.
10550         (sync_old_<optab>_12): Likewise.
10551         (sync_new_<optab>_12): Likewise.
10552         (sync_nand_12): Likewise.
10553         (sync_old_nand_12): Likewise.
10554         (sync_new_nand_12): Likewise.
10555         (sync_sub<mode>): Likewise.
10556         (sync_old_add<mode>): Likewise.
10557         (sync_old_sub<mode>): Likewise.
10558         (sync_new_add<mode>): Likewise.
10559         (sync_new_sub<mode>): Likewise.
10560         (sync_<optab><mode>): Likewise.
10561         (sync_old_<optab><mode>): Likewise.
10562         (sync_new_<optab><mode>): Likewise.
10563         (sync_nand<mode>): Likewise.
10564         (sync_old_nand<mode>): Likewise.
10565         (sync_new_nand<mode>): Likewise.
10566         (sync_lock_test_and_set<mode>): Likewise.
10567         (test_and_set_12): Likewise.
10568         (atomic_compare_and_swap<mode>): Likewise.
10569         (atomic_exchange<mode>_llsc): Likewise.
10570         (atomic_fetch_add<mode>_llsc): Likewise.
10571         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10572         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10573         (umips_save_restore_pattern_p): Likewise.
10574         (umips_load_store_pair_p): Likewise.
10575         (umips_output_load_store_pair): Likewise.
10576         (umips_movep_target_p): Likewise.
10577         (umips_12bit_offset_address_p): Likewise.
10578         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10579         (mips_base_mips16): Rename this...
10580         (mips_base_compression_flags): ...to this. Update all uses.
10581         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10582         (mips_mips16_decl_p): Delete.
10583         (mips_nomips16_decl_p): Delete.
10584         (mips_get_compress_on_flags): New function.
10585         (mips_get_compress_off_flags): New function.
10586         (mips_get_compress_mode): New function.
10587         (mips_get_compress_on_name): New function.
10588         (mips_get_compress_off_name): New function.
10589         (mips_insert_attributes): Support multiple compression types.
10590         (mips_merge_decl_attributes): Likewise.
10591         (umips_12bit_offset_address_p): New function.
10592         (mips_start_function_definition): Emit .set micromips directive.
10593         (mips_call_may_need_jalx_p): New function.
10594         (mips_function_ok_for_sibcall): Add microMIPS support.
10595         (mips_print_operand_punctuation): Support short delay slots and
10596         compact jumps.
10597         (umips_swm_mask, umips_swm_encoding): New.
10598         (umips_build_save_restore): New function.
10599         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10600         (was_mips16_p): Remove.
10601         (old_compression_mode): New.
10602         (mips_set_compression_mode): New function.
10603         (mips_set_current_function): Add microMIPS support.
10604         (mips_option_override): Likewise.
10605         (umips_save_restore_pattern_p): New function.
10606         (umips_output_save_restore): New function.
10607         (umips_load_store_pair_p_1): New function.
10608         (umips_load_store_pair_p): New function.
10609         (umips_output_load_store_pair_1): New function.
10610         (umips_output_load_store_pair): New function.
10611         (umips_movep_target_p) New function.
10612         (mips_prepare_pch_save): Add microMIPS support.
10613         * config/mips/mips.h (TARGET_COMPRESSION): New.
10614         (TARGET_CPU_CPP_BUILTINS): Update macro
10615         to use new compression flags and to support microMIPS.
10616         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10617         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10618         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10619         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10620         (ASM_SPEC): Support mmicromips and mno-micromips.
10621         (M16STORE_REG_P): New macro.
10622         (MIPS_CALL): Support TARGET_MICROMIPS.
10623         (MICROMIPS_J): New macro.
10624         (mips_base_mips16): Rename this...
10625         (mips_base_compression_flags): ...to this.
10626         (UMIPS_12BIT_OFFSET_P): New macro.
10627         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10628         (MULTILIB_DIRNAMES): Likewise.
10629
10630 2013-02-25  Tom de Vries  <tom@codesourcery.com>
10631
10632         PR rtl-optimization/56131
10633         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10634         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10635         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10636
10637 2013-02-25  Tobias Burnus  <burnus@net-b.de>
10638
10639         * doc/invoke.texi (-fsanitize=): Move from optimization
10640         to debugging options.
10641
10642 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10643
10644         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10645
10646 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10647             Alexander Monakov  <amonakov@ispras.ru>
10648
10649         PR middle-end/56077
10650         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10651         flush pending lists also on non-jumps.  Adjust comment.
10652
10653 2013-02-24  Catherine Moore  <clm@codesourcery.com>
10654             Maciej W. Rozycki  <macro@codesourcery.com>
10655             Tom de Vries  <tom@codesourcery.com>
10656             Nathan Sidwell  <nathan@codesourcery.com>
10657             Iain Sandoe  <iain@codesourcery.com>
10658             Nathan Froyd  <froydnj@codesourcery.com>
10659             Chao-ying Fu  <fu@mips.com>
10660
10661         * doc/extend.texi: (micromips, nomicromips, nocompression):
10662         Document new function attributes.
10663         * doc/invoke.texi (minterlink-compressed, mmicromips,
10664         m14k, m14ke, m14kec): Document new options.
10665         (minterlink-mips16): Update documentation.
10666         * doc/md.texi (ZC, ZD): Document new constraints.
10667         * configure.ac (gcc_cv_as_micromips): Check if linker
10668         supports the .set micromips directive.
10669         * configure: Regenerate.
10670         * config.in: Regenerate.
10671         * config/mips/mips-tables.opt: Regenerate.
10672         * config/mips/micromips.md: New file.
10673         * constraints.md (ZC, AD): New constraints.
10674         * config/mips/predicates.md (movep_src_register): New predicate.
10675         (movep_src_operand): New predicate.
10676         (non_volatile_mem_operand): New predicate.
10677         * config/mips/mips.md (multimem): New type.
10678         (length): Differentiate between 17-bit and 18-bit branch offsets.
10679         (MOVEP1, MOVEP2): New mode iterator.
10680         (mov_<load>l): Use ZC constraint.
10681         (mov_<load>r): Likewise.
10682         (mov_<store>l): Likewise.
10683         (mov_<store>r): Likewise.
10684         (*branch_equality<mode>_inverted): Add microMIPS support.
10685         (*branch_equality<mode>): Likewise.
10686         (*jump_absolute): Likewise.
10687         (indirect_jump_<mode>): Likewise.
10688         (tablejump_<mode>): Likewise.
10689         (<optab>_internal): Likewise.
10690         (sibcall_internal): Likewise.
10691         (sibcall_value_internal): Likewise.
10692         (prefetch): Use constraint ZD.
10693         * config/mips/mips.opt (minterlink-compressed): New option.
10694         (minterlink-mips16): Now an alias for minterlink-compressed.
10695         (mmicromips): New option.
10696         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10697         (compare_and_swap_12): Likewise.
10698         (sync_add<mode>): Likewise.
10699         (sync_<optab>_12): Likewise.
10700         (sync_old_<optab>_12): Likewise.
10701         (sync_new_<optab>_12): Likewise.
10702         (sync_nand_12): Likewise.
10703         (sync_old_nand_12): Likewise.
10704         (sync_new_nand_12): Likewise.
10705         (sync_sub<mode>): Likewise.
10706         (sync_old_add<mode>): Likewise.
10707         (sync_old_sub<mode>): Likewise.
10708         (sync_new_add<mode>): Likewise.
10709         (sync_new_sub<mode>): Likewise.
10710         (sync_<optab><mode>): Likewise.
10711         (sync_old_<optab><mode>): Likewise.
10712         (sync_new_<optab><mode>): Likewise.
10713         (sync_nand<mode>): Likewise.
10714         (sync_old_nand<mode>): Likewise.
10715         (sync_new_nand<mode>): Likewise.
10716         (sync_lock_test_and_set<mode>): Likewise.
10717         (test_and_set_12): Likewise.
10718         (atomic_compare_and_swap<mode>): Likewise.
10719         (atomic_exchange<mode>_llsc): Likewise.
10720         (atomic_fetch_add<mode>_llsc): Likewise.
10721         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10722         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10723         (umips_save_restore_pattern_p): Likewise.
10724         (umips_load_store_pair_p): Likewise.
10725         (umips_output_load_store_pair): Likewise.
10726         (umips_movep_target_p): Likewise.
10727         (umips_12bit_offset_address_p): Likewise.
10728         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10729         (mips_base_mips16): Rename this...
10730         (mips_base_compression_flags): ...to this. Update all uses.
10731         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10732         (mips_mips16_decl_p): Delete.
10733         (mips_nomips16_decl_p): Delete.
10734         (mips_get_compress_on_flags): New function.
10735         (mips_get_compress_off_flags): New function.
10736         (mips_get_compress_mode): New function.
10737         (mips_get_compress_on_name): New function.
10738         (mips_get_compress_off_name): New function.
10739         (mips_insert_attributes): Support multiple compression types.
10740         (mips_merge_decl_attributes): Likewise.
10741         (umips_12bit_offset_address_p): New function.
10742         (mips_start_function_definition): Emit .set micromips directive.
10743         (mips_call_may_need_jalx_p): New function.
10744         (mips_function_ok_for_sibcall): Add microMIPS support.
10745         (mips_print_operand_punctuation): Support short delay slots and
10746         compact jumps.
10747         (umips_swm_mask, umips_swm_encoding): New.
10748         (umips_build_save_restore): New function.
10749         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10750         (was_mips16_p): Remove.
10751         (old_compression_mode): New.
10752         (mips_set_compression_mode): New function.
10753         (mips_set_current_function): Add microMIPS support.
10754         (mips_option_override): Likewise.
10755         (umips_save_restore_pattern_p): New function.
10756         (umips_output_save_restore): New function.
10757         (umips_load_store_pair_p_1): New function.
10758         (umips_load_store_pair_p): New function.
10759         (umips_output_load_store_pair_1): New function.
10760         (umips_output_load_store_pair): New function.
10761         (umips_movep_target_p) New function.
10762         (mips_prepare_pch_save): Add microMIPS support.
10763         * config/mips/mips.h (TARGET_COMPRESSION): New.
10764         (TARGET_CPU_CPP_BUILTINS): Update macro
10765         to use new compression flags and to support microMIPS.
10766         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10767         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10768         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10769         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10770         (ASM_SPEC): Support mmicromips and mno-micromips.
10771         (M16STORE_REG_P): New macro.
10772         (MIPS_CALL): Support TARGET_MICROMIPS.
10773         (MICROMIPS_J): New macro.
10774         (mips_base_mips16): Rename this...
10775         (mips_base_compression_flags): ...to this.
10776         (UMIPS_12BIT_OFFSET_P): New macro.
10777         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10778         (MULTILIB_DIRNAMES): Likewise.
10779
10780 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
10781
10782         PR target/52555
10783         * target-globals.c (save_target_globals): For init_reg_sets and
10784         target_reinit remporarily set this_fn_optabs to this_target_optabs.
10785
10786 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
10787
10788         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10789         * config/aarch64/t-aarch64
10790         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10791
10792 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10793
10794         PR inline-asm/56148
10795         * lra-constraints.c (process_alt_operands): Reload operand
10796         conflicting with earlier clobber only if no more other conflicting
10797         operands.
10798
10799 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
10800
10801         PR sanitizer/56393
10802         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10803         if not linking a shared library.
10804
10805 2013-02-22  Seth LaForge  <sethml@google.com>
10806
10807         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10808
10809 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
10810
10811         * config/arm/arm.md (split for extendsidi): Update condition.
10812         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10813         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10814         (qhs_zextenddi_cstr): Likewise.
10815
10816 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10817
10818         PR middle-end/56420
10819         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10820         avoid signed wrapping.
10821         (expand_mult): Handle properly multiplication by
10822         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
10823         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
10824         in the compiler if coeff is HOST_WIDE_INT_MIN.
10825         (expand_divmod): Don't make ext_op1 static, change it's type to
10826         uhwi.  Avoid undefined behavior in -INTVAL (op1).
10827
10828         PR rtl-optimization/50339
10829         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10830         field.
10831         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10832         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10833         into splitting_ashiftrt field.
10834         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10835         ASHIFTRT.
10836         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10837         choices.
10838
10839 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
10840
10841         PR middle-end/56108
10842         * trans-mem.c (execute_tm_mark): Do not expand transactions that
10843         are sure to go irrevocable.
10844
10845 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
10846
10847         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10848         scalars are valid operands.
10849
10850 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10851
10852         PR tree-optimization/56310
10853         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10854         only matching indices and non-negative final offsets.
10855         (intersect_aggregates_with_edge): Pass src_idx to
10856         agg_replacements_to_vector.  Pass src_idx insstead of index to
10857         intersect_with_agg_replacements.
10858
10859 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10860
10861         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10862         instead of hard-wired defaults.
10863
10864 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
10865
10866         * doc/invoke.texi (MIPS Options): Update documentation of the
10867         floating-point multiply-accumulate instruction restrictions.
10868
10869 2013-02-21  Kostya Serebryany  <kcc@google.com>
10870
10871         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10872         asan_shadow_offset on x86_64 linux.
10873
10874 2013-02-21  Richard Biener  <rguenther@suse.de>
10875
10876         PR tree-optimization/56415
10877         Revert
10878         2013-02-11  Richard Biener  <rguenther@suse.de>
10879
10880         PR tree-optimization/56273
10881         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10882         first VRP run.
10883
10884 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10885
10886         PR bootstrap/56258
10887         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10888         instead of @itemx.
10889
10890         PR inline-asm/56405
10891         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10892         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10893
10894 2013-02-20  Jan Hubicka  <jh@suse.cz>
10895
10896         PR tree-optimization/56265
10897         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10898         when target is referenced for first time.
10899
10900 2013-02-20  Richard Biener  <rguenther@suse.de>
10901
10902         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10903         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10904         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10905         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10906         not return anything.
10907         (rename_ssa_copies): Do not remove unused locals.
10908         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
10909         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
10910         * passes.c (execute_function_todo): Do not schedule unused locals
10911         removal if cleanup_tree_cfg did something.
10912         * tree-ssa-live.c (remove_unused_locals): Dump statistics
10913         about the number of removed locals.
10914
10915 2013-02-20  Richard Biener  <rguenther@suse.de>
10916
10917         PR tree-optimization/56398
10918         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
10919
10920 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10921
10922         PR tree-optimization/55334
10923         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10924         restricted pointers to arrays.
10925
10926 2013-02-20  Richard Biener  <rguenther@suse.de>
10927             Jakub Jelinek  <jakub@redhat.com>
10928
10929         PR tree-optimization/56396
10930         * tree-ssa-ccp.c (n_const_val): New static variable.
10931         (get_value): Return NULL for SSA names we don't have a lattice
10932         entry for.
10933         (ccp_initialize): Initialize n_const_val.
10934         * tree-ssa-copy.c (n_copy_of): New static variable.
10935         (init_copy_prop): Initialize n_copy_of.
10936         (get_value): Return NULL_TREE for SSA names we don't have a
10937         lattice entry for.
10938
10939 2013-02-20  Martin Jambor  <mjambor@suse.cz>
10940
10941         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10942
10943 2013-02-20  Richard Biener  <rguenther@suse.de>
10944
10945         * genpreds.c (write_lookup_constraint): Do not compare first
10946         letter of the constraint again.
10947
10948 2013-02-20  Richard Biener  <rguenther@suse.de>
10949
10950         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10951         and ceil_log2.
10952         (get_use_iv_cost): Terminate hashtable walk when coming across
10953         an empty entry.
10954
10955 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10956
10957         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10958         reassociation for avx2 targets.
10959
10960 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10961
10962         * config/microblaze/microblaze.c: microblaze_has_clz = 0
10963         Add version check for v8.10.a to enable microblaze_has_clz
10964         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
10965         version and TARGET_PATTERN_COMPARE check
10966         * config/microblaze/microblaze.md: New clzsi2 instruction
10967
10968 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10969
10970         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
10971         function before branching.
10972
10973 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10974
10975         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10976         DUMP_INSN_RTX_UID.
10977         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10978
10979 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
10980
10981         PR middle-end/55889
10982         * sel-sched.c: Include ira.h.
10983         (implicit_clobber_conflict_p): New function.
10984         (moveup_expr): Use it.
10985         * Makefile.in (sel-sched.o): Depend on ira.h.
10986
10987 2013-02-19  Richard Biener  <rguenther@suse.de>
10988
10989         PR tree-optimization/56384
10990         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10991         (vn_hash_type): Split out from ...
10992         (vn_hash_constant_with_type): ... here.
10993         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10994         (vn_phi_eq): Compare types from vn_phi_s structure.
10995         (vn_phi_lookup): Populate vn_phi_s type.
10996         (vn_phi_insert): Likewise.
10997
10998 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
10999
11000         PR tree-optimization/56350
11001         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11002         if haven't found reduction or nested cycle operand, rather than
11003         asserting we must find it.
11004
11005         PR tree-optimization/56381
11006         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11007         to fold_build3.
11008
11009 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
11010             Jakub Jelinek  <jakub@redhat.com>
11011
11012         PR target/52555
11013         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11014         (swap_optab_enable): Same.
11015         (init_all_optabs): Use argument instead of global.
11016         * tree.h (struct tree_optimization_option): New field target_optabs.
11017         * expr.h (init_all_optabs): Add argument to prototype.
11018         (TREE_OPTIMIZATION_OPTABS): New.
11019         (save_optabs_if_changed): Protoize.
11020         * optabs.h: Declare this_fn_optabs.
11021         * optabs.c (save_optabs_if_changed): New.
11022         Declare this_fn_optabs.
11023         (init_optabs): Add argument to init_all_optabs() call.
11024         * function.c (invoke_set_current_function_hook): Handle per
11025         function optabs.
11026         * function.h (struct function): New field optabs.
11027         * config/mips/mips.c (mips_set_mips16_mode): Handle when
11028         optimization_current_node has changed.
11029         * target-globals.h (save_target_globals_default_opts): Protoize.
11030         * target-globals.c (save_target_globals_default_opts): New.
11031
11032 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11033
11034         PR target/56347
11035         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11036         registers %fr12 and %fr12R as call used.
11037
11038         PR target/56214
11039         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11040         and HImode, require all displacements to be an integer multiple of
11041         their mode size.
11042         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11043         only allow QImode and HImode when reload is in progress and strict is
11044         true.  Likewise for symbolic addresses.  Use base14_operand to check
11045         displacements in REG+BASE addresses.
11046
11047 2013-02-18  Richard Biener  <rguenther@suse.de>
11048
11049         PR tree-optimization/56366
11050         * tree-vect-loop.c (get_initial_def_for_induction): Properly
11051         handle sign-conversion of outer-loop initial induction value.
11052
11053 2013-02-18  Richard Biener  <rguenther@suse.de>
11054
11055         PR middle-end/56349
11056         * cfghooks.c (merge_blocks): If we merge a latch into another
11057         block adjust references to it.
11058         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11059         (verify_loop_structure): Verify that a recorded latch is in fact
11060         a latch.
11061
11062 2013-02-18  Richard Biener  <rguenther@suse.de>
11063
11064         PR tree-optimization/56321
11065         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11066         order SSA name release and virtual operand unlinking.
11067
11068 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11069
11070         * config/microblaze/microblaze.md (save_stack_block): Define.
11071         (restore_stack_block): Likewise.
11072
11073 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11074
11075         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11076         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11077         * config/microblaze/microblaze.c (microblaze_option_override):
11078         Bail out early for PIC modes when target does not support PIC.
11079
11080 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11081
11082         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11083         Replace with a microblaze version.
11084         (microblaze_trampoline_init): Adapt for microblaze.
11085         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11086         microblaze.
11087
11088 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
11089             Dodji Seketeli  <dodji@redhat.com>
11090
11091         PR asan/56330
11092         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11093         (instrument_mem_region_access): Do not forget to always put
11094         instrumentation of the of 'base' and 'base + len' in a "if (len !=
11095         0) statement, even for cases where either 'base' or 'base + len'
11096         are not instrumented -- because they have been previously
11097         instrumented.  Simplify the logic by putting all the statements
11098         instrument 'base + len' inside a sequence, and then insert that
11099         sequence right before the current insertion point.  Then, to
11100         instrument 'base + len', just get an iterator on that statement.
11101         And do not forget to update the pointer to iterator the function
11102         received as argument.
11103
11104 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
11105
11106         PR rtl-optimization/56348
11107         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11108
11109 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
11110
11111         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11112         (clean_graph_dump_file): Pass base to start_graph_dump.
11113
11114 2013-02-14  Richard Henderson  <rth@redhat.com>
11115
11116         PR target/55941
11117         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11118
11119 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
11120
11121         * collect2-aix.h: Define F_LOADONLY.
11122
11123 2013-02-14  Richard Biener  <rguenther@suse.de>
11124
11125         PR lto/50494
11126         * varasm.c (output_constant_def_1): Get the decl representing
11127         the constant as argument.
11128         (output_constant_def): Wrap output_constant_def_1.
11129         (make_decl_rtl): Use output_constant_def_1 with the decl
11130         representing the constant.
11131         (build_constant_desc): Optionally re-use a decl already
11132         representing the constant.
11133         (tree_output_constant_def): Adjust.
11134
11135 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
11136
11137         Fix an asan crash
11138         * asan.c (instrument_builtin_call):  Really put the length of the
11139         second source argument into src1_len.
11140
11141 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11142
11143         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11144         argument.  If it is false, don't create edge from then_bb to
11145         fallthru_bb.
11146         (insert_if_then_before_iter): Pass true to it.
11147         (build_check_stmt): Pass false to it.
11148         (transform_statements): Flush hash table only on extended basic
11149         block boundaries, rather than at the beginning of every bb.
11150         Don't flush hash table on nonfreeing_call_p calls.
11151         * tree-flow.h (nonfreeing_call_p): New prototype.
11152         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11153
11154 2013-02-13  David S. Miller  <davem@davemloft.net>
11155
11156         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11157
11158 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
11159
11160         PR target/56184
11161         * ira.c (max_regno_before_ira): Move from ...
11162         (ira): ... here.
11163         (fix_reg_equiv_init): Use max_regno_before_ira instead of
11164         vec_safe_length.
11165
11166 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11167
11168         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11169
11170 2013-02-13  Richard Biener  <rguenther@suse.de>
11171
11172         PR lto/56295
11173         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11174         globals in MEM_REFs.
11175
11176 2013-02-13  Richard Biener  <rguenther@suse.de>
11177
11178         * loop-init.c (loop_optimizer_init): Clear loop state when
11179         re-initializing preserved loops.
11180         * loop-unswitch.c (unswitch_single_loop): Return whether
11181         we unswitched the loop.  Do not verify loop state here.
11182         (unswitch_loops): When we unswitched a loop discover new loops.
11183
11184 2013-02-13  Kostya Serebryany  <kcc@google.com>
11185
11186         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11187         on x86_64 linux.
11188         * sanitizer.def: Rename __asan_init to __asan_init_v1.
11189
11190 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
11191
11192         Avoid instrumenting duplicated memory access in the same basic block
11193         * Makefile.in (asan.o): Add new dependency on hash-table.h
11194         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11195         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11196         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11197         (free_mem_ref_resources, has_mem_ref_been_instrumented)
11198         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11199         (get_mem_ref_of_assignment): New functions.
11200         (get_mem_refs_of_builtin_call): Extract from
11201         instrument_builtin_call and tweak a little bit to make it fit with
11202         the new signature.
11203         (instrument_builtin_call): Use the new
11204         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
11205         of is_gimple_builtin_call.
11206         (instrument_derefs, instrument_mem_region_access): Insert the
11207         instrumented memory reference into the hash table.
11208         (maybe_instrument_assignment): Renamed instrument_assignment into
11209         this, and change it to advance the iterator when instrumentation
11210         actually happened and return true in that case.  This makes it
11211         homogeneous with maybe_instrument_assignment, and thus give a
11212         chance to callers to be more 'regular'.
11213         (transform_statements): Clear the memory reference hash table
11214         whenever we enter a new BB, when we cross a function call, or when
11215         we are done transforming statements.  Use
11216         maybe_instrument_assignment instead of instrumentation.  No more
11217         need to special case maybe_instrument_assignment and advance the
11218         iterator after calling it; it's now handled just like
11219         maybe_instrument_call.  Update comment.
11220
11221 2013-02-13  Richard Biener  <rguenther@suse.de>
11222
11223         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11224         Fix loop discovery code.
11225
11226 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
11227
11228         PR inline-asm/56148
11229         * lra-constraints.c (process_alt_operands): Match early clobber
11230         operand with itself.  Check conflicts with earlyclobber only if
11231         the operand is not reloaded.  Prefer to reload conflicting operand
11232         if earlyclobber and matching operands are the same.
11233
11234 2013-02-12  Richard Biener  <rguenther@suse.de>
11235
11236         PR lto/56297
11237         * lto-streamer-out.c (write_symbol): Do not output symbols
11238         for hard register variables.
11239
11240 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
11241
11242         PR target/54222
11243         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11244         (umulsidi3_insn, mulsidi3_insn): New insns.
11245
11246 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
11247
11248         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11249         (struct tune_params): Add vec_costs field.
11250         * config/arm/arm.c (arm_builtin_vectorization_cost)
11251         (arm_add_stmt_cost): New functions.
11252         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11253         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11254         (arm_default_vec_cost): New struct of type cpu_vec_costs.
11255         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11256         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11257         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11258         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11259
11260 2013-02-12  Richard Biener  <rguenther@suse.de>
11261
11262         PR lto/56295
11263         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11264         decls again if possible.
11265
11266 2013-02-12  Richard Biener  <rguenther@suse.de>
11267
11268         PR middle-end/56288
11269         * tree-ssa.c (verify_ssa_name): Fix check, move
11270         SSA_NAME_IN_FREE_LIST check up.
11271
11272 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
11273             Steven Bosscher   <steven@gcc.gnu.org>
11274
11275         PR rtl-optimization/56151
11276         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11277         equal to op0 or op1, and last_insn pattern is CODE operation
11278         with MEM dest and one of the operands matches that MEM.
11279
11280 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
11281
11282         * doc/extend.texi: Document Function Multiversioning and "default"
11283         parameter string to target attribute.
11284         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11285         target attribute parameter is "default".
11286         (ix86_compare_version_priority): Remove checks for target attribute.
11287         (ix86_mangle_function_version_assembler_name): Change error to sorry.
11288         Remove check for target attribute equal to NULL. Add assert.
11289         (ix86_generate_version_dispatcher_body): Change error to sorry.
11290
11291 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
11292             Jack Howarth  <howarth@bromo.med.uc.edu>
11293             Patrick Marlier  <patrick.marlier@gmail.com>
11294
11295         PR libitm/55693
11296         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11297         define ENDFILE_SPEC as TM_DESTRUCTOR.
11298         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11299
11300 2013-02-11  Alexander Potapenko  <glider@google.com>
11301             Jack Howarth  <howarth@bromo.med.uc.edu>
11302             Jakub Jelinek  <jakub@redhat.com>
11303
11304         PR sanitizer/55617
11305         * config/darwin.c (cdtor_record): Rename ctor_record.
11306         (sort_cdtor_records): Rename sort_ctor_records.
11307         (finalize_dtors): New routine to sort destructors by
11308         priority before use in assemble_integer.
11309         (machopic_asm_out_destructor): Use finalize_dtors if needed.
11310
11311 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
11312
11313         PR rtl-optimization/56275
11314         * simplify-rtx.c (avoid_constant_pool_reference): Check that
11315         offset is non-negative and less than cmode size before
11316         calling simplify_subreg.
11317
11318 2013-02-11  Richard Biener  <rguenther@suse.de>
11319
11320         PR tree-optimization/56264
11321         * cfgloop.h (fix_loop_structure): Adjust prototype.
11322         * loop-init.c (fix_loop_structure): Return the number of
11323         newly discovered loops.
11324         * tree-cfgcleanup.c (repair_loop_structures): When new loops
11325         are discovered, do a full loop-closed SSA rewrite.
11326
11327 2013-02-11  Richard Biener  <rguenther@suse.de>
11328
11329         PR tree-optimization/56273
11330         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11331         first VRP run.
11332         (check_array_ref): Fix missing newline in dumps.
11333         (search_for_addr_array): Likewise.
11334
11335 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
11336
11337         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11338
11339 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
11340
11341         PR target/56256
11342         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11343
11344 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
11345
11346         PR rtl-optimization/56246
11347         * lra-constraints.c (simplify_operand_subreg): Try to reuse
11348         reload pseudo.
11349         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11350         constraints are satisfied.
11351
11352 2013-02-08  Jeff Law  <law@redhat.com>
11353
11354         PR debug/53948
11355         * emit-rtl.c (reg_is_parm_p): New function.
11356         * regs.h (reg_is_parm_p): New prototype.
11357         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11358         callee-clobbered registers.
11359
11360 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11361
11362         PR target/56043
11363         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11364         If there is no implicit builtin declaration, just return NULL.
11365
11366 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11367
11368         * config/i386/sse.md (FMAMODEM): New mode iterator.
11369         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11370         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11371
11372 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11373
11374         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11375         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11376         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11377
11378 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11379
11380         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11381         (microblaze*-*-elf): Likewise.
11382         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11383         LINK_SPEC.
11384         * config/microblaze/microblaze-c.c: Add builtin defines for
11385         _LITTLE_ENDIAN and _BIG_ENDIAN.
11386         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11387         add to TARGET_DEFAULT flags.
11388         Expand ASM_SPEC and LINK_SPEC.
11389         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11390         * config/microblaze/microblaze.md: Update extendsidi2 and
11391         movdi_internal instructions to use low-order / high-order reg
11392         print_operands.
11393         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11394         options and inversemask / mask of LITTLE_ENDIAN.
11395         * config/microblaze/t-microblaze: Expand multilib options to
11396         include mlittle-endian (le) and update exceptions patterns.
11397
11398 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
11399
11400         PR rtl-optimization/56195
11401         * lra-constraints.c (get_reload_reg): Don't reuse regs
11402         if they have smaller mode than requested, if they have
11403         wider mode than requested, try to return a SUBREG.
11404
11405         PR tree-optimization/56250
11406         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11407         if type is unsigned and code isn't MULT_EXPR.
11408
11409 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11410
11411         PR tree-optimization/56064
11412         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11413         bits according to mode.
11414         * fixed-value.h (fixed_from_double_int)
11415         (const_fixed_from_double_int): Adjust comments.
11416
11417 2013-02-08  Richard Biener  <rguenther@suse.de>
11418
11419         PR lto/56231
11420         * lto-streamer.h (struct data_in): Remove current_file, current_line
11421         and current_col members.
11422         * lto-streamer-out.c (lto_output_location): Stream changed bits
11423         en-block for efficiency.
11424         * lto-streamer-in.c (clear_line_info): Remove.
11425         (lto_input_location): Cache current file, line and column
11426         globally via local statics.  Read changed bits en-block.
11427         (input_function): Do not call clear_line_info.
11428         (lto_read_body): Likewise.
11429         (lto_input_toplevel_asms): Likewise.
11430
11431 2013-02-08  Michael Matz  <matz@suse.de>
11432
11433         PR tree-optimization/52448
11434         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11435         (nt_call_phase): New static.
11436         (add_or_mark_expr): Only mark accesses with newer phase than any
11437         call seen.
11438         (nonfreeing_call_p): New.
11439         (nt_init_block): Update nt_call_phase, mark blocks as visited.
11440         (nt_fini_block): Keep blocks marked as visited.
11441         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11442
11443 2013-02-08  Richard Biener  <rguenther@suse.de>
11444
11445         * ira.c (ira): Free broken dominator information.
11446
11447 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11448
11449         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11450
11451 2013-02-08  Marek Polacek  <polacek@redhat.com>
11452
11453         * cfgloop.c (verify_loop_structure): Add more checking of headers.
11454
11455 2013-02-08  Richard Biener  <rguenther@suse.de>
11456
11457         PR middle-end/56181
11458         * cfgloop.h (flow_loops_find): Adjust.
11459         (bb_loop_header_p): Declare.
11460         * cfgloop.c (bb_loop_header_p): New function split out from ...
11461         (flow_loops_find): ... here.  Adjust function signature,
11462         support incremental loop structure update.
11463         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
11464         * cfgloopmanip.c (fix_loop_structure): Move ...
11465         * loop-init.c (fix_loop_structure): ... here.
11466         (apply_loop_flags): Split out from ...
11467         (loop_optimizer_init): ... here.
11468         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
11469         in incremental mode, only remove dead loops here.
11470
11471 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11472
11473         PR target/54222
11474         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11475         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11476         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11477         (*round<mode>3.libgcc): New insns for fixed-modes.
11478         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11479         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11480         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11481         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11482         implementations.  Define to __builtin_avr_absFX,
11483         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11484         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11485         __builtin_avr_countlsFX, respectively.
11486         * config/avr/avr-c.c (target.h): Include it.
11487         (enum avr_builtin_id): New enum.
11488         (avr_resolve_overloaded_builtin): New static function.
11489         (avr_register_target_pragmas): Use it to set
11490         targetm.resolve_overloaded_builtin.
11491         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11492         tree nodes used by DEF_BUILTIN.
11493         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11494         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11495         <AVR_BUILTIN_xxBITS>: Same.
11496
11497 2013-02-08  Richard Biener  <rguenther@suse.de>
11498
11499         * cfgloop.c (verify_loop_structure): Properly handle
11500         a loop exiting to another loop header.
11501         * ira-int.h (ira_loops): Remove.
11502         * ira.c (ira_loops): Remove.
11503         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11504         (do_reload): Use loop_optimizer_finalize.
11505         * ira-build.c (create_loop_tree_nodes): Use get_loops and
11506         number_of_loops to access the loop tree.
11507         (more_one_region_p): Likewise.
11508         (finish_loop_tree_nodes): Likewise.
11509         (rebuild_regno_allocno_maps): Likewise.
11510         (mark_loops_for_removal): Likewise.
11511         (mark_all_loops_for_removal): Likewise.
11512         (remove_unnecessary_regions): Likewise.
11513         (ira_build): Likewise.
11514         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11515
11516 2013-02-08  Richard Biener  <rguenther@suse.de>
11517
11518         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11519         * ipa-pure-const.c (analyze_function): Avoid calling
11520         mark_irreducible_loops twice.
11521         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
11522
11523 2013-02-07  David S. Miller  <davem@davemloft.net>
11524
11525         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11526         on 'reg'.
11527         * var-tracking.c (vt_add_function_parameter): Test the presence of
11528         HAVE_window_save properly and do not remap argument registers when
11529         we have a leaf function.
11530
11531 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
11532
11533         PR bootstrap/56227
11534         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11535         instead of "ll".
11536         * config/i386/i386.c (ix86_print_operand): Ditto.
11537
11538 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11539
11540         * lra-constraints.c (process_alt_operands): Fix recently added comment.
11541
11542 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11543
11544         PR rtl-optimization/56225
11545         * lra-constraints.c (process_alt_operands): Check that reload hard
11546         reg can hold value for strict_low_part.
11547
11548 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11549
11550         PR debug/56154
11551         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11552         dwarf2out_end_function.
11553         (in_first_function_p, maybe_at_text_label_p,
11554         first_loclabel_num_not_at_text_label): New variables.
11555         (dwarf2out_var_location): In the first function find out
11556         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11557         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11558         functions.
11559
11560 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
11561
11562         PR rtl-optimization/56178
11563         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11564         SUBREG of a register.  Tidy up related block of code.
11565         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11566         note if the source is a register or a SUBREG of a register.
11567
11568 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11569
11570         PR target/56228
11571         * config/rs6000/rs6000.md (ptrm): New mode attr.
11572         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11573         call_value_indirect_aix<pttrsize>,
11574         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11575         m in constraints.
11576
11577 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11578
11579         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11580         if -bnortl. Convert to strcmp and strncmp.
11581
11582 2013-02-07  Alan Modra  <amodra@gmail.com>
11583
11584         PR target/54009
11585         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11586         addresses won't wrap when offsetting.
11587         (rs6000_secondary_reload): Provide secondary reloads needed for
11588         wrapping LO_SUM addresses.
11589
11590 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
11591
11592         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11593         MACH, just __MACH__.
11594
11595 2013-02-06  Richard Biener  <rguenther@suse.de>
11596
11597         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11598         instead of calling fix_loop_structure.
11599
11600 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11601
11602         PR middle-end/56217
11603         * omp-low.c (use_pointer_for_field): Return false if
11604         lower_send_shared_vars doesn't generate any copy-out code.
11605
11606 2013-02-06  Tom de Vries  <tom@codesourcery.com>
11607
11608         PR rtl-optimization/56131
11609         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11610         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
11611         of the label is NULL.  Add comment.
11612
11613 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11614
11615         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11616
11617         PR sanitizer/55374
11618         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11619         (STATIC_LIBTSAN_LIBS): Likewise.
11620         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11621         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11622         is defined, don't add anything else beyond that.
11623         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11624         (LINK_COMMAND_SPEC): Use them.
11625
11626         PR tree-optimization/56205
11627         * tree-stdarg.c (check_all_va_list_escapes): Return true if
11628         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11629         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11630
11631 2013-02-05  Richard Biener  <rguenther@suse.de>
11632
11633         PR tree-optimization/53342
11634         PR tree-optimization/53185
11635         * tree-vectorizer.h (vect_check_strided_load): Remove.
11636         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11637         not disallow peeling for vectorized strided loads.
11638         (vect_check_strided_load): Make static and simplify.
11639         (vect_analyze_data_refs): Adjust.
11640         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11641         correctly when vectorizing strided loads.
11642
11643 2013-02-05  Richard Biener  <rguenther@suse.de>
11644
11645         * doc/install.texi: Refer to ISL, not PPL.
11646
11647 2013-02-05  Jan Hubicka  <jh@suse.cz>
11648
11649         PR tree-optimization/55789
11650         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11651
11652 2013-02-05  Jan Hubicka  <jh@suse.cz>
11653
11654         PR tree-optimization/55789
11655         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11656         the dead call anyway.
11657
11658 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11659
11660         PR sanitizer/55374
11661         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11662
11663 2013-02-04  Alexander Potapenko  <glider@google.com>
11664             Jack Howarth  <howarth@bromo.med.uc.edu>
11665             Jakub Jelinek  <jakub@redhat.com>
11666
11667         PR sanitizer/55617
11668         * config/darwin.c (sort_ctor_records): Stabilized qsort
11669         on constructor priority by using original position.
11670         (finalize_ctors): New routine to sort constructors by
11671         priority before use in assemble_integer.
11672         (machopic_asm_out_constructor): Use finalize_ctors if needed.
11673
11674 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
11675
11676         PR libstdc++/54314
11677         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11678         about visibility on artificial decls.
11679         * config/sol2.c (solaris_assemble_visibility): Likewise.
11680
11681 2013-02-04  Kai Tietz  <ktietz@redhat.com>
11682
11683         PR target/56186
11684         * config/i386/i386.c (function_value_ms_64): Add additional valtype
11685         argument and improve checking of return-argument types for 16-byte
11686         modes.
11687         (ix86_function_value_1): Add additional valtype argument on call
11688         of function_value_64.
11689         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11690         handling infunction_value_64 function.
11691
11692 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11693
11694         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
11695
11696 2013-02-04  Richard Biener  <rguenther@suse.de>
11697
11698         PR tree-optimization/56188
11699         * tree-ssa-structalias.c (label_visit): Consider case with
11700         initially non-empty points-to set.
11701         (perform_var_substitution): Dump node mapping and clean up.
11702
11703 2013-02-04  Richard Guenther  <rguenther@suse.de>
11704
11705         PR lto/56168
11706         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11707         node prevail as last resort.
11708         (lto_symtab_merge_decls): Remove guard on LTRANS here.
11709         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
11710
11711 2013-02-04  Richard Biener  <rguenther@suse.de>
11712
11713         PR tree-optimization/56113
11714         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11715         Merge into ...
11716         (equiv_class_lookup_or_add): ... this.
11717         (label_visit): Adjust and fix error in previous patch.
11718         (perform_var_substitution): Adjust.
11719
11720 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
11721
11722         * config/sh/divtab.c: Fix formatting and comments throughout the file.
11723         * config/sh/sh4-300.md: Likewise.
11724         * config/sh/sh4a.md: Likewise.
11725         * config/sh/constraints.md: Likewise.
11726         * config/sh/sh.md: Likewise.
11727         * config/sh/netbsd-elf.h: Likewise.
11728         * config/sh/predicates.md: Likewise.
11729         * config/sh/sh-protos.h: Likewise.
11730         * config/sh/ushmedia.h: Likewise.
11731         * config/sh/linux.h: Likewise.
11732         * config/sh/sh.c: Likewise.
11733         * config/sh/superh.h: Likewise.
11734         * config/sh/elf.h: Likewise.
11735         * config/sh/sh4.md: Likewise.
11736         * config/sh/sh.h: Likewise.
11737
11738 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11739
11740         * config/pa/constraints.md: Adjust unused letters.  Change "T"
11741         constraint to match_test floating_point_store_memory_operand().
11742         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11743         (base14_operand): New.
11744         (floating_point_store_memory_operand): New.
11745         (integer_store_memory_operand): Revise to use base14_operand and
11746         reg_plus_base_memory_operand.
11747         (move_dest_operand): Allow symbolic_memory_operands.
11748         (symbolic_memory_operand): Check for LO_SOM.
11749         (symbolic_operand): Change default case to break.
11750         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11751         CONST_DOUBLE values to be reloaded by putting them into memory when
11752         the destination is a floating point register.
11753         (movdf): Remove code to handle CONST_DOUBLE.
11754         (movsf): Likewise.
11755         (reload_indf_r1): New.
11756         (reload_insf_r1): New.
11757         Consistently use "Q" and "T" constraints with integer and floating
11758         point move instructions, respectively.
11759         (movdi): Remove FAIL.
11760         Change predicate for source operand unamed DImode move from
11761         general_operand to move_src_operand.
11762         (umulsidi3): Change predicate for destination operand to
11763         register_operand.
11764         Likewise for similar unamed patterns.
11765         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11766         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11767         (hppa_legitimize_address): Simplify mask calculation.
11768         (pa_emit_move_sequence): Revised handling of secondary reloads from
11769         REG+D addresses for floating point loads and stores.  Directly handle
11770         loading CONST0_RTX (mode) to a floating point register.
11771         (pa_secondary_reload): Handle reloading DF and SFmode constant values
11772         to floating point registers.  Don't restrict secondary reloads to
11773         floating point registers to integer modes.  Revise some comments and
11774         cleanup some code.
11775         (TARGET_LEGITIMATE_ADDRESS_P): Define.
11776         (pa_legitimate_address_p): New.
11777         (pa_legitimize_reload_address): New.
11778         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11779         (STRICT_REG_OK_FOR_BASE_P): New.
11780         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
11781         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11782
11783 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
11784             Andrew Dixie  <andrewd@gentrack.com>
11785
11786         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11787         flag set.
11788
11789 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
11790
11791         * expmed.c (extract_bit_field_1): Pass the full width of the
11792         structure to get_best_reg_extraction_insn.
11793
11794 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11795
11796         PR target/54601
11797         * configure.ac (use_cxa_atexit): Add AIX.
11798         * configure: Regenerate.
11799
11800         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11801
11802 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
11803
11804         PR debug/54793
11805         * final.c (need_profile_function): New variable.
11806         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11807         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11808         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11809         notes, targetm.asm_out.function_prologue doesn't emit anything,
11810         HAVE_prologue and profiler should be emitted before prologue,
11811         set need_profile_function instead of emitting it.
11812         (final_scan_insn): If need_profile_function, emit
11813         profile_function on the first NOTE_INSN_BASIC_BLOCK or
11814         NOTE_INSN_FUNCTION_BEG note.
11815
11816 2013-02-01  Richard Henderson  <rth@redhat.com>
11817
11818         * config/rs6000/rs6000.md (smulditi3): New.
11819         (umulditi3): New.
11820
11821         * config/alpha/alpha.md (umulditi3): New.
11822
11823 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11824
11825         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11826         (ASM_OUTPUT_ALIGNED_LOCAL): New.
11827
11828 2013-02-01  Richard Biener  <rguenther@suse.de>
11829
11830         PR tree-optimization/56113
11831         * tree-ssa-structalias.c (label_visit): Reduce work for
11832         single-predecessor nodes.
11833
11834 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11835
11836         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11837         range isn't testing for zero.
11838
11839 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
11840
11841         PR middle-end/56113
11842         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11843
11844 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
11845             Nick Clifton  <nickc@redhat.com>
11846
11847         * config/v850/constraints.md (Q): Define as a memory constraint.
11848         * config/v850/predicates.md (label_ref_operand): New predicate.
11849         (e3v5_shift_operand): New predicate.
11850         (ior_operator): New predicate.
11851         * config/v850/t-v850: Add e3v5 multilib.
11852         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11853         (v850_gen_movdi): Prototype.
11854         * config/v850/v850.c: Add support for e3v5 architecture.
11855         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11856         TARGET_V850E_UP.
11857         (construct_save_jarl): Add e3v5 long JARL support.
11858         (v850_adjust_insn_length): New function.  Adjust length of call
11859         insns when using e3v5 instructions.
11860         (v850_gen_movdi): New function: Generate instructions to move a
11861         DImode value.
11862         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11863         (CPP_SPEC): Define __v850e3v5__ as appropriate.
11864         (TARGET_USE_FPU): Enable for e3v5.
11865         (CONST_OK_FOR_W): New macro.
11866         (ADJUST_INSN_LENGTH): Define.
11867         * config/v850/v850.md (UNSPEC_LOOP): Define.
11868         (attr cpu): Add v850e3v5.
11869         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11870         (movdi): New pattern.
11871         (movdi_internal): New pattern.
11872         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11873         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11874         (cstoresf4): Likewise.
11875         (cstoredf4): Likewise.
11876         (insv): New pattern.
11877         (rotlso3_a): New pattern.
11878         (rotlsi3_b): New pattern
11879         (rotlsi3_v850e3v5): New pattern.
11880         (doloop_begin): New pattern.
11881         (fix_loop_counter): New pattern.
11882         (doloop_end): New pattern.
11883         (branch_normal): Add e3v5 long branch support.
11884         (branch_invert): Likewise.
11885         (branch_z_normal): Likewise.
11886         (branch_z_invert): Likewise.
11887         (branch_nz_normal): Likewise.
11888         (branch_nz_invert): Likewise.
11889         (call_internal_short): Add e3v5 register-indirect JARL support.
11890         (call_internal_long): Likewise.
11891         (call_value_internal_short): Likewise.
11892         (call_value_internal_long): Likewise.
11893         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11894         (mloop): New option.
11895         * config.gcc: Add support for configuring v840e3v5 target.
11896         * doc/invoke.texi: Document new v850 specific command line options.
11897
11898 2013-01-31  Paul Koning  <ni1d@arrl.net>
11899
11900         PR debug/55059
11901         PR debug/54508
11902         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11903         children if parent is a class.
11904         (prune_unused_types_prune): Don't add DW_AT_declaration.
11905
11906 2013-01-31  Richard Biener  <rguenther@suse.de>
11907
11908         PR tree-optimization/56157
11909         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11910         match up operand with SLP child.
11911
11912 2013-01-31  Jason Merrill  <jason@redhat.com>
11913
11914         PR debug/54410
11915         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11916         parameters the first time.
11917         (gen_scheduled_generic_parms_dies): Check completeness here.
11918
11919 2013-01-31  Richard Biener  <rguenther@suse.de>
11920
11921         PR middle-end/53073
11922         * common.opt (faggressive-loop-optimizations): New flag,
11923         enabled by default.
11924         * doc/invoke.texi (faggressive-loop-optimizations): Document.
11925         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11926         infer_loop_bounds_from_undefined by it.
11927
11928 2013-01-31  Richard Biener  <rguenther@suse.de>
11929
11930         PR tree-optimization/56150
11931         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11932         visit virtual operands.
11933         (find_uses_to_rename_bb): Likewise.
11934
11935 2013-01-31  Richard Biener  <rguenther@suse.de>
11936
11937         PR tree-optimization/56150
11938         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11939         mixed store non-store stmts.
11940
11941 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
11942
11943         PR sanitizer/55374
11944         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11945         LIBASAN_EARLY_SPEC is defined.
11946         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11947         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11948         before %o.
11949         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11950
11951         PR c++/55742
11952         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11953         invalid args instead of ICEing on it.
11954         (ix86_valid_target_attribute_tree): Return error_mark_node if
11955         ix86_valid_target_attribute_inner_p failed.
11956         (ix86_valid_target_attribute_p): Return false only if
11957         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
11958         target("default") attribute.
11959         (sorted_attr_string): Change argument from const char * to tree,
11960         merge in all target attribute arguments rather than just one.
11961         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
11962         instead of free.  Avoid using strcat.
11963         (ix86_mangle_function_version_assembler_name): Mangle
11964         target("default") as if no target attribute is present.  Adjust
11965         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
11966         instead of xmalloc and XDELETEVEC instead of free.
11967         (ix86_function_versions): Don't return true if one of the decls
11968         doesn't have target attribute.  If they don't and one of the decls
11969         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
11970         sorted_attr_string caller.  Use XDELETEVEC instead of free.
11971         (ix86_supports_function_versions): Remove.
11972         (make_name): Fix up formatting.
11973         (make_dispatcher_decl): Remove resolver_name and its initialization.
11974         Avoid leaking memory.
11975         (is_function_default_version): Return true if there is
11976         target("default") attribute rather than no target attribute at all.
11977         (make_resolver_func): Avoid leaking memory.
11978         (ix86_generate_version_dispatcher_body): Likewise.
11979         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11980         * target.def (supports_function_versions): Remove.
11981         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11982         * doc/tm.texi: Regenerated.
11983
11984 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11985
11986         PR rtl-optimization/56144
11987         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11988         for values with side effects.
11989
11990 2013-01-30  Richard Biener  <rguenther@suse.de>
11991
11992         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11993         (sparseset_pop): Likewise.
11994         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
11995         to be able to use quick_push in the worker loop.
11996
11997 2013-01-30  Marek Polacek  <polacek@redhat.com>
11998
11999         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12000
12001 2013-01-30  Richard Biener  <rguenther@suse.de>
12002
12003         PR lto/56147
12004         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12005
12006 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
12007
12008         PR tree-optimization/56064
12009         * fixed-value.c (fixed_from_double_int): New function.
12010         * fixed-value.h (fixed_from_double_int): New prototype.
12011         (const_fixed_from_double_int): New static inline function.
12012         * fold-const.c (native_interpret_fixed): New static function.
12013         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12014         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12015         (native_encode_fixed): New static function.
12016         (native_encode_expr) <FIXED_CST>: Use it.
12017         (native_interpret_int): Move double_int worker code to...
12018         * double-int.c (double_int::from_buffer): ...this new static method.
12019         * double-int.h (double_int::from_buffer): Prototype it.
12020
12021 2013-01-30  Richard Biener  <rguenther@suse.de>
12022
12023         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12024         New pointer-map and obstack.
12025         (init_alias_vars): Allocate pointer-map and obstack.
12026         (delete_points_to_sets): Free them.
12027         (find_what_var_points_to): Cache result.
12028         (find_what_p_points_to): Adjust for changed interface of
12029         find_what_var_points_to.
12030         (compute_points_to_sets): Likewise.
12031         (ipa_pta_execute): Likewise.
12032
12033 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12034
12035         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12036         * configure: Regenerate.
12037         * config.in: Regenerate.
12038         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12039         #nobits/#progbits if supported.
12040
12041 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
12042
12043         PR target/56121
12044         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12045         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12046         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12047
12048 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12049
12050         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12051         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12052
12053 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12054
12055         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12056         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12057
12058 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12059
12060         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12061         declaration.
12062         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12063         * config/arm/cortex-a7.md: New bypasses using
12064         arm_mac_accumulator_is_result.
12065
12066 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12067
12068         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
12069         (cortex_a7_neon_mla): Likewise.
12070         (cortex_a7_fpfmad): New reservation.
12071         (cortex_a7_fpmacs): Use ffmas and update required units.
12072         (cortex_a7_fpmuld): Update required units and latency.
12073         (cortex_a7_fpmacd): Likewise.
12074         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12075         (cortex_a7_neon). Likewise.
12076         (bypass) Update participating units.
12077
12078 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12079
12080         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12081         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12082         from fmac to ffma.
12083         * config/arm/vfp11.md (vfp_farith): Use ffmas.
12084         (vfp_fmul): Use ffmad.
12085         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12086         (cortex_r4_fmacd): Use ffmad.
12087         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12088         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
12089         (cortex_a9_fmacd): Use ffmad.
12090         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12091         (cortex_a8_vfp_macd): Use ffmad.
12092         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12093         (cortex_a5_fpmacd): Use ffmad.
12094         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12095         (cortex_a15_vfp_macd): Use ffmad.
12096         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12097
12098 2013-01-29  Jason Merrill  <jason@redhat.com>
12099
12100         PR libstdc++/54314
12101         * varasm.c (default_assemble_visibility): Don't warn about
12102         visibility on artificial decls.
12103
12104 2013-01-29  Richard Biener  <rguenther@suse.de>
12105
12106         PR tree-optimization/56113
12107         * tree-ssa-structalias.c (equiv_class_lookup): Also return
12108         the bitmap leader.
12109         (label_visit): Free duplicate bitmaps and record the leader instead.
12110         (perform_var_substitution): Adjust.
12111
12112 2013-01-29  Richard Biener  <rguenther@suse.de>
12113
12114         PR tree-optimization/55270
12115         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12116         the CFG, schedule loops for fixup.
12117
12118 2013-01-29  Nick Clifton  <nickc@redhat.com>
12119
12120         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12121         SP_REG.
12122
12123 2013-01-28  Leif Ekblad  <leif@rdos.net>
12124
12125         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12126         * config/i386/i386.h (TARGET_RDOS): New macro.
12127         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12128         * config/i386/i386.c (ix86_option_override_internal): For 64bit
12129         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12130         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12131         DEFAULT_LARGE_SECTION_THRESHOLD.
12132         * config/i386/i386.md (R14_REG, R15_REG): New constants.
12133         * config/i386/rdos.h: New file.
12134         * config/i386/rdos64.h: New file.
12135
12136 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
12137
12138         PR other/54814
12139         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12140         TEST_HARD_REG_BIT.
12141
12142 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12143
12144         PR rtl-optimization/56117
12145         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12146         call cselib_lookup_from_insn on the MEM before calling
12147         add_insn_mem_dependence.
12148
12149 2013-01-28  Richard Biener  <rguenther@suse.de>
12150
12151         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12152         to a stmt that didn't have one.
12153         (copy_phis_for_bb): Likewise for PHI arguments.
12154         (copy_debug_stmt): Likewise for debug stmts.
12155
12156 2013-01-28  Richard Biener  <rguenther@suse.de>
12157
12158         PR tree-optimization/56034
12159         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12160         (partition_builtin_p): Adjust.
12161         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
12162         it is the last partition.
12163         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12164         up the vertex for the definition.
12165         (classify_partition): Classify whether a partition is a
12166         PKIND_REDUCTION, thus has uses outside of the loop.
12167         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12168         Merge all PKIND_REDUCTION partitions into the last partition.
12169         (tree_loop_distribution): Seed partitions from reductions as well.
12170
12171 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12172
12173         PR tree-optimization/56125
12174         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12175         pow(x,c) into sqrt(x) * powi(x, n/2) or
12176         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12177         optimizing for size.
12178         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12179         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12180         integer.
12181
12182         PR tree-optimization/56094
12183         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12184         to UNKNOWN_LOCATION while gimplifying expr.
12185
12186 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
12187
12188         PR target/56114
12189         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12190         operand 0 in movabs insn template for -masm=intel asm alternative.
12191         (*movabs<mode>_2): Ditto for operand 1.
12192
12193 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
12194
12195         PR target/54663
12196         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12197         of microblaze-c.o
12198
12199 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12200
12201         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12202         tm_file.
12203
12204 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12205
12206         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12207         Undef to avoid warning.
12208
12209 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12210
12211         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12212         * configure: Regenerate.
12213
12214 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
12215
12216         PR tree-optimization/56098
12217         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12218         for stmts with volatile ops.
12219         (cond_store_replacement): Don't optimize if assign has volatile ops.
12220         (cond_if_else_store_replacement_1): Don't optimize if either
12221         then_assign or else_assign have volatile ops.
12222         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12223         volatile ops.
12224
12225 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12226
12227         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12228
12229 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12230
12231         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12232         missing ':' in asm example.
12233
12234 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
12235
12236         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12237         entries into lane and laneq entries.
12238         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12239         Remove AdvSIMD scalar modes.
12240         (aarch64_sq<r>dmulh_laneq<mode>): New.
12241         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12242         modes.
12243         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12244         builtin implementations to relfect changes in RTL in aarch64-simd.md.
12245         * config/aarch64/iterators.md (VCOND): New.
12246         (VCONQ): New.
12247
12248 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12249
12250         PR target/54222
12251         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12252         Add NULL LIBNAME argument to existing definitions.
12253         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12254         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12255         * config/avr/avr.c (DEF_BUILTIN): Same.
12256         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12257         (avr_expand_builtin): Expand to a vanilla call if a libgcc
12258         implementation is available (DECL_ASSEMBLER_NAME is set).
12259         (avr_fold_absfx): New static function.
12260         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12261         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12262         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12263         AVR_BUILTIN_ABSLLK.
12264         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12265         (abshk, absk, abslk, absllk): Provide as static inline functions.
12266
12267 2013-01-25  Marek Polacek  <polacek@redhat.com>
12268
12269         PR tree-optimization/56035
12270         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12271
12272 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
12273
12274         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12275         (*movtf_internal_rex64): Add (!o,C) alternative
12276         (*movxf_internal_rex64): Ditto.
12277         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12278
12279 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
12280
12281         * doc/invoke.texi: fix typo.
12282         * doc/objc.texi: fix typo.
12283
12284 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12285
12286         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12287         for the first two alternatives.
12288
12289 2013-01-24  Diego Novillo  <dnovillo@google.com>
12290
12291         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
12292         (ggc-zone.o): Remove.
12293         * configure.ac: Remove option --with-gc.
12294         * configure: Re-generate.
12295         * doc/install.texi: Remove documentation for --with-gc.
12296         * gengtype.c (write_enum_defn): Remove.  Update all users.
12297         (write_Types_process_field): Remove generation of gt_e_* argument.
12298         (output_type_enum): Remove.  Update all users.
12299         (write_enum_defn): Remove.  Update all users.
12300         (enum alloc_zone): Remove.  Update all users.
12301         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12302         * ggc-common.c (ggc_splay_alloc): Remove first argument.
12303         Update all callers.
12304         (struct ptr_data): Remove field TYPE.  Update all users.
12305         (gt_pch_note_object): Remove argument TYPE.  Update all users.
12306         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12307         Update all users.
12308         * ggc-none.c (ggc_alloc_typed_stat): Remove.
12309         (struct alloc_zone): Remove.
12310         (ggc_internal_alloc_zone_stat): Remove.
12311         (ggc_internal_cleared_alloc_zone_stat): Remove.
12312         * ggc-page.c (ggc_alloc_typed_stat): Remove.
12313         (ggc_pch_count_object): Remove last argument.  Update all users.
12314         (ggc_pch_alloc_object): Remove last argument.  Update all users.
12315         (struct alloc_zone): Remove.
12316         * ggc-zone.c: Remove.
12317         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
12318         (struct alloc_zone): Remove.
12319         (ggc_alloc_typed_stat): Remove.
12320         (ggc_alloc_typed): Remove.
12321         (ggc_splay_alloc): Remove first argument.
12322         (rtl_zone): Remove.  Update all users.
12323         (tree_zone): Remove.  Update all users.
12324         (tree_id_zone): Remove.  Update all users.
12325         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
12326         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
12327         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
12328         * tree-ssanames.c: Remove references to zone allocator in comments.
12329
12330 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
12331
12332         * config/avr/avr.c (avr_out_fract): Make register numbers that
12333         might be outside of source operand signed.
12334
12335 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
12336
12337         * config/i386/constraints.md (Yf): New constraint.
12338         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12339         of f constraint to conditionaly disable x87 register preferences.
12340         (*movdf_internal): Ditto.
12341         (*movsf_internal): Ditto.
12342
12343 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
12344
12345         PR inline-asm/55934
12346         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12347         that have operands with impossible constraints.
12348         Add a FIXME for a speed-up opportunity.
12349         * lra-constraints.c (process_alt_operands): Verify that a class
12350         selected from constraints on asms is valid for the operand mode.
12351         (curr_insn_transform): Remove incorrect comment.
12352
12353 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
12354
12355         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12356         TOC operand is a valid symbol ref in the constant pool.
12357
12358 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12359
12360         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12361
12362 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
12363
12364         PR target/54222
12365         * config/avr/stdfix.h: New file.
12366         * t-avr (stdfix-gcc.h): New rule to build it.
12367         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12368
12369 2013-01-23  Kostya Serebryany  <kcc@google.com>
12370
12371         * config/darwin.h: remove dependency on
12372         CoreFoundation (asan on Mac OS).
12373
12374 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
12375
12376         PR target/49069
12377         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12378         instead of cmpdi_operand for first comparison operand.
12379         Don't assert that comparison operands aren't both constants.
12380
12381 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12382
12383         * doc/install.texi (Downloading the Source): Update references to
12384         downloading separate components.
12385
12386 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12387
12388         * doc/extend.texi (__int128): Improve grammar.
12389
12390 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
12391
12392         PR target/56028
12393         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12394         alternative to (o,r).
12395         (*movdi_internal_rex64): Remove (!o,n) alternative.
12396         (DImode immediate->memory splitter): Remove.
12397         (DImode immediate->memory peephole2): Remove.
12398         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12399         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12400         alternative to (!o,*r).
12401         (*movtf_internal_sse): New pattern.
12402         (*movxf_internal_rex64): New pattern.
12403         (*movxf_internal): Disable for TARGET_64BIT.
12404         (*movdf_internal_rex64): Remove (!o,F) alternative.
12405
12406 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
12407
12408         PR middle-end/56074
12409         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12410         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12411         * tree-vect-loop-manip.c (find_loop_location): Also ignore
12412         stmt locations where LOCATION_LOCUS of the stmt location is
12413         UNKNOWN_LOCATION or BUILTINS_LOCATION.
12414
12415         PR target/55686
12416         * config/i386/i386.md (UNSPEC_STOS): New.
12417         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12418         *strsetqi_1): Add UNSPEC_STOS.
12419
12420 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
12421
12422         PR c++/56067
12423         * doc/invoke.texi: Remove left over -Wsynth example.
12424
12425 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12426
12427         PR tree-optimization/56051
12428         * fold-const.c (fold_binary_loc): Don't fold
12429         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12430         a narrowing conversion, or widening conversion from signed
12431         to unsigned.
12432
12433 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12434
12435         PR rtl-optimization/56023
12436         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12437         dependent on debug instruction.
12438
12439 2013-01-21  Martin Jambor  <mjambor@suse.cz>
12440
12441         PR middle-end/56022
12442         * function.c (allocate_struct_function): Call
12443         invoke_set_current_function_hook earlier.
12444
12445 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12446
12447         * reload1.c (init_reload): Only initialize reload_obstack
12448         during the first call.
12449
12450 2013-01-21  Marek Polacek  <polacek@redhat.com>
12451
12452         * cfgloop.c (verify_loop_structure): Fix up grammar.
12453
12454 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
12455
12456         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12457         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12458
12459 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12460
12461         PR target/56058
12462         * config/arm/marvell-pj4.md: Update copyright year.
12463         Fix up use of alu to alu_reg and simple_alu_imm.
12464
12465 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12466
12467         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12468
12469 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
12470
12471         PR target/55433
12472         * lra-constraints.c (curr_insn_transform): Don't reuse original
12473         insn for secondary memory move when memory mode should be different.
12474
12475 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12476
12477         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12478         atomic_storedi_1): New patterns.
12479
12480 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12481
12482         btver2 pipeline descriptions.
12483         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12484         descriptions.
12485         * config/i386/i386.md (btver2_decode): New type attributes.
12486         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
12487         type attributes.
12488         * config/i386/btver2.md: New file describing btver2 pipelines.
12489
12490 2013-01-19  Andrew Pinski  <apinski@cavium.com>
12491
12492         PR tree-optimization/52631
12493         * tree-ssa-sccvn (visit_use): Before looking up the original
12494         statement, try looking up the simplified expression.
12495
12496 2013-01-19  Anthony Green  <green@moxielogic.com>
12497
12498         * config/moxie/moxie.c (moxie_expand_prologue): Set
12499         current_function_static_stack_size.
12500
12501 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12502
12503         PR tree-optimization/56029
12504         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12505         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12506
12507 2013-01-18  Sharad Singhai  <singhai@google.com>
12508
12509         PR tree-optimization/55995
12510         * dumpfile.c (dump_loc): Print location only if available.
12511         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12512
12513 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
12514
12515         PR target/55433
12516         * lra-constraints.c (curr_insn_transform): Reuse original insn for
12517         secondary memory move.
12518         (inherit_reload_reg): Use rclass instead of cl for
12519         check_secondary_memory_needed_p.
12520
12521 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12522
12523         PR middle-end/56015
12524         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
12525         the case where writing real complex part of target modifies op1.
12526
12527 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
12528
12529         * config/aarch64/aarch64-simd.md
12530         (aarch64_vcond_internal<mode>): Handle unordered cases.
12531         * config/aarch64/iterators.md (v_cmp_result): New.
12532
12533 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
12534             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12535
12536         * config/arm/marvell-pj4.md: New file.
12537         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12538         * config/arm/arm.md (generic_sched): Add marvell_pj4.
12539         (generic_vfp): Likewise.
12540         * config/arm/arm-cores.def: Add marvell-pj4.
12541         * config/arm/arm-tune.md: Regenerate.
12542         * config/arm/arm-tables.opt: Regenerate.
12543         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12544         * doc/invoke.texi: Document marvell-pj4.
12545
12546 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
12547
12548         * config/aarch64/arm_neon.h: Map scalar types to standard types.
12549
12550 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12551
12552         PR debug/54114
12553         PR debug/54402
12554         PR debug/49888
12555         * var-tracking.c (negative_power_of_two_p): New.
12556         (global_get_addr_cache, local_get_addr_cache): New.
12557         (get_addr_from_global_cache, get_addr_from_local_cache): New.
12558         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
12559         heading comment.
12560         (vt_stack_offset_p): Remove.
12561         (vt_canon_true_dep): Always canonicalize loc's address.
12562         (clobber_overlapping_mems): Make sure we have a MEM.
12563         (local_get_addr_clear_given_value): New.
12564         (val_reset): Clear local cached entries.
12565         (compute_bb_dataflow): Create and release the local cache.
12566         Disable duplicate MEMs clobbering.
12567         (emit_notes_in_bb): Clobber MEMs likewise.
12568         (vt_emit_notes): Create and release the local cache.
12569         (vt_initialize, vt_finalize): Create and release the global
12570         cache, respectively.
12571         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12572
12573 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12574
12575         PR libmudflap/53359
12576         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12577         not found in the symtab.
12578
12579 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12580
12581         PR debug/56006
12582         PR rtl-optimization/55547
12583         PR rtl-optimization/53827
12584         PR debug/53671
12585         PR debug/49888
12586         * alias.c (offset_overlap_p): New, factored out of...
12587         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
12588         the conservative special case for symbolic constants.  Don't
12589         adjust zero sizes on alignment.
12590
12591 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
12592
12593         PR rtl-optimization/52573
12594         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12595         REG_UNUSED for the same register.
12596
12597 2013-01-17  Richard Biener  <rguenther@suse.de>
12598             Marek Polacek  <polacek@redhat.com>
12599
12600         PR rtl-optimization/55833
12601         * loop-unswitch.c (unswitch_loops): Move loop verification...
12602         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
12603         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12604         Set it to true when we're removing a loop from hierarchy tree in
12605         an irreducible region.
12606         (fix_bb_placements): Adjust caller.
12607         (fix_loop_placements): Likewise.
12608
12609 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
12610
12611         * config/avr/builtins.def (DEF_BUILTIN): Factor out
12612         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12613         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12614         Remove ID.  Adjust comments.
12615         * config/avr/avr-c.c (avr_builtin_name): Remove.
12616         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12617         * config/avr/avr.c (avr_tolower): New static function.
12618         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
12619         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12620         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12621         default expansion.
12622
12623 2013-01-17  Jan Hubicka  <jh@suse.cz>
12624
12625         PR tree-optimization/55273
12626         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12627
12628 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
12629
12630         PR target/55981
12631         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12632         store through atomic_store<mode>_1.
12633         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12634
12635 2013-01-17  Martin Jambor  <mjambor@suse.cz>
12636
12637         PR tree-optimizations/55264
12638         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12639         for virtual methods.
12640         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12641         virtual methods before inlining is over.
12642         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12643         virtual functions.
12644         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12645         non-virtual.
12646
12647 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
12648
12649         PR rtl-optimization/56005
12650         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12651         pending reads for prefetch.
12652
12653 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
12654
12655         * config/aarch64/aarch64.md
12656         (*cstoresi_neg_uxtw): New pattern.
12657         (*cmovsi_insn_uxtw): New pattern.
12658         (*<optab>si3_uxtw): New pattern.
12659         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12660         (*<optab>si3_insn_uxtw): New pattern.
12661         (*bswapsi2_uxtw): New pattern.
12662
12663 2013-01-16  Richard Biener  <rguenther@suse.de>
12664
12665         * tree-inline.c (tree_function_versioning): Remove set but
12666         never used variable.
12667
12668 2013-01-16  Richard Biener  <rguenther@suse.de>
12669
12670         PR tree-optimization/55964
12671         * tree-flow.h (rename_variables_in_loop): Remove.
12672         (rename_variables_in_bb): Likewise.
12673         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12674         (copy_loop_before): Adjust and delete update-ssa status.
12675         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
12676         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
12677         (rename_variables_in_loop): Remove.
12678         (slpeel_update_phis_for_duplicate_loop): Likewise.
12679         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12680         use available cfg machinery instead of duplicating it.
12681         Update PHI nodes and perform poor-mans SSA update here.
12682         (slpeel_tree_peel_loop_to_edge): Adjust.
12683
12684 2013-01-16  Richard Biener  <rguenther@suse.de>
12685
12686         PR tree-optimization/54767
12687         PR tree-optimization/53465
12688         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12689         (vrp_visit_phi_node): For PHI arguments coming via backedges
12690         drop all symbolical range information.
12691         (execute_vrp): Compute backedges.
12692
12693 2013-01-16  Richard Biener  <rguenther@suse.de>
12694
12695         * doc/install.texi: Update CLooG and ISL requirements to
12696         0.18.0 and 0.11.1.
12697
12698 2013-01-16  Christian Bruel  <christian.bruel@st.com>
12699
12700         PR target/55301
12701         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12702         (broken_move): Handle UNSPECV_SP_SWITCH_B.
12703         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12704
12705 2013-01-16  DJ Delorie  <dj@redhat.com>
12706
12707         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12708         (UNSPECV_SP_SWITCH_E): New.
12709         (sp_switch_1): Change to an unspec.
12710         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
12711         replace $r15.
12712
12713 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
12714
12715         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12716         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12717         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12718         (expand_mem_thread_fence): Ditto.
12719         (expand_mem_signal_fence): Ditto.
12720         (expand_atomic_load): Ditto.
12721         (expand_atomic_store): Ditto.
12722
12723 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
12724
12725         PR rtl-optimization/55547
12726         PR rtl-optimization/53827
12727         PR debug/53671
12728         PR debug/49888
12729         * alias.c (memrefs_conflict_p): Set sizes to negative after
12730         AND adjustments.
12731
12732 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12733
12734         PR target/55940
12735         * function.c (thread_prologue_and_epilogue_insns): Always
12736         add crtl->drap_reg to set_up_by_prologue.set, even if
12737         stack_realign_drap is false.
12738
12739 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12740
12741         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12742         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12743         *call): Fix indention.
12744
12745 2013-01-15  Tom de Vries  <tom@codesourcery.com>
12746
12747         PR target/55876
12748         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12749         Update comment.
12750
12751 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12752
12753         PR rtl-optimization/55153
12754         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12755
12756 2013-01-15  Martin Jambor  <mjambor@suse.cz>
12757
12758         PR tree-optimization/55920
12759         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12760         accesses as grp_to_be_debug_replaced.
12761
12762 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12763
12764         PR tree-optimization/55920
12765         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12766         there is non-useless type conversion needed from debug rhs to lhs,
12767         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12768
12769 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
12770             Mikael Pettersson  <mikpe@it.uu.se>
12771
12772         PR target/43961
12773         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12774         Thumb.
12775         (ASM_OUTPUT_CASE_LABEL): Remove.
12776         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12777         * final.c (shorten_branches): Update alignment of labels before
12778         jump tables if CASE_VECTOR_SHORTEN_MODE.
12779
12780 2013-01-15  Richard Biener  <rguenther@suse.de>
12781
12782         PR bootstrap/55961
12783         * system.h: Do not include gmp.h for building host tools.
12784
12785 2013-01-15  Richard Biener  <rguenther@suse.de>
12786
12787         PR middle-end/55882
12788         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12789         account for bitpos when computing alignment.
12790
12791 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
12792
12793         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12794         (ix86_target_macros_internal): Likewise.
12795
12796         * config/i386/i386.c (m_CORE2I7): Removed.
12797         (m_CORE_HASWELL): New macro.
12798         (m_CORE_ALL): Likewise.
12799         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12800         (initial_ix86_arch_features): Likewise.
12801         (processor_target_table): Initializations for Core avx2.
12802         (cpu_names): New names "core-avx2".
12803         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12804         PROCESSOR_CORE_HASWELL.
12805         (ix86_issue_rate): New case.
12806         (ia32_multipass_dfa_lookahead): Likewise.
12807         (ix86_sched_init_global): Likewise.
12808
12809         * config/i386/i386.h (TARGET_HASWELL): New macro.
12810         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12811         (processor_type): New PROCESSOR_HASWELL.
12812
12813 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12814
12815         PR tree-optimization/55955
12816         * tree-vect-loop.c (vectorizable_reduction): Give up early on
12817         *SHIFT_EXPR and *ROTATE_EXPR codes.
12818
12819         PR tree-optimization/48766
12820         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12821         -ftrapv disable -fwrapv.
12822
12823 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12824
12825         PR target/55974
12826         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12827         etc. to 1 and not to __flash.
12828         Use LL suffix for __INT24_MAX__ with -mint8.
12829         Use ULL suffix for __UINT24_MAX__ with -mint8.
12830
12831 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12832
12833         * config/avr/avr-arch.h
12834         (struct base_arch_s): Use typedef avr_arch_t instead.
12835         (struct arch_info_s): Use typedef avr_arch_info_t instead.
12836         (struct mcu_type_s): Use typedef avr_mcu_t instead.
12837         * config/avr/avr.c: Same.
12838         * config/avr/avr-devices.c: Same.
12839         * config/avr/driver-avr.c: Same.
12840         * config/avr/gen-avr-mmcu-texi.c: Same.
12841         * config/avr/avr-mcus.def: Adjust comment.
12842
12843 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
12844
12845         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12846         * config/aarch64/iterators.md (VALLDI): New.
12847
12848 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
12849             Andi Kleen  <ak@linux.intel.com>
12850
12851         PR target/55948
12852         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12853         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12854         memmodel flag.
12855
12856 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12857
12858         * config/avr/avr-stdint.h: Remove trailing blanks.
12859         * config/avr/avr-log.h: Same.
12860         * config/avr/avr-arch.h: Same.
12861         * config/avr/avr-devices.c: Same.
12862         * config/avr/avr-dimode.md: Same.
12863         * config/avr/predicates.md: Same.
12864         * config/avr/avr-c.c: Same.  And fix typo.
12865
12866         * config/avr/avr-protos.h: Same.  And:
12867         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12868         (init_cumulative_args): Rename to avr_init_cumulative_args.
12869         (expand_prologue): Rename to avr_expand_prologue.
12870         (expand_epilogue): Rename to avr_expand_epilogue.
12871         (adjust_insn_length): Rename to avr_adjust_insn_length.
12872         (notice_update_cc): Rename to avr_notice_update_cc.
12873         (final_prescan_insn): Rename to avr_final_prescan_insn.
12874         * config/avr/avr.c: Same.
12875         * config/avr/avr.h: Same.
12876         * config/avr/avr.md: Remove trailing blanks.
12877         (prologue): Use avr_expand_prologue.
12878         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12879
12880 2013-01-14  Richard Biener  <rguenther@suse.de>
12881
12882         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12883         verify_location, collect_subblocks): New functions.
12884         (verify_gimple_in_cfg): Verify that locations only reference
12885         BLOCKs in the functions BLOCK tree.
12886
12887 2013-01-14  Richard Biener  <rguenther@suse.de>
12888
12889         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12890         PHI argument.
12891         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12892         unshare reference.
12893         (insert_out_of_ssa_copy_on_edge): Likewise.
12894         (rewrite_close_phi_out_of_ssa): Likewise.
12895         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12896         debug expressions.
12897         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12898         propagated constants.
12899         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12900         can not be shared.
12901
12902 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12903
12904         * config/avr/avr-modes.def: Add GPL copyright notice.
12905
12906 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
12907
12908         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12909         MEMMODEL_MASK to determine memory model.
12910         (atomic_store<mode>): Ditto from operands[2].
12911         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12912
12913 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
12914
12915         PR fortran/55935
12916         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
12917         (fold_gimple_assign): Don't call unshare_expr here.
12918         (fold_ctor_reference): Call unshare_expr.
12919
12920 2013-01-13  Terry Guo  <terry.guo@arm.com>
12921
12922         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12923         * doc/fragments.texi: Document MULTILIB_REUSE.
12924         * gcc.c (multilib_reuse): New internal spec.
12925         (set_multilib_dir): Also search multilib from multilib_reuse.
12926         * genmultilib (tmpmultilib3): Refactor code.
12927         (tmpmultilib4): Ditto.
12928         (multilib_reuse): New multilib argument.
12929
12930 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
12931
12932         * Makefile.in: Update copyright.
12933
12934 2013-01-12  Tom de Vries  <tom@codesourcery.com>
12935
12936         PR middle-end/55890
12937         * calls.c (expand_call): Check if arg_nr is valid.
12938
12939 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12940
12941         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12942         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
12943         documentation.  Add missing '__' in front of
12944         __builtin_ia32_packssdw256.
12945
12946 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12947
12948         PR target/55719
12949         * config/s390/s390.c (s390_preferred_reload_class): Do not return
12950         NO_REGS for larl operands.
12951         (s390_reload_larl_operand): Use s390_load_address instead of
12952         emit_move_insn.
12953
12954 2013-01-11  Richard Biener  <rguenther@suse.de>
12955
12956         * tree-cfg.c (verify_node_sharing_1): Split out from ...
12957         (verify_node_sharing): ... here.
12958         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12959
12960 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
12961
12962         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12963         Substitute TREECHECKING.
12964         * configure: Regenerate.
12965         * Makefile.in (TREECHECKING): New.
12966
12967 2013-01-11  Richard Guenther  <rguenther@suse.de>
12968
12969         PR tree-optimization/44061
12970         * tree-vrp.c (extract_range_basic): Compute zero as
12971         value-range for __builtin_constant_p of function parameters.
12972
12973 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
12974
12975         Update copyright years.
12976
12977 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
12978
12979         PR rtl-optimization/55672
12980         * lra-eliminations.c (mark_not_eliminable): Permit addition with
12981         const to be eliminable.
12982
12983 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
12984
12985         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12986         * configure: Regenerate.
12987
12988 2013-01-10  Richard Biener  <rguenther@suse.de>
12989
12990         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
12991
12992 2013-01-10  Richard Biener  <rguenther@suse.de>
12993
12994         PR bootstrap/55792
12995         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12996         locations for virtual PHI arguments.
12997         (rewrite_update_phi_arguments): Likewise.
12998
12999 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
13000
13001         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13002         on to assembler.
13003
13004 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
13005
13006         PR tree-optimization/55921
13007         * tree-complex.c (expand_complex_asm): New function.
13008         (expand_complex_operations_1): Call it for GIMPLE_ASM.
13009
13010 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13011
13012         PR target/55718
13013         * config/s390/s390.c (s390_symref_operand_p)
13014         (s390_loadrelative_operand_p): Merge the two functions.
13015         (s390_check_qrst_address, print_operand_address): Add parameters
13016         to s390_loadrelative_operand_p invokation.
13017         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13018         (s390_reload_larl_operand, s390_secondary_reload): Use
13019         s390_loadrelative_operand_p instead of s390_symref_operand_p.
13020         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13021
13022 2013-01-09  Mike Stump  <mikestump@comcast.net>
13023
13024         * dse.c (record_store): Remove unnecessary assert.
13025
13026 2013-01-09  Jan Hubicka  <jh@suse.cz>
13027
13028         PR tree-optimization/55569
13029         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13030         * cfgloop.h (scale_loop_profile): Likewise.
13031
13032 2013-01-09  Jan Hubicka  <jh@suse.cz>
13033
13034         PR lto/45375
13035         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13036         functions.
13037         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13038
13039 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
13040
13041         PR middle-end/55114
13042         * expr.h (maybe_emit_group_store): Declare.
13043         * expr.c (maybe_emit_group_store): New function.
13044         * builtins.c (expand_builtin_int_roundingfn): Call it.
13045         (expand_builtin_int_roundingfn_2): Likewise.
13046
13047 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
13048
13049         PR rtl-optimization/55829
13050         * lra-constraints.c (match_reload): Add code for absent output.
13051         (curr_insn_transform): Add code for reloads of matched inputs
13052         without output.
13053
13054 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
13055
13056         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13057         attribute of movddup insn to DF.
13058         (*vec_interleave_lowv2df): Ditto.
13059         (vec_dupv2df): Ditto.
13060
13061 2013-01-09  Jan Hubicka  <jh@suse.cz>
13062
13063         PR tree-optimiation/55875
13064         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13065         EVERY_ITERATION parameter.
13066         (number_of_iterations_exit): Check if exit is executed every iteration.
13067         (idx_infer_loop_bounds): Similarly here.
13068         (n_of_executions_at_most): Simplify
13069         to only test for cases where statement is dominated by the
13070         particular bound; handle correctly the "postdominance" test.
13071         (scev_probably_wraps_p): Use max loop iterations info
13072         as a global bound first.
13073
13074 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
13075             Nick Clifton  <nickc@redhat.com>
13076
13077         * config/v850/v850.md (cbranchsf4): New pattern.
13078         (cstoresf4): New pattern.
13079         (cbranchdf4): New pattern.
13080         (cstoredf4): New pattern.
13081         (movsicc): Disallow floating point comparisons.
13082         (cmpsf_le_insn): Fix order of operators.
13083         (cmpsf_lt_insn): Likewise.
13084         (cmpsf_eq_insn): Likewise.
13085         (cmpdf_le_insn): Likewise.
13086         (cmpdf_lt_insn): Likewise.
13087         (cmpdf_eq_insn): Likewise.
13088         (cmpsf_ge_insn): Use LE comparison.
13089         (cmpdf_ge_insn): Likewise.
13090         (cmpsf_gt_insn): Use LT comparison.
13091         (cmpdf_gt_insn): Likewise.
13092         (cmpsf_ne_insn): Delete pattern.
13093         (cmpdf_ne_insn): Delete pattern.
13094         * config/v850/v850.c (v850_gen_float_compare): Use
13095         gen_cmpdf_eq_insn for NE comparison.
13096         (v850_float_z_comparison_operator)
13097         (v850_float_nz_comparison_operator): Move from here ...
13098         * config/v850/predicates.md: ... to here.  Move GT and GE
13099         comparisons into v850_float_z_comparison_operator.
13100         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13101         Delete prototype.
13102         (v850_float_nz_comparison_operator): Likewise.
13103
13104 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13105
13106         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13107         with calls to gen_insvsi/gen_insvdi.
13108
13109 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13110
13111         * config/i386/i386.c (initial_ix86_tune_features): Set up
13112         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13113
13114 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
13115             Jakub Jelinek  <jakub@redhat.com>
13116
13117         PR tree-optimization/48189
13118         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13119         If nitercst is 0, don't predict the exit edge.
13120
13121 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13122
13123         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13124         in asm_fprintf with reg_names.
13125         (aarch64_print_operand_address): Likewise.
13126         (aarch64_return_addr): Likewise.
13127         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13128
13129 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13130
13131         * config/pa/pa.h (VAL_U6_BITS_P): Define.
13132         (INT_U6_BITS): Likewise.
13133         * config/pa/predicates.md (uint6_operand): New predicate.
13134         (shift5_operand, shift6_operand): Likewise.
13135         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13136         arith32_operand.
13137         (lshrdi3): Use shift6_operand.
13138         (shrpsi4, shrpdi4): New insn patterns.
13139         (extzv): Delete expander.
13140         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
13141         predicates in unamed zero extract patterns.  Tighten common constraint.
13142         (extv): Delete expander.
13143         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
13144         predicates in unamed sign extract patterns.  Tighten common constraint.
13145         (insv): Delete expander.
13146         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
13147         predicates in unamed insert patterns.  Tighten common constraint.
13148         Change uint32_operand predicate to uint6_operand predicate in unamed
13149         DImode pattern to insert constant values of type 1...1xxxx.
13150
13151 2013-01-04  Jan Hubicka  <jh@suse.cz>
13152
13153         PR tree-optimization/55823
13154         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13155         issue.
13156
13157 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13158             Uros Bizjak  <ubizjak@gmail.com>
13159
13160         PR rtl-optimization/55845
13161         * df-problems.c (can_move_insns_across): Stop scanning at
13162         volatile_insn_p source instruction or give up if
13163         across_from .. across_to range contains any volatile_insn_p
13164         instructions.
13165
13166 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13167
13168         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13169         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13170         Declare.
13171         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13172         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13173
13174 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13175
13176         PR fortran/55341
13177         * asan.c (asan_clear_shadow): New function.
13178         (asan_emit_stack_protection): Use it.
13179
13180 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13181
13182         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13183         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13184         with tab instead of space.
13185
13186 2013-01-08  Nick Clifton  <nickc@redhat.com>
13187
13188         * config/rl78/rl78.c (rl78_expand_prologue): Always select
13189         register bank 0 at the start of an interrupt handler.
13190         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13191         MDBH registers.
13192
13193 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13194
13195         * config/aarch64/aarch64-simd.md
13196         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13197         (aarch64_simd_bsl): Likewise.
13198         (aarch64_vcond_internal<mode>): Likewise.
13199         (vcond<mode><mode>): Likewise.
13200         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13201         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13202
13203 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13204
13205         * config/aarch64/aarch64-builtins.c
13206         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13207
13208 2013-01-08  Martin Jambor  <mjambor@suse.cz>
13209
13210         PR debug/55579
13211         * tree-sra.c (analyze_access_subtree): Return true also after
13212         potentially creating a debug-only replacement.
13213
13214 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13215
13216         PR middle-end/55890
13217         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13218
13219         PR tree-optimization/54120
13220         * tree-vrp.c (range_fits_type_p): Don't allow
13221         src_precision < precision from signed vr to unsigned_p
13222         if vr->min or vr->max is negative.
13223         (simplify_float_conversion_using_ranges): Test can_float_p
13224         against CODE_FOR_nothing.
13225
13226 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13227             Richard Biener  <rguenther@suse.de>
13228
13229         PR middle-end/55851
13230         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13231         types instead of just INTEGER_TYPE types.
13232
13233 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
13234
13235         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13236         TF_SIZE): Define.
13237
13238 2013-01-07  Steve Ellcey  <sellcey@mips.com>
13239
13240         PR target/42661
13241         * config/mips/mips.opt: Change mad to mmad to match documentation.
13242
13243 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13244
13245         PR target/55897
13246         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13247         .progmemx.data now.
13248
13249 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13250
13251         PR target/55897
13252         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13253         (avr_addrspace_t): Add .section_name field.
13254         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13255         array size.
13256         (avr_addrspace): Same.  Initialize .section_name.  Remove last
13257         NULL entry.  Put __memx into .progmemx.data.
13258         (progmem_section_prefix): Remove.
13259         (avr_asm_init_sections): No need to initialize progmem_section.
13260         (avr_asm_named_section): Use avr_addrspace[].section_name to get
13261         section name prefix.
13262         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
13263         retrieve the progmem section.
13264         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13265         boundary to run over avr_addrspace[].
13266         (avr_register_target_pragmas): Ditto.
13267
13268 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
13269
13270         * varasm.c (output_constant_def_contents): For asan_protect_global
13271         protected strings, adjust DECL_ALIGN if needed, before testing for
13272         anchored symbols.
13273         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13274         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
13275         normal decls.
13276         (output_object_block): For asan protected decls, emit asan padding
13277         after their contents.
13278         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13279         (asan_finish_file): Test it here instead.
13280
13281 2013-01-07  Nick Clifton  <nickc@redhat.com>
13282             Matthias Klose  <doko@debian.org>
13283             Doug Kwan  <dougkwan@google.com>
13284             H.J. Lu  <hongjiu.lu@intel.com>
13285
13286         PR driver/55470
13287         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13288
13289         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13290
13291         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13292
13293         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13294
13295         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13296
13297 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13298
13299         PR target/54461
13300         * doc/install.texi (Cross-Compiler-Specific Options): Document
13301         --with-avrlibc.
13302
13303 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
13304
13305         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13306         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13307         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13308         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13309         vqmovun_high_s64): Fix source operand number and update copyright.
13310
13311 2013-01-07  Richard Biener  <rguenther@suse.de>
13312
13313         PR middle-end/55890
13314         * gimple.h (gimple_call_builtin_p): New overload.
13315         * gimple.c (validate_call): New function.
13316         (gimple_call_builtin_p): Likewise.
13317         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13318         Use gimple_call_builtin_p.
13319         (find_func_clobbers): Likewise.
13320         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13321         (strlen_optimize_stmt): Likewise.
13322
13323 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13324
13325         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13326         (vld1q_dup_*): Likewise.
13327         (vld1_*): Likewise.
13328         (vld1q_*): Likewise.
13329         (vld1_lane_*): Likewise.
13330         (vld1q_lane_*): Likewise.
13331
13332 2013-01-07  Richard Biener  <rguenther@suse.de>
13333
13334         * lto-streamer.h (LTO_minor_version): Bump to 2.
13335
13336 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13337
13338         * config/aarch64/aarch64-protos.h
13339         (aarch64_const_double_zero_rtx_p): Rename to...
13340         (aarch64_float_const_zero_rtx_p): ...this.
13341         (aarch64_float_const_representable_p): New.
13342         (aarch64_output_simd_mov_immediate): Likewise.
13343         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13344         move immediate case.
13345         * config/aarch64/aarch64.c
13346         (aarch64_const_double_zero_rtx_p): Rename to...
13347         (aarch64_float_const_zero_rtx_p): ...this.
13348         (aarch64_print_operand): Allow printing of new constants.
13349         (aarch64_valid_floating_const): New.
13350         (aarch64_legitimate_constant_p): Check for valid floating-point
13351         constants.
13352         (aarch64_simd_valid_immediate): Likewise.
13353         (aarch64_vect_float_const_representable_p): New.
13354         (aarch64_float_const_representable_p): Likewise.
13355         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13356         (aarch64_output_simd_mov_immediate): New.
13357         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13358         (*movdf_aarch64): Likewise.
13359         * config/aarch64/constraints.md (Ufc): New.
13360         (Y): call aarch64_float_const_zero_rtx.
13361         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13362
13363 2013-01-07  Richard Biener  <rguenther@suse.de>
13364
13365         PR tree-optimization/55888
13366         PR tree-optimization/55862
13367         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13368         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13369         not if it is contained therein.
13370
13371 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13372
13373         * config/avr/t-avr: Typo.
13374
13375 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13376
13377         PR55243
13378         * config/avr/t-avr: Don't automatically rebuild
13379         $(srcdir)/config/avr/t-multilib
13380         $(srcdir)/config/avr/avr-tables.opt
13381         $(srcdir)/doc/avr-mmcu.texi
13382         (avr-mcus): New phony target to build them on request.
13383         (s-avr-mlib, s-avr-mmcu-texi): Remove.
13384         * avr/avr-mcus.def: Adjust comments.
13385
13386 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
13387
13388         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13389
13390 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13391
13392         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13393
13394 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13395
13396         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13397
13398 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
13399
13400         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13401         to generate profiling.
13402         * config/rs6000/aix64.h (LIB_SPEC): Same.
13403
13404 2013-01-04  Andrew Pinski  <apinski@cavium.com>
13405
13406         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13407         New function.
13408         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13409
13410 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
13411
13412         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13413         unconditionally.
13414         (ix86_expand_move): Ditto.
13415         (ix86_zero_extend_to_Pmode): Ditto.
13416         (ix86_expand_call): Ditto.
13417         (ix86_expand_special_args_builtin): Ditto.
13418         (ix86_expand_builtin): Ditto.
13419
13420 2013-01-04  Richard Biener  <rguenther@suse.de>
13421
13422         PR tree-optimization/55862
13423         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13424         translating them through PHI nodes.
13425
13426 2013-01-04  Martin Jambor  <mjambor@suse.cz>
13427
13428         PR tree-optimization/55755
13429         * tree-sra.c (sra_modify_assign): Do not check that an access has no
13430         children when trying to avoid producing a VIEW_CONVERT_EXPR.
13431
13432 2013-01-04  Marek Polacek  <polacek@redhat.com>
13433
13434         PR middle-end/55859
13435         * opts.c (default_options_optimization): Clarify error message.
13436
13437 2013-01-04  Richard Biener  <rguenther@suse.de>
13438
13439         PR middle-end/55863
13440         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13441         reassociation.
13442
13443 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13444
13445         PR target/53789
13446         * config/pa/pa.md (movsi): Revert previous change.
13447         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13448         references.
13449
13450 2013-01-03  Richard Henderson  <rth@redhat.com>
13451
13452         * config/i386/i386.c (ix86_expand_move): Always assign to op1
13453         after eliminating TLS symbols.
13454
13455 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
13456
13457         PR bootstrap/50167
13458         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13459         * graphite-poly.c (debug_gmp_value): Likewise.
13460
13461 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
13462
13463         PR target/55712
13464         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13465         selected code model, define __code_mode_small__, __code_model_medium__,
13466         __code_model_large__, __code_model_32__ or __code_model_kernel__.
13467         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13468         xchg temporary register with %k.  Declare temporary register as
13469         early clobbered.
13470         [__x86_64__]: For medium and large code models, preserve %rbx register.
13471
13472 2013-01-03  Richard Biener  <rguenther@suse.de>
13473
13474         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
13475         (dump_subscript): Adjust.
13476         (finalize_ddr_dependent): Do not dump redundant info.
13477         (analyze_siv_subscript): Adjust.
13478         (subscript_dependence_tester): Likewise.
13479         (compute_affine_dependence): Likewise.
13480
13481 2013-01-03  Richard Biener  <rguenther@suse.de>
13482
13483         Revert
13484         2013-01-03  Richard Biener  <rguenther@suse.de>
13485
13486         PR tree-optimization/55857
13487         * tree-vect-stmts.c (vectorizable_load): Do not setup
13488         re-alignment for invariant loads.
13489
13490         2013-01-02  Richard Biener  <rguenther@suse.de>
13491
13492         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13493         invariant load do not generate a vector load from the scalar location.
13494
13495 2013-01-03  Richard Biener  <rguenther@suse.de>
13496
13497         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13498         for not vectorizing.
13499         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13500         not build INDIRECT_REFs, call get_name once only.
13501         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
13502         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13503
13504 2013-01-03  Richard Biener  <rguenther@suse.de>
13505
13506         PR tree-optimization/55857
13507         * tree-vect-stmts.c (vectorizable_load): Do not setup
13508         re-alignment for invariant loads.
13509
13510 2013-01-03  Richard Biener  <rguenther@suse.de>
13511
13512         PR lto/55848
13513         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13514         prefer a built-in decl.
13515
13516 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13517
13518         * gcc.c (process_command): Update copyright notice dates.
13519         * gcov.c (print_version): Likewise.
13520         * gcov-dump.c (print_version): Likewise.
13521
13522         PR rtl-optimization/55838
13523         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13524         iv0.step, iv1.step and step.
13525
13526 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13527             Marc Glisse  <marc.glisse@inria.fr>
13528
13529         PR tree-optimization/55832
13530         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13531         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13532         integer_{one,zero}_node.
13533
13534 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13535
13536         PR debug/54402
13537         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13538         * var-tracking.c (reverse_op): Don't add reverse ops to
13539         VALUEs that have already
13540         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
13541
13542 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13543
13544         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13545
13546 2013-01-02  Teresa Johnson  <tejohnson@google.com>
13547
13548         * dumpfile.c (dump_loc): Print filename with location.
13549         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13550         new location_t parameter to emit complete unroll message with
13551         new dump framework.
13552         (canonicalize_loop_induction_variables): Compute loops location
13553         and pass to try_unroll_loop_completely.
13554         * loop-unroll.c (report_unroll_peel): New function.
13555         (peel_loops_completely): Use new dump format with location
13556         for main dumpfile message, and invoke report_unroll_peel on success.
13557         (decide_unrolling_and_peeling): Ditto.
13558         (decide_peel_once_rolling): Remove old dumpfile message subsumed
13559         by report_unroll_peel.
13560         (decide_peel_completely): Ditto.
13561         (decide_unroll_constant_iterations): Ditto.
13562         (decide_unroll_runtime_iterations): Ditto.
13563         (decide_peel_simple): Ditto.
13564         (decide_unroll_stupid): Ditto.
13565         * cfgloop.c (get_loop_location): New function.
13566         * cfgloop.h (get_loop_location): Declare.
13567
13568 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13569
13570         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13571         NULL.
13572
13573 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13574
13575         PR middle-end/55198
13576         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13577         BLKmode objects when EXPAND_MEMORY is specified.
13578
13579 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13580
13581         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13582         in loop predicate.
13583         (fold_builtin_cpu): Do not share cpu model decls across statements.
13584
13585 2013-01-02  Jason Merrill  <jason@redhat.com>
13586
13587         PR c++/55804
13588         * tree.c (build_array_type_1): Revert earlier change.
13589
13590 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13591
13592         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13593         "cortex-a57".
13594         * config/aarch64/aarch64-tune.md: Re-generate.
13595
13596 2013-01-02  Richard Biener  <rguenther@suse.de>
13597
13598         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13599         invariant load do not generate a vector load from the scalar location.
13600
13601 2013-01-02  Richard Biener  <rguenther@suse.de>
13602
13603         PR bootstrap/55784
13604         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13605         * configure: Regenerate.
13606
13607 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13608
13609         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13610         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13611         (expand_builtin_int_roundingfn_2): Keep the original target around
13612         for the fallback case.
13613
13614 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13615
13616         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13617         to be clear for sign changes.
13618
13619 2013-01-01  Jan Hubicka  <jh@suse.cz>
13620
13621         * ipa-inline-analysis.c: Fix formatting.
13622
13623 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
13624
13625         PR tree-optimization/55831
13626         * tree-vect-loop.c (get_initial_def_for_induction): Use
13627         gsi_after_labels instead of gsi_start_bb.
13628 \f
13629 Copyright (C) 2013 Free Software Foundation, Inc.
13630
13631 Copying and distribution of this file, with or without modification,
13632 are permitted in any medium without royalty provided the copyright
13633 notice and this notice are preserved.