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