OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
2
3         * config/i386/i386.md (*movti_internal): Merge from
4         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
5         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
6         nox64 isa attributes.
7
8 2013-03-18  Richard Biener  <rguenther@suse.de>
9
10         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
11         (unite): Likewise.
12         (merge_node_constraints): Likewise.
13         (build_succ_graph): Likewise.
14         (valid_graph_edge): Inline into single caller.
15         (unify_nodes): Likewise.  Use bitmap_set_bit return value
16         and cache varinfo.
17         (scc_visit): Fix formatting and variable use.
18         (do_sd_constraint): Use gcc_checking_assert.
19         (do_ds_constraint): Likewise.
20         (do_complex_constraint): Likewise.
21         (condense_visit): Likewise.  Cleanup.
22         (dump_pred_graph): New function.
23         (perform_var_substitution): Dump the pred-graph before
24         variable substitution.
25         (find_equivalent_node): Use gcc_checking_assert.
26         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
27
28 2013-03-18  Richard Biener  <rguenther@suse.de>
29
30         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31         Remove cond_expr_stmt_list argument and do not gimplify the
32         built expression.
33         (vect_loop_versioning): Adjust.
34         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
35         Cleanup to use less temporaries.
36         (vect_create_data_ref_ptr): Cleanup.
37
38 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
39
40         PR tree-optimization/56635
41         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
42         require types_compatible_p types.
43
44 2013-03-18  Nick Clifton  <nickc@redhat.com>
45
46         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
47         spurious backslash.
48
49         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
50         Add missing line to comment describing function.
51
52 2013-03-18  Richard Biener  <rguenther@suse.de>
53
54         PR tree-optimization/56210
55         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
56         Handle string / character search functions.
57         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
58
59 2013-03-18  Richard Biener  <rguenther@suse.de>
60
61         PR middle-end/56483
62         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
63         and implement properly.
64         * gimple.h (gimple_cond_single_var_p): Remove.
65
66 2013-03-18  Richard Biener  <rguenther@suse.de>
67
68         * tree-data-ref.h (find_data_references_in_loop): Declare.
69         * tree-data-ref.c (get_references_in_stmt): Use a stack
70         vector pre-allocated in the callers.
71         (find_data_references_in_stmt): Adjust.
72         (graphite_find_data_references_in_stmt): Likewise.
73         (create_rdg_vertices): Likewise.
74         (find_data_references_in_loop): Export.
75         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
76         Compute dependences here...
77         (vect_analyze_data_refs): ...not here.  When we encounter
78         a non-vectorizable data reference in basic-block vectorization
79         truncate the data reference vector.  Do not bother to
80         fixup data-dependence information for gather loads.
81         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
82         of data references, as reported.
83
84 2013-03-18  Richard Biener  <rguenther@suse.de>
85
86         PR tree-optimization/3713
87         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
88         has_constants and expr.
89         (stmt_has_constants): Properly valueize SSA names when deciding
90         whether the stmt has constants.
91
92 2013-03-18  Richard Biener  <rguenther@suse.de>
93
94         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
95         whole function when there is nothing to do.
96         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
97         * tree-vectorizer.c (vectorize_loops): Update virtual and
98         loop-closed SSA once.
99         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
100
101 2013-03-18  Richard Biener  <rguenther@suse.de>
102
103         PR middle-end/56113
104         * domwalk.c (bb_postorder): New global static.
105         (cmp_bb_postorder): New function.
106         (walk_dominator_tree): Replace scheme imposing an order for
107         visiting dominator sons by one sorting them at the time they
108         are pushed on the stack.
109
110 2013-03-18  Richard Biener  <rguenther@suse.de>
111
112         PR tree-optimization/39326
113         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
114         (struct mem_ref): Replace mem member with ao_ref typed member.
115         (MEM_ANALYZABLE): Adjust.
116         (memref_eq): Likewise.
117         (mem_ref_alloc): Likewise.
118         (gather_mem_refs_stmt): Likewise.
119         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
120         (execute_sm_if_changed_flag_set): Adjust.
121         (execute_sm): Likewise.
122         (ref_always_accessed_p): Likewise.
123         (refs_independent_p): Likewise.
124         (can_sm_ref_p): Likewise.
125
126 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
127
128         PR c/56566
129         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
130         return 1 even for !unsignedp.
131
132 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
133
134         * config/i386/i386.md (isa): Add x64 and nox64.
135         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
136         (*pushtf): Enable *roF alternative for x64 isa only.
137         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
138         mode attribute of integer alternatives to DImode for TARGET_64BIT.
139         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
140         (*movtf_internal): Merge from *movtf_internal_rex64 and
141         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
142         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
143         nox64 isa attributes.
144         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
145         nox64 isa attributes.
146         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
147
148 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
149
150         * config/alpha/alpha.c (TARGET_LRA_P): New define.
151
152 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
153
154         PR target/56640
155         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
156         class names.  Remove trailing comma after "ALL_REGS".
157
158 2013-03-16  Jan Hubicka  <jh@suse.cz>
159
160         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
161         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
162         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
163         of cgraph_get_create_node.
164         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
165
166 2013-03-16  Jason Merrill  <jason@redhat.com>
167
168         PR debug/49090
169         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
170         with DW_AT_default_value.
171
172 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
173
174         * BASE-VER: Set to 4.9.0.
175
176 2013-03-14  Andi Kleen  <ak@linux.intel.com>
177
178         PR target/56619
179         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
180         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
181         Document _x* TSX intrinsics.
182
183 2013-03-14  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
184             David Holsgrove <david.holsgrove@xilinx.com>
185
186         * configure.ac: Add MicroBlaze TLS support detection.
187         * configure: Regenerate.
188         * config/microblaze/microblaze-protos.h
189         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
190         symbol_mentioned_p, label_mentioned_p): Add prototypes.
191         * config/microblaze/microblaze.c (microblaze_address_type): Add
192         ADDRESS_TLS and tls_reloc address types.
193         (microblaze_address_info): Add tls_reloc.
194         (TARGET_HAVE_TLS): Define.
195         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
196          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
197          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
198         load_tls_operand,  microblaze_call_tls_get_addr,
199         microblaze_legitimize_tls_address): New functions.
200         (microblaze_classify_unspec): Handle UNSPEC_TLS.
201         (get_base_reg): Use microblaze_tls_symbol_p.
202         (microblaze_classify_address): Handle TLS.
203         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
204         label_mentioned_p and microblaze_tls_referenced_p.
205         (microblaze_legitimize_address): Handle TLS.
206         (microblaze_address_insns): Handle ADDRESS_TLS.
207         (pic_address_needs_scratch): Handle TLS.
208         (print_operand_address): Handle TLS.
209         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
210         (microblaze_expand_move): Handle TLS.
211         (microblaze_legitimate_constant_p): Check
212         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
213         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
214         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
215         (PIC_OFFSET_TABLE_REGNUM): Set.
216         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
217         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
218         (addsi3, movsi_internal2, movdf_internal): Update constraints
219         * config/microblaze/predicates.md (arith_plus_operand): Define
220         (move_operand): Redefine as move_src_operand,
221         check microblaze_tls_referenced_p.
222
223 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
224
225         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
226         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
227
228 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
229
230         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
231         CC mode for AND.
232
233 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
234
235         PR tree-optimization/53265
236         * common.opt (Waggressive-loop-optimizations): New option.
237         * tree-ssa-loop-niter.c: Include tree-pass.h.
238         (do_warn_aggressive_loop_optimizations): New function.
239         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
240         if number_of_latch_executions returned constant.
241         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
242         early.  If number_of_latch_executions returned constant, set
243         nb_iterations_upper_bound back to it.
244         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
245         field.
246         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
247         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
248
249         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
250         (MULTILIB_OSDIRNAMES): Set.
251         * genmultilib: If defaultosdirname doesn't start with :: , set
252         defaultosdirname2 instead, clear it and emit two . multilib_raw
253         entries instead of just one.
254
255 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
256
257         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
258         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
259         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
260         (SUBTARGET_OVERRIDE_OPTIONS): New.
261
262 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
263
264         PR target/49880
265         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
266         (musermode): Convert to Var(TARGET_USERMODE).
267         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
268         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
269         * config/sh/sh.c (sh_option_override): Use
270         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
271         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
272         condition.
273         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
274         TARGET_SH4.
275         (udivsi3_i4_single, divsi3_i4_single): Use
276         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
277
278 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
279
280         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
281         default setting.
282
283 2013-03-13  Richard Biener  <rguenther@suse.de>
284
285         PR tree-optimization/56608
286         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
287         calls when vectorizing basic-blocks.
288
289 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
290
291         PR plugins/45078
292         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
293         tm_file.
294
295 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
296
297         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
298
299 2013-03-11  Jan Hubicka  <jh@suse.cz>
300
301         PR lto/56557
302         * lto-streamer-out.c (output_symbol_p): Skip references from
303         constructors of external variables.
304
305 2013-03-11  Jan Hubicka  <jh@suse.cz>
306
307         PR middle-end/56571
308         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
309         from pseudos.
310         * emit-rtl.c (verify_rtx_sharing): Likewise.
311         (copy_insn_1): Likewise.
312         * rtl.c (copy_rtx): Likewise.
313
314 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
315
316         PR target/56591
317         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
318         output_operand_lossage message.
319
320 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
321
322         PR target/56470
323         * arm.c (shift_op): Validate RTL pattern on the fly.
324         (arm_print_operand, case 'S'): Don't use shift_operator to validate
325         the RTL.
326
327 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
328
329         PR target/56347
330         * config/pa/pa.md (call_value): Check for calls to powf and direct to
331         new call patterns that clobber %fr12.
332         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
333         split and postreload patterns.
334         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
335         registers %fr12 and %fr12R as call used.
336
337 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
338
339         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
340         (canon_address, record_store, replace_read, check_mem_read_rtx,
341         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
342         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
343         rest_of_handle_dse): Likewise.
344
345 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
346
347         PR middle-end/56524
348         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
349         Add base_optabs.
350         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
351         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
352         (save_optabs_if_changed): Replace with...
353         (init_tree_optimization_optabs): ...this.
354         * optabs.c (save_optabs_if_changed): Rename to...
355         (init_tree_optimization_optabs): ...this.  Take the optimization node
356         as argument.  Do nothing if the base optabs are already correct.
357         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
358         to recompute optabs.
359         * function.h (function): Remove optabs field.
360         * function.c (invoke_set_current_function_hook): Call
361         init_tree_optimization_optabs.  Use the result to initialize
362         this_fn_optabs.
363
364 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
365
366         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
367         if GTMA_HAS_NO_INSTRUMENTATION.
368         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
369         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
370         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
371         * gimple-pretty-print.c (dump_gimple_transaction): Handle
372         GTMA_HAS_NO_INSTRUMENTATION.
373
374 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
375
376         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
377         libasan_preinit.o.
378
379 2013-03-08  Marek Polacek  <polacek@redhat.com>
380             Jakub Jelinek  <jakub@redhat.com>
381
382         PR tree-optimization/56478
383         * predict.c (is_comparison_with_loop_invariant_p): Change the
384         type of loop_step to tree.
385         (predict_loops): Adjust.
386         (predict_iv_comparison): Perform the computations on double_ints.
387
388 2013-03-08  Richard Biener  <rguenther@suse.de>
389
390         PR tree-optimization/56570
391         * tree-cfg.c (verify_expr_location_1): Verify locations for
392         DECL_DEBUG_EXPR.
393         * tree-sra.c (create_access_replacement): Strip locations
394         from DECL_DEBUG_EXPRs.
395
396 2013-03-08  Richard Biener  <rguenther@suse.de>
397
398         * tree-inline.c (expand_call_inline): Do not associate
399         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
400         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
401
402 2013-03-08  Richard Biener  <rguenther@suse.de>
403
404         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
405         or block changes with -Og.  Fix for location / block encoding
406         changes and PHI arguments with locations.
407
408 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
409
410         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
411         for all counters.
412         (struct output_info): Likewise.
413         (register_overhead): Remove bad gcc_assert.
414         (bitmap_find_bit): If there is only a single bitmap element, do not
415         count a miss as a search.
416         (print_statistics): Update for counter type changes.
417         (dump_bitmap_statistics): Likewise.  Print headers such that they
418         are properly lined up with the printed counters.
419
420 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
421
422         PR tree-optimization/56559
423         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
424         check that it has only a single use.
425
426 2013-03-07  Richard Biener  <rguenther@suse.de>
427
428         * doc/invoke.texi (fwhole-program): Discourage use in combination
429         with -flto.
430
431 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
432
433         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
434
435         PR tree-optimization/56539
436         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
437         instead of GSI_CONTINUE_LINKING as last argument to
438         force_gimple_operand_gsi.  Adjust function comment.
439
440         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
441         aarch64-cores.def.
442
443         PR middle-end/56548
444         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
445         promoted mode, convert the result back to the original mode.
446
447 2013-03-06  Richard Biener  <rguenther@suse.de>
448
449         PR middle-end/56294
450         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
451         (insert_updated_phi_nodes_compare_uids): New function.
452         (update_ssa): Sort symbols_to_rename after UID before
453         traversing it to insert PHI nodes.
454
455 2013-03-06  Richard Biener  <rguenther@suse.de>
456
457         PR middle-end/50494
458         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
459         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
460
461         Revert
462         2013-02-13  Richard Biener  <rguenther@suse.de>
463
464         PR lto/50494
465         * varasm.c (output_constant_def_1): Get the decl representing
466         the constant as argument.
467         (output_constant_def): Wrap output_constant_def_1.
468         (make_decl_rtl): Use output_constant_def_1 with the decl
469         representing the constant.
470         (build_constant_desc): Optionally re-use a decl already
471         representing the constant.
472         (tree_output_constant_def): Adjust.
473
474 2013-03-06  Joey Ye  <joey.ye@arm.com>
475
476         PR lto/50293
477         * gcc.c (convert_white_space): New function.
478         (main): Handles white space in function name.
479
480 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
481
482         PR target/56529
483         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
484         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
485         to SH_DIV_CALL_TABLE for TARGET_SH2.
486         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
487         list.
488         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
489         call-table options.
490
491 2013-03-05  Sterling Augustine  <saugustine@google.com>
492             Cary Coutant  <ccoutant@google.com>
493
494         PR debug/55364
495         * dwarf2out.c (resolve_addr): Don't call
496         remove_loc_list_addr_table_entries a second time for the same
497         expression.
498
499 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
500
501         PR debug/56510
502         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
503         (avoid_complex_debug_insns): New function.
504         (expand_debug_locations): Call it.
505
506         PR rtl-optimization/56484
507         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
508         lifetimes of hard registers on small register class machines.
509
510 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
511
512         * config/microblaze/microblaze-protos.h: Rename
513         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
514         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
515         fast_interrupt.
516         (microblaze_fast_interrupt_function_p): New function.
517         (microblaze_is_interrupt_handler): Rename to
518         microblaze_is_interrupt_variant and add fast_interrupt check.
519         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
520         (save_restore_insns): Likewise.
521         (compute_frame_size): Likewise.
522         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
523         (microblaze_globalize_label): Likewise.
524         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
525         * config/microblaze/microblaze.md: Use wrapper
526         microblaze_is_interrupt_variant.
527
528 2013-03-05  Kai Tietz  <ktietz@redhat.com>
529
530         * sdbout.c (sdbout_one_type): Switch to current function's section
531         supporting cold/hot.
532
533 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
534
535         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
536         -mxl-reorder.
537
538 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
539
540         PR middle-end/56461
541         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
542         if VALGRIND_GET_VBITS is defined, temporarily make object
543         memory all defined, and restore previous valgrind addressability
544         and definability afterwards.  Free this_object at the end.
545
546         PR middle-end/56461
547         * lra.c (lra): Call lra_clear_live_ranges if live_p,
548         right before calling lra_create_live_ranges, also call it
549         when clearing live_p.  Only call lra_clear_live_ranges
550         at the end if live_p.
551
552         PR middle-end/56461
553         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
554
555 2013-03-05  Richard Biener  <rguenther@suse.de>
556
557         PR tree-optimization/56521
558         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
559         value-id.
560
561 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
562
563         PR c++/55135
564         * except.h (remove_unreachable_eh_regions): New prototype.
565         * except.c (remove_eh_handler_splicer): New function, split out
566         of remove_eh_handler.
567         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
568         warning about running it on many EH regions one at a time.
569         (remove_unreachable_eh_regions_worker): New function, walk the
570         EH tree in depth-first order and remove non-marked regions.
571         (remove_unreachable_eh_regions): New function.
572         * tree-eh.c (mark_reachable_handlers): New function, split out
573         from remove_unreachable_handlers.
574         (remove_unreachable_handlers): Use mark_reachable_handlers and
575         remove_unreachable_eh_regions.
576         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
577         and remove_unreachable_eh_regions.
578
579 2013-03-05  Richard Biener  <rguenther@suse.de>
580
581         PR middle-end/56525
582         * loop-init.c (fix_loop_structure): Remove loops in two stages,
583         not freeing them until the end.
584
585 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
586
587         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
588
589 2013-03-05  Richard Biener  <rguenther@suse.de>
590
591         PR tree-optimization/56270
592         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
593         of loads after scheduling an SLP instance.
594
595 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
596
597         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
598         tic6x.exp.
599         (check_gcc_parallelize): Run guality.exp as a separate job from
600         vect.exp with unsorted.exp and $(dg_target_exps) separately from
601         struct-layout-1.exp with stackalign.exp.
602
603         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
604
605         PR middle-end/56461
606         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
607         load_index sbitmap even if some bit in it isn't set.
608
609         PR middle-end/56461
610         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
611         (discover_iteration_bound_by_body_walk): Change queues to
612         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
613         spelling in comment.  Call safe_push on queues[bound_index] directly.
614         Release queues[queue_index] in every iteration unconditionally.
615         Release bounds vector.
616
617         PR middle-end/56461
618         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
619         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
620         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
621         inner_phis vector.
622
623 2013-03-05  Richard Biener  <rguenther@suse.de>
624
625         PR lto/56515
626         * tree-inline.c (remap_blocks_to_null): New function.
627         (expand_call_inline): When expanding a call stmt without
628         an associated block inline remap all callee blocks to NULL.
629
630 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
631
632         PR rtl-optimization/56494
633         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
634         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
635         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
636
637         PR middle-end/56461
638         * sel-sched-ir.c (free_sched_pools): Release
639         succs_info_pool.stack[succs_info_pool.max_top] vectors too
640         if succs_info_pool.max_top isn't -1.
641
642         PR bootstrap/56509
643         * opts.c (opts_obstack, opts_concat): Moved to...
644         * opts-common.c (opts_obstack, opts_concat): ... here.
645
646 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
647
648         PR middle-end/56461
649         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
650
651 2013-03-04  Martin Jambor  <mjambor@suse.cz>
652
653         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
654         all appropriate places.
655
656 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
657
658         PR tree-optimization/56424
659         * ipa-split.c (split_function): Do not set the RSO flag if result is
660         not by reference and its type is a register type.
661
662 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
663
664         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
665         (microblaze_legitimate_pic_operand): Likewise
666         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
667         new function microblaze_legitimate_pic_operand
668         * config/microblaze/microblaze-protos.h
669         (microblaze_legitimate_pic_operand): Declare.
670
671 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
672
673         * config/microblaze/predicates.md (call_insn_simple_operand):
674         New predicate for supported rtx code types.
675         * config/microblaze/microblaze.md (call_internal1): Use
676         call_insn_simple_operand predicate.
677
678 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
679
680         PR middle-end/56461
681         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
682         partitions.ordered_remove.
683
684         PR middle-end/56461
685         * tree-vect-stmts.c (vectorizable_conversion): Don't call
686         vec_oprnds0.create (1) for modifier == NONE.
687
688         PR middle-end/56461
689         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
690         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
691         vec_oprnds1 right before pushing anything to it for
692         scalar_shift_arg.
693
694         PR middle-end/56461
695         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
696         set nbbs to 0 instead of having separate code path.
697         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
698         instead of false as last argument if returning NULL.
699
700 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
701
702         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
703         the attribute is now called "target" instead of "option".
704         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
705         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
706         attribute/pragma name for TARGET_OPTION_VALID_P and
707         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
708         * doc/tm.texi: Regenerated.
709
710 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
711
712         * config/microblaze/microblaze.c:
713         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
714         * config/microblaze/microblaze.h: Add -mxl-reorder to
715         DRIVER_SELF_SPECS.
716         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
717         instructions emitted if TARGET_REORDER.
718         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
719         or 0 for -m/-mno case, but initialises as 2 to detect default use case
720         separately.
721
722 2013-03-01  Xinliang David Li  <davidxl@google.com>
723
724         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
725         walk length.
726
727 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
728
729         PR middle-end/56461
730         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
731         vector even when returning true.  Fix up function comment formatting.
732
733         PR middle-end/56461
734         * ira-build.c (ira_loop_nodes_count): New variable.
735         (create_loop_tree_nodes): Initialize it.
736         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
737
738         PR middle-end/56461
739         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
740         method on dr_chain and result_chain.
741         * tree-vect-stmts.c (vectorizable_store): Only call
742         result_chain.create if j == 0.
743
744         PR middle-end/56461
745         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
746         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
747         before overwriting it.
748
749 2013-03-01  Tobias Burnus  <burnus@net-b.de>
750
751         * doc/extended.texi (C Extensions): Change order in @menu
752         to match @node.
753         (Other MIPS Built-in Functions): Move last MIPS entry before
754         "picoChip Built-in Functions".
755         (SH Built-in Functions): Move after RX Built-in Functions.
756         * doc/gcc.texi (Introduction): Change order in @menu
757         to match @node.
758         * doc/md.texi (Constraints): Ditto.
759         * gty.texi (Type Information): Ditto.
760         (User-provided marking routines for template types): Make
761         subsection.
762         * doc/invoke.texi (AArch64 Options): Move before
763         "Adapteva Epiphany Options".
764
765 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
766             Jakub Jelinek  <jakub@redhat.com>
767
768         PR sanitizer/56454
769         * asan.c (gate_asan): Lookup no_sanitize_address instead of
770         no_address_safety_analysis attribute.
771         * doc/extend.texi (no_address_safety_attribute): Rename to
772         no_sanitize_address attribute, mention no_address_safety_analysis
773         attribute as deprecated alias.
774
775 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
776
777         PR middle-end/56461
778         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
779         type to vec<vec<tree> > *.
780         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
781         to be vec<tree> instead of vec<tree> *, set vec_defs
782         to vNULL and call vec_defs.create (number_of_vects), adjust other
783         uses of vec_defs.
784         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
785         vectorizable_condition): Adjust vect_get_slp_defs callers.
786
787 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
788
789         * config/aarch64/aarch64.c
790         (aarch64_float_const_representable): Remove unused variable.
791
792 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
793
794         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
795
796 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
797
798         * config/aarch64/aarch64-builtins.c
799         (aarch64_init_simd_builtins): Make static.
800
801 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
802
803         * config/aarch64/aarch64.c
804         (aarch64_simd_make_constant): Make static.
805
806 2013-02-28  Martin Jambor  <mjambor@suse.cz>
807
808         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
809         with no initialization to the RHS of debug statements.
810
811 2013-02-28  Martin Jambor  <mjambor@suse.cz>
812
813         PR tree-optimization/56294
814         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
815         Adjust dumping.
816         (get_access_replacement): Do not call create_access_replacement.
817         Assert a replacement exists.
818         (get_repl_default_def_ssa_name): Create the replacement declaration
819         itself.
820
821 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
822
823         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
824         final_end_function.
825
826 2013-02-28  Marek Polacek  <polacek@redhat.com>
827
828         PR rtl-optimization/56466
829         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
830         if we're changing a loop.
831         (peel_loops_completely): Likewise.
832
833 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
834
835         PR c++/55813
836         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
837
838 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
839
840         PR target/56445
841         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
842         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
843         INTX_FTYPE_FX, FX_FTYPE_INTX.
844         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
845
846 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
847
848         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
849         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
850         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
851         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
852         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
853         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
854         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
855         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
856         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
857         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
858         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
859         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
860         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
861         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
862         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
863         (avrxmega6): Increase max flash segments from 5 to 6.
864         * config/avr/t-multilib: Regenerate.
865         * config/avr/avr-tables.opt: Regenerate.
866         * doc/avr-mmcu.texi: Regenerate.
867
868 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
869
870         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
871         (avr_device_to_arch): Rename to avr_device_to_ld.
872         (avr_device_to_as): New prototype.
873         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
874         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
875         * config/avr/driver-avr.c (avr_device_to_as): New.
876         (avr_device_to_arch): Rename to avr_device_to_ld.
877
878 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
879
880         PR middle-end/56461
881         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
882         method on dr_chain and result_chain.
883
884         PR middle-end/56461
885         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
886         pointer_set_destroy on not_executed_last_iteration.
887
888         PR middle-end/56461
889         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
890
891         PR middle-end/56461
892         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
893         FOR_EACH_DEFINED_FUNCTION when freeing state.
894
895         PR middle-end/56461
896         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
897         pool_free.
898         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
899         overwriting it.
900
901         PR middle-end/56461
902         * ipa-cp.c (decide_whether_version_node): Call vec_free on
903         known_aggs[i].items and release known_aggs vector.
904
905         PR middle-end/56461
906         * ipa-reference.c (propagate): Free node_info even for alias nodes.
907
908 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
909
910         * config/microblaze/microblaze.c (microblaze_emit_compare):
911         Use xor for EQ/NE comparisions.
912         * config/microblaze/microblaze.md (cstoresf4): Add constraints
913         (cbranchsf4): Adjust operator to comparison_operator.
914
915 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
916
917         PR middle-end/56461
918         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
919         vector.
920         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
921         vec_safe_push, always update *slot.
922         (redirect_edge_var_map_clear): Use vec_free.
923         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
924         (free_var_map_entry): Use vec_free.
925         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
926         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
927
928 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
929
930         PR middle-end/45472
931         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
932         when the may_trap_p bit of the exprs being merged differs.
933         Reorder tests for speculativeness in the logical and operator.
934
935 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
936
937         * incpath.c (add_standard_paths): Use reconcat instead of concat
938         where appropriate and avoid leaking memory.
939
940         * opts.h: Include obstack.h.
941         (opts_concat): New prototype.
942         (opts_obstack): New declaration.
943         * opts.c (opts_concat): New function.
944         (opts_obstack): New variable.
945         (init_options_struct): Call gcc_init_obstack on opts_obstack.
946         (finish_options): Use opts_concat instead of concat
947         and XOBNEWVEC instead of XNEWVEC.
948         * opts-common.c (generate_canonical_option, decode_cmdline_option,
949         generate_option): Likewise.
950         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
951         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
952
953         PR target/56455
954         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
955         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
956
957 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
958
959         PR middle-end/56461
960         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
961
962 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
963
964         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
965         (arm_block_move_unaligned_straight): Likewise.
966         (arm_adjust_block_mem): Likewise.
967
968 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
969
970         PR target/48901
971         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
972         temp, cond and label.
973         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
974
975         PR target/52500
976         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
977         * config/c6x/c6x.h (dbx_register_map): Update declaration.
978
979         PR target/52501
980         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
981         of prologue/epilogue functions.
982
983         PR target/52550
984         * config/tilegx/tilegx.c (tilegx_expand_prologue):
985         Remove unused variable cfa_offset.
986         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
987
988         PR target/54639
989         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
990         type promotion to unsigned.
991
992         PR target/54640
993         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
994         for HOST_WIDE_INT of 32 bit / same size as int.
995         (arm_block_move_unaligned_straight): Likewise.
996         (arm_adjust_block_mem): Likewise.
997
998         PR target/54662
999         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
1000         ALL_CFLAGS.
1001
1002 2013-02-26  Marek Polacek  <polacek@redhat.com>
1003
1004         PR tree-optimization/56426
1005         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
1006
1007 2013-02-26  Richard Biener  <rguenther@suse.de>
1008
1009         PR target/56444
1010         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
1011         unused variable loops.
1012
1013 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
1014
1015         PR tree-optimization/56448
1016         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
1017         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
1018         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
1019         later operands of the references, or even first operand for
1020         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
1021
1022         PR tree-optimization/56443
1023         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
1024         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
1025         to type_for_mode langhook.
1026
1027 2013-02-25  Matt Turner  <mattst88@gmail.com>
1028
1029         * doc/invoke.texi: Document r4700.
1030
1031 2013-02-25  Richard Biener  <rguenther@suse.de>
1032
1033         PR tree-optimization/56175
1034         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
1035         split out from ...
1036         (simplify_bitwise_binary): ... here.  Also guard the conversion
1037         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
1038
1039 2013-02-25  Catherine Moore  <clm@codesourcery.com>
1040
1041         Revert:
1042         2013-02-24  Catherine Moore  <clm@codesourcery.com>
1043             Maciej W. Rozycki  <macro@codesourcery.com>
1044             Tom de Vries  <tom@codesourcery.com>
1045             Nathan Sidwell  <nathan@codesourcery.com>
1046             Iain Sandoe  <iain@codesourcery.com>
1047             Nathan Froyd  <froydnj@codesourcery.com>
1048             Chao-ying Fu  <fu@mips.com>
1049
1050         * doc/extend.texi: (micromips, nomicromips, nocompression):
1051         Document new function attributes.
1052         * doc/invoke.texi (minterlink-compressed, mmicromips,
1053         m14k, m14ke, m14kec): Document new options.
1054         (minterlink-mips16): Update documentation.
1055         * doc/md.texi (ZC, ZD): Document new constraints.
1056         * configure.ac (gcc_cv_as_micromips): Check if linker
1057         supports the .set micromips directive.
1058         * configure: Regenerate.
1059         * config.in: Regenerate.
1060         * config/mips/mips-tables.opt: Regenerate.
1061         * config/mips/micromips.md: New file.
1062         * constraints.md (ZC, AD): New constraints.
1063         * config/mips/predicates.md (movep_src_register): New predicate.
1064         (movep_src_operand): New predicate.
1065         (non_volatile_mem_operand): New predicate.
1066         * config/mips/mips.md (multimem): New type.
1067         (length): Differentiate between 17-bit and 18-bit branch offsets.
1068         (MOVEP1, MOVEP2): New mode iterator.
1069         (mov_<load>l): Use ZC constraint.
1070         (mov_<load>r): Likewise.
1071         (mov_<store>l): Likewise.
1072         (mov_<store>r): Likewise.
1073         (*branch_equality<mode>_inverted): Add microMIPS support.
1074         (*branch_equality<mode>): Likewise.
1075         (*jump_absolute): Likewise.
1076         (indirect_jump_<mode>): Likewise.
1077         (tablejump_<mode>): Likewise.
1078         (<optab>_internal): Likewise.
1079         (sibcall_internal): Likewise.
1080         (sibcall_value_internal): Likewise.
1081         (prefetch): Use constraint ZD.
1082         * config/mips/mips.opt (minterlink-compressed): New option.
1083         (minterlink-mips16): Now an alias for minterlink-compressed.
1084         (mmicromips): New option.
1085         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1086         (compare_and_swap_12): Likewise.
1087         (sync_add<mode>): Likewise.
1088         (sync_<optab>_12): Likewise.
1089         (sync_old_<optab>_12): Likewise.
1090         (sync_new_<optab>_12): Likewise.
1091         (sync_nand_12): Likewise.
1092         (sync_old_nand_12): Likewise.
1093         (sync_new_nand_12): Likewise.
1094         (sync_sub<mode>): Likewise.
1095         (sync_old_add<mode>): Likewise.
1096         (sync_old_sub<mode>): Likewise.
1097         (sync_new_add<mode>): Likewise.
1098         (sync_new_sub<mode>): Likewise.
1099         (sync_<optab><mode>): Likewise.
1100         (sync_old_<optab><mode>): Likewise.
1101         (sync_new_<optab><mode>): Likewise.
1102         (sync_nand<mode>): Likewise.
1103         (sync_old_nand<mode>): Likewise.
1104         (sync_new_nand<mode>): Likewise.
1105         (sync_lock_test_and_set<mode>): Likewise.
1106         (test_and_set_12): Likewise.
1107         (atomic_compare_and_swap<mode>): Likewise.
1108         (atomic_exchange<mode>_llsc): Likewise.
1109         (atomic_fetch_add<mode>_llsc): Likewise.
1110         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1111         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1112         (umips_save_restore_pattern_p): Likewise.
1113         (umips_load_store_pair_p): Likewise.
1114         (umips_output_load_store_pair): Likewise.
1115         (umips_movep_target_p): Likewise.
1116         (umips_12bit_offset_address_p): Likewise.
1117         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1118         (mips_base_mips16): Rename this...
1119         (mips_base_compression_flags): ...to this. Update all uses.
1120         (mips_attribute_table): Add micromips, nomicromips and nocompression.
1121         (mips_mips16_decl_p): Delete.
1122         (mips_nomips16_decl_p): Delete.
1123         (mips_get_compress_on_flags): New function.
1124         (mips_get_compress_off_flags): New function.
1125         (mips_get_compress_mode): New function.
1126         (mips_get_compress_on_name): New function.
1127         (mips_get_compress_off_name): New function.
1128         (mips_insert_attributes): Support multiple compression types.
1129         (mips_merge_decl_attributes): Likewise.
1130         (umips_12bit_offset_address_p): New function.
1131         (mips_start_function_definition): Emit .set micromips directive.
1132         (mips_call_may_need_jalx_p): New function.
1133         (mips_function_ok_for_sibcall): Add microMIPS support.
1134         (mips_print_operand_punctuation): Support short delay slots and
1135         compact jumps.
1136         (umips_swm_mask, umips_swm_encoding): New.
1137         (umips_build_save_restore): New function.
1138         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1139         (was_mips16_p): Remove.
1140         (old_compression_mode): New.
1141         (mips_set_compression_mode): New function.
1142         (mips_set_current_function): Add microMIPS support.
1143         (mips_option_override): Likewise.
1144         (umips_save_restore_pattern_p): New function.
1145         (umips_output_save_restore): New function.
1146         (umips_load_store_pair_p_1): New function.
1147         (umips_load_store_pair_p): New function.
1148         (umips_output_load_store_pair_1): New function.
1149         (umips_output_load_store_pair): New function.
1150         (umips_movep_target_p) New function.
1151         (mips_prepare_pch_save): Add microMIPS support.
1152         * config/mips/mips.h (TARGET_COMPRESSION): New.
1153         (TARGET_CPU_CPP_BUILTINS): Update macro
1154         to use new compression flags and to support microMIPS.
1155         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1156         (MIPS_ARCH_FLOAT_SPEC): Likewise.
1157         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1158         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1159         (ASM_SPEC): Support mmicromips and mno-micromips.
1160         (M16STORE_REG_P): New macro.
1161         (MIPS_CALL): Support TARGET_MICROMIPS.
1162         (MICROMIPS_J): New macro.
1163         (mips_base_mips16): Rename this...
1164         (mips_base_compression_flags): ...to this.
1165         (UMIPS_12BIT_OFFSET_P): New macro.
1166         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1167         (MULTILIB_DIRNAMES): Likewise.
1168
1169 2013-02-25  Tom de Vries  <tom@codesourcery.com>
1170
1171         PR rtl-optimization/56131
1172         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
1173         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
1174         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
1175
1176 2013-02-25  Tobias Burnus  <burnus@net-b.de>
1177
1178         * doc/invoke.texi (-fsanitize=): Move from optimization
1179         to debugging options.
1180
1181 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
1182
1183         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
1184
1185 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
1186             Alexander Monakov  <amonakov@ispras.ru>
1187
1188         PR middle-end/56077
1189         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
1190         flush pending lists also on non-jumps.  Adjust comment.
1191
1192 2013-02-24  Catherine Moore  <clm@codesourcery.com>
1193             Maciej W. Rozycki  <macro@codesourcery.com>
1194             Tom de Vries  <tom@codesourcery.com>
1195             Nathan Sidwell  <nathan@codesourcery.com>
1196             Iain Sandoe  <iain@codesourcery.com>
1197             Nathan Froyd  <froydnj@codesourcery.com>
1198             Chao-ying Fu  <fu@mips.com>
1199
1200         * doc/extend.texi: (micromips, nomicromips, nocompression):
1201         Document new function attributes.
1202         * doc/invoke.texi (minterlink-compressed, mmicromips,
1203         m14k, m14ke, m14kec): Document new options.
1204         (minterlink-mips16): Update documentation.
1205         * doc/md.texi (ZC, ZD): Document new constraints.
1206         * configure.ac (gcc_cv_as_micromips): Check if linker
1207         supports the .set micromips directive.
1208         * configure: Regenerate.
1209         * config.in: Regenerate.
1210         * config/mips/mips-tables.opt: Regenerate.
1211         * config/mips/micromips.md: New file.
1212         * constraints.md (ZC, AD): New constraints.
1213         * config/mips/predicates.md (movep_src_register): New predicate.
1214         (movep_src_operand): New predicate.
1215         (non_volatile_mem_operand): New predicate.
1216         * config/mips/mips.md (multimem): New type.
1217         (length): Differentiate between 17-bit and 18-bit branch offsets.
1218         (MOVEP1, MOVEP2): New mode iterator.
1219         (mov_<load>l): Use ZC constraint.
1220         (mov_<load>r): Likewise.
1221         (mov_<store>l): Likewise.
1222         (mov_<store>r): Likewise.
1223         (*branch_equality<mode>_inverted): Add microMIPS support.
1224         (*branch_equality<mode>): Likewise.
1225         (*jump_absolute): Likewise.
1226         (indirect_jump_<mode>): Likewise.
1227         (tablejump_<mode>): Likewise.
1228         (<optab>_internal): Likewise.
1229         (sibcall_internal): Likewise.
1230         (sibcall_value_internal): Likewise.
1231         (prefetch): Use constraint ZD.
1232         * config/mips/mips.opt (minterlink-compressed): New option.
1233         (minterlink-mips16): Now an alias for minterlink-compressed.
1234         (mmicromips): New option.
1235         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1236         (compare_and_swap_12): Likewise.
1237         (sync_add<mode>): Likewise.
1238         (sync_<optab>_12): Likewise.
1239         (sync_old_<optab>_12): Likewise.
1240         (sync_new_<optab>_12): Likewise.
1241         (sync_nand_12): Likewise.
1242         (sync_old_nand_12): Likewise.
1243         (sync_new_nand_12): Likewise.
1244         (sync_sub<mode>): Likewise.
1245         (sync_old_add<mode>): Likewise.
1246         (sync_old_sub<mode>): Likewise.
1247         (sync_new_add<mode>): Likewise.
1248         (sync_new_sub<mode>): Likewise.
1249         (sync_<optab><mode>): Likewise.
1250         (sync_old_<optab><mode>): Likewise.
1251         (sync_new_<optab><mode>): Likewise.
1252         (sync_nand<mode>): Likewise.
1253         (sync_old_nand<mode>): Likewise.
1254         (sync_new_nand<mode>): Likewise.
1255         (sync_lock_test_and_set<mode>): Likewise.
1256         (test_and_set_12): Likewise.
1257         (atomic_compare_and_swap<mode>): Likewise.
1258         (atomic_exchange<mode>_llsc): Likewise.
1259         (atomic_fetch_add<mode>_llsc): Likewise.
1260         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1261         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1262         (umips_save_restore_pattern_p): Likewise.
1263         (umips_load_store_pair_p): Likewise.
1264         (umips_output_load_store_pair): Likewise.
1265         (umips_movep_target_p): Likewise.
1266         (umips_12bit_offset_address_p): Likewise.
1267         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1268         (mips_base_mips16): Rename this...
1269         (mips_base_compression_flags): ...to this. Update all uses.
1270         (mips_attribute_table): Add micromips, nomicromips and nocompression.
1271         (mips_mips16_decl_p): Delete.
1272         (mips_nomips16_decl_p): Delete.
1273         (mips_get_compress_on_flags): New function.
1274         (mips_get_compress_off_flags): New function.
1275         (mips_get_compress_mode): New function.
1276         (mips_get_compress_on_name): New function.
1277         (mips_get_compress_off_name): New function.
1278         (mips_insert_attributes): Support multiple compression types.
1279         (mips_merge_decl_attributes): Likewise.
1280         (umips_12bit_offset_address_p): New function.
1281         (mips_start_function_definition): Emit .set micromips directive.
1282         (mips_call_may_need_jalx_p): New function.
1283         (mips_function_ok_for_sibcall): Add microMIPS support.
1284         (mips_print_operand_punctuation): Support short delay slots and
1285         compact jumps.
1286         (umips_swm_mask, umips_swm_encoding): New.
1287         (umips_build_save_restore): New function.
1288         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1289         (was_mips16_p): Remove.
1290         (old_compression_mode): New.
1291         (mips_set_compression_mode): New function.
1292         (mips_set_current_function): Add microMIPS support.
1293         (mips_option_override): Likewise.
1294         (umips_save_restore_pattern_p): New function.
1295         (umips_output_save_restore): New function.
1296         (umips_load_store_pair_p_1): New function.
1297         (umips_load_store_pair_p): New function.
1298         (umips_output_load_store_pair_1): New function.
1299         (umips_output_load_store_pair): New function.
1300         (umips_movep_target_p) New function.
1301         (mips_prepare_pch_save): Add microMIPS support.
1302         * config/mips/mips.h (TARGET_COMPRESSION): New.
1303         (TARGET_CPU_CPP_BUILTINS): Update macro
1304         to use new compression flags and to support microMIPS.
1305         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1306         (MIPS_ARCH_FLOAT_SPEC): Likewise.
1307         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1308         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1309         (ASM_SPEC): Support mmicromips and mno-micromips.
1310         (M16STORE_REG_P): New macro.
1311         (MIPS_CALL): Support TARGET_MICROMIPS.
1312         (MICROMIPS_J): New macro.
1313         (mips_base_mips16): Rename this...
1314         (mips_base_compression_flags): ...to this.
1315         (UMIPS_12BIT_OFFSET_P): New macro.
1316         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1317         (MULTILIB_DIRNAMES): Likewise.
1318
1319 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
1320
1321         PR target/52555
1322         * target-globals.c (save_target_globals): For init_reg_sets and
1323         target_reinit remporarily set this_fn_optabs to this_target_optabs.
1324
1325 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
1326
1327         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
1328         * config/aarch64/t-aarch64
1329         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
1330
1331 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
1332
1333         PR inline-asm/56148
1334         * lra-constraints.c (process_alt_operands): Reload operand
1335         conflicting with earlier clobber only if no more other conflicting
1336         operands.
1337
1338 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
1339
1340         PR sanitizer/56393
1341         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
1342         if not linking a shared library.
1343
1344 2013-02-22  Seth LaForge  <sethml@google.com>
1345
1346         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
1347
1348 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
1349
1350         * config/arm/arm.md (split for extendsidi): Update condition.
1351         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
1352         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
1353         (qhs_zextenddi_cstr): Likewise.
1354
1355 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
1356
1357         PR middle-end/56420
1358         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
1359         avoid signed wrapping.
1360         (expand_mult): Handle properly multiplication by
1361         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
1362         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
1363         in the compiler if coeff is HOST_WIDE_INT_MIN.
1364         (expand_divmod): Don't make ext_op1 static, change it's type to
1365         uhwi.  Avoid undefined behavior in -INTVAL (op1).
1366
1367         PR rtl-optimization/50339
1368         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
1369         field.
1370         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
1371         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
1372         into splitting_ashiftrt field.
1373         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
1374         ASHIFTRT.
1375         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
1376         choices.
1377
1378 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
1379
1380         PR middle-end/56108
1381         * trans-mem.c (execute_tm_mark): Do not expand transactions that
1382         are sure to go irrevocable.
1383
1384 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
1385
1386         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
1387         scalars are valid operands.
1388
1389 2013-02-21  Martin Jambor  <mjambor@suse.cz>
1390
1391         PR tree-optimization/56310
1392         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
1393         only matching indices and non-negative final offsets.
1394         (intersect_aggregates_with_edge): Pass src_idx to
1395         agg_replacements_to_vector.  Pass src_idx insstead of index to
1396         intersect_with_agg_replacements.
1397
1398 2013-02-21  Martin Jambor  <mjambor@suse.cz>
1399
1400         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
1401         instead of hard-wired defaults.
1402
1403 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
1404
1405         * doc/invoke.texi (MIPS Options): Update documentation of the
1406         floating-point multiply-accumulate instruction restrictions.
1407
1408 2013-02-21  Kostya Serebryany  <kcc@google.com>
1409
1410         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
1411         asan_shadow_offset on x86_64 linux.
1412
1413 2013-02-21  Richard Biener  <rguenther@suse.de>
1414
1415         PR tree-optimization/56415
1416         Revert
1417         2013-02-11  Richard Biener  <rguenther@suse.de>
1418
1419         PR tree-optimization/56273
1420         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
1421         first VRP run.
1422
1423 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
1424
1425         PR bootstrap/56258
1426         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
1427         instead of @itemx.
1428
1429         PR inline-asm/56405
1430         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
1431         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
1432
1433 2013-02-20  Jan Hubicka  <jh@suse.cz>
1434
1435         PR tree-optimization/56265
1436         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
1437         when target is referenced for first time.
1438
1439 2013-02-20  Richard Biener  <rguenther@suse.de>
1440
1441         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
1442         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1443         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
1444         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
1445         not return anything.
1446         (rename_ssa_copies): Do not remove unused locals.
1447         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
1448         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
1449         * passes.c (execute_function_todo): Do not schedule unused locals
1450         removal if cleanup_tree_cfg did something.
1451         * tree-ssa-live.c (remove_unused_locals): Dump statistics
1452         about the number of removed locals.
1453
1454 2013-02-20  Richard Biener  <rguenther@suse.de>
1455
1456         PR tree-optimization/56398
1457         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
1458
1459 2013-02-20  Martin Jambor  <mjambor@suse.cz>
1460
1461         PR tree-optimization/55334
1462         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
1463         restricted pointers to arrays.
1464
1465 2013-02-20  Richard Biener  <rguenther@suse.de>
1466             Jakub Jelinek  <jakub@redhat.com>
1467
1468         PR tree-optimization/56396
1469         * tree-ssa-ccp.c (n_const_val): New static variable.
1470         (get_value): Return NULL for SSA names we don't have a lattice
1471         entry for.
1472         (ccp_initialize): Initialize n_const_val.
1473         * tree-ssa-copy.c (n_copy_of): New static variable.
1474         (init_copy_prop): Initialize n_copy_of.
1475         (get_value): Return NULL_TREE for SSA names we don't have a
1476         lattice entry for.
1477
1478 2013-02-20  Martin Jambor  <mjambor@suse.cz>
1479
1480         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
1481
1482 2013-02-20  Richard Biener  <rguenther@suse.de>
1483
1484         * genpreds.c (write_lookup_constraint): Do not compare first
1485         letter of the constraint again.
1486
1487 2013-02-20  Richard Biener  <rguenther@suse.de>
1488
1489         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
1490         and ceil_log2.
1491         (get_use_iv_cost): Terminate hashtable walk when coming across
1492         an empty entry.
1493
1494 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
1495
1496         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
1497         reassociation for avx2 targets.
1498
1499 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1500
1501         * config/microblaze/microblaze.c: microblaze_has_clz = 0
1502         Add version check for v8.10.a to enable microblaze_has_clz
1503         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
1504         version and TARGET_PATTERN_COMPARE check
1505         * config/microblaze/microblaze.md: New clzsi2 instruction
1506
1507 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1508
1509         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
1510         function before branching.
1511
1512 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
1513
1514         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
1515         DUMP_INSN_RTX_UID.
1516         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
1517
1518 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
1519
1520         PR middle-end/55889
1521         * sel-sched.c: Include ira.h.
1522         (implicit_clobber_conflict_p): New function.
1523         (moveup_expr): Use it.
1524         * Makefile.in (sel-sched.o): Depend on ira.h.
1525
1526 2013-02-19  Richard Biener  <rguenther@suse.de>
1527
1528         PR tree-optimization/56384
1529         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
1530         (vn_hash_type): Split out from ...
1531         (vn_hash_constant_with_type): ... here.
1532         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
1533         (vn_phi_eq): Compare types from vn_phi_s structure.
1534         (vn_phi_lookup): Populate vn_phi_s type.
1535         (vn_phi_insert): Likewise.
1536
1537 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
1538
1539         PR tree-optimization/56350
1540         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
1541         if haven't found reduction or nested cycle operand, rather than
1542         asserting we must find it.
1543
1544         PR tree-optimization/56381
1545         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
1546         to fold_build3.
1547
1548 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
1549             Jakub Jelinek  <jakub@redhat.com>
1550
1551         PR target/52555
1552         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
1553         (swap_optab_enable): Same.
1554         (init_all_optabs): Use argument instead of global.
1555         * tree.h (struct tree_optimization_option): New field target_optabs.
1556         * expr.h (init_all_optabs): Add argument to prototype.
1557         (TREE_OPTIMIZATION_OPTABS): New.
1558         (save_optabs_if_changed): Protoize.
1559         * optabs.h: Declare this_fn_optabs.
1560         * optabs.c (save_optabs_if_changed): New.
1561         Declare this_fn_optabs.
1562         (init_optabs): Add argument to init_all_optabs() call.
1563         * function.c (invoke_set_current_function_hook): Handle per
1564         function optabs.
1565         * function.h (struct function): New field optabs.
1566         * config/mips/mips.c (mips_set_mips16_mode): Handle when
1567         optimization_current_node has changed.
1568         * target-globals.h (save_target_globals_default_opts): Protoize.
1569         * target-globals.c (save_target_globals_default_opts): New.
1570
1571 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1572
1573         PR target/56347
1574         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
1575         registers %fr12 and %fr12R as call used.
1576
1577         PR target/56214
1578         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
1579         and HImode, require all displacements to be an integer multiple of
1580         their mode size.
1581         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
1582         only allow QImode and HImode when reload is in progress and strict is
1583         true.  Likewise for symbolic addresses.  Use base14_operand to check
1584         displacements in REG+BASE addresses.
1585
1586 2013-02-18  Richard Biener  <rguenther@suse.de>
1587
1588         PR tree-optimization/56366
1589         * tree-vect-loop.c (get_initial_def_for_induction): Properly
1590         handle sign-conversion of outer-loop initial induction value.
1591
1592 2013-02-18  Richard Biener  <rguenther@suse.de>
1593
1594         PR middle-end/56349
1595         * cfghooks.c (merge_blocks): If we merge a latch into another
1596         block adjust references to it.
1597         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
1598         (verify_loop_structure): Verify that a recorded latch is in fact
1599         a latch.
1600
1601 2013-02-18  Richard Biener  <rguenther@suse.de>
1602
1603         PR tree-optimization/56321
1604         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
1605         order SSA name release and virtual operand unlinking.
1606
1607 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1608
1609         * config/microblaze/microblaze.md (save_stack_block): Define.
1610         (restore_stack_block): Likewise.
1611
1612 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1613
1614         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
1615         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
1616         * config/microblaze/microblaze.c (microblaze_option_override):
1617         Bail out early for PIC modes when target does not support PIC.
1618
1619 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1620
1621         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
1622         Replace with a microblaze version.
1623         (microblaze_trampoline_init): Adapt for microblaze.
1624         * gcc/config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
1625         microblaze.
1626
1627 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
1628             Dodji Seketeli  <dodji@redhat.com>
1629
1630         PR asan/56330
1631         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
1632         (instrument_mem_region_access): Do not forget to always put
1633         instrumentation of the of 'base' and 'base + len' in a "if (len !=
1634         0) statement, even for cases where either 'base' or 'base + len'
1635         are not instrumented -- because they have been previously
1636         instrumented.  Simplify the logic by putting all the statements
1637         instrument 'base + len' inside a sequence, and then insert that
1638         sequence right before the current insertion point.  Then, to
1639         instrument 'base + len', just get an iterator on that statement.
1640         And do not forget to update the pointer to iterator the function
1641         received as argument.
1642
1643 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
1644
1645         PR rtl-optimization/56348
1646         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
1647
1648 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
1649
1650         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
1651         (clean_graph_dump_file): Pass base to start_graph_dump.
1652
1653 2013-02-14  Richard Henderson  <rth@redhat.com>
1654
1655         PR target/55941
1656         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
1657
1658 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
1659
1660         * collect2-aix.h: Define F_LOADONLY.
1661
1662 2013-02-14  Richard Biener  <rguenther@suse.de>
1663
1664         PR lto/50494
1665         * varasm.c (output_constant_def_1): Get the decl representing
1666         the constant as argument.
1667         (output_constant_def): Wrap output_constant_def_1.
1668         (make_decl_rtl): Use output_constant_def_1 with the decl
1669         representing the constant.
1670         (build_constant_desc): Optionally re-use a decl already
1671         representing the constant.
1672         (tree_output_constant_def): Adjust.
1673
1674 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
1675
1676         Fix an asan crash
1677         * asan.c (instrument_builtin_call):  Really put the length of the
1678         second source argument into src1_len.
1679
1680 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
1681
1682         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
1683         argument.  If it is false, don't create edge from then_bb to
1684         fallthru_bb.
1685         (insert_if_then_before_iter): Pass true to it.
1686         (build_check_stmt): Pass false to it.
1687         (transform_statements): Flush hash table only on extended basic
1688         block boundaries, rather than at the beginning of every bb.
1689         Don't flush hash table on nonfreeing_call_p calls.
1690         * tree-flow.h (nonfreeing_call_p): New prototype.
1691         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
1692
1693 2013-02-13  David S. Miller  <davem@davemloft.net>
1694
1695         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
1696
1697 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
1698
1699         PR target/56184
1700         * ira.c (max_regno_before_ira): Move from ...
1701         (ira): ... here.
1702         (fix_reg_equiv_init): Use max_regno_before_ira instead of
1703         vec_safe_length.
1704
1705 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
1706
1707         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
1708
1709 2013-02-13  Richard Biener  <rguenther@suse.de>
1710
1711         PR lto/56295
1712         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
1713         globals in MEM_REFs.
1714
1715 2013-02-13  Richard Biener  <rguenther@suse.de>
1716
1717         * loop-init.c (loop_optimizer_init): Clear loop state when
1718         re-initializing preserved loops.
1719         * loop-unswitch.c (unswitch_single_loop): Return whether
1720         we unswitched the loop.  Do not verify loop state here.
1721         (unswitch_loops): When we unswitched a loop discover new loops.
1722
1723 2013-02-13  Kostya Serebryany  <kcc@google.com>
1724
1725         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
1726         on x86_64 linux.
1727         * sanitizer.def: Rename __asan_init to __asan_init_v1.
1728
1729 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
1730
1731         Avoid instrumenting duplicated memory access in the same basic block
1732         * Makefile.in (asan.o): Add new dependency on hash-table.h
1733         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
1734         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
1735         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
1736         (free_mem_ref_resources, has_mem_ref_been_instrumented)
1737         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
1738         (get_mem_ref_of_assignment): New functions.
1739         (get_mem_refs_of_builtin_call): Extract from
1740         instrument_builtin_call and tweak a little bit to make it fit with
1741         the new signature.
1742         (instrument_builtin_call): Use the new
1743         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
1744         of is_gimple_builtin_call.
1745         (instrument_derefs, instrument_mem_region_access): Insert the
1746         instrumented memory reference into the hash table.
1747         (maybe_instrument_assignment): Renamed instrument_assignment into
1748         this, and change it to advance the iterator when instrumentation
1749         actually happened and return true in that case.  This makes it
1750         homogeneous with maybe_instrument_assignment, and thus give a
1751         chance to callers to be more 'regular'.
1752         (transform_statements): Clear the memory reference hash table
1753         whenever we enter a new BB, when we cross a function call, or when
1754         we are done transforming statements.  Use
1755         maybe_instrument_assignment instead of instrumentation.  No more
1756         need to special case maybe_instrument_assignment and advance the
1757         iterator after calling it; it's now handled just like
1758         maybe_instrument_call.  Update comment.
1759
1760 2013-02-13  Richard Biener  <rguenther@suse.de>
1761
1762         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1763         Fix loop discovery code.
1764
1765 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
1766
1767         PR inline-asm/56148
1768         * lra-constraints.c (process_alt_operands): Match early clobber
1769         operand with itself.  Check conflicts with earlyclobber only if
1770         the operand is not reloaded.  Prefer to reload conflicting operand
1771         if earlyclobber and matching operands are the same.
1772
1773 2013-02-12  Richard Biener  <rguenther@suse.de>
1774
1775         PR lto/56297
1776         * lto-streamer-out.c (write_symbol): Do not output symbols
1777         for hard register variables.
1778
1779 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
1780
1781         PR target/54222
1782         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
1783         (umulsidi3_insn, mulsidi3_insn): New insns.
1784
1785 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
1786
1787         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
1788         (struct tune_params): Add vec_costs field.
1789         * config/arm/arm.c (arm_builtin_vectorization_cost)
1790         (arm_add_stmt_cost): New functions.
1791         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
1792         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
1793         (arm_default_vec_cost): New struct of type cpu_vec_costs.
1794         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
1795         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
1796         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
1797         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
1798
1799 2013-02-12  Richard Biener  <rguenther@suse.de>
1800
1801         PR lto/56295
1802         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
1803         decls again if possible.
1804
1805 2013-02-12  Richard Biener  <rguenther@suse.de>
1806
1807         PR middle-end/56288
1808         * tree-ssa.c (verify_ssa_name): Fix check, move
1809         SSA_NAME_IN_FREE_LIST check up.
1810
1811 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
1812             Steven Bosscher   <steven@gcc.gnu.org>
1813
1814         PR rtl-optimization/56151
1815         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
1816         equal to op0 or op1, and last_insn pattern is CODE operation
1817         with MEM dest and one of the operands matches that MEM.
1818
1819 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
1820
1821         * doc/extend.texi: Document Function Multiversioning and "default"
1822         parameter string to target attribute.
1823         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
1824         target attribute parameter is "default".
1825         (ix86_compare_version_priority): Remove checks for target attribute.
1826         (ix86_mangle_function_version_assembler_name): Change error to sorry.
1827         Remove check for target attribute equal to NULL. Add assert.
1828         (ix86_generate_version_dispatcher_body): Change error to sorry.
1829
1830 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
1831             Jack Howarth  <howarth@bromo.med.uc.edu>
1832             Patrick Marlier  <patrick.marlier@gmail.com>
1833
1834         PR libitm/55693
1835         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
1836         define ENDFILE_SPEC as TM_DESTRUCTOR.
1837         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
1838
1839 2013-02-11  Alexander Potapenko  <glider@google.com>
1840             Jack Howarth  <howarth@bromo.med.uc.edu>
1841             Jakub Jelinek  <jakub@redhat.com>
1842
1843         PR sanitizer/55617
1844         * config/darwin.c (cdtor_record): Rename ctor_record.
1845         (sort_cdtor_records): Rename sort_ctor_records.
1846         (finalize_dtors): New routine to sort destructors by
1847         priority before use in assemble_integer.
1848         (machopic_asm_out_destructor): Use finalize_dtors if needed.
1849
1850 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
1851
1852         PR rtl-optimization/56275
1853         * simplify-rtx.c (avoid_constant_pool_reference): Check that
1854         offset is non-negative and less than cmode size before
1855         calling simplify_subreg.
1856
1857 2013-02-11  Richard Biener  <rguenther@suse.de>
1858
1859         PR tree-optimization/56264
1860         * cfgloop.h (fix_loop_structure): Adjust prototype.
1861         * loop-init.c (fix_loop_structure): Return the number of
1862         newly discovered loops.
1863         * tree-cfgcleanup.c (repair_loop_structures): When new loops
1864         are discovered, do a full loop-closed SSA rewrite.
1865
1866 2013-02-11  Richard Biener  <rguenther@suse.de>
1867
1868         PR tree-optimization/56273
1869         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
1870         first VRP run.
1871         (check_array_ref): Fix missing newline in dumps.
1872         (search_for_addr_array): Likewise.
1873
1874 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
1875
1876         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
1877
1878 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
1879
1880         PR target/56256
1881         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
1882
1883 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
1884
1885         PR rtl-optimization/56246
1886         * lra-constraints.c (simplify_operand_subreg): Try to reuse
1887         reload pseudo.
1888         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
1889         constraints are satisfied.
1890
1891 2013-02-08  Jeff Law  <law@redhat.com>
1892
1893         PR debug/53948
1894         * emit-rtl.c (reg_is_parm_p): New function.
1895         * regs.h (reg_is_parm_p): New prototype.
1896         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
1897         callee-clobbered registers.
1898
1899 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1900
1901         PR target/56043
1902         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
1903         If there is no implicit builtin declaration, just return NULL.
1904
1905 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
1906
1907         * config/i386/sse.md (FMAMODEM): New mode iterator.
1908         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
1909         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
1910
1911 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
1912
1913         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
1914         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
1915         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
1916
1917 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1918
1919         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
1920         (microblaze*-*-elf): Likewise.
1921         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
1922         LINK_SPEC.
1923         * config/microblaze/microblaze-c.c: Add builtin defines for
1924         _LITTLE_ENDIAN and _BIG_ENDIAN.
1925         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
1926         add to TARGET_DEFAULT flags.
1927         Expand ASM_SPEC and LINK_SPEC.
1928         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
1929         * config/microblaze/microblaze.md: Update extendsidi2 and
1930         movdi_internal instructions to use low-order / high-order reg
1931         print_operands.
1932         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
1933         options and inversemask / mask of LITTLE_ENDIAN.
1934         * config/microblaze/t-microblaze: Expand multilib options to
1935         include mlittle-endian (le) and update exceptions patterns.
1936
1937 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
1938
1939         PR rtl-optimization/56195
1940         * lra-constraints.c (get_reload_reg): Don't reuse regs
1941         if they have smaller mode than requested, if they have
1942         wider mode than requested, try to return a SUBREG.
1943
1944         PR tree-optimization/56250
1945         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
1946         if type is unsigned and code isn't MULT_EXPR.
1947
1948 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
1949
1950         PR tree-optimization/56064
1951         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
1952         bits according to mode.
1953         * fixed-value.h (fixed_from_double_int)
1954         (const_fixed_from_double_int): Adjust comments.
1955
1956 2013-02-08  Richard Biener  <rguenther@suse.de>
1957
1958         PR lto/56231
1959         * lto-streamer.h (struct data_in): Remove current_file, current_line
1960         and current_col members.
1961         * lto-streamer-out.c (lto_output_location): Stream changed bits
1962         en-block for efficiency.
1963         * lto-streamer-in.c (clear_line_info): Remove.
1964         (lto_input_location): Cache current file, line and column
1965         globally via local statics.  Read changed bits en-block.
1966         (input_function): Do not call clear_line_info.
1967         (lto_read_body): Likewise.
1968         (lto_input_toplevel_asms): Likewise.
1969
1970 2013-02-08  Michael Matz  <matz@suse.de>
1971
1972         PR tree-optimization/52448
1973         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
1974         (nt_call_phase): New static.
1975         (add_or_mark_expr): Only mark accesses with newer phase than any
1976         call seen.
1977         (nonfreeing_call_p): New.
1978         (nt_init_block): Update nt_call_phase, mark blocks as visited.
1979         (nt_fini_block): Keep blocks marked as visited.
1980         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
1981
1982 2013-02-08  Richard Biener  <rguenther@suse.de>
1983
1984         * ira.c (ira): Free broken dominator information.
1985
1986 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
1987
1988         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
1989
1990 2013-02-08  Marek Polacek  <polacek@redhat.com>
1991
1992         * cfgloop.c (verify_loop_structure): Add more checking of headers.
1993
1994 2013-02-08  Richard Biener  <rguenther@suse.de>
1995
1996         PR middle-end/56181
1997         * cfgloop.h (flow_loops_find): Adjust.
1998         (bb_loop_header_p): Declare.
1999         * cfgloop.c (bb_loop_header_p): New function split out from ...
2000         (flow_loops_find): ... here.  Adjust function signature,
2001         support incremental loop structure update.
2002         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
2003         * cfgloopmanip.c (fix_loop_structure): Move ...
2004         * loop-init.c (fix_loop_structure): ... here.
2005         (apply_loop_flags): Split out from ...
2006         (loop_optimizer_init): ... here.
2007         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
2008         in incremental mode, only remove dead loops here.
2009
2010 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
2011
2012         PR target/54222
2013         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
2014         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
2015         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
2016         (*round<mode>3.libgcc): New insns for fixed-modes.
2017         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
2018         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
2019         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
2020         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
2021         implementations.  Define to __builtin_avr_absFX,
2022         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
2023         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
2024         __builtin_avr_countlsFX, respectively.
2025         * config/avr/avr-c.c (target.h): Include it.
2026         (enum avr_builtin_id): New enum.
2027         (avr_resolve_overloaded_builtin): New static function.
2028         (avr_register_target_pragmas): Use it to set
2029         targetm.resolve_overloaded_builtin.
2030         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
2031         tree nodes used by DEF_BUILTIN.
2032         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
2033         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
2034         <AVR_BUILTIN_xxBITS>: Same.
2035
2036 2013-02-08  Richard Biener  <rguenther@suse.de>
2037
2038         * cfgloop.c (verify_loop_structure): Properly handle
2039         a loop exiting to another loop header.
2040         * ira-int.h (ira_loops): Remove.
2041         * ira.c (ira_loops): Remove.
2042         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
2043         (do_reload): Use loop_optimizer_finalize.
2044         * ira-build.c (create_loop_tree_nodes): Use get_loops and
2045         number_of_loops to access the loop tree.
2046         (more_one_region_p): Likewise.
2047         (finish_loop_tree_nodes): Likewise.
2048         (rebuild_regno_allocno_maps): Likewise.
2049         (mark_loops_for_removal): Likewise.
2050         (mark_all_loops_for_removal): Likewise.
2051         (remove_unnecessary_regions): Likewise.
2052         (ira_build): Likewise.
2053         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2054
2055 2013-02-08  Richard Biener  <rguenther@suse.de>
2056
2057         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
2058         * ipa-pure-const.c (analyze_function): Avoid calling
2059         mark_irreducible_loops twice.
2060         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
2061
2062 2013-02-07  David S. Miller  <davem@davemloft.net>
2063
2064         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
2065         on 'reg'.
2066         * var-tracking.c (vt_add_function_parameter): Test the presence of
2067         HAVE_window_save properly and do not remap argument registers when
2068         we have a leaf function.
2069
2070 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
2071
2072         PR bootstrap/56227
2073         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
2074         instead of "ll".
2075         * config/i386/i386.c (ix86_print_operand): Ditto.
2076
2077 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
2078
2079         * lra-constraints.c (process_alt_operands): Fix recently added comment.
2080
2081 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
2082
2083         PR rtl-optimization/56225
2084         * lra-constraints.c (process_alt_operands): Check that reload hard
2085         reg can hold value for strict_low_part.
2086
2087 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
2088
2089         PR debug/56154
2090         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
2091         dwarf2out_end_function.
2092         (in_first_function_p, maybe_at_text_label_p,
2093         first_loclabel_num_not_at_text_label): New variables.
2094         (dwarf2out_var_location): In the first function find out
2095         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
2096         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
2097         functions.
2098
2099 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
2100
2101         PR rtl-optimization/56178
2102         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
2103         SUBREG of a register.  Tidy up related block of code.
2104         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
2105         note if the source is a register or a SUBREG of a register.
2106
2107 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
2108
2109         PR target/56228
2110         * config/rs6000/rs6000.md (ptrm): New mode attr.
2111         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
2112         call_value_indirect_aix<pttrsize>,
2113         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
2114         m in constraints.
2115
2116 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
2117
2118         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
2119         if -bnortl. Convert to strcmp and strncmp.
2120
2121 2013-02-07  Alan Modra  <amodra@gmail.com>
2122
2123         PR target/54009
2124         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
2125         addresses won't wrap when offsetting.
2126         (rs6000_secondary_reload): Provide secondary reloads needed for
2127         wrapping LO_SUM addresses.
2128
2129 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
2130
2131         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
2132         MACH, just __MACH__.
2133
2134 2013-02-06  Richard Biener  <rguenther@suse.de>
2135
2136         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
2137         instead of calling fix_loop_structure.
2138
2139 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
2140
2141         PR middle-end/56217
2142         * omp-low.c (use_pointer_for_field): Return false if
2143         lower_send_shared_vars doesn't generate any copy-out code.
2144
2145 2013-02-06  Tom de Vries  <tom@codesourcery.com>
2146
2147         PR rtl-optimization/56131
2148         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
2149         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
2150         of the label is NULL.  Add comment.
2151
2152 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
2153
2154         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
2155
2156         PR sanitizer/55374
2157         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
2158         (STATIC_LIBTSAN_LIBS): Likewise.
2159         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
2160         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
2161         is defined, don't add anything else beyond that.
2162         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
2163         (LINK_COMMAND_SPEC): Use them.
2164
2165         PR tree-optimization/56205
2166         * tree-stdarg.c (check_all_va_list_escapes): Return true if
2167         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
2168         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
2169
2170 2013-02-05  Richard Biener  <rguenther@suse.de>
2171
2172         PR tree-optimization/53342
2173         PR tree-optimization/53185
2174         * tree-vectorizer.h (vect_check_strided_load): Remove.
2175         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
2176         not disallow peeling for vectorized strided loads.
2177         (vect_check_strided_load): Make static and simplify.
2178         (vect_analyze_data_refs): Adjust.
2179         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
2180         correctly when vectorizing strided loads.
2181
2182 2013-02-05  Richard Biener  <rguenther@suse.de>
2183
2184         * doc/install.texi: Refer to ISL, not PPL.
2185
2186 2013-02-05  Jan Hubicka  <jh@suse.cz>
2187
2188         PR tree-optimization/55789
2189         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
2190
2191 2013-02-05  Jan Hubicka  <jh@suse.cz>
2192
2193         PR tree-optimization/55789
2194         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
2195         the dead call anyway.
2196
2197 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
2198
2199         PR sanitizer/55374
2200         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
2201
2202 2013-02-04  Alexander Potapenko  <glider@google.com>
2203             Jack Howarth  <howarth@bromo.med.uc.edu>
2204             Jakub Jelinek  <jakub@redhat.com>
2205
2206         PR sanitizer/55617
2207         * config/darwin.c (sort_ctor_records): Stabilized qsort
2208         on constructor priority by using original position.
2209         (finalize_ctors): New routine to sort constructors by
2210         priority before use in assemble_integer.
2211         (machopic_asm_out_constructor): Use finalize_ctors if needed.
2212
2213 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
2214
2215         PR libstdc++/54314
2216         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
2217         about visibility on artificial decls.
2218         * config/sol2.c (solaris_assemble_visibility): Likewise.
2219
2220 2013-02-04  Kai Tietz  <ktietz@redhat.com>
2221
2222         PR target/56186
2223         * config/i386/i386.c (function_value_ms_64): Add additional valtype
2224         argument and improve checking of return-argument types for 16-byte
2225         modes.
2226         (ix86_function_value_1): Add additional valtype argument on call
2227         of function_value_64.
2228         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
2229         handling infunction_value_64 function.
2230
2231 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
2232
2233         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2234
2235 2013-02-04  Richard Biener  <rguenther@suse.de>
2236
2237         PR tree-optimization/56188
2238         * tree-ssa-structalias.c (label_visit): Consider case with
2239         initially non-empty points-to set.
2240         (perform_var_substitution): Dump node mapping and clean up.
2241
2242 2013-02-04  Richard Guenther  <rguenther@suse.de>
2243
2244         PR lto/56168
2245         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
2246         node prevail as last resort.
2247         (lto_symtab_merge_decls): Remove guard on LTRANS here.
2248         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
2249
2250 2013-02-04  Richard Biener  <rguenther@suse.de>
2251
2252         PR tree-optimization/56113
2253         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
2254         Merge into ...
2255         (equiv_class_lookup_or_add): ... this.
2256         (label_visit): Adjust and fix error in previous patch.
2257         (perform_var_substitution): Adjust.
2258
2259 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
2260
2261         * config/sh/divtab.c: Fix formatting and comments throughout the file.
2262         * config/sh/sh4-300.md: Likewise.
2263         * config/sh/sh4a.md: Likewise.
2264         * config/sh/constraints.md: Likewise.
2265         * config/sh/sh.md: Likewise.
2266         * config/sh/netbsd-elf.h: Likewise.
2267         * config/sh/predicates.md: Likewise.
2268         * config/sh/sh-protos.h: Likewise.
2269         * config/sh/ushmedia.h: Likewise.
2270         * config/sh/linux.h: Likewise.
2271         * config/sh/sh.c: Likewise.
2272         * config/sh/superh.h: Likewise.
2273         * config/sh/elf.h: Likewise.
2274         * config/sh/sh4.md: Likewise.
2275         * config/sh/sh.h: Likewise.
2276
2277 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2278
2279         * config/pa/constraints.md: Adjust unused letters.  Change "T"
2280         constraint to match_test floating_point_store_memory_operand().
2281         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
2282         (base14_operand): New.
2283         (floating_point_store_memory_operand): New.
2284         (integer_store_memory_operand): Revise to use base14_operand and
2285         reg_plus_base_memory_operand.
2286         (move_dest_operand): Allow symbolic_memory_operands.
2287         (symbolic_memory_operand): Check for LO_SOM.
2288         (symbolic_operand): Change default case to break.
2289         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
2290         CONST_DOUBLE values to be reloaded by putting them into memory when
2291         the destination is a floating point register.
2292         (movdf): Remove code to handle CONST_DOUBLE.
2293         (movsf): Likewise.
2294         (reload_indf_r1): New.
2295         (reload_insf_r1): New.
2296         Consistently use "Q" and "T" constraints with integer and floating
2297         point move instructions, respectively.
2298         (movdi): Remove FAIL.
2299         Change predicate for source operand unamed DImode move from
2300         general_operand to move_src_operand.
2301         (umulsidi3): Change predicate for destination operand to
2302         register_operand.
2303         Likewise for similar unamed patterns.
2304         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
2305         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
2306         (hppa_legitimize_address): Simplify mask calculation.
2307         (pa_emit_move_sequence): Revised handling of secondary reloads from
2308         REG+D addresses for floating point loads and stores.  Directly handle
2309         loading CONST0_RTX (mode) to a floating point register.
2310         (pa_secondary_reload): Handle reloading DF and SFmode constant values
2311         to floating point registers.  Don't restrict secondary reloads to
2312         floating point registers to integer modes.  Revise some comments and
2313         cleanup some code.
2314         (TARGET_LEGITIMATE_ADDRESS_P): Define.
2315         (pa_legitimate_address_p): New.
2316         (pa_legitimize_reload_address): New.
2317         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
2318         (STRICT_REG_OK_FOR_BASE_P): New.
2319         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
2320         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
2321
2322 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
2323             Andrew Dixie  <andrewd@gentrack.com>
2324
2325         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
2326         flag set.
2327
2328 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
2329
2330         * expmed.c (extract_bit_field_1): Pass the full width of the
2331         structure to get_best_reg_extraction_insn.
2332
2333 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
2334
2335         PR target/54601
2336         * configure.ac (use_cxa_atexit): Add AIX.
2337         * configure: Regenerate.
2338
2339         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
2340
2341 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
2342
2343         PR debug/54793
2344         * final.c (need_profile_function): New variable.
2345         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
2346         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
2347         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
2348         notes, targetm.asm_out.function_prologue doesn't emit anything,
2349         HAVE_prologue and profiler should be emitted before prologue,
2350         set need_profile_function instead of emitting it.
2351         (final_scan_insn): If need_profile_function, emit
2352         profile_function on the first NOTE_INSN_BASIC_BLOCK or
2353         NOTE_INSN_FUNCTION_BEG note.
2354
2355 2013-02-01  Richard Henderson  <rth@redhat.com>
2356
2357         * config/rs6000/rs6000.md (smulditi3): New.
2358         (umulditi3): New.
2359
2360         * config/alpha/alpha.md (umulditi3): New.
2361
2362 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
2363
2364         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
2365         (ASM_OUTPUT_ALIGNED_LOCAL): New.
2366
2367 2013-02-01  Richard Biener  <rguenther@suse.de>
2368
2369         PR tree-optimization/56113
2370         * tree-ssa-structalias.c (label_visit): Reduce work for
2371         single-predecessor nodes.
2372
2373 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
2374
2375         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
2376         range isn't testing for zero.
2377
2378 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
2379
2380         PR middle-end/56113
2381         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
2382
2383 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
2384             Nick Clifton  <nickc@redhat.com>
2385
2386         * config/v850/constraints.md (Q): Define as a memory constraint.
2387         * config/v850/predicates.md (label_ref_operand): New predicate.
2388         (e3v5_shift_operand): New predicate.
2389         (ior_operator): New predicate.
2390         * config/v850/t-v850: Add e3v5 multilib.
2391         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
2392         (v850_gen_movdi): Prototype.
2393         * config/v850/v850.c: Add support for e3v5 architecture.
2394         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
2395         TARGET_V850E_UP.
2396         (construct_save_jarl): Add e3v5 long JARL support.
2397         (v850_adjust_insn_length): New function.  Adjust length of call
2398         insns when using e3v5 instructions.
2399         (v850_gen_movdi): New function: Generate instructions to move a
2400         DImode value.
2401         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
2402         (CPP_SPEC): Define __v850e3v5__ as appropriate.
2403         (TARGET_USE_FPU): Enable for e3v5.
2404         (CONST_OK_FOR_W): New macro.
2405         (ADJUST_INSN_LENGTH): Define.
2406         * config/v850/v850.md (UNSPEC_LOOP): Define.
2407         (attr cpu): Add v850e3v5.
2408         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
2409         (movdi): New pattern.
2410         (movdi_internal): New pattern.
2411         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
2412         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
2413         (cstoresf4): Likewise.
2414         (cstoredf4): Likewise.
2415         (insv): New pattern.
2416         (rotlso3_a): New pattern.
2417         (rotlsi3_b): New pattern
2418         (rotlsi3_v850e3v5): New pattern.
2419         (doloop_begin): New pattern.
2420         (fix_loop_counter): New pattern.
2421         (doloop_end): New pattern.
2422         (branch_normal): Add e3v5 long branch support.
2423         (branch_invert): Likewise.
2424         (branch_z_normal): Likewise.
2425         (branch_z_invert): Likewise.
2426         (branch_nz_normal): Likewise.
2427         (branch_nz_invert): Likewise.
2428         (call_internal_short): Add e3v5 register-indirect JARL support.
2429         (call_internal_long): Likewise.
2430         (call_value_internal_short): Likewise.
2431         (call_value_internal_long): Likewise.
2432         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
2433         (mloop): New option.
2434         * config.gcc: Add support for configuring v840e3v5 target.
2435         * doc/invoke.texi: Document new v850 specific command line options.
2436
2437 2013-01-31  Paul Koning  <ni1d@arrl.net>
2438
2439         PR debug/55059
2440         PR debug/54508
2441         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
2442         children if parent is a class.
2443         (prune_unused_types_prune): Don't add DW_AT_declaration.
2444
2445 2013-01-31  Richard Biener  <rguenther@suse.de>
2446
2447         PR tree-optimization/56157
2448         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
2449         match up operand with SLP child.
2450
2451 2013-01-31  Jason Merrill  <jason@redhat.com>
2452
2453         PR debug/54410
2454         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
2455         parameters the first time.
2456         (gen_scheduled_generic_parms_dies): Check completeness here.
2457
2458 2013-01-31  Richard Biener  <rguenther@suse.de>
2459
2460         PR middle-end/53073
2461         * common.opt (faggressive-loop-optimizations): New flag,
2462         enabled by default.
2463         * doc/invoke.texi (faggressive-loop-optimizations): Document.
2464         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
2465         infer_loop_bounds_from_undefined by it.
2466
2467 2013-01-31  Richard Biener  <rguenther@suse.de>
2468
2469         PR tree-optimization/56150
2470         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
2471         visit virtual operands.
2472         (find_uses_to_rename_bb): Likewise.
2473
2474 2013-01-31  Richard Biener  <rguenther@suse.de>
2475
2476         PR tree-optimization/56150
2477         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
2478         mixed store non-store stmts.
2479
2480 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
2481
2482         PR sanitizer/55374
2483         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
2484         LIBASAN_EARLY_SPEC is defined.
2485         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
2486         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
2487         before %o.
2488         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
2489
2490         PR c++/55742
2491         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
2492         invalid args instead of ICEing on it.
2493         (ix86_valid_target_attribute_tree): Return error_mark_node if
2494         ix86_valid_target_attribute_inner_p failed.
2495         (ix86_valid_target_attribute_p): Return false only if
2496         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
2497         target("default") attribute.
2498         (sorted_attr_string): Change argument from const char * to tree,
2499         merge in all target attribute arguments rather than just one.
2500         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
2501         instead of free.  Avoid using strcat.
2502         (ix86_mangle_function_version_assembler_name): Mangle
2503         target("default") as if no target attribute is present.  Adjust
2504         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
2505         instead of xmalloc and XDELETEVEC instead of free.
2506         (ix86_function_versions): Don't return true if one of the decls
2507         doesn't have target attribute.  If they don't and one of the decls
2508         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
2509         sorted_attr_string caller.  Use XDELETEVEC instead of free.
2510         (ix86_supports_function_versions): Remove.
2511         (make_name): Fix up formatting.
2512         (make_dispatcher_decl): Remove resolver_name and its initialization.
2513         Avoid leaking memory.
2514         (is_function_default_version): Return true if there is
2515         target("default") attribute rather than no target attribute at all.
2516         (make_resolver_func): Avoid leaking memory.
2517         (ix86_generate_version_dispatcher_body): Likewise.
2518         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
2519         * target.def (supports_function_versions): Remove.
2520         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
2521         * doc/tm.texi: Regenerated.
2522
2523 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
2524
2525         PR rtl-optimization/56144
2526         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
2527         for values with side effects.
2528
2529 2013-01-30  Richard Biener  <rguenther@suse.de>
2530
2531         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
2532         (sparseset_pop): Likewise.
2533         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
2534         to be able to use quick_push in the worker loop.
2535
2536 2013-01-30  Marek Polacek  <polacek@redhat.com>
2537
2538         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
2539
2540 2013-01-30  Richard Biener  <rguenther@suse.de>
2541
2542         PR lto/56147
2543         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
2544
2545 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
2546
2547         PR tree-optimization/56064
2548         * fixed-value.c (fixed_from_double_int): New function.
2549         * fixed-value.h (fixed_from_double_int): New prototype.
2550         (const_fixed_from_double_int): New static inline function.
2551         * fold-const.c (native_interpret_fixed): New static function.
2552         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
2553         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
2554         (native_encode_fixed): New static function.
2555         (native_encode_expr) <FIXED_CST>: Use it.
2556         (native_interpret_int): Move double_int worker code to...
2557         * double-int.c (double_int::from_buffer): ...this new static method.
2558         * double-int.h (double_int::from_buffer): Prototype it.
2559
2560 2013-01-30  Richard Biener  <rguenther@suse.de>
2561
2562         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
2563         New pointer-map and obstack.
2564         (init_alias_vars): Allocate pointer-map and obstack.
2565         (delete_points_to_sets): Free them.
2566         (find_what_var_points_to): Cache result.
2567         (find_what_p_points_to): Adjust for changed interface of
2568         find_what_var_points_to.
2569         (compute_points_to_sets): Likewise.
2570         (ipa_pta_execute): Likewise.
2571
2572 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2573
2574         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
2575         * configure: Regenerate.
2576         * config.in: Regenerate.
2577         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
2578         #nobits/#progbits if supported.
2579
2580 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
2581
2582         PR target/56121
2583         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
2584         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
2585         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
2586
2587 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
2588
2589         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
2590         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
2591
2592 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
2593
2594         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
2595         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
2596
2597 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
2598
2599         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
2600         declaration.
2601         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
2602         * config/arm/cortex-a7.md: New bypasses using
2603         arm_mac_accumulator_is_result.
2604
2605 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
2606
2607         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
2608         (cortex_a7_neon_mla): Likewise.
2609         (cortex_a7_fpfmad): New reservation.
2610         (cortex_a7_fpmacs): Use ffmas and update required units.
2611         (cortex_a7_fpmuld): Update required units and latency.
2612         (cortex_a7_fpmacd): Likewise.
2613         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
2614         (cortex_a7_neon). Likewise.
2615         (bypass) Update participating units.
2616
2617 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
2618
2619         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
2620         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
2621         from fmac to ffma.
2622         * config/arm/vfp11.md (vfp_farith): Use ffmas.
2623         (vfp_fmul): Use ffmad.
2624         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
2625         (cortex_r4_fmacd): Use ffmad.
2626         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
2627         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
2628         (cortex_a9_fmacd): Use ffmad.
2629         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
2630         (cortex_a8_vfp_macd): Use ffmad.
2631         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
2632         (cortex_a5_fpmacd): Use ffmad.
2633         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
2634         (cortex_a15_vfp_macd): Use ffmad.
2635         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
2636
2637 2013-01-29  Jason Merrill  <jason@redhat.com>
2638
2639         PR libstdc++/54314
2640         * varasm.c (default_assemble_visibility): Don't warn about
2641         visibility on artificial decls.
2642
2643 2013-01-29  Richard Biener  <rguenther@suse.de>
2644
2645         PR tree-optimization/56113
2646         * tree-ssa-structalias.c (equiv_class_lookup): Also return
2647         the bitmap leader.
2648         (label_visit): Free duplicate bitmaps and record the leader instead.
2649         (perform_var_substitution): Adjust.
2650
2651 2013-01-29  Richard Biener  <rguenther@suse.de>
2652
2653         PR tree-optimization/55270
2654         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
2655         the CFG, schedule loops for fixup.
2656
2657 2013-01-29  Nick Clifton  <nickc@redhat.com>
2658
2659         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
2660         SP_REG.
2661
2662 2013-01-28  Leif Ekblad  <leif@rdos.net>
2663
2664         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
2665         * config/i386/i386.h (TARGET_RDOS): New macro.
2666         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
2667         * config/i386/i386.c (ix86_option_override_internal): For 64bit
2668         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
2669         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
2670         DEFAULT_LARGE_SECTION_THRESHOLD.
2671         * config/i386/i386.md (R14_REG, R15_REG): New constants.
2672         * config/i386/rdos.h: New file.
2673         * config/i386/rdos64.h: New file.
2674
2675 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
2676
2677         PR other/54814
2678         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
2679         TEST_HARD_REG_BIT.
2680
2681 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
2682
2683         PR rtl-optimization/56117
2684         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
2685         call cselib_lookup_from_insn on the MEM before calling
2686         add_insn_mem_dependence.
2687
2688 2013-01-28  Richard Biener  <rguenther@suse.de>
2689
2690         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
2691         to a stmt that didn't have one.
2692         (copy_phis_for_bb): Likewise for PHI arguments.
2693         (copy_debug_stmt): Likewise for debug stmts.
2694
2695 2013-01-28  Richard Biener  <rguenther@suse.de>
2696
2697         PR tree-optimization/56034
2698         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
2699         (partition_builtin_p): Adjust.
2700         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
2701         it is the last partition.
2702         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
2703         up the vertex for the definition.
2704         (classify_partition): Classify whether a partition is a
2705         PKIND_REDUCTION, thus has uses outside of the loop.
2706         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
2707         Merge all PKIND_REDUCTION partitions into the last partition.
2708         (tree_loop_distribution): Seed partitions from reductions as well.
2709
2710 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
2711
2712         PR tree-optimization/56125
2713         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
2714         pow(x,c) into sqrt(x) * powi(x, n/2) or
2715         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
2716         optimizing for size.
2717         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
2718         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
2719         integer.
2720
2721         PR tree-optimization/56094
2722         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
2723         to UNKNOWN_LOCATION while gimplifying expr.
2724
2725 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
2726
2727         PR target/56114
2728         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
2729         operand 0 in movabs insn template for -masm=intel asm alternative.
2730         (*movabs<mode>_2): Ditto for operand 1.
2731
2732 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
2733
2734         PR target/54663
2735         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
2736         of microblaze-c.o
2737
2738 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2739
2740         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
2741         tm_file.
2742
2743 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2744
2745         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
2746         Undef to avoid warning.
2747
2748 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
2749
2750         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
2751         * configure: Regenerate.
2752
2753 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
2754
2755         PR tree-optimization/56098
2756         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
2757         for stmts with volatile ops.
2758         (cond_store_replacement): Don't optimize if assign has volatile ops.
2759         (cond_if_else_store_replacement_1): Don't optimize if either
2760         then_assign or else_assign have volatile ops.
2761         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
2762         volatile ops.
2763
2764 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
2765
2766         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
2767
2768 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
2769
2770         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
2771         missing ':' in asm example.
2772
2773 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
2774
2775         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
2776         entries into lane and laneq entries.
2777         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
2778         Remove AdvSIMD scalar modes.
2779         (aarch64_sq<r>dmulh_laneq<mode>): New.
2780         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
2781         modes.
2782         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
2783         builtin implementations to relfect changes in RTL in aarch64-simd.md.
2784         * config/aarch64/iterators.md (VCOND): New.
2785         (VCONQ): New.
2786
2787 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
2788
2789         PR target/54222
2790         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
2791         Add NULL LIBNAME argument to existing definitions.
2792         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
2793         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
2794         * config/avr/avr.c (DEF_BUILTIN): Same.
2795         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
2796         (avr_expand_builtin): Expand to a vanilla call if a libgcc
2797         implementation is available (DECL_ASSEMBLER_NAME is set).
2798         (avr_fold_absfx): New static function.
2799         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
2800         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
2801         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
2802         AVR_BUILTIN_ABSLLK.
2803         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
2804         (abshk, absk, abslk, absllk): Provide as static inline functions.
2805
2806 2013-01-25  Marek Polacek  <polacek@redhat.com>
2807
2808         PR tree-optimization/56035
2809         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
2810
2811 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
2812
2813         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
2814         (*movtf_internal_rex64): Add (!o,C) alternative
2815         (*movxf_internal_rex64): Ditto.
2816         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
2817
2818 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
2819
2820         * doc/invoke.texi: fix typo.
2821         * doc/objc.texi: fix typo.
2822
2823 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
2824
2825         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
2826         for the first two alternatives.
2827
2828 2013-01-24  Diego Novillo  <dnovillo@google.com>
2829
2830         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
2831         (ggc-zone.o): Remove.
2832         * configure.ac: Remove option --with-gc.
2833         * configure: Re-generate.
2834         * doc/install.texi: Remove documentation for --with-gc.
2835         * gengtype.c (write_enum_defn): Remove.  Update all users.
2836         (write_Types_process_field): Remove generation of gt_e_* argument.
2837         (output_type_enum): Remove.  Update all users.
2838         (write_enum_defn): Remove.  Update all users.
2839         (enum alloc_zone): Remove.  Update all users.
2840         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
2841         * ggc-common.c (ggc_splay_alloc): Remove first argument.
2842         Update all callers.
2843         (struct ptr_data): Remove field TYPE.  Update all users.
2844         (gt_pch_note_object): Remove argument TYPE.  Update all users.
2845         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
2846         Update all users.
2847         * ggc-none.c (ggc_alloc_typed_stat): Remove.
2848         (struct alloc_zone): Remove.
2849         (ggc_internal_alloc_zone_stat): Remove.
2850         (ggc_internal_cleared_alloc_zone_stat): Remove.
2851         * ggc-page.c (ggc_alloc_typed_stat): Remove.
2852         (ggc_pch_count_object): Remove last argument.  Update all users.
2853         (ggc_pch_alloc_object): Remove last argument.  Update all users.
2854         (struct alloc_zone): Remove.
2855         * ggc-zone.c: Remove.
2856         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
2857         (struct alloc_zone): Remove.
2858         (ggc_alloc_typed_stat): Remove.
2859         (ggc_alloc_typed): Remove.
2860         (ggc_splay_alloc): Remove first argument.
2861         (rtl_zone): Remove.  Update all users.
2862         (tree_zone): Remove.  Update all users.
2863         (tree_id_zone): Remove.  Update all users.
2864         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
2865         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
2866         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
2867         * tree-ssanames.c: Remove references to zone allocator in comments.
2868
2869 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
2870
2871         * config/avr/avr.c (avr_out_fract): Make register numbers that
2872         might be outside of source operand signed.
2873
2874 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
2875
2876         * config/i386/constraints.md (Yf): New constraint.
2877         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
2878         of f constraint to conditionaly disable x87 register preferences.
2879         (*movdf_internal): Ditto.
2880         (*movsf_internal): Ditto.
2881
2882 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
2883
2884         PR inline-asm/55934
2885         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
2886         that have operands with impossible constraints.
2887         Add a FIXME for a speed-up opportunity.
2888         * lra-constraints.c (process_alt_operands): Verify that a class
2889         selected from constraints on asms is valid for the operand mode.
2890         (curr_insn_transform): Remove incorrect comment.
2891
2892 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
2893
2894         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
2895         TOC operand is a valid symbol ref in the constant pool.
2896
2897 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2898
2899         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
2900
2901 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
2902
2903         PR target/54222
2904         * config/avr/stdfix.h: New file.
2905         * t-avr (stdfix-gcc.h): New rule to build it.
2906         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
2907
2908 2013-01-23  Kostya Serebryany  <kcc@google.com>
2909
2910         * config/darwin.h: remove dependency on
2911         CoreFoundation (asan on Mac OS).
2912
2913 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
2914
2915         PR target/49069
2916         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
2917         instead of cmpdi_operand for first comparison operand.
2918         Don't assert that comparison operands aren't both constants.
2919
2920 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
2921
2922         * doc/install.texi (Downloading the Source): Update references to
2923         downloading separate components.
2924
2925 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
2926
2927         * doc/extend.texi (__int128): Improve grammar.
2928
2929 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
2930
2931         PR target/56028
2932         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
2933         alternative to (o,r).
2934         (*movdi_internal_rex64): Remove (!o,n) alternative.
2935         (DImode immediate->memory splitter): Remove.
2936         (DImode immediate->memory peephole2): Remove.
2937         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
2938         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
2939         alternative to (!o,*r).
2940         (*movtf_internal_sse): New pattern.
2941         (*movxf_internal_rex64): New pattern.
2942         (*movxf_internal): Disable for TARGET_64BIT.
2943         (*movdf_internal_rex64): Remove (!o,F) alternative.
2944
2945 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
2946
2947         PR middle-end/56074
2948         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
2949         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
2950         * tree-vect-loop-manip.c (find_loop_location): Also ignore
2951         stmt locations where LOCATION_LOCUS of the stmt location is
2952         UNKNOWN_LOCATION or BUILTINS_LOCATION.
2953
2954         PR target/55686
2955         * config/i386/i386.md (UNSPEC_STOS): New.
2956         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
2957         *strsetqi_1): Add UNSPEC_STOS.
2958
2959 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
2960
2961         PR c++/56067
2962         * doc/invoke.texi: Remove left over -Wsynth example.
2963
2964 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
2965
2966         PR tree-optimization/56051
2967         * fold-const.c (fold_binary_loc): Don't fold
2968         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
2969         a narrowing conversion, or widening conversion from signed
2970         to unsigned.
2971
2972 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
2973
2974         PR rtl-optimization/56023
2975         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
2976         dependent on debug instruction.
2977
2978 2013-01-21  Martin Jambor  <mjambor@suse.cz>
2979
2980         PR middle-end/56022
2981         * function.c (allocate_struct_function): Call
2982         invoke_set_current_function_hook earlier.
2983
2984 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
2985
2986         * reload1.c (init_reload): Only initialize reload_obstack
2987         during the first call.
2988
2989 2013-01-21  Marek Polacek  <polacek@redhat.com>
2990
2991         * cfgloop.c (verify_loop_structure): Fix up grammar.
2992
2993 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
2994
2995         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
2996         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
2997
2998 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2999
3000         PR target/56058
3001         * config/arm/marvell-pj4.md: Update copyright year.
3002         Fix up use of alu to alu_reg and simple_alu_imm.
3003
3004 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
3005
3006         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
3007
3008 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
3009
3010         PR target/55433
3011         * lra-constraints.c (curr_insn_transform): Don't reuse original
3012         insn for secondary memory move when memory mode should be different.
3013
3014 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3015
3016         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
3017         atomic_storedi_1): New patterns.
3018
3019 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3020
3021         btver2 pipeline descriptions.
3022         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
3023         descriptions.
3024         * config/i386/i386.md (btver2_decode): New type attributes.
3025         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
3026         type attributes.
3027         * config/i386/btver2.md: New file describing btver2 pipelines.
3028
3029 2013-01-19  Andrew Pinski  <apinski@cavium.com>
3030
3031         PR tree-optimization/52631
3032         * tree-ssa-sccvn (visit_use): Before looking up the original
3033         statement, try looking up the simplified expression.
3034
3035 2013-01-19  Anthony Green  <green@moxielogic.com>
3036
3037         * config/moxie/moxie.c (moxie_expand_prologue): Set
3038         current_function_static_stack_size.
3039
3040 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
3041
3042         PR tree-optimization/56029
3043         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
3044         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
3045
3046 2013-01-18  Sharad Singhai  <singhai@google.com>
3047
3048         PR tree-optimization/55995
3049         * dumpfile.c (dump_loc): Print location only if available.
3050         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
3051
3052 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
3053
3054         PR target/55433
3055         * lra-constraints.c (curr_insn_transform): Reuse original insn for
3056         secondary memory move.
3057         (inherit_reload_reg): Use rclass instead of cl for
3058         check_secondary_memory_needed_p.
3059
3060 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
3061
3062         PR middle-end/56015
3063         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
3064         the case where writing real complex part of target modifies op1.
3065
3066 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
3067
3068         * config/aarch64/aarch64-simd.md
3069         (aarch64_vcond_internal<mode>): Handle unordered cases.
3070         * config/aarch64/iterators.md (v_cmp_result): New.
3071
3072 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
3073             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3074
3075         * config/arm/marvell-pj4.md: New file.
3076         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
3077         * config/arm/arm.md (generic_sched): Add marvell_pj4.
3078         (generic_vfp): Likewise.
3079         * config/arm/arm-cores.def: Add marvell-pj4.
3080         * config/arm/arm-tune.md: Regenerate.
3081         * config/arm/arm-tables.opt: Regenerate.
3082         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
3083         * doc/invoke.texi: Document marvell-pj4.
3084
3085 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
3086
3087         * config/aarch64/arm_neon.h: Map scalar types to standard types.
3088
3089 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
3090
3091         PR debug/54114
3092         PR debug/54402
3093         PR debug/49888
3094         * var-tracking.c (negative_power_of_two_p): New.
3095         (global_get_addr_cache, local_get_addr_cache): New.
3096         (get_addr_from_global_cache, get_addr_from_local_cache): New.
3097         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
3098         heading comment.
3099         (vt_stack_offset_p): Remove.
3100         (vt_canon_true_dep): Always canonicalize loc's address.
3101         (clobber_overlapping_mems): Make sure we have a MEM.
3102         (local_get_addr_clear_given_value): New.
3103         (val_reset): Clear local cached entries.
3104         (compute_bb_dataflow): Create and release the local cache.
3105         Disable duplicate MEMs clobbering.
3106         (emit_notes_in_bb): Clobber MEMs likewise.
3107         (vt_emit_notes): Create and release the local cache.
3108         (vt_initialize, vt_finalize): Create and release the global
3109         cache, respectively.
3110         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
3111
3112 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
3113
3114         PR libmudflap/53359
3115         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
3116         not found in the symtab.
3117
3118 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
3119
3120         PR debug/56006
3121         PR rtl-optimization/55547
3122         PR rtl-optimization/53827
3123         PR debug/53671
3124         PR debug/49888
3125         * alias.c (offset_overlap_p): New, factored out of...
3126         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
3127         the conservative special case for symbolic constants.  Don't
3128         adjust zero sizes on alignment.
3129
3130 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
3131
3132         PR rtl-optimization/52573
3133         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
3134         REG_UNUSED for the same register.
3135
3136 2013-01-17  Richard Biener  <rguenther@suse.de>
3137             Marek Polacek  <polacek@redhat.com>
3138
3139         PR rtl-optimization/55833
3140         * loop-unswitch.c (unswitch_loops): Move loop verification...
3141         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
3142         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
3143         Set it to true when we're removing a loop from hierarchy tree in
3144         an irreducible region.
3145         (fix_bb_placements): Adjust caller.
3146         (fix_loop_placements): Likewise.
3147
3148 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
3149
3150         * config/avr/builtins.def (DEF_BUILTIN): Factor out
3151         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
3152         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
3153         Remove ID.  Adjust comments.
3154         * config/avr/avr-c.c (avr_builtin_name): Remove.
3155         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
3156         * config/avr/avr.c (avr_tolower): New static function.
3157         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
3158         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
3159         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
3160         default expansion.
3161
3162 2013-01-17  Jan Hubicka  <jh@suse.cz>
3163
3164         PR tree-optimization/55273
3165         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
3166
3167 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
3168
3169         PR target/55981
3170         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
3171         store through atomic_store<mode>_1.
3172         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
3173
3174 2013-01-17  Martin Jambor  <mjambor@suse.cz>
3175
3176         PR tree-optimizations/55264
3177         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
3178         for virtual methods.
3179         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
3180         virtual methods before inlining is over.
3181         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
3182         virtual functions.
3183         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
3184         non-virtual.
3185
3186 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
3187
3188         PR rtl-optimization/56005
3189         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
3190         pending reads for prefetch.
3191
3192 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
3193
3194         * config/aarch64/aarch64.md
3195         (*cstoresi_neg_uxtw): New pattern.
3196         (*cmovsi_insn_uxtw): New pattern.
3197         (*<optab>si3_uxtw): New pattern.
3198         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
3199         (*<optab>si3_insn_uxtw): New pattern.
3200         (*bswapsi2_uxtw): New pattern.
3201
3202 2013-01-16  Richard Biener  <rguenther@suse.de>
3203
3204         * tree-inline.c (tree_function_versioning): Remove set but
3205         never used variable.
3206
3207 2013-01-16  Richard Biener  <rguenther@suse.de>
3208
3209         PR tree-optimization/55964
3210         * tree-flow.h (rename_variables_in_loop): Remove.
3211         (rename_variables_in_bb): Likewise.
3212         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
3213         (copy_loop_before): Adjust and delete update-ssa status.
3214         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
3215         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
3216         (rename_variables_in_loop): Remove.
3217         (slpeel_update_phis_for_duplicate_loop): Likewise.
3218         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
3219         use available cfg machinery instead of duplicating it.
3220         Update PHI nodes and perform poor-mans SSA update here.
3221         (slpeel_tree_peel_loop_to_edge): Adjust.
3222
3223 2013-01-16  Richard Biener  <rguenther@suse.de>
3224
3225         PR tree-optimization/54767
3226         PR tree-optimization/53465
3227         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
3228         (vrp_visit_phi_node): For PHI arguments coming via backedges
3229         drop all symbolical range information.
3230         (execute_vrp): Compute backedges.
3231
3232 2013-01-16  Richard Biener  <rguenther@suse.de>
3233
3234         * doc/install.texi: Update CLooG and ISL requirements to
3235         0.18.0 and 0.11.1.
3236
3237 2013-01-16  Christian Bruel  <christian.bruel@st.com>
3238
3239         PR target/55301
3240         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
3241         (broken_move): Handle UNSPECV_SP_SWITCH_B.
3242         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
3243
3244 2013-01-16  DJ Delorie  <dj@redhat.com>
3245
3246         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
3247         (UNSPECV_SP_SWITCH_E): New.
3248         (sp_switch_1): Change to an unspec.
3249         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
3250         replace $r15.
3251
3252 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
3253
3254         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
3255         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
3256         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
3257         (expand_mem_thread_fence): Ditto.
3258         (expand_mem_signal_fence): Ditto.
3259         (expand_atomic_load): Ditto.
3260         (expand_atomic_store): Ditto.
3261
3262 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
3263
3264         PR rtl-optimization/55547
3265         PR rtl-optimization/53827
3266         PR debug/53671
3267         PR debug/49888
3268         * alias.c (memrefs_conflict_p): Set sizes to negative after
3269         AND adjustments.
3270
3271 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
3272
3273         PR target/55940
3274         * function.c (thread_prologue_and_epilogue_insns): Always
3275         add crtl->drap_reg to set_up_by_prologue.set, even if
3276         stack_realign_drap is false.
3277
3278 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3279
3280         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
3281         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
3282         *call): Fix indention.
3283
3284 2013-01-15  Tom de Vries  <tom@codesourcery.com>
3285
3286         PR target/55876
3287         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
3288         Update comment.
3289
3290 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
3291
3292         PR rtl-optimization/55153
3293         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
3294
3295 2013-01-15  Martin Jambor  <mjambor@suse.cz>
3296
3297         PR tree-optimization/55920
3298         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
3299         accesses as grp_to_be_debug_replaced.
3300
3301 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
3302
3303         PR tree-optimization/55920
3304         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
3305         there is non-useless type conversion needed from debug rhs to lhs,
3306         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
3307
3308 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
3309             Mikael Pettersson  <mikpe@it.uu.se>
3310
3311         PR target/43961
3312         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
3313         Thumb.
3314         (ASM_OUTPUT_CASE_LABEL): Remove.
3315         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
3316         * final.c (shorten_branches): Update alignment of labels before
3317         jump tables if CASE_VECTOR_SHORTEN_MODE.
3318
3319 2013-01-15  Richard Biener  <rguenther@suse.de>
3320
3321         PR bootstrap/55961
3322         * system.h: Do not include gmp.h for building host tools.
3323
3324 2013-01-15  Richard Biener  <rguenther@suse.de>
3325
3326         PR middle-end/55882
3327         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
3328         account for bitpos when computing alignment.
3329
3330 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
3331
3332         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
3333         (ix86_target_macros_internal): Likewise.
3334
3335         * config/i386/i386.c (m_CORE2I7): Removed.
3336         (m_CORE_HASWELL): New macro.
3337         (m_CORE_ALL): Likewise.
3338         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
3339         (initial_ix86_arch_features): Likewise.
3340         (processor_target_table): Initializations for Core avx2.
3341         (cpu_names): New names "core-avx2".
3342         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
3343         PROCESSOR_CORE_HASWELL.
3344         (ix86_issue_rate): New case.
3345         (ia32_multipass_dfa_lookahead): Likewise.
3346         (ix86_sched_init_global): Likewise.
3347
3348         * config/i386/i386.h (TARGET_HASWELL): New macro.
3349         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
3350         (processor_type): New PROCESSOR_HASWELL.
3351
3352 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
3353
3354         PR tree-optimization/55955
3355         * tree-vect-loop.c (vectorizable_reduction): Give up early on
3356         *SHIFT_EXPR and *ROTATE_EXPR codes.
3357
3358         PR tree-optimization/48766
3359         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
3360         -ftrapv disable -fwrapv.
3361
3362 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
3363
3364         PR target/55974
3365         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
3366         etc. to 1 and not to __flash.
3367         Use LL suffix for __INT24_MAX__ with -mint8.
3368         Use ULL suffix for __UINT24_MAX__ with -mint8.
3369
3370 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
3371
3372         * config/avr/avr-arch.h
3373         (struct base_arch_s): Use typedef avr_arch_t instead.
3374         (struct arch_info_s): Use typedef avr_arch_info_t instead.
3375         (struct mcu_type_s): Use typedef avr_mcu_t instead.
3376         * config/avr/avr.c: Same.
3377         * config/avr/avr-devices.c: Same.
3378         * config/avr/driver-avr.c: Same.
3379         * config/avr/gen-avr-mmcu-texi.c: Same.
3380         * config/avr/avr-mcus.def: Adjust comment.
3381
3382 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
3383
3384         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
3385         * config/aarch64/iterators.md (VALLDI): New.
3386
3387 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
3388             Andi Kleen  <ak@linux.intel.com>
3389
3390         PR target/55948
3391         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
3392         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
3393         memmodel flag.
3394
3395 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
3396
3397         * config/avr/avr-stdint.h: Remove trailing blanks.
3398         * config/avr/avr-log.h: Same.
3399         * config/avr/avr-arch.h: Same.
3400         * config/avr/avr-devices.c: Same.
3401         * config/avr/avr-dimode.md: Same.
3402         * config/avr/predicates.md: Same.
3403         * config/avr/avr-c.c: Same.  And fix typo.
3404
3405         * config/avr/avr-protos.h: Same.  And:
3406         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
3407         (init_cumulative_args): Rename to avr_init_cumulative_args.
3408         (expand_prologue): Rename to avr_expand_prologue.
3409         (expand_epilogue): Rename to avr_expand_epilogue.
3410         (adjust_insn_length): Rename to avr_adjust_insn_length.
3411         (notice_update_cc): Rename to avr_notice_update_cc.
3412         (final_prescan_insn): Rename to avr_final_prescan_insn.
3413         * config/avr/avr.c: Same.
3414         * config/avr/avr.h: Same.
3415         * config/avr/avr.md: Remove trailing blanks.
3416         (prologue): Use avr_expand_prologue.
3417         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
3418
3419 2013-01-14  Richard Biener  <rguenther@suse.de>
3420
3421         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
3422         verify_location, collect_subblocks): New functions.
3423         (verify_gimple_in_cfg): Verify that locations only reference
3424         BLOCKs in the functions BLOCK tree.
3425
3426 2013-01-14  Richard Biener  <rguenther@suse.de>
3427
3428         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
3429         PHI argument.
3430         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
3431         unshare reference.
3432         (insert_out_of_ssa_copy_on_edge): Likewise.
3433         (rewrite_close_phi_out_of_ssa): Likewise.
3434         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
3435         debug expressions.
3436         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
3437         propagated constants.
3438         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
3439         can not be shared.
3440
3441 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
3442
3443         * config/avr/avr-modes.def: Add GPL copyright notice.
3444
3445 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
3446
3447         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
3448         MEMMODEL_MASK to determine memory model.
3449         (atomic_store<mode>): Ditto from operands[2].
3450         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
3451
3452 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
3453
3454         PR fortran/55935
3455         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
3456         (fold_gimple_assign): Don't call unshare_expr here.
3457         (fold_ctor_reference): Call unshare_expr.
3458
3459 2013-01-13  Terry Guo  <terry.guo@arm.com>
3460
3461         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
3462         * doc/fragments.texi: Document MULTILIB_REUSE.
3463         * gcc.c (multilib_reuse): New internal spec.
3464         (set_multilib_dir): Also search multilib from multilib_reuse.
3465         * genmultilib (tmpmultilib3): Refactor code.
3466         (tmpmultilib4): Ditto.
3467         (multilib_reuse): New multilib argument.
3468
3469 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
3470
3471         * Makefile.in: Update copyright.
3472
3473 2013-01-12  Tom de Vries  <tom@codesourcery.com>
3474
3475         PR middle-end/55890
3476         * calls.c (expand_call): Check if arg_nr is valid.
3477
3478 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3479
3480         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
3481         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
3482         documentation.  Add missing '__' in front of
3483         __builtin_ia32_packssdw256.
3484
3485 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3486
3487         PR target/55719
3488         * config/s390/s390.c (s390_preferred_reload_class): Do not return
3489         NO_REGS for larl operands.
3490         (s390_reload_larl_operand): Use s390_load_address instead of
3491         emit_move_insn.
3492
3493 2013-01-11  Richard Biener  <rguenther@suse.de>
3494
3495         * tree-cfg.c (verify_node_sharing_1): Split out from ...
3496         (verify_node_sharing): ... here.
3497         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
3498
3499 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
3500
3501         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
3502         Substitute TREECHECKING.
3503         * configure: Regenerate.
3504         * Makefile.in (TREECHECKING): New.
3505
3506 2013-01-11  Richard Guenther  <rguenther@suse.de>
3507
3508         PR tree-optimization/44061
3509         * tree-vrp.c (extract_range_basic): Compute zero as
3510         value-range for __builtin_constant_p of function parameters.
3511
3512 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
3513
3514         Update copyright years.
3515
3516 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
3517
3518         PR rtl-optimization/55672
3519         * lra-eliminations.c (mark_not_eliminable): Permit addition with
3520         const to be eliminable.
3521
3522 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
3523
3524         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
3525         * configure: Regenerate.
3526
3527 2013-01-10  Richard Biener  <rguenther@suse.de>
3528
3529         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
3530
3531 2013-01-10  Richard Biener  <rguenther@suse.de>
3532
3533         PR bootstrap/55792
3534         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
3535         locations for virtual PHI arguments.
3536         (rewrite_update_phi_arguments): Likewise.
3537
3538 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
3539
3540         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
3541         on to assembler.
3542
3543 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
3544
3545         PR tree-optimization/55921
3546         * tree-complex.c (expand_complex_asm): New function.
3547         (expand_complex_operations_1): Call it for GIMPLE_ASM.
3548
3549 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3550
3551         PR target/55718
3552         * config/s390/s390.c (s390_symref_operand_p)
3553         (s390_loadrelative_operand_p): Merge the two functions.
3554         (s390_check_qrst_address, print_operand_address): Add parameters
3555         to s390_loadrelative_operand_p invokation.
3556         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
3557         (s390_reload_larl_operand, s390_secondary_reload): Use
3558         s390_loadrelative_operand_p instead of s390_symref_operand_p.
3559         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
3560
3561 2013-01-09  Mike Stump  <mikestump@comcast.net>
3562
3563         * dse.c (record_store): Remove unnecessary assert.
3564
3565 2013-01-09  Jan Hubicka  <jh@suse.cz>
3566
3567         PR tree-optimization/55569
3568         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
3569         * cfgloop.h (scale_loop_profile): Likewise.
3570
3571 2013-01-09  Jan Hubicka  <jh@suse.cz>
3572
3573         PR lto/45375
3574         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
3575         functions.
3576         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
3577
3578 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
3579
3580         PR middle-end/55114
3581         * expr.h (maybe_emit_group_store): Declare.
3582         * expr.c (maybe_emit_group_store): New function.
3583         * builtins.c (expand_builtin_int_roundingfn): Call it.
3584         (expand_builtin_int_roundingfn_2): Likewise.
3585
3586 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
3587
3588         PR rtl-optimization/55829
3589         * lra-constraints.c (match_reload): Add code for absent output.
3590         (curr_insn_transform): Add code for reloads of matched inputs
3591         without output.
3592
3593 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
3594
3595         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
3596         attribute of movddup insn to DF.
3597         (*vec_interleave_lowv2df): Ditto.
3598         (vec_dupv2df): Ditto.
3599
3600 2013-01-09  Jan Hubicka  <jh@suse.cz>
3601
3602         PR tree-optimiation/55875
3603         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
3604         EVERY_ITERATION parameter.
3605         (number_of_iterations_exit): Check if exit is executed every iteration.
3606         (idx_infer_loop_bounds): Similarly here.
3607         (n_of_executions_at_most): Simplify
3608         to only test for cases where statement is dominated by the
3609         particular bound; handle correctly the "postdominance" test.
3610         (scev_probably_wraps_p): Use max loop iterations info
3611         as a global bound first.
3612
3613 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
3614             Nick Clifton  <nickc@redhat.com>
3615
3616         * config/v850/v850.md (cbranchsf4): New pattern.
3617         (cstoresf4): New pattern.
3618         (cbranchdf4): New pattern.
3619         (cstoredf4): New pattern.
3620         (movsicc): Disallow floating point comparisons.
3621         (cmpsf_le_insn): Fix order of operators.
3622         (cmpsf_lt_insn): Likewise.
3623         (cmpsf_eq_insn): Likewise.
3624         (cmpdf_le_insn): Likewise.
3625         (cmpdf_lt_insn): Likewise.
3626         (cmpdf_eq_insn): Likewise.
3627         (cmpsf_ge_insn): Use LE comparison.
3628         (cmpdf_ge_insn): Likewise.
3629         (cmpsf_gt_insn): Use LT comparison.
3630         (cmpdf_gt_insn): Likewise.
3631         (cmpsf_ne_insn): Delete pattern.
3632         (cmpdf_ne_insn): Delete pattern.
3633         * config/v850/v850.c (v850_gen_float_compare): Use
3634         gen_cmpdf_eq_insn for NE comparison.
3635         (v850_float_z_comparison_operator)
3636         (v850_float_nz_comparison_operator): Move from here ...
3637         * config/v850/predicates.md: ... to here.  Move GT and GE
3638         comparisons into v850_float_z_comparison_operator.
3639         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
3640         Delete prototype.
3641         (v850_float_nz_comparison_operator): Likewise.
3642
3643 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3644
3645         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
3646         with calls to gen_insvsi/gen_insvdi.
3647
3648 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3649
3650         * config/i386/i386.c (initial_ix86_tune_features): Set up
3651         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
3652
3653 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
3654             Jakub Jelinek  <jakub@redhat.com>
3655
3656         PR tree-optimization/48189
3657         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
3658         If nitercst is 0, don't predict the exit edge.
3659
3660 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3661
3662         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
3663         in asm_fprintf with reg_names.
3664         (aarch64_print_operand_address): Likewise.
3665         (aarch64_return_addr): Likewise.
3666         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
3667
3668 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3669
3670         * config/pa/pa.h (VAL_U6_BITS_P): Define.
3671         (INT_U6_BITS): Likewise.
3672         * config/pa/predicates.md (uint6_operand): New predicate.
3673         (shift5_operand, shift6_operand): Likewise.
3674         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
3675         arith32_operand.
3676         (lshrdi3): Use shift6_operand.
3677         (shrpsi4, shrpdi4): New insn patterns.
3678         (extzv): Delete expander.
3679         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
3680         predicates in unamed zero extract patterns.  Tighten common constraint.
3681         (extv): Delete expander.
3682         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
3683         predicates in unamed sign extract patterns.  Tighten common constraint.
3684         (insv): Delete expander.
3685         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
3686         predicates in unamed insert patterns.  Tighten common constraint.
3687         Change uint32_operand predicate to uint6_operand predicate in unamed
3688         DImode pattern to insert constant values of type 1...1xxxx.
3689
3690 2013-01-04  Jan Hubicka  <jh@suse.cz>
3691
3692         PR tree-optimization/55823
3693         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
3694         issue.
3695
3696 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
3697             Uros Bizjak  <ubizjak@gmail.com>
3698
3699         PR rtl-optimization/55845
3700         * df-problems.c (can_move_insns_across): Stop scanning at
3701         volatile_insn_p source instruction or give up if
3702         across_from .. across_to range contains any volatile_insn_p
3703         instructions.
3704
3705 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
3706
3707         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
3708         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
3709         Declare.
3710         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
3711         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
3712
3713 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
3714
3715         PR fortran/55341
3716         * asan.c (asan_clear_shadow): New function.
3717         (asan_emit_stack_protection): Use it.
3718
3719 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
3720
3721         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
3722         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
3723         with tab instead of space.
3724
3725 2013-01-08  Nick Clifton  <nickc@redhat.com>
3726
3727         * config/rl78/rl78.c (rl78_expand_prologue): Always select
3728         register bank 0 at the start of an interrupt handler.
3729         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
3730         MDBH registers.
3731
3732 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
3733
3734         * config/aarch64/aarch64-simd.md
3735         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
3736         (aarch64_simd_bsl): Likewise.
3737         (aarch64_vcond_internal<mode>): Likewise.
3738         (vcond<mode><mode>): Likewise.
3739         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
3740         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
3741
3742 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
3743
3744         * config/aarch64/aarch64-builtins.c
3745         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
3746
3747 2013-01-08  Martin Jambor  <mjambor@suse.cz>
3748
3749         PR debug/55579
3750         * tree-sra.c (analyze_access_subtree): Return true also after
3751         potentially creating a debug-only replacement.
3752
3753 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
3754
3755         PR middle-end/55890
3756         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
3757
3758         PR tree-optimization/54120
3759         * tree-vrp.c (range_fits_type_p): Don't allow
3760         src_precision < precision from signed vr to unsigned_p
3761         if vr->min or vr->max is negative.
3762         (simplify_float_conversion_using_ranges): Test can_float_p
3763         against CODE_FOR_nothing.
3764
3765 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
3766             Richard Biener  <rguenther@suse.de>
3767
3768         PR middle-end/55851
3769         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
3770         types instead of just INTEGER_TYPE types.
3771
3772 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
3773
3774         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
3775         TF_SIZE): Define.
3776
3777 2013-01-07  Steve Ellcey  <sellcey@mips.com>
3778
3779         PR target/42661
3780         * config/mips/mips.opt: Change mad to mmad to match documentation.
3781
3782 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
3783
3784         PR target/55897
3785         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
3786         .progmemx.data now.
3787
3788 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
3789
3790         PR target/55897
3791         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
3792         (avr_addrspace_t): Add .section_name field.
3793         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
3794         array size.
3795         (avr_addrspace): Same.  Initialize .section_name.  Remove last
3796         NULL entry.  Put __memx into .progmemx.data.
3797         (progmem_section_prefix): Remove.
3798         (avr_asm_init_sections): No need to initialize progmem_section.
3799         (avr_asm_named_section): Use avr_addrspace[].section_name to get
3800         section name prefix.
3801         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
3802         retrieve the progmem section.
3803         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
3804         boundary to run over avr_addrspace[].
3805         (avr_register_target_pragmas): Ditto.
3806
3807 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
3808
3809         * varasm.c (output_constant_def_contents): For asan_protect_global
3810         protected strings, adjust DECL_ALIGN if needed, before testing for
3811         anchored symbols.
3812         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
3813         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
3814         normal decls.
3815         (output_object_block): For asan protected decls, emit asan padding
3816         after their contents.
3817         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
3818         (asan_finish_file): Test it here instead.
3819
3820 2013-01-07  Nick Clifton  <nickc@redhat.com>
3821             Matthias Klose  <doko@debian.org>
3822             Doug Kwan  <dougkwan@google.com>
3823             H.J. Lu  <hongjiu.lu@intel.com>
3824
3825         PR driver/55470
3826         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
3827
3828         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
3829
3830         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
3831
3832         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
3833
3834         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
3835
3836 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
3837
3838         PR target/54461
3839         * doc/install.texi (Cross-Compiler-Specific Options): Document
3840         --with-avrlibc.
3841
3842 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
3843
3844         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
3845         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
3846         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
3847         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
3848         vqmovun_high_s64): Fix source operand number and update copyright.
3849
3850 2013-01-07  Richard Biener  <rguenther@suse.de>
3851
3852         PR middle-end/55890
3853         * gimple.h (gimple_call_builtin_p): New overload.
3854         * gimple.c (validate_call): New function.
3855         (gimple_call_builtin_p): Likewise.
3856         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3857         Use gimple_call_builtin_p.
3858         (find_func_clobbers): Likewise.
3859         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
3860         (strlen_optimize_stmt): Likewise.
3861
3862 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
3863
3864         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
3865         (vld1q_dup_*): Likewise.
3866         (vld1_*): Likewise.
3867         (vld1q_*): Likewise.
3868         (vld1_lane_*): Likewise.
3869         (vld1q_lane_*): Likewise.
3870
3871 2013-01-07  Richard Biener  <rguenther@suse.de>
3872
3873         * lto-streamer.h (LTO_minor_version): Bump to 2.
3874
3875 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
3876
3877         * config/aarch64/aarch64-protos.h
3878         (aarch64_const_double_zero_rtx_p): Rename to...
3879         (aarch64_float_const_zero_rtx_p): ...this.
3880         (aarch64_float_const_representable_p): New.
3881         (aarch64_output_simd_mov_immediate): Likewise.
3882         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
3883         move immediate case.
3884         * config/aarch64/aarch64.c
3885         (aarch64_const_double_zero_rtx_p): Rename to...
3886         (aarch64_float_const_zero_rtx_p): ...this.
3887         (aarch64_print_operand): Allow printing of new constants.
3888         (aarch64_valid_floating_const): New.
3889         (aarch64_legitimate_constant_p): Check for valid floating-point
3890         constants.
3891         (aarch64_simd_valid_immediate): Likewise.
3892         (aarch64_vect_float_const_representable_p): New.
3893         (aarch64_float_const_representable_p): Likewise.
3894         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
3895         (aarch64_output_simd_mov_immediate): New.
3896         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
3897         (*movdf_aarch64): Likewise.
3898         * config/aarch64/constraints.md (Ufc): New.
3899         (Y): call aarch64_float_const_zero_rtx.
3900         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
3901
3902 2013-01-07  Richard Biener  <rguenther@suse.de>
3903
3904         PR tree-optimization/55888
3905         PR tree-optimization/55862
3906         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
3907         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
3908         not if it is contained therein.
3909
3910 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
3911
3912         * config/avr/t-avr: Typo.
3913
3914 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
3915
3916         PR55243
3917         * config/avr/t-avr: Don't automatically rebuild
3918         $(srcdir)/config/avr/t-multilib
3919         $(srcdir)/config/avr/avr-tables.opt
3920         $(srcdir)/doc/avr-mmcu.texi
3921         (avr-mcus): New phony target to build them on request.
3922         (s-avr-mlib, s-avr-mmcu-texi): Remove.
3923         * avr/avr-mcus.def: Adjust comments.
3924
3925 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
3926
3927         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
3928
3929 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
3930
3931         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
3932
3933 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
3934
3935         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
3936
3937 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
3938
3939         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
3940         to generate profiling.
3941         * config/rs6000/aix64.h (LIB_SPEC): Same.
3942
3943 2013-01-04  Andrew Pinski  <apinski@cavium.com>
3944
3945         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
3946         New function.
3947         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3948
3949 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
3950
3951         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
3952         unconditionally.
3953         (ix86_expand_move): Ditto.
3954         (ix86_zero_extend_to_Pmode): Ditto.
3955         (ix86_expand_call): Ditto.
3956         (ix86_expand_special_args_builtin): Ditto.
3957         (ix86_expand_builtin): Ditto.
3958
3959 2013-01-04  Richard Biener  <rguenther@suse.de>
3960
3961         PR tree-optimization/55862
3962         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
3963         translating them through PHI nodes.
3964
3965 2013-01-04  Martin Jambor  <mjambor@suse.cz>
3966
3967         PR tree-optimization/55755
3968         * tree-sra.c (sra_modify_assign): Do not check that an access has no
3969         children when trying to avoid producing a VIEW_CONVERT_EXPR.
3970
3971 2013-01-04  Marek Polacek  <polacek@redhat.com>
3972
3973         PR middle-end/55859
3974         * opts.c (default_options_optimization): Clarify error message.
3975
3976 2013-01-04  Richard Biener  <rguenther@suse.de>
3977
3978         PR middle-end/55863
3979         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
3980         reassociation.
3981
3982 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3983
3984         PR target/53789
3985         * config/pa/pa.md (movsi): Revert previous change.
3986         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
3987         references.
3988
3989 2013-01-03  Richard Henderson  <rth@redhat.com>
3990
3991         * config/i386/i386.c (ix86_expand_move): Always assign to op1
3992         after eliminating TLS symbols.
3993
3994 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
3995
3996         PR bootstrap/50167
3997         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
3998         * graphite-poly.c (debug_gmp_value): Likewise.
3999
4000 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
4001
4002         PR target/55712
4003         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
4004         selected code model, define __code_mode_small__, __code_model_medium__,
4005         __code_model_large__, __code_model_32__ or __code_model_kernel__.
4006         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
4007         xchg temporary register with %k.  Declare temporary register as
4008         early clobbered.
4009         [__x86_64__]: For medium and large code models, preserve %rbx register.
4010
4011 2013-01-03  Richard Biener  <rguenther@suse.de>
4012
4013         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
4014         (dump_subscript): Adjust.
4015         (finalize_ddr_dependent): Do not dump redundant info.
4016         (analyze_siv_subscript): Adjust.
4017         (subscript_dependence_tester): Likewise.
4018         (compute_affine_dependence): Likewise.
4019
4020 2013-01-03  Richard Biener  <rguenther@suse.de>
4021
4022         Revert
4023         2013-01-03  Richard Biener  <rguenther@suse.de>
4024
4025         PR tree-optimization/55857
4026         * tree-vect-stmts.c (vectorizable_load): Do not setup
4027         re-alignment for invariant loads.
4028
4029         2013-01-02  Richard Biener  <rguenther@suse.de>
4030
4031         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
4032         invariant load do not generate a vector load from the scalar location.
4033
4034 2013-01-03  Richard Biener  <rguenther@suse.de>
4035
4036         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
4037         for not vectorizing.
4038         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
4039         not build INDIRECT_REFs, call get_name once only.
4040         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
4041         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
4042
4043 2013-01-03  Richard Biener  <rguenther@suse.de>
4044
4045         PR tree-optimization/55857
4046         * tree-vect-stmts.c (vectorizable_load): Do not setup
4047         re-alignment for invariant loads.
4048
4049 2013-01-03  Richard Biener  <rguenther@suse.de>
4050
4051         PR lto/55848
4052         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
4053         prefer a built-in decl.
4054
4055 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
4056
4057         * gcc.c (process_command): Update copyright notice dates.
4058         * gcov.c (print_version): Likewise.
4059         * gcov-dump.c (print_version): Likewise.
4060
4061         PR rtl-optimization/55838
4062         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
4063         iv0.step, iv1.step and step.
4064
4065 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
4066             Marc Glisse  <marc.glisse@inria.fr>
4067
4068         PR tree-optimization/55832
4069         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
4070         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
4071         integer_{one,zero}_node.
4072
4073 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
4074
4075         PR debug/54402
4076         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
4077         * var-tracking.c (reverse_op): Don't add reverse ops to
4078         VALUEs that have already
4079         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
4080
4081 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
4082
4083         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
4084
4085 2013-01-02  Teresa Johnson  <tejohnson@google.com>
4086
4087         * dumpfile.c (dump_loc): Print filename with location.
4088         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
4089         new location_t parameter to emit complete unroll message with
4090         new dump framework.
4091         (canonicalize_loop_induction_variables): Compute loops location
4092         and pass to try_unroll_loop_completely.
4093         * loop-unroll.c (report_unroll_peel): New function.
4094         (peel_loops_completely): Use new dump format with location
4095         for main dumpfile message, and invoke report_unroll_peel on success.
4096         (decide_unrolling_and_peeling): Ditto.
4097         (decide_peel_once_rolling): Remove old dumpfile message subsumed
4098         by report_unroll_peel.
4099         (decide_peel_completely): Ditto.
4100         (decide_unroll_constant_iterations): Ditto.
4101         (decide_unroll_runtime_iterations): Ditto.
4102         (decide_peel_simple): Ditto.
4103         (decide_unroll_stupid): Ditto.
4104         * cfgloop.c (get_loop_location): New function.
4105         * cfgloop.h (get_loop_location): Declare.
4106
4107 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
4108
4109         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
4110         NULL.
4111
4112 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4113
4114         PR middle-end/55198
4115         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
4116         BLKmode objects when EXPAND_MEMORY is specified.
4117
4118 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
4119
4120         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
4121         in loop predicate.
4122         (fold_builtin_cpu): Do not share cpu model decls across statements.
4123
4124 2013-01-02  Jason Merrill  <jason@redhat.com>
4125
4126         PR c++/55804
4127         * tree.c (build_array_type_1): Revert earlier change.
4128
4129 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
4130
4131         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
4132         "cortex-a57".
4133         * config/aarch64/aarch64-tune.md: Re-generate.
4134
4135 2013-01-02  Richard Biener  <rguenther@suse.de>
4136
4137         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
4138         invariant load do not generate a vector load from the scalar location.
4139
4140 2013-01-02  Richard Biener  <rguenther@suse.de>
4141
4142         PR bootstrap/55784
4143         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
4144         * configure: Regenerate.
4145
4146 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
4147
4148         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
4149         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
4150         (expand_builtin_int_roundingfn_2): Keep the original target around
4151         for the fallback case.
4152
4153 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
4154
4155         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
4156         to be clear for sign changes.
4157
4158 2013-01-01  Jan Hubicka  <jh@suse.cz>
4159
4160         * ipa-inline-analysis.c: Fix formatting.
4161
4162 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
4163
4164         PR tree-optimization/55831
4165         * tree-vect-loop.c (get_initial_def_for_induction): Use
4166         gsi_after_labels instead of gsi_start_bb.
4167 \f
4168 Copyright (C) 2013 Free Software Foundation, Inc.
4169
4170 Copying and distribution of this file, with or without modification,
4171 are permitted in any medium without royalty provided the copyright
4172 notice and this notice are preserved.