2013-02-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob4150bb821f90e8dbd90c529a689e6621f2e221a7
1 2013-02-05  Richard Biener  <rguenther@suse.de>
3         * doc/install.texi: Refer to ISL, not PPL.
5 2013-02-05  Jan Hubicka  <jh@suse.cz>
7         PR tree-optimization/55789
8         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
10 2013-02-05  Jan Hubicka  <jh@suse.cz>
12         PR tree-optimization/55789
13         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
14         the dead call anyway.
16 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
18         PR sanitizer/55374
19         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
21 2013-02-04  Alexander Potapenko  <glider@google.com>
22             Jack Howarth  <howarth@bromo.med.uc.edu>
23             Jakub Jelinek  <jakub@redhat.com>
25         PR sanitizer/55617
26         * config/darwin.c (sort_ctor_records): Stabilized qsort
27         on constructor priority by using original position.
28         (finalize_ctors): New routine to sort constructors by
29         priority before use in assemble_integer.
30         (machopic_asm_out_constructor): Use finalize_ctors if needed.
32 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
34         PR libstdc++/54314
35         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
36         about visibility on artificial decls.
37         * config/sol2.c (solaris_assemble_visibility): Likewise.
39 2013-02-04  Kai Tietz  <ktietz@redhat.com>
41         PR target/56186
42         * config/i386/i386.c (function_value_ms_64): Add additional valtype
43         argument and improve checking of return-argument types for 16-byte
44         modes.
45         (ix86_function_value_1): Add additional valtype argument on call
46         of function_value_64.
47         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
48         handling infunction_value_64 function.
50 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
52         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
54 2013-02-04  Richard Biener  <rguenther@suse.de>
56         PR tree-optimization/56188
57         * tree-ssa-structalias.c (label_visit): Consider case with
58         initially non-empty points-to set.
59         (perform_var_substitution): Dump node mapping and clean up.
61 2013-02-04  Richard Guenther  <rguenther@suse.de>
63         PR lto/56168
64         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
65         node prevail as last resort.
66         (lto_symtab_merge_decls): Remove guard on LTRANS here.
67         (lto_symtab_prevailing_decl): Builtins are their own prevailing
68         decl.
70 2013-02-04  Richard Biener  <rguenther@suse.de>
72         PR tree-optimization/56113
73         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
74         Merge into ...
75         (equiv_class_lookup_or_add): ... this.
76         (label_visit): Adjust and fix error in previous patch.
77         (perform_var_substitution): Adjust.
79 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
81         * config/sh/divtab.c: Fix formatting and comments throughout the file.
82         * config/sh/sh4-300.md: Likewise.
83         * config/sh/sh4a.md: Likewise.
84         * config/sh/constraints.md: Likewise.
85         * config/sh/sh.md: Likewise.
86         * config/sh/netbsd-elf.h: Likewise.
87         * config/sh/predicates.md: Likewise.
88         * config/sh/sh-protos.h: Likewise.
89         * config/sh/ushmedia.h: Likewise.
90         * config/sh/linux.h: Likewise.
91         * config/sh/sh.c: Likewise.
92         * config/sh/superh.h: Likewise.
93         * config/sh/elf.h: Likewise.
94         * config/sh/sh4.md: Likewise.
95         * config/sh/sh.h: Likewise.
97 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
99         * config/pa/constraints.md: Adjust unused letters.  Change "T"
100         constraint to match_test floating_point_store_memory_operand().
101         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
102         (base14_operand): New.
103         (floating_point_store_memory_operand): New.
104         (integer_store_memory_operand): Revise to use base14_operand and
105         reg_plus_base_memory_operand.
106         (move_dest_operand): Allow symbolic_memory_operands.
107         (symbolic_memory_operand): Check for LO_SOM.
108         (symbolic_operand): Change default case to break.
109         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
110         CONST_DOUBLE values to be reloaded by putting them into memory when
111         the destination is a floating point register.
112         (movdf): Remove code to handle CONST_DOUBLE.
113         (movsf): Likewise.
114         (reload_indf_r1): New.
115         (reload_insf_r1): New.
116         Consistently use "Q" and "T" constraints with integer and floating
117         point move instructions, respectively.
118         (movdi): Remove FAIL.
119         Change predicate for source operand unamed DImode move from
120         general_operand to move_src_operand.
121         (umulsidi3): Change predicate for destination operand to
122         register_operand.
123         Likewise for similar unamed patterns.
124         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
125         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
126         (hppa_legitimize_address): Simplify mask calculation.
127         (pa_emit_move_sequence): Revised handling of secondary reloads from
128         REG+D addresses for floating point loads and stores.  Directly handle
129         loading CONST0_RTX (mode) to a floating point register.
130         (pa_secondary_reload): Handle reloading DF and SFmode constant values
131         to floating point registers.  Don't restrict secondary reloads to
132         floating point registers to integer modes.  Revise some comments and
133         cleanup some code.
134         (TARGET_LEGITIMATE_ADDRESS_P): Define.
135         (pa_legitimate_address_p): New.
136         (pa_legitimize_reload_address): New.
137         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
138         (STRICT_REG_OK_FOR_BASE_P): New.
139         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
140         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
142 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
143             Andrew Dixie  <andrewd@gentrack.com>
145         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
146         flag set.
148 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
150         * expmed.c (extract_bit_field_1): Pass the full width of the
151         structure to get_best_reg_extraction_insn.
153 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
155         PR target/54601
156         * configure.ac (use_cxa_atexit): Add AIX.
157         * configure: Regenerate.
159         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
161 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
163         PR debug/54793
164         * final.c (need_profile_function): New variable.
165         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
166         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
167         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
168         notes, targetm.asm_out.function_prologue doesn't emit anything,
169         HAVE_prologue and profiler should be emitted before prologue,
170         set need_profile_function instead of emitting it.
171         (final_scan_insn): If need_profile_function, emit
172         profile_function on the first NOTE_INSN_BASIC_BLOCK or
173         NOTE_INSN_FUNCTION_BEG note.
175 2013-02-01  Richard Henderson  <rth@redhat.com>
177         * config/rs6000/rs6000.md (smulditi3): New.
178         (umulditi3): New.
180         * config/alpha/alpha.md (umulditi3): New.
182 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
184         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
185         (ASM_OUTPUT_ALIGNED_LOCAL): New.
187 2013-02-01  Richard Biener  <rguenther@suse.de>
189         PR tree-optimization/56113
190         * tree-ssa-structalias.c (label_visit): Reduce work for
191         single-predecessor nodes.
193 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
195         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
196         range isn't testing for zero.
198 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
200         PR middle-end/56113
201         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
203 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
204             Nick Clifton  <nickc@redhat.com>
206         * config/v850/constraints.md (Q): Define as a memory constraint.
207         * config/v850/predicates.md (label_ref_operand): New predicate.
208         (e3v5_shift_operand): New predicate.
209         (ior_operator): New predicate.
210         * config/v850/t-v850: Add e3v5 multilib.
211         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
212         (v850_gen_movdi): Prototype.
213         * config/v850/v850.c: Add support for e3v5 architecture.
214         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
215         TARGET_V850E_UP.
216         (construct_save_jarl): Add e3v5 long JARL support.
217         (v850_adjust_insn_length): New function.  Adjust length of call
218         insns when using e3v5 instructions.
219         (v850_gen_movdi): New function: Generate instructions to move a
220         DImode value.
221         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
222         (CPP_SPEC): Define __v850e3v5__ as appropriate.
223         (TARGET_USE_FPU): Enable for e3v5.
224         (CONST_OK_FOR_W): New macro.
225         (ADJUST_INSN_LENGTH): Define.
226         * config/v850/v850.md (UNSPEC_LOOP): Define.
227         (attr cpu): Add v850e3v5.
228         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
229         (movdi): New pattern.
230         (movdi_internal): New pattern.
231         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
232         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
233         (cstoresf4): Likewise.
234         (cstoredf4): Likewise.
235         (insv): New pattern.
236         (rotlso3_a): New pattern.
237         (rotlsi3_b): New pattern
238         (rotlsi3_v850e3v5): New pattern.
239         (doloop_begin): New pattern.
240         (fix_loop_counter): New pattern.
241         (doloop_end): New pattern.
242         (branch_normal): Add e3v5 long branch support.
243         (branch_invert): Likewise.
244         (branch_z_normal): Likewise.
245         (branch_z_invert): Likewise.
246         (branch_nz_normal): Likewise.
247         (branch_nz_invert): Likewise.
248         (call_internal_short): Add e3v5 register-indirect JARL support.
249         (call_internal_long): Likewise.
250         (call_value_internal_short): Likewise.
251         (call_value_internal_long): Likewise.
252         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
253         (mloop): New option.
254         * config.gcc: Add support for configuring v840e3v5 target.
255         * doc/invoke.texi: Document new v850 specific command line
256         options.
258 2013-01-31  Paul Koning  <ni1d@arrl.net>
260         PR debug/55059
261         PR debug/54508
262         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
263         children if parent is a class.
264         (prune_unused_types_prune): Don't add DW_AT_declaration.
266 2013-01-31  Richard Biener  <rguenther@suse.de>
268         PR tree-optimization/56157
269         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
270         match up operand with SLP child.
272 2013-01-31  Jason Merrill  <jason@redhat.com>
274         PR debug/54410
275         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
276         parameters the first time.
277         (gen_scheduled_generic_parms_dies): Check completeness here.
279 2013-01-31  Richard Biener  <rguenther@suse.de>
281         PR middle-end/53073
282         * common.opt (faggressive-loop-optimizations): New flag,
283         enabled by default.
284         * doc/invoke.texi (faggressive-loop-optimizations): Document.
285         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
286         infer_loop_bounds_from_undefined by it.
288 2013-01-31  Richard Biener  <rguenther@suse.de>
290         PR tree-optimization/56150
291         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
292         visit virtual operands.
293         (find_uses_to_rename_bb): Likewise.
295 2013-01-31  Richard Biener  <rguenther@suse.de>
297         PR tree-optimization/56150
298         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
299         mixed store non-store stmts.
301 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
303         PR sanitizer/55374
304         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
305         LIBASAN_EARLY_SPEC is defined.
306         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
307         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
308         before %o.
309         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
311         PR c++/55742
312         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
313         invalid args instead of ICEing on it.
314         (ix86_valid_target_attribute_tree): Return error_mark_node if
315         ix86_valid_target_attribute_inner_p failed.
316         (ix86_valid_target_attribute_p): Return false only if
317         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
318         target("default") attribute.
319         (sorted_attr_string): Change argument from const char * to tree,
320         merge in all target attribute arguments rather than just one.
321         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
322         instead of free.  Avoid using strcat.
323         (ix86_mangle_function_version_assembler_name): Mangle
324         target("default") as if no target attribute is present.  Adjust
325         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
326         instead of xmalloc and XDELETEVEC instead of free.
327         (ix86_function_versions): Don't return true if one of the decls
328         doesn't have target attribute.  If they don't and one of the decls
329         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
330         sorted_attr_string caller.  Use XDELETEVEC instead of free.
331         (ix86_supports_function_versions): Remove.
332         (make_name): Fix up formatting.
333         (make_dispatcher_decl): Remove resolver_name and its initialization.
334         Avoid leaking memory.
335         (is_function_default_version): Return true if there is
336         target("default") attribute rather than no target attribute at all.
337         (make_resolver_func): Avoid leaking memory.
338         (ix86_generate_version_dispatcher_body): Likewise.
339         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
340         * target.def (supports_function_versions): Remove.
341         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
342         * doc/tm.texi: Regenerated.
344 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
346         PR rtl-optimization/56144
347         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
348         for values with side effects.
350 2013-01-30  Richard Biener  <rguenther@suse.de>
352         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
353         (sparseset_pop): Likewise.
354         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
355         to be able to use quick_push in the worker loop.
357 2013-01-30  Marek Polacek  <polacek@redhat.com>
359         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
361 2013-01-30  Richard Biener  <rguenther@suse.de>
363         PR lto/56147
364         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN
365         check.
367 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
369         PR tree-optimization/56064
370         * fixed-value.c (fixed_from_double_int): New function.
371         * fixed-value.h (fixed_from_double_int): New prototype.
372         (const_fixed_from_double_int): New static inline function.
373         * fold-const.c (native_interpret_fixed): New static function.
374         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
375         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
376         (native_encode_fixed): New static function.
377         (native_encode_expr) <FIXED_CST>: Use it.
378         (native_interpret_int): Move double_int worker code to...
379         * double-int.c (double_int::from_buffer): ...this new static method.
380         * double-int.h (double_int::from_buffer): Prototype it.
382 2013-01-30  Richard Biener  <rguenther@suse.de>
384         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
385         New pointer-map and obstack.
386         (init_alias_vars): Allocate pointer-map and obstack.
387         (delete_points_to_sets): Free them.
388         (find_what_var_points_to): Cache result.
389         (find_what_p_points_to): Adjust for changed interface of
390         find_what_var_points_to.
391         (compute_points_to_sets): Likewise.
392         (ipa_pta_execute): Likewise.
394 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
396         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
397         * configure: Regenerate.
398         * config.in: Regenerate.
399         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
400         #nobits/#progbits if supported.
402 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
404         PR target/56121
405         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
406         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
407         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
409 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
411         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
412         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
414 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
416         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
417         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
419 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
421         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
422         declaration.
423         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
424         * config/arm/cortex-a7.md: New bypasses using
425         arm_mac_accumulator_is_result.
427 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
429         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
430         (cortex_a7_neon_mla): Likewise.
431         (cortex_a7_fpfmad): New reservation.
432         (cortex_a7_fpmacs): Use ffmas and update required units.
433         (cortex_a7_fpmuld): Update required units and latency.
434         (cortex_a7_fpmacd): Likewise.
435         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
436         (cortex_a7_neon). Likewise.
437         (bypass) Update participating units.
439 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
441         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
442         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
443         from fmac to ffma.
444         * config/arm/vfp11.md (vfp_farith): Use ffmas.
445         (vfp_fmul): Use ffmad.
446         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
447         (cortex_r4_fmacd): Use ffmad.
448         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
449         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
450         (cortex_a9_fmacd): Use ffmad.
451         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
452         (cortex_a8_vfp_macd): Use ffmad.
453         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
454         (cortex_a5_fpmacd): Use ffmad.
455         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
456         (cortex_a15_vfp_macd): Use ffmad.
457         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
459 2013-01-29  Jason Merrill  <jason@redhat.com>
461         PR libstdc++/54314
462         * varasm.c (default_assemble_visibility): Don't warn about
463         visibility on artificial decls.
465 2013-01-29  Richard Biener  <rguenther@suse.de>
467         PR tree-optimization/56113
468         * tree-ssa-structalias.c (equiv_class_lookup): Also return
469         the bitmap leader.
470         (label_visit): Free duplicate bitmaps and record the leader instead.
471         (perform_var_substitution): Adjust.
473 2013-01-29  Richard Biener  <rguenther@suse.de>
475         PR tree-optimization/55270
476         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
477         the CFG, schedule loops for fixup.
479 2013-01-29  Nick Clifton  <nickc@redhat.com>
481         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
482         SP_REG.
484 2013-01-28  Leif Ekblad  <leif@rdos.net>
486         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
487         * config/i386/i386.h (TARGET_RDOS): New macro.
488         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
489         * config/i386/i386.c (ix86_option_override_internal): For 64bit
490         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
491         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
492         DEFAULT_LARGE_SECTION_THRESHOLD.
493         * config/i386/i386.md (R14_REG, R15_REG): New constants.
494         * config/i386/rdos.h: New file.
495         * config/i386/rdos64.h: New file.
497 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
499         PR other/54814
500         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
501         TEST_HARD_REG_BIT.
503 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
505         PR rtl-optimization/56117
506         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
507         call cselib_lookup_from_insn on the MEM before calling
508         add_insn_mem_dependence.
510 2013-01-28  Richard Biener  <rguenther@suse.de>
512         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
513         to a stmt that didn't have one.
514         (copy_phis_for_bb): Likewise for PHI arguments.
515         (copy_debug_stmt): Likewise for debug stmts.
517 2013-01-28  Richard Biener  <rguenther@suse.de>
519         PR tree-optimization/56034
520         * tree-loop-distribution.c (enum partition_kind): Add
521         PKIND_REDUCTION.
522         (partition_builtin_p): Adjust.
523         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
524         it is the last partition.
525         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
526         up the vertex for the definition.
527         (classify_partition): Classify whether a partition is a
528         PKIND_REDUCTION, thus has uses outside of the loop.
529         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
530         Merge all PKIND_REDUCTION partitions into the last partition.
531         (tree_loop_distribution): Seed partitions from reductions as well.
533 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
535         PR tree-optimization/56125
536         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
537         pow(x,c) into sqrt(x) * powi(x, n/2) or
538         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
539         optimizing for size.
540         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
541         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
542         integer.
544         PR tree-optimization/56094
545         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
546         to UNKNOWN_LOCATION while gimplifying expr.
548 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
550         PR target/56114
551         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
552         operand 0 in movabs insn template for -masm=intel asm alternative.
553         (*movabs<mode>_2): Ditto for operand 1.
555 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
557         PR target/54663
558         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
559         of microblaze-c.o
561 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
563         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
564         tm_file.
566 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
568         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
569         Undef to avoid warning.
571 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
573         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
574         * configure: Regenerate.
576 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
578         PR tree-optimization/56098
579         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
580         for stmts with volatile ops.
581         (cond_store_replacement): Don't optimize if assign has volatile ops.
582         (cond_if_else_store_replacement_1): Don't optimize if either
583         then_assign or else_assign have volatile ops.
584         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
585         volatile ops.
587 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
589         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
591 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
593         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
594         missing ':' in asm example.
596 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
598         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
599         entries into lane and laneq entries.
600         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
601         Remove AdvSIMD scalar modes.
602         (aarch64_sq<r>dmulh_laneq<mode>): New.
603         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
604         modes.
605         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
606         builtin implementations to relfect changes in RTL in aarch64-simd.md.
607         * config/aarch64/iterators.md (VCOND): New.
608         (VCONQ): New.
610 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
612         PR target/54222
613         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
614         Add NULL LIBNAME argument to existing definitions.
615         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
616         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
617         * config/avr/avr.c (DEF_BUILTIN): Same.
618         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
619         (avr_expand_builtin): Expand to a vanilla call if a libgcc
620         implementation is available (DECL_ASSEMBLER_NAME is set).
621         (avr_fold_absfx): New static function.
622         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
623         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
624         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
625         AVR_BUILTIN_ABSLLK.
626         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
627         (abshk, absk, abslk, absllk): Provide as static inline functions.
629 2013-01-25  Marek Polacek  <polacek@redhat.com>
631         PR tree-optimization/56035
632         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
634 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
636         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
637         (*movtf_internal_rex64): Add (!o,C) alternative
638         (*movxf_internal_rex64): Ditto.
639         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
641 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
643         * doc/invoke.texi: fix typo.
644         * doc/objc.texi: fix typo.
646 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
648         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
649         for the first two alternatives.
651 2013-01-24  Diego Novillo  <dnovillo@google.com>
653         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
654         (ggc-zone.o): Remove.
655         * configure.ac: Remove option --with-gc.
656         * configure: Re-generate.
657         * doc/install.texi: Remove documentation for --with-gc.
658         * gengtype.c (write_enum_defn): Remove.  Update all users.
659         (write_Types_process_field): Remove generation of gt_e_* argument.
660         (output_type_enum): Remove.  Update all users.
661         (write_enum_defn): Remove.  Update all users.
662         (enum alloc_zone): Remove.  Update all users.
663         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
664         * ggc-common.c (ggc_splay_alloc): Remove first argument.
665         Update all callers.
666         (struct ptr_data): Remove field TYPE.  Update all users.
667         (gt_pch_note_object): Remove argument TYPE.  Update all users.
668         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
669         Update all users.
670         * ggc-none.c (ggc_alloc_typed_stat): Remove.
671         (struct alloc_zone): Remove.
672         (ggc_internal_alloc_zone_stat): Remove.
673         (ggc_internal_cleared_alloc_zone_stat): Remove.
674         * ggc-page.c (ggc_alloc_typed_stat): Remove.
675         (ggc_pch_count_object): Remove last argument.  Update all users.
676         (ggc_pch_alloc_object): Remove last argument.  Update all users.
677         (struct alloc_zone): Remove.
678         * ggc-zone.c: Remove.
679         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
680         (struct alloc_zone): Remove.
681         (ggc_alloc_typed_stat): Remove.
682         (ggc_alloc_typed): Remove.
683         (ggc_splay_alloc): Remove first argument.
684         (rtl_zone): Remove.  Update all users.
685         (tree_zone): Remove.  Update all users.
686         (tree_id_zone): Remove.  Update all users.
687         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
688         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
689         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
690         * tree-ssanames.c: Remove references to zone allocator in comments.
692 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
694         * config/avr/avr.c (avr_out_fract): Make register numbers that
695         might be outside of source operand signed.
697 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
699         * config/i386/constraints.md (Yf): New constraint.
700         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
701         of f constraint to conditionaly disable x87 register preferences.
702         (*movdf_internal): Ditto.
703         (*movsf_internal): Ditto.
705 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
707         PR inline-asm/55934
708         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
709         that have operands with impossible constraints.
710         Add a FIXME for a speed-up opportunity.
711         * lra-constraints.c (process_alt_operands): Verify that a class
712         selected from constraints on asms is valid for the operand mode.
713         (curr_insn_transform): Remove incorrect comment.
715 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
717         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
718         TOC operand is a valid symbol ref in the constant pool.
720 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
722         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
724 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
726         PR target/54222
727         * config/avr/stdfix.h: New file.
728         * t-avr (stdfix-gcc.h): New rule to build it.
729         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
731 2013-01-23  Kostya Serebryany  <kcc@google.com>
733         * config/darwin.h: remove dependency on
734         CoreFoundation (asan on Mac OS).
736 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
738         PR target/49069
739         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
740         instead of cmpdi_operand for first comparison operand.
741         Don't assert that comparison operands aren't both constants.
743 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
745         * doc/install.texi (Downloading the Source): Update references to
746         downloading separate components.
748 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
750         * doc/extend.texi (__int128): Improve grammar.
752 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
754         PR target/56028
755         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
756         alternative to (o,r).
757         (*movdi_internal_rex64): Remove (!o,n) alternative.
758         (DImode immediate->memory splitter): Remove.
759         (DImode immediate->memory peephole2): Remove.
760         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
761         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
762         alternative to (!o,*r).
763         (*movtf_internal_sse): New pattern.
764         (*movxf_internal_rex64): New pattern.
765         (*movxf_internal): Disable for TARGET_64BIT.
766         (*movdf_internal_rex64): Remove (!o,F) alternative.
768 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
770         PR middle-end/56074
771         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
772         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
773         * tree-vect-loop-manip.c (find_loop_location): Also ignore
774         stmt locations where LOCATION_LOCUS of the stmt location is
775         UNKNOWN_LOCATION or BUILTINS_LOCATION.
777         PR target/55686
778         * config/i386/i386.md (UNSPEC_STOS): New.
779         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
780         *strsetqi_1): Add UNSPEC_STOS.
782 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
784         PR c++/56067
785         * doc/invoke.texi: Remove left over -Wsynth example.
787 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
789         PR tree-optimization/56051
790         * fold-const.c (fold_binary_loc): Don't fold
791         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
792         a narrowing conversion, or widening conversion from signed
793         to unsigned.
795 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
797         PR rtl-optimization/56023
798         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
799         dependent on debug instruction.
801 2013-01-21  Martin Jambor  <mjambor@suse.cz>
803         PR middle-end/56022
804         * function.c (allocate_struct_function): Call
805         invoke_set_current_function_hook earlier.
807 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
809         * reload1.c (init_reload): Only initialize reload_obstack
810         during the first call.
812 2013-01-21  Marek Polacek  <polacek@redhat.com>
814         * cfgloop.c (verify_loop_structure): Fix up grammar.
816 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
818         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
819         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
821 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
823         PR target/56058
824         * config/arm/marvell-pj4.md: Update copyright year.
825         Fix up use of alu to alu_reg and simple_alu_imm.
827 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
829         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
831 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
833         PR target/55433
834         * lra-constraints.c (curr_insn_transform): Don't reuse original
835         insn for secondary memory move when memory mode should be different.
837 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
839         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
840         atomic_storedi_1): New patterns.
842 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
844         btver2 pipeline descriptions.
845         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
846         descriptions.
847         * config/i386/i386.md (btver2_decode): New type attributes.
848         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
849         type attributes.
850         * config/i386/btver2.md: New file describing btver2 pipelines.
852 2013-01-19  Andrew Pinski  <apinski@cavium.com>
854         PR tree-optimization/52631
855         * tree-ssa-sccvn (visit_use): Before looking up the original
856         statement, try looking up the simplified expression.
858 2013-01-19  Anthony Green  <green@moxielogic.com>
860         * config/moxie/moxie.c (moxie_expand_prologue): Set
861         current_function_static_stack_size.
863 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
865         PR tree-optimization/56029
866         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
867         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
869 2013-01-18  Sharad Singhai  <singhai@google.com>
871         PR tree-optimization/55995
872         * dumpfile.c (dump_loc): Print location only if available.
873         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
875 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
877         PR target/55433
878         * lra-constraints.c (curr_insn_transform): Reuse original insn for
879         secondary memory move.
880         (inherit_reload_reg): Use rclass instead of cl for
881         check_secondary_memory_needed_p.
883 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
885         PR middle-end/56015
886         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
887         the case where writing real complex part of target modifies op1.
889 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
891         * config/aarch64/aarch64-simd.md
892         (aarch64_vcond_internal<mode>): Handle unordered cases.
893         * config/aarch64/iterators.md (v_cmp_result): New.
895 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
896             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
898         * config/arm/marvell-pj4.md: New file.
899         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
900         * config/arm/arm.md (generic_sched): Add marvell_pj4.
901         (generic_vfp): Likewise.
902         * config/arm/arm-cores.def: Add marvell-pj4.
903         * config/arm/arm-tune.md: Regenerate.
904         * config/arm/arm-tables.opt: Regenerate.
905         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
906         * doc/invoke.texi: Document marvell-pj4.
908 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
910         * config/aarch64/arm_neon.h: Map scalar types to standard types.
912 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
914         PR debug/54114
915         PR debug/54402
916         PR debug/49888
917         * var-tracking.c (negative_power_of_two_p): New.
918         (global_get_addr_cache, local_get_addr_cache): New.
919         (get_addr_from_global_cache, get_addr_from_local_cache): New.
920         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
921         heading comment.
922         (vt_stack_offset_p): Remove.
923         (vt_canon_true_dep): Always canonicalize loc's address.
924         (clobber_overlapping_mems): Make sure we have a MEM.
925         (local_get_addr_clear_given_value): New.
926         (val_reset): Clear local cached entries.
927         (compute_bb_dataflow): Create and release the local cache.
928         Disable duplicate MEMs clobbering.
929         (emit_notes_in_bb): Clobber MEMs likewise.
930         (vt_emit_notes): Create and release the local cache.
931         (vt_initialize, vt_finalize): Create and release the global
932         cache, respectively.
933         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
935 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
937         PR libmudflap/53359
938         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
939         not found in the symtab.
941 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
943         PR debug/56006
944         PR rtl-optimization/55547
945         PR rtl-optimization/53827
946         PR debug/53671
947         PR debug/49888
948         * alias.c (offset_overlap_p): New, factored out of...
949         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
950         the conservative special case for symbolic constants.  Don't
951         adjust zero sizes on alignment.
953 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
955         PR rtl-optimization/52573
956         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
957         REG_UNUSED for the same register.
959 2013-01-17  Richard Biener  <rguenther@suse.de>
960             Marek Polacek  <polacek@redhat.com>
962         PR rtl-optimization/55833
963         * loop-unswitch.c (unswitch_loops): Move loop verification...
964         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
965         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
966         Set it to true when we're removing a loop from hierarchy tree in
967         an irreducible region.
968         (fix_bb_placements): Adjust caller.
969         (fix_loop_placements): Likewise.
971 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
973         * config/avr/builtins.def (DEF_BUILTIN): Factor out
974         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
975         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
976         Remove ID.  Adjust comments.
977         * config/avr/avr-c.c (avr_builtin_name): Remove.
978         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
979         * config/avr/avr.c (avr_tolower): New static function.
980         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
981         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
982         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
983         default expansion.
985 2013-01-17  Jan Hubicka  <jh@suse.cz>
987         PR tree-optimization/55273
988         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
990 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
992         PR target/55981
993         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
994         store through atomic_store<mode>_1.
995         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
997 2013-01-17  Martin Jambor  <mjambor@suse.cz>
999         PR tree-optimizations/55264
1000         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
1001         for virtual methods.
1002         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
1003         virtual methods before inlining is over.
1004         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
1005         virtual functions.
1006         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
1007         non-virtual.
1009 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
1011         PR rtl-optimization/56005
1012         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
1013         pending reads for prefetch.
1015 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
1017         * config/aarch64/aarch64.md
1018         (*cstoresi_neg_uxtw): New pattern.
1019         (*cmovsi_insn_uxtw): New pattern.
1020         (*<optab>si3_uxtw): New pattern.
1021         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
1022         (*<optab>si3_insn_uxtw): New pattern.
1023         (*bswapsi2_uxtw): New pattern.
1025 2013-01-16  Richard Biener  <rguenther@suse.de>
1027         * tree-inline.c (tree_function_versioning): Remove set but
1028         never used variable.
1030 2013-01-16  Richard Biener  <rguenther@suse.de>
1032         PR tree-optimization/55964
1033         * tree-flow.h (rename_variables_in_loop): Remove.
1034         (rename_variables_in_bb): Likewise.
1035         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
1036         (copy_loop_before): Adjust and delete update-ssa status.
1037         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
1038         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
1039         (rename_variables_in_loop): Remove.
1040         (slpeel_update_phis_for_duplicate_loop): Likewise.
1041         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
1042         use available cfg machinery instead of duplicating it.
1043         Update PHI nodes and perform poor-mans SSA update here.
1044         (slpeel_tree_peel_loop_to_edge): Adjust.
1046 2013-01-16  Richard Biener  <rguenther@suse.de>
1048         PR tree-optimization/54767
1049         PR tree-optimization/53465
1050         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
1051         (vrp_visit_phi_node): For PHI arguments coming via backedges
1052         drop all symbolical range information.
1053         (execute_vrp): Compute backedges.
1055 2013-01-16  Richard Biener  <rguenther@suse.de>
1057         * doc/install.texi: Update CLooG and ISL requirements to
1058         0.18.0 and 0.11.1.
1060 2013-01-16  Christian Bruel  <christian.bruel@st.com>
1062         PR target/55301
1063         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
1064         (broken_move): Handle UNSPECV_SP_SWITCH_B.
1065         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
1067 2013-01-16  DJ Delorie  <dj@redhat.com>
1069         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
1070         (UNSPECV_SP_SWITCH_E): New.
1071         (sp_switch_1): Change to an unspec.
1072         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
1073         replace $r15.
1075 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
1077         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
1078         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
1079         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
1080         (expand_mem_thread_fence): Ditto.
1081         (expand_mem_signal_fence): Ditto.
1082         (expand_atomic_load): Ditto.
1083         (expand_atomic_store): Ditto.
1085 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
1087         PR rtl-optimization/55547
1088         PR rtl-optimization/53827
1089         PR debug/53671
1090         PR debug/49888
1091         * alias.c (memrefs_conflict_p): Set sizes to negative after
1092         AND adjustments.
1094 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
1096         PR target/55940
1097         * function.c (thread_prologue_and_epilogue_insns): Always
1098         add crtl->drap_reg to set_up_by_prologue.set, even if
1099         stack_realign_drap is false.
1101 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1103         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
1104         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
1105         *call): Fix indention.
1107 2013-01-15  Tom de Vries  <tom@codesourcery.com>
1109         PR target/55876
1110         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
1111         Update comment.
1113 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
1115         PR rtl-optimization/55153
1116         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
1118 2013-01-15  Martin Jambor  <mjambor@suse.cz>
1120         PR tree-optimization/55920
1121         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
1122         accesses as grp_to_be_debug_replaced.
1124 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
1126         PR tree-optimization/55920
1127         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
1128         there is non-useless type conversion needed from debug rhs to lhs,
1129         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
1131 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
1132             Mikael Pettersson  <mikpe@it.uu.se>
1134         PR target/43961
1135         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
1136         Thumb.
1137         (ASM_OUTPUT_CASE_LABEL): Remove.
1138         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
1139         * final.c (shorten_branches): Update alignment of labels before
1140         jump tables if CASE_VECTOR_SHORTEN_MODE.
1142 2013-01-15  Richard Biener  <rguenther@suse.de>
1144         PR bootstrap/55961
1145         * system.h: Do not include gmp.h for building host tools.
1147 2013-01-15  Richard Biener  <rguenther@suse.de>
1149         PR middle-end/55882
1150         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
1151         account for bitpos when computing alignment.
1153 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
1155         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
1156         (ix86_target_macros_internal): Likewise.
1158         * config/i386/i386.c (m_CORE2I7): Removed.
1159         (m_CORE_HASWELL): New macro.
1160         (m_CORE_ALL): Likewise.
1161         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
1162         (initial_ix86_arch_features): Likewise.
1163         (processor_target_table): Initializations for Core avx2.
1164         (cpu_names): New names "core-avx2".
1165         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
1166         PROCESSOR_CORE_HASWELL.
1167         (ix86_issue_rate): New case.
1168         (ia32_multipass_dfa_lookahead): Likewise.
1169         (ix86_sched_init_global): Likewise.
1171         * config/i386/i386.h (TARGET_HASWELL): New macro.
1172         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
1173         (processor_type): New PROCESSOR_HASWELL.
1175 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
1177         PR tree-optimization/55955
1178         * tree-vect-loop.c (vectorizable_reduction): Give up early on
1179         *SHIFT_EXPR and *ROTATE_EXPR codes.
1181         PR tree-optimization/48766
1182         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
1183         -ftrapv disable -fwrapv.
1185 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1187         PR target/55974
1188         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
1189         etc. to 1 and not to __flash.
1190         Use LL suffix for __INT24_MAX__ with -mint8.
1191         Use ULL suffix for __UINT24_MAX__ with -mint8.
1193 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1195         * config/avr/avr-arch.h
1196         (struct base_arch_s): Use typedef avr_arch_t instead.
1197         (struct arch_info_s): Use typedef avr_arch_info_t instead.
1198         (struct mcu_type_s): Use typedef avr_mcu_t instead.
1199         * config/avr/avr.c: Same.
1200         * config/avr/avr-devices.c: Same.
1201         * config/avr/driver-avr.c: Same.
1202         * config/avr/gen-avr-mmcu-texi.c: Same.
1203         * config/avr/avr-mcus.def: Adjust comment.
1205 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
1207         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
1208         * config/aarch64/iterators.md (VALLDI): New.
1210 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
1211             Andi Kleen  <ak@linux.intel.com>
1213         PR target/55948
1214         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
1215         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
1216         memmodel flag.
1218 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1220         * config/avr/avr-stdint.h: Remove trailing blanks.
1221         * config/avr/avr-log.h: Same.
1222         * config/avr/avr-arch.h: Same.
1223         * config/avr/avr-devices.c: Same.
1224         * config/avr/avr-dimode.md: Same.
1225         * config/avr/predicates.md: Same.
1226         * config/avr/avr-c.c: Same.  And fix typo.
1228         * config/avr/avr-protos.h: Same.  And:
1229         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
1230         (init_cumulative_args): Rename to avr_init_cumulative_args.
1231         (expand_prologue): Rename to avr_expand_prologue.
1232         (expand_epilogue): Rename to avr_expand_epilogue.
1233         (adjust_insn_length): Rename to avr_adjust_insn_length.
1234         (notice_update_cc): Rename to avr_notice_update_cc.
1235         (final_prescan_insn): Rename to avr_final_prescan_insn.
1236         * config/avr/avr.c: Same.
1237         * config/avr/avr.h: Same.
1238         * config/avr/avr.md: Remove trailing blanks.
1239         (prologue): Use avr_expand_prologue.
1240         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
1242 2013-01-14  Richard Biener  <rguenther@suse.de>
1244         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
1245         verify_location, collect_subblocks): New functions.
1246         (verify_gimple_in_cfg): Verify that locations only reference
1247         BLOCKs in the functions BLOCK tree.
1249 2013-01-14  Richard Biener  <rguenther@suse.de>
1251         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
1252         PHI argument.
1253         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
1254         unshare reference.
1255         (insert_out_of_ssa_copy_on_edge): Likewise.
1256         (rewrite_close_phi_out_of_ssa): Likewise.
1257         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
1258         debug expressions.
1259         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
1260         propagated constants.
1261         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
1262         can not be shared.
1264 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1266         * config/avr/avr-modes.def: Add GPL copyright notice.
1268 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
1270         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
1271         MEMMODEL_MASK to determine memory model.
1272         (atomic_store<mode>): Ditto from operands[2].
1273         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
1275 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
1277         PR fortran/55935
1278         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
1279         (fold_gimple_assign): Don't call unshare_expr here.
1280         (fold_ctor_reference): Call unshare_expr.
1282 2013-01-13  Terry Guo  <terry.guo@arm.com>
1284         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
1285         * doc/fragments.texi: Document MULTILIB_REUSE.
1286         * gcc.c (multilib_reuse): New internal spec.
1287         (set_multilib_dir): Also search multilib from multilib_reuse.
1288         * genmultilib (tmpmultilib3): Refactor code.
1289         (tmpmultilib4): Ditto.
1290         (multilib_reuse): New multilib argument.
1292 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
1294         * Makefile.in: Update copyright.
1296 2013-01-12  Tom de Vries  <tom@codesourcery.com>
1298         PR middle-end/55890
1299         * calls.c (expand_call): Check if arg_nr is valid.
1301 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1303         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
1304         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
1305         documentation.  Add missing '__' in front of
1306         __builtin_ia32_packssdw256.
1308 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1310         PR target/55719
1311         * config/s390/s390.c (s390_preferred_reload_class): Do not return
1312         NO_REGS for larl operands.
1313         (s390_reload_larl_operand): Use s390_load_address instead of
1314         emit_move_insn.
1316 2013-01-11  Richard Biener  <rguenther@suse.de>
1318         * tree-cfg.c (verify_node_sharing_1): Split out from ...
1319         (verify_node_sharing): ... here.
1320         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
1322 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
1324         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
1325         Substitute TREECHECKING.
1326         * configure: Regenerate.
1327         * Makefile.in (TREECHECKING): New.
1329 2013-01-11  Richard Guenther  <rguenther@suse.de>
1331         PR tree-optimization/44061
1332         * tree-vrp.c (extract_range_basic): Compute zero as
1333         value-range for __builtin_constant_p of function parameters.
1335 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
1337         Update copyright years.
1339 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
1341         PR rtl-optimization/55672
1342         * lra-eliminations.c (mark_not_eliminable): Permit addition with
1343         const to be eliminable.
1345 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
1347         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
1348         * configure: Regenerate.
1350 2013-01-10  Richard Biener  <rguenther@suse.de>
1352         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
1354 2013-01-10  Richard Biener  <rguenther@suse.de>
1356         PR bootstrap/55792
1357         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
1358         locations for virtual PHI arguments.
1359         (rewrite_update_phi_arguments): Likewise.
1361 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
1363         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
1364         on to assembler.
1366 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
1368         PR tree-optimization/55921
1369         * tree-complex.c (expand_complex_asm): New function.
1370         (expand_complex_operations_1): Call it for GIMPLE_ASM.
1372 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1374         PR target/55718
1375         * config/s390/s390.c (s390_symref_operand_p)
1376         (s390_loadrelative_operand_p): Merge the two functions.
1377         (s390_check_qrst_address, print_operand_address): Add parameters
1378         to s390_loadrelative_operand_p invokation.
1379         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
1380         (s390_reload_larl_operand, s390_secondary_reload): Use
1381         s390_loadrelative_operand_p instead of s390_symref_operand_p.
1382         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
1384 2013-01-09  Mike Stump  <mikestump@comcast.net>
1386         * dse.c (record_store): Remove unnecessary assert.
1388 2013-01-09  Jan Hubicka  <jh@suse.cz>
1390         PR tree-optimization/55569
1391         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
1392         * cfgloop.h (scale_loop_profile): Likewise.
1394 2013-01-09  Jan Hubicka  <jh@suse.cz>
1396         PR lto/45375
1397         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
1398         functions.
1399         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
1401 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
1403         PR middle-end/55114
1404         * expr.h (maybe_emit_group_store): Declare.
1405         * expr.c (maybe_emit_group_store): New function.
1406         * builtins.c (expand_builtin_int_roundingfn): Call it.
1407         (expand_builtin_int_roundingfn_2): Likewise.
1409 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
1411         PR rtl-optimization/55829
1412         * lra-constraints.c (match_reload): Add code for absent output.
1413         (curr_insn_transform): Add code for reloads of matched inputs
1414         without output.
1416 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
1418         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
1419         attribute of movddup insn to DF.
1420         (*vec_interleave_lowv2df): Ditto.
1421         (vec_dupv2df): Ditto.
1423 2013-01-09  Jan Hubicka  <jh@suse.cz>
1425         PR tree-optimiation/55875
1426         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
1427         EVERY_ITERATION parameter.
1428         (number_of_iterations_exit): Check if exit is executed every iteration.
1429         (idx_infer_loop_bounds): Similarly here.
1430         (n_of_executions_at_most): Simplify
1431         to only test for cases where statement is dominated by the
1432         particular bound; handle correctly the "postdominance" test.
1433         (scev_probably_wraps_p): Use max loop iterations info
1434         as a global bound first.
1436 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
1437             Nick Clifton  <nickc@redhat.com>
1439         * config/v850/v850.md (cbranchsf4): New pattern.
1440         (cstoresf4): New pattern.
1441         (cbranchdf4): New pattern.
1442         (cstoredf4): New pattern.
1443         (movsicc): Disallow floating point comparisons.
1444         (cmpsf_le_insn): Fix order of operators.
1445         (cmpsf_lt_insn): Likewise.
1446         (cmpsf_eq_insn): Likewise.
1447         (cmpdf_le_insn): Likewise.
1448         (cmpdf_lt_insn): Likewise.
1449         (cmpdf_eq_insn): Likewise.
1450         (cmpsf_ge_insn): Use LE comparison.
1451         (cmpdf_ge_insn): Likewise.
1452         (cmpsf_gt_insn): Use LT comparison.
1453         (cmpdf_gt_insn): Likewise.
1454         (cmpsf_ne_insn): Delete pattern.
1455         (cmpdf_ne_insn): Delete pattern.
1456         * config/v850/v850.c (v850_gen_float_compare): Use
1457         gen_cmpdf_eq_insn for NE comparison.
1458         (v850_float_z_comparison_operator)
1459         (v850_float_nz_comparison_operator): Move from here ...
1460         * config/v850/predicates.md: ... to here.  Move GT and GE
1461         comparisons into v850_float_z_comparison_operator.
1462         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
1463         Delete prototype.
1464         (v850_float_nz_comparison_operator): Likewise.
1466 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1468         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
1469         with calls to gen_insvsi/gen_insvdi.
1471 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1473         * config/i386/i386.c (initial_ix86_tune_features): Set up
1474         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
1476 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
1477             Jakub Jelinek  <jakub@redhat.com>
1479         PR tree-optimization/48189
1480         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
1481         If nitercst is 0, don't predict the exit edge.
1483 2013-01-08   Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1485         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
1486         in asm_fprintf with reg_names.
1487         (aarch64_print_operand_address): Likewise.
1488         (aarch64_return_addr): Likewise.
1489         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
1491 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1493         * config/pa/pa.h (VAL_U6_BITS_P): Define.
1494         (INT_U6_BITS): Likewise.
1495         * config/pa/predicates.md (uint6_operand): New predicate.
1496         (shift5_operand, shift6_operand): Likewise.
1497         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
1498         arith32_operand.
1499         (lshrdi3): Use shift6_operand.
1500         (shrpsi4, shrpdi4): New insn patterns.
1501         (extzv): Delete expander.
1502         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
1503         predicates in unamed zero extract patterns.  Tighten common constraint.
1504         (extv): Delete expander.
1505         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
1506         predicates in unamed sign extract patterns.  Tighten common constraint.
1507         (insv): Delete expander.
1508         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
1509         predicates in unamed insert patterns.  Tighten common constraint.
1510         Change uint32_operand predicate to uint6_operand predicate in unamed
1511         DImode pattern to insert constant values of type 1...1xxxx.
1513 2013-01-04  Jan Hubicka  <jh@suse.cz>
1515         PR tree-optimization/55823
1516         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
1517         issue.
1519 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
1520             Uros Bizjak  <ubizjak@gmail.com>
1522         PR rtl-optimization/55845
1523         * df-problems.c (can_move_insns_across): Stop scanning at
1524         volatile_insn_p source instruction or give up if
1525         across_from .. across_to range contains any volatile_insn_p
1526         instructions.
1528 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
1530         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
1531         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
1532         Declare.
1533         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
1534         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
1536 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
1538         PR fortran/55341
1539         * asan.c (asan_clear_shadow): New function.
1540         (asan_emit_stack_protection): Use it.
1542 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
1544         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
1545         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
1546         with tab instead of space.
1548 2013-01-08  Nick Clifton  <nickc@redhat.com>
1550         * config/rl78/rl78.c (rl78_expand_prologue): Always select
1551         register bank 0 at the start of an interrupt handler.
1552         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
1553         MDBH registers.
1555 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
1557         * config/aarch64/aarch64-simd.md
1558         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
1559         (aarch64_simd_bsl): Likewise.
1560         (aarch64_vcond_internal<mode>): Likewise.
1561         (vcond<mode><mode>): Likewise.
1562         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
1563         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
1565 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
1567         * config/aarch64/aarch64-builtins.c
1568         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
1570 2013-01-08  Martin Jambor  <mjambor@suse.cz>
1572         PR debug/55579
1573         * tree-sra.c (analyze_access_subtree): Return true also after
1574         potentially creating a debug-only replacement.
1576 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
1578         PR middle-end/55890
1579         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
1581         PR tree-optimization/54120
1582         * tree-vrp.c (range_fits_type_p): Don't allow
1583         src_precision < precision from signed vr to unsigned_p
1584         if vr->min or vr->max is negative.
1585         (simplify_float_conversion_using_ranges): Test can_float_p
1586         against CODE_FOR_nothing.
1588 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
1589             Richard Biener  <rguenther@suse.de>
1591         PR middle-end/55851
1592         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
1593         types instead of just INTEGER_TYPE types.
1595 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
1597         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
1598         TF_SIZE): Define.
1600 2013-01-07  Steve Ellcey  <sellcey@mips.com>
1602         PR target/42661
1603         * config/mips/mips.opt: Change mad to mmad to match documentation.
1605 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
1607         PR target/55897
1608         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
1609         .progmemx.data now.
1611 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
1613         PR target/55897
1614         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
1615         (avr_addrspace_t): Add .section_name field.
1616         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
1617         array size.
1618         (avr_addrspace): Same.  Initialize .section_name.  Remove last
1619         NULL entry.  Put __memx into .progmemx.data.
1620         (progmem_section_prefix): Remove.
1621         (avr_asm_init_sections): No need to initialize progmem_section.
1622         (avr_asm_named_section): Use avr_addrspace[].section_name to get
1623         section name prefix.
1624         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
1625         retrieve the progmem section.
1626         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
1627         boundary to run over avr_addrspace[].
1628         (avr_register_target_pragmas): Ditto.
1630 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
1632         * varasm.c (output_constant_def_contents): For asan_protect_global
1633         protected strings, adjust DECL_ALIGN if needed, before testing for
1634         anchored symbols.
1635         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
1636         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
1637         normal decls.
1638         (output_object_block): For asan protected decls, emit asan padding
1639         after their contents.
1640         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
1641         (asan_finish_file): Test it here instead.
1643 2013-01-07   Nick Clifton  <nickc@redhat.com>
1644              Matthias Klose  <doko@debian.org>
1645              Doug Kwan  <dougkwan@google.com>
1646              H.J. Lu  <hongjiu.lu@intel.com>
1648         PR driver/55470
1649         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
1651         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
1653         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
1655         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
1657         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
1659 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
1661         PR target/54461
1662         * doc/install.texi (Cross-Compiler-Specific Options): Document
1663         --with-avrlibc.
1665 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
1667         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
1668         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
1669         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
1670         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
1671         vqmovun_high_s64): Fix source operand number and update copyright.
1673 2013-01-07  Richard Biener  <rguenther@suse.de>
1675         PR middle-end/55890
1676         * gimple.h (gimple_call_builtin_p): New overload.
1677         * gimple.c (validate_call): New function.
1678         (gimple_call_builtin_p): Likewise.
1679         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1680         Use gimple_call_builtin_p.
1681         (find_func_clobbers): Likewise.
1682         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
1683         (strlen_optimize_stmt): Likewise.
1685 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
1687         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
1688         (vld1q_dup_*): Likewise.
1689         (vld1_*): Likewise.
1690         (vld1q_*): Likewise.
1691         (vld1_lane_*): Likewise.
1692         (vld1q_lane_*): Likewise.
1694 2013-01-07  Richard Biener  <rguenther@suse.de>
1696         * lto-streamer.h (LTO_minor_version): Bump to 2.
1698 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
1700         * config/aarch64/aarch64-protos.h
1701         (aarch64_const_double_zero_rtx_p): Rename to...
1702         (aarch64_float_const_zero_rtx_p): ...this.
1703         (aarch64_float_const_representable_p): New.
1704         (aarch64_output_simd_mov_immediate): Likewise.
1705         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
1706         move immediate case.
1707         * config/aarch64/aarch64.c
1708         (aarch64_const_double_zero_rtx_p): Rename to...
1709         (aarch64_float_const_zero_rtx_p): ...this.
1710         (aarch64_print_operand): Allow printing of new constants.
1711         (aarch64_valid_floating_const): New.
1712         (aarch64_legitimate_constant_p): Check for valid floating-point
1713         constants.
1714         (aarch64_simd_valid_immediate): Likewise.
1715         (aarch64_vect_float_const_representable_p): New.
1716         (aarch64_float_const_representable_p): Likewise.
1717         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
1718         (aarch64_output_simd_mov_immediate): New.
1719         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
1720         (*movdf_aarch64): Likewise.
1721         * config/aarch64/constraints.md (Ufc): New.
1722         (Y): call aarch64_float_const_zero_rtx.
1723         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
1725 2013-01-07  Richard Biener  <rguenther@suse.de>
1727         PR tree-optimization/55888
1728         PR tree-optimization/55862
1729         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
1730         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
1731         not if it is contained therein.
1733 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
1735         * config/avr/t-avr: Typo.
1737 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
1739         PR55243
1740         * config/avr/t-avr: Don't automatically rebuild
1741         $(srcdir)/config/avr/t-multilib
1742         $(srcdir)/config/avr/avr-tables.opt
1743         $(srcdir)/doc/avr-mmcu.texi
1744         (avr-mcus): New phony target to build them on request.
1745         (s-avr-mlib, s-avr-mmcu-texi): Remove.
1746         * avr/avr-mcus.def: Adjust comments.
1748 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
1750         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
1752 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
1754         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
1756 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
1758         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
1760 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
1762         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
1763         to generate profiling.
1764         * config/rs6000/aix64.h (LIB_SPEC): Same.
1766 2013-01-04  Andrew Pinski  <apinski@cavium.com>
1768         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
1769         New function.
1770         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1772 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
1774         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
1775         unconditionally.
1776         (ix86_expand_move): Ditto.
1777         (ix86_zero_extend_to_Pmode): Ditto.
1778         (ix86_expand_call): Ditto.
1779         (ix86_expand_special_args_builtin): Ditto.
1780         (ix86_expand_builtin): Ditto.
1782 2013-01-04  Richard Biener  <rguenther@suse.de>
1784         PR tree-optimization/55862
1785         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
1786         translating them through PHI nodes.
1788 2013-01-04  Martin Jambor  <mjambor@suse.cz>
1790         PR tree-optimization/55755
1791         * tree-sra.c (sra_modify_assign): Do not check that an access has no
1792         children when trying to avoid producing a VIEW_CONVERT_EXPR.
1794 2013-01-04  Marek Polacek  <polacek@redhat.com>
1796         PR middle-end/55859
1797         * opts.c (default_options_optimization): Clarify error message.
1799 2013-01-04  Richard Biener  <rguenther@suse.de>
1801         PR middle-end/55863
1802         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
1803         reassociation.
1805 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1807         PR target/53789
1808         * config/pa/pa.md (movsi): Revert previous change.
1809         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
1810         references.
1812 2013-01-03  Richard Henderson  <rth@redhat.com>
1814         * config/i386/i386.c (ix86_expand_move): Always assign to op1
1815         after eliminating TLS symbols.
1817 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
1819         PR bootstrap/50167
1820         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
1821         * graphite-poly.c (debug_gmp_value): Likewise.
1823 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
1825         PR target/55712
1826         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
1827         selected code model, define __code_mode_small__, __code_model_medium__,
1828         __code_model_large__, __code_model_32__ or __code_model_kernel__.
1829         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
1830         xchg temporary register with %k.  Declare temporary register as
1831         early clobbered.
1832         [__x86_64__]: For medium and large code models, preserve %rbx register.
1834 2013-01-03  Richard Biener  <rguenther@suse.de>
1836         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
1837         (dump_subscript): Adjust.
1838         (finalize_ddr_dependent): Do not dump redundant info.
1839         (analyze_siv_subscript): Adjust.
1840         (subscript_dependence_tester): Likewise.
1841         (compute_affine_dependence): Likewise.
1843 2013-01-03  Richard Biener  <rguenther@suse.de>
1845         Revert
1846         2013-01-03  Richard Biener  <rguenther@suse.de>
1848         PR tree-optimization/55857
1849         * tree-vect-stmts.c (vectorizable_load): Do not setup
1850         re-alignment for invariant loads.
1852         2013-01-02  Richard Biener  <rguenther@suse.de>
1854         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1855         invariant load do not generate a vector load from the scalar location.
1857 2013-01-03  Richard Biener  <rguenther@suse.de>
1859         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
1860         for not vectorizing.
1861         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1862         not build INDIRECT_REFs, call get_name once only.
1863         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
1864         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
1866 2013-01-03  Richard Biener  <rguenther@suse.de>
1868         PR tree-optimization/55857
1869         * tree-vect-stmts.c (vectorizable_load): Do not setup
1870         re-alignment for invariant loads.
1872 2013-01-03  Richard Biener  <rguenther@suse.de>
1874         PR lto/55848
1875         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
1876         prefer a built-in decl.
1878 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
1880         * gcc.c (process_command): Update copyright notice dates.
1881         * gcov.c (print_version): Likewise.
1882         * gcov-dump.c (print_version): Likewise.
1884         PR rtl-optimization/55838
1885         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
1886         iv0.step, iv1.step and step.
1888 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
1889             Marc Glisse  <marc.glisse@inria.fr>
1891         PR tree-optimization/55832
1892         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
1893         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
1894         integer_{one,zero}_node.
1896 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
1898         PR debug/54402
1899         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
1900         * var-tracking.c (reverse_op): Don't add reverse ops to
1901         VALUEs that have already
1902         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
1904 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
1906         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
1908 2013-01-02  Teresa Johnson  <tejohnson@google.com>
1910         * dumpfile.c (dump_loc): Print filename with location.
1911         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
1912         new location_t parameter to emit complete unroll message with
1913         new dump framework.
1914         (canonicalize_loop_induction_variables): Compute loops location
1915         and pass to try_unroll_loop_completely.
1916         * loop-unroll.c (report_unroll_peel): New function.
1917         (peel_loops_completely): Use new dump format with location
1918         for main dumpfile message, and invoke report_unroll_peel on success.
1919         (decide_unrolling_and_peeling): Ditto.
1920         (decide_peel_once_rolling): Remove old dumpfile message subsumed
1921         by report_unroll_peel.
1922         (decide_peel_completely): Ditto.
1923         (decide_unroll_constant_iterations): Ditto.
1924         (decide_unroll_runtime_iterations): Ditto.
1925         (decide_peel_simple): Ditto.
1926         (decide_unroll_stupid): Ditto.
1927         * cfgloop.c (get_loop_location): New function.
1928         * cfgloop.h (get_loop_location): Declare.
1930 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
1932         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
1933         NULL.
1935 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1937         PR middle-end/55198
1938         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
1939         BLKmode objects when EXPAND_MEMORY is specified.
1941 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
1943         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
1944         in loop predicate.
1945         (fold_builtin_cpu): Do not share cpu model decls across statements.
1947 2013-01-02  Jason Merrill  <jason@redhat.com>
1949         PR c++/55804
1950         * tree.c (build_array_type_1): Revert earlier change.
1952 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
1954         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
1955         "cortex-a57".
1956         * config/aarch64/aarch64-tune.md: Re-generate.
1958 2013-01-02  Richard Biener  <rguenther@suse.de>
1960         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1961         invariant load do not generate a vector load from the scalar location.
1963 2013-01-02  Richard Biener  <rguenther@suse.de>
1965         PR bootstrap/55784
1966         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
1967         * configure: Regenerate.
1969 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1971         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
1972         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
1973         (expand_builtin_int_roundingfn_2): Keep the original target around
1974         for the fallback case.
1976 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1978         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
1979         to be clear for sign changes.
1981 2013-01-01  Jan Hubicka  <jh@suse.cz>
1983         * ipa-inline-analysis.c: Fix formatting.
1985 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
1987         PR tree-optimization/55831
1988         * tree-vect-loop.c (get_initial_def_for_induction): Use
1989         gsi_after_labels instead of gsi_start_bb.
1991 Copyright (C) 2013 Free Software Foundation, Inc.
1993 Copying and distribution of this file, with or without modification,
1994 are permitted in any medium without royalty provided the copyright
1995 notice and this notice are preserved.