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