1 2013-02-08 Marek Polacek <polacek@redhat.com>
3 * cfgloop.c (verify_loop_structure): Add more checking
6 2013-02-08 Richard Biener <rguenther@suse.de>
9 * cfgloop.h (flow_loops_find): Adjust.
10 (bb_loop_header_p): Declare.
11 * cfgloop.c (bb_loop_header_p): New function split out from ...
12 (flow_loops_find): ... here. Adjust function signature,
13 support incremental loop structure update.
14 (verify_loop_structure): Cleanup. Verify a loop is a loop.
15 * cfgloopmanip.c (fix_loop_structure): Move ...
16 * loop-init.c (fix_loop_structure): ... here.
17 (apply_loop_flags): Split out from ...
18 (loop_optimizer_init): ... here.
19 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
20 in incremental mode, only remove dead loops here.
22 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
25 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
26 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
27 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
28 (*round<mode>3.libgcc): New insns for fixed-modes.
29 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
30 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
31 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
32 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
33 implementations. Define to __builtin_avr_absFX,
34 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
35 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
36 __builtin_avr_countlsFX, respectively.
37 * config/avr/avr-c.c (target.h): Include it.
38 (enum avr_builtin_id): New enum.
39 (avr_resolve_overloaded_builtin): New static function.
40 (avr_register_target_pragmas): Use it to set
41 targetm.resolve_overloaded_builtin.
42 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
43 tree nodes used by DEF_BUILTIN.
44 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
45 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
46 <AVR_BUILTIN_xxBITS>: Same.
48 2013-02-08 Richard Biener <rguenther@suse.de>
50 * cfgloop.c (verify_loop_structure): Properly handle
51 a loop exiting to another loop header.
52 * ira-int.h (ira_loops): Remove.
53 * ira.c (ira_loops): Remove.
54 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
55 (do_reload): Use loop_optimizer_finalize.
56 * ira-build.c (create_loop_tree_nodes): Use get_loops and
57 number_of_loops to access the loop tree.
58 (more_one_region_p): Likewise.
59 (finish_loop_tree_nodes): Likewise.
60 (rebuild_regno_allocno_maps): Likewise.
61 (mark_loops_for_removal): Likewise.
62 (mark_all_loops_for_removal): Likewise.
63 (remove_unnecessary_regions): Likewise.
64 (ira_build): Likewise.
65 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
67 2013-02-08 Richard Biener <rguenther@suse.de>
69 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
70 * ipa-pure-const.c (analyze_function): Avoid calling
71 mark_irreducible_loops twice.
72 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops
75 2013-02-07 David S. Miller <davem@davemloft.net>
77 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
79 * var-tracking.c (vt_add_function_parameter): Test the presence of
80 HAVE_window_save properly and do not remap argument registers when
81 we have a leaf function.
83 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
86 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
88 * config/i386/i386.c (ix86_print_operand): Ditto.
90 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
92 * lra-constraints.c (process_alt_operands): Fix recently added comment.
94 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
96 PR rtl-optimization/56225
97 * lra-constraints.c (process_alt_operands): Check that reload hard
98 reg can hold value for strict_low_part.
100 2013-02-07 Jakub Jelinek <jakub@redhat.com>
103 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
104 dwarf2out_end_function.
105 (in_first_function_p, maybe_at_text_label_p,
106 first_loclabel_num_not_at_text_label): New variables.
107 (dwarf2out_var_location): In the first function find out
108 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
109 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
112 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
114 PR rtl-optimization/56178
115 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
116 SUBREG of a register. Tidy up related block of code.
117 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
118 note if the source is a register or a SUBREG of a register.
120 2013-02-07 Jakub Jelinek <jakub@redhat.com>
123 * config/rs6000/rs6000.md (ptrm): New mode attr.
124 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
125 call_value_indirect_aix<pttrsize>,
126 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
129 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
131 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
132 if -bnortl. Convert to strcmp and strncmp.
134 2013-02-07 Alan Modra <amodra@gmail.com>
137 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
138 addresses won't wrap when offsetting.
139 (rs6000_secondary_reload): Provide secondary reloads needed for
140 wrapping LO_SUM addresses.
142 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
144 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
147 2013-02-06 Richard Biener <rguenther@suse.de>
149 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
150 instead of calling fix_loop_structure.
152 2013-02-06 Jakub Jelinek <jakub@redhat.com>
155 * omp-low.c (use_pointer_for_field): Return false if
156 lower_send_shared_vars doesn't generate any copy-out code.
158 2013-02-06 Tom de Vries <tom@codesourcery.com>
160 PR rtl-optimization/56131
161 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
162 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
163 of the label is NULL. Add comment.
165 2013-02-05 Jakub Jelinek <jakub@redhat.com>
167 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
170 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
171 (STATIC_LIBTSAN_LIBS): Likewise.
172 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
173 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
174 is defined, don't add anything else beyond that.
175 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
176 (LINK_COMMAND_SPEC): Use them.
178 PR tree-optimization/56205
179 * tree-stdarg.c (check_all_va_list_escapes): Return true if
180 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
181 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
183 2013-02-05 Richard Biener <rguenther@suse.de>
185 PR tree-optimization/53342
186 PR tree-optimization/53185
187 * tree-vectorizer.h (vect_check_strided_load): Remove.
188 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
189 not disallow peeling for vectorized strided loads.
190 (vect_check_strided_load): Make static and simplify.
191 (vect_analyze_data_refs): Adjust.
192 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
193 correctly when vectorizing strided loads.
195 2013-02-05 Richard Biener <rguenther@suse.de>
197 * doc/install.texi: Refer to ISL, not PPL.
199 2013-02-05 Jan Hubicka <jh@suse.cz>
201 PR tree-optimization/55789
202 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
204 2013-02-05 Jan Hubicka <jh@suse.cz>
206 PR tree-optimization/55789
207 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
208 the dead call anyway.
210 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
213 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
215 2013-02-04 Alexander Potapenko <glider@google.com>
216 Jack Howarth <howarth@bromo.med.uc.edu>
217 Jakub Jelinek <jakub@redhat.com>
220 * config/darwin.c (sort_ctor_records): Stabilized qsort
221 on constructor priority by using original position.
222 (finalize_ctors): New routine to sort constructors by
223 priority before use in assemble_integer.
224 (machopic_asm_out_constructor): Use finalize_ctors if needed.
226 2013-02-04 Jakub Jelinek <jakub@redhat.com>
229 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
230 about visibility on artificial decls.
231 * config/sol2.c (solaris_assemble_visibility): Likewise.
233 2013-02-04 Kai Tietz <ktietz@redhat.com>
236 * config/i386/i386.c (function_value_ms_64): Add additional valtype
237 argument and improve checking of return-argument types for 16-byte
239 (ix86_function_value_1): Add additional valtype argument on call
240 of function_value_64.
241 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
242 handling infunction_value_64 function.
244 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
246 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
248 2013-02-04 Richard Biener <rguenther@suse.de>
250 PR tree-optimization/56188
251 * tree-ssa-structalias.c (label_visit): Consider case with
252 initially non-empty points-to set.
253 (perform_var_substitution): Dump node mapping and clean up.
255 2013-02-04 Richard Guenther <rguenther@suse.de>
258 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
259 node prevail as last resort.
260 (lto_symtab_merge_decls): Remove guard on LTRANS here.
261 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
263 2013-02-04 Richard Biener <rguenther@suse.de>
265 PR tree-optimization/56113
266 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
268 (equiv_class_lookup_or_add): ... this.
269 (label_visit): Adjust and fix error in previous patch.
270 (perform_var_substitution): Adjust.
272 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
274 * config/sh/divtab.c: Fix formatting and comments throughout the file.
275 * config/sh/sh4-300.md: Likewise.
276 * config/sh/sh4a.md: Likewise.
277 * config/sh/constraints.md: Likewise.
278 * config/sh/sh.md: Likewise.
279 * config/sh/netbsd-elf.h: Likewise.
280 * config/sh/predicates.md: Likewise.
281 * config/sh/sh-protos.h: Likewise.
282 * config/sh/ushmedia.h: Likewise.
283 * config/sh/linux.h: Likewise.
284 * config/sh/sh.c: Likewise.
285 * config/sh/superh.h: Likewise.
286 * config/sh/elf.h: Likewise.
287 * config/sh/sh4.md: Likewise.
288 * config/sh/sh.h: Likewise.
290 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
292 * config/pa/constraints.md: Adjust unused letters. Change "T"
293 constraint to match_test floating_point_store_memory_operand().
294 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
295 (base14_operand): New.
296 (floating_point_store_memory_operand): New.
297 (integer_store_memory_operand): Revise to use base14_operand and
298 reg_plus_base_memory_operand.
299 (move_dest_operand): Allow symbolic_memory_operands.
300 (symbolic_memory_operand): Check for LO_SOM.
301 (symbolic_operand): Change default case to break.
302 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
303 CONST_DOUBLE values to be reloaded by putting them into memory when
304 the destination is a floating point register.
305 (movdf): Remove code to handle CONST_DOUBLE.
307 (reload_indf_r1): New.
308 (reload_insf_r1): New.
309 Consistently use "Q" and "T" constraints with integer and floating
310 point move instructions, respectively.
311 (movdi): Remove FAIL.
312 Change predicate for source operand unamed DImode move from
313 general_operand to move_src_operand.
314 (umulsidi3): Change predicate for destination operand to
316 Likewise for similar unamed patterns.
317 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
318 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
319 (hppa_legitimize_address): Simplify mask calculation.
320 (pa_emit_move_sequence): Revised handling of secondary reloads from
321 REG+D addresses for floating point loads and stores. Directly handle
322 loading CONST0_RTX (mode) to a floating point register.
323 (pa_secondary_reload): Handle reloading DF and SFmode constant values
324 to floating point registers. Don't restrict secondary reloads to
325 floating point registers to integer modes. Revise some comments and
327 (TARGET_LEGITIMATE_ADDRESS_P): Define.
328 (pa_legitimate_address_p): New.
329 (pa_legitimize_reload_address): New.
330 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
331 (STRICT_REG_OK_FOR_BASE_P): New.
332 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
333 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
335 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
336 Andrew Dixie <andrewd@gentrack.com>
338 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
341 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
343 * expmed.c (extract_bit_field_1): Pass the full width of the
344 structure to get_best_reg_extraction_insn.
346 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
349 * configure.ac (use_cxa_atexit): Add AIX.
350 * configure: Regenerate.
352 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
354 2013-02-01 Jakub Jelinek <jakub@redhat.com>
357 * final.c (need_profile_function): New variable.
358 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
359 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
360 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
361 notes, targetm.asm_out.function_prologue doesn't emit anything,
362 HAVE_prologue and profiler should be emitted before prologue,
363 set need_profile_function instead of emitting it.
364 (final_scan_insn): If need_profile_function, emit
365 profile_function on the first NOTE_INSN_BASIC_BLOCK or
366 NOTE_INSN_FUNCTION_BEG note.
368 2013-02-01 Richard Henderson <rth@redhat.com>
370 * config/rs6000/rs6000.md (smulditi3): New.
373 * config/alpha/alpha.md (umulditi3): New.
375 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
377 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
378 (ASM_OUTPUT_ALIGNED_LOCAL): New.
380 2013-02-01 Richard Biener <rguenther@suse.de>
382 PR tree-optimization/56113
383 * tree-ssa-structalias.c (label_visit): Reduce work for
384 single-predecessor nodes.
386 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
388 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
389 range isn't testing for zero.
391 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
394 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
396 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
397 Nick Clifton <nickc@redhat.com>
399 * config/v850/constraints.md (Q): Define as a memory constraint.
400 * config/v850/predicates.md (label_ref_operand): New predicate.
401 (e3v5_shift_operand): New predicate.
402 (ior_operator): New predicate.
403 * config/v850/t-v850: Add e3v5 multilib.
404 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
405 (v850_gen_movdi): Prototype.
406 * config/v850/v850.c: Add support for e3v5 architecture.
407 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
409 (construct_save_jarl): Add e3v5 long JARL support.
410 (v850_adjust_insn_length): New function. Adjust length of call
411 insns when using e3v5 instructions.
412 (v850_gen_movdi): New function: Generate instructions to move a
414 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
415 (CPP_SPEC): Define __v850e3v5__ as appropriate.
416 (TARGET_USE_FPU): Enable for e3v5.
417 (CONST_OK_FOR_W): New macro.
418 (ADJUST_INSN_LENGTH): Define.
419 * config/v850/v850.md (UNSPEC_LOOP): Define.
420 (attr cpu): Add v850e3v5.
421 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
422 (movdi): New pattern.
423 (movdi_internal): New pattern.
424 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
425 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
426 (cstoresf4): Likewise.
427 (cstoredf4): Likewise.
429 (rotlso3_a): New pattern.
430 (rotlsi3_b): New pattern
431 (rotlsi3_v850e3v5): New pattern.
432 (doloop_begin): New pattern.
433 (fix_loop_counter): New pattern.
434 (doloop_end): New pattern.
435 (branch_normal): Add e3v5 long branch support.
436 (branch_invert): Likewise.
437 (branch_z_normal): Likewise.
438 (branch_z_invert): Likewise.
439 (branch_nz_normal): Likewise.
440 (branch_nz_invert): Likewise.
441 (call_internal_short): Add e3v5 register-indirect JARL support.
442 (call_internal_long): Likewise.
443 (call_value_internal_short): Likewise.
444 (call_value_internal_long): Likewise.
445 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
447 * config.gcc: Add support for configuring v840e3v5 target.
448 * doc/invoke.texi: Document new v850 specific command line options.
450 2013-01-31 Paul Koning <ni1d@arrl.net>
454 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
455 children if parent is a class.
456 (prune_unused_types_prune): Don't add DW_AT_declaration.
458 2013-01-31 Richard Biener <rguenther@suse.de>
460 PR tree-optimization/56157
461 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
462 match up operand with SLP child.
464 2013-01-31 Jason Merrill <jason@redhat.com>
467 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
468 parameters the first time.
469 (gen_scheduled_generic_parms_dies): Check completeness here.
471 2013-01-31 Richard Biener <rguenther@suse.de>
474 * common.opt (faggressive-loop-optimizations): New flag,
476 * doc/invoke.texi (faggressive-loop-optimizations): Document.
477 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
478 infer_loop_bounds_from_undefined by it.
480 2013-01-31 Richard Biener <rguenther@suse.de>
482 PR tree-optimization/56150
483 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
484 visit virtual operands.
485 (find_uses_to_rename_bb): Likewise.
487 2013-01-31 Richard Biener <rguenther@suse.de>
489 PR tree-optimization/56150
490 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
491 mixed store non-store stmts.
493 2013-01-30 Jakub Jelinek <jakub@redhat.com>
496 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
497 LIBASAN_EARLY_SPEC is defined.
498 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
499 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
501 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
504 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
505 invalid args instead of ICEing on it.
506 (ix86_valid_target_attribute_tree): Return error_mark_node if
507 ix86_valid_target_attribute_inner_p failed.
508 (ix86_valid_target_attribute_p): Return false only if
509 ix86_valid_target_attribute_tree returned error_mark_node. Allow
510 target("default") attribute.
511 (sorted_attr_string): Change argument from const char * to tree,
512 merge in all target attribute arguments rather than just one.
513 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
514 instead of free. Avoid using strcat.
515 (ix86_mangle_function_version_assembler_name): Mangle
516 target("default") as if no target attribute is present. Adjust
517 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
518 instead of xmalloc and XDELETEVEC instead of free.
519 (ix86_function_versions): Don't return true if one of the decls
520 doesn't have target attribute. If they don't and one of the decls
521 is DECL_FUNCTION_VERSIONED, report an error. Adjust
522 sorted_attr_string caller. Use XDELETEVEC instead of free.
523 (ix86_supports_function_versions): Remove.
524 (make_name): Fix up formatting.
525 (make_dispatcher_decl): Remove resolver_name and its initialization.
526 Avoid leaking memory.
527 (is_function_default_version): Return true if there is
528 target("default") attribute rather than no target attribute at all.
529 (make_resolver_func): Avoid leaking memory.
530 (ix86_generate_version_dispatcher_body): Likewise.
531 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
532 * target.def (supports_function_versions): Remove.
533 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
534 * doc/tm.texi: Regenerated.
536 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
538 PR rtl-optimization/56144
539 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
540 for values with side effects.
542 2013-01-30 Richard Biener <rguenther@suse.de>
544 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
545 (sparseset_pop): Likewise.
546 * cfganal.c (compute_idf): Likewise. Increase work-stack size
547 to be able to use quick_push in the worker loop.
549 2013-01-30 Marek Polacek <polacek@redhat.com>
551 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
553 2013-01-30 Richard Biener <rguenther@suse.de>
556 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
558 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
560 PR tree-optimization/56064
561 * fixed-value.c (fixed_from_double_int): New function.
562 * fixed-value.h (fixed_from_double_int): New prototype.
563 (const_fixed_from_double_int): New static inline function.
564 * fold-const.c (native_interpret_fixed): New static function.
565 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
566 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
567 (native_encode_fixed): New static function.
568 (native_encode_expr) <FIXED_CST>: Use it.
569 (native_interpret_int): Move double_int worker code to...
570 * double-int.c (double_int::from_buffer): ...this new static method.
571 * double-int.h (double_int::from_buffer): Prototype it.
573 2013-01-30 Richard Biener <rguenther@suse.de>
575 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
576 New pointer-map and obstack.
577 (init_alias_vars): Allocate pointer-map and obstack.
578 (delete_points_to_sets): Free them.
579 (find_what_var_points_to): Cache result.
580 (find_what_p_points_to): Adjust for changed interface of
581 find_what_var_points_to.
582 (compute_points_to_sets): Likewise.
583 (ipa_pta_execute): Likewise.
585 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
587 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
588 * configure: Regenerate.
589 * config.in: Regenerate.
590 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
591 #nobits/#progbits if supported.
593 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
596 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
597 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
598 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
600 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
602 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
603 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
605 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
607 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
608 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
610 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
612 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
614 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
615 * config/arm/cortex-a7.md: New bypasses using
616 arm_mac_accumulator_is_result.
618 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
620 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
621 (cortex_a7_neon_mla): Likewise.
622 (cortex_a7_fpfmad): New reservation.
623 (cortex_a7_fpmacs): Use ffmas and update required units.
624 (cortex_a7_fpmuld): Update required units and latency.
625 (cortex_a7_fpmacd): Likewise.
626 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
627 (cortex_a7_neon). Likewise.
628 (bypass) Update participating units.
630 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
632 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
633 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
635 * config/arm/vfp11.md (vfp_farith): Use ffmas.
636 (vfp_fmul): Use ffmad.
637 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
638 (cortex_r4_fmacd): Use ffmad.
639 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
640 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
641 (cortex_a9_fmacd): Use ffmad.
642 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
643 (cortex_a8_vfp_macd): Use ffmad.
644 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
645 (cortex_a5_fpmacd): Use ffmad.
646 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
647 (cortex_a15_vfp_macd): Use ffmad.
648 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
650 2013-01-29 Jason Merrill <jason@redhat.com>
653 * varasm.c (default_assemble_visibility): Don't warn about
654 visibility on artificial decls.
656 2013-01-29 Richard Biener <rguenther@suse.de>
658 PR tree-optimization/56113
659 * tree-ssa-structalias.c (equiv_class_lookup): Also return
661 (label_visit): Free duplicate bitmaps and record the leader instead.
662 (perform_var_substitution): Adjust.
664 2013-01-29 Richard Biener <rguenther@suse.de>
666 PR tree-optimization/55270
667 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
668 the CFG, schedule loops for fixup.
670 2013-01-29 Nick Clifton <nickc@redhat.com>
672 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
675 2013-01-28 Leif Ekblad <leif@rdos.net>
677 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
678 * config/i386/i386.h (TARGET_RDOS): New macro.
679 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
680 * config/i386/i386.c (ix86_option_override_internal): For 64bit
681 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
682 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
683 DEFAULT_LARGE_SECTION_THRESHOLD.
684 * config/i386/i386.md (R14_REG, R15_REG): New constants.
685 * config/i386/rdos.h: New file.
686 * config/i386/rdos64.h: New file.
688 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
691 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
694 2013-01-28 Jakub Jelinek <jakub@redhat.com>
696 PR rtl-optimization/56117
697 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
698 call cselib_lookup_from_insn on the MEM before calling
699 add_insn_mem_dependence.
701 2013-01-28 Richard Biener <rguenther@suse.de>
703 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
704 to a stmt that didn't have one.
705 (copy_phis_for_bb): Likewise for PHI arguments.
706 (copy_debug_stmt): Likewise for debug stmts.
708 2013-01-28 Richard Biener <rguenther@suse.de>
710 PR tree-optimization/56034
711 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
712 (partition_builtin_p): Adjust.
713 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
714 it is the last partition.
715 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
716 up the vertex for the definition.
717 (classify_partition): Classify whether a partition is a
718 PKIND_REDUCTION, thus has uses outside of the loop.
719 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
720 Merge all PKIND_REDUCTION partitions into the last partition.
721 (tree_loop_distribution): Seed partitions from reductions as well.
723 2013-01-28 Jakub Jelinek <jakub@redhat.com>
725 PR tree-optimization/56125
726 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
727 pow(x,c) into sqrt(x) * powi(x, n/2) or
728 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
730 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
731 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
734 PR tree-optimization/56094
735 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
736 to UNKNOWN_LOCATION while gimplifying expr.
738 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
741 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
742 operand 0 in movabs insn template for -masm=intel asm alternative.
743 (*movabs<mode>_2): Ditto for operand 1.
745 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
748 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
751 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
753 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
756 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
758 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
759 Undef to avoid warning.
761 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
763 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
764 * configure: Regenerate.
766 2013-01-25 Jakub Jelinek <jakub@redhat.com>
768 PR tree-optimization/56098
769 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
770 for stmts with volatile ops.
771 (cond_store_replacement): Don't optimize if assign has volatile ops.
772 (cond_if_else_store_replacement_1): Don't optimize if either
773 then_assign or else_assign have volatile ops.
774 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
777 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
779 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
781 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
783 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
784 missing ':' in asm example.
786 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
788 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
789 entries into lane and laneq entries.
790 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
791 Remove AdvSIMD scalar modes.
792 (aarch64_sq<r>dmulh_laneq<mode>): New.
793 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
795 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
796 builtin implementations to relfect changes in RTL in aarch64-simd.md.
797 * config/aarch64/iterators.md (VCOND): New.
800 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
803 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
804 Add NULL LIBNAME argument to existing definitions.
805 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
806 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
807 * config/avr/avr.c (DEF_BUILTIN): Same.
808 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
809 (avr_expand_builtin): Expand to a vanilla call if a libgcc
810 implementation is available (DECL_ASSEMBLER_NAME is set).
811 (avr_fold_absfx): New static function.
812 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
813 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
814 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
816 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
817 (abshk, absk, abslk, absllk): Provide as static inline functions.
819 2013-01-25 Marek Polacek <polacek@redhat.com>
821 PR tree-optimization/56035
822 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
824 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
826 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
827 (*movtf_internal_rex64): Add (!o,C) alternative
828 (*movxf_internal_rex64): Ditto.
829 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
831 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
833 * doc/invoke.texi: fix typo.
834 * doc/objc.texi: fix typo.
836 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
838 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
839 for the first two alternatives.
841 2013-01-24 Diego Novillo <dnovillo@google.com>
843 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
844 (ggc-zone.o): Remove.
845 * configure.ac: Remove option --with-gc.
846 * configure: Re-generate.
847 * doc/install.texi: Remove documentation for --with-gc.
848 * gengtype.c (write_enum_defn): Remove. Update all users.
849 (write_Types_process_field): Remove generation of gt_e_* argument.
850 (output_type_enum): Remove. Update all users.
851 (write_enum_defn): Remove. Update all users.
852 (enum alloc_zone): Remove. Update all users.
853 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
854 * ggc-common.c (ggc_splay_alloc): Remove first argument.
856 (struct ptr_data): Remove field TYPE. Update all users.
857 (gt_pch_note_object): Remove argument TYPE. Update all users.
858 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
860 * ggc-none.c (ggc_alloc_typed_stat): Remove.
861 (struct alloc_zone): Remove.
862 (ggc_internal_alloc_zone_stat): Remove.
863 (ggc_internal_cleared_alloc_zone_stat): Remove.
864 * ggc-page.c (ggc_alloc_typed_stat): Remove.
865 (ggc_pch_count_object): Remove last argument. Update all users.
866 (ggc_pch_alloc_object): Remove last argument. Update all users.
867 (struct alloc_zone): Remove.
868 * ggc-zone.c: Remove.
869 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
870 (struct alloc_zone): Remove.
871 (ggc_alloc_typed_stat): Remove.
872 (ggc_alloc_typed): Remove.
873 (ggc_splay_alloc): Remove first argument.
874 (rtl_zone): Remove. Update all users.
875 (tree_zone): Remove. Update all users.
876 (tree_id_zone): Remove. Update all users.
877 (ggc_internal_zone_alloc_stat): Remove. Update all users.
878 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
879 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
880 * tree-ssanames.c: Remove references to zone allocator in comments.
882 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
884 * config/avr/avr.c (avr_out_fract): Make register numbers that
885 might be outside of source operand signed.
887 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
889 * config/i386/constraints.md (Yf): New constraint.
890 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
891 of f constraint to conditionaly disable x87 register preferences.
892 (*movdf_internal): Ditto.
893 (*movsf_internal): Ditto.
895 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
898 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
899 that have operands with impossible constraints.
900 Add a FIXME for a speed-up opportunity.
901 * lra-constraints.c (process_alt_operands): Verify that a class
902 selected from constraints on asms is valid for the operand mode.
903 (curr_insn_transform): Remove incorrect comment.
905 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
907 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
908 TOC operand is a valid symbol ref in the constant pool.
910 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
912 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
914 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
917 * config/avr/stdfix.h: New file.
918 * t-avr (stdfix-gcc.h): New rule to build it.
919 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
921 2013-01-23 Kostya Serebryany <kcc@google.com>
923 * config/darwin.h: remove dependency on
924 CoreFoundation (asan on Mac OS).
926 2013-01-23 Jakub Jelinek <jakub@redhat.com>
929 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
930 instead of cmpdi_operand for first comparison operand.
931 Don't assert that comparison operands aren't both constants.
933 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
935 * doc/install.texi (Downloading the Source): Update references to
936 downloading separate components.
938 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
940 * doc/extend.texi (__int128): Improve grammar.
942 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
945 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
946 alternative to (o,r).
947 (*movdi_internal_rex64): Remove (!o,n) alternative.
948 (DImode immediate->memory splitter): Remove.
949 (DImode immediate->memory peephole2): Remove.
950 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
951 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
952 alternative to (!o,*r).
953 (*movtf_internal_sse): New pattern.
954 (*movxf_internal_rex64): New pattern.
955 (*movxf_internal): Disable for TARGET_64BIT.
956 (*movdf_internal_rex64): Remove (!o,F) alternative.
958 2013-01-22 Jakub Jelinek <jakub@redhat.com>
961 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
962 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
963 * tree-vect-loop-manip.c (find_loop_location): Also ignore
964 stmt locations where LOCATION_LOCUS of the stmt location is
965 UNKNOWN_LOCATION or BUILTINS_LOCATION.
968 * config/i386/i386.md (UNSPEC_STOS): New.
969 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
970 *strsetqi_1): Add UNSPEC_STOS.
972 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
975 * doc/invoke.texi: Remove left over -Wsynth example.
977 2013-01-21 Jakub Jelinek <jakub@redhat.com>
979 PR tree-optimization/56051
980 * fold-const.c (fold_binary_loc): Don't fold
981 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
982 a narrowing conversion, or widening conversion from signed
985 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
987 PR rtl-optimization/56023
988 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
989 dependent on debug instruction.
991 2013-01-21 Martin Jambor <mjambor@suse.cz>
994 * function.c (allocate_struct_function): Call
995 invoke_set_current_function_hook earlier.
997 2013-01-21 Jakub Jelinek <jakub@redhat.com>
999 * reload1.c (init_reload): Only initialize reload_obstack
1000 during the first call.
1002 2013-01-21 Marek Polacek <polacek@redhat.com>
1004 * cfgloop.c (verify_loop_structure): Fix up grammar.
1006 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
1008 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
1009 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
1011 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1014 * config/arm/marvell-pj4.md: Update copyright year.
1015 Fix up use of alu to alu_reg and simple_alu_imm.
1017 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
1019 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
1021 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
1024 * lra-constraints.c (curr_insn_transform): Don't reuse original
1025 insn for secondary memory move when memory mode should be different.
1027 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1029 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
1030 atomic_storedi_1): New patterns.
1032 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1034 btver2 pipeline descriptions.
1035 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
1037 * config/i386/i386.md (btver2_decode): New type attributes.
1038 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
1040 * config/i386/btver2.md: New file describing btver2 pipelines.
1042 2013-01-19 Andrew Pinski <apinski@cavium.com>
1044 PR tree-optimization/52631
1045 * tree-ssa-sccvn (visit_use): Before looking up the original
1046 statement, try looking up the simplified expression.
1048 2013-01-19 Anthony Green <green@moxielogic.com>
1050 * config/moxie/moxie.c (moxie_expand_prologue): Set
1051 current_function_static_stack_size.
1053 2013-01-18 Jakub Jelinek <jakub@redhat.com>
1055 PR tree-optimization/56029
1056 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
1057 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
1059 2013-01-18 Sharad Singhai <singhai@google.com>
1061 PR tree-optimization/55995
1062 * dumpfile.c (dump_loc): Print location only if available.
1063 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
1065 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
1068 * lra-constraints.c (curr_insn_transform): Reuse original insn for
1069 secondary memory move.
1070 (inherit_reload_reg): Use rclass instead of cl for
1071 check_secondary_memory_needed_p.
1073 2013-01-18 Jakub Jelinek <jakub@redhat.com>
1076 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1077 the case where writing real complex part of target modifies op1.
1079 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
1081 * config/aarch64/aarch64-simd.md
1082 (aarch64_vcond_internal<mode>): Handle unordered cases.
1083 * config/aarch64/iterators.md (v_cmp_result): New.
1085 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
1086 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1088 * config/arm/marvell-pj4.md: New file.
1089 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
1090 * config/arm/arm.md (generic_sched): Add marvell_pj4.
1091 (generic_vfp): Likewise.
1092 * config/arm/arm-cores.def: Add marvell-pj4.
1093 * config/arm/arm-tune.md: Regenerate.
1094 * config/arm/arm-tables.opt: Regenerate.
1095 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
1096 * doc/invoke.texi: Document marvell-pj4.
1098 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
1100 * config/aarch64/arm_neon.h: Map scalar types to standard types.
1102 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
1107 * var-tracking.c (negative_power_of_two_p): New.
1108 (global_get_addr_cache, local_get_addr_cache): New.
1109 (get_addr_from_global_cache, get_addr_from_local_cache): New.
1110 (vt_canonicalize_addr): Rewrite using the above. Adjust the
1112 (vt_stack_offset_p): Remove.
1113 (vt_canon_true_dep): Always canonicalize loc's address.
1114 (clobber_overlapping_mems): Make sure we have a MEM.
1115 (local_get_addr_clear_given_value): New.
1116 (val_reset): Clear local cached entries.
1117 (compute_bb_dataflow): Create and release the local cache.
1118 Disable duplicate MEMs clobbering.
1119 (emit_notes_in_bb): Clobber MEMs likewise.
1120 (vt_emit_notes): Create and release the local cache.
1121 (vt_initialize, vt_finalize): Create and release the global
1122 cache, respectively.
1123 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
1125 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
1128 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
1129 not found in the symtab.
1131 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
1134 PR rtl-optimization/55547
1135 PR rtl-optimization/53827
1138 * alias.c (offset_overlap_p): New, factored out of...
1139 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
1140 the conservative special case for symbolic constants. Don't
1141 adjust zero sizes on alignment.
1143 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
1145 PR rtl-optimization/52573
1146 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
1147 REG_UNUSED for the same register.
1149 2013-01-17 Richard Biener <rguenther@suse.de>
1150 Marek Polacek <polacek@redhat.com>
1152 PR rtl-optimization/55833
1153 * loop-unswitch.c (unswitch_loops): Move loop verification...
1154 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
1155 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
1156 Set it to true when we're removing a loop from hierarchy tree in
1157 an irreducible region.
1158 (fix_bb_placements): Adjust caller.
1159 (fix_loop_placements): Likewise.
1161 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
1163 * config/avr/builtins.def (DEF_BUILTIN): Factor out
1164 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
1165 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
1166 Remove ID. Adjust comments.
1167 * config/avr/avr-c.c (avr_builtin_name): Remove.
1168 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
1169 * config/avr/avr.c (avr_tolower): New static function.
1170 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
1171 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
1172 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
1175 2013-01-17 Jan Hubicka <jh@suse.cz>
1177 PR tree-optimization/55273
1178 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
1180 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
1183 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
1184 store through atomic_store<mode>_1.
1185 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
1187 2013-01-17 Martin Jambor <mjambor@suse.cz>
1189 PR tree-optimizations/55264
1190 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
1191 for virtual methods.
1192 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
1193 virtual methods before inlining is over.
1194 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
1196 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
1199 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
1201 PR rtl-optimization/56005
1202 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
1203 pending reads for prefetch.
1205 2013-01-16 Ian Bolton <ian.bolton@arm.com>
1207 * config/aarch64/aarch64.md
1208 (*cstoresi_neg_uxtw): New pattern.
1209 (*cmovsi_insn_uxtw): New pattern.
1210 (*<optab>si3_uxtw): New pattern.
1211 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
1212 (*<optab>si3_insn_uxtw): New pattern.
1213 (*bswapsi2_uxtw): New pattern.
1215 2013-01-16 Richard Biener <rguenther@suse.de>
1217 * tree-inline.c (tree_function_versioning): Remove set but
1218 never used variable.
1220 2013-01-16 Richard Biener <rguenther@suse.de>
1222 PR tree-optimization/55964
1223 * tree-flow.h (rename_variables_in_loop): Remove.
1224 (rename_variables_in_bb): Likewise.
1225 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
1226 (copy_loop_before): Adjust and delete update-ssa status.
1227 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
1228 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
1229 (rename_variables_in_loop): Remove.
1230 (slpeel_update_phis_for_duplicate_loop): Likewise.
1231 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
1232 use available cfg machinery instead of duplicating it.
1233 Update PHI nodes and perform poor-mans SSA update here.
1234 (slpeel_tree_peel_loop_to_edge): Adjust.
1236 2013-01-16 Richard Biener <rguenther@suse.de>
1238 PR tree-optimization/54767
1239 PR tree-optimization/53465
1240 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
1241 (vrp_visit_phi_node): For PHI arguments coming via backedges
1242 drop all symbolical range information.
1243 (execute_vrp): Compute backedges.
1245 2013-01-16 Richard Biener <rguenther@suse.de>
1247 * doc/install.texi: Update CLooG and ISL requirements to
1250 2013-01-16 Christian Bruel <christian.bruel@st.com>
1253 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
1254 (broken_move): Handle UNSPECV_SP_SWITCH_B.
1255 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
1257 2013-01-16 DJ Delorie <dj@redhat.com>
1259 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
1260 (UNSPECV_SP_SWITCH_E): New.
1261 (sp_switch_1): Change to an unspec.
1262 (sp_switch_2): Change to an unspec. Don't use post-inc when we
1265 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
1267 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
1268 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
1269 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
1270 (expand_mem_thread_fence): Ditto.
1271 (expand_mem_signal_fence): Ditto.
1272 (expand_atomic_load): Ditto.
1273 (expand_atomic_store): Ditto.
1275 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
1277 PR rtl-optimization/55547
1278 PR rtl-optimization/53827
1281 * alias.c (memrefs_conflict_p): Set sizes to negative after
1284 2013-01-15 Jakub Jelinek <jakub@redhat.com>
1287 * function.c (thread_prologue_and_epilogue_insns): Always
1288 add crtl->drap_reg to set_up_by_prologue.set, even if
1289 stack_realign_drap is false.
1291 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1293 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
1294 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
1295 *call): Fix indention.
1297 2013-01-15 Tom de Vries <tom@codesourcery.com>
1300 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
1303 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
1305 PR rtl-optimization/55153
1306 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
1308 2013-01-15 Martin Jambor <mjambor@suse.cz>
1310 PR tree-optimization/55920
1311 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
1312 accesses as grp_to_be_debug_replaced.
1314 2013-01-15 Jakub Jelinek <jakub@redhat.com>
1316 PR tree-optimization/55920
1317 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
1318 there is non-useless type conversion needed from debug rhs to lhs,
1319 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
1321 2013-01-15 Joseph Myers <joseph@codesourcery.com>
1322 Mikael Pettersson <mikpe@it.uu.se>
1325 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
1327 (ASM_OUTPUT_CASE_LABEL): Remove.
1328 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
1329 * final.c (shorten_branches): Update alignment of labels before
1330 jump tables if CASE_VECTOR_SHORTEN_MODE.
1332 2013-01-15 Richard Biener <rguenther@suse.de>
1335 * system.h: Do not include gmp.h for building host tools.
1337 2013-01-15 Richard Biener <rguenther@suse.de>
1340 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
1341 account for bitpos when computing alignment.
1343 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
1345 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
1346 (ix86_target_macros_internal): Likewise.
1348 * config/i386/i386.c (m_CORE2I7): Removed.
1349 (m_CORE_HASWELL): New macro.
1350 (m_CORE_ALL): Likewise.
1351 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
1352 (initial_ix86_arch_features): Likewise.
1353 (processor_target_table): Initializations for Core avx2.
1354 (cpu_names): New names "core-avx2".
1355 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
1356 PROCESSOR_CORE_HASWELL.
1357 (ix86_issue_rate): New case.
1358 (ia32_multipass_dfa_lookahead): Likewise.
1359 (ix86_sched_init_global): Likewise.
1361 * config/i386/i386.h (TARGET_HASWELL): New macro.
1362 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
1363 (processor_type): New PROCESSOR_HASWELL.
1365 2013-01-15 Jakub Jelinek <jakub@redhat.com>
1367 PR tree-optimization/55955
1368 * tree-vect-loop.c (vectorizable_reduction): Give up early on
1369 *SHIFT_EXPR and *ROTATE_EXPR codes.
1371 PR tree-optimization/48766
1372 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
1373 -ftrapv disable -fwrapv.
1375 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
1378 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
1379 etc. to 1 and not to __flash.
1380 Use LL suffix for __INT24_MAX__ with -mint8.
1381 Use ULL suffix for __UINT24_MAX__ with -mint8.
1383 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
1385 * config/avr/avr-arch.h
1386 (struct base_arch_s): Use typedef avr_arch_t instead.
1387 (struct arch_info_s): Use typedef avr_arch_info_t instead.
1388 (struct mcu_type_s): Use typedef avr_mcu_t instead.
1389 * config/avr/avr.c: Same.
1390 * config/avr/avr-devices.c: Same.
1391 * config/avr/driver-avr.c: Same.
1392 * config/avr/gen-avr-mmcu-texi.c: Same.
1393 * config/avr/avr-mcus.def: Adjust comment.
1395 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
1397 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
1398 * config/aarch64/iterators.md (VALLDI): New.
1400 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
1401 Andi Kleen <ak@linux.intel.com>
1404 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
1405 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
1408 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
1410 * config/avr/avr-stdint.h: Remove trailing blanks.
1411 * config/avr/avr-log.h: Same.
1412 * config/avr/avr-arch.h: Same.
1413 * config/avr/avr-devices.c: Same.
1414 * config/avr/avr-dimode.md: Same.
1415 * config/avr/predicates.md: Same.
1416 * config/avr/avr-c.c: Same. And fix typo.
1418 * config/avr/avr-protos.h: Same. And:
1419 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
1420 (init_cumulative_args): Rename to avr_init_cumulative_args.
1421 (expand_prologue): Rename to avr_expand_prologue.
1422 (expand_epilogue): Rename to avr_expand_epilogue.
1423 (adjust_insn_length): Rename to avr_adjust_insn_length.
1424 (notice_update_cc): Rename to avr_notice_update_cc.
1425 (final_prescan_insn): Rename to avr_final_prescan_insn.
1426 * config/avr/avr.c: Same.
1427 * config/avr/avr.h: Same.
1428 * config/avr/avr.md: Remove trailing blanks.
1429 (prologue): Use avr_expand_prologue.
1430 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
1432 2013-01-14 Richard Biener <rguenther@suse.de>
1434 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
1435 verify_location, collect_subblocks): New functions.
1436 (verify_gimple_in_cfg): Verify that locations only reference
1437 BLOCKs in the functions BLOCK tree.
1439 2013-01-14 Richard Biener <rguenther@suse.de>
1441 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
1443 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
1445 (insert_out_of_ssa_copy_on_edge): Likewise.
1446 (rewrite_close_phi_out_of_ssa): Likewise.
1447 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
1449 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
1450 propagated constants.
1451 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
1454 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
1456 * config/avr/avr-modes.def: Add GPL copyright notice.
1458 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
1460 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
1461 MEMMODEL_MASK to determine memory model.
1462 (atomic_store<mode>): Ditto from operands[2].
1463 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
1465 2013-01-13 Jakub Jelinek <jakub@redhat.com>
1468 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
1469 (fold_gimple_assign): Don't call unshare_expr here.
1470 (fold_ctor_reference): Call unshare_expr.
1472 2013-01-13 Terry Guo <terry.guo@arm.com>
1474 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
1475 * doc/fragments.texi: Document MULTILIB_REUSE.
1476 * gcc.c (multilib_reuse): New internal spec.
1477 (set_multilib_dir): Also search multilib from multilib_reuse.
1478 * genmultilib (tmpmultilib3): Refactor code.
1479 (tmpmultilib4): Ditto.
1480 (multilib_reuse): New multilib argument.
1482 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
1484 * Makefile.in: Update copyright.
1486 2013-01-12 Tom de Vries <tom@codesourcery.com>
1489 * calls.c (expand_call): Check if arg_nr is valid.
1491 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1493 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
1494 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
1495 documentation. Add missing '__' in front of
1496 __builtin_ia32_packssdw256.
1498 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1501 * config/s390/s390.c (s390_preferred_reload_class): Do not return
1502 NO_REGS for larl operands.
1503 (s390_reload_larl_operand): Use s390_load_address instead of
1506 2013-01-11 Richard Biener <rguenther@suse.de>
1508 * tree-cfg.c (verify_node_sharing_1): Split out from ...
1509 (verify_node_sharing): ... here.
1510 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
1512 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
1514 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
1515 Substitute TREECHECKING.
1516 * configure: Regenerate.
1517 * Makefile.in (TREECHECKING): New.
1519 2013-01-11 Richard Guenther <rguenther@suse.de>
1521 PR tree-optimization/44061
1522 * tree-vrp.c (extract_range_basic): Compute zero as
1523 value-range for __builtin_constant_p of function parameters.
1525 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
1527 Update copyright years.
1529 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
1531 PR rtl-optimization/55672
1532 * lra-eliminations.c (mark_not_eliminable): Permit addition with
1533 const to be eliminable.
1535 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
1537 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
1538 * configure: Regenerate.
1540 2013-01-10 Richard Biener <rguenther@suse.de>
1542 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
1544 2013-01-10 Richard Biener <rguenther@suse.de>
1547 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
1548 locations for virtual PHI arguments.
1549 (rewrite_update_phi_arguments): Likewise.
1551 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
1553 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
1556 2013-01-10 Jakub Jelinek <jakub@redhat.com>
1558 PR tree-optimization/55921
1559 * tree-complex.c (expand_complex_asm): New function.
1560 (expand_complex_operations_1): Call it for GIMPLE_ASM.
1562 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1565 * config/s390/s390.c (s390_symref_operand_p)
1566 (s390_loadrelative_operand_p): Merge the two functions.
1567 (s390_check_qrst_address, print_operand_address): Add parameters
1568 to s390_loadrelative_operand_p invokation.
1569 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
1570 (s390_reload_larl_operand, s390_secondary_reload): Use
1571 s390_loadrelative_operand_p instead of s390_symref_operand_p.
1572 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
1574 2013-01-09 Mike Stump <mikestump@comcast.net>
1576 * dse.c (record_store): Remove unnecessary assert.
1578 2013-01-09 Jan Hubicka <jh@suse.cz>
1580 PR tree-optimization/55569
1581 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
1582 * cfgloop.h (scale_loop_profile): Likewise.
1584 2013-01-09 Jan Hubicka <jh@suse.cz>
1587 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
1589 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
1591 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
1594 * expr.h (maybe_emit_group_store): Declare.
1595 * expr.c (maybe_emit_group_store): New function.
1596 * builtins.c (expand_builtin_int_roundingfn): Call it.
1597 (expand_builtin_int_roundingfn_2): Likewise.
1599 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
1601 PR rtl-optimization/55829
1602 * lra-constraints.c (match_reload): Add code for absent output.
1603 (curr_insn_transform): Add code for reloads of matched inputs
1606 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
1608 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
1609 attribute of movddup insn to DF.
1610 (*vec_interleave_lowv2df): Ditto.
1611 (vec_dupv2df): Ditto.
1613 2013-01-09 Jan Hubicka <jh@suse.cz>
1615 PR tree-optimiation/55875
1616 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
1617 EVERY_ITERATION parameter.
1618 (number_of_iterations_exit): Check if exit is executed every iteration.
1619 (idx_infer_loop_bounds): Similarly here.
1620 (n_of_executions_at_most): Simplify
1621 to only test for cases where statement is dominated by the
1622 particular bound; handle correctly the "postdominance" test.
1623 (scev_probably_wraps_p): Use max loop iterations info
1624 as a global bound first.
1626 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
1627 Nick Clifton <nickc@redhat.com>
1629 * config/v850/v850.md (cbranchsf4): New pattern.
1630 (cstoresf4): New pattern.
1631 (cbranchdf4): New pattern.
1632 (cstoredf4): New pattern.
1633 (movsicc): Disallow floating point comparisons.
1634 (cmpsf_le_insn): Fix order of operators.
1635 (cmpsf_lt_insn): Likewise.
1636 (cmpsf_eq_insn): Likewise.
1637 (cmpdf_le_insn): Likewise.
1638 (cmpdf_lt_insn): Likewise.
1639 (cmpdf_eq_insn): Likewise.
1640 (cmpsf_ge_insn): Use LE comparison.
1641 (cmpdf_ge_insn): Likewise.
1642 (cmpsf_gt_insn): Use LT comparison.
1643 (cmpdf_gt_insn): Likewise.
1644 (cmpsf_ne_insn): Delete pattern.
1645 (cmpdf_ne_insn): Delete pattern.
1646 * config/v850/v850.c (v850_gen_float_compare): Use
1647 gen_cmpdf_eq_insn for NE comparison.
1648 (v850_float_z_comparison_operator)
1649 (v850_float_nz_comparison_operator): Move from here ...
1650 * config/v850/predicates.md: ... to here. Move GT and GE
1651 comparisons into v850_float_z_comparison_operator.
1652 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
1654 (v850_float_nz_comparison_operator): Likewise.
1656 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1658 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
1659 with calls to gen_insvsi/gen_insvdi.
1661 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1663 * config/i386/i386.c (initial_ix86_tune_features): Set up
1664 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
1666 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
1667 Jakub Jelinek <jakub@redhat.com>
1669 PR tree-optimization/48189
1670 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
1671 If nitercst is 0, don't predict the exit edge.
1673 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1675 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
1676 in asm_fprintf with reg_names.
1677 (aarch64_print_operand_address): Likewise.
1678 (aarch64_return_addr): Likewise.
1679 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
1681 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1683 * config/pa/pa.h (VAL_U6_BITS_P): Define.
1684 (INT_U6_BITS): Likewise.
1685 * config/pa/predicates.md (uint6_operand): New predicate.
1686 (shift5_operand, shift6_operand): Likewise.
1687 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
1689 (lshrdi3): Use shift6_operand.
1690 (shrpsi4, shrpdi4): New insn patterns.
1691 (extzv): Delete expander.
1692 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
1693 predicates in unamed zero extract patterns. Tighten common constraint.
1694 (extv): Delete expander.
1695 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
1696 predicates in unamed sign extract patterns. Tighten common constraint.
1697 (insv): Delete expander.
1698 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
1699 predicates in unamed insert patterns. Tighten common constraint.
1700 Change uint32_operand predicate to uint6_operand predicate in unamed
1701 DImode pattern to insert constant values of type 1...1xxxx.
1703 2013-01-04 Jan Hubicka <jh@suse.cz>
1705 PR tree-optimization/55823
1706 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
1709 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1710 Uros Bizjak <ubizjak@gmail.com>
1712 PR rtl-optimization/55845
1713 * df-problems.c (can_move_insns_across): Stop scanning at
1714 volatile_insn_p source instruction or give up if
1715 across_from .. across_to range contains any volatile_insn_p
1718 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1720 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
1721 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
1723 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
1724 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
1726 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1729 * asan.c (asan_clear_shadow): New function.
1730 (asan_emit_stack_protection): Use it.
1732 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1734 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
1735 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
1736 with tab instead of space.
1738 2013-01-08 Nick Clifton <nickc@redhat.com>
1740 * config/rl78/rl78.c (rl78_expand_prologue): Always select
1741 register bank 0 at the start of an interrupt handler.
1742 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
1745 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1747 * config/aarch64/aarch64-simd.md
1748 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
1749 (aarch64_simd_bsl): Likewise.
1750 (aarch64_vcond_internal<mode>): Likewise.
1751 (vcond<mode><mode>): Likewise.
1752 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
1753 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
1755 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1757 * config/aarch64/aarch64-builtins.c
1758 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
1760 2013-01-08 Martin Jambor <mjambor@suse.cz>
1763 * tree-sra.c (analyze_access_subtree): Return true also after
1764 potentially creating a debug-only replacement.
1766 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1769 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
1771 PR tree-optimization/54120
1772 * tree-vrp.c (range_fits_type_p): Don't allow
1773 src_precision < precision from signed vr to unsigned_p
1774 if vr->min or vr->max is negative.
1775 (simplify_float_conversion_using_ranges): Test can_float_p
1776 against CODE_FOR_nothing.
1778 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1779 Richard Biener <rguenther@suse.de>
1782 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
1783 types instead of just INTEGER_TYPE types.
1785 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
1787 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
1790 2013-01-07 Steve Ellcey <sellcey@mips.com>
1793 * config/mips/mips.opt: Change mad to mmad to match documentation.
1795 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1798 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
1801 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1804 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
1805 (avr_addrspace_t): Add .section_name field.
1806 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
1808 (avr_addrspace): Same. Initialize .section_name. Remove last
1809 NULL entry. Put __memx into .progmemx.data.
1810 (progmem_section_prefix): Remove.
1811 (avr_asm_init_sections): No need to initialize progmem_section.
1812 (avr_asm_named_section): Use avr_addrspace[].section_name to get
1813 section name prefix.
1814 (avr_asm_select_section): Ditto. And use get_unnamed_section to
1815 retrieve the progmem section.
1816 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
1817 boundary to run over avr_addrspace[].
1818 (avr_register_target_pragmas): Ditto.
1820 2013-01-06 Jakub Jelinek <jakub@redhat.com>
1822 * varasm.c (output_constant_def_contents): For asan_protect_global
1823 protected strings, adjust DECL_ALIGN if needed, before testing for
1825 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
1826 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
1828 (output_object_block): For asan protected decls, emit asan padding
1829 after their contents.
1830 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
1831 (asan_finish_file): Test it here instead.
1833 2013-01-07 Nick Clifton <nickc@redhat.com>
1834 Matthias Klose <doko@debian.org>
1835 Doug Kwan <dougkwan@google.com>
1836 H.J. Lu <hongjiu.lu@intel.com>
1839 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
1841 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
1843 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
1845 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
1847 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
1849 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1852 * doc/install.texi (Cross-Compiler-Specific Options): Document
1855 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
1857 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
1858 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
1859 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
1860 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
1861 vqmovun_high_s64): Fix source operand number and update copyright.
1863 2013-01-07 Richard Biener <rguenther@suse.de>
1866 * gimple.h (gimple_call_builtin_p): New overload.
1867 * gimple.c (validate_call): New function.
1868 (gimple_call_builtin_p): Likewise.
1869 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1870 Use gimple_call_builtin_p.
1871 (find_func_clobbers): Likewise.
1872 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
1873 (strlen_optimize_stmt): Likewise.
1875 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1877 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
1878 (vld1q_dup_*): Likewise.
1880 (vld1q_*): Likewise.
1881 (vld1_lane_*): Likewise.
1882 (vld1q_lane_*): Likewise.
1884 2013-01-07 Richard Biener <rguenther@suse.de>
1886 * lto-streamer.h (LTO_minor_version): Bump to 2.
1888 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1890 * config/aarch64/aarch64-protos.h
1891 (aarch64_const_double_zero_rtx_p): Rename to...
1892 (aarch64_float_const_zero_rtx_p): ...this.
1893 (aarch64_float_const_representable_p): New.
1894 (aarch64_output_simd_mov_immediate): Likewise.
1895 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
1896 move immediate case.
1897 * config/aarch64/aarch64.c
1898 (aarch64_const_double_zero_rtx_p): Rename to...
1899 (aarch64_float_const_zero_rtx_p): ...this.
1900 (aarch64_print_operand): Allow printing of new constants.
1901 (aarch64_valid_floating_const): New.
1902 (aarch64_legitimate_constant_p): Check for valid floating-point
1904 (aarch64_simd_valid_immediate): Likewise.
1905 (aarch64_vect_float_const_representable_p): New.
1906 (aarch64_float_const_representable_p): Likewise.
1907 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
1908 (aarch64_output_simd_mov_immediate): New.
1909 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
1910 (*movdf_aarch64): Likewise.
1911 * config/aarch64/constraints.md (Ufc): New.
1912 (Y): call aarch64_float_const_zero_rtx.
1913 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
1915 2013-01-07 Richard Biener <rguenther@suse.de>
1917 PR tree-optimization/55888
1918 PR tree-optimization/55862
1919 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
1920 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
1921 not if it is contained therein.
1923 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1925 * config/avr/t-avr: Typo.
1927 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1930 * config/avr/t-avr: Don't automatically rebuild
1931 $(srcdir)/config/avr/t-multilib
1932 $(srcdir)/config/avr/avr-tables.opt
1933 $(srcdir)/doc/avr-mmcu.texi
1934 (avr-mcus): New phony target to build them on request.
1935 (s-avr-mlib, s-avr-mmcu-texi): Remove.
1936 * avr/avr-mcus.def: Adjust comments.
1938 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
1940 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
1942 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1944 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
1946 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1948 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
1950 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
1952 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
1953 to generate profiling.
1954 * config/rs6000/aix64.h (LIB_SPEC): Same.
1956 2013-01-04 Andrew Pinski <apinski@cavium.com>
1958 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
1960 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1962 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
1964 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
1966 (ix86_expand_move): Ditto.
1967 (ix86_zero_extend_to_Pmode): Ditto.
1968 (ix86_expand_call): Ditto.
1969 (ix86_expand_special_args_builtin): Ditto.
1970 (ix86_expand_builtin): Ditto.
1972 2013-01-04 Richard Biener <rguenther@suse.de>
1974 PR tree-optimization/55862
1975 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
1976 translating them through PHI nodes.
1978 2013-01-04 Martin Jambor <mjambor@suse.cz>
1980 PR tree-optimization/55755
1981 * tree-sra.c (sra_modify_assign): Do not check that an access has no
1982 children when trying to avoid producing a VIEW_CONVERT_EXPR.
1984 2013-01-04 Marek Polacek <polacek@redhat.com>
1987 * opts.c (default_options_optimization): Clarify error message.
1989 2013-01-04 Richard Biener <rguenther@suse.de>
1992 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
1995 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1998 * config/pa/pa.md (movsi): Revert previous change.
1999 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
2002 2013-01-03 Richard Henderson <rth@redhat.com>
2004 * config/i386/i386.c (ix86_expand_move): Always assign to op1
2005 after eliminating TLS symbols.
2007 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
2010 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
2011 * graphite-poly.c (debug_gmp_value): Likewise.
2013 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
2016 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
2017 selected code model, define __code_mode_small__, __code_model_medium__,
2018 __code_model_large__, __code_model_32__ or __code_model_kernel__.
2019 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
2020 xchg temporary register with %k. Declare temporary register as
2022 [__x86_64__]: For medium and large code models, preserve %rbx register.
2024 2013-01-03 Richard Biener <rguenther@suse.de>
2026 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
2027 (dump_subscript): Adjust.
2028 (finalize_ddr_dependent): Do not dump redundant info.
2029 (analyze_siv_subscript): Adjust.
2030 (subscript_dependence_tester): Likewise.
2031 (compute_affine_dependence): Likewise.
2033 2013-01-03 Richard Biener <rguenther@suse.de>
2036 2013-01-03 Richard Biener <rguenther@suse.de>
2038 PR tree-optimization/55857
2039 * tree-vect-stmts.c (vectorizable_load): Do not setup
2040 re-alignment for invariant loads.
2042 2013-01-02 Richard Biener <rguenther@suse.de>
2044 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
2045 invariant load do not generate a vector load from the scalar location.
2047 2013-01-03 Richard Biener <rguenther@suse.de>
2049 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
2050 for not vectorizing.
2051 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
2052 not build INDIRECT_REFs, call get_name once only.
2053 (vect_create_data_ref_ptr): Likewise. Dump base object kind
2054 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
2056 2013-01-03 Richard Biener <rguenther@suse.de>
2058 PR tree-optimization/55857
2059 * tree-vect-stmts.c (vectorizable_load): Do not setup
2060 re-alignment for invariant loads.
2062 2013-01-03 Richard Biener <rguenther@suse.de>
2065 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
2066 prefer a built-in decl.
2068 2013-01-03 Jakub Jelinek <jakub@redhat.com>
2070 * gcc.c (process_command): Update copyright notice dates.
2071 * gcov.c (print_version): Likewise.
2072 * gcov-dump.c (print_version): Likewise.
2074 PR rtl-optimization/55838
2075 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
2076 iv0.step, iv1.step and step.
2078 2013-01-03 Jakub Jelinek <jakub@redhat.com>
2079 Marc Glisse <marc.glisse@inria.fr>
2081 PR tree-optimization/55832
2082 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
2083 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
2084 integer_{one,zero}_node.
2086 2013-01-03 Jakub Jelinek <jakub@redhat.com>
2089 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
2090 * var-tracking.c (reverse_op): Don't add reverse ops to
2091 VALUEs that have already
2092 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
2094 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
2096 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
2098 2013-01-02 Teresa Johnson <tejohnson@google.com>
2100 * dumpfile.c (dump_loc): Print filename with location.
2101 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
2102 new location_t parameter to emit complete unroll message with
2104 (canonicalize_loop_induction_variables): Compute loops location
2105 and pass to try_unroll_loop_completely.
2106 * loop-unroll.c (report_unroll_peel): New function.
2107 (peel_loops_completely): Use new dump format with location
2108 for main dumpfile message, and invoke report_unroll_peel on success.
2109 (decide_unrolling_and_peeling): Ditto.
2110 (decide_peel_once_rolling): Remove old dumpfile message subsumed
2111 by report_unroll_peel.
2112 (decide_peel_completely): Ditto.
2113 (decide_unroll_constant_iterations): Ditto.
2114 (decide_unroll_runtime_iterations): Ditto.
2115 (decide_peel_simple): Ditto.
2116 (decide_unroll_stupid): Ditto.
2117 * cfgloop.c (get_loop_location): New function.
2118 * cfgloop.h (get_loop_location): Declare.
2120 2013-01-02 Sriraman Tallam <tmsriram@google.com>
2122 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
2125 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2128 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
2129 BLKmode objects when EXPAND_MEMORY is specified.
2131 2013-01-02 Sriraman Tallam <tmsriram@google.com>
2133 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
2135 (fold_builtin_cpu): Do not share cpu model decls across statements.
2137 2013-01-02 Jason Merrill <jason@redhat.com>
2140 * tree.c (build_array_type_1): Revert earlier change.
2142 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
2144 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
2146 * config/aarch64/aarch64-tune.md: Re-generate.
2148 2013-01-02 Richard Biener <rguenther@suse.de>
2150 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
2151 invariant load do not generate a vector load from the scalar location.
2153 2013-01-02 Richard Biener <rguenther@suse.de>
2156 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
2157 * configure: Regenerate.
2159 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2161 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
2162 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
2163 (expand_builtin_int_roundingfn_2): Keep the original target around
2164 for the fallback case.
2166 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2168 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
2169 to be clear for sign changes.
2171 2013-01-01 Jan Hubicka <jh@suse.cz>
2173 * ipa-inline-analysis.c: Fix formatting.
2175 2013-01-01 Jakub Jelinek <jakub@redhat.com>
2177 PR tree-optimization/55831
2178 * tree-vect-loop.c (get_initial_def_for_induction): Use
2179 gsi_after_labels instead of gsi_start_bb.
2181 Copyright (C) 2013 Free Software Foundation, Inc.
2183 Copying and distribution of this file, with or without modification,
2184 are permitted in any medium without royalty provided the copyright
2185 notice and this notice are preserved.