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