1 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
3 PR rtl-optimization/56178
4 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
5 SUBREG of a register. Tidy up related block of code.
6 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
7 note if the source is a register or a SUBREG of a register.
9 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12 * config/rs6000/rs6000.md (ptrm): New mode attr.
13 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
14 call_value_indirect_aix<pttrsize>,
15 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
18 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
20 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
21 if -bnortl. Convert to strcmp and strncmp.
23 2013-02-07 Alan Modra <amodra@gmail.com>
26 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
27 addresses won't wrap when offsetting.
28 (rs6000_secondary_reload): Provide secondary reloads needed for
29 wrapping LO_SUM addresses.
31 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
33 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
36 2013-02-06 Richard Biener <rguenther@suse.de>
38 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
39 instead of calling fix_loop_structure.
41 2013-02-06 Jakub Jelinek <jakub@redhat.com>
44 * omp-low.c (use_pointer_for_field): Return false if
45 lower_send_shared_vars doesn't generate any copy-out code.
47 2013-02-06 Tom de Vries <tom@codesourcery.com>
49 PR rtl-optimization/56131
50 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
51 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
52 of the label is NULL. Add comment.
54 2013-02-05 Jakub Jelinek <jakub@redhat.com>
56 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
59 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
60 (STATIC_LIBTSAN_LIBS): Likewise.
61 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
62 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
63 is defined, don't add anything else beyond that.
64 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
65 (LINK_COMMAND_SPEC): Use them.
67 PR tree-optimization/56205
68 * tree-stdarg.c (check_all_va_list_escapes): Return true if
69 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
70 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
72 2013-02-05 Richard Biener <rguenther@suse.de>
74 PR tree-optimization/53342
75 PR tree-optimization/53185
76 * tree-vectorizer.h (vect_check_strided_load): Remove.
77 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
78 not disallow peeling for vectorized strided loads.
79 (vect_check_strided_load): Make static and simplify.
80 (vect_analyze_data_refs): Adjust.
81 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
82 correctly when vectorizing strided loads.
84 2013-02-05 Richard Biener <rguenther@suse.de>
86 * doc/install.texi: Refer to ISL, not PPL.
88 2013-02-05 Jan Hubicka <jh@suse.cz>
90 PR tree-optimization/55789
91 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
93 2013-02-05 Jan Hubicka <jh@suse.cz>
95 PR tree-optimization/55789
96 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
99 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
102 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
104 2013-02-04 Alexander Potapenko <glider@google.com>
105 Jack Howarth <howarth@bromo.med.uc.edu>
106 Jakub Jelinek <jakub@redhat.com>
109 * config/darwin.c (sort_ctor_records): Stabilized qsort
110 on constructor priority by using original position.
111 (finalize_ctors): New routine to sort constructors by
112 priority before use in assemble_integer.
113 (machopic_asm_out_constructor): Use finalize_ctors if needed.
115 2013-02-04 Jakub Jelinek <jakub@redhat.com>
118 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
119 about visibility on artificial decls.
120 * config/sol2.c (solaris_assemble_visibility): Likewise.
122 2013-02-04 Kai Tietz <ktietz@redhat.com>
125 * config/i386/i386.c (function_value_ms_64): Add additional valtype
126 argument and improve checking of return-argument types for 16-byte
128 (ix86_function_value_1): Add additional valtype argument on call
129 of function_value_64.
130 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
131 handling infunction_value_64 function.
133 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
135 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
137 2013-02-04 Richard Biener <rguenther@suse.de>
139 PR tree-optimization/56188
140 * tree-ssa-structalias.c (label_visit): Consider case with
141 initially non-empty points-to set.
142 (perform_var_substitution): Dump node mapping and clean up.
144 2013-02-04 Richard Guenther <rguenther@suse.de>
147 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
148 node prevail as last resort.
149 (lto_symtab_merge_decls): Remove guard on LTRANS here.
150 (lto_symtab_prevailing_decl): Builtins are their own prevailing
153 2013-02-04 Richard Biener <rguenther@suse.de>
155 PR tree-optimization/56113
156 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
158 (equiv_class_lookup_or_add): ... this.
159 (label_visit): Adjust and fix error in previous patch.
160 (perform_var_substitution): Adjust.
162 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
164 * config/sh/divtab.c: Fix formatting and comments throughout the file.
165 * config/sh/sh4-300.md: Likewise.
166 * config/sh/sh4a.md: Likewise.
167 * config/sh/constraints.md: Likewise.
168 * config/sh/sh.md: Likewise.
169 * config/sh/netbsd-elf.h: Likewise.
170 * config/sh/predicates.md: Likewise.
171 * config/sh/sh-protos.h: Likewise.
172 * config/sh/ushmedia.h: Likewise.
173 * config/sh/linux.h: Likewise.
174 * config/sh/sh.c: Likewise.
175 * config/sh/superh.h: Likewise.
176 * config/sh/elf.h: Likewise.
177 * config/sh/sh4.md: Likewise.
178 * config/sh/sh.h: Likewise.
180 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
182 * config/pa/constraints.md: Adjust unused letters. Change "T"
183 constraint to match_test floating_point_store_memory_operand().
184 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
185 (base14_operand): New.
186 (floating_point_store_memory_operand): New.
187 (integer_store_memory_operand): Revise to use base14_operand and
188 reg_plus_base_memory_operand.
189 (move_dest_operand): Allow symbolic_memory_operands.
190 (symbolic_memory_operand): Check for LO_SOM.
191 (symbolic_operand): Change default case to break.
192 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
193 CONST_DOUBLE values to be reloaded by putting them into memory when
194 the destination is a floating point register.
195 (movdf): Remove code to handle CONST_DOUBLE.
197 (reload_indf_r1): New.
198 (reload_insf_r1): New.
199 Consistently use "Q" and "T" constraints with integer and floating
200 point move instructions, respectively.
201 (movdi): Remove FAIL.
202 Change predicate for source operand unamed DImode move from
203 general_operand to move_src_operand.
204 (umulsidi3): Change predicate for destination operand to
206 Likewise for similar unamed patterns.
207 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
208 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
209 (hppa_legitimize_address): Simplify mask calculation.
210 (pa_emit_move_sequence): Revised handling of secondary reloads from
211 REG+D addresses for floating point loads and stores. Directly handle
212 loading CONST0_RTX (mode) to a floating point register.
213 (pa_secondary_reload): Handle reloading DF and SFmode constant values
214 to floating point registers. Don't restrict secondary reloads to
215 floating point registers to integer modes. Revise some comments and
217 (TARGET_LEGITIMATE_ADDRESS_P): Define.
218 (pa_legitimate_address_p): New.
219 (pa_legitimize_reload_address): New.
220 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
221 (STRICT_REG_OK_FOR_BASE_P): New.
222 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
223 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
225 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
226 Andrew Dixie <andrewd@gentrack.com>
228 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
231 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
233 * expmed.c (extract_bit_field_1): Pass the full width of the
234 structure to get_best_reg_extraction_insn.
236 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
239 * configure.ac (use_cxa_atexit): Add AIX.
240 * configure: Regenerate.
242 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
244 2013-02-01 Jakub Jelinek <jakub@redhat.com>
247 * final.c (need_profile_function): New variable.
248 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
249 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
250 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
251 notes, targetm.asm_out.function_prologue doesn't emit anything,
252 HAVE_prologue and profiler should be emitted before prologue,
253 set need_profile_function instead of emitting it.
254 (final_scan_insn): If need_profile_function, emit
255 profile_function on the first NOTE_INSN_BASIC_BLOCK or
256 NOTE_INSN_FUNCTION_BEG note.
258 2013-02-01 Richard Henderson <rth@redhat.com>
260 * config/rs6000/rs6000.md (smulditi3): New.
263 * config/alpha/alpha.md (umulditi3): New.
265 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
267 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
268 (ASM_OUTPUT_ALIGNED_LOCAL): New.
270 2013-02-01 Richard Biener <rguenther@suse.de>
272 PR tree-optimization/56113
273 * tree-ssa-structalias.c (label_visit): Reduce work for
274 single-predecessor nodes.
276 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
278 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
279 range isn't testing for zero.
281 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
284 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
286 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
287 Nick Clifton <nickc@redhat.com>
289 * config/v850/constraints.md (Q): Define as a memory constraint.
290 * config/v850/predicates.md (label_ref_operand): New predicate.
291 (e3v5_shift_operand): New predicate.
292 (ior_operator): New predicate.
293 * config/v850/t-v850: Add e3v5 multilib.
294 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
295 (v850_gen_movdi): Prototype.
296 * config/v850/v850.c: Add support for e3v5 architecture.
297 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
299 (construct_save_jarl): Add e3v5 long JARL support.
300 (v850_adjust_insn_length): New function. Adjust length of call
301 insns when using e3v5 instructions.
302 (v850_gen_movdi): New function: Generate instructions to move a
304 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
305 (CPP_SPEC): Define __v850e3v5__ as appropriate.
306 (TARGET_USE_FPU): Enable for e3v5.
307 (CONST_OK_FOR_W): New macro.
308 (ADJUST_INSN_LENGTH): Define.
309 * config/v850/v850.md (UNSPEC_LOOP): Define.
310 (attr cpu): Add v850e3v5.
311 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
312 (movdi): New pattern.
313 (movdi_internal): New pattern.
314 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
315 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
316 (cstoresf4): Likewise.
317 (cstoredf4): Likewise.
319 (rotlso3_a): New pattern.
320 (rotlsi3_b): New pattern
321 (rotlsi3_v850e3v5): New pattern.
322 (doloop_begin): New pattern.
323 (fix_loop_counter): New pattern.
324 (doloop_end): New pattern.
325 (branch_normal): Add e3v5 long branch support.
326 (branch_invert): Likewise.
327 (branch_z_normal): Likewise.
328 (branch_z_invert): Likewise.
329 (branch_nz_normal): Likewise.
330 (branch_nz_invert): Likewise.
331 (call_internal_short): Add e3v5 register-indirect JARL support.
332 (call_internal_long): Likewise.
333 (call_value_internal_short): Likewise.
334 (call_value_internal_long): Likewise.
335 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
337 * config.gcc: Add support for configuring v840e3v5 target.
338 * doc/invoke.texi: Document new v850 specific command line
341 2013-01-31 Paul Koning <ni1d@arrl.net>
345 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
346 children if parent is a class.
347 (prune_unused_types_prune): Don't add DW_AT_declaration.
349 2013-01-31 Richard Biener <rguenther@suse.de>
351 PR tree-optimization/56157
352 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
353 match up operand with SLP child.
355 2013-01-31 Jason Merrill <jason@redhat.com>
358 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
359 parameters the first time.
360 (gen_scheduled_generic_parms_dies): Check completeness here.
362 2013-01-31 Richard Biener <rguenther@suse.de>
365 * common.opt (faggressive-loop-optimizations): New flag,
367 * doc/invoke.texi (faggressive-loop-optimizations): Document.
368 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
369 infer_loop_bounds_from_undefined by it.
371 2013-01-31 Richard Biener <rguenther@suse.de>
373 PR tree-optimization/56150
374 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
375 visit virtual operands.
376 (find_uses_to_rename_bb): Likewise.
378 2013-01-31 Richard Biener <rguenther@suse.de>
380 PR tree-optimization/56150
381 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
382 mixed store non-store stmts.
384 2013-01-30 Jakub Jelinek <jakub@redhat.com>
387 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
388 LIBASAN_EARLY_SPEC is defined.
389 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
390 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
392 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
395 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
396 invalid args instead of ICEing on it.
397 (ix86_valid_target_attribute_tree): Return error_mark_node if
398 ix86_valid_target_attribute_inner_p failed.
399 (ix86_valid_target_attribute_p): Return false only if
400 ix86_valid_target_attribute_tree returned error_mark_node. Allow
401 target("default") attribute.
402 (sorted_attr_string): Change argument from const char * to tree,
403 merge in all target attribute arguments rather than just one.
404 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
405 instead of free. Avoid using strcat.
406 (ix86_mangle_function_version_assembler_name): Mangle
407 target("default") as if no target attribute is present. Adjust
408 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
409 instead of xmalloc and XDELETEVEC instead of free.
410 (ix86_function_versions): Don't return true if one of the decls
411 doesn't have target attribute. If they don't and one of the decls
412 is DECL_FUNCTION_VERSIONED, report an error. Adjust
413 sorted_attr_string caller. Use XDELETEVEC instead of free.
414 (ix86_supports_function_versions): Remove.
415 (make_name): Fix up formatting.
416 (make_dispatcher_decl): Remove resolver_name and its initialization.
417 Avoid leaking memory.
418 (is_function_default_version): Return true if there is
419 target("default") attribute rather than no target attribute at all.
420 (make_resolver_func): Avoid leaking memory.
421 (ix86_generate_version_dispatcher_body): Likewise.
422 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
423 * target.def (supports_function_versions): Remove.
424 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
425 * doc/tm.texi: Regenerated.
427 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
429 PR rtl-optimization/56144
430 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
431 for values with side effects.
433 2013-01-30 Richard Biener <rguenther@suse.de>
435 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
436 (sparseset_pop): Likewise.
437 * cfganal.c (compute_idf): Likewise. Increase work-stack size
438 to be able to use quick_push in the worker loop.
440 2013-01-30 Marek Polacek <polacek@redhat.com>
442 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
444 2013-01-30 Richard Biener <rguenther@suse.de>
447 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN
450 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
452 PR tree-optimization/56064
453 * fixed-value.c (fixed_from_double_int): New function.
454 * fixed-value.h (fixed_from_double_int): New prototype.
455 (const_fixed_from_double_int): New static inline function.
456 * fold-const.c (native_interpret_fixed): New static function.
457 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
458 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
459 (native_encode_fixed): New static function.
460 (native_encode_expr) <FIXED_CST>: Use it.
461 (native_interpret_int): Move double_int worker code to...
462 * double-int.c (double_int::from_buffer): ...this new static method.
463 * double-int.h (double_int::from_buffer): Prototype it.
465 2013-01-30 Richard Biener <rguenther@suse.de>
467 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
468 New pointer-map and obstack.
469 (init_alias_vars): Allocate pointer-map and obstack.
470 (delete_points_to_sets): Free them.
471 (find_what_var_points_to): Cache result.
472 (find_what_p_points_to): Adjust for changed interface of
473 find_what_var_points_to.
474 (compute_points_to_sets): Likewise.
475 (ipa_pta_execute): Likewise.
477 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
479 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
480 * configure: Regenerate.
481 * config.in: Regenerate.
482 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
483 #nobits/#progbits if supported.
485 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
488 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
489 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
490 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
492 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
494 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
495 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
497 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
499 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
500 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
502 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
504 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
506 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
507 * config/arm/cortex-a7.md: New bypasses using
508 arm_mac_accumulator_is_result.
510 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
512 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
513 (cortex_a7_neon_mla): Likewise.
514 (cortex_a7_fpfmad): New reservation.
515 (cortex_a7_fpmacs): Use ffmas and update required units.
516 (cortex_a7_fpmuld): Update required units and latency.
517 (cortex_a7_fpmacd): Likewise.
518 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
519 (cortex_a7_neon). Likewise.
520 (bypass) Update participating units.
522 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
524 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
525 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
527 * config/arm/vfp11.md (vfp_farith): Use ffmas.
528 (vfp_fmul): Use ffmad.
529 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
530 (cortex_r4_fmacd): Use ffmad.
531 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
532 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
533 (cortex_a9_fmacd): Use ffmad.
534 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
535 (cortex_a8_vfp_macd): Use ffmad.
536 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
537 (cortex_a5_fpmacd): Use ffmad.
538 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
539 (cortex_a15_vfp_macd): Use ffmad.
540 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
542 2013-01-29 Jason Merrill <jason@redhat.com>
545 * varasm.c (default_assemble_visibility): Don't warn about
546 visibility on artificial decls.
548 2013-01-29 Richard Biener <rguenther@suse.de>
550 PR tree-optimization/56113
551 * tree-ssa-structalias.c (equiv_class_lookup): Also return
553 (label_visit): Free duplicate bitmaps and record the leader instead.
554 (perform_var_substitution): Adjust.
556 2013-01-29 Richard Biener <rguenther@suse.de>
558 PR tree-optimization/55270
559 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
560 the CFG, schedule loops for fixup.
562 2013-01-29 Nick Clifton <nickc@redhat.com>
564 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
567 2013-01-28 Leif Ekblad <leif@rdos.net>
569 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
570 * config/i386/i386.h (TARGET_RDOS): New macro.
571 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
572 * config/i386/i386.c (ix86_option_override_internal): For 64bit
573 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
574 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
575 DEFAULT_LARGE_SECTION_THRESHOLD.
576 * config/i386/i386.md (R14_REG, R15_REG): New constants.
577 * config/i386/rdos.h: New file.
578 * config/i386/rdos64.h: New file.
580 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
583 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
586 2013-01-28 Jakub Jelinek <jakub@redhat.com>
588 PR rtl-optimization/56117
589 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
590 call cselib_lookup_from_insn on the MEM before calling
591 add_insn_mem_dependence.
593 2013-01-28 Richard Biener <rguenther@suse.de>
595 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
596 to a stmt that didn't have one.
597 (copy_phis_for_bb): Likewise for PHI arguments.
598 (copy_debug_stmt): Likewise for debug stmts.
600 2013-01-28 Richard Biener <rguenther@suse.de>
602 PR tree-optimization/56034
603 * tree-loop-distribution.c (enum partition_kind): Add
605 (partition_builtin_p): Adjust.
606 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
607 it is the last partition.
608 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
609 up the vertex for the definition.
610 (classify_partition): Classify whether a partition is a
611 PKIND_REDUCTION, thus has uses outside of the loop.
612 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
613 Merge all PKIND_REDUCTION partitions into the last partition.
614 (tree_loop_distribution): Seed partitions from reductions as well.
616 2013-01-28 Jakub Jelinek <jakub@redhat.com>
618 PR tree-optimization/56125
619 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
620 pow(x,c) into sqrt(x) * powi(x, n/2) or
621 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
623 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
624 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
627 PR tree-optimization/56094
628 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
629 to UNKNOWN_LOCATION while gimplifying expr.
631 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
634 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
635 operand 0 in movabs insn template for -masm=intel asm alternative.
636 (*movabs<mode>_2): Ditto for operand 1.
638 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
641 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
644 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
646 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
649 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
651 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
652 Undef to avoid warning.
654 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
656 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
657 * configure: Regenerate.
659 2013-01-25 Jakub Jelinek <jakub@redhat.com>
661 PR tree-optimization/56098
662 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
663 for stmts with volatile ops.
664 (cond_store_replacement): Don't optimize if assign has volatile ops.
665 (cond_if_else_store_replacement_1): Don't optimize if either
666 then_assign or else_assign have volatile ops.
667 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
670 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
672 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
674 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
676 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
677 missing ':' in asm example.
679 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
681 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
682 entries into lane and laneq entries.
683 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
684 Remove AdvSIMD scalar modes.
685 (aarch64_sq<r>dmulh_laneq<mode>): New.
686 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
688 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
689 builtin implementations to relfect changes in RTL in aarch64-simd.md.
690 * config/aarch64/iterators.md (VCOND): New.
693 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
696 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
697 Add NULL LIBNAME argument to existing definitions.
698 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
699 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
700 * config/avr/avr.c (DEF_BUILTIN): Same.
701 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
702 (avr_expand_builtin): Expand to a vanilla call if a libgcc
703 implementation is available (DECL_ASSEMBLER_NAME is set).
704 (avr_fold_absfx): New static function.
705 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
706 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
707 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
709 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
710 (abshk, absk, abslk, absllk): Provide as static inline functions.
712 2013-01-25 Marek Polacek <polacek@redhat.com>
714 PR tree-optimization/56035
715 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
717 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
719 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
720 (*movtf_internal_rex64): Add (!o,C) alternative
721 (*movxf_internal_rex64): Ditto.
722 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
724 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
726 * doc/invoke.texi: fix typo.
727 * doc/objc.texi: fix typo.
729 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
731 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
732 for the first two alternatives.
734 2013-01-24 Diego Novillo <dnovillo@google.com>
736 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
737 (ggc-zone.o): Remove.
738 * configure.ac: Remove option --with-gc.
739 * configure: Re-generate.
740 * doc/install.texi: Remove documentation for --with-gc.
741 * gengtype.c (write_enum_defn): Remove. Update all users.
742 (write_Types_process_field): Remove generation of gt_e_* argument.
743 (output_type_enum): Remove. Update all users.
744 (write_enum_defn): Remove. Update all users.
745 (enum alloc_zone): Remove. Update all users.
746 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
747 * ggc-common.c (ggc_splay_alloc): Remove first argument.
749 (struct ptr_data): Remove field TYPE. Update all users.
750 (gt_pch_note_object): Remove argument TYPE. Update all users.
751 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
753 * ggc-none.c (ggc_alloc_typed_stat): Remove.
754 (struct alloc_zone): Remove.
755 (ggc_internal_alloc_zone_stat): Remove.
756 (ggc_internal_cleared_alloc_zone_stat): Remove.
757 * ggc-page.c (ggc_alloc_typed_stat): Remove.
758 (ggc_pch_count_object): Remove last argument. Update all users.
759 (ggc_pch_alloc_object): Remove last argument. Update all users.
760 (struct alloc_zone): Remove.
761 * ggc-zone.c: Remove.
762 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
763 (struct alloc_zone): Remove.
764 (ggc_alloc_typed_stat): Remove.
765 (ggc_alloc_typed): Remove.
766 (ggc_splay_alloc): Remove first argument.
767 (rtl_zone): Remove. Update all users.
768 (tree_zone): Remove. Update all users.
769 (tree_id_zone): Remove. Update all users.
770 (ggc_internal_zone_alloc_stat): Remove. Update all users.
771 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
772 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
773 * tree-ssanames.c: Remove references to zone allocator in comments.
775 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
777 * config/avr/avr.c (avr_out_fract): Make register numbers that
778 might be outside of source operand signed.
780 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
782 * config/i386/constraints.md (Yf): New constraint.
783 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
784 of f constraint to conditionaly disable x87 register preferences.
785 (*movdf_internal): Ditto.
786 (*movsf_internal): Ditto.
788 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
791 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
792 that have operands with impossible constraints.
793 Add a FIXME for a speed-up opportunity.
794 * lra-constraints.c (process_alt_operands): Verify that a class
795 selected from constraints on asms is valid for the operand mode.
796 (curr_insn_transform): Remove incorrect comment.
798 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
800 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
801 TOC operand is a valid symbol ref in the constant pool.
803 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
805 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
807 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
810 * config/avr/stdfix.h: New file.
811 * t-avr (stdfix-gcc.h): New rule to build it.
812 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
814 2013-01-23 Kostya Serebryany <kcc@google.com>
816 * config/darwin.h: remove dependency on
817 CoreFoundation (asan on Mac OS).
819 2013-01-23 Jakub Jelinek <jakub@redhat.com>
822 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
823 instead of cmpdi_operand for first comparison operand.
824 Don't assert that comparison operands aren't both constants.
826 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
828 * doc/install.texi (Downloading the Source): Update references to
829 downloading separate components.
831 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
833 * doc/extend.texi (__int128): Improve grammar.
835 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
838 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
839 alternative to (o,r).
840 (*movdi_internal_rex64): Remove (!o,n) alternative.
841 (DImode immediate->memory splitter): Remove.
842 (DImode immediate->memory peephole2): Remove.
843 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
844 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
845 alternative to (!o,*r).
846 (*movtf_internal_sse): New pattern.
847 (*movxf_internal_rex64): New pattern.
848 (*movxf_internal): Disable for TARGET_64BIT.
849 (*movdf_internal_rex64): Remove (!o,F) alternative.
851 2013-01-22 Jakub Jelinek <jakub@redhat.com>
854 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
855 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
856 * tree-vect-loop-manip.c (find_loop_location): Also ignore
857 stmt locations where LOCATION_LOCUS of the stmt location is
858 UNKNOWN_LOCATION or BUILTINS_LOCATION.
861 * config/i386/i386.md (UNSPEC_STOS): New.
862 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
863 *strsetqi_1): Add UNSPEC_STOS.
865 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
868 * doc/invoke.texi: Remove left over -Wsynth example.
870 2013-01-21 Jakub Jelinek <jakub@redhat.com>
872 PR tree-optimization/56051
873 * fold-const.c (fold_binary_loc): Don't fold
874 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
875 a narrowing conversion, or widening conversion from signed
878 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
880 PR rtl-optimization/56023
881 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
882 dependent on debug instruction.
884 2013-01-21 Martin Jambor <mjambor@suse.cz>
887 * function.c (allocate_struct_function): Call
888 invoke_set_current_function_hook earlier.
890 2013-01-21 Jakub Jelinek <jakub@redhat.com>
892 * reload1.c (init_reload): Only initialize reload_obstack
893 during the first call.
895 2013-01-21 Marek Polacek <polacek@redhat.com>
897 * cfgloop.c (verify_loop_structure): Fix up grammar.
899 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
901 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
902 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
904 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
907 * config/arm/marvell-pj4.md: Update copyright year.
908 Fix up use of alu to alu_reg and simple_alu_imm.
910 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
912 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
914 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
917 * lra-constraints.c (curr_insn_transform): Don't reuse original
918 insn for secondary memory move when memory mode should be different.
920 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
922 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
923 atomic_storedi_1): New patterns.
925 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
927 btver2 pipeline descriptions.
928 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
930 * config/i386/i386.md (btver2_decode): New type attributes.
931 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
933 * config/i386/btver2.md: New file describing btver2 pipelines.
935 2013-01-19 Andrew Pinski <apinski@cavium.com>
937 PR tree-optimization/52631
938 * tree-ssa-sccvn (visit_use): Before looking up the original
939 statement, try looking up the simplified expression.
941 2013-01-19 Anthony Green <green@moxielogic.com>
943 * config/moxie/moxie.c (moxie_expand_prologue): Set
944 current_function_static_stack_size.
946 2013-01-18 Jakub Jelinek <jakub@redhat.com>
948 PR tree-optimization/56029
949 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
950 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
952 2013-01-18 Sharad Singhai <singhai@google.com>
954 PR tree-optimization/55995
955 * dumpfile.c (dump_loc): Print location only if available.
956 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
958 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
961 * lra-constraints.c (curr_insn_transform): Reuse original insn for
962 secondary memory move.
963 (inherit_reload_reg): Use rclass instead of cl for
964 check_secondary_memory_needed_p.
966 2013-01-18 Jakub Jelinek <jakub@redhat.com>
969 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
970 the case where writing real complex part of target modifies op1.
972 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
974 * config/aarch64/aarch64-simd.md
975 (aarch64_vcond_internal<mode>): Handle unordered cases.
976 * config/aarch64/iterators.md (v_cmp_result): New.
978 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
979 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
981 * config/arm/marvell-pj4.md: New file.
982 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
983 * config/arm/arm.md (generic_sched): Add marvell_pj4.
984 (generic_vfp): Likewise.
985 * config/arm/arm-cores.def: Add marvell-pj4.
986 * config/arm/arm-tune.md: Regenerate.
987 * config/arm/arm-tables.opt: Regenerate.
988 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
989 * doc/invoke.texi: Document marvell-pj4.
991 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
993 * config/aarch64/arm_neon.h: Map scalar types to standard types.
995 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
1000 * var-tracking.c (negative_power_of_two_p): New.
1001 (global_get_addr_cache, local_get_addr_cache): New.
1002 (get_addr_from_global_cache, get_addr_from_local_cache): New.
1003 (vt_canonicalize_addr): Rewrite using the above. Adjust the
1005 (vt_stack_offset_p): Remove.
1006 (vt_canon_true_dep): Always canonicalize loc's address.
1007 (clobber_overlapping_mems): Make sure we have a MEM.
1008 (local_get_addr_clear_given_value): New.
1009 (val_reset): Clear local cached entries.
1010 (compute_bb_dataflow): Create and release the local cache.
1011 Disable duplicate MEMs clobbering.
1012 (emit_notes_in_bb): Clobber MEMs likewise.
1013 (vt_emit_notes): Create and release the local cache.
1014 (vt_initialize, vt_finalize): Create and release the global
1015 cache, respectively.
1016 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
1018 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
1021 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
1022 not found in the symtab.
1024 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
1027 PR rtl-optimization/55547
1028 PR rtl-optimization/53827
1031 * alias.c (offset_overlap_p): New, factored out of...
1032 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
1033 the conservative special case for symbolic constants. Don't
1034 adjust zero sizes on alignment.
1036 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
1038 PR rtl-optimization/52573
1039 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
1040 REG_UNUSED for the same register.
1042 2013-01-17 Richard Biener <rguenther@suse.de>
1043 Marek Polacek <polacek@redhat.com>
1045 PR rtl-optimization/55833
1046 * loop-unswitch.c (unswitch_loops): Move loop verification...
1047 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
1048 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
1049 Set it to true when we're removing a loop from hierarchy tree in
1050 an irreducible region.
1051 (fix_bb_placements): Adjust caller.
1052 (fix_loop_placements): Likewise.
1054 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
1056 * config/avr/builtins.def (DEF_BUILTIN): Factor out
1057 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
1058 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
1059 Remove ID. Adjust comments.
1060 * config/avr/avr-c.c (avr_builtin_name): Remove.
1061 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
1062 * config/avr/avr.c (avr_tolower): New static function.
1063 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
1064 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
1065 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
1068 2013-01-17 Jan Hubicka <jh@suse.cz>
1070 PR tree-optimization/55273
1071 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
1073 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
1076 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
1077 store through atomic_store<mode>_1.
1078 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
1080 2013-01-17 Martin Jambor <mjambor@suse.cz>
1082 PR tree-optimizations/55264
1083 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
1084 for virtual methods.
1085 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
1086 virtual methods before inlining is over.
1087 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
1089 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
1092 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
1094 PR rtl-optimization/56005
1095 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
1096 pending reads for prefetch.
1098 2013-01-16 Ian Bolton <ian.bolton@arm.com>
1100 * config/aarch64/aarch64.md
1101 (*cstoresi_neg_uxtw): New pattern.
1102 (*cmovsi_insn_uxtw): New pattern.
1103 (*<optab>si3_uxtw): New pattern.
1104 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
1105 (*<optab>si3_insn_uxtw): New pattern.
1106 (*bswapsi2_uxtw): New pattern.
1108 2013-01-16 Richard Biener <rguenther@suse.de>
1110 * tree-inline.c (tree_function_versioning): Remove set but
1111 never used variable.
1113 2013-01-16 Richard Biener <rguenther@suse.de>
1115 PR tree-optimization/55964
1116 * tree-flow.h (rename_variables_in_loop): Remove.
1117 (rename_variables_in_bb): Likewise.
1118 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
1119 (copy_loop_before): Adjust and delete update-ssa status.
1120 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
1121 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
1122 (rename_variables_in_loop): Remove.
1123 (slpeel_update_phis_for_duplicate_loop): Likewise.
1124 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
1125 use available cfg machinery instead of duplicating it.
1126 Update PHI nodes and perform poor-mans SSA update here.
1127 (slpeel_tree_peel_loop_to_edge): Adjust.
1129 2013-01-16 Richard Biener <rguenther@suse.de>
1131 PR tree-optimization/54767
1132 PR tree-optimization/53465
1133 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
1134 (vrp_visit_phi_node): For PHI arguments coming via backedges
1135 drop all symbolical range information.
1136 (execute_vrp): Compute backedges.
1138 2013-01-16 Richard Biener <rguenther@suse.de>
1140 * doc/install.texi: Update CLooG and ISL requirements to
1143 2013-01-16 Christian Bruel <christian.bruel@st.com>
1146 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
1147 (broken_move): Handle UNSPECV_SP_SWITCH_B.
1148 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
1150 2013-01-16 DJ Delorie <dj@redhat.com>
1152 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
1153 (UNSPECV_SP_SWITCH_E): New.
1154 (sp_switch_1): Change to an unspec.
1155 (sp_switch_2): Change to an unspec. Don't use post-inc when we
1158 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
1160 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
1161 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
1162 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
1163 (expand_mem_thread_fence): Ditto.
1164 (expand_mem_signal_fence): Ditto.
1165 (expand_atomic_load): Ditto.
1166 (expand_atomic_store): Ditto.
1168 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
1170 PR rtl-optimization/55547
1171 PR rtl-optimization/53827
1174 * alias.c (memrefs_conflict_p): Set sizes to negative after
1177 2013-01-15 Jakub Jelinek <jakub@redhat.com>
1180 * function.c (thread_prologue_and_epilogue_insns): Always
1181 add crtl->drap_reg to set_up_by_prologue.set, even if
1182 stack_realign_drap is false.
1184 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1186 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
1187 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
1188 *call): Fix indention.
1190 2013-01-15 Tom de Vries <tom@codesourcery.com>
1193 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
1196 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
1198 PR rtl-optimization/55153
1199 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
1201 2013-01-15 Martin Jambor <mjambor@suse.cz>
1203 PR tree-optimization/55920
1204 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
1205 accesses as grp_to_be_debug_replaced.
1207 2013-01-15 Jakub Jelinek <jakub@redhat.com>
1209 PR tree-optimization/55920
1210 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
1211 there is non-useless type conversion needed from debug rhs to lhs,
1212 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
1214 2013-01-15 Joseph Myers <joseph@codesourcery.com>
1215 Mikael Pettersson <mikpe@it.uu.se>
1218 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
1220 (ASM_OUTPUT_CASE_LABEL): Remove.
1221 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
1222 * final.c (shorten_branches): Update alignment of labels before
1223 jump tables if CASE_VECTOR_SHORTEN_MODE.
1225 2013-01-15 Richard Biener <rguenther@suse.de>
1228 * system.h: Do not include gmp.h for building host tools.
1230 2013-01-15 Richard Biener <rguenther@suse.de>
1233 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
1234 account for bitpos when computing alignment.
1236 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
1238 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
1239 (ix86_target_macros_internal): Likewise.
1241 * config/i386/i386.c (m_CORE2I7): Removed.
1242 (m_CORE_HASWELL): New macro.
1243 (m_CORE_ALL): Likewise.
1244 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
1245 (initial_ix86_arch_features): Likewise.
1246 (processor_target_table): Initializations for Core avx2.
1247 (cpu_names): New names "core-avx2".
1248 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
1249 PROCESSOR_CORE_HASWELL.
1250 (ix86_issue_rate): New case.
1251 (ia32_multipass_dfa_lookahead): Likewise.
1252 (ix86_sched_init_global): Likewise.
1254 * config/i386/i386.h (TARGET_HASWELL): New macro.
1255 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
1256 (processor_type): New PROCESSOR_HASWELL.
1258 2013-01-15 Jakub Jelinek <jakub@redhat.com>
1260 PR tree-optimization/55955
1261 * tree-vect-loop.c (vectorizable_reduction): Give up early on
1262 *SHIFT_EXPR and *ROTATE_EXPR codes.
1264 PR tree-optimization/48766
1265 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
1266 -ftrapv disable -fwrapv.
1268 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
1271 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
1272 etc. to 1 and not to __flash.
1273 Use LL suffix for __INT24_MAX__ with -mint8.
1274 Use ULL suffix for __UINT24_MAX__ with -mint8.
1276 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
1278 * config/avr/avr-arch.h
1279 (struct base_arch_s): Use typedef avr_arch_t instead.
1280 (struct arch_info_s): Use typedef avr_arch_info_t instead.
1281 (struct mcu_type_s): Use typedef avr_mcu_t instead.
1282 * config/avr/avr.c: Same.
1283 * config/avr/avr-devices.c: Same.
1284 * config/avr/driver-avr.c: Same.
1285 * config/avr/gen-avr-mmcu-texi.c: Same.
1286 * config/avr/avr-mcus.def: Adjust comment.
1288 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
1290 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
1291 * config/aarch64/iterators.md (VALLDI): New.
1293 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
1294 Andi Kleen <ak@linux.intel.com>
1297 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
1298 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
1301 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
1303 * config/avr/avr-stdint.h: Remove trailing blanks.
1304 * config/avr/avr-log.h: Same.
1305 * config/avr/avr-arch.h: Same.
1306 * config/avr/avr-devices.c: Same.
1307 * config/avr/avr-dimode.md: Same.
1308 * config/avr/predicates.md: Same.
1309 * config/avr/avr-c.c: Same. And fix typo.
1311 * config/avr/avr-protos.h: Same. And:
1312 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
1313 (init_cumulative_args): Rename to avr_init_cumulative_args.
1314 (expand_prologue): Rename to avr_expand_prologue.
1315 (expand_epilogue): Rename to avr_expand_epilogue.
1316 (adjust_insn_length): Rename to avr_adjust_insn_length.
1317 (notice_update_cc): Rename to avr_notice_update_cc.
1318 (final_prescan_insn): Rename to avr_final_prescan_insn.
1319 * config/avr/avr.c: Same.
1320 * config/avr/avr.h: Same.
1321 * config/avr/avr.md: Remove trailing blanks.
1322 (prologue): Use avr_expand_prologue.
1323 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
1325 2013-01-14 Richard Biener <rguenther@suse.de>
1327 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
1328 verify_location, collect_subblocks): New functions.
1329 (verify_gimple_in_cfg): Verify that locations only reference
1330 BLOCKs in the functions BLOCK tree.
1332 2013-01-14 Richard Biener <rguenther@suse.de>
1334 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
1336 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
1338 (insert_out_of_ssa_copy_on_edge): Likewise.
1339 (rewrite_close_phi_out_of_ssa): Likewise.
1340 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
1342 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
1343 propagated constants.
1344 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
1347 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
1349 * config/avr/avr-modes.def: Add GPL copyright notice.
1351 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
1353 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
1354 MEMMODEL_MASK to determine memory model.
1355 (atomic_store<mode>): Ditto from operands[2].
1356 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
1358 2013-01-13 Jakub Jelinek <jakub@redhat.com>
1361 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
1362 (fold_gimple_assign): Don't call unshare_expr here.
1363 (fold_ctor_reference): Call unshare_expr.
1365 2013-01-13 Terry Guo <terry.guo@arm.com>
1367 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
1368 * doc/fragments.texi: Document MULTILIB_REUSE.
1369 * gcc.c (multilib_reuse): New internal spec.
1370 (set_multilib_dir): Also search multilib from multilib_reuse.
1371 * genmultilib (tmpmultilib3): Refactor code.
1372 (tmpmultilib4): Ditto.
1373 (multilib_reuse): New multilib argument.
1375 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
1377 * Makefile.in: Update copyright.
1379 2013-01-12 Tom de Vries <tom@codesourcery.com>
1382 * calls.c (expand_call): Check if arg_nr is valid.
1384 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1386 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
1387 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
1388 documentation. Add missing '__' in front of
1389 __builtin_ia32_packssdw256.
1391 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1394 * config/s390/s390.c (s390_preferred_reload_class): Do not return
1395 NO_REGS for larl operands.
1396 (s390_reload_larl_operand): Use s390_load_address instead of
1399 2013-01-11 Richard Biener <rguenther@suse.de>
1401 * tree-cfg.c (verify_node_sharing_1): Split out from ...
1402 (verify_node_sharing): ... here.
1403 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
1405 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
1407 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
1408 Substitute TREECHECKING.
1409 * configure: Regenerate.
1410 * Makefile.in (TREECHECKING): New.
1412 2013-01-11 Richard Guenther <rguenther@suse.de>
1414 PR tree-optimization/44061
1415 * tree-vrp.c (extract_range_basic): Compute zero as
1416 value-range for __builtin_constant_p of function parameters.
1418 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
1420 Update copyright years.
1422 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
1424 PR rtl-optimization/55672
1425 * lra-eliminations.c (mark_not_eliminable): Permit addition with
1426 const to be eliminable.
1428 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
1430 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
1431 * configure: Regenerate.
1433 2013-01-10 Richard Biener <rguenther@suse.de>
1435 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
1437 2013-01-10 Richard Biener <rguenther@suse.de>
1440 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
1441 locations for virtual PHI arguments.
1442 (rewrite_update_phi_arguments): Likewise.
1444 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
1446 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
1449 2013-01-10 Jakub Jelinek <jakub@redhat.com>
1451 PR tree-optimization/55921
1452 * tree-complex.c (expand_complex_asm): New function.
1453 (expand_complex_operations_1): Call it for GIMPLE_ASM.
1455 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1458 * config/s390/s390.c (s390_symref_operand_p)
1459 (s390_loadrelative_operand_p): Merge the two functions.
1460 (s390_check_qrst_address, print_operand_address): Add parameters
1461 to s390_loadrelative_operand_p invokation.
1462 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
1463 (s390_reload_larl_operand, s390_secondary_reload): Use
1464 s390_loadrelative_operand_p instead of s390_symref_operand_p.
1465 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
1467 2013-01-09 Mike Stump <mikestump@comcast.net>
1469 * dse.c (record_store): Remove unnecessary assert.
1471 2013-01-09 Jan Hubicka <jh@suse.cz>
1473 PR tree-optimization/55569
1474 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
1475 * cfgloop.h (scale_loop_profile): Likewise.
1477 2013-01-09 Jan Hubicka <jh@suse.cz>
1480 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
1482 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
1484 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
1487 * expr.h (maybe_emit_group_store): Declare.
1488 * expr.c (maybe_emit_group_store): New function.
1489 * builtins.c (expand_builtin_int_roundingfn): Call it.
1490 (expand_builtin_int_roundingfn_2): Likewise.
1492 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
1494 PR rtl-optimization/55829
1495 * lra-constraints.c (match_reload): Add code for absent output.
1496 (curr_insn_transform): Add code for reloads of matched inputs
1499 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
1501 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
1502 attribute of movddup insn to DF.
1503 (*vec_interleave_lowv2df): Ditto.
1504 (vec_dupv2df): Ditto.
1506 2013-01-09 Jan Hubicka <jh@suse.cz>
1508 PR tree-optimiation/55875
1509 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
1510 EVERY_ITERATION parameter.
1511 (number_of_iterations_exit): Check if exit is executed every iteration.
1512 (idx_infer_loop_bounds): Similarly here.
1513 (n_of_executions_at_most): Simplify
1514 to only test for cases where statement is dominated by the
1515 particular bound; handle correctly the "postdominance" test.
1516 (scev_probably_wraps_p): Use max loop iterations info
1517 as a global bound first.
1519 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
1520 Nick Clifton <nickc@redhat.com>
1522 * config/v850/v850.md (cbranchsf4): New pattern.
1523 (cstoresf4): New pattern.
1524 (cbranchdf4): New pattern.
1525 (cstoredf4): New pattern.
1526 (movsicc): Disallow floating point comparisons.
1527 (cmpsf_le_insn): Fix order of operators.
1528 (cmpsf_lt_insn): Likewise.
1529 (cmpsf_eq_insn): Likewise.
1530 (cmpdf_le_insn): Likewise.
1531 (cmpdf_lt_insn): Likewise.
1532 (cmpdf_eq_insn): Likewise.
1533 (cmpsf_ge_insn): Use LE comparison.
1534 (cmpdf_ge_insn): Likewise.
1535 (cmpsf_gt_insn): Use LT comparison.
1536 (cmpdf_gt_insn): Likewise.
1537 (cmpsf_ne_insn): Delete pattern.
1538 (cmpdf_ne_insn): Delete pattern.
1539 * config/v850/v850.c (v850_gen_float_compare): Use
1540 gen_cmpdf_eq_insn for NE comparison.
1541 (v850_float_z_comparison_operator)
1542 (v850_float_nz_comparison_operator): Move from here ...
1543 * config/v850/predicates.md: ... to here. Move GT and GE
1544 comparisons into v850_float_z_comparison_operator.
1545 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
1547 (v850_float_nz_comparison_operator): Likewise.
1549 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1551 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
1552 with calls to gen_insvsi/gen_insvdi.
1554 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1556 * config/i386/i386.c (initial_ix86_tune_features): Set up
1557 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
1559 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
1560 Jakub Jelinek <jakub@redhat.com>
1562 PR tree-optimization/48189
1563 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
1564 If nitercst is 0, don't predict the exit edge.
1566 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1568 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
1569 in asm_fprintf with reg_names.
1570 (aarch64_print_operand_address): Likewise.
1571 (aarch64_return_addr): Likewise.
1572 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
1574 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1576 * config/pa/pa.h (VAL_U6_BITS_P): Define.
1577 (INT_U6_BITS): Likewise.
1578 * config/pa/predicates.md (uint6_operand): New predicate.
1579 (shift5_operand, shift6_operand): Likewise.
1580 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
1582 (lshrdi3): Use shift6_operand.
1583 (shrpsi4, shrpdi4): New insn patterns.
1584 (extzv): Delete expander.
1585 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
1586 predicates in unamed zero extract patterns. Tighten common constraint.
1587 (extv): Delete expander.
1588 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
1589 predicates in unamed sign extract patterns. Tighten common constraint.
1590 (insv): Delete expander.
1591 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
1592 predicates in unamed insert patterns. Tighten common constraint.
1593 Change uint32_operand predicate to uint6_operand predicate in unamed
1594 DImode pattern to insert constant values of type 1...1xxxx.
1596 2013-01-04 Jan Hubicka <jh@suse.cz>
1598 PR tree-optimization/55823
1599 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
1602 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1603 Uros Bizjak <ubizjak@gmail.com>
1605 PR rtl-optimization/55845
1606 * df-problems.c (can_move_insns_across): Stop scanning at
1607 volatile_insn_p source instruction or give up if
1608 across_from .. across_to range contains any volatile_insn_p
1611 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1613 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
1614 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
1616 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
1617 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
1619 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1622 * asan.c (asan_clear_shadow): New function.
1623 (asan_emit_stack_protection): Use it.
1625 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1627 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
1628 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
1629 with tab instead of space.
1631 2013-01-08 Nick Clifton <nickc@redhat.com>
1633 * config/rl78/rl78.c (rl78_expand_prologue): Always select
1634 register bank 0 at the start of an interrupt handler.
1635 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
1638 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1640 * config/aarch64/aarch64-simd.md
1641 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
1642 (aarch64_simd_bsl): Likewise.
1643 (aarch64_vcond_internal<mode>): Likewise.
1644 (vcond<mode><mode>): Likewise.
1645 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
1646 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
1648 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1650 * config/aarch64/aarch64-builtins.c
1651 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
1653 2013-01-08 Martin Jambor <mjambor@suse.cz>
1656 * tree-sra.c (analyze_access_subtree): Return true also after
1657 potentially creating a debug-only replacement.
1659 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1662 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
1664 PR tree-optimization/54120
1665 * tree-vrp.c (range_fits_type_p): Don't allow
1666 src_precision < precision from signed vr to unsigned_p
1667 if vr->min or vr->max is negative.
1668 (simplify_float_conversion_using_ranges): Test can_float_p
1669 against CODE_FOR_nothing.
1671 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1672 Richard Biener <rguenther@suse.de>
1675 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
1676 types instead of just INTEGER_TYPE types.
1678 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
1680 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
1683 2013-01-07 Steve Ellcey <sellcey@mips.com>
1686 * config/mips/mips.opt: Change mad to mmad to match documentation.
1688 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1691 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
1694 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1697 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
1698 (avr_addrspace_t): Add .section_name field.
1699 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
1701 (avr_addrspace): Same. Initialize .section_name. Remove last
1702 NULL entry. Put __memx into .progmemx.data.
1703 (progmem_section_prefix): Remove.
1704 (avr_asm_init_sections): No need to initialize progmem_section.
1705 (avr_asm_named_section): Use avr_addrspace[].section_name to get
1706 section name prefix.
1707 (avr_asm_select_section): Ditto. And use get_unnamed_section to
1708 retrieve the progmem section.
1709 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
1710 boundary to run over avr_addrspace[].
1711 (avr_register_target_pragmas): Ditto.
1713 2013-01-06 Jakub Jelinek <jakub@redhat.com>
1715 * varasm.c (output_constant_def_contents): For asan_protect_global
1716 protected strings, adjust DECL_ALIGN if needed, before testing for
1718 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
1719 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
1721 (output_object_block): For asan protected decls, emit asan padding
1722 after their contents.
1723 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
1724 (asan_finish_file): Test it here instead.
1726 2013-01-07 Nick Clifton <nickc@redhat.com>
1727 Matthias Klose <doko@debian.org>
1728 Doug Kwan <dougkwan@google.com>
1729 H.J. Lu <hongjiu.lu@intel.com>
1732 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
1734 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
1736 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
1738 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
1740 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
1742 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1745 * doc/install.texi (Cross-Compiler-Specific Options): Document
1748 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
1750 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
1751 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
1752 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
1753 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
1754 vqmovun_high_s64): Fix source operand number and update copyright.
1756 2013-01-07 Richard Biener <rguenther@suse.de>
1759 * gimple.h (gimple_call_builtin_p): New overload.
1760 * gimple.c (validate_call): New function.
1761 (gimple_call_builtin_p): Likewise.
1762 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1763 Use gimple_call_builtin_p.
1764 (find_func_clobbers): Likewise.
1765 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
1766 (strlen_optimize_stmt): Likewise.
1768 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1770 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
1771 (vld1q_dup_*): Likewise.
1773 (vld1q_*): Likewise.
1774 (vld1_lane_*): Likewise.
1775 (vld1q_lane_*): Likewise.
1777 2013-01-07 Richard Biener <rguenther@suse.de>
1779 * lto-streamer.h (LTO_minor_version): Bump to 2.
1781 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1783 * config/aarch64/aarch64-protos.h
1784 (aarch64_const_double_zero_rtx_p): Rename to...
1785 (aarch64_float_const_zero_rtx_p): ...this.
1786 (aarch64_float_const_representable_p): New.
1787 (aarch64_output_simd_mov_immediate): Likewise.
1788 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
1789 move immediate case.
1790 * config/aarch64/aarch64.c
1791 (aarch64_const_double_zero_rtx_p): Rename to...
1792 (aarch64_float_const_zero_rtx_p): ...this.
1793 (aarch64_print_operand): Allow printing of new constants.
1794 (aarch64_valid_floating_const): New.
1795 (aarch64_legitimate_constant_p): Check for valid floating-point
1797 (aarch64_simd_valid_immediate): Likewise.
1798 (aarch64_vect_float_const_representable_p): New.
1799 (aarch64_float_const_representable_p): Likewise.
1800 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
1801 (aarch64_output_simd_mov_immediate): New.
1802 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
1803 (*movdf_aarch64): Likewise.
1804 * config/aarch64/constraints.md (Ufc): New.
1805 (Y): call aarch64_float_const_zero_rtx.
1806 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
1808 2013-01-07 Richard Biener <rguenther@suse.de>
1810 PR tree-optimization/55888
1811 PR tree-optimization/55862
1812 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
1813 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
1814 not if it is contained therein.
1816 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1818 * config/avr/t-avr: Typo.
1820 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1823 * config/avr/t-avr: Don't automatically rebuild
1824 $(srcdir)/config/avr/t-multilib
1825 $(srcdir)/config/avr/avr-tables.opt
1826 $(srcdir)/doc/avr-mmcu.texi
1827 (avr-mcus): New phony target to build them on request.
1828 (s-avr-mlib, s-avr-mmcu-texi): Remove.
1829 * avr/avr-mcus.def: Adjust comments.
1831 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
1833 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
1835 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1837 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
1839 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1841 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
1843 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
1845 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
1846 to generate profiling.
1847 * config/rs6000/aix64.h (LIB_SPEC): Same.
1849 2013-01-04 Andrew Pinski <apinski@cavium.com>
1851 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
1853 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1855 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
1857 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
1859 (ix86_expand_move): Ditto.
1860 (ix86_zero_extend_to_Pmode): Ditto.
1861 (ix86_expand_call): Ditto.
1862 (ix86_expand_special_args_builtin): Ditto.
1863 (ix86_expand_builtin): Ditto.
1865 2013-01-04 Richard Biener <rguenther@suse.de>
1867 PR tree-optimization/55862
1868 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
1869 translating them through PHI nodes.
1871 2013-01-04 Martin Jambor <mjambor@suse.cz>
1873 PR tree-optimization/55755
1874 * tree-sra.c (sra_modify_assign): Do not check that an access has no
1875 children when trying to avoid producing a VIEW_CONVERT_EXPR.
1877 2013-01-04 Marek Polacek <polacek@redhat.com>
1880 * opts.c (default_options_optimization): Clarify error message.
1882 2013-01-04 Richard Biener <rguenther@suse.de>
1885 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
1888 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1891 * config/pa/pa.md (movsi): Revert previous change.
1892 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
1895 2013-01-03 Richard Henderson <rth@redhat.com>
1897 * config/i386/i386.c (ix86_expand_move): Always assign to op1
1898 after eliminating TLS symbols.
1900 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
1903 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
1904 * graphite-poly.c (debug_gmp_value): Likewise.
1906 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
1909 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
1910 selected code model, define __code_mode_small__, __code_model_medium__,
1911 __code_model_large__, __code_model_32__ or __code_model_kernel__.
1912 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
1913 xchg temporary register with %k. Declare temporary register as
1915 [__x86_64__]: For medium and large code models, preserve %rbx register.
1917 2013-01-03 Richard Biener <rguenther@suse.de>
1919 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
1920 (dump_subscript): Adjust.
1921 (finalize_ddr_dependent): Do not dump redundant info.
1922 (analyze_siv_subscript): Adjust.
1923 (subscript_dependence_tester): Likewise.
1924 (compute_affine_dependence): Likewise.
1926 2013-01-03 Richard Biener <rguenther@suse.de>
1929 2013-01-03 Richard Biener <rguenther@suse.de>
1931 PR tree-optimization/55857
1932 * tree-vect-stmts.c (vectorizable_load): Do not setup
1933 re-alignment for invariant loads.
1935 2013-01-02 Richard Biener <rguenther@suse.de>
1937 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1938 invariant load do not generate a vector load from the scalar location.
1940 2013-01-03 Richard Biener <rguenther@suse.de>
1942 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
1943 for not vectorizing.
1944 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1945 not build INDIRECT_REFs, call get_name once only.
1946 (vect_create_data_ref_ptr): Likewise. Dump base object kind
1947 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
1949 2013-01-03 Richard Biener <rguenther@suse.de>
1951 PR tree-optimization/55857
1952 * tree-vect-stmts.c (vectorizable_load): Do not setup
1953 re-alignment for invariant loads.
1955 2013-01-03 Richard Biener <rguenther@suse.de>
1958 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
1959 prefer a built-in decl.
1961 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1963 * gcc.c (process_command): Update copyright notice dates.
1964 * gcov.c (print_version): Likewise.
1965 * gcov-dump.c (print_version): Likewise.
1967 PR rtl-optimization/55838
1968 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
1969 iv0.step, iv1.step and step.
1971 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1972 Marc Glisse <marc.glisse@inria.fr>
1974 PR tree-optimization/55832
1975 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
1976 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
1977 integer_{one,zero}_node.
1979 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1982 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
1983 * var-tracking.c (reverse_op): Don't add reverse ops to
1984 VALUEs that have already
1985 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
1987 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
1989 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
1991 2013-01-02 Teresa Johnson <tejohnson@google.com>
1993 * dumpfile.c (dump_loc): Print filename with location.
1994 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
1995 new location_t parameter to emit complete unroll message with
1997 (canonicalize_loop_induction_variables): Compute loops location
1998 and pass to try_unroll_loop_completely.
1999 * loop-unroll.c (report_unroll_peel): New function.
2000 (peel_loops_completely): Use new dump format with location
2001 for main dumpfile message, and invoke report_unroll_peel on success.
2002 (decide_unrolling_and_peeling): Ditto.
2003 (decide_peel_once_rolling): Remove old dumpfile message subsumed
2004 by report_unroll_peel.
2005 (decide_peel_completely): Ditto.
2006 (decide_unroll_constant_iterations): Ditto.
2007 (decide_unroll_runtime_iterations): Ditto.
2008 (decide_peel_simple): Ditto.
2009 (decide_unroll_stupid): Ditto.
2010 * cfgloop.c (get_loop_location): New function.
2011 * cfgloop.h (get_loop_location): Declare.
2013 2013-01-02 Sriraman Tallam <tmsriram@google.com>
2015 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
2018 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2021 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
2022 BLKmode objects when EXPAND_MEMORY is specified.
2024 2013-01-02 Sriraman Tallam <tmsriram@google.com>
2026 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
2028 (fold_builtin_cpu): Do not share cpu model decls across statements.
2030 2013-01-02 Jason Merrill <jason@redhat.com>
2033 * tree.c (build_array_type_1): Revert earlier change.
2035 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
2037 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
2039 * config/aarch64/aarch64-tune.md: Re-generate.
2041 2013-01-02 Richard Biener <rguenther@suse.de>
2043 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
2044 invariant load do not generate a vector load from the scalar location.
2046 2013-01-02 Richard Biener <rguenther@suse.de>
2049 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
2050 * configure: Regenerate.
2052 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2054 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
2055 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
2056 (expand_builtin_int_roundingfn_2): Keep the original target around
2057 for the fallback case.
2059 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2061 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
2062 to be clear for sign changes.
2064 2013-01-01 Jan Hubicka <jh@suse.cz>
2066 * ipa-inline-analysis.c: Fix formatting.
2068 2013-01-01 Jakub Jelinek <jakub@redhat.com>
2070 PR tree-optimization/55831
2071 * tree-vect-loop.c (get_initial_def_for_induction): Use
2072 gsi_after_labels instead of gsi_start_bb.
2074 Copyright (C) 2013 Free Software Foundation, Inc.
2076 Copying and distribution of this file, with or without modification,
2077 are permitted in any medium without royalty provided the copyright
2078 notice and this notice are preserved.