2013-02-12 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
bloba0ced1db78cdc38d9ddd74cb1f23e3863e003c8a
1 2013-02-12  Richard Biener  <rguenther@suse.de>
3         PR lto/56295
4         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
5         decls again if possible.
7 2013-02-12  Richard Biener  <rguenther@suse.de>
9         PR middle-end/56288
10         * tree-ssa.c (verify_ssa_name): Fix check, move
11         SSA_NAME_IN_FREE_LIST check up.
13 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
14             Steven Bosscher   <steven@gcc.gnu.org>
16         PR rtl-optimization/56151
17         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
18         equal to op0 or op1, and last_insn pattern is CODE operation
19         with MEM dest and one of the operands matches that MEM.
21 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
23         * doc/extend.texi: Document Function Multiversioning and "default"
24         parameter string to target attribute.
25         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
26         target attribute parameter is "default".
27         (ix86_compare_version_priority): Remove checks for target attribute.
28         (ix86_mangle_function_version_assembler_name): Change error to sorry.
29         Remove check for target attribute equal to NULL. Add assert.
30         (ix86_generate_version_dispatcher_body): Change error to sorry.
32 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
33             Jack Howarth  <howarth@bromo.med.uc.edu>
34             Patrick Marlier  <patrick.marlier@gmail.com>
36         PR libitm/55693
37         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
38         define ENDFILE_SPEC as TM_DESTRUCTOR.
39         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
41 2013-02-11  Alexander Potapenko <glider@google.com>
42             Jack Howarth  <howarth@bromo.med.uc.edu>
43             Jakub Jelinek  <jakub@redhat.com>
45         PR sanitizer/55617
46         * config/darwin.c (cdtor_record): Rename ctor_record.
47         (sort_cdtor_records): Rename sort_ctor_records.
48         (finalize_dtors): New routine to sort destructors by
49         priority before use in assemble_integer.
50         (machopic_asm_out_destructor): Use finalize_dtors if needed.
52 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
54         PR rtl-optimization/56275
55         * simplify-rtx.c (avoid_constant_pool_reference): Check that
56         offset is non-negative and less than cmode size before
57         calling simplify_subreg.
59 2013-02-11  Richard Biener  <rguenther@suse.de>
61         PR tree-optimization/56264
62         * cfgloop.h (fix_loop_structure): Adjust prototype.
63         * loop-init.c (fix_loop_structure): Return the number of
64         newly discovered loops.
65         * tree-cfgcleanup.c (repair_loop_structures): When new loops
66         are discovered, do a full loop-closed SSA rewrite.
68 2013-02-11  Richard Biener  <rguenther@suse.de>
70         PR tree-optimization/56273
71         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
72         first VRP run.
73         (check_array_ref): Fix missing newline in dumps.
74         (search_for_addr_array): Likewise.
76 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
78         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
80 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
82         PR target/56256
83         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
85 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
87         PR rtl-optimization/56246
88         * lra-constraints.c (simplify_operand_subreg): Try to reuse
89         reload pseudo.
90         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
91         constraints are satisfied.
93 2013-02-08  Jeff Law  <law@redhat.com>
95         PR debug/53948
96         * emit-rtl.c (reg_is_parm_p): New function.
97         * regs.h (reg_is_parm_p): New prototype.
98         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
99         callee-clobbered registers.
101 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
103         PR target/56043
104         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
105         If there is no implicit builtin declaration, just return NULL.
107 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
109         * config/i386/sse.md (FMAMODEM): New mode iterator.
110         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
111         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
113 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
115         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
116         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
117         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
119 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
121         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
122         (microblaze*-*-elf): Likewise.
123         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
124         LINK_SPEC.
125         * config/microblaze/microblaze-c.c: Add builtin defines for
126         _LITTLE_ENDIAN and _BIG_ENDIAN.
127         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
128         add to TARGET_DEFAULT flags.
129         Expand ASM_SPEC and LINK_SPEC.
130         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
131         * config/microblaze/microblaze.md: Update extendsidi2 and
132         movdi_internal instructions to use low-order / high-order reg
133         print_operands.
134         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
135         options and inversemask / mask of LITTLE_ENDIAN.
136         * config/microblaze/t-microblaze: Expand multilib options to
137         include mlittle-endian (le) and update exceptions patterns.
139 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
141         PR rtl-optimization/56195
142         * lra-constraints.c (get_reload_reg): Don't reuse regs
143         if they have smaller mode than requested, if they have
144         wider mode than requested, try to return a SUBREG.
146         PR tree-optimization/56250
147         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
148         if type is unsigned and code isn't MULT_EXPR.
150 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
152         PR tree-optimization/56064
153         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
154         bits according to mode.
155         * fixed-value.h (fixed_from_double_int)
156         (const_fixed_from_double_int): Adjust comments.
158 2013-02-08  Richard Biener  <rguenther@suse.de>
160         PR lto/56231
161         * lto-streamer.h (struct data_in): Remove current_file, current_line
162         and current_col members.
163         * lto-streamer-out.c (lto_output_location): Stream changed bits
164         en-block for efficiency.
165         * lto-streamer-in.c (clear_line_info): Remove.
166         (lto_input_location): Cache current file, line and column
167         globally via local statics.  Read changed bits en-block.
168         (input_function): Do not call clear_line_info.
169         (lto_read_body): Likewise.
170         (lto_input_toplevel_asms): Likewise.
172 2013-02-08  Michael Matz  <matz@suse.de>
174         PR tree-optimization/52448
175         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
176         (nt_call_phase): New static.
177         (add_or_mark_expr): Only mark accesses with newer phase than any
178         call seen.
179         (nonfreeing_call_p): New.
180         (nt_init_block): Update nt_call_phase, mark blocks as visited.
181         (nt_fini_block): Keep blocks marked as visited.
182         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
184 2013-02-08  Richard Biener  <rguenther@suse.de>
186         * ira.c (ira): Free broken dominator information.
188 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
190         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
192 2013-02-08  Marek Polacek  <polacek@redhat.com>
194         * cfgloop.c (verify_loop_structure): Add more checking of headers.
196 2013-02-08  Richard Biener  <rguenther@suse.de>
198         PR middle-end/56181
199         * cfgloop.h (flow_loops_find): Adjust.
200         (bb_loop_header_p): Declare.
201         * cfgloop.c (bb_loop_header_p): New function split out from ...
202         (flow_loops_find): ... here.  Adjust function signature,
203         support incremental loop structure update.
204         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
205         * cfgloopmanip.c (fix_loop_structure): Move ...
206         * loop-init.c (fix_loop_structure): ... here.
207         (apply_loop_flags): Split out from ...
208         (loop_optimizer_init): ... here.
209         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
210         in incremental mode, only remove dead loops here.
212 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
214         PR target/54222
215         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
216         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
217         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
218         (*round<mode>3.libgcc): New insns for fixed-modes.
219         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
220         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
221         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
222         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
223         implementations.  Define to __builtin_avr_absFX,
224         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
225         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
226         __builtin_avr_countlsFX, respectively.
227         * config/avr/avr-c.c (target.h): Include it.
228         (enum avr_builtin_id): New enum.
229         (avr_resolve_overloaded_builtin): New static function.
230         (avr_register_target_pragmas): Use it to set
231         targetm.resolve_overloaded_builtin.
232         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
233         tree nodes used by DEF_BUILTIN.
234         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
235         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
236         <AVR_BUILTIN_xxBITS>: Same.
238 2013-02-08  Richard Biener  <rguenther@suse.de>
240         * cfgloop.c (verify_loop_structure): Properly handle
241         a loop exiting to another loop header.
242         * ira-int.h (ira_loops): Remove.
243         * ira.c (ira_loops): Remove.
244         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
245         (do_reload): Use loop_optimizer_finalize.
246         * ira-build.c (create_loop_tree_nodes): Use get_loops and
247         number_of_loops to access the loop tree.
248         (more_one_region_p): Likewise.
249         (finish_loop_tree_nodes): Likewise.
250         (rebuild_regno_allocno_maps): Likewise.
251         (mark_loops_for_removal): Likewise.
252         (mark_all_loops_for_removal): Likewise.
253         (remove_unnecessary_regions): Likewise.
254         (ira_build): Likewise.
255         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
257 2013-02-08  Richard Biener  <rguenther@suse.de>
259         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
260         * ipa-pure-const.c (analyze_function): Avoid calling
261         mark_irreducible_loops twice.
262         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
264 2013-02-07  David S. Miller  <davem@davemloft.net>
266         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
267         on 'reg'.
268         * var-tracking.c (vt_add_function_parameter): Test the presence of
269         HAVE_window_save properly and do not remap argument registers when
270         we have a leaf function.
272 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
274         PR bootstrap/56227
275         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
276         instead of "ll".
277         * config/i386/i386.c (ix86_print_operand): Ditto.
279 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
281         * lra-constraints.c (process_alt_operands): Fix recently added comment.
283 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
285         PR rtl-optimization/56225
286         * lra-constraints.c (process_alt_operands): Check that reload hard
287         reg can hold value for strict_low_part.
289 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
291         PR debug/56154
292         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
293         dwarf2out_end_function.
294         (in_first_function_p, maybe_at_text_label_p,
295         first_loclabel_num_not_at_text_label): New variables.
296         (dwarf2out_var_location): In the first function find out
297         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
298         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
299         functions.
301 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
303         PR rtl-optimization/56178
304         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
305         SUBREG of a register.  Tidy up related block of code.
306         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
307         note if the source is a register or a SUBREG of a register.
309 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
311         PR target/56228
312         * config/rs6000/rs6000.md (ptrm): New mode attr.
313         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
314         call_value_indirect_aix<pttrsize>,
315         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
316         m in constraints.
318 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
320         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
321         if -bnortl. Convert to strcmp and strncmp.
323 2013-02-07  Alan Modra  <amodra@gmail.com>
325         PR target/54009
326         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
327         addresses won't wrap when offsetting.
328         (rs6000_secondary_reload): Provide secondary reloads needed for
329         wrapping LO_SUM addresses.
331 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
333         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
334         MACH, just __MACH__.
336 2013-02-06  Richard Biener  <rguenther@suse.de>
338         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
339         instead of calling fix_loop_structure.
341 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
343         PR middle-end/56217
344         * omp-low.c (use_pointer_for_field): Return false if
345         lower_send_shared_vars doesn't generate any copy-out code.
347 2013-02-06  Tom de Vries  <tom@codesourcery.com>
349         PR rtl-optimization/56131
350         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
351         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
352         of the label is NULL.  Add comment.
354 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
356         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
358         PR sanitizer/55374
359         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
360         (STATIC_LIBTSAN_LIBS): Likewise.
361         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
362         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
363         is defined, don't add anything else beyond that.
364         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
365         (LINK_COMMAND_SPEC): Use them.
367         PR tree-optimization/56205
368         * tree-stdarg.c (check_all_va_list_escapes): Return true if
369         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
370         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
372 2013-02-05  Richard Biener  <rguenther@suse.de>
374         PR tree-optimization/53342
375         PR tree-optimization/53185
376         * tree-vectorizer.h (vect_check_strided_load): Remove.
377         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
378         not disallow peeling for vectorized strided loads.
379         (vect_check_strided_load): Make static and simplify.
380         (vect_analyze_data_refs): Adjust.
381         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
382         correctly when vectorizing strided loads.
384 2013-02-05  Richard Biener  <rguenther@suse.de>
386         * doc/install.texi: Refer to ISL, not PPL.
388 2013-02-05  Jan Hubicka  <jh@suse.cz>
390         PR tree-optimization/55789
391         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
393 2013-02-05  Jan Hubicka  <jh@suse.cz>
395         PR tree-optimization/55789
396         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
397         the dead call anyway.
399 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
401         PR sanitizer/55374
402         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
404 2013-02-04  Alexander Potapenko  <glider@google.com>
405             Jack Howarth  <howarth@bromo.med.uc.edu>
406             Jakub Jelinek  <jakub@redhat.com>
408         PR sanitizer/55617
409         * config/darwin.c (sort_ctor_records): Stabilized qsort
410         on constructor priority by using original position.
411         (finalize_ctors): New routine to sort constructors by
412         priority before use in assemble_integer.
413         (machopic_asm_out_constructor): Use finalize_ctors if needed.
415 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
417         PR libstdc++/54314
418         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
419         about visibility on artificial decls.
420         * config/sol2.c (solaris_assemble_visibility): Likewise.
422 2013-02-04  Kai Tietz  <ktietz@redhat.com>
424         PR target/56186
425         * config/i386/i386.c (function_value_ms_64): Add additional valtype
426         argument and improve checking of return-argument types for 16-byte
427         modes.
428         (ix86_function_value_1): Add additional valtype argument on call
429         of function_value_64.
430         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
431         handling infunction_value_64 function.
433 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
435         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
437 2013-02-04  Richard Biener  <rguenther@suse.de>
439         PR tree-optimization/56188
440         * tree-ssa-structalias.c (label_visit): Consider case with
441         initially non-empty points-to set.
442         (perform_var_substitution): Dump node mapping and clean up.
444 2013-02-04  Richard Guenther  <rguenther@suse.de>
446         PR lto/56168
447         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
448         node prevail as last resort.
449         (lto_symtab_merge_decls): Remove guard on LTRANS here.
450         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
452 2013-02-04  Richard Biener  <rguenther@suse.de>
454         PR tree-optimization/56113
455         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
456         Merge into ...
457         (equiv_class_lookup_or_add): ... this.
458         (label_visit): Adjust and fix error in previous patch.
459         (perform_var_substitution): Adjust.
461 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
463         * config/sh/divtab.c: Fix formatting and comments throughout the file.
464         * config/sh/sh4-300.md: Likewise.
465         * config/sh/sh4a.md: Likewise.
466         * config/sh/constraints.md: Likewise.
467         * config/sh/sh.md: Likewise.
468         * config/sh/netbsd-elf.h: Likewise.
469         * config/sh/predicates.md: Likewise.
470         * config/sh/sh-protos.h: Likewise.
471         * config/sh/ushmedia.h: Likewise.
472         * config/sh/linux.h: Likewise.
473         * config/sh/sh.c: Likewise.
474         * config/sh/superh.h: Likewise.
475         * config/sh/elf.h: Likewise.
476         * config/sh/sh4.md: Likewise.
477         * config/sh/sh.h: Likewise.
479 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
481         * config/pa/constraints.md: Adjust unused letters.  Change "T"
482         constraint to match_test floating_point_store_memory_operand().
483         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
484         (base14_operand): New.
485         (floating_point_store_memory_operand): New.
486         (integer_store_memory_operand): Revise to use base14_operand and
487         reg_plus_base_memory_operand.
488         (move_dest_operand): Allow symbolic_memory_operands.
489         (symbolic_memory_operand): Check for LO_SOM.
490         (symbolic_operand): Change default case to break.
491         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
492         CONST_DOUBLE values to be reloaded by putting them into memory when
493         the destination is a floating point register.
494         (movdf): Remove code to handle CONST_DOUBLE.
495         (movsf): Likewise.
496         (reload_indf_r1): New.
497         (reload_insf_r1): New.
498         Consistently use "Q" and "T" constraints with integer and floating
499         point move instructions, respectively.
500         (movdi): Remove FAIL.
501         Change predicate for source operand unamed DImode move from
502         general_operand to move_src_operand.
503         (umulsidi3): Change predicate for destination operand to
504         register_operand.
505         Likewise for similar unamed patterns.
506         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
507         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
508         (hppa_legitimize_address): Simplify mask calculation.
509         (pa_emit_move_sequence): Revised handling of secondary reloads from
510         REG+D addresses for floating point loads and stores.  Directly handle
511         loading CONST0_RTX (mode) to a floating point register.
512         (pa_secondary_reload): Handle reloading DF and SFmode constant values
513         to floating point registers.  Don't restrict secondary reloads to
514         floating point registers to integer modes.  Revise some comments and
515         cleanup some code.
516         (TARGET_LEGITIMATE_ADDRESS_P): Define.
517         (pa_legitimate_address_p): New.
518         (pa_legitimize_reload_address): New.
519         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
520         (STRICT_REG_OK_FOR_BASE_P): New.
521         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
522         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
524 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
525             Andrew Dixie  <andrewd@gentrack.com>
527         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
528         flag set.
530 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
532         * expmed.c (extract_bit_field_1): Pass the full width of the
533         structure to get_best_reg_extraction_insn.
535 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
537         PR target/54601
538         * configure.ac (use_cxa_atexit): Add AIX.
539         * configure: Regenerate.
541         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
543 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
545         PR debug/54793
546         * final.c (need_profile_function): New variable.
547         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
548         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
549         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
550         notes, targetm.asm_out.function_prologue doesn't emit anything,
551         HAVE_prologue and profiler should be emitted before prologue,
552         set need_profile_function instead of emitting it.
553         (final_scan_insn): If need_profile_function, emit
554         profile_function on the first NOTE_INSN_BASIC_BLOCK or
555         NOTE_INSN_FUNCTION_BEG note.
557 2013-02-01  Richard Henderson  <rth@redhat.com>
559         * config/rs6000/rs6000.md (smulditi3): New.
560         (umulditi3): New.
562         * config/alpha/alpha.md (umulditi3): New.
564 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
566         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
567         (ASM_OUTPUT_ALIGNED_LOCAL): New.
569 2013-02-01  Richard Biener  <rguenther@suse.de>
571         PR tree-optimization/56113
572         * tree-ssa-structalias.c (label_visit): Reduce work for
573         single-predecessor nodes.
575 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
577         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
578         range isn't testing for zero.
580 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
582         PR middle-end/56113
583         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
585 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
586             Nick Clifton  <nickc@redhat.com>
588         * config/v850/constraints.md (Q): Define as a memory constraint.
589         * config/v850/predicates.md (label_ref_operand): New predicate.
590         (e3v5_shift_operand): New predicate.
591         (ior_operator): New predicate.
592         * config/v850/t-v850: Add e3v5 multilib.
593         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
594         (v850_gen_movdi): Prototype.
595         * config/v850/v850.c: Add support for e3v5 architecture.
596         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
597         TARGET_V850E_UP.
598         (construct_save_jarl): Add e3v5 long JARL support.
599         (v850_adjust_insn_length): New function.  Adjust length of call
600         insns when using e3v5 instructions.
601         (v850_gen_movdi): New function: Generate instructions to move a
602         DImode value.
603         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
604         (CPP_SPEC): Define __v850e3v5__ as appropriate.
605         (TARGET_USE_FPU): Enable for e3v5.
606         (CONST_OK_FOR_W): New macro.
607         (ADJUST_INSN_LENGTH): Define.
608         * config/v850/v850.md (UNSPEC_LOOP): Define.
609         (attr cpu): Add v850e3v5.
610         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
611         (movdi): New pattern.
612         (movdi_internal): New pattern.
613         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
614         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
615         (cstoresf4): Likewise.
616         (cstoredf4): Likewise.
617         (insv): New pattern.
618         (rotlso3_a): New pattern.
619         (rotlsi3_b): New pattern
620         (rotlsi3_v850e3v5): New pattern.
621         (doloop_begin): New pattern.
622         (fix_loop_counter): New pattern.
623         (doloop_end): New pattern.
624         (branch_normal): Add e3v5 long branch support.
625         (branch_invert): Likewise.
626         (branch_z_normal): Likewise.
627         (branch_z_invert): Likewise.
628         (branch_nz_normal): Likewise.
629         (branch_nz_invert): Likewise.
630         (call_internal_short): Add e3v5 register-indirect JARL support.
631         (call_internal_long): Likewise.
632         (call_value_internal_short): Likewise.
633         (call_value_internal_long): Likewise.
634         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
635         (mloop): New option.
636         * config.gcc: Add support for configuring v840e3v5 target.
637         * doc/invoke.texi: Document new v850 specific command line options.
639 2013-01-31  Paul Koning  <ni1d@arrl.net>
641         PR debug/55059
642         PR debug/54508
643         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
644         children if parent is a class.
645         (prune_unused_types_prune): Don't add DW_AT_declaration.
647 2013-01-31  Richard Biener  <rguenther@suse.de>
649         PR tree-optimization/56157
650         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
651         match up operand with SLP child.
653 2013-01-31  Jason Merrill  <jason@redhat.com>
655         PR debug/54410
656         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
657         parameters the first time.
658         (gen_scheduled_generic_parms_dies): Check completeness here.
660 2013-01-31  Richard Biener  <rguenther@suse.de>
662         PR middle-end/53073
663         * common.opt (faggressive-loop-optimizations): New flag,
664         enabled by default.
665         * doc/invoke.texi (faggressive-loop-optimizations): Document.
666         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
667         infer_loop_bounds_from_undefined by it.
669 2013-01-31  Richard Biener  <rguenther@suse.de>
671         PR tree-optimization/56150
672         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
673         visit virtual operands.
674         (find_uses_to_rename_bb): Likewise.
676 2013-01-31  Richard Biener  <rguenther@suse.de>
678         PR tree-optimization/56150
679         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
680         mixed store non-store stmts.
682 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
684         PR sanitizer/55374
685         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
686         LIBASAN_EARLY_SPEC is defined.
687         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
688         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
689         before %o.
690         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
692         PR c++/55742
693         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
694         invalid args instead of ICEing on it.
695         (ix86_valid_target_attribute_tree): Return error_mark_node if
696         ix86_valid_target_attribute_inner_p failed.
697         (ix86_valid_target_attribute_p): Return false only if
698         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
699         target("default") attribute.
700         (sorted_attr_string): Change argument from const char * to tree,
701         merge in all target attribute arguments rather than just one.
702         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
703         instead of free.  Avoid using strcat.
704         (ix86_mangle_function_version_assembler_name): Mangle
705         target("default") as if no target attribute is present.  Adjust
706         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
707         instead of xmalloc and XDELETEVEC instead of free.
708         (ix86_function_versions): Don't return true if one of the decls
709         doesn't have target attribute.  If they don't and one of the decls
710         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
711         sorted_attr_string caller.  Use XDELETEVEC instead of free.
712         (ix86_supports_function_versions): Remove.
713         (make_name): Fix up formatting.
714         (make_dispatcher_decl): Remove resolver_name and its initialization.
715         Avoid leaking memory.
716         (is_function_default_version): Return true if there is
717         target("default") attribute rather than no target attribute at all.
718         (make_resolver_func): Avoid leaking memory.
719         (ix86_generate_version_dispatcher_body): Likewise.
720         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
721         * target.def (supports_function_versions): Remove.
722         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
723         * doc/tm.texi: Regenerated.
725 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
727         PR rtl-optimization/56144
728         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
729         for values with side effects.
731 2013-01-30  Richard Biener  <rguenther@suse.de>
733         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
734         (sparseset_pop): Likewise.
735         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
736         to be able to use quick_push in the worker loop.
738 2013-01-30  Marek Polacek  <polacek@redhat.com>
740         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
742 2013-01-30  Richard Biener  <rguenther@suse.de>
744         PR lto/56147
745         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
747 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
749         PR tree-optimization/56064
750         * fixed-value.c (fixed_from_double_int): New function.
751         * fixed-value.h (fixed_from_double_int): New prototype.
752         (const_fixed_from_double_int): New static inline function.
753         * fold-const.c (native_interpret_fixed): New static function.
754         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
755         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
756         (native_encode_fixed): New static function.
757         (native_encode_expr) <FIXED_CST>: Use it.
758         (native_interpret_int): Move double_int worker code to...
759         * double-int.c (double_int::from_buffer): ...this new static method.
760         * double-int.h (double_int::from_buffer): Prototype it.
762 2013-01-30  Richard Biener  <rguenther@suse.de>
764         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
765         New pointer-map and obstack.
766         (init_alias_vars): Allocate pointer-map and obstack.
767         (delete_points_to_sets): Free them.
768         (find_what_var_points_to): Cache result.
769         (find_what_p_points_to): Adjust for changed interface of
770         find_what_var_points_to.
771         (compute_points_to_sets): Likewise.
772         (ipa_pta_execute): Likewise.
774 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
776         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
777         * configure: Regenerate.
778         * config.in: Regenerate.
779         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
780         #nobits/#progbits if supported.
782 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
784         PR target/56121
785         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
786         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
787         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
789 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
791         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
792         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
794 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
796         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
797         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
799 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
801         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
802         declaration.
803         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
804         * config/arm/cortex-a7.md: New bypasses using
805         arm_mac_accumulator_is_result.
807 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
809         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
810         (cortex_a7_neon_mla): Likewise.
811         (cortex_a7_fpfmad): New reservation.
812         (cortex_a7_fpmacs): Use ffmas and update required units.
813         (cortex_a7_fpmuld): Update required units and latency.
814         (cortex_a7_fpmacd): Likewise.
815         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
816         (cortex_a7_neon). Likewise.
817         (bypass) Update participating units.
819 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
821         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
822         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
823         from fmac to ffma.
824         * config/arm/vfp11.md (vfp_farith): Use ffmas.
825         (vfp_fmul): Use ffmad.
826         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
827         (cortex_r4_fmacd): Use ffmad.
828         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
829         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
830         (cortex_a9_fmacd): Use ffmad.
831         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
832         (cortex_a8_vfp_macd): Use ffmad.
833         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
834         (cortex_a5_fpmacd): Use ffmad.
835         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
836         (cortex_a15_vfp_macd): Use ffmad.
837         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
839 2013-01-29  Jason Merrill  <jason@redhat.com>
841         PR libstdc++/54314
842         * varasm.c (default_assemble_visibility): Don't warn about
843         visibility on artificial decls.
845 2013-01-29  Richard Biener  <rguenther@suse.de>
847         PR tree-optimization/56113
848         * tree-ssa-structalias.c (equiv_class_lookup): Also return
849         the bitmap leader.
850         (label_visit): Free duplicate bitmaps and record the leader instead.
851         (perform_var_substitution): Adjust.
853 2013-01-29  Richard Biener  <rguenther@suse.de>
855         PR tree-optimization/55270
856         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
857         the CFG, schedule loops for fixup.
859 2013-01-29  Nick Clifton  <nickc@redhat.com>
861         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
862         SP_REG.
864 2013-01-28  Leif Ekblad  <leif@rdos.net>
866         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
867         * config/i386/i386.h (TARGET_RDOS): New macro.
868         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
869         * config/i386/i386.c (ix86_option_override_internal): For 64bit
870         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
871         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
872         DEFAULT_LARGE_SECTION_THRESHOLD.
873         * config/i386/i386.md (R14_REG, R15_REG): New constants.
874         * config/i386/rdos.h: New file.
875         * config/i386/rdos64.h: New file.
877 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
879         PR other/54814
880         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
881         TEST_HARD_REG_BIT.
883 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
885         PR rtl-optimization/56117
886         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
887         call cselib_lookup_from_insn on the MEM before calling
888         add_insn_mem_dependence.
890 2013-01-28  Richard Biener  <rguenther@suse.de>
892         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
893         to a stmt that didn't have one.
894         (copy_phis_for_bb): Likewise for PHI arguments.
895         (copy_debug_stmt): Likewise for debug stmts.
897 2013-01-28  Richard Biener  <rguenther@suse.de>
899         PR tree-optimization/56034
900         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
901         (partition_builtin_p): Adjust.
902         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
903         it is the last partition.
904         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
905         up the vertex for the definition.
906         (classify_partition): Classify whether a partition is a
907         PKIND_REDUCTION, thus has uses outside of the loop.
908         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
909         Merge all PKIND_REDUCTION partitions into the last partition.
910         (tree_loop_distribution): Seed partitions from reductions as well.
912 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
914         PR tree-optimization/56125
915         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
916         pow(x,c) into sqrt(x) * powi(x, n/2) or
917         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
918         optimizing for size.
919         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
920         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
921         integer.
923         PR tree-optimization/56094
924         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
925         to UNKNOWN_LOCATION while gimplifying expr.
927 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
929         PR target/56114
930         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
931         operand 0 in movabs insn template for -masm=intel asm alternative.
932         (*movabs<mode>_2): Ditto for operand 1.
934 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
936         PR target/54663
937         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
938         of microblaze-c.o
940 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
942         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
943         tm_file.
945 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
947         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
948         Undef to avoid warning.
950 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
952         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
953         * configure: Regenerate.
955 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
957         PR tree-optimization/56098
958         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
959         for stmts with volatile ops.
960         (cond_store_replacement): Don't optimize if assign has volatile ops.
961         (cond_if_else_store_replacement_1): Don't optimize if either
962         then_assign or else_assign have volatile ops.
963         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
964         volatile ops.
966 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
968         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
970 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
972         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
973         missing ':' in asm example.
975 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
977         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
978         entries into lane and laneq entries.
979         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
980         Remove AdvSIMD scalar modes.
981         (aarch64_sq<r>dmulh_laneq<mode>): New.
982         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
983         modes.
984         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
985         builtin implementations to relfect changes in RTL in aarch64-simd.md.
986         * config/aarch64/iterators.md (VCOND): New.
987         (VCONQ): New.
989 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
991         PR target/54222
992         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
993         Add NULL LIBNAME argument to existing definitions.
994         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
995         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
996         * config/avr/avr.c (DEF_BUILTIN): Same.
997         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
998         (avr_expand_builtin): Expand to a vanilla call if a libgcc
999         implementation is available (DECL_ASSEMBLER_NAME is set).
1000         (avr_fold_absfx): New static function.
1001         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
1002         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
1003         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
1004         AVR_BUILTIN_ABSLLK.
1005         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
1006         (abshk, absk, abslk, absllk): Provide as static inline functions.
1008 2013-01-25  Marek Polacek  <polacek@redhat.com>
1010         PR tree-optimization/56035
1011         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
1013 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1015         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
1016         (*movtf_internal_rex64): Add (!o,C) alternative
1017         (*movxf_internal_rex64): Ditto.
1018         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
1020 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
1022         * doc/invoke.texi: fix typo.
1023         * doc/objc.texi: fix typo.
1025 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
1027         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
1028         for the first two alternatives.
1030 2013-01-24  Diego Novillo  <dnovillo@google.com>
1032         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
1033         (ggc-zone.o): Remove.
1034         * configure.ac: Remove option --with-gc.
1035         * configure: Re-generate.
1036         * doc/install.texi: Remove documentation for --with-gc.
1037         * gengtype.c (write_enum_defn): Remove.  Update all users.
1038         (write_Types_process_field): Remove generation of gt_e_* argument.
1039         (output_type_enum): Remove.  Update all users.
1040         (write_enum_defn): Remove.  Update all users.
1041         (enum alloc_zone): Remove.  Update all users.
1042         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
1043         * ggc-common.c (ggc_splay_alloc): Remove first argument.
1044         Update all callers.
1045         (struct ptr_data): Remove field TYPE.  Update all users.
1046         (gt_pch_note_object): Remove argument TYPE.  Update all users.
1047         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
1048         Update all users.
1049         * ggc-none.c (ggc_alloc_typed_stat): Remove.
1050         (struct alloc_zone): Remove.
1051         (ggc_internal_alloc_zone_stat): Remove.
1052         (ggc_internal_cleared_alloc_zone_stat): Remove.
1053         * ggc-page.c (ggc_alloc_typed_stat): Remove.
1054         (ggc_pch_count_object): Remove last argument.  Update all users.
1055         (ggc_pch_alloc_object): Remove last argument.  Update all users.
1056         (struct alloc_zone): Remove.
1057         * ggc-zone.c: Remove.
1058         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
1059         (struct alloc_zone): Remove.
1060         (ggc_alloc_typed_stat): Remove.
1061         (ggc_alloc_typed): Remove.
1062         (ggc_splay_alloc): Remove first argument.
1063         (rtl_zone): Remove.  Update all users.
1064         (tree_zone): Remove.  Update all users.
1065         (tree_id_zone): Remove.  Update all users.
1066         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
1067         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
1068         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
1069         * tree-ssanames.c: Remove references to zone allocator in comments.
1071 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
1073         * config/avr/avr.c (avr_out_fract): Make register numbers that
1074         might be outside of source operand signed.
1076 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
1078         * config/i386/constraints.md (Yf): New constraint.
1079         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
1080         of f constraint to conditionaly disable x87 register preferences.
1081         (*movdf_internal): Ditto.
1082         (*movsf_internal): Ditto.
1084 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
1086         PR inline-asm/55934
1087         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
1088         that have operands with impossible constraints.
1089         Add a FIXME for a speed-up opportunity.
1090         * lra-constraints.c (process_alt_operands): Verify that a class
1091         selected from constraints on asms is valid for the operand mode.
1092         (curr_insn_transform): Remove incorrect comment.
1094 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
1096         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
1097         TOC operand is a valid symbol ref in the constant pool.
1099 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1101         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
1103 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
1105         PR target/54222
1106         * config/avr/stdfix.h: New file.
1107         * t-avr (stdfix-gcc.h): New rule to build it.
1108         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
1110 2013-01-23  Kostya Serebryany  <kcc@google.com>
1112         * config/darwin.h: remove dependency on
1113         CoreFoundation (asan on Mac OS).
1115 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
1117         PR target/49069
1118         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
1119         instead of cmpdi_operand for first comparison operand.
1120         Don't assert that comparison operands aren't both constants.
1122 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
1124         * doc/install.texi (Downloading the Source): Update references to
1125         downloading separate components.
1127 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
1129         * doc/extend.texi (__int128): Improve grammar.
1131 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
1133         PR target/56028
1134         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
1135         alternative to (o,r).
1136         (*movdi_internal_rex64): Remove (!o,n) alternative.
1137         (DImode immediate->memory splitter): Remove.
1138         (DImode immediate->memory peephole2): Remove.
1139         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
1140         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
1141         alternative to (!o,*r).
1142         (*movtf_internal_sse): New pattern.
1143         (*movxf_internal_rex64): New pattern.
1144         (*movxf_internal): Disable for TARGET_64BIT.
1145         (*movdf_internal_rex64): Remove (!o,F) alternative.
1147 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
1149         PR middle-end/56074
1150         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
1151         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
1152         * tree-vect-loop-manip.c (find_loop_location): Also ignore
1153         stmt locations where LOCATION_LOCUS of the stmt location is
1154         UNKNOWN_LOCATION or BUILTINS_LOCATION.
1156         PR target/55686
1157         * config/i386/i386.md (UNSPEC_STOS): New.
1158         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
1159         *strsetqi_1): Add UNSPEC_STOS.
1161 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
1163         PR c++/56067
1164         * doc/invoke.texi: Remove left over -Wsynth example.
1166 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
1168         PR tree-optimization/56051
1169         * fold-const.c (fold_binary_loc): Don't fold
1170         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
1171         a narrowing conversion, or widening conversion from signed
1172         to unsigned.
1174 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
1176         PR rtl-optimization/56023
1177         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
1178         dependent on debug instruction.
1180 2013-01-21  Martin Jambor  <mjambor@suse.cz>
1182         PR middle-end/56022
1183         * function.c (allocate_struct_function): Call
1184         invoke_set_current_function_hook earlier.
1186 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
1188         * reload1.c (init_reload): Only initialize reload_obstack
1189         during the first call.
1191 2013-01-21  Marek Polacek  <polacek@redhat.com>
1193         * cfgloop.c (verify_loop_structure): Fix up grammar.
1195 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
1197         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
1198         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
1200 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1202         PR target/56058
1203         * config/arm/marvell-pj4.md: Update copyright year.
1204         Fix up use of alu to alu_reg and simple_alu_imm.
1206 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
1208         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
1210 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
1212         PR target/55433
1213         * lra-constraints.c (curr_insn_transform): Don't reuse original
1214         insn for secondary memory move when memory mode should be different.
1216 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1218         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
1219         atomic_storedi_1): New patterns.
1221 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1223         btver2 pipeline descriptions.
1224         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
1225         descriptions.
1226         * config/i386/i386.md (btver2_decode): New type attributes.
1227         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
1228         type attributes.
1229         * config/i386/btver2.md: New file describing btver2 pipelines.
1231 2013-01-19  Andrew Pinski  <apinski@cavium.com>
1233         PR tree-optimization/52631
1234         * tree-ssa-sccvn (visit_use): Before looking up the original
1235         statement, try looking up the simplified expression.
1237 2013-01-19  Anthony Green  <green@moxielogic.com>
1239         * config/moxie/moxie.c (moxie_expand_prologue): Set
1240         current_function_static_stack_size.
1242 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
1244         PR tree-optimization/56029
1245         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
1246         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
1248 2013-01-18  Sharad Singhai  <singhai@google.com>
1250         PR tree-optimization/55995
1251         * dumpfile.c (dump_loc): Print location only if available.
1252         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
1254 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
1256         PR target/55433
1257         * lra-constraints.c (curr_insn_transform): Reuse original insn for
1258         secondary memory move.
1259         (inherit_reload_reg): Use rclass instead of cl for
1260         check_secondary_memory_needed_p.
1262 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
1264         PR middle-end/56015
1265         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1266         the case where writing real complex part of target modifies op1.
1268 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
1270         * config/aarch64/aarch64-simd.md
1271         (aarch64_vcond_internal<mode>): Handle unordered cases.
1272         * config/aarch64/iterators.md (v_cmp_result): New.
1274 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
1275             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1277         * config/arm/marvell-pj4.md: New file.
1278         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
1279         * config/arm/arm.md (generic_sched): Add marvell_pj4.
1280         (generic_vfp): Likewise.
1281         * config/arm/arm-cores.def: Add marvell-pj4.
1282         * config/arm/arm-tune.md: Regenerate.
1283         * config/arm/arm-tables.opt: Regenerate.
1284         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
1285         * doc/invoke.texi: Document marvell-pj4.
1287 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
1289         * config/aarch64/arm_neon.h: Map scalar types to standard types.
1291 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
1293         PR debug/54114
1294         PR debug/54402
1295         PR debug/49888
1296         * var-tracking.c (negative_power_of_two_p): New.
1297         (global_get_addr_cache, local_get_addr_cache): New.
1298         (get_addr_from_global_cache, get_addr_from_local_cache): New.
1299         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
1300         heading comment.
1301         (vt_stack_offset_p): Remove.
1302         (vt_canon_true_dep): Always canonicalize loc's address.
1303         (clobber_overlapping_mems): Make sure we have a MEM.
1304         (local_get_addr_clear_given_value): New.
1305         (val_reset): Clear local cached entries.
1306         (compute_bb_dataflow): Create and release the local cache.
1307         Disable duplicate MEMs clobbering.
1308         (emit_notes_in_bb): Clobber MEMs likewise.
1309         (vt_emit_notes): Create and release the local cache.
1310         (vt_initialize, vt_finalize): Create and release the global
1311         cache, respectively.
1312         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
1314 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
1316         PR libmudflap/53359
1317         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
1318         not found in the symtab.
1320 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
1322         PR debug/56006
1323         PR rtl-optimization/55547
1324         PR rtl-optimization/53827
1325         PR debug/53671
1326         PR debug/49888
1327         * alias.c (offset_overlap_p): New, factored out of...
1328         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
1329         the conservative special case for symbolic constants.  Don't
1330         adjust zero sizes on alignment.
1332 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
1334         PR rtl-optimization/52573
1335         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
1336         REG_UNUSED for the same register.
1338 2013-01-17  Richard Biener  <rguenther@suse.de>
1339             Marek Polacek  <polacek@redhat.com>
1341         PR rtl-optimization/55833
1342         * loop-unswitch.c (unswitch_loops): Move loop verification...
1343         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
1344         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
1345         Set it to true when we're removing a loop from hierarchy tree in
1346         an irreducible region.
1347         (fix_bb_placements): Adjust caller.
1348         (fix_loop_placements): Likewise.
1350 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
1352         * config/avr/builtins.def (DEF_BUILTIN): Factor out
1353         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
1354         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
1355         Remove ID.  Adjust comments.
1356         * config/avr/avr-c.c (avr_builtin_name): Remove.
1357         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
1358         * config/avr/avr.c (avr_tolower): New static function.
1359         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
1360         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
1361         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
1362         default expansion.
1364 2013-01-17  Jan Hubicka  <jh@suse.cz>
1366         PR tree-optimization/55273
1367         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
1369 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
1371         PR target/55981
1372         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
1373         store through atomic_store<mode>_1.
1374         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
1376 2013-01-17  Martin Jambor  <mjambor@suse.cz>
1378         PR tree-optimizations/55264
1379         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
1380         for virtual methods.
1381         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
1382         virtual methods before inlining is over.
1383         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
1384         virtual functions.
1385         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
1386         non-virtual.
1388 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
1390         PR rtl-optimization/56005
1391         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
1392         pending reads for prefetch.
1394 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
1396         * config/aarch64/aarch64.md
1397         (*cstoresi_neg_uxtw): New pattern.
1398         (*cmovsi_insn_uxtw): New pattern.
1399         (*<optab>si3_uxtw): New pattern.
1400         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
1401         (*<optab>si3_insn_uxtw): New pattern.
1402         (*bswapsi2_uxtw): New pattern.
1404 2013-01-16  Richard Biener  <rguenther@suse.de>
1406         * tree-inline.c (tree_function_versioning): Remove set but
1407         never used variable.
1409 2013-01-16  Richard Biener  <rguenther@suse.de>
1411         PR tree-optimization/55964
1412         * tree-flow.h (rename_variables_in_loop): Remove.
1413         (rename_variables_in_bb): Likewise.
1414         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
1415         (copy_loop_before): Adjust and delete update-ssa status.
1416         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
1417         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
1418         (rename_variables_in_loop): Remove.
1419         (slpeel_update_phis_for_duplicate_loop): Likewise.
1420         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
1421         use available cfg machinery instead of duplicating it.
1422         Update PHI nodes and perform poor-mans SSA update here.
1423         (slpeel_tree_peel_loop_to_edge): Adjust.
1425 2013-01-16  Richard Biener  <rguenther@suse.de>
1427         PR tree-optimization/54767
1428         PR tree-optimization/53465
1429         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
1430         (vrp_visit_phi_node): For PHI arguments coming via backedges
1431         drop all symbolical range information.
1432         (execute_vrp): Compute backedges.
1434 2013-01-16  Richard Biener  <rguenther@suse.de>
1436         * doc/install.texi: Update CLooG and ISL requirements to
1437         0.18.0 and 0.11.1.
1439 2013-01-16  Christian Bruel  <christian.bruel@st.com>
1441         PR target/55301
1442         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
1443         (broken_move): Handle UNSPECV_SP_SWITCH_B.
1444         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
1446 2013-01-16  DJ Delorie  <dj@redhat.com>
1448         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
1449         (UNSPECV_SP_SWITCH_E): New.
1450         (sp_switch_1): Change to an unspec.
1451         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
1452         replace $r15.
1454 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
1456         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
1457         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
1458         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
1459         (expand_mem_thread_fence): Ditto.
1460         (expand_mem_signal_fence): Ditto.
1461         (expand_atomic_load): Ditto.
1462         (expand_atomic_store): Ditto.
1464 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
1466         PR rtl-optimization/55547
1467         PR rtl-optimization/53827
1468         PR debug/53671
1469         PR debug/49888
1470         * alias.c (memrefs_conflict_p): Set sizes to negative after
1471         AND adjustments.
1473 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
1475         PR target/55940
1476         * function.c (thread_prologue_and_epilogue_insns): Always
1477         add crtl->drap_reg to set_up_by_prologue.set, even if
1478         stack_realign_drap is false.
1480 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1482         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
1483         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
1484         *call): Fix indention.
1486 2013-01-15  Tom de Vries  <tom@codesourcery.com>
1488         PR target/55876
1489         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
1490         Update comment.
1492 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
1494         PR rtl-optimization/55153
1495         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
1497 2013-01-15  Martin Jambor  <mjambor@suse.cz>
1499         PR tree-optimization/55920
1500         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
1501         accesses as grp_to_be_debug_replaced.
1503 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
1505         PR tree-optimization/55920
1506         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
1507         there is non-useless type conversion needed from debug rhs to lhs,
1508         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
1510 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
1511             Mikael Pettersson  <mikpe@it.uu.se>
1513         PR target/43961
1514         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
1515         Thumb.
1516         (ASM_OUTPUT_CASE_LABEL): Remove.
1517         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
1518         * final.c (shorten_branches): Update alignment of labels before
1519         jump tables if CASE_VECTOR_SHORTEN_MODE.
1521 2013-01-15  Richard Biener  <rguenther@suse.de>
1523         PR bootstrap/55961
1524         * system.h: Do not include gmp.h for building host tools.
1526 2013-01-15  Richard Biener  <rguenther@suse.de>
1528         PR middle-end/55882
1529         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
1530         account for bitpos when computing alignment.
1532 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
1534         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
1535         (ix86_target_macros_internal): Likewise.
1537         * config/i386/i386.c (m_CORE2I7): Removed.
1538         (m_CORE_HASWELL): New macro.
1539         (m_CORE_ALL): Likewise.
1540         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
1541         (initial_ix86_arch_features): Likewise.
1542         (processor_target_table): Initializations for Core avx2.
1543         (cpu_names): New names "core-avx2".
1544         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
1545         PROCESSOR_CORE_HASWELL.
1546         (ix86_issue_rate): New case.
1547         (ia32_multipass_dfa_lookahead): Likewise.
1548         (ix86_sched_init_global): Likewise.
1550         * config/i386/i386.h (TARGET_HASWELL): New macro.
1551         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
1552         (processor_type): New PROCESSOR_HASWELL.
1554 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
1556         PR tree-optimization/55955
1557         * tree-vect-loop.c (vectorizable_reduction): Give up early on
1558         *SHIFT_EXPR and *ROTATE_EXPR codes.
1560         PR tree-optimization/48766
1561         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
1562         -ftrapv disable -fwrapv.
1564 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1566         PR target/55974
1567         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
1568         etc. to 1 and not to __flash.
1569         Use LL suffix for __INT24_MAX__ with -mint8.
1570         Use ULL suffix for __UINT24_MAX__ with -mint8.
1572 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1574         * config/avr/avr-arch.h
1575         (struct base_arch_s): Use typedef avr_arch_t instead.
1576         (struct arch_info_s): Use typedef avr_arch_info_t instead.
1577         (struct mcu_type_s): Use typedef avr_mcu_t instead.
1578         * config/avr/avr.c: Same.
1579         * config/avr/avr-devices.c: Same.
1580         * config/avr/driver-avr.c: Same.
1581         * config/avr/gen-avr-mmcu-texi.c: Same.
1582         * config/avr/avr-mcus.def: Adjust comment.
1584 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
1586         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
1587         * config/aarch64/iterators.md (VALLDI): New.
1589 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
1590             Andi Kleen  <ak@linux.intel.com>
1592         PR target/55948
1593         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
1594         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
1595         memmodel flag.
1597 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1599         * config/avr/avr-stdint.h: Remove trailing blanks.
1600         * config/avr/avr-log.h: Same.
1601         * config/avr/avr-arch.h: Same.
1602         * config/avr/avr-devices.c: Same.
1603         * config/avr/avr-dimode.md: Same.
1604         * config/avr/predicates.md: Same.
1605         * config/avr/avr-c.c: Same.  And fix typo.
1607         * config/avr/avr-protos.h: Same.  And:
1608         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
1609         (init_cumulative_args): Rename to avr_init_cumulative_args.
1610         (expand_prologue): Rename to avr_expand_prologue.
1611         (expand_epilogue): Rename to avr_expand_epilogue.
1612         (adjust_insn_length): Rename to avr_adjust_insn_length.
1613         (notice_update_cc): Rename to avr_notice_update_cc.
1614         (final_prescan_insn): Rename to avr_final_prescan_insn.
1615         * config/avr/avr.c: Same.
1616         * config/avr/avr.h: Same.
1617         * config/avr/avr.md: Remove trailing blanks.
1618         (prologue): Use avr_expand_prologue.
1619         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
1621 2013-01-14  Richard Biener  <rguenther@suse.de>
1623         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
1624         verify_location, collect_subblocks): New functions.
1625         (verify_gimple_in_cfg): Verify that locations only reference
1626         BLOCKs in the functions BLOCK tree.
1628 2013-01-14  Richard Biener  <rguenther@suse.de>
1630         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
1631         PHI argument.
1632         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
1633         unshare reference.
1634         (insert_out_of_ssa_copy_on_edge): Likewise.
1635         (rewrite_close_phi_out_of_ssa): Likewise.
1636         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
1637         debug expressions.
1638         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
1639         propagated constants.
1640         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
1641         can not be shared.
1643 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1645         * config/avr/avr-modes.def: Add GPL copyright notice.
1647 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
1649         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
1650         MEMMODEL_MASK to determine memory model.
1651         (atomic_store<mode>): Ditto from operands[2].
1652         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
1654 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
1656         PR fortran/55935
1657         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
1658         (fold_gimple_assign): Don't call unshare_expr here.
1659         (fold_ctor_reference): Call unshare_expr.
1661 2013-01-13  Terry Guo  <terry.guo@arm.com>
1663         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
1664         * doc/fragments.texi: Document MULTILIB_REUSE.
1665         * gcc.c (multilib_reuse): New internal spec.
1666         (set_multilib_dir): Also search multilib from multilib_reuse.
1667         * genmultilib (tmpmultilib3): Refactor code.
1668         (tmpmultilib4): Ditto.
1669         (multilib_reuse): New multilib argument.
1671 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
1673         * Makefile.in: Update copyright.
1675 2013-01-12  Tom de Vries  <tom@codesourcery.com>
1677         PR middle-end/55890
1678         * calls.c (expand_call): Check if arg_nr is valid.
1680 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1682         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
1683         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
1684         documentation.  Add missing '__' in front of
1685         __builtin_ia32_packssdw256.
1687 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1689         PR target/55719
1690         * config/s390/s390.c (s390_preferred_reload_class): Do not return
1691         NO_REGS for larl operands.
1692         (s390_reload_larl_operand): Use s390_load_address instead of
1693         emit_move_insn.
1695 2013-01-11  Richard Biener  <rguenther@suse.de>
1697         * tree-cfg.c (verify_node_sharing_1): Split out from ...
1698         (verify_node_sharing): ... here.
1699         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
1701 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
1703         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
1704         Substitute TREECHECKING.
1705         * configure: Regenerate.
1706         * Makefile.in (TREECHECKING): New.
1708 2013-01-11  Richard Guenther  <rguenther@suse.de>
1710         PR tree-optimization/44061
1711         * tree-vrp.c (extract_range_basic): Compute zero as
1712         value-range for __builtin_constant_p of function parameters.
1714 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
1716         Update copyright years.
1718 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
1720         PR rtl-optimization/55672
1721         * lra-eliminations.c (mark_not_eliminable): Permit addition with
1722         const to be eliminable.
1724 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
1726         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
1727         * configure: Regenerate.
1729 2013-01-10  Richard Biener  <rguenther@suse.de>
1731         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
1733 2013-01-10  Richard Biener  <rguenther@suse.de>
1735         PR bootstrap/55792
1736         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
1737         locations for virtual PHI arguments.
1738         (rewrite_update_phi_arguments): Likewise.
1740 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
1742         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
1743         on to assembler.
1745 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
1747         PR tree-optimization/55921
1748         * tree-complex.c (expand_complex_asm): New function.
1749         (expand_complex_operations_1): Call it for GIMPLE_ASM.
1751 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1753         PR target/55718
1754         * config/s390/s390.c (s390_symref_operand_p)
1755         (s390_loadrelative_operand_p): Merge the two functions.
1756         (s390_check_qrst_address, print_operand_address): Add parameters
1757         to s390_loadrelative_operand_p invokation.
1758         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
1759         (s390_reload_larl_operand, s390_secondary_reload): Use
1760         s390_loadrelative_operand_p instead of s390_symref_operand_p.
1761         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
1763 2013-01-09  Mike Stump  <mikestump@comcast.net>
1765         * dse.c (record_store): Remove unnecessary assert.
1767 2013-01-09  Jan Hubicka  <jh@suse.cz>
1769         PR tree-optimization/55569
1770         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
1771         * cfgloop.h (scale_loop_profile): Likewise.
1773 2013-01-09  Jan Hubicka  <jh@suse.cz>
1775         PR lto/45375
1776         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
1777         functions.
1778         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
1780 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
1782         PR middle-end/55114
1783         * expr.h (maybe_emit_group_store): Declare.
1784         * expr.c (maybe_emit_group_store): New function.
1785         * builtins.c (expand_builtin_int_roundingfn): Call it.
1786         (expand_builtin_int_roundingfn_2): Likewise.
1788 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
1790         PR rtl-optimization/55829
1791         * lra-constraints.c (match_reload): Add code for absent output.
1792         (curr_insn_transform): Add code for reloads of matched inputs
1793         without output.
1795 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
1797         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
1798         attribute of movddup insn to DF.
1799         (*vec_interleave_lowv2df): Ditto.
1800         (vec_dupv2df): Ditto.
1802 2013-01-09  Jan Hubicka  <jh@suse.cz>
1804         PR tree-optimiation/55875
1805         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
1806         EVERY_ITERATION parameter.
1807         (number_of_iterations_exit): Check if exit is executed every iteration.
1808         (idx_infer_loop_bounds): Similarly here.
1809         (n_of_executions_at_most): Simplify
1810         to only test for cases where statement is dominated by the
1811         particular bound; handle correctly the "postdominance" test.
1812         (scev_probably_wraps_p): Use max loop iterations info
1813         as a global bound first.
1815 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
1816             Nick Clifton  <nickc@redhat.com>
1818         * config/v850/v850.md (cbranchsf4): New pattern.
1819         (cstoresf4): New pattern.
1820         (cbranchdf4): New pattern.
1821         (cstoredf4): New pattern.
1822         (movsicc): Disallow floating point comparisons.
1823         (cmpsf_le_insn): Fix order of operators.
1824         (cmpsf_lt_insn): Likewise.
1825         (cmpsf_eq_insn): Likewise.
1826         (cmpdf_le_insn): Likewise.
1827         (cmpdf_lt_insn): Likewise.
1828         (cmpdf_eq_insn): Likewise.
1829         (cmpsf_ge_insn): Use LE comparison.
1830         (cmpdf_ge_insn): Likewise.
1831         (cmpsf_gt_insn): Use LT comparison.
1832         (cmpdf_gt_insn): Likewise.
1833         (cmpsf_ne_insn): Delete pattern.
1834         (cmpdf_ne_insn): Delete pattern.
1835         * config/v850/v850.c (v850_gen_float_compare): Use
1836         gen_cmpdf_eq_insn for NE comparison.
1837         (v850_float_z_comparison_operator)
1838         (v850_float_nz_comparison_operator): Move from here ...
1839         * config/v850/predicates.md: ... to here.  Move GT and GE
1840         comparisons into v850_float_z_comparison_operator.
1841         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
1842         Delete prototype.
1843         (v850_float_nz_comparison_operator): Likewise.
1845 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1847         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
1848         with calls to gen_insvsi/gen_insvdi.
1850 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1852         * config/i386/i386.c (initial_ix86_tune_features): Set up
1853         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
1855 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
1856             Jakub Jelinek  <jakub@redhat.com>
1858         PR tree-optimization/48189
1859         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
1860         If nitercst is 0, don't predict the exit edge.
1862 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1864         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
1865         in asm_fprintf with reg_names.
1866         (aarch64_print_operand_address): Likewise.
1867         (aarch64_return_addr): Likewise.
1868         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
1870 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1872         * config/pa/pa.h (VAL_U6_BITS_P): Define.
1873         (INT_U6_BITS): Likewise.
1874         * config/pa/predicates.md (uint6_operand): New predicate.
1875         (shift5_operand, shift6_operand): Likewise.
1876         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
1877         arith32_operand.
1878         (lshrdi3): Use shift6_operand.
1879         (shrpsi4, shrpdi4): New insn patterns.
1880         (extzv): Delete expander.
1881         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
1882         predicates in unamed zero extract patterns.  Tighten common constraint.
1883         (extv): Delete expander.
1884         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
1885         predicates in unamed sign extract patterns.  Tighten common constraint.
1886         (insv): Delete expander.
1887         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
1888         predicates in unamed insert patterns.  Tighten common constraint.
1889         Change uint32_operand predicate to uint6_operand predicate in unamed
1890         DImode pattern to insert constant values of type 1...1xxxx.
1892 2013-01-04  Jan Hubicka  <jh@suse.cz>
1894         PR tree-optimization/55823
1895         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
1896         issue.
1898 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
1899             Uros Bizjak  <ubizjak@gmail.com>
1901         PR rtl-optimization/55845
1902         * df-problems.c (can_move_insns_across): Stop scanning at
1903         volatile_insn_p source instruction or give up if
1904         across_from .. across_to range contains any volatile_insn_p
1905         instructions.
1907 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
1909         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
1910         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
1911         Declare.
1912         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
1913         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
1915 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
1917         PR fortran/55341
1918         * asan.c (asan_clear_shadow): New function.
1919         (asan_emit_stack_protection): Use it.
1921 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
1923         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
1924         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
1925         with tab instead of space.
1927 2013-01-08  Nick Clifton  <nickc@redhat.com>
1929         * config/rl78/rl78.c (rl78_expand_prologue): Always select
1930         register bank 0 at the start of an interrupt handler.
1931         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
1932         MDBH registers.
1934 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
1936         * config/aarch64/aarch64-simd.md
1937         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
1938         (aarch64_simd_bsl): Likewise.
1939         (aarch64_vcond_internal<mode>): Likewise.
1940         (vcond<mode><mode>): Likewise.
1941         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
1942         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
1944 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
1946         * config/aarch64/aarch64-builtins.c
1947         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
1949 2013-01-08  Martin Jambor  <mjambor@suse.cz>
1951         PR debug/55579
1952         * tree-sra.c (analyze_access_subtree): Return true also after
1953         potentially creating a debug-only replacement.
1955 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
1957         PR middle-end/55890
1958         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
1960         PR tree-optimization/54120
1961         * tree-vrp.c (range_fits_type_p): Don't allow
1962         src_precision < precision from signed vr to unsigned_p
1963         if vr->min or vr->max is negative.
1964         (simplify_float_conversion_using_ranges): Test can_float_p
1965         against CODE_FOR_nothing.
1967 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
1968             Richard Biener  <rguenther@suse.de>
1970         PR middle-end/55851
1971         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
1972         types instead of just INTEGER_TYPE types.
1974 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
1976         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
1977         TF_SIZE): Define.
1979 2013-01-07  Steve Ellcey  <sellcey@mips.com>
1981         PR target/42661
1982         * config/mips/mips.opt: Change mad to mmad to match documentation.
1984 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
1986         PR target/55897
1987         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
1988         .progmemx.data now.
1990 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
1992         PR target/55897
1993         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
1994         (avr_addrspace_t): Add .section_name field.
1995         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
1996         array size.
1997         (avr_addrspace): Same.  Initialize .section_name.  Remove last
1998         NULL entry.  Put __memx into .progmemx.data.
1999         (progmem_section_prefix): Remove.
2000         (avr_asm_init_sections): No need to initialize progmem_section.
2001         (avr_asm_named_section): Use avr_addrspace[].section_name to get
2002         section name prefix.
2003         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
2004         retrieve the progmem section.
2005         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
2006         boundary to run over avr_addrspace[].
2007         (avr_register_target_pragmas): Ditto.
2009 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
2011         * varasm.c (output_constant_def_contents): For asan_protect_global
2012         protected strings, adjust DECL_ALIGN if needed, before testing for
2013         anchored symbols.
2014         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
2015         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
2016         normal decls.
2017         (output_object_block): For asan protected decls, emit asan padding
2018         after their contents.
2019         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
2020         (asan_finish_file): Test it here instead.
2022 2013-01-07  Nick Clifton  <nickc@redhat.com>
2023             Matthias Klose  <doko@debian.org>
2024             Doug Kwan  <dougkwan@google.com>
2025             H.J. Lu  <hongjiu.lu@intel.com>
2027         PR driver/55470
2028         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
2030         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
2032         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
2034         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
2036         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
2038 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2040         PR target/54461
2041         * doc/install.texi (Cross-Compiler-Specific Options): Document
2042         --with-avrlibc.
2044 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
2046         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
2047         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
2048         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
2049         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
2050         vqmovun_high_s64): Fix source operand number and update copyright.
2052 2013-01-07  Richard Biener  <rguenther@suse.de>
2054         PR middle-end/55890
2055         * gimple.h (gimple_call_builtin_p): New overload.
2056         * gimple.c (validate_call): New function.
2057         (gimple_call_builtin_p): Likewise.
2058         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2059         Use gimple_call_builtin_p.
2060         (find_func_clobbers): Likewise.
2061         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
2062         (strlen_optimize_stmt): Likewise.
2064 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
2066         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
2067         (vld1q_dup_*): Likewise.
2068         (vld1_*): Likewise.
2069         (vld1q_*): Likewise.
2070         (vld1_lane_*): Likewise.
2071         (vld1q_lane_*): Likewise.
2073 2013-01-07  Richard Biener  <rguenther@suse.de>
2075         * lto-streamer.h (LTO_minor_version): Bump to 2.
2077 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
2079         * config/aarch64/aarch64-protos.h
2080         (aarch64_const_double_zero_rtx_p): Rename to...
2081         (aarch64_float_const_zero_rtx_p): ...this.
2082         (aarch64_float_const_representable_p): New.
2083         (aarch64_output_simd_mov_immediate): Likewise.
2084         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
2085         move immediate case.
2086         * config/aarch64/aarch64.c
2087         (aarch64_const_double_zero_rtx_p): Rename to...
2088         (aarch64_float_const_zero_rtx_p): ...this.
2089         (aarch64_print_operand): Allow printing of new constants.
2090         (aarch64_valid_floating_const): New.
2091         (aarch64_legitimate_constant_p): Check for valid floating-point
2092         constants.
2093         (aarch64_simd_valid_immediate): Likewise.
2094         (aarch64_vect_float_const_representable_p): New.
2095         (aarch64_float_const_representable_p): Likewise.
2096         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
2097         (aarch64_output_simd_mov_immediate): New.
2098         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
2099         (*movdf_aarch64): Likewise.
2100         * config/aarch64/constraints.md (Ufc): New.
2101         (Y): call aarch64_float_const_zero_rtx.
2102         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
2104 2013-01-07  Richard Biener  <rguenther@suse.de>
2106         PR tree-optimization/55888
2107         PR tree-optimization/55862
2108         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
2109         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
2110         not if it is contained therein.
2112 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2114         * config/avr/t-avr: Typo.
2116 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2118         PR55243
2119         * config/avr/t-avr: Don't automatically rebuild
2120         $(srcdir)/config/avr/t-multilib
2121         $(srcdir)/config/avr/avr-tables.opt
2122         $(srcdir)/doc/avr-mmcu.texi
2123         (avr-mcus): New phony target to build them on request.
2124         (s-avr-mlib, s-avr-mmcu-texi): Remove.
2125         * avr/avr-mcus.def: Adjust comments.
2127 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
2129         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
2131 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
2133         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
2135 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
2137         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
2139 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
2141         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
2142         to generate profiling.
2143         * config/rs6000/aix64.h (LIB_SPEC): Same.
2145 2013-01-04  Andrew Pinski  <apinski@cavium.com>
2147         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
2148         New function.
2149         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
2151 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
2153         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
2154         unconditionally.
2155         (ix86_expand_move): Ditto.
2156         (ix86_zero_extend_to_Pmode): Ditto.
2157         (ix86_expand_call): Ditto.
2158         (ix86_expand_special_args_builtin): Ditto.
2159         (ix86_expand_builtin): Ditto.
2161 2013-01-04  Richard Biener  <rguenther@suse.de>
2163         PR tree-optimization/55862
2164         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
2165         translating them through PHI nodes.
2167 2013-01-04  Martin Jambor  <mjambor@suse.cz>
2169         PR tree-optimization/55755
2170         * tree-sra.c (sra_modify_assign): Do not check that an access has no
2171         children when trying to avoid producing a VIEW_CONVERT_EXPR.
2173 2013-01-04  Marek Polacek  <polacek@redhat.com>
2175         PR middle-end/55859
2176         * opts.c (default_options_optimization): Clarify error message.
2178 2013-01-04  Richard Biener  <rguenther@suse.de>
2180         PR middle-end/55863
2181         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
2182         reassociation.
2184 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2186         PR target/53789
2187         * config/pa/pa.md (movsi): Revert previous change.
2188         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
2189         references.
2191 2013-01-03  Richard Henderson  <rth@redhat.com>
2193         * config/i386/i386.c (ix86_expand_move): Always assign to op1
2194         after eliminating TLS symbols.
2196 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
2198         PR bootstrap/50167
2199         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
2200         * graphite-poly.c (debug_gmp_value): Likewise.
2202 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
2204         PR target/55712
2205         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
2206         selected code model, define __code_mode_small__, __code_model_medium__,
2207         __code_model_large__, __code_model_32__ or __code_model_kernel__.
2208         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
2209         xchg temporary register with %k.  Declare temporary register as
2210         early clobbered.
2211         [__x86_64__]: For medium and large code models, preserve %rbx register.
2213 2013-01-03  Richard Biener  <rguenther@suse.de>
2215         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
2216         (dump_subscript): Adjust.
2217         (finalize_ddr_dependent): Do not dump redundant info.
2218         (analyze_siv_subscript): Adjust.
2219         (subscript_dependence_tester): Likewise.
2220         (compute_affine_dependence): Likewise.
2222 2013-01-03  Richard Biener  <rguenther@suse.de>
2224         Revert
2225         2013-01-03  Richard Biener  <rguenther@suse.de>
2227         PR tree-optimization/55857
2228         * tree-vect-stmts.c (vectorizable_load): Do not setup
2229         re-alignment for invariant loads.
2231         2013-01-02  Richard Biener  <rguenther@suse.de>
2233         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
2234         invariant load do not generate a vector load from the scalar location.
2236 2013-01-03  Richard Biener  <rguenther@suse.de>
2238         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
2239         for not vectorizing.
2240         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
2241         not build INDIRECT_REFs, call get_name once only.
2242         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
2243         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
2245 2013-01-03  Richard Biener  <rguenther@suse.de>
2247         PR tree-optimization/55857
2248         * tree-vect-stmts.c (vectorizable_load): Do not setup
2249         re-alignment for invariant loads.
2251 2013-01-03  Richard Biener  <rguenther@suse.de>
2253         PR lto/55848
2254         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
2255         prefer a built-in decl.
2257 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
2259         * gcc.c (process_command): Update copyright notice dates.
2260         * gcov.c (print_version): Likewise.
2261         * gcov-dump.c (print_version): Likewise.
2263         PR rtl-optimization/55838
2264         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
2265         iv0.step, iv1.step and step.
2267 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
2268             Marc Glisse  <marc.glisse@inria.fr>
2270         PR tree-optimization/55832
2271         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
2272         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
2273         integer_{one,zero}_node.
2275 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
2277         PR debug/54402
2278         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
2279         * var-tracking.c (reverse_op): Don't add reverse ops to
2280         VALUEs that have already
2281         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
2283 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
2285         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
2287 2013-01-02  Teresa Johnson  <tejohnson@google.com>
2289         * dumpfile.c (dump_loc): Print filename with location.
2290         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
2291         new location_t parameter to emit complete unroll message with
2292         new dump framework.
2293         (canonicalize_loop_induction_variables): Compute loops location
2294         and pass to try_unroll_loop_completely.
2295         * loop-unroll.c (report_unroll_peel): New function.
2296         (peel_loops_completely): Use new dump format with location
2297         for main dumpfile message, and invoke report_unroll_peel on success.
2298         (decide_unrolling_and_peeling): Ditto.
2299         (decide_peel_once_rolling): Remove old dumpfile message subsumed
2300         by report_unroll_peel.
2301         (decide_peel_completely): Ditto.
2302         (decide_unroll_constant_iterations): Ditto.
2303         (decide_unroll_runtime_iterations): Ditto.
2304         (decide_peel_simple): Ditto.
2305         (decide_unroll_stupid): Ditto.
2306         * cfgloop.c (get_loop_location): New function.
2307         * cfgloop.h (get_loop_location): Declare.
2309 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
2311         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
2312         NULL.
2314 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2316         PR middle-end/55198
2317         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
2318         BLKmode objects when EXPAND_MEMORY is specified.
2320 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
2322         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
2323         in loop predicate.
2324         (fold_builtin_cpu): Do not share cpu model decls across statements.
2326 2013-01-02  Jason Merrill  <jason@redhat.com>
2328         PR c++/55804
2329         * tree.c (build_array_type_1): Revert earlier change.
2331 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
2333         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
2334         "cortex-a57".
2335         * config/aarch64/aarch64-tune.md: Re-generate.
2337 2013-01-02  Richard Biener  <rguenther@suse.de>
2339         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
2340         invariant load do not generate a vector load from the scalar location.
2342 2013-01-02  Richard Biener  <rguenther@suse.de>
2344         PR bootstrap/55784
2345         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
2346         * configure: Regenerate.
2348 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
2350         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
2351         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
2352         (expand_builtin_int_roundingfn_2): Keep the original target around
2353         for the fallback case.
2355 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
2357         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
2358         to be clear for sign changes.
2360 2013-01-01  Jan Hubicka  <jh@suse.cz>
2362         * ipa-inline-analysis.c: Fix formatting.
2364 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
2366         PR tree-optimization/55831
2367         * tree-vect-loop.c (get_initial_def_for_induction): Use
2368         gsi_after_labels instead of gsi_start_bb.
2370 Copyright (C) 2013 Free Software Foundation, Inc.
2372 Copying and distribution of this file, with or without modification,
2373 are permitted in any medium without royalty provided the copyright
2374 notice and this notice are preserved.