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