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