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