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