re PR tree-optimization/56034 (ICE: verify_gimple failed (invalid PHI argument) with...
[gcc.git] / gcc / ChangeLog
1 2013-01-28 Richard Biener <rguenther@suse.de>
2
3 PR tree-optimization/56034
4 * tree-loop-distribution.c (enum partition_kind): Add
5 PKIND_REDUCTION.
6 (partition_builtin_p): Adjust.
7 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
8 it is the last partition.
9 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10 up the vertex for the definition.
11 (classify_partition): Classify whether a partition is a
12 PKIND_REDUCTION, thus has uses outside of the loop.
13 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
14 Merge all PKIND_REDUCTION partitions into the last partition.
15 (tree_loop_distribution): Seed partitions from reductions as well.
16
17 2013-01-28 Jakub Jelinek <jakub@redhat.com>
18
19 PR tree-optimization/56125
20 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
21 pow(x,c) into sqrt(x) * powi(x, n/2) or
22 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
23 optimizing for size.
24 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
25 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
26 integer.
27
28 PR tree-optimization/56094
29 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
30 to UNKNOWN_LOCATION while gimplifying expr.
31
32 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
33
34 PR target/56114
35 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
36 operand 0 in movabs insn template for -masm=intel asm alternative.
37 (*movabs<mode>_2): Ditto for operand 1.
38
39 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
40
41 PR target/54663
42 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
43 of microblaze-c.o
44
45 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
46
47 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
48 tm_file.
49
50 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
51
52 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
53 Undef to avoid warning.
54
55 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
56
57 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
58 * configure: Regenerate.
59
60 2013-01-25 Jakub Jelinek <jakub@redhat.com>
61
62 PR tree-optimization/56098
63 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
64 for stmts with volatile ops.
65 (cond_store_replacement): Don't optimize if assign has volatile ops.
66 (cond_if_else_store_replacement_1): Don't optimize if either
67 then_assign or else_assign have volatile ops.
68 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
69 volatile ops.
70
71 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
72
73 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
74
75 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
76
77 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
78 missing ':' in asm example.
79
80 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
81
82 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
83 entries into lane and laneq entries.
84 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
85 Remove AdvSIMD scalar modes.
86 (aarch64_sq<r>dmulh_laneq<mode>): New.
87 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
88 modes.
89 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
90 builtin implementations to relfect changes in RTL in aarch64-simd.md.
91 * config/aarch64/iterators.md (VCOND): New.
92 (VCONQ): New.
93
94 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
95
96 PR target/54222
97 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
98 Add NULL LIBNAME argument to existing definitions.
99 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
100 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
101 * config/avr/avr.c (DEF_BUILTIN): Same.
102 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
103 (avr_expand_builtin): Expand to a vanilla call if a libgcc
104 implementation is available (DECL_ASSEMBLER_NAME is set).
105 (avr_fold_absfx): New static function.
106 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
107 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
108 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
109 AVR_BUILTIN_ABSLLK.
110 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
111 (abshk, absk, abslk, absllk): Provide as static inline functions.
112
113 2013-01-25 Marek Polacek <polacek@redhat.com>
114
115 PR tree-optimization/56035
116 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
117
118 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
119
120 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
121 (*movtf_internal_rex64): Add (!o,C) alternative
122 (*movxf_internal_rex64): Ditto.
123 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
124
125 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
126
127 * doc/invoke.texi: fix typo.
128 * doc/objc.texi: fix typo.
129
130 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
131
132 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
133 for the first two alternatives.
134
135 2013-01-24 Diego Novillo <dnovillo@google.com>
136
137 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
138 (ggc-zone.o): Remove.
139 * configure.ac: Remove option --with-gc.
140 * configure: Re-generate.
141 * doc/install.texi: Remove documentation for --with-gc.
142 * gengtype.c (write_enum_defn): Remove. Update all users.
143 (write_Types_process_field): Remove generation of gt_e_* argument.
144 (output_type_enum): Remove. Update all users.
145 (write_enum_defn): Remove. Update all users.
146 (enum alloc_zone): Remove. Update all users.
147 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
148 * ggc-common.c (ggc_splay_alloc): Remove first argument.
149 Update all callers.
150 (struct ptr_data): Remove field TYPE. Update all users.
151 (gt_pch_note_object): Remove argument TYPE. Update all users.
152 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
153 Update all users.
154 * ggc-none.c (ggc_alloc_typed_stat): Remove.
155 (struct alloc_zone): Remove.
156 (ggc_internal_alloc_zone_stat): Remove.
157 (ggc_internal_cleared_alloc_zone_stat): Remove.
158 * ggc-page.c (ggc_alloc_typed_stat): Remove.
159 (ggc_pch_count_object): Remove last argument. Update all users.
160 (ggc_pch_alloc_object): Remove last argument. Update all users.
161 (struct alloc_zone): Remove.
162 * ggc-zone.c: Remove.
163 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
164 (struct alloc_zone): Remove.
165 (ggc_alloc_typed_stat): Remove.
166 (ggc_alloc_typed): Remove.
167 (ggc_splay_alloc): Remove first argument.
168 (rtl_zone): Remove. Update all users.
169 (tree_zone): Remove. Update all users.
170 (tree_id_zone): Remove. Update all users.
171 (ggc_internal_zone_alloc_stat): Remove. Update all users.
172 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
173 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
174 * tree-ssanames.c: Remove references to zone allocator in comments.
175
176 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
177
178 * config/avr/avr.c (avr_out_fract): Make register numbers that
179 might be outside of source operand signed.
180
181 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
182
183 * config/i386/constraints.md (Yf): New constraint.
184 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
185 of f constraint to conditionaly disable x87 register preferences.
186 (*movdf_internal): Ditto.
187 (*movsf_internal): Ditto.
188
189 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
190
191 PR inline-asm/55934
192 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
193 that have operands with impossible constraints.
194 Add a FIXME for a speed-up opportunity.
195 * lra-constraints.c (process_alt_operands): Verify that a class
196 selected from constraints on asms is valid for the operand mode.
197 (curr_insn_transform): Remove incorrect comment.
198
199 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
200
201 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
202 TOC operand is a valid symbol ref in the constant pool.
203
204 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
205
206 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
207
208 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
209
210 PR target/54222
211 * config/avr/stdfix.h: New file.
212 * t-avr (stdfix-gcc.h): New rule to build it.
213 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
214
215 2013-01-23 Kostya Serebryany <kcc@google.com>
216
217 * config/darwin.h: remove dependency on
218 CoreFoundation (asan on Mac OS).
219
220 2013-01-23 Jakub Jelinek <jakub@redhat.com>
221
222 PR target/49069
223 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
224 instead of cmpdi_operand for first comparison operand.
225 Don't assert that comparison operands aren't both constants.
226
227 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
228
229 * doc/install.texi (Downloading the Source): Update references to
230 downloading separate components.
231
232 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
233
234 * doc/extend.texi (__int128): Improve grammar.
235
236 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
237
238 PR target/56028
239 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
240 alternative to (o,r).
241 (*movdi_internal_rex64): Remove (!o,n) alternative.
242 (DImode immediate->memory splitter): Remove.
243 (DImode immediate->memory peephole2): Remove.
244 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
245 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
246 alternative to (!o,*r).
247 (*movtf_internal_sse): New pattern.
248 (*movxf_internal_rex64): New pattern.
249 (*movxf_internal): Disable for TARGET_64BIT.
250 (*movdf_internal_rex64): Remove (!o,F) alternative.
251
252 2013-01-22 Jakub Jelinek <jakub@redhat.com>
253
254 PR middle-end/56074
255 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
256 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
257 * tree-vect-loop-manip.c (find_loop_location): Also ignore
258 stmt locations where LOCATION_LOCUS of the stmt location is
259 UNKNOWN_LOCATION or BUILTINS_LOCATION.
260
261 PR target/55686
262 * config/i386/i386.md (UNSPEC_STOS): New.
263 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
264 *strsetqi_1): Add UNSPEC_STOS.
265
266 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
267
268 PR c++/56067
269 * doc/invoke.texi: Remove left over -Wsynth example.
270
271 2013-01-21 Jakub Jelinek <jakub@redhat.com>
272
273 PR tree-optimization/56051
274 * fold-const.c (fold_binary_loc): Don't fold
275 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
276 a narrowing conversion, or widening conversion from signed
277 to unsigned.
278
279 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
280
281 PR rtl-optimization/56023
282 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
283 dependent on debug instruction.
284
285 2013-01-21 Martin Jambor <mjambor@suse.cz>
286
287 PR middle-end/56022
288 * function.c (allocate_struct_function): Call
289 invoke_set_current_function_hook earlier.
290
291 2013-01-21 Jakub Jelinek <jakub@redhat.com>
292
293 * reload1.c (init_reload): Only initialize reload_obstack
294 during the first call.
295
296 2013-01-21 Marek Polacek <polacek@redhat.com>
297
298 * cfgloop.c (verify_loop_structure): Fix up grammar.
299
300 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
301
302 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
303 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
304
305 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
306
307 PR target/56058
308 * config/arm/marvell-pj4.md: Update copyright year.
309 Fix up use of alu to alu_reg and simple_alu_imm.
310
311 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
312
313 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
314
315 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
316
317 PR target/55433
318 * lra-constraints.c (curr_insn_transform): Don't reuse original
319 insn for secondary memory move when memory mode should be different.
320
321 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
322
323 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
324 atomic_storedi_1): New patterns.
325
326 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
327
328 btver2 pipeline descriptions.
329 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
330 descriptions.
331 * config/i386/i386.md (btver2_decode): New type attributes.
332 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
333 type attributes.
334 * config/i386/btver2.md: New file describing btver2 pipelines.
335
336 2013-01-19 Andrew Pinski <apinski@cavium.com>
337
338 PR tree-optimization/52631
339 * tree-ssa-sccvn (visit_use): Before looking up the original
340 statement, try looking up the simplified expression.
341
342 2013-01-19 Anthony Green <green@moxielogic.com>
343
344 * config/moxie/moxie.c (moxie_expand_prologue): Set
345 current_function_static_stack_size.
346
347 2013-01-18 Jakub Jelinek <jakub@redhat.com>
348
349 PR tree-optimization/56029
350 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
351 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
352
353 2013-01-18 Sharad Singhai <singhai@google.com>
354
355 PR tree-optimization/55995
356 * dumpfile.c (dump_loc): Print location only if available.
357 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
358
359 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
360
361 PR target/55433
362 * lra-constraints.c (curr_insn_transform): Reuse original insn for
363 secondary memory move.
364 (inherit_reload_reg): Use rclass instead of cl for
365 check_secondary_memory_needed_p.
366
367 2013-01-18 Jakub Jelinek <jakub@redhat.com>
368
369 PR middle-end/56015
370 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
371 the case where writing real complex part of target modifies op1.
372
373 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
374
375 * config/aarch64/aarch64-simd.md
376 (aarch64_vcond_internal<mode>): Handle unordered cases.
377 * config/aarch64/iterators.md (v_cmp_result): New.
378
379 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
380 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
381
382 * config/arm/marvell-pj4.md: New file.
383 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
384 * config/arm/arm.md (generic_sched): Add marvell_pj4.
385 (generic_vfp): Likewise.
386 * config/arm/arm-cores.def: Add marvell-pj4.
387 * config/arm/arm-tune.md: Regenerate.
388 * config/arm/arm-tables.opt: Regenerate.
389 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
390 * doc/invoke.texi: Document marvell-pj4.
391
392 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
393
394 * config/aarch64/arm_neon.h: Map scalar types to standard types.
395
396 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
397
398 PR debug/54114
399 PR debug/54402
400 PR debug/49888
401 * var-tracking.c (negative_power_of_two_p): New.
402 (global_get_addr_cache, local_get_addr_cache): New.
403 (get_addr_from_global_cache, get_addr_from_local_cache): New.
404 (vt_canonicalize_addr): Rewrite using the above. Adjust the
405 heading comment.
406 (vt_stack_offset_p): Remove.
407 (vt_canon_true_dep): Always canonicalize loc's address.
408 (clobber_overlapping_mems): Make sure we have a MEM.
409 (local_get_addr_clear_given_value): New.
410 (val_reset): Clear local cached entries.
411 (compute_bb_dataflow): Create and release the local cache.
412 Disable duplicate MEMs clobbering.
413 (emit_notes_in_bb): Clobber MEMs likewise.
414 (vt_emit_notes): Create and release the local cache.
415 (vt_initialize, vt_finalize): Create and release the global
416 cache, respectively.
417 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
418
419 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
420
421 PR libmudflap/53359
422 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
423 not found in the symtab.
424
425 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
426
427 PR debug/56006
428 PR rtl-optimization/55547
429 PR rtl-optimization/53827
430 PR debug/53671
431 PR debug/49888
432 * alias.c (offset_overlap_p): New, factored out of...
433 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
434 the conservative special case for symbolic constants. Don't
435 adjust zero sizes on alignment.
436
437 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
438
439 PR rtl-optimization/52573
440 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
441 REG_UNUSED for the same register.
442
443 2013-01-17 Richard Biener <rguenther@suse.de>
444 Marek Polacek <polacek@redhat.com>
445
446 PR rtl-optimization/55833
447 * loop-unswitch.c (unswitch_loops): Move loop verification...
448 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
449 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
450 Set it to true when we're removing a loop from hierarchy tree in
451 an irreducible region.
452 (fix_bb_placements): Adjust caller.
453 (fix_loop_placements): Likewise.
454
455 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
456
457 * config/avr/builtins.def (DEF_BUILTIN): Factor out
458 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
459 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
460 Remove ID. Adjust comments.
461 * config/avr/avr-c.c (avr_builtin_name): Remove.
462 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
463 * config/avr/avr.c (avr_tolower): New static function.
464 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
465 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
466 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
467 default expansion.
468
469 2013-01-17 Jan Hubicka <jh@suse.cz>
470
471 PR tree-optimization/55273
472 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
473
474 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
475
476 PR target/55981
477 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
478 store through atomic_store<mode>_1.
479 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
480
481 2013-01-17 Martin Jambor <mjambor@suse.cz>
482
483 PR tree-optimizations/55264
484 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
485 for virtual methods.
486 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
487 virtual methods before inlining is over.
488 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
489 virtual functions.
490 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
491 non-virtual.
492
493 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
494
495 PR rtl-optimization/56005
496 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
497 pending reads for prefetch.
498
499 2013-01-16 Ian Bolton <ian.bolton@arm.com>
500
501 * config/aarch64/aarch64.md
502 (*cstoresi_neg_uxtw): New pattern.
503 (*cmovsi_insn_uxtw): New pattern.
504 (*<optab>si3_uxtw): New pattern.
505 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
506 (*<optab>si3_insn_uxtw): New pattern.
507 (*bswapsi2_uxtw): New pattern.
508
509 2013-01-16 Richard Biener <rguenther@suse.de>
510
511 * tree-inline.c (tree_function_versioning): Remove set but
512 never used variable.
513
514 2013-01-16 Richard Biener <rguenther@suse.de>
515
516 PR tree-optimization/55964
517 * tree-flow.h (rename_variables_in_loop): Remove.
518 (rename_variables_in_bb): Likewise.
519 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
520 (copy_loop_before): Adjust and delete update-ssa status.
521 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
522 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
523 (rename_variables_in_loop): Remove.
524 (slpeel_update_phis_for_duplicate_loop): Likewise.
525 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
526 use available cfg machinery instead of duplicating it.
527 Update PHI nodes and perform poor-mans SSA update here.
528 (slpeel_tree_peel_loop_to_edge): Adjust.
529
530 2013-01-16 Richard Biener <rguenther@suse.de>
531
532 PR tree-optimization/54767
533 PR tree-optimization/53465
534 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
535 (vrp_visit_phi_node): For PHI arguments coming via backedges
536 drop all symbolical range information.
537 (execute_vrp): Compute backedges.
538
539 2013-01-16 Richard Biener <rguenther@suse.de>
540
541 * doc/install.texi: Update CLooG and ISL requirements to
542 0.18.0 and 0.11.1.
543
544 2013-01-16 Christian Bruel <christian.bruel@st.com>
545
546 PR target/55301
547 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
548 (broken_move): Handle UNSPECV_SP_SWITCH_B.
549 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
550
551 2013-01-16 DJ Delorie <dj@redhat.com>
552
553 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
554 (UNSPECV_SP_SWITCH_E): New.
555 (sp_switch_1): Change to an unspec.
556 (sp_switch_2): Change to an unspec. Don't use post-inc when we
557 replace $r15.
558
559 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
560
561 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
562 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
563 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
564 (expand_mem_thread_fence): Ditto.
565 (expand_mem_signal_fence): Ditto.
566 (expand_atomic_load): Ditto.
567 (expand_atomic_store): Ditto.
568
569 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
570
571 PR rtl-optimization/55547
572 PR rtl-optimization/53827
573 PR debug/53671
574 PR debug/49888
575 * alias.c (memrefs_conflict_p): Set sizes to negative after
576 AND adjustments.
577
578 2013-01-15 Jakub Jelinek <jakub@redhat.com>
579
580 PR target/55940
581 * function.c (thread_prologue_and_epilogue_insns): Always
582 add crtl->drap_reg to set_up_by_prologue.set, even if
583 stack_realign_drap is false.
584
585 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
586
587 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
588 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
589 *call): Fix indention.
590
591 2013-01-15 Tom de Vries <tom@codesourcery.com>
592
593 PR target/55876
594 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
595 Update comment.
596
597 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
598
599 PR rtl-optimization/55153
600 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
601
602 2013-01-15 Martin Jambor <mjambor@suse.cz>
603
604 PR tree-optimization/55920
605 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
606 accesses as grp_to_be_debug_replaced.
607
608 2013-01-15 Jakub Jelinek <jakub@redhat.com>
609
610 PR tree-optimization/55920
611 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
612 there is non-useless type conversion needed from debug rhs to lhs,
613 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
614
615 2013-01-15 Joseph Myers <joseph@codesourcery.com>
616 Mikael Pettersson <mikpe@it.uu.se>
617
618 PR target/43961
619 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
620 Thumb.
621 (ASM_OUTPUT_CASE_LABEL): Remove.
622 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
623 * final.c (shorten_branches): Update alignment of labels before
624 jump tables if CASE_VECTOR_SHORTEN_MODE.
625
626 2013-01-15 Richard Biener <rguenther@suse.de>
627
628 PR bootstrap/55961
629 * system.h: Do not include gmp.h for building host tools.
630
631 2013-01-15 Richard Biener <rguenther@suse.de>
632
633 PR middle-end/55882
634 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
635 account for bitpos when computing alignment.
636
637 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
638
639 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
640 (ix86_target_macros_internal): Likewise.
641
642 * config/i386/i386.c (m_CORE2I7): Removed.
643 (m_CORE_HASWELL): New macro.
644 (m_CORE_ALL): Likewise.
645 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
646 (initial_ix86_arch_features): Likewise.
647 (processor_target_table): Initializations for Core avx2.
648 (cpu_names): New names "core-avx2".
649 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
650 PROCESSOR_CORE_HASWELL.
651 (ix86_issue_rate): New case.
652 (ia32_multipass_dfa_lookahead): Likewise.
653 (ix86_sched_init_global): Likewise.
654
655 * config/i386/i386.h (TARGET_HASWELL): New macro.
656 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
657 (processor_type): New PROCESSOR_HASWELL.
658
659 2013-01-15 Jakub Jelinek <jakub@redhat.com>
660
661 PR tree-optimization/55955
662 * tree-vect-loop.c (vectorizable_reduction): Give up early on
663 *SHIFT_EXPR and *ROTATE_EXPR codes.
664
665 PR tree-optimization/48766
666 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
667 -ftrapv disable -fwrapv.
668
669 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
670
671 PR target/55974
672 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
673 etc. to 1 and not to __flash.
674 Use LL suffix for __INT24_MAX__ with -mint8.
675 Use ULL suffix for __UINT24_MAX__ with -mint8.
676
677 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
678
679 * config/avr/avr-arch.h
680 (struct base_arch_s): Use typedef avr_arch_t instead.
681 (struct arch_info_s): Use typedef avr_arch_info_t instead.
682 (struct mcu_type_s): Use typedef avr_mcu_t instead.
683 * config/avr/avr.c: Same.
684 * config/avr/avr-devices.c: Same.
685 * config/avr/driver-avr.c: Same.
686 * config/avr/gen-avr-mmcu-texi.c: Same.
687 * config/avr/avr-mcus.def: Adjust comment.
688
689 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
690
691 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
692 * config/aarch64/iterators.md (VALLDI): New.
693
694 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
695 Andi Kleen <ak@linux.intel.com>
696
697 PR target/55948
698 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
699 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
700 memmodel flag.
701
702 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
703
704 * config/avr/avr-stdint.h: Remove trailing blanks.
705 * config/avr/avr-log.h: Same.
706 * config/avr/avr-arch.h: Same.
707 * config/avr/avr-devices.c: Same.
708 * config/avr/avr-dimode.md: Same.
709 * config/avr/predicates.md: Same.
710 * config/avr/avr-c.c: Same. And fix typo.
711
712 * config/avr/avr-protos.h: Same. And:
713 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
714 (init_cumulative_args): Rename to avr_init_cumulative_args.
715 (expand_prologue): Rename to avr_expand_prologue.
716 (expand_epilogue): Rename to avr_expand_epilogue.
717 (adjust_insn_length): Rename to avr_adjust_insn_length.
718 (notice_update_cc): Rename to avr_notice_update_cc.
719 (final_prescan_insn): Rename to avr_final_prescan_insn.
720 * config/avr/avr.c: Same.
721 * config/avr/avr.h: Same.
722 * config/avr/avr.md: Remove trailing blanks.
723 (prologue): Use avr_expand_prologue.
724 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
725
726 2013-01-14 Richard Biener <rguenther@suse.de>
727
728 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
729 verify_location, collect_subblocks): New functions.
730 (verify_gimple_in_cfg): Verify that locations only reference
731 BLOCKs in the functions BLOCK tree.
732
733 2013-01-14 Richard Biener <rguenther@suse.de>
734
735 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
736 PHI argument.
737 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
738 unshare reference.
739 (insert_out_of_ssa_copy_on_edge): Likewise.
740 (rewrite_close_phi_out_of_ssa): Likewise.
741 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
742 debug expressions.
743 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
744 propagated constants.
745 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
746 can not be shared.
747
748 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
749
750 * config/avr/avr-modes.def: Add GPL copyright notice.
751
752 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
753
754 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
755 MEMMODEL_MASK to determine memory model.
756 (atomic_store<mode>): Ditto from operands[2].
757 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
758
759 2013-01-13 Jakub Jelinek <jakub@redhat.com>
760
761 PR fortran/55935
762 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
763 (fold_gimple_assign): Don't call unshare_expr here.
764 (fold_ctor_reference): Call unshare_expr.
765
766 2013-01-13 Terry Guo <terry.guo@arm.com>
767
768 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
769 * doc/fragments.texi: Document MULTILIB_REUSE.
770 * gcc.c (multilib_reuse): New internal spec.
771 (set_multilib_dir): Also search multilib from multilib_reuse.
772 * genmultilib (tmpmultilib3): Refactor code.
773 (tmpmultilib4): Ditto.
774 (multilib_reuse): New multilib argument.
775
776 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
777
778 * Makefile.in: Update copyright.
779
780 2013-01-12 Tom de Vries <tom@codesourcery.com>
781
782 PR middle-end/55890
783 * calls.c (expand_call): Check if arg_nr is valid.
784
785 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
786
787 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
788 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
789 documentation. Add missing '__' in front of
790 __builtin_ia32_packssdw256.
791
792 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
793
794 PR target/55719
795 * config/s390/s390.c (s390_preferred_reload_class): Do not return
796 NO_REGS for larl operands.
797 (s390_reload_larl_operand): Use s390_load_address instead of
798 emit_move_insn.
799
800 2013-01-11 Richard Biener <rguenther@suse.de>
801
802 * tree-cfg.c (verify_node_sharing_1): Split out from ...
803 (verify_node_sharing): ... here.
804 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
805
806 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
807
808 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
809 Substitute TREECHECKING.
810 * configure: Regenerate.
811 * Makefile.in (TREECHECKING): New.
812
813 2013-01-11 Richard Guenther <rguenther@suse.de>
814
815 PR tree-optimization/44061
816 * tree-vrp.c (extract_range_basic): Compute zero as
817 value-range for __builtin_constant_p of function parameters.
818
819 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
820
821 Update copyright years.
822
823 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
824
825 PR rtl-optimization/55672
826 * lra-eliminations.c (mark_not_eliminable): Permit addition with
827 const to be eliminable.
828
829 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
830
831 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
832 * configure: Regenerate.
833
834 2013-01-10 Richard Biener <rguenther@suse.de>
835
836 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
837
838 2013-01-10 Richard Biener <rguenther@suse.de>
839
840 PR bootstrap/55792
841 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
842 locations for virtual PHI arguments.
843 (rewrite_update_phi_arguments): Likewise.
844
845 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
846
847 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
848 on to assembler.
849
850 2013-01-10 Jakub Jelinek <jakub@redhat.com>
851
852 PR tree-optimization/55921
853 * tree-complex.c (expand_complex_asm): New function.
854 (expand_complex_operations_1): Call it for GIMPLE_ASM.
855
856 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
857
858 PR target/55718
859 * config/s390/s390.c (s390_symref_operand_p)
860 (s390_loadrelative_operand_p): Merge the two functions.
861 (s390_check_qrst_address, print_operand_address): Add parameters
862 to s390_loadrelative_operand_p invokation.
863 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
864 (s390_reload_larl_operand, s390_secondary_reload): Use
865 s390_loadrelative_operand_p instead of s390_symref_operand_p.
866 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
867
868 2013-01-09 Mike Stump <mikestump@comcast.net>
869
870 * dse.c (record_store): Remove unnecessary assert.
871
872 2013-01-09 Jan Hubicka <jh@suse.cz>
873
874 PR tree-optimization/55569
875 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
876 * cfgloop.h (scale_loop_profile): Likewise.
877
878 2013-01-09 Jan Hubicka <jh@suse.cz>
879
880 PR lto/45375
881 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
882 functions.
883 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
884
885 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
886
887 PR middle-end/55114
888 * expr.h (maybe_emit_group_store): Declare.
889 * expr.c (maybe_emit_group_store): New function.
890 * builtins.c (expand_builtin_int_roundingfn): Call it.
891 (expand_builtin_int_roundingfn_2): Likewise.
892
893 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
894
895 PR rtl-optimization/55829
896 * lra-constraints.c (match_reload): Add code for absent output.
897 (curr_insn_transform): Add code for reloads of matched inputs
898 without output.
899
900 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
901
902 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
903 attribute of movddup insn to DF.
904 (*vec_interleave_lowv2df): Ditto.
905 (vec_dupv2df): Ditto.
906
907 2013-01-09 Jan Hubicka <jh@suse.cz>
908
909 PR tree-optimiation/55875
910 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
911 EVERY_ITERATION parameter.
912 (number_of_iterations_exit): Check if exit is executed every iteration.
913 (idx_infer_loop_bounds): Similarly here.
914 (n_of_executions_at_most): Simplify
915 to only test for cases where statement is dominated by the
916 particular bound; handle correctly the "postdominance" test.
917 (scev_probably_wraps_p): Use max loop iterations info
918 as a global bound first.
919
920 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
921 Nick Clifton <nickc@redhat.com>
922
923 * config/v850/v850.md (cbranchsf4): New pattern.
924 (cstoresf4): New pattern.
925 (cbranchdf4): New pattern.
926 (cstoredf4): New pattern.
927 (movsicc): Disallow floating point comparisons.
928 (cmpsf_le_insn): Fix order of operators.
929 (cmpsf_lt_insn): Likewise.
930 (cmpsf_eq_insn): Likewise.
931 (cmpdf_le_insn): Likewise.
932 (cmpdf_lt_insn): Likewise.
933 (cmpdf_eq_insn): Likewise.
934 (cmpsf_ge_insn): Use LE comparison.
935 (cmpdf_ge_insn): Likewise.
936 (cmpsf_gt_insn): Use LT comparison.
937 (cmpdf_gt_insn): Likewise.
938 (cmpsf_ne_insn): Delete pattern.
939 (cmpdf_ne_insn): Delete pattern.
940 * config/v850/v850.c (v850_gen_float_compare): Use
941 gen_cmpdf_eq_insn for NE comparison.
942 (v850_float_z_comparison_operator)
943 (v850_float_nz_comparison_operator): Move from here ...
944 * config/v850/predicates.md: ... to here. Move GT and GE
945 comparisons into v850_float_z_comparison_operator.
946 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
947 Delete prototype.
948 (v850_float_nz_comparison_operator): Likewise.
949
950 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
951
952 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
953 with calls to gen_insvsi/gen_insvdi.
954
955 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
956
957 * config/i386/i386.c (initial_ix86_tune_features): Set up
958 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
959
960 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
961 Jakub Jelinek <jakub@redhat.com>
962
963 PR tree-optimization/48189
964 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
965 If nitercst is 0, don't predict the exit edge.
966
967 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
968
969 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
970 in asm_fprintf with reg_names.
971 (aarch64_print_operand_address): Likewise.
972 (aarch64_return_addr): Likewise.
973 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
974
975 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
976
977 * config/pa/pa.h (VAL_U6_BITS_P): Define.
978 (INT_U6_BITS): Likewise.
979 * config/pa/predicates.md (uint6_operand): New predicate.
980 (shift5_operand, shift6_operand): Likewise.
981 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
982 arith32_operand.
983 (lshrdi3): Use shift6_operand.
984 (shrpsi4, shrpdi4): New insn patterns.
985 (extzv): Delete expander.
986 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
987 predicates in unamed zero extract patterns. Tighten common constraint.
988 (extv): Delete expander.
989 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
990 predicates in unamed sign extract patterns. Tighten common constraint.
991 (insv): Delete expander.
992 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
993 predicates in unamed insert patterns. Tighten common constraint.
994 Change uint32_operand predicate to uint6_operand predicate in unamed
995 DImode pattern to insert constant values of type 1...1xxxx.
996
997 2013-01-04 Jan Hubicka <jh@suse.cz>
998
999 PR tree-optimization/55823
1000 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
1001 issue.
1002
1003 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1004 Uros Bizjak <ubizjak@gmail.com>
1005
1006 PR rtl-optimization/55845
1007 * df-problems.c (can_move_insns_across): Stop scanning at
1008 volatile_insn_p source instruction or give up if
1009 across_from .. across_to range contains any volatile_insn_p
1010 instructions.
1011
1012 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1013
1014 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
1015 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
1016 Declare.
1017 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
1018 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
1019
1020 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1021
1022 PR fortran/55341
1023 * asan.c (asan_clear_shadow): New function.
1024 (asan_emit_stack_protection): Use it.
1025
1026 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1027
1028 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
1029 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
1030 with tab instead of space.
1031
1032 2013-01-08 Nick Clifton <nickc@redhat.com>
1033
1034 * config/rl78/rl78.c (rl78_expand_prologue): Always select
1035 register bank 0 at the start of an interrupt handler.
1036 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
1037 MDBH registers.
1038
1039 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1040
1041 * config/aarch64/aarch64-simd.md
1042 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
1043 (aarch64_simd_bsl): Likewise.
1044 (aarch64_vcond_internal<mode>): Likewise.
1045 (vcond<mode><mode>): Likewise.
1046 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
1047 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
1048
1049 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1050
1051 * config/aarch64/aarch64-builtins.c
1052 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
1053
1054 2013-01-08 Martin Jambor <mjambor@suse.cz>
1055
1056 PR debug/55579
1057 * tree-sra.c (analyze_access_subtree): Return true also after
1058 potentially creating a debug-only replacement.
1059
1060 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1061
1062 PR middle-end/55890
1063 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
1064
1065 PR tree-optimization/54120
1066 * tree-vrp.c (range_fits_type_p): Don't allow
1067 src_precision < precision from signed vr to unsigned_p
1068 if vr->min or vr->max is negative.
1069 (simplify_float_conversion_using_ranges): Test can_float_p
1070 against CODE_FOR_nothing.
1071
1072 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1073 Richard Biener <rguenther@suse.de>
1074
1075 PR middle-end/55851
1076 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
1077 types instead of just INTEGER_TYPE types.
1078
1079 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
1080
1081 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
1082 TF_SIZE): Define.
1083
1084 2013-01-07 Steve Ellcey <sellcey@mips.com>
1085
1086 PR target/42661
1087 * config/mips/mips.opt: Change mad to mmad to match documentation.
1088
1089 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1090
1091 PR target/55897
1092 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
1093 .progmemx.data now.
1094
1095 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1096
1097 PR target/55897
1098 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
1099 (avr_addrspace_t): Add .section_name field.
1100 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
1101 array size.
1102 (avr_addrspace): Same. Initialize .section_name. Remove last
1103 NULL entry. Put __memx into .progmemx.data.
1104 (progmem_section_prefix): Remove.
1105 (avr_asm_init_sections): No need to initialize progmem_section.
1106 (avr_asm_named_section): Use avr_addrspace[].section_name to get
1107 section name prefix.
1108 (avr_asm_select_section): Ditto. And use get_unnamed_section to
1109 retrieve the progmem section.
1110 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
1111 boundary to run over avr_addrspace[].
1112 (avr_register_target_pragmas): Ditto.
1113
1114 2013-01-06 Jakub Jelinek <jakub@redhat.com>
1115
1116 * varasm.c (output_constant_def_contents): For asan_protect_global
1117 protected strings, adjust DECL_ALIGN if needed, before testing for
1118 anchored symbols.
1119 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
1120 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
1121 normal decls.
1122 (output_object_block): For asan protected decls, emit asan padding
1123 after their contents.
1124 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
1125 (asan_finish_file): Test it here instead.
1126
1127 2013-01-07 Nick Clifton <nickc@redhat.com>
1128 Matthias Klose <doko@debian.org>
1129 Doug Kwan <dougkwan@google.com>
1130 H.J. Lu <hongjiu.lu@intel.com>
1131
1132 PR driver/55470
1133 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
1134
1135 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
1136
1137 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
1138
1139 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
1140
1141 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
1142
1143 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1144
1145 PR target/54461
1146 * doc/install.texi (Cross-Compiler-Specific Options): Document
1147 --with-avrlibc.
1148
1149 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
1150
1151 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
1152 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
1153 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
1154 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
1155 vqmovun_high_s64): Fix source operand number and update copyright.
1156
1157 2013-01-07 Richard Biener <rguenther@suse.de>
1158
1159 PR middle-end/55890
1160 * gimple.h (gimple_call_builtin_p): New overload.
1161 * gimple.c (validate_call): New function.
1162 (gimple_call_builtin_p): Likewise.
1163 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1164 Use gimple_call_builtin_p.
1165 (find_func_clobbers): Likewise.
1166 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
1167 (strlen_optimize_stmt): Likewise.
1168
1169 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1170
1171 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
1172 (vld1q_dup_*): Likewise.
1173 (vld1_*): Likewise.
1174 (vld1q_*): Likewise.
1175 (vld1_lane_*): Likewise.
1176 (vld1q_lane_*): Likewise.
1177
1178 2013-01-07 Richard Biener <rguenther@suse.de>
1179
1180 * lto-streamer.h (LTO_minor_version): Bump to 2.
1181
1182 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1183
1184 * config/aarch64/aarch64-protos.h
1185 (aarch64_const_double_zero_rtx_p): Rename to...
1186 (aarch64_float_const_zero_rtx_p): ...this.
1187 (aarch64_float_const_representable_p): New.
1188 (aarch64_output_simd_mov_immediate): Likewise.
1189 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
1190 move immediate case.
1191 * config/aarch64/aarch64.c
1192 (aarch64_const_double_zero_rtx_p): Rename to...
1193 (aarch64_float_const_zero_rtx_p): ...this.
1194 (aarch64_print_operand): Allow printing of new constants.
1195 (aarch64_valid_floating_const): New.
1196 (aarch64_legitimate_constant_p): Check for valid floating-point
1197 constants.
1198 (aarch64_simd_valid_immediate): Likewise.
1199 (aarch64_vect_float_const_representable_p): New.
1200 (aarch64_float_const_representable_p): Likewise.
1201 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
1202 (aarch64_output_simd_mov_immediate): New.
1203 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
1204 (*movdf_aarch64): Likewise.
1205 * config/aarch64/constraints.md (Ufc): New.
1206 (Y): call aarch64_float_const_zero_rtx.
1207 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
1208
1209 2013-01-07 Richard Biener <rguenther@suse.de>
1210
1211 PR tree-optimization/55888
1212 PR tree-optimization/55862
1213 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
1214 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
1215 not if it is contained therein.
1216
1217 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1218
1219 * config/avr/t-avr: Typo.
1220
1221 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1222
1223 PR55243
1224 * config/avr/t-avr: Don't automatically rebuild
1225 $(srcdir)/config/avr/t-multilib
1226 $(srcdir)/config/avr/avr-tables.opt
1227 $(srcdir)/doc/avr-mmcu.texi
1228 (avr-mcus): New phony target to build them on request.
1229 (s-avr-mlib, s-avr-mmcu-texi): Remove.
1230 * avr/avr-mcus.def: Adjust comments.
1231
1232 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
1233
1234 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
1235
1236 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1237
1238 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
1239
1240 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1241
1242 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
1243
1244 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
1245
1246 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
1247 to generate profiling.
1248 * config/rs6000/aix64.h (LIB_SPEC): Same.
1249
1250 2013-01-04 Andrew Pinski <apinski@cavium.com>
1251
1252 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
1253 New function.
1254 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1255
1256 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
1257
1258 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
1259 unconditionally.
1260 (ix86_expand_move): Ditto.
1261 (ix86_zero_extend_to_Pmode): Ditto.
1262 (ix86_expand_call): Ditto.
1263 (ix86_expand_special_args_builtin): Ditto.
1264 (ix86_expand_builtin): Ditto.
1265
1266 2013-01-04 Richard Biener <rguenther@suse.de>
1267
1268 PR tree-optimization/55862
1269 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
1270 translating them through PHI nodes.
1271
1272 2013-01-04 Martin Jambor <mjambor@suse.cz>
1273
1274 PR tree-optimization/55755
1275 * tree-sra.c (sra_modify_assign): Do not check that an access has no
1276 children when trying to avoid producing a VIEW_CONVERT_EXPR.
1277
1278 2013-01-04 Marek Polacek <polacek@redhat.com>
1279
1280 PR middle-end/55859
1281 * opts.c (default_options_optimization): Clarify error message.
1282
1283 2013-01-04 Richard Biener <rguenther@suse.de>
1284
1285 PR middle-end/55863
1286 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
1287 reassociation.
1288
1289 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1290
1291 PR target/53789
1292 * config/pa/pa.md (movsi): Revert previous change.
1293 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
1294 references.
1295
1296 2013-01-03 Richard Henderson <rth@redhat.com>
1297
1298 * config/i386/i386.c (ix86_expand_move): Always assign to op1
1299 after eliminating TLS symbols.
1300
1301 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
1302
1303 PR bootstrap/50167
1304 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
1305 * graphite-poly.c (debug_gmp_value): Likewise.
1306
1307 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
1308
1309 PR target/55712
1310 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
1311 selected code model, define __code_mode_small__, __code_model_medium__,
1312 __code_model_large__, __code_model_32__ or __code_model_kernel__.
1313 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
1314 xchg temporary register with %k. Declare temporary register as
1315 early clobbered.
1316 [__x86_64__]: For medium and large code models, preserve %rbx register.
1317
1318 2013-01-03 Richard Biener <rguenther@suse.de>
1319
1320 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
1321 (dump_subscript): Adjust.
1322 (finalize_ddr_dependent): Do not dump redundant info.
1323 (analyze_siv_subscript): Adjust.
1324 (subscript_dependence_tester): Likewise.
1325 (compute_affine_dependence): Likewise.
1326
1327 2013-01-03 Richard Biener <rguenther@suse.de>
1328
1329 Revert
1330 2013-01-03 Richard Biener <rguenther@suse.de>
1331
1332 PR tree-optimization/55857
1333 * tree-vect-stmts.c (vectorizable_load): Do not setup
1334 re-alignment for invariant loads.
1335
1336 2013-01-02 Richard Biener <rguenther@suse.de>
1337
1338 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1339 invariant load do not generate a vector load from the scalar location.
1340
1341 2013-01-03 Richard Biener <rguenther@suse.de>
1342
1343 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
1344 for not vectorizing.
1345 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1346 not build INDIRECT_REFs, call get_name once only.
1347 (vect_create_data_ref_ptr): Likewise. Dump base object kind
1348 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
1349
1350 2013-01-03 Richard Biener <rguenther@suse.de>
1351
1352 PR tree-optimization/55857
1353 * tree-vect-stmts.c (vectorizable_load): Do not setup
1354 re-alignment for invariant loads.
1355
1356 2013-01-03 Richard Biener <rguenther@suse.de>
1357
1358 PR lto/55848
1359 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
1360 prefer a built-in decl.
1361
1362 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1363
1364 * gcc.c (process_command): Update copyright notice dates.
1365 * gcov.c (print_version): Likewise.
1366 * gcov-dump.c (print_version): Likewise.
1367
1368 PR rtl-optimization/55838
1369 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
1370 iv0.step, iv1.step and step.
1371
1372 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1373 Marc Glisse <marc.glisse@inria.fr>
1374
1375 PR tree-optimization/55832
1376 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
1377 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
1378 integer_{one,zero}_node.
1379
1380 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1381
1382 PR debug/54402
1383 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
1384 * var-tracking.c (reverse_op): Don't add reverse ops to
1385 VALUEs that have already
1386 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
1387
1388 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
1389
1390 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
1391
1392 2013-01-02 Teresa Johnson <tejohnson@google.com>
1393
1394 * dumpfile.c (dump_loc): Print filename with location.
1395 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
1396 new location_t parameter to emit complete unroll message with
1397 new dump framework.
1398 (canonicalize_loop_induction_variables): Compute loops location
1399 and pass to try_unroll_loop_completely.
1400 * loop-unroll.c (report_unroll_peel): New function.
1401 (peel_loops_completely): Use new dump format with location
1402 for main dumpfile message, and invoke report_unroll_peel on success.
1403 (decide_unrolling_and_peeling): Ditto.
1404 (decide_peel_once_rolling): Remove old dumpfile message subsumed
1405 by report_unroll_peel.
1406 (decide_peel_completely): Ditto.
1407 (decide_unroll_constant_iterations): Ditto.
1408 (decide_unroll_runtime_iterations): Ditto.
1409 (decide_peel_simple): Ditto.
1410 (decide_unroll_stupid): Ditto.
1411 * cfgloop.c (get_loop_location): New function.
1412 * cfgloop.h (get_loop_location): Declare.
1413
1414 2013-01-02 Sriraman Tallam <tmsriram@google.com>
1415
1416 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
1417 NULL.
1418
1419 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1420
1421 PR middle-end/55198
1422 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
1423 BLKmode objects when EXPAND_MEMORY is specified.
1424
1425 2013-01-02 Sriraman Tallam <tmsriram@google.com>
1426
1427 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
1428 in loop predicate.
1429 (fold_builtin_cpu): Do not share cpu model decls across statements.
1430
1431 2013-01-02 Jason Merrill <jason@redhat.com>
1432
1433 PR c++/55804
1434 * tree.c (build_array_type_1): Revert earlier change.
1435
1436 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
1437
1438 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
1439 "cortex-a57".
1440 * config/aarch64/aarch64-tune.md: Re-generate.
1441
1442 2013-01-02 Richard Biener <rguenther@suse.de>
1443
1444 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1445 invariant load do not generate a vector load from the scalar location.
1446
1447 2013-01-02 Richard Biener <rguenther@suse.de>
1448
1449 PR bootstrap/55784
1450 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
1451 * configure: Regenerate.
1452
1453 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1454
1455 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
1456 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
1457 (expand_builtin_int_roundingfn_2): Keep the original target around
1458 for the fallback case.
1459
1460 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1461
1462 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
1463 to be clear for sign changes.
1464
1465 2013-01-01 Jan Hubicka <jh@suse.cz>
1466
1467 * ipa-inline-analysis.c: Fix formatting.
1468
1469 2013-01-01 Jakub Jelinek <jakub@redhat.com>
1470
1471 PR tree-optimization/55831
1472 * tree-vect-loop.c (get_initial_def_for_induction): Use
1473 gsi_after_labels instead of gsi_start_bb.
1474 \f
1475 Copyright (C) 2013 Free Software Foundation, Inc.
1476
1477 Copying and distribution of this file, with or without modification,
1478 are permitted in any medium without royalty provided the copyright
1479 notice and this notice are preserved.