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