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