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