gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against libasan_preinit.o.
[gcc.git] / gcc / ChangeLog
1 2013-03-08 Jakub Jelinek <jakub@redhat.com>
2
3 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
4 libasan_preinit.o.
5
6 2013-03-08 Marek Polacek <polacek@redhat.com>
7 Jakub Jelinek <jakub@redhat.com>
8
9 PR tree-optimization/56478
10 * predict.c (is_comparison_with_loop_invariant_p): Change the
11 type of loop_step to tree.
12 (predict_loops): Adjust.
13 (predict_iv_comparison): Perform the computations on double_ints.
14
15 2013-03-08 Richard Biener <rguenther@suse.de>
16
17 PR tree-optimization/56570
18 * tree-cfg.c (verify_expr_location_1): Verify locations for
19 DECL_DEBUG_EXPR.
20 * tree-sra.c (create_access_replacement): Strip locations
21 from DECL_DEBUG_EXPRs.
22
23 2013-03-08 Richard Biener <rguenther@suse.de>
24
25 * tree-inline.c (expand_call_inline): Do not associate
26 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
27 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
28
29 2013-03-08 Richard Biener <rguenther@suse.de>
30
31 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32 or block changes with -Og. Fix for location / block encoding
33 changes and PHI arguments with locations.
34
35 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
36
37 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
38 for all counters.
39 (struct output_info): Likewise.
40 (register_overhead): Remove bad gcc_assert.
41 (bitmap_find_bit): If there is only a single bitmap element, do not
42 count a miss as a search.
43 (print_statistics): Update for counter type changes.
44 (dump_bitmap_statistics): Likewise. Print headers such that they
45 are properly lined up with the printed counters.
46
47 2013-03-07 Jakub Jelinek <jakub@redhat.com>
48
49 PR tree-optimization/56559
50 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
51 check that it has only a single use.
52
53 2013-03-07 Richard Biener <rguenther@suse.de>
54
55 * doc/invoke.texi (fwhole-program): Discourage use in combination
56 with -flto.
57
58 2013-03-06 Jakub Jelinek <jakub@redhat.com>
59
60 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
61
62 PR tree-optimization/56539
63 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
64 instead of GSI_CONTINUE_LINKING as last argument to
65 force_gimple_operand_gsi. Adjust function comment.
66
67 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
68 aarch64-cores.def.
69
70 PR middle-end/56548
71 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
72 promoted mode, convert the result back to the original mode.
73
74 2013-03-06 Richard Biener <rguenther@suse.de>
75
76 PR middle-end/56294
77 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
78 (insert_updated_phi_nodes_compare_uids): New function.
79 (update_ssa): Sort symbols_to_rename after UID before
80 traversing it to insert PHI nodes.
81
82 2013-03-06 Richard Biener <rguenther@suse.de>
83
84 PR middle-end/50494
85 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
86 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
87
88 Revert
89 2013-02-13 Richard Biener <rguenther@suse.de>
90
91 PR lto/50494
92 * varasm.c (output_constant_def_1): Get the decl representing
93 the constant as argument.
94 (output_constant_def): Wrap output_constant_def_1.
95 (make_decl_rtl): Use output_constant_def_1 with the decl
96 representing the constant.
97 (build_constant_desc): Optionally re-use a decl already
98 representing the constant.
99 (tree_output_constant_def): Adjust.
100
101 2013-03-06 Joey Ye <joey.ye@arm.com>
102
103 PR lto/50293
104 * gcc.c (convert_white_space): New function.
105 (main): Handles white space in function name.
106
107 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
108
109 PR target/56529
110 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
111 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
112 to SH_DIV_CALL_TABLE for TARGET_SH2.
113 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
114 list.
115 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
116 call-table options.
117
118 2013-03-05 Sterling Augustine <saugustine@google.com>
119 Cary Coutant <ccoutant@google.com>
120
121 PR debug/55364
122 * dwarf2out.c (resolve_addr): Don't call
123 remove_loc_list_addr_table_entries a second time for the same
124 expression.
125
126 2013-03-05 Jakub Jelinek <jakub@redhat.com>
127
128 PR debug/56510
129 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
130 (avoid_complex_debug_insns): New function.
131 (expand_debug_locations): Call it.
132
133 PR rtl-optimization/56484
134 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
135 lifetimes of hard registers on small register class machines.
136
137 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
138
139 * config/microblaze/microblaze-protos.h: Rename
140 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
141 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
142 fast_interrupt.
143 (microblaze_fast_interrupt_function_p): New function.
144 (microblaze_is_interrupt_handler): Rename to
145 microblaze_is_interrupt_variant and add fast_interrupt check.
146 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
147 (save_restore_insns): Likewise.
148 (compute_frame_size): Likewise.
149 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
150 (microblaze_globalize_label): Likewise.
151 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
152 * config/microblaze/microblaze.md: Use wrapper
153 microblaze_is_interrupt_variant.
154
155 2013-03-05 Kai Tietz <ktietz@redhat.com>
156
157 * sdbout.c (sdbout_one_type): Switch to current function's section
158 supporting cold/hot.
159
160 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
161
162 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
163 -mxl-reorder.
164
165 2013-03-05 Jakub Jelinek <jakub@redhat.com>
166
167 PR middle-end/56461
168 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
169 if VALGRIND_GET_VBITS is defined, temporarily make object
170 memory all defined, and restore previous valgrind addressability
171 and definability afterwards. Free this_object at the end.
172
173 PR middle-end/56461
174 * lra.c (lra): Call lra_clear_live_ranges if live_p,
175 right before calling lra_create_live_ranges, also call it
176 when clearing live_p. Only call lra_clear_live_ranges
177 at the end if live_p.
178
179 PR middle-end/56461
180 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
181
182 2013-03-05 Richard Biener <rguenther@suse.de>
183
184 PR tree-optimization/56521
185 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
186 value-id.
187
188 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
189
190 PR c++/55135
191 * except.h (remove_unreachable_eh_regions): New prototype.
192 * except.c (remove_eh_handler_splicer): New function, split out
193 of remove_eh_handler.
194 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
195 warning about running it on many EH regions one at a time.
196 (remove_unreachable_eh_regions_worker): New function, walk the
197 EH tree in depth-first order and remove non-marked regions.
198 (remove_unreachable_eh_regions): New function.
199 * tree-eh.c (mark_reachable_handlers): New function, split out
200 from remove_unreachable_handlers.
201 (remove_unreachable_handlers): Use mark_reachable_handlers and
202 remove_unreachable_eh_regions.
203 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
204 and remove_unreachable_eh_regions.
205
206 2013-03-05 Richard Biener <rguenther@suse.de>
207
208 PR middle-end/56525
209 * loop-init.c (fix_loop_structure): Remove loops in two stages,
210 not freeing them until the end.
211
212 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
213
214 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
215
216 2013-03-05 Richard Biener <rguenther@suse.de>
217
218 PR tree-optimization/56270
219 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
220 of loads after scheduling an SLP instance.
221
222 2013-03-05 Jakub Jelinek <jakub@redhat.com>
223
224 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
225 tic6x.exp.
226 (check_gcc_parallelize): Run guality.exp as a separate job from
227 vect.exp with unsorted.exp and $(dg_target_exps) separately from
228 struct-layout-1.exp with stackalign.exp.
229
230 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
231
232 PR middle-end/56461
233 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
234 load_index sbitmap even if some bit in it isn't set.
235
236 PR middle-end/56461
237 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
238 (discover_iteration_bound_by_body_walk): Change queues to
239 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
240 spelling in comment. Call safe_push on queues[bound_index] directly.
241 Release queues[queue_index] in every iteration unconditionally.
242 Release bounds vector.
243
244 PR middle-end/56461
245 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
246 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
247 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
248 inner_phis vector.
249
250 2013-03-05 Richard Biener <rguenther@suse.de>
251
252 PR lto/56515
253 * tree-inline.c (remap_blocks_to_null): New function.
254 (expand_call_inline): When expanding a call stmt without
255 an associated block inline remap all callee blocks to NULL.
256
257 2013-03-05 Jakub Jelinek <jakub@redhat.com>
258
259 PR rtl-optimization/56494
260 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
261 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
262 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
263
264 PR middle-end/56461
265 * sel-sched-ir.c (free_sched_pools): Release
266 succs_info_pool.stack[succs_info_pool.max_top] vectors too
267 if succs_info_pool.max_top isn't -1.
268
269 PR bootstrap/56509
270 * opts.c (opts_obstack, opts_concat): Moved to...
271 * opts-common.c (opts_obstack, opts_concat): ... here.
272
273 2013-03-04 Jakub Jelinek <jakub@redhat.com>
274
275 PR middle-end/56461
276 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
277
278 2013-03-04 Martin Jambor <mjambor@suse.cz>
279
280 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
281 all appropriate places.
282
283 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
284
285 PR tree-optimization/56424
286 * ipa-split.c (split_function): Do not set the RSO flag if result is
287 not by reference and its type is a register type.
288
289 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
290
291 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
292 (microblaze_legitimate_pic_operand): Likewise
293 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
294 new function microblaze_legitimate_pic_operand
295 * config/microblaze/microblaze-protos.h
296 (microblaze_legitimate_pic_operand): Declare.
297
298 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
299
300 * config/microblaze/predicates.md (call_insn_simple_operand):
301 New predicate for supported rtx code types.
302 * config/microblaze/microblaze.md (call_internal1): Use
303 call_insn_simple_operand predicate.
304
305 2013-03-04 Jakub Jelinek <jakub@redhat.com>
306
307 PR middle-end/56461
308 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
309 partitions.ordered_remove.
310
311 PR middle-end/56461
312 * tree-vect-stmts.c (vectorizable_conversion): Don't call
313 vec_oprnds0.create (1) for modifier == NONE.
314
315 PR middle-end/56461
316 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
317 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
318 vec_oprnds1 right before pushing anything to it for
319 scalar_shift_arg.
320
321 PR middle-end/56461
322 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
323 set nbbs to 0 instead of having separate code path.
324 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
325 instead of false as last argument if returning NULL.
326
327 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
328
329 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
330 the attribute is now called "target" instead of "option".
331 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
332 * doc/tm.texi.in (Target Attributes): Likewise document the correct
333 attribute/pragma name for TARGET_OPTION_VALID_P and
334 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
335 * doc/tm.texi: Regenerated.
336
337 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
338
339 * config/microblaze/microblaze.c:
340 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
341 * config/microblaze/microblaze.h: Add -mxl-reorder to
342 DRIVER_SELF_SPECS.
343 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
344 instructions emitted if TARGET_REORDER.
345 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
346 or 0 for -m/-mno case, but initialises as 2 to detect default use case
347 separately.
348
349 2013-03-01 Xinliang David Li <davidxl@google.com>
350
351 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
352 walk length.
353
354 2013-03-01 Jakub Jelinek <jakub@redhat.com>
355
356 PR middle-end/56461
357 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
358 vector even when returning true. Fix up function comment formatting.
359
360 PR middle-end/56461
361 * ira-build.c (ira_loop_nodes_count): New variable.
362 (create_loop_tree_nodes): Initialize it.
363 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
364
365 PR middle-end/56461
366 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
367 method on dr_chain and result_chain.
368 * tree-vect-stmts.c (vectorizable_store): Only call
369 result_chain.create if j == 0.
370
371 PR middle-end/56461
372 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
373 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
374 before overwriting it.
375
376 2013-03-01 Tobias Burnus <burnus@net-b.de>
377
378 * doc/extended.texi (C Extensions): Change order in @menu
379 to match @node.
380 (Other MIPS Built-in Functions): Move last MIPS entry before
381 "picoChip Built-in Functions".
382 (SH Built-in Functions): Move after RX Built-in Functions.
383 * doc/gcc.texi (Introduction): Change order in @menu
384 to match @node.
385 * doc/md.texi (Constraints): Ditto.
386 * gty.texi (Type Information): Ditto.
387 (User-provided marking routines for template types): Make
388 subsection.
389 * doc/invoke.texi (AArch64 Options): Move before
390 "Adapteva Epiphany Options".
391
392 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
393 Jakub Jelinek <jakub@redhat.com>
394
395 PR sanitizer/56454
396 * asan.c (gate_asan): Lookup no_sanitize_address instead of
397 no_address_safety_analysis attribute.
398 * doc/extend.texi (no_address_safety_attribute): Rename to
399 no_sanitize_address attribute, mention no_address_safety_analysis
400 attribute as deprecated alias.
401
402 2013-02-28 Jakub Jelinek <jakub@redhat.com>
403
404 PR middle-end/56461
405 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
406 type to vec<vec<tree> > *.
407 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
408 to be vec<tree> instead of vec<tree> *, set vec_defs
409 to vNULL and call vec_defs.create (number_of_vects), adjust other
410 uses of vec_defs.
411 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
412 vectorizable_condition): Adjust vect_get_slp_defs callers.
413
414 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
415
416 * config/aarch64/aarch64.c
417 (aarch64_float_const_representable): Remove unused variable.
418
419 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
420
421 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
422
423 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
424
425 * config/aarch64/aarch64-builtins.c
426 (aarch64_init_simd_builtins): Make static.
427
428 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
429
430 * config/aarch64/aarch64.c
431 (aarch64_simd_make_constant): Make static.
432
433 2013-02-28 Martin Jambor <mjambor@suse.cz>
434
435 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
436 with no initialization to the RHS of debug statements.
437
438 2013-02-28 Martin Jambor <mjambor@suse.cz>
439
440 PR tree-optimization/56294
441 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
442 Adjust dumping.
443 (get_access_replacement): Do not call create_access_replacement.
444 Assert a replacement exists.
445 (get_repl_default_def_ssa_name): Create the replacement declaration
446 itself.
447
448 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
449
450 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
451 final_end_function.
452
453 2013-02-28 Marek Polacek <polacek@redhat.com>
454
455 PR rtl-optimization/56466
456 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
457 if we're changing a loop.
458 (peel_loops_completely): Likewise.
459
460 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
461
462 PR c++/55813
463 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
464
465 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
466
467 PR target/56445
468 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
469 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
470 INTX_FTYPE_FX, FX_FTYPE_INTX.
471 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
472
473 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
474
475 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
476 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
477 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
478 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
479 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
480 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
481 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
482 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
483 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
484 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
485 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
486 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
487 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
488 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
489 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
490 (avrxmega6): Increase max flash segments from 5 to 6.
491 * config/avr/t-multilib: Regenerate.
492 * config/avr/avr-tables.opt: Regenerate.
493 * doc/avr-mmcu.texi: Regenerate.
494
495 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
496
497 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
498 (avr_device_to_arch): Rename to avr_device_to_ld.
499 (avr_device_to_as): New prototype.
500 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
501 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
502 * config/avr/driver-avr.c (avr_device_to_as): New.
503 (avr_device_to_arch): Rename to avr_device_to_ld.
504
505 2013-02-27 Jakub Jelinek <jakub@redhat.com>
506
507 PR middle-end/56461
508 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
509 method on dr_chain and result_chain.
510
511 PR middle-end/56461
512 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
513 pointer_set_destroy on not_executed_last_iteration.
514
515 PR middle-end/56461
516 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs
517 vector.
518
519 PR middle-end/56461
520 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
521 FOR_EACH_DEFINED_FUNCTION when freeing state.
522
523 PR middle-end/56461
524 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
525 pool_free.
526 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
527 overwriting it.
528
529 PR middle-end/56461
530 * ipa-cp.c (decide_whether_version_node): Call vec_free on
531 known_aggs[i].items and release known_aggs vector.
532
533 PR middle-end/56461
534 * ipa-reference.c (propagate): Free node_info even for alias nodes.
535
536 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
537
538 * config/microblaze/microblaze.c (microblaze_emit_compare):
539 Use xor for EQ/NE comparisions.
540 * config/microblaze/microblaze.md (cstoresf4): Add constraints
541 (cbranchsf4): Adjust operator to comparison_operator.
542
543 2013-02-27 Jakub Jelinek <jakub@redhat.com>
544
545 PR middle-end/56461
546 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
547 vector.
548 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
549 vec_safe_push, always update *slot.
550 (redirect_edge_var_map_clear): Use vec_free.
551 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
552 (free_var_map_entry): Use vec_free.
553 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
554 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
555
556 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
557
558 PR middle-end/45472
559 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
560 when the may_trap_p bit of the exprs being merged differs.
561 Reorder tests for speculativeness in the logical and operator.
562
563 2013-02-27 Jakub Jelinek <jakub@redhat.com>
564
565 * incpath.c (add_standard_paths): Use reconcat instead of concat
566 where appropriate and avoid leaking memory.
567
568 * opts.h: Include obstack.h.
569 (opts_concat): New prototype.
570 (opts_obstack): New declaration.
571 * opts.c (opts_concat): New function.
572 (opts_obstack): New variable.
573 (init_options_struct): Call gcc_init_obstack on opts_obstack.
574 (finish_options): Use opts_concat instead of concat
575 and XOBNEWVEC instead of XNEWVEC.
576 * opts-common.c (generate_canonical_option, decode_cmdline_option,
577 generate_option): Likewise.
578 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
579 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
580
581 PR target/56455
582 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
583 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
584
585 2013-02-26 Jakub Jelinek <jakub@redhat.com>
586
587 PR middle-end/56461
588 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
589
590 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
591
592 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
593 (arm_block_move_unaligned_straight): Likewise.
594 (arm_adjust_block_mem): Likewise.
595
596 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
597
598 PR target/48901
599 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
600 temp, cond and label.
601 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
602
603 PR target/52500
604 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
605 * config/c6x/c6x.h (dbx_register_map): Update declaration.
606
607 PR target/52501
608 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
609 of prologue/epilogue functions.
610
611 PR target/52550
612 * config/tilegx/tilegx.c (tilegx_expand_prologue):
613 Remove unused variable cfa_offset.
614 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
615
616 PR target/54639
617 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
618 type promotion to unsigned.
619
620 PR target/54640
621 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
622 for HOST_WIDE_INT of 32 bit / same size as int.
623 (arm_block_move_unaligned_straight): Likewise.
624 (arm_adjust_block_mem): Likewise.
625
626 PR target/54662
627 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
628 ALL_CFLAGS.
629
630 2013-02-26 Marek Polacek <polacek@redhat.com>
631
632 PR tree-optimization/56426
633 * tree-ssa-loop.c (tree_ssa_loop_init): Always call
634 scev_initialize.
635
636 2013-02-26 Richard Biener <rguenther@suse.de>
637
638 PR target/56444
639 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
640 unused variable loops.
641
642 2013-02-26 Jakub Jelinek <jakub@redhat.com>
643
644 PR tree-optimization/56448
645 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
646 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
647 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
648 later operands of the references, or even first operand for
649 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
650
651 PR tree-optimization/56443
652 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
653 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
654 to type_for_mode langhook.
655
656 2013-02-25 Matt Turner <mattst88@gmail.com>
657
658 * doc/invoke.texi: Document r4700.
659
660 2013-02-25 Richard Biener <rguenther@suse.de>
661
662 PR tree-optimization/56175
663 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
664 split out from ...
665 (simplify_bitwise_binary): ... here. Also guard the conversion
666 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
667
668 2013-02-25 Catherine Moore <clm@codesourcery.com>
669
670 Revert:
671 2013-02-24 Catherine Moore <clm@codesourcery.com>
672 Maciej W. Rozycki <macro@codesourcery.com>
673 Tom de Vries <tom@codesourcery.com>
674 Nathan Sidwell <nathan@codesourcery.com>
675 Iain Sandoe <iain@codesourcery.com>
676 Nathan Froyd <froydnj@codesourcery.com>
677 Chao-ying Fu <fu@mips.com>
678 * doc/extend.texi: (micromips, nomicromips, nocompression):
679 Document new function attributes.
680 * doc/invoke.texi (minterlink-compressed, mmicromips,
681 m14k, m14ke, m14kec): Document new options.
682 (minterlink-mips16): Update documentation.
683 * doc/md.texi (ZC, ZD): Document new constraints.
684 * configure.ac (gcc_cv_as_micromips): Check if linker
685 supports the .set micromips directive.
686 * configure: Regenerate.
687 * config.in: Regenerate.
688 * config/mips/mips-tables.opt: Regenerate.
689 * config/mips/micromips.md: New file.
690 * constraints.md (ZC, AD): New constraints.
691 * config/mips/predicates.md (movep_src_register): New predicate.
692 (movep_src_operand): New predicate.
693 (non_volatile_mem_operand): New predicate.
694 * config/mips/mips.md (multimem): New type.
695 (length): Differentiate between 17-bit and 18-bit branch offsets.
696 (MOVEP1, MOVEP2): New mode iterator.
697 (mov_<load>l): Use ZC constraint.
698 (mov_<load>r): Likewise.
699 (mov_<store>l): Likewise.
700 (mov_<store>r): Likewise.
701 (*branch_equality<mode>_inverted): Add microMIPS support.
702 (*branch_equality<mode>): Likewise.
703 (*jump_absolute): Likewise.
704 (indirect_jump_<mode>): Likewise.
705 (tablejump_<mode>): Likewise.
706 (<optab>_internal): Likewise.
707 (sibcall_internal): Likewise.
708 (sibcall_value_internal): Likewise.
709 (prefetch): Use constraint ZD.
710 * config/mips/mips.opt (minterlink-compressed): New option.
711 (minterlink-mips16): Now an alias for minterlink-compressed.
712 (mmicromips): New option.
713 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
714 (compare_and_swap_12): Likewise.
715 (sync_add<mode>): Likewise.
716 (sync_<optab>_12): Likewise.
717 (sync_old_<optab>_12): Likewise.
718 (sync_new_<optab>_12): Likewise.
719 (sync_nand_12): Likewise.
720 (sync_old_nand_12): Likewise.
721 (sync_new_nand_12): Likewise.
722 (sync_sub<mode>): Likewise.
723 (sync_old_add<mode>): Likewise.
724 (sync_old_sub<mode>): Likewise.
725 (sync_new_add<mode>): Likewise.
726 (sync_new_sub<mode>): Likewise.
727 (sync_<optab><mode>): Likewise.
728 (sync_old_<optab><mode>): Likewise.
729 (sync_new_<optab><mode>): Likewise.
730 (sync_nand<mode>): Likewise.
731 (sync_old_nand<mode>): Likewise.
732 (sync_new_nand<mode>): Likewise.
733 (sync_lock_test_and_set<mode>): Likewise.
734 (test_and_set_12): Likewise.
735 (atomic_compare_and_swap<mode>): Likewise.
736 (atomic_exchange<mode>_llsc): Likewise.
737 (atomic_fetch_add<mode>_llsc): Likewise.
738 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
739 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
740 (umips_save_restore_pattern_p): Likewise.
741 (umips_load_store_pair_p): Likewise.
742 (umips_output_load_store_pair): Likewise.
743 (umips_movep_target_p): Likewise.
744 (umips_12bit_offset_address_p): Likewise.
745 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
746 (mips_base_mips16): Rename this...
747 (mips_base_compression_flags): ...to this. Update all uses.
748 (mips_attribute_table): Add micromips, nomicromips and nocompression.
749 (mips_mips16_decl_p): Delete.
750 (mips_nomips16_decl_p): Delete.
751 (mips_get_compress_on_flags): New function.
752 (mips_get_compress_off_flags): New function.
753 (mips_get_compress_mode): New function.
754 (mips_get_compress_on_name): New function.
755 (mips_get_compress_off_name): New function.
756 (mips_insert_attributes): Support multiple compression types.
757 (mips_merge_decl_attributes): Likewise.
758 (umips_12bit_offset_address_p): New function.
759 (mips_start_function_definition): Emit .set micromips directive.
760 (mips_call_may_need_jalx_p): New function.
761 (mips_function_ok_for_sibcall): Add microMIPS support.
762 (mips_print_operand_punctuation): Support short delay slots and
763 compact jumps.
764 (umips_swm_mask, umips_swm_encoding): New.
765 (umips_build_save_restore): New function.
766 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
767 (was_mips16_p): Remove.
768 (old_compression_mode): New.
769 (mips_set_compression_mode): New function.
770 (mips_set_current_function): Add microMIPS support.
771 (mips_option_override): Likewise.
772 (umips_save_restore_pattern_p): New function.
773 (umips_output_save_restore): New function.
774 (umips_load_store_pair_p_1): New function.
775 (umips_load_store_pair_p): New function.
776 (umips_output_load_store_pair_1): New function.
777 (umips_output_load_store_pair): New function.
778 (umips_movep_target_p) New function.
779 (mips_prepare_pch_save): Add microMIPS support.
780 * config/mips/mips.h (TARGET_COMPRESSION): New.
781 (TARGET_CPU_CPP_BUILTINS): Update macro
782 to use new compression flags and to support microMIPS.
783 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
784 (MIPS_ARCH_FLOAT_SPEC): Likewise.
785 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
786 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
787 (ASM_SPEC): Support mmicromips and mno-micromips.
788 (M16STORE_REG_P): New macro.
789 (MIPS_CALL): Support TARGET_MICROMIPS.
790 (MICROMIPS_J): New macro.
791 (mips_base_mips16): Rename this...
792 (mips_base_compression_flags): ...to this.
793 (UMIPS_12BIT_OFFSET_P): New macro.
794 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
795 (MULTILIB_DIRNAMES): Likewise.
796
797 2013-02-25 Tom de Vries <tom@codesourcery.com>
798
799 PR rtl-optimization/56131
800 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
801 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
802 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
803
804 2013-02-25 Tobias Burnus <burnus@net-b.de>
805
806 * doc/invoke.texi (-fsanitize=): Move from optimization
807 to debugging options.
808
809 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
810
811 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
812
813 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
814 Alexander Monakov <amonakov@ispras.ru>
815
816 PR middle-end/56077
817 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
818 flush pending lists also on non-jumps. Adjust comment.
819
820 2013-02-24 Catherine Moore <clm@codesourcery.com>
821 Maciej W. Rozycki <macro@codesourcery.com>
822 Tom de Vries <tom@codesourcery.com>
823 Nathan Sidwell <nathan@codesourcery.com>
824 Iain Sandoe <iain@codesourcery.com>
825 Nathan Froyd <froydnj@codesourcery.com>
826 Chao-ying Fu <fu@mips.com>
827
828 * doc/extend.texi: (micromips, nomicromips, nocompression):
829 Document new function attributes.
830 * doc/invoke.texi (minterlink-compressed, mmicromips,
831 m14k, m14ke, m14kec): Document new options.
832 (minterlink-mips16): Update documentation.
833 * doc/md.texi (ZC, ZD): Document new constraints.
834 * configure.ac (gcc_cv_as_micromips): Check if linker
835 supports the .set micromips directive.
836 * configure: Regenerate.
837 * config.in: Regenerate.
838 * config/mips/mips-tables.opt: Regenerate.
839 * config/mips/micromips.md: New file.
840 * constraints.md (ZC, AD): New constraints.
841 * config/mips/predicates.md (movep_src_register): New predicate.
842 (movep_src_operand): New predicate.
843 (non_volatile_mem_operand): New predicate.
844 * config/mips/mips.md (multimem): New type.
845 (length): Differentiate between 17-bit and 18-bit branch offsets.
846 (MOVEP1, MOVEP2): New mode iterator.
847 (mov_<load>l): Use ZC constraint.
848 (mov_<load>r): Likewise.
849 (mov_<store>l): Likewise.
850 (mov_<store>r): Likewise.
851 (*branch_equality<mode>_inverted): Add microMIPS support.
852 (*branch_equality<mode>): Likewise.
853 (*jump_absolute): Likewise.
854 (indirect_jump_<mode>): Likewise.
855 (tablejump_<mode>): Likewise.
856 (<optab>_internal): Likewise.
857 (sibcall_internal): Likewise.
858 (sibcall_value_internal): Likewise.
859 (prefetch): Use constraint ZD.
860 * config/mips/mips.opt (minterlink-compressed): New option.
861 (minterlink-mips16): Now an alias for minterlink-compressed.
862 (mmicromips): New option.
863 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
864 (compare_and_swap_12): Likewise.
865 (sync_add<mode>): Likewise.
866 (sync_<optab>_12): Likewise.
867 (sync_old_<optab>_12): Likewise.
868 (sync_new_<optab>_12): Likewise.
869 (sync_nand_12): Likewise.
870 (sync_old_nand_12): Likewise.
871 (sync_new_nand_12): Likewise.
872 (sync_sub<mode>): Likewise.
873 (sync_old_add<mode>): Likewise.
874 (sync_old_sub<mode>): Likewise.
875 (sync_new_add<mode>): Likewise.
876 (sync_new_sub<mode>): Likewise.
877 (sync_<optab><mode>): Likewise.
878 (sync_old_<optab><mode>): Likewise.
879 (sync_new_<optab><mode>): Likewise.
880 (sync_nand<mode>): Likewise.
881 (sync_old_nand<mode>): Likewise.
882 (sync_new_nand<mode>): Likewise.
883 (sync_lock_test_and_set<mode>): Likewise.
884 (test_and_set_12): Likewise.
885 (atomic_compare_and_swap<mode>): Likewise.
886 (atomic_exchange<mode>_llsc): Likewise.
887 (atomic_fetch_add<mode>_llsc): Likewise.
888 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
889 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
890 (umips_save_restore_pattern_p): Likewise.
891 (umips_load_store_pair_p): Likewise.
892 (umips_output_load_store_pair): Likewise.
893 (umips_movep_target_p): Likewise.
894 (umips_12bit_offset_address_p): Likewise.
895 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
896 (mips_base_mips16): Rename this...
897 (mips_base_compression_flags): ...to this. Update all uses.
898 (mips_attribute_table): Add micromips, nomicromips and nocompression.
899 (mips_mips16_decl_p): Delete.
900 (mips_nomips16_decl_p): Delete.
901 (mips_get_compress_on_flags): New function.
902 (mips_get_compress_off_flags): New function.
903 (mips_get_compress_mode): New function.
904 (mips_get_compress_on_name): New function.
905 (mips_get_compress_off_name): New function.
906 (mips_insert_attributes): Support multiple compression types.
907 (mips_merge_decl_attributes): Likewise.
908 (umips_12bit_offset_address_p): New function.
909 (mips_start_function_definition): Emit .set micromips directive.
910 (mips_call_may_need_jalx_p): New function.
911 (mips_function_ok_for_sibcall): Add microMIPS support.
912 (mips_print_operand_punctuation): Support short delay slots and
913 compact jumps.
914 (umips_swm_mask, umips_swm_encoding): New.
915 (umips_build_save_restore): New function.
916 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
917 (was_mips16_p): Remove.
918 (old_compression_mode): New.
919 (mips_set_compression_mode): New function.
920 (mips_set_current_function): Add microMIPS support.
921 (mips_option_override): Likewise.
922 (umips_save_restore_pattern_p): New function.
923 (umips_output_save_restore): New function.
924 (umips_load_store_pair_p_1): New function.
925 (umips_load_store_pair_p): New function.
926 (umips_output_load_store_pair_1): New function.
927 (umips_output_load_store_pair): New function.
928 (umips_movep_target_p) New function.
929 (mips_prepare_pch_save): Add microMIPS support.
930 * config/mips/mips.h (TARGET_COMPRESSION): New.
931 (TARGET_CPU_CPP_BUILTINS): Update macro
932 to use new compression flags and to support microMIPS.
933 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
934 (MIPS_ARCH_FLOAT_SPEC): Likewise.
935 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
936 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
937 (ASM_SPEC): Support mmicromips and mno-micromips.
938 (M16STORE_REG_P): New macro.
939 (MIPS_CALL): Support TARGET_MICROMIPS.
940 (MICROMIPS_J): New macro.
941 (mips_base_mips16): Rename this...
942 (mips_base_compression_flags): ...to this.
943 (UMIPS_12BIT_OFFSET_P): New macro.
944 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
945 (MULTILIB_DIRNAMES): Likewise.
946
947 2013-02-24 Jakub Jelinek <jakub@redhat.com>
948
949 PR target/52555
950 * target-globals.c (save_target_globals): For init_reg_sets and
951 target_reinit remporarily set this_fn_optabs to this_target_optabs.
952
953 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
954
955 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
956 * config/aarch64/t-aarch64
957 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
958
959 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
960
961 PR inline-asm/56148
962 * lra-constraints.c (process_alt_operands): Reload operand
963 conflicting with earlier clobber only if no more other conflicting
964 operands.
965
966 2013-02-22 Jakub Jelinek <jakub@redhat.com>
967
968 PR sanitizer/56393
969 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
970 if not linking a shared library.
971
972 2013-02-22 Seth LaForge <sethml@google.com>
973
974 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
975
976 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
977
978 * config/arm/arm.md (split for extendsidi): Update condition.
979 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
980 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
981 (qhs_zextenddi_cstr): Likewise.
982
983 2013-02-21 Jakub Jelinek <jakub@redhat.com>
984
985 PR middle-end/56420
986 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
987 avoid signed wrapping.
988 (expand_mult): Handle properly multiplication by
989 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
990 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
991 in the compiler if coeff is HOST_WIDE_INT_MIN.
992 (expand_divmod): Don't make ext_op1 static, change it's type to
993 uhwi. Avoid undefined behavior in -INTVAL (op1).
994
995 PR rtl-optimization/50339
996 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
997 field.
998 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
999 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
1000 into splitting_ashiftrt field.
1001 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
1002 ASHIFTRT.
1003 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
1004 choices.
1005
1006 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
1007
1008 PR middle-end/56108
1009 * trans-mem.c (execute_tm_mark): Do not expand transactions that
1010 are sure to go irrevocable.
1011
1012 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
1013
1014 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
1015 scalars are valid operands.
1016
1017 2013-02-21 Martin Jambor <mjambor@suse.cz>
1018
1019 PR tree-optimization/56310
1020 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
1021 only matching indices and non-negative final offsets.
1022 (intersect_aggregates_with_edge): Pass src_idx to
1023 agg_replacements_to_vector. Pass src_idx insstead of index to
1024 intersect_with_agg_replacements.
1025
1026 2013-02-21 Martin Jambor <mjambor@suse.cz>
1027
1028 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
1029 instead of hard-wired defaults.
1030
1031 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
1032
1033 * doc/invoke.texi (MIPS Options): Update documentation of the
1034 floating-point multiply-accumulate instruction restrictions.
1035
1036 2013-02-21 Kostya Serebryany <kcc@google.com>
1037
1038 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
1039 asan_shadow_offset on x86_64 linux.
1040
1041 2013-02-21 Richard Biener <rguenther@suse.de>
1042
1043 PR tree-optimization/56415
1044 Revert
1045 2013-02-11 Richard Biener <rguenther@suse.de>
1046
1047 PR tree-optimization/56273
1048 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
1049 first VRP run.
1050
1051 2013-02-21 Jakub Jelinek <jakub@redhat.com>
1052
1053 PR bootstrap/56258
1054 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
1055 instead of @itemx.
1056
1057 PR inline-asm/56405
1058 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
1059 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
1060
1061 2013-02-20 Jan Hubicka <jh@suse.cz>
1062
1063 PR tree-optimization/56265
1064 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when target is
1065 referenced for firs ttime.
1066
1067 2013-02-20 Richard Biener <rguenther@suse.de>
1068
1069 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
1070 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1071 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
1072 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
1073 not return anything.
1074 (rename_ssa_copies): Do not remove unused locals.
1075 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
1076 * tree-ssanames.c (pass_release_ssa_names): Remove unused
1077 locals first.
1078 * passes.c (execute_function_todo): Do not schedule unused locals
1079 removal if cleanup_tree_cfg did something.
1080 * tree-ssa-live.c (remove_unused_locals): Dump statistics
1081 about the number of removed locals.
1082
1083 2013-02-20 Richard Biener <rguenther@suse.de>
1084
1085 PR tree-optimization/56398
1086 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
1087 SSA default defs.
1088
1089 2013-02-20 Martin Jambor <mjambor@suse.cz>
1090
1091 PR tree-optimization/55334
1092 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
1093 restricted pointers to arrays.
1094
1095 2013-02-20 Richard Biener <rguenther@suse.de>
1096 Jakub Jelinek <jakub@redhat.com>
1097
1098 PR tree-optimization/56396
1099 * tree-ssa-ccp.c (n_const_val): New static variable.
1100 (get_value): Return NULL for SSA names we don't have a lattice
1101 entry for.
1102 (ccp_initialize): Initialize n_const_val.
1103 * tree-ssa-copy.c (n_copy_of): New static variable.
1104 (init_copy_prop): Initialize n_copy_of.
1105 (get_value): Return NULL_TREE for SSA names we don't have a
1106 lattice entry for.
1107
1108 2013-02-20 Martin Jambor <mjambor@suse.cz>
1109
1110 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
1111
1112 2013-02-20 Richard Biener <rguenther@suse.de>
1113
1114 * genpreds.c (write_lookup_constraint): Do not compare first
1115 letter of the constraint again.
1116
1117 2013-02-20 Richard Biener <rguenther@suse.de>
1118
1119 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
1120 and ceil_log2.
1121 (get_use_iv_cost): Terminate hashtable walk when coming across
1122 an empty entry.
1123
1124 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
1125
1126 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
1127 reassociation for avx2 targets.
1128
1129 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1130
1131 * config/microblaze/microblaze.c: microblaze_has_clz = 0
1132 Add version check for v8.10.a to enable microblaze_has_clz
1133 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
1134 version and TARGET_PATTERN_COMPARE check
1135 * config/microblaze/microblaze.md: New clzsi2 instruction
1136
1137 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1138
1139 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
1140 function before branching.
1141
1142 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
1143
1144 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
1145 DUMP_INSN_RTX_UID.
1146 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
1147
1148 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
1149
1150 PR middle-end/55889
1151
1152 * sel-sched.c: Include ira.h.
1153 (implicit_clobber_conflict_p): New function.
1154 (moveup_expr): Use it.
1155 * Makefile.in (sel-sched.o): Depend on ira.h.
1156
1157 2013-02-19 Richard Biener <rguenther@suse.de>
1158
1159 PR tree-optimization/56384
1160 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
1161 (vn_hash_type): Split out from ...
1162 (vn_hash_constant_with_type): ... here.
1163 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
1164 (vn_phi_eq): Compare types from vn_phi_s structure.
1165 (vn_phi_lookup): Populate vn_phi_s type.
1166 (vn_phi_insert): Likewise.
1167
1168 2013-02-19 Jakub Jelinek <jakub@redhat.com>
1169
1170 PR tree-optimization/56350
1171 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
1172 if haven't found reduction or nested cycle operand, rather than
1173 asserting we must find it.
1174
1175 PR tree-optimization/56381
1176 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
1177 to fold_build3.
1178
1179 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
1180 Jakub Jelinek <jakub@redhat.com>
1181
1182 PR target/52555
1183 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
1184 (swap_optab_enable): Same.
1185 (init_all_optabs): Use argument instead of global.
1186 * tree.h (struct tree_optimization_option): New field
1187 target_optabs.
1188 * expr.h (init_all_optabs): Add argument to prototype.
1189 (TREE_OPTIMIZATION_OPTABS): New.
1190 (save_optabs_if_changed): Protoize.
1191 * optabs.h: Declare this_fn_optabs.
1192 * optabs.c (save_optabs_if_changed): New.
1193 Declare this_fn_optabs.
1194 (init_optabs): Add argument to init_all_optabs() call.
1195 * function.c (invoke_set_current_function_hook): Handle per
1196 function optabs.
1197 * function.h (struct function): New field optabs.
1198 * config/mips/mips.c (mips_set_mips16_mode): Handle when
1199 optimization_current_node has changed.
1200 * target-globals.h (save_target_globals_default_opts): Protoize.
1201 * target-globals.c (save_target_globals_default_opts): New.
1202
1203 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1204
1205 PR target/56347
1206 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
1207 registers %fr12 and %fr12R as call used.
1208
1209 PR target/56214
1210 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
1211 and HImode, require all displacements to be an integer multiple of their
1212 mode size.
1213 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
1214 only allow QImode and HImode when reload is in progress and strict is
1215 true. Likewise for symbolic addresses. Use base14_operand to check
1216 displacements in REG+BASE addresses.
1217
1218 2013-02-18 Richard Biener <rguenther@suse.de>
1219
1220 PR tree-optimization/56366
1221 * tree-vect-loop.c (get_initial_def_for_induction): Properly
1222 handle sign-conversion of outer-loop initial induction value.
1223
1224 2013-02-18 Richard Biener <rguenther@suse.de>
1225
1226 PR middle-end/56349
1227 * cfghooks.c (merge_blocks): If we merge a latch into another
1228 block adjust references to it.
1229 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
1230 (verify_loop_structure): Verify that a recorded latch is in fact
1231 a latch.
1232
1233 2013-02-18 Richard Biener <rguenther@suse.de>
1234
1235 PR tree-optimization/56321
1236 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
1237 order SSA name release and virtual operand unlinking.
1238
1239 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1240
1241 * config/microblaze/microblaze.md (save_stack_block): Define.
1242 (restore_stack_block): Likewise.
1243
1244 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1245
1246 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
1247 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
1248 * config/microblaze/microblaze.c (microblaze_option_override):
1249 Bail out early for PIC modes when target does not support PIC.
1250
1251 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1252
1253 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
1254 Replace with a microblaze version.
1255 (microblaze_trampoline_init): Adapt for microblaze.
1256 * gcc/config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
1257 microblaze.
1258
1259 2013-02-16 Jakub Jelinek <jakub@redhat.com>
1260 Dodji Seketeli <dodji@redhat.com>
1261
1262 PR asan/56330
1263 * asan.c (get_mem_refs_of_builtin_call): White space and style
1264 cleanup.
1265 (instrument_mem_region_access): Do not forget to always put
1266 instrumentation of the of 'base' and 'base + len' in a "if (len !=
1267 0) statement, even for cases where either 'base' or 'base + len'
1268 are not instrumented -- because they have been previously
1269 instrumented. Simplify the logic by putting all the statements
1270 instrument 'base + len' inside a sequence, and then insert that
1271 sequence right before the current insertion point. Then, to
1272 instrument 'base + len', just get an iterator on that statement.
1273 And do not forget to update the pointer to iterator the function
1274 received as argument.
1275
1276 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
1277
1278 PR rtl-optimization/56348
1279 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
1280
1281 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
1282
1283 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
1284 (clean_graph_dump_file): Pass base to start_graph_dump.
1285
1286 2013-02-14 Richard Henderson <rth@redhat.com>
1287
1288 PR target/55941
1289 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
1290
1291 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
1292
1293 * collect2-aix.h: Define F_LOADONLY.
1294
1295 2013-02-14 Richard Biener <rguenther@suse.de>
1296
1297 PR lto/50494
1298 * varasm.c (output_constant_def_1): Get the decl representing
1299 the constant as argument.
1300 (output_constant_def): Wrap output_constant_def_1.
1301 (make_decl_rtl): Use output_constant_def_1 with the decl
1302 representing the constant.
1303 (build_constant_desc): Optionally re-use a decl already
1304 representing the constant.
1305 (tree_output_constant_def): Adjust.
1306
1307 2013-02-14 Dodji Seketeli <dodji@redhat.com>
1308
1309 Fix an asan crash
1310 * asan.c (instrument_builtin_call): Really put the length of the
1311 second source argument into src1_len.
1312
1313 2013-02-13 Jakub Jelinek <jakub@redhat.com>
1314
1315 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
1316 argument. If it is false, don't create edge from then_bb to
1317 fallthru_bb.
1318 (insert_if_then_before_iter): Pass true to it.
1319 (build_check_stmt): Pass false to it.
1320 (transform_statements): Flush hash table only on extended basic
1321 block boundaries, rather than at the beginning of every bb.
1322 Don't flush hash table on nonfreeing_call_p calls.
1323 * tree-flow.h (nonfreeing_call_p): New prototype.
1324 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
1325
1326 2013-02-13 David S. Miller <davem@davemloft.net>
1327
1328 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
1329
1330 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
1331
1332 PR target/56184
1333 * ira.c (max_regno_before_ira): Move from ...
1334 (ira): ... here.
1335 (fix_reg_equiv_init): Use max_regno_before_ira instead of
1336 vec_safe_length.
1337
1338 2013-02-13 Jakub Jelinek <jakub@redhat.com>
1339
1340 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
1341
1342 2013-02-13 Richard Biener <rguenther@suse.de>
1343
1344 PR lto/56295
1345 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
1346 globals in MEM_REFs.
1347
1348 2013-02-13 Richard Biener <rguenther@suse.de>
1349
1350 * loop-init.c (loop_optimizer_init): Clear loop state when
1351 re-initializing preserved loops.
1352 * loop-unswitch.c (unswitch_single_loop): Return whether
1353 we unswitched the loop. Do not verify loop state here.
1354 (unswitch_loops): When we unswitched a loop discover new
1355 loops.
1356
1357 2013-02-13 Kostya Serebryany <kcc@google.com>
1358
1359 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
1360 linux.
1361 * sanitizer.def: Rename __asan_init to __asan_init_v1.
1362
1363 2013-02-12 Dodji Seketeli <dodji@redhat.com>
1364
1365 Avoid instrumenting duplicated memory access in the same basic block
1366 * Makefile.in (asan.o): Add new dependency on hash-table.h
1367 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
1368 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
1369 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
1370 (free_mem_ref_resources, has_mem_ref_been_instrumented)
1371 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
1372 (get_mem_ref_of_assignment): New functions.
1373 (get_mem_refs_of_builtin_call): Extract from
1374 instrument_builtin_call and tweak a little bit to make it fit with
1375 the new signature.
1376 (instrument_builtin_call): Use the new
1377 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
1378 of is_gimple_builtin_call.
1379 (instrument_derefs, instrument_mem_region_access): Insert the
1380 instrumented memory reference into the hash table.
1381 (maybe_instrument_assignment): Renamed instrument_assignment into
1382 this, and change it to advance the iterator when instrumentation
1383 actually happened and return true in that case. This makes it
1384 homogeneous with maybe_instrument_assignment, and thus give a
1385 chance to callers to be more 'regular'.
1386 (transform_statements): Clear the memory reference hash table
1387 whenever we enter a new BB, when we cross a function call, or when
1388 we are done transforming statements. Use
1389 maybe_instrument_assignment instead of instrumentation. No more
1390 need to special case maybe_instrument_assignment and advance the
1391 iterator after calling it; it's now handled just like
1392 maybe_instrument_call. Update comment.
1393
1394 2013-02-13 Richard Biener <rguenther@suse.de>
1395
1396 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1397 Fix loop discovery code.
1398
1399 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
1400
1401 PR inline-asm/56148
1402 * lra-constraints.c (process_alt_operands): Match early clobber
1403 operand with itself. Check conflicts with earlyclobber only if
1404 the operand is not reloaded. Prefer to reload conflicting operand
1405 if earlyclobber and matching operands are the same.
1406
1407 2013-02-12 Richard Biener <rguenther@suse.de>
1408
1409 PR lto/56297
1410 * lto-streamer-out.c (write_symbol): Do not output symbols
1411 for hard register variables.
1412
1413 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
1414
1415 PR target/54222
1416 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
1417 (umulsidi3_insn, mulsidi3_insn): New insns.
1418
1419 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
1420
1421 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
1422 (struct tune_params): Add vec_costs field.
1423 * config/arm/arm.c (arm_builtin_vectorization_cost)
1424 (arm_add_stmt_cost): New functions.
1425 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
1426 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
1427 (arm_default_vec_cost): New struct of type cpu_vec_costs.
1428 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
1429 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
1430 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
1431 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
1432
1433 2013-02-12 Richard Biener <rguenther@suse.de>
1434
1435 PR lto/56295
1436 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
1437 decls again if possible.
1438
1439 2013-02-12 Richard Biener <rguenther@suse.de>
1440
1441 PR middle-end/56288
1442 * tree-ssa.c (verify_ssa_name): Fix check, move
1443 SSA_NAME_IN_FREE_LIST check up.
1444
1445 2013-02-12 Jakub Jelinek <jakub@redhat.com>
1446 Steven Bosscher <steven@gcc.gnu.org>
1447
1448 PR rtl-optimization/56151
1449 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
1450 equal to op0 or op1, and last_insn pattern is CODE operation
1451 with MEM dest and one of the operands matches that MEM.
1452
1453 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
1454
1455 * doc/extend.texi: Document Function Multiversioning and "default"
1456 parameter string to target attribute.
1457 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
1458 target attribute parameter is "default".
1459 (ix86_compare_version_priority): Remove checks for target attribute.
1460 (ix86_mangle_function_version_assembler_name): Change error to sorry.
1461 Remove check for target attribute equal to NULL. Add assert.
1462 (ix86_generate_version_dispatcher_body): Change error to sorry.
1463
1464 2013-02-11 Iain Sandoe <iain@codesourcery.com>
1465 Jack Howarth <howarth@bromo.med.uc.edu>
1466 Patrick Marlier <patrick.marlier@gmail.com>
1467
1468 PR libitm/55693
1469 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
1470 define ENDFILE_SPEC as TM_DESTRUCTOR.
1471 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
1472
1473 2013-02-11 Alexander Potapenko <glider@google.com>
1474 Jack Howarth <howarth@bromo.med.uc.edu>
1475 Jakub Jelinek <jakub@redhat.com>
1476
1477 PR sanitizer/55617
1478 * config/darwin.c (cdtor_record): Rename ctor_record.
1479 (sort_cdtor_records): Rename sort_ctor_records.
1480 (finalize_dtors): New routine to sort destructors by
1481 priority before use in assemble_integer.
1482 (machopic_asm_out_destructor): Use finalize_dtors if needed.
1483
1484 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
1485
1486 PR rtl-optimization/56275
1487 * simplify-rtx.c (avoid_constant_pool_reference): Check that
1488 offset is non-negative and less than cmode size before
1489 calling simplify_subreg.
1490
1491 2013-02-11 Richard Biener <rguenther@suse.de>
1492
1493 PR tree-optimization/56264
1494 * cfgloop.h (fix_loop_structure): Adjust prototype.
1495 * loop-init.c (fix_loop_structure): Return the number of
1496 newly discovered loops.
1497 * tree-cfgcleanup.c (repair_loop_structures): When new loops
1498 are discovered, do a full loop-closed SSA rewrite.
1499
1500 2013-02-11 Richard Biener <rguenther@suse.de>
1501
1502 PR tree-optimization/56273
1503 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
1504 first VRP run.
1505 (check_array_ref): Fix missing newline in dumps.
1506 (search_for_addr_array): Likewise.
1507
1508 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
1509
1510 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
1511
1512 2013-02-09 Jakub Jelinek <jakub@redhat.com>
1513
1514 PR target/56256
1515 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
1516
1517 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
1518
1519 PR rtl-optimization/56246
1520 * lra-constraints.c (simplify_operand_subreg): Try to reuse
1521 reload pseudo.
1522 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
1523 constraints are satisfied.
1524
1525 2013-02-08 Jeff Law <law@redhat.com>
1526
1527 PR debug/53948
1528 * emit-rtl.c (reg_is_parm_p): New function.
1529 * regs.h (reg_is_parm_p): New prototype.
1530 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
1531 callee-clobbered registers.
1532
1533 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1534
1535 PR target/56043
1536 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
1537 If there is no implicit builtin declaration, just return NULL.
1538
1539 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
1540
1541 * config/i386/sse.md (FMAMODEM): New mode iterator.
1542 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
1543 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
1544
1545 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
1546
1547 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
1548 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
1549 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
1550
1551 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1552
1553 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
1554 (microblaze*-*-elf): Likewise.
1555 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
1556 LINK_SPEC.
1557 * config/microblaze/microblaze-c.c: Add builtin defines for
1558 _LITTLE_ENDIAN and _BIG_ENDIAN.
1559 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
1560 add to TARGET_DEFAULT flags.
1561 Expand ASM_SPEC and LINK_SPEC.
1562 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
1563 * config/microblaze/microblaze.md: Update extendsidi2 and
1564 movdi_internal instructions to use low-order / high-order reg
1565 print_operands.
1566 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
1567 options and inversemask / mask of LITTLE_ENDIAN.
1568 * config/microblaze/t-microblaze: Expand multilib options to
1569 include mlittle-endian (le) and update exceptions patterns.
1570
1571 2013-02-08 Jakub Jelinek <jakub@redhat.com>
1572
1573 PR rtl-optimization/56195
1574 * lra-constraints.c (get_reload_reg): Don't reuse regs
1575 if they have smaller mode than requested, if they have
1576 wider mode than requested, try to return a SUBREG.
1577
1578 PR tree-optimization/56250
1579 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
1580 if type is unsigned and code isn't MULT_EXPR.
1581
1582 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
1583
1584 PR tree-optimization/56064
1585 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
1586 bits according to mode.
1587 * fixed-value.h (fixed_from_double_int)
1588 (const_fixed_from_double_int): Adjust comments.
1589
1590 2013-02-08 Richard Biener <rguenther@suse.de>
1591
1592 PR lto/56231
1593 * lto-streamer.h (struct data_in): Remove current_file, current_line
1594 and current_col members.
1595 * lto-streamer-out.c (lto_output_location): Stream changed bits
1596 en-block for efficiency.
1597 * lto-streamer-in.c (clear_line_info): Remove.
1598 (lto_input_location): Cache current file, line and column
1599 globally via local statics. Read changed bits en-block.
1600 (input_function): Do not call clear_line_info.
1601 (lto_read_body): Likewise.
1602 (lto_input_toplevel_asms): Likewise.
1603
1604 2013-02-08 Michael Matz <matz@suse.de>
1605
1606 PR tree-optimization/52448
1607 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
1608 (nt_call_phase): New static.
1609 (add_or_mark_expr): Only mark accesses with newer phase than any
1610 call seen.
1611 (nonfreeing_call_p): New.
1612 (nt_init_block): Update nt_call_phase, mark blocks as visited.
1613 (nt_fini_block): Keep blocks marked as visited.
1614 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
1615
1616 2013-02-08 Richard Biener <rguenther@suse.de>
1617
1618 * ira.c (ira): Free broken dominator information.
1619
1620 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
1621
1622 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
1623
1624 2013-02-08 Marek Polacek <polacek@redhat.com>
1625
1626 * cfgloop.c (verify_loop_structure): Add more checking of headers.
1627
1628 2013-02-08 Richard Biener <rguenther@suse.de>
1629
1630 PR middle-end/56181
1631 * cfgloop.h (flow_loops_find): Adjust.
1632 (bb_loop_header_p): Declare.
1633 * cfgloop.c (bb_loop_header_p): New function split out from ...
1634 (flow_loops_find): ... here. Adjust function signature,
1635 support incremental loop structure update.
1636 (verify_loop_structure): Cleanup. Verify a loop is a loop.
1637 * cfgloopmanip.c (fix_loop_structure): Move ...
1638 * loop-init.c (fix_loop_structure): ... here.
1639 (apply_loop_flags): Split out from ...
1640 (loop_optimizer_init): ... here.
1641 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
1642 in incremental mode, only remove dead loops here.
1643
1644 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
1645
1646 PR target/54222
1647 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
1648 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
1649 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
1650 (*round<mode>3.libgcc): New insns for fixed-modes.
1651 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
1652 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
1653 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
1654 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
1655 implementations. Define to __builtin_avr_absFX,
1656 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
1657 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
1658 __builtin_avr_countlsFX, respectively.
1659 * config/avr/avr-c.c (target.h): Include it.
1660 (enum avr_builtin_id): New enum.
1661 (avr_resolve_overloaded_builtin): New static function.
1662 (avr_register_target_pragmas): Use it to set
1663 targetm.resolve_overloaded_builtin.
1664 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
1665 tree nodes used by DEF_BUILTIN.
1666 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
1667 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
1668 <AVR_BUILTIN_xxBITS>: Same.
1669
1670 2013-02-08 Richard Biener <rguenther@suse.de>
1671
1672 * cfgloop.c (verify_loop_structure): Properly handle
1673 a loop exiting to another loop header.
1674 * ira-int.h (ira_loops): Remove.
1675 * ira.c (ira_loops): Remove.
1676 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
1677 (do_reload): Use loop_optimizer_finalize.
1678 * ira-build.c (create_loop_tree_nodes): Use get_loops and
1679 number_of_loops to access the loop tree.
1680 (more_one_region_p): Likewise.
1681 (finish_loop_tree_nodes): Likewise.
1682 (rebuild_regno_allocno_maps): Likewise.
1683 (mark_loops_for_removal): Likewise.
1684 (mark_all_loops_for_removal): Likewise.
1685 (remove_unnecessary_regions): Likewise.
1686 (ira_build): Likewise.
1687 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1688
1689 2013-02-08 Richard Biener <rguenther@suse.de>
1690
1691 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
1692 * ipa-pure-const.c (analyze_function): Avoid calling
1693 mark_irreducible_loops twice.
1694 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
1695
1696 2013-02-07 David S. Miller <davem@davemloft.net>
1697
1698 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
1699 on 'reg'.
1700 * var-tracking.c (vt_add_function_parameter): Test the presence of
1701 HAVE_window_save properly and do not remap argument registers when
1702 we have a leaf function.
1703
1704 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
1705
1706 PR bootstrap/56227
1707 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
1708 instead of "ll".
1709 * config/i386/i386.c (ix86_print_operand): Ditto.
1710
1711 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
1712
1713 * lra-constraints.c (process_alt_operands): Fix recently added comment.
1714
1715 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
1716
1717 PR rtl-optimization/56225
1718 * lra-constraints.c (process_alt_operands): Check that reload hard
1719 reg can hold value for strict_low_part.
1720
1721 2013-02-07 Jakub Jelinek <jakub@redhat.com>
1722
1723 PR debug/56154
1724 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
1725 dwarf2out_end_function.
1726 (in_first_function_p, maybe_at_text_label_p,
1727 first_loclabel_num_not_at_text_label): New variables.
1728 (dwarf2out_var_location): In the first function find out
1729 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
1730 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
1731 functions.
1732
1733 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
1734
1735 PR rtl-optimization/56178
1736 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
1737 SUBREG of a register. Tidy up related block of code.
1738 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
1739 note if the source is a register or a SUBREG of a register.
1740
1741 2013-02-07 Jakub Jelinek <jakub@redhat.com>
1742
1743 PR target/56228
1744 * config/rs6000/rs6000.md (ptrm): New mode attr.
1745 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
1746 call_value_indirect_aix<pttrsize>,
1747 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
1748 m in constraints.
1749
1750 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1751
1752 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
1753 if -bnortl. Convert to strcmp and strncmp.
1754
1755 2013-02-07 Alan Modra <amodra@gmail.com>
1756
1757 PR target/54009
1758 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
1759 addresses won't wrap when offsetting.
1760 (rs6000_secondary_reload): Provide secondary reloads needed for
1761 wrapping LO_SUM addresses.
1762
1763 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
1764
1765 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
1766 MACH, just __MACH__.
1767
1768 2013-02-06 Richard Biener <rguenther@suse.de>
1769
1770 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
1771 instead of calling fix_loop_structure.
1772
1773 2013-02-06 Jakub Jelinek <jakub@redhat.com>
1774
1775 PR middle-end/56217
1776 * omp-low.c (use_pointer_for_field): Return false if
1777 lower_send_shared_vars doesn't generate any copy-out code.
1778
1779 2013-02-06 Tom de Vries <tom@codesourcery.com>
1780
1781 PR rtl-optimization/56131
1782 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
1783 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
1784 of the label is NULL. Add comment.
1785
1786 2013-02-05 Jakub Jelinek <jakub@redhat.com>
1787
1788 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
1789
1790 PR sanitizer/55374
1791 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
1792 (STATIC_LIBTSAN_LIBS): Likewise.
1793 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
1794 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
1795 is defined, don't add anything else beyond that.
1796 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
1797 (LINK_COMMAND_SPEC): Use them.
1798
1799 PR tree-optimization/56205
1800 * tree-stdarg.c (check_all_va_list_escapes): Return true if
1801 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
1802 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
1803
1804 2013-02-05 Richard Biener <rguenther@suse.de>
1805
1806 PR tree-optimization/53342
1807 PR tree-optimization/53185
1808 * tree-vectorizer.h (vect_check_strided_load): Remove.
1809 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
1810 not disallow peeling for vectorized strided loads.
1811 (vect_check_strided_load): Make static and simplify.
1812 (vect_analyze_data_refs): Adjust.
1813 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
1814 correctly when vectorizing strided loads.
1815
1816 2013-02-05 Richard Biener <rguenther@suse.de>
1817
1818 * doc/install.texi: Refer to ISL, not PPL.
1819
1820 2013-02-05 Jan Hubicka <jh@suse.cz>
1821
1822 PR tree-optimization/55789
1823 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
1824
1825 2013-02-05 Jan Hubicka <jh@suse.cz>
1826
1827 PR tree-optimization/55789
1828 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
1829 the dead call anyway.
1830
1831 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
1832
1833 PR sanitizer/55374
1834 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
1835
1836 2013-02-04 Alexander Potapenko <glider@google.com>
1837 Jack Howarth <howarth@bromo.med.uc.edu>
1838 Jakub Jelinek <jakub@redhat.com>
1839
1840 PR sanitizer/55617
1841 * config/darwin.c (sort_ctor_records): Stabilized qsort
1842 on constructor priority by using original position.
1843 (finalize_ctors): New routine to sort constructors by
1844 priority before use in assemble_integer.
1845 (machopic_asm_out_constructor): Use finalize_ctors if needed.
1846
1847 2013-02-04 Jakub Jelinek <jakub@redhat.com>
1848
1849 PR libstdc++/54314
1850 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
1851 about visibility on artificial decls.
1852 * config/sol2.c (solaris_assemble_visibility): Likewise.
1853
1854 2013-02-04 Kai Tietz <ktietz@redhat.com>
1855
1856 PR target/56186
1857 * config/i386/i386.c (function_value_ms_64): Add additional valtype
1858 argument and improve checking of return-argument types for 16-byte
1859 modes.
1860 (ix86_function_value_1): Add additional valtype argument on call
1861 of function_value_64.
1862 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
1863 handling infunction_value_64 function.
1864
1865 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
1866
1867 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
1868
1869 2013-02-04 Richard Biener <rguenther@suse.de>
1870
1871 PR tree-optimization/56188
1872 * tree-ssa-structalias.c (label_visit): Consider case with
1873 initially non-empty points-to set.
1874 (perform_var_substitution): Dump node mapping and clean up.
1875
1876 2013-02-04 Richard Guenther <rguenther@suse.de>
1877
1878 PR lto/56168
1879 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
1880 node prevail as last resort.
1881 (lto_symtab_merge_decls): Remove guard on LTRANS here.
1882 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
1883
1884 2013-02-04 Richard Biener <rguenther@suse.de>
1885
1886 PR tree-optimization/56113
1887 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
1888 Merge into ...
1889 (equiv_class_lookup_or_add): ... this.
1890 (label_visit): Adjust and fix error in previous patch.
1891 (perform_var_substitution): Adjust.
1892
1893 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
1894
1895 * config/sh/divtab.c: Fix formatting and comments throughout the file.
1896 * config/sh/sh4-300.md: Likewise.
1897 * config/sh/sh4a.md: Likewise.
1898 * config/sh/constraints.md: Likewise.
1899 * config/sh/sh.md: Likewise.
1900 * config/sh/netbsd-elf.h: Likewise.
1901 * config/sh/predicates.md: Likewise.
1902 * config/sh/sh-protos.h: Likewise.
1903 * config/sh/ushmedia.h: Likewise.
1904 * config/sh/linux.h: Likewise.
1905 * config/sh/sh.c: Likewise.
1906 * config/sh/superh.h: Likewise.
1907 * config/sh/elf.h: Likewise.
1908 * config/sh/sh4.md: Likewise.
1909 * config/sh/sh.h: Likewise.
1910
1911 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1912
1913 * config/pa/constraints.md: Adjust unused letters. Change "T"
1914 constraint to match_test floating_point_store_memory_operand().
1915 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
1916 (base14_operand): New.
1917 (floating_point_store_memory_operand): New.
1918 (integer_store_memory_operand): Revise to use base14_operand and
1919 reg_plus_base_memory_operand.
1920 (move_dest_operand): Allow symbolic_memory_operands.
1921 (symbolic_memory_operand): Check for LO_SOM.
1922 (symbolic_operand): Change default case to break.
1923 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
1924 CONST_DOUBLE values to be reloaded by putting them into memory when
1925 the destination is a floating point register.
1926 (movdf): Remove code to handle CONST_DOUBLE.
1927 (movsf): Likewise.
1928 (reload_indf_r1): New.
1929 (reload_insf_r1): New.
1930 Consistently use "Q" and "T" constraints with integer and floating
1931 point move instructions, respectively.
1932 (movdi): Remove FAIL.
1933 Change predicate for source operand unamed DImode move from
1934 general_operand to move_src_operand.
1935 (umulsidi3): Change predicate for destination operand to
1936 register_operand.
1937 Likewise for similar unamed patterns.
1938 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
1939 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
1940 (hppa_legitimize_address): Simplify mask calculation.
1941 (pa_emit_move_sequence): Revised handling of secondary reloads from
1942 REG+D addresses for floating point loads and stores. Directly handle
1943 loading CONST0_RTX (mode) to a floating point register.
1944 (pa_secondary_reload): Handle reloading DF and SFmode constant values
1945 to floating point registers. Don't restrict secondary reloads to
1946 floating point registers to integer modes. Revise some comments and
1947 cleanup some code.
1948 (TARGET_LEGITIMATE_ADDRESS_P): Define.
1949 (pa_legitimate_address_p): New.
1950 (pa_legitimize_reload_address): New.
1951 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
1952 (STRICT_REG_OK_FOR_BASE_P): New.
1953 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
1954 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
1955
1956 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
1957 Andrew Dixie <andrewd@gentrack.com>
1958
1959 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
1960 flag set.
1961
1962 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
1963
1964 * expmed.c (extract_bit_field_1): Pass the full width of the
1965 structure to get_best_reg_extraction_insn.
1966
1967 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
1968
1969 PR target/54601
1970 * configure.ac (use_cxa_atexit): Add AIX.
1971 * configure: Regenerate.
1972
1973 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
1974
1975 2013-02-01 Jakub Jelinek <jakub@redhat.com>
1976
1977 PR debug/54793
1978 * final.c (need_profile_function): New variable.
1979 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
1980 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
1981 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
1982 notes, targetm.asm_out.function_prologue doesn't emit anything,
1983 HAVE_prologue and profiler should be emitted before prologue,
1984 set need_profile_function instead of emitting it.
1985 (final_scan_insn): If need_profile_function, emit
1986 profile_function on the first NOTE_INSN_BASIC_BLOCK or
1987 NOTE_INSN_FUNCTION_BEG note.
1988
1989 2013-02-01 Richard Henderson <rth@redhat.com>
1990
1991 * config/rs6000/rs6000.md (smulditi3): New.
1992 (umulditi3): New.
1993
1994 * config/alpha/alpha.md (umulditi3): New.
1995
1996 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
1997
1998 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
1999 (ASM_OUTPUT_ALIGNED_LOCAL): New.
2000
2001 2013-02-01 Richard Biener <rguenther@suse.de>
2002
2003 PR tree-optimization/56113
2004 * tree-ssa-structalias.c (label_visit): Reduce work for
2005 single-predecessor nodes.
2006
2007 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
2008
2009 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
2010 range isn't testing for zero.
2011
2012 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
2013
2014 PR middle-end/56113
2015 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
2016
2017 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
2018 Nick Clifton <nickc@redhat.com>
2019
2020 * config/v850/constraints.md (Q): Define as a memory constraint.
2021 * config/v850/predicates.md (label_ref_operand): New predicate.
2022 (e3v5_shift_operand): New predicate.
2023 (ior_operator): New predicate.
2024 * config/v850/t-v850: Add e3v5 multilib.
2025 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
2026 (v850_gen_movdi): Prototype.
2027 * config/v850/v850.c: Add support for e3v5 architecture.
2028 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
2029 TARGET_V850E_UP.
2030 (construct_save_jarl): Add e3v5 long JARL support.
2031 (v850_adjust_insn_length): New function. Adjust length of call
2032 insns when using e3v5 instructions.
2033 (v850_gen_movdi): New function: Generate instructions to move a
2034 DImode value.
2035 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
2036 (CPP_SPEC): Define __v850e3v5__ as appropriate.
2037 (TARGET_USE_FPU): Enable for e3v5.
2038 (CONST_OK_FOR_W): New macro.
2039 (ADJUST_INSN_LENGTH): Define.
2040 * config/v850/v850.md (UNSPEC_LOOP): Define.
2041 (attr cpu): Add v850e3v5.
2042 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
2043 (movdi): New pattern.
2044 (movdi_internal): New pattern.
2045 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
2046 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
2047 (cstoresf4): Likewise.
2048 (cstoredf4): Likewise.
2049 (insv): New pattern.
2050 (rotlso3_a): New pattern.
2051 (rotlsi3_b): New pattern
2052 (rotlsi3_v850e3v5): New pattern.
2053 (doloop_begin): New pattern.
2054 (fix_loop_counter): New pattern.
2055 (doloop_end): New pattern.
2056 (branch_normal): Add e3v5 long branch support.
2057 (branch_invert): Likewise.
2058 (branch_z_normal): Likewise.
2059 (branch_z_invert): Likewise.
2060 (branch_nz_normal): Likewise.
2061 (branch_nz_invert): Likewise.
2062 (call_internal_short): Add e3v5 register-indirect JARL support.
2063 (call_internal_long): Likewise.
2064 (call_value_internal_short): Likewise.
2065 (call_value_internal_long): Likewise.
2066 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
2067 (mloop): New option.
2068 * config.gcc: Add support for configuring v840e3v5 target.
2069 * doc/invoke.texi: Document new v850 specific command line options.
2070
2071 2013-01-31 Paul Koning <ni1d@arrl.net>
2072
2073 PR debug/55059
2074 PR debug/54508
2075 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
2076 children if parent is a class.
2077 (prune_unused_types_prune): Don't add DW_AT_declaration.
2078
2079 2013-01-31 Richard Biener <rguenther@suse.de>
2080
2081 PR tree-optimization/56157
2082 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
2083 match up operand with SLP child.
2084
2085 2013-01-31 Jason Merrill <jason@redhat.com>
2086
2087 PR debug/54410
2088 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
2089 parameters the first time.
2090 (gen_scheduled_generic_parms_dies): Check completeness here.
2091
2092 2013-01-31 Richard Biener <rguenther@suse.de>
2093
2094 PR middle-end/53073
2095 * common.opt (faggressive-loop-optimizations): New flag,
2096 enabled by default.
2097 * doc/invoke.texi (faggressive-loop-optimizations): Document.
2098 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
2099 infer_loop_bounds_from_undefined by it.
2100
2101 2013-01-31 Richard Biener <rguenther@suse.de>
2102
2103 PR tree-optimization/56150
2104 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
2105 visit virtual operands.
2106 (find_uses_to_rename_bb): Likewise.
2107
2108 2013-01-31 Richard Biener <rguenther@suse.de>
2109
2110 PR tree-optimization/56150
2111 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
2112 mixed store non-store stmts.
2113
2114 2013-01-30 Jakub Jelinek <jakub@redhat.com>
2115
2116 PR sanitizer/55374
2117 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
2118 LIBASAN_EARLY_SPEC is defined.
2119 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
2120 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
2121 before %o.
2122 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
2123
2124 PR c++/55742
2125 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
2126 invalid args instead of ICEing on it.
2127 (ix86_valid_target_attribute_tree): Return error_mark_node if
2128 ix86_valid_target_attribute_inner_p failed.
2129 (ix86_valid_target_attribute_p): Return false only if
2130 ix86_valid_target_attribute_tree returned error_mark_node. Allow
2131 target("default") attribute.
2132 (sorted_attr_string): Change argument from const char * to tree,
2133 merge in all target attribute arguments rather than just one.
2134 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
2135 instead of free. Avoid using strcat.
2136 (ix86_mangle_function_version_assembler_name): Mangle
2137 target("default") as if no target attribute is present. Adjust
2138 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
2139 instead of xmalloc and XDELETEVEC instead of free.
2140 (ix86_function_versions): Don't return true if one of the decls
2141 doesn't have target attribute. If they don't and one of the decls
2142 is DECL_FUNCTION_VERSIONED, report an error. Adjust
2143 sorted_attr_string caller. Use XDELETEVEC instead of free.
2144 (ix86_supports_function_versions): Remove.
2145 (make_name): Fix up formatting.
2146 (make_dispatcher_decl): Remove resolver_name and its initialization.
2147 Avoid leaking memory.
2148 (is_function_default_version): Return true if there is
2149 target("default") attribute rather than no target attribute at all.
2150 (make_resolver_func): Avoid leaking memory.
2151 (ix86_generate_version_dispatcher_body): Likewise.
2152 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
2153 * target.def (supports_function_versions): Remove.
2154 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
2155 * doc/tm.texi: Regenerated.
2156
2157 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
2158
2159 PR rtl-optimization/56144
2160 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
2161 for values with side effects.
2162
2163 2013-01-30 Richard Biener <rguenther@suse.de>
2164
2165 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
2166 (sparseset_pop): Likewise.
2167 * cfganal.c (compute_idf): Likewise. Increase work-stack size
2168 to be able to use quick_push in the worker loop.
2169
2170 2013-01-30 Marek Polacek <polacek@redhat.com>
2171
2172 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
2173
2174 2013-01-30 Richard Biener <rguenther@suse.de>
2175
2176 PR lto/56147
2177 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
2178
2179 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
2180
2181 PR tree-optimization/56064
2182 * fixed-value.c (fixed_from_double_int): New function.
2183 * fixed-value.h (fixed_from_double_int): New prototype.
2184 (const_fixed_from_double_int): New static inline function.
2185 * fold-const.c (native_interpret_fixed): New static function.
2186 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
2187 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
2188 (native_encode_fixed): New static function.
2189 (native_encode_expr) <FIXED_CST>: Use it.
2190 (native_interpret_int): Move double_int worker code to...
2191 * double-int.c (double_int::from_buffer): ...this new static method.
2192 * double-int.h (double_int::from_buffer): Prototype it.
2193
2194 2013-01-30 Richard Biener <rguenther@suse.de>
2195
2196 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
2197 New pointer-map and obstack.
2198 (init_alias_vars): Allocate pointer-map and obstack.
2199 (delete_points_to_sets): Free them.
2200 (find_what_var_points_to): Cache result.
2201 (find_what_p_points_to): Adjust for changed interface of
2202 find_what_var_points_to.
2203 (compute_points_to_sets): Likewise.
2204 (ipa_pta_execute): Likewise.
2205
2206 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2207
2208 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
2209 * configure: Regenerate.
2210 * config.in: Regenerate.
2211 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
2212 #nobits/#progbits if supported.
2213
2214 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
2215
2216 PR target/56121
2217 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
2218 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
2219 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
2220
2221 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2222
2223 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
2224 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
2225
2226 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2227
2228 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
2229 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
2230
2231 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2232
2233 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
2234 declaration.
2235 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
2236 * config/arm/cortex-a7.md: New bypasses using
2237 arm_mac_accumulator_is_result.
2238
2239 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2240
2241 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
2242 (cortex_a7_neon_mla): Likewise.
2243 (cortex_a7_fpfmad): New reservation.
2244 (cortex_a7_fpmacs): Use ffmas and update required units.
2245 (cortex_a7_fpmuld): Update required units and latency.
2246 (cortex_a7_fpmacd): Likewise.
2247 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
2248 (cortex_a7_neon). Likewise.
2249 (bypass) Update participating units.
2250
2251 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2252
2253 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
2254 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
2255 from fmac to ffma.
2256 * config/arm/vfp11.md (vfp_farith): Use ffmas.
2257 (vfp_fmul): Use ffmad.
2258 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
2259 (cortex_r4_fmacd): Use ffmad.
2260 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
2261 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
2262 (cortex_a9_fmacd): Use ffmad.
2263 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
2264 (cortex_a8_vfp_macd): Use ffmad.
2265 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
2266 (cortex_a5_fpmacd): Use ffmad.
2267 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
2268 (cortex_a15_vfp_macd): Use ffmad.
2269 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
2270
2271 2013-01-29 Jason Merrill <jason@redhat.com>
2272
2273 PR libstdc++/54314
2274 * varasm.c (default_assemble_visibility): Don't warn about
2275 visibility on artificial decls.
2276
2277 2013-01-29 Richard Biener <rguenther@suse.de>
2278
2279 PR tree-optimization/56113
2280 * tree-ssa-structalias.c (equiv_class_lookup): Also return
2281 the bitmap leader.
2282 (label_visit): Free duplicate bitmaps and record the leader instead.
2283 (perform_var_substitution): Adjust.
2284
2285 2013-01-29 Richard Biener <rguenther@suse.de>
2286
2287 PR tree-optimization/55270
2288 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
2289 the CFG, schedule loops for fixup.
2290
2291 2013-01-29 Nick Clifton <nickc@redhat.com>
2292
2293 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
2294 SP_REG.
2295
2296 2013-01-28 Leif Ekblad <leif@rdos.net>
2297
2298 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
2299 * config/i386/i386.h (TARGET_RDOS): New macro.
2300 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
2301 * config/i386/i386.c (ix86_option_override_internal): For 64bit
2302 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
2303 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
2304 DEFAULT_LARGE_SECTION_THRESHOLD.
2305 * config/i386/i386.md (R14_REG, R15_REG): New constants.
2306 * config/i386/rdos.h: New file.
2307 * config/i386/rdos64.h: New file.
2308
2309 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
2310
2311 PR other/54814
2312 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
2313 TEST_HARD_REG_BIT.
2314
2315 2013-01-28 Jakub Jelinek <jakub@redhat.com>
2316
2317 PR rtl-optimization/56117
2318 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
2319 call cselib_lookup_from_insn on the MEM before calling
2320 add_insn_mem_dependence.
2321
2322 2013-01-28 Richard Biener <rguenther@suse.de>
2323
2324 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
2325 to a stmt that didn't have one.
2326 (copy_phis_for_bb): Likewise for PHI arguments.
2327 (copy_debug_stmt): Likewise for debug stmts.
2328
2329 2013-01-28 Richard Biener <rguenther@suse.de>
2330
2331 PR tree-optimization/56034
2332 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
2333 (partition_builtin_p): Adjust.
2334 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
2335 it is the last partition.
2336 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
2337 up the vertex for the definition.
2338 (classify_partition): Classify whether a partition is a
2339 PKIND_REDUCTION, thus has uses outside of the loop.
2340 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
2341 Merge all PKIND_REDUCTION partitions into the last partition.
2342 (tree_loop_distribution): Seed partitions from reductions as well.
2343
2344 2013-01-28 Jakub Jelinek <jakub@redhat.com>
2345
2346 PR tree-optimization/56125
2347 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
2348 pow(x,c) into sqrt(x) * powi(x, n/2) or
2349 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
2350 optimizing for size.
2351 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
2352 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
2353 integer.
2354
2355 PR tree-optimization/56094
2356 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
2357 to UNKNOWN_LOCATION while gimplifying expr.
2358
2359 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
2360
2361 PR target/56114
2362 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
2363 operand 0 in movabs insn template for -masm=intel asm alternative.
2364 (*movabs<mode>_2): Ditto for operand 1.
2365
2366 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
2367
2368 PR target/54663
2369 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
2370 of microblaze-c.o
2371
2372 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2373
2374 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
2375 tm_file.
2376
2377 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2378
2379 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
2380 Undef to avoid warning.
2381
2382 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2383
2384 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
2385 * configure: Regenerate.
2386
2387 2013-01-25 Jakub Jelinek <jakub@redhat.com>
2388
2389 PR tree-optimization/56098
2390 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
2391 for stmts with volatile ops.
2392 (cond_store_replacement): Don't optimize if assign has volatile ops.
2393 (cond_if_else_store_replacement_1): Don't optimize if either
2394 then_assign or else_assign have volatile ops.
2395 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
2396 volatile ops.
2397
2398 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
2399
2400 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
2401
2402 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
2403
2404 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
2405 missing ':' in asm example.
2406
2407 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
2408
2409 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
2410 entries into lane and laneq entries.
2411 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
2412 Remove AdvSIMD scalar modes.
2413 (aarch64_sq<r>dmulh_laneq<mode>): New.
2414 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
2415 modes.
2416 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
2417 builtin implementations to relfect changes in RTL in aarch64-simd.md.
2418 * config/aarch64/iterators.md (VCOND): New.
2419 (VCONQ): New.
2420
2421 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
2422
2423 PR target/54222
2424 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
2425 Add NULL LIBNAME argument to existing definitions.
2426 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
2427 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
2428 * config/avr/avr.c (DEF_BUILTIN): Same.
2429 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
2430 (avr_expand_builtin): Expand to a vanilla call if a libgcc
2431 implementation is available (DECL_ASSEMBLER_NAME is set).
2432 (avr_fold_absfx): New static function.
2433 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
2434 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
2435 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
2436 AVR_BUILTIN_ABSLLK.
2437 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
2438 (abshk, absk, abslk, absllk): Provide as static inline functions.
2439
2440 2013-01-25 Marek Polacek <polacek@redhat.com>
2441
2442 PR tree-optimization/56035
2443 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
2444
2445 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
2446
2447 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
2448 (*movtf_internal_rex64): Add (!o,C) alternative
2449 (*movxf_internal_rex64): Ditto.
2450 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
2451
2452 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
2453
2454 * doc/invoke.texi: fix typo.
2455 * doc/objc.texi: fix typo.
2456
2457 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
2458
2459 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
2460 for the first two alternatives.
2461
2462 2013-01-24 Diego Novillo <dnovillo@google.com>
2463
2464 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
2465 (ggc-zone.o): Remove.
2466 * configure.ac: Remove option --with-gc.
2467 * configure: Re-generate.
2468 * doc/install.texi: Remove documentation for --with-gc.
2469 * gengtype.c (write_enum_defn): Remove. Update all users.
2470 (write_Types_process_field): Remove generation of gt_e_* argument.
2471 (output_type_enum): Remove. Update all users.
2472 (write_enum_defn): Remove. Update all users.
2473 (enum alloc_zone): Remove. Update all users.
2474 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
2475 * ggc-common.c (ggc_splay_alloc): Remove first argument.
2476 Update all callers.
2477 (struct ptr_data): Remove field TYPE. Update all users.
2478 (gt_pch_note_object): Remove argument TYPE. Update all users.
2479 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
2480 Update all users.
2481 * ggc-none.c (ggc_alloc_typed_stat): Remove.
2482 (struct alloc_zone): Remove.
2483 (ggc_internal_alloc_zone_stat): Remove.
2484 (ggc_internal_cleared_alloc_zone_stat): Remove.
2485 * ggc-page.c (ggc_alloc_typed_stat): Remove.
2486 (ggc_pch_count_object): Remove last argument. Update all users.
2487 (ggc_pch_alloc_object): Remove last argument. Update all users.
2488 (struct alloc_zone): Remove.
2489 * ggc-zone.c: Remove.
2490 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
2491 (struct alloc_zone): Remove.
2492 (ggc_alloc_typed_stat): Remove.
2493 (ggc_alloc_typed): Remove.
2494 (ggc_splay_alloc): Remove first argument.
2495 (rtl_zone): Remove. Update all users.
2496 (tree_zone): Remove. Update all users.
2497 (tree_id_zone): Remove. Update all users.
2498 (ggc_internal_zone_alloc_stat): Remove. Update all users.
2499 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
2500 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
2501 * tree-ssanames.c: Remove references to zone allocator in comments.
2502
2503 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
2504
2505 * config/avr/avr.c (avr_out_fract): Make register numbers that
2506 might be outside of source operand signed.
2507
2508 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
2509
2510 * config/i386/constraints.md (Yf): New constraint.
2511 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
2512 of f constraint to conditionaly disable x87 register preferences.
2513 (*movdf_internal): Ditto.
2514 (*movsf_internal): Ditto.
2515
2516 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
2517
2518 PR inline-asm/55934
2519 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
2520 that have operands with impossible constraints.
2521 Add a FIXME for a speed-up opportunity.
2522 * lra-constraints.c (process_alt_operands): Verify that a class
2523 selected from constraints on asms is valid for the operand mode.
2524 (curr_insn_transform): Remove incorrect comment.
2525
2526 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
2527
2528 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
2529 TOC operand is a valid symbol ref in the constant pool.
2530
2531 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2532
2533 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
2534
2535 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
2536
2537 PR target/54222
2538 * config/avr/stdfix.h: New file.
2539 * t-avr (stdfix-gcc.h): New rule to build it.
2540 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
2541
2542 2013-01-23 Kostya Serebryany <kcc@google.com>
2543
2544 * config/darwin.h: remove dependency on
2545 CoreFoundation (asan on Mac OS).
2546
2547 2013-01-23 Jakub Jelinek <jakub@redhat.com>
2548
2549 PR target/49069
2550 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
2551 instead of cmpdi_operand for first comparison operand.
2552 Don't assert that comparison operands aren't both constants.
2553
2554 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
2555
2556 * doc/install.texi (Downloading the Source): Update references to
2557 downloading separate components.
2558
2559 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
2560
2561 * doc/extend.texi (__int128): Improve grammar.
2562
2563 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
2564
2565 PR target/56028
2566 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
2567 alternative to (o,r).
2568 (*movdi_internal_rex64): Remove (!o,n) alternative.
2569 (DImode immediate->memory splitter): Remove.
2570 (DImode immediate->memory peephole2): Remove.
2571 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
2572 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
2573 alternative to (!o,*r).
2574 (*movtf_internal_sse): New pattern.
2575 (*movxf_internal_rex64): New pattern.
2576 (*movxf_internal): Disable for TARGET_64BIT.
2577 (*movdf_internal_rex64): Remove (!o,F) alternative.
2578
2579 2013-01-22 Jakub Jelinek <jakub@redhat.com>
2580
2581 PR middle-end/56074
2582 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
2583 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
2584 * tree-vect-loop-manip.c (find_loop_location): Also ignore
2585 stmt locations where LOCATION_LOCUS of the stmt location is
2586 UNKNOWN_LOCATION or BUILTINS_LOCATION.
2587
2588 PR target/55686
2589 * config/i386/i386.md (UNSPEC_STOS): New.
2590 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
2591 *strsetqi_1): Add UNSPEC_STOS.
2592
2593 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
2594
2595 PR c++/56067
2596 * doc/invoke.texi: Remove left over -Wsynth example.
2597
2598 2013-01-21 Jakub Jelinek <jakub@redhat.com>
2599
2600 PR tree-optimization/56051
2601 * fold-const.c (fold_binary_loc): Don't fold
2602 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
2603 a narrowing conversion, or widening conversion from signed
2604 to unsigned.
2605
2606 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
2607
2608 PR rtl-optimization/56023
2609 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
2610 dependent on debug instruction.
2611
2612 2013-01-21 Martin Jambor <mjambor@suse.cz>
2613
2614 PR middle-end/56022
2615 * function.c (allocate_struct_function): Call
2616 invoke_set_current_function_hook earlier.
2617
2618 2013-01-21 Jakub Jelinek <jakub@redhat.com>
2619
2620 * reload1.c (init_reload): Only initialize reload_obstack
2621 during the first call.
2622
2623 2013-01-21 Marek Polacek <polacek@redhat.com>
2624
2625 * cfgloop.c (verify_loop_structure): Fix up grammar.
2626
2627 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
2628
2629 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
2630 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
2631
2632 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2633
2634 PR target/56058
2635 * config/arm/marvell-pj4.md: Update copyright year.
2636 Fix up use of alu to alu_reg and simple_alu_imm.
2637
2638 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
2639
2640 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
2641
2642 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
2643
2644 PR target/55433
2645 * lra-constraints.c (curr_insn_transform): Don't reuse original
2646 insn for secondary memory move when memory mode should be different.
2647
2648 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2649
2650 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
2651 atomic_storedi_1): New patterns.
2652
2653 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2654
2655 btver2 pipeline descriptions.
2656 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
2657 descriptions.
2658 * config/i386/i386.md (btver2_decode): New type attributes.
2659 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
2660 type attributes.
2661 * config/i386/btver2.md: New file describing btver2 pipelines.
2662
2663 2013-01-19 Andrew Pinski <apinski@cavium.com>
2664
2665 PR tree-optimization/52631
2666 * tree-ssa-sccvn (visit_use): Before looking up the original
2667 statement, try looking up the simplified expression.
2668
2669 2013-01-19 Anthony Green <green@moxielogic.com>
2670
2671 * config/moxie/moxie.c (moxie_expand_prologue): Set
2672 current_function_static_stack_size.
2673
2674 2013-01-18 Jakub Jelinek <jakub@redhat.com>
2675
2676 PR tree-optimization/56029
2677 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
2678 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
2679
2680 2013-01-18 Sharad Singhai <singhai@google.com>
2681
2682 PR tree-optimization/55995
2683 * dumpfile.c (dump_loc): Print location only if available.
2684 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
2685
2686 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
2687
2688 PR target/55433
2689 * lra-constraints.c (curr_insn_transform): Reuse original insn for
2690 secondary memory move.
2691 (inherit_reload_reg): Use rclass instead of cl for
2692 check_secondary_memory_needed_p.
2693
2694 2013-01-18 Jakub Jelinek <jakub@redhat.com>
2695
2696 PR middle-end/56015
2697 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
2698 the case where writing real complex part of target modifies op1.
2699
2700 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
2701
2702 * config/aarch64/aarch64-simd.md
2703 (aarch64_vcond_internal<mode>): Handle unordered cases.
2704 * config/aarch64/iterators.md (v_cmp_result): New.
2705
2706 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
2707 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2708
2709 * config/arm/marvell-pj4.md: New file.
2710 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
2711 * config/arm/arm.md (generic_sched): Add marvell_pj4.
2712 (generic_vfp): Likewise.
2713 * config/arm/arm-cores.def: Add marvell-pj4.
2714 * config/arm/arm-tune.md: Regenerate.
2715 * config/arm/arm-tables.opt: Regenerate.
2716 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
2717 * doc/invoke.texi: Document marvell-pj4.
2718
2719 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
2720
2721 * config/aarch64/arm_neon.h: Map scalar types to standard types.
2722
2723 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
2724
2725 PR debug/54114
2726 PR debug/54402
2727 PR debug/49888
2728 * var-tracking.c (negative_power_of_two_p): New.
2729 (global_get_addr_cache, local_get_addr_cache): New.
2730 (get_addr_from_global_cache, get_addr_from_local_cache): New.
2731 (vt_canonicalize_addr): Rewrite using the above. Adjust the
2732 heading comment.
2733 (vt_stack_offset_p): Remove.
2734 (vt_canon_true_dep): Always canonicalize loc's address.
2735 (clobber_overlapping_mems): Make sure we have a MEM.
2736 (local_get_addr_clear_given_value): New.
2737 (val_reset): Clear local cached entries.
2738 (compute_bb_dataflow): Create and release the local cache.
2739 Disable duplicate MEMs clobbering.
2740 (emit_notes_in_bb): Clobber MEMs likewise.
2741 (vt_emit_notes): Create and release the local cache.
2742 (vt_initialize, vt_finalize): Create and release the global
2743 cache, respectively.
2744 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
2745
2746 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
2747
2748 PR libmudflap/53359
2749 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
2750 not found in the symtab.
2751
2752 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
2753
2754 PR debug/56006
2755 PR rtl-optimization/55547
2756 PR rtl-optimization/53827
2757 PR debug/53671
2758 PR debug/49888
2759 * alias.c (offset_overlap_p): New, factored out of...
2760 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
2761 the conservative special case for symbolic constants. Don't
2762 adjust zero sizes on alignment.
2763
2764 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
2765
2766 PR rtl-optimization/52573
2767 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
2768 REG_UNUSED for the same register.
2769
2770 2013-01-17 Richard Biener <rguenther@suse.de>
2771 Marek Polacek <polacek@redhat.com>
2772
2773 PR rtl-optimization/55833
2774 * loop-unswitch.c (unswitch_loops): Move loop verification...
2775 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
2776 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
2777 Set it to true when we're removing a loop from hierarchy tree in
2778 an irreducible region.
2779 (fix_bb_placements): Adjust caller.
2780 (fix_loop_placements): Likewise.
2781
2782 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
2783
2784 * config/avr/builtins.def (DEF_BUILTIN): Factor out
2785 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
2786 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
2787 Remove ID. Adjust comments.
2788 * config/avr/avr-c.c (avr_builtin_name): Remove.
2789 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
2790 * config/avr/avr.c (avr_tolower): New static function.
2791 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
2792 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
2793 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
2794 default expansion.
2795
2796 2013-01-17 Jan Hubicka <jh@suse.cz>
2797
2798 PR tree-optimization/55273
2799 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
2800
2801 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
2802
2803 PR target/55981
2804 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
2805 store through atomic_store<mode>_1.
2806 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
2807
2808 2013-01-17 Martin Jambor <mjambor@suse.cz>
2809
2810 PR tree-optimizations/55264
2811 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
2812 for virtual methods.
2813 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
2814 virtual methods before inlining is over.
2815 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
2816 virtual functions.
2817 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
2818 non-virtual.
2819
2820 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
2821
2822 PR rtl-optimization/56005
2823 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
2824 pending reads for prefetch.
2825
2826 2013-01-16 Ian Bolton <ian.bolton@arm.com>
2827
2828 * config/aarch64/aarch64.md
2829 (*cstoresi_neg_uxtw): New pattern.
2830 (*cmovsi_insn_uxtw): New pattern.
2831 (*<optab>si3_uxtw): New pattern.
2832 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
2833 (*<optab>si3_insn_uxtw): New pattern.
2834 (*bswapsi2_uxtw): New pattern.
2835
2836 2013-01-16 Richard Biener <rguenther@suse.de>
2837
2838 * tree-inline.c (tree_function_versioning): Remove set but
2839 never used variable.
2840
2841 2013-01-16 Richard Biener <rguenther@suse.de>
2842
2843 PR tree-optimization/55964
2844 * tree-flow.h (rename_variables_in_loop): Remove.
2845 (rename_variables_in_bb): Likewise.
2846 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
2847 (copy_loop_before): Adjust and delete update-ssa status.
2848 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
2849 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2850 (rename_variables_in_loop): Remove.
2851 (slpeel_update_phis_for_duplicate_loop): Likewise.
2852 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
2853 use available cfg machinery instead of duplicating it.
2854 Update PHI nodes and perform poor-mans SSA update here.
2855 (slpeel_tree_peel_loop_to_edge): Adjust.
2856
2857 2013-01-16 Richard Biener <rguenther@suse.de>
2858
2859 PR tree-optimization/54767
2860 PR tree-optimization/53465
2861 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
2862 (vrp_visit_phi_node): For PHI arguments coming via backedges
2863 drop all symbolical range information.
2864 (execute_vrp): Compute backedges.
2865
2866 2013-01-16 Richard Biener <rguenther@suse.de>
2867
2868 * doc/install.texi: Update CLooG and ISL requirements to
2869 0.18.0 and 0.11.1.
2870
2871 2013-01-16 Christian Bruel <christian.bruel@st.com>
2872
2873 PR target/55301
2874 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
2875 (broken_move): Handle UNSPECV_SP_SWITCH_B.
2876 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
2877
2878 2013-01-16 DJ Delorie <dj@redhat.com>
2879
2880 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
2881 (UNSPECV_SP_SWITCH_E): New.
2882 (sp_switch_1): Change to an unspec.
2883 (sp_switch_2): Change to an unspec. Don't use post-inc when we
2884 replace $r15.
2885
2886 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
2887
2888 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
2889 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
2890 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
2891 (expand_mem_thread_fence): Ditto.
2892 (expand_mem_signal_fence): Ditto.
2893 (expand_atomic_load): Ditto.
2894 (expand_atomic_store): Ditto.
2895
2896 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
2897
2898 PR rtl-optimization/55547
2899 PR rtl-optimization/53827
2900 PR debug/53671
2901 PR debug/49888
2902 * alias.c (memrefs_conflict_p): Set sizes to negative after
2903 AND adjustments.
2904
2905 2013-01-15 Jakub Jelinek <jakub@redhat.com>
2906
2907 PR target/55940
2908 * function.c (thread_prologue_and_epilogue_insns): Always
2909 add crtl->drap_reg to set_up_by_prologue.set, even if
2910 stack_realign_drap is false.
2911
2912 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2913
2914 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
2915 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
2916 *call): Fix indention.
2917
2918 2013-01-15 Tom de Vries <tom@codesourcery.com>
2919
2920 PR target/55876
2921 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
2922 Update comment.
2923
2924 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
2925
2926 PR rtl-optimization/55153
2927 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
2928
2929 2013-01-15 Martin Jambor <mjambor@suse.cz>
2930
2931 PR tree-optimization/55920
2932 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
2933 accesses as grp_to_be_debug_replaced.
2934
2935 2013-01-15 Jakub Jelinek <jakub@redhat.com>
2936
2937 PR tree-optimization/55920
2938 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
2939 there is non-useless type conversion needed from debug rhs to lhs,
2940 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
2941
2942 2013-01-15 Joseph Myers <joseph@codesourcery.com>
2943 Mikael Pettersson <mikpe@it.uu.se>
2944
2945 PR target/43961
2946 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
2947 Thumb.
2948 (ASM_OUTPUT_CASE_LABEL): Remove.
2949 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
2950 * final.c (shorten_branches): Update alignment of labels before
2951 jump tables if CASE_VECTOR_SHORTEN_MODE.
2952
2953 2013-01-15 Richard Biener <rguenther@suse.de>
2954
2955 PR bootstrap/55961
2956 * system.h: Do not include gmp.h for building host tools.
2957
2958 2013-01-15 Richard Biener <rguenther@suse.de>
2959
2960 PR middle-end/55882
2961 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
2962 account for bitpos when computing alignment.
2963
2964 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
2965
2966 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
2967 (ix86_target_macros_internal): Likewise.
2968
2969 * config/i386/i386.c (m_CORE2I7): Removed.
2970 (m_CORE_HASWELL): New macro.
2971 (m_CORE_ALL): Likewise.
2972 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
2973 (initial_ix86_arch_features): Likewise.
2974 (processor_target_table): Initializations for Core avx2.
2975 (cpu_names): New names "core-avx2".
2976 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
2977 PROCESSOR_CORE_HASWELL.
2978 (ix86_issue_rate): New case.
2979 (ia32_multipass_dfa_lookahead): Likewise.
2980 (ix86_sched_init_global): Likewise.
2981
2982 * config/i386/i386.h (TARGET_HASWELL): New macro.
2983 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
2984 (processor_type): New PROCESSOR_HASWELL.
2985
2986 2013-01-15 Jakub Jelinek <jakub@redhat.com>
2987
2988 PR tree-optimization/55955
2989 * tree-vect-loop.c (vectorizable_reduction): Give up early on
2990 *SHIFT_EXPR and *ROTATE_EXPR codes.
2991
2992 PR tree-optimization/48766
2993 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
2994 -ftrapv disable -fwrapv.
2995
2996 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
2997
2998 PR target/55974
2999 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
3000 etc. to 1 and not to __flash.
3001 Use LL suffix for __INT24_MAX__ with -mint8.
3002 Use ULL suffix for __UINT24_MAX__ with -mint8.
3003
3004 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
3005
3006 * config/avr/avr-arch.h
3007 (struct base_arch_s): Use typedef avr_arch_t instead.
3008 (struct arch_info_s): Use typedef avr_arch_info_t instead.
3009 (struct mcu_type_s): Use typedef avr_mcu_t instead.
3010 * config/avr/avr.c: Same.
3011 * config/avr/avr-devices.c: Same.
3012 * config/avr/driver-avr.c: Same.
3013 * config/avr/gen-avr-mmcu-texi.c: Same.
3014 * config/avr/avr-mcus.def: Adjust comment.
3015
3016 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
3017
3018 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
3019 * config/aarch64/iterators.md (VALLDI): New.
3020
3021 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
3022 Andi Kleen <ak@linux.intel.com>
3023
3024 PR target/55948
3025 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
3026 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
3027 memmodel flag.
3028
3029 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
3030
3031 * config/avr/avr-stdint.h: Remove trailing blanks.
3032 * config/avr/avr-log.h: Same.
3033 * config/avr/avr-arch.h: Same.
3034 * config/avr/avr-devices.c: Same.
3035 * config/avr/avr-dimode.md: Same.
3036 * config/avr/predicates.md: Same.
3037 * config/avr/avr-c.c: Same. And fix typo.
3038
3039 * config/avr/avr-protos.h: Same. And:
3040 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
3041 (init_cumulative_args): Rename to avr_init_cumulative_args.
3042 (expand_prologue): Rename to avr_expand_prologue.
3043 (expand_epilogue): Rename to avr_expand_epilogue.
3044 (adjust_insn_length): Rename to avr_adjust_insn_length.
3045 (notice_update_cc): Rename to avr_notice_update_cc.
3046 (final_prescan_insn): Rename to avr_final_prescan_insn.
3047 * config/avr/avr.c: Same.
3048 * config/avr/avr.h: Same.
3049 * config/avr/avr.md: Remove trailing blanks.
3050 (prologue): Use avr_expand_prologue.
3051 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
3052
3053 2013-01-14 Richard Biener <rguenther@suse.de>
3054
3055 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
3056 verify_location, collect_subblocks): New functions.
3057 (verify_gimple_in_cfg): Verify that locations only reference
3058 BLOCKs in the functions BLOCK tree.
3059
3060 2013-01-14 Richard Biener <rguenther@suse.de>
3061
3062 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
3063 PHI argument.
3064 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
3065 unshare reference.
3066 (insert_out_of_ssa_copy_on_edge): Likewise.
3067 (rewrite_close_phi_out_of_ssa): Likewise.
3068 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
3069 debug expressions.
3070 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
3071 propagated constants.
3072 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
3073 can not be shared.
3074
3075 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
3076
3077 * config/avr/avr-modes.def: Add GPL copyright notice.
3078
3079 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
3080
3081 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
3082 MEMMODEL_MASK to determine memory model.
3083 (atomic_store<mode>): Ditto from operands[2].
3084 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
3085
3086 2013-01-13 Jakub Jelinek <jakub@redhat.com>
3087
3088 PR fortran/55935
3089 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
3090 (fold_gimple_assign): Don't call unshare_expr here.
3091 (fold_ctor_reference): Call unshare_expr.
3092
3093 2013-01-13 Terry Guo <terry.guo@arm.com>
3094
3095 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
3096 * doc/fragments.texi: Document MULTILIB_REUSE.
3097 * gcc.c (multilib_reuse): New internal spec.
3098 (set_multilib_dir): Also search multilib from multilib_reuse.
3099 * genmultilib (tmpmultilib3): Refactor code.
3100 (tmpmultilib4): Ditto.
3101 (multilib_reuse): New multilib argument.
3102
3103 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
3104
3105 * Makefile.in: Update copyright.
3106
3107 2013-01-12 Tom de Vries <tom@codesourcery.com>
3108
3109 PR middle-end/55890
3110 * calls.c (expand_call): Check if arg_nr is valid.
3111
3112 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3113
3114 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
3115 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
3116 documentation. Add missing '__' in front of
3117 __builtin_ia32_packssdw256.
3118
3119 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3120
3121 PR target/55719
3122 * config/s390/s390.c (s390_preferred_reload_class): Do not return
3123 NO_REGS for larl operands.
3124 (s390_reload_larl_operand): Use s390_load_address instead of
3125 emit_move_insn.
3126
3127 2013-01-11 Richard Biener <rguenther@suse.de>
3128
3129 * tree-cfg.c (verify_node_sharing_1): Split out from ...
3130 (verify_node_sharing): ... here.
3131 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
3132
3133 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
3134
3135 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
3136 Substitute TREECHECKING.
3137 * configure: Regenerate.
3138 * Makefile.in (TREECHECKING): New.
3139
3140 2013-01-11 Richard Guenther <rguenther@suse.de>
3141
3142 PR tree-optimization/44061
3143 * tree-vrp.c (extract_range_basic): Compute zero as
3144 value-range for __builtin_constant_p of function parameters.
3145
3146 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
3147
3148 Update copyright years.
3149
3150 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
3151
3152 PR rtl-optimization/55672
3153 * lra-eliminations.c (mark_not_eliminable): Permit addition with
3154 const to be eliminable.
3155
3156 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
3157
3158 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
3159 * configure: Regenerate.
3160
3161 2013-01-10 Richard Biener <rguenther@suse.de>
3162
3163 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
3164
3165 2013-01-10 Richard Biener <rguenther@suse.de>
3166
3167 PR bootstrap/55792
3168 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
3169 locations for virtual PHI arguments.
3170 (rewrite_update_phi_arguments): Likewise.
3171
3172 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
3173
3174 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
3175 on to assembler.
3176
3177 2013-01-10 Jakub Jelinek <jakub@redhat.com>
3178
3179 PR tree-optimization/55921
3180 * tree-complex.c (expand_complex_asm): New function.
3181 (expand_complex_operations_1): Call it for GIMPLE_ASM.
3182
3183 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3184
3185 PR target/55718
3186 * config/s390/s390.c (s390_symref_operand_p)
3187 (s390_loadrelative_operand_p): Merge the two functions.
3188 (s390_check_qrst_address, print_operand_address): Add parameters
3189 to s390_loadrelative_operand_p invokation.
3190 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
3191 (s390_reload_larl_operand, s390_secondary_reload): Use
3192 s390_loadrelative_operand_p instead of s390_symref_operand_p.
3193 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
3194
3195 2013-01-09 Mike Stump <mikestump@comcast.net>
3196
3197 * dse.c (record_store): Remove unnecessary assert.
3198
3199 2013-01-09 Jan Hubicka <jh@suse.cz>
3200
3201 PR tree-optimization/55569
3202 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
3203 * cfgloop.h (scale_loop_profile): Likewise.
3204
3205 2013-01-09 Jan Hubicka <jh@suse.cz>
3206
3207 PR lto/45375
3208 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
3209 functions.
3210 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
3211
3212 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
3213
3214 PR middle-end/55114
3215 * expr.h (maybe_emit_group_store): Declare.
3216 * expr.c (maybe_emit_group_store): New function.
3217 * builtins.c (expand_builtin_int_roundingfn): Call it.
3218 (expand_builtin_int_roundingfn_2): Likewise.
3219
3220 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
3221
3222 PR rtl-optimization/55829
3223 * lra-constraints.c (match_reload): Add code for absent output.
3224 (curr_insn_transform): Add code for reloads of matched inputs
3225 without output.
3226
3227 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
3228
3229 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
3230 attribute of movddup insn to DF.
3231 (*vec_interleave_lowv2df): Ditto.
3232 (vec_dupv2df): Ditto.
3233
3234 2013-01-09 Jan Hubicka <jh@suse.cz>
3235
3236 PR tree-optimiation/55875
3237 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
3238 EVERY_ITERATION parameter.
3239 (number_of_iterations_exit): Check if exit is executed every iteration.
3240 (idx_infer_loop_bounds): Similarly here.
3241 (n_of_executions_at_most): Simplify
3242 to only test for cases where statement is dominated by the
3243 particular bound; handle correctly the "postdominance" test.
3244 (scev_probably_wraps_p): Use max loop iterations info
3245 as a global bound first.
3246
3247 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3248 Nick Clifton <nickc@redhat.com>
3249
3250 * config/v850/v850.md (cbranchsf4): New pattern.
3251 (cstoresf4): New pattern.
3252 (cbranchdf4): New pattern.
3253 (cstoredf4): New pattern.
3254 (movsicc): Disallow floating point comparisons.
3255 (cmpsf_le_insn): Fix order of operators.
3256 (cmpsf_lt_insn): Likewise.
3257 (cmpsf_eq_insn): Likewise.
3258 (cmpdf_le_insn): Likewise.
3259 (cmpdf_lt_insn): Likewise.
3260 (cmpdf_eq_insn): Likewise.
3261 (cmpsf_ge_insn): Use LE comparison.
3262 (cmpdf_ge_insn): Likewise.
3263 (cmpsf_gt_insn): Use LT comparison.
3264 (cmpdf_gt_insn): Likewise.
3265 (cmpsf_ne_insn): Delete pattern.
3266 (cmpdf_ne_insn): Delete pattern.
3267 * config/v850/v850.c (v850_gen_float_compare): Use
3268 gen_cmpdf_eq_insn for NE comparison.
3269 (v850_float_z_comparison_operator)
3270 (v850_float_nz_comparison_operator): Move from here ...
3271 * config/v850/predicates.md: ... to here. Move GT and GE
3272 comparisons into v850_float_z_comparison_operator.
3273 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
3274 Delete prototype.
3275 (v850_float_nz_comparison_operator): Likewise.
3276
3277 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3278
3279 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
3280 with calls to gen_insvsi/gen_insvdi.
3281
3282 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3283
3284 * config/i386/i386.c (initial_ix86_tune_features): Set up
3285 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
3286
3287 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
3288 Jakub Jelinek <jakub@redhat.com>
3289
3290 PR tree-optimization/48189
3291 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
3292 If nitercst is 0, don't predict the exit edge.
3293
3294 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3295
3296 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
3297 in asm_fprintf with reg_names.
3298 (aarch64_print_operand_address): Likewise.
3299 (aarch64_return_addr): Likewise.
3300 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
3301
3302 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3303
3304 * config/pa/pa.h (VAL_U6_BITS_P): Define.
3305 (INT_U6_BITS): Likewise.
3306 * config/pa/predicates.md (uint6_operand): New predicate.
3307 (shift5_operand, shift6_operand): Likewise.
3308 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
3309 arith32_operand.
3310 (lshrdi3): Use shift6_operand.
3311 (shrpsi4, shrpdi4): New insn patterns.
3312 (extzv): Delete expander.
3313 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
3314 predicates in unamed zero extract patterns. Tighten common constraint.
3315 (extv): Delete expander.
3316 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
3317 predicates in unamed sign extract patterns. Tighten common constraint.
3318 (insv): Delete expander.
3319 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
3320 predicates in unamed insert patterns. Tighten common constraint.
3321 Change uint32_operand predicate to uint6_operand predicate in unamed
3322 DImode pattern to insert constant values of type 1...1xxxx.
3323
3324 2013-01-04 Jan Hubicka <jh@suse.cz>
3325
3326 PR tree-optimization/55823
3327 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
3328 issue.
3329
3330 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3331 Uros Bizjak <ubizjak@gmail.com>
3332
3333 PR rtl-optimization/55845
3334 * df-problems.c (can_move_insns_across): Stop scanning at
3335 volatile_insn_p source instruction or give up if
3336 across_from .. across_to range contains any volatile_insn_p
3337 instructions.
3338
3339 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
3340
3341 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
3342 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
3343 Declare.
3344 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
3345 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
3346
3347 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3348
3349 PR fortran/55341
3350 * asan.c (asan_clear_shadow): New function.
3351 (asan_emit_stack_protection): Use it.
3352
3353 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
3354
3355 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
3356 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
3357 with tab instead of space.
3358
3359 2013-01-08 Nick Clifton <nickc@redhat.com>
3360
3361 * config/rl78/rl78.c (rl78_expand_prologue): Always select
3362 register bank 0 at the start of an interrupt handler.
3363 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
3364 MDBH registers.
3365
3366 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
3367
3368 * config/aarch64/aarch64-simd.md
3369 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
3370 (aarch64_simd_bsl): Likewise.
3371 (aarch64_vcond_internal<mode>): Likewise.
3372 (vcond<mode><mode>): Likewise.
3373 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
3374 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
3375
3376 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
3377
3378 * config/aarch64/aarch64-builtins.c
3379 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
3380
3381 2013-01-08 Martin Jambor <mjambor@suse.cz>
3382
3383 PR debug/55579
3384 * tree-sra.c (analyze_access_subtree): Return true also after
3385 potentially creating a debug-only replacement.
3386
3387 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3388
3389 PR middle-end/55890
3390 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
3391
3392 PR tree-optimization/54120
3393 * tree-vrp.c (range_fits_type_p): Don't allow
3394 src_precision < precision from signed vr to unsigned_p
3395 if vr->min or vr->max is negative.
3396 (simplify_float_conversion_using_ranges): Test can_float_p
3397 against CODE_FOR_nothing.
3398
3399 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3400 Richard Biener <rguenther@suse.de>
3401
3402 PR middle-end/55851
3403 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
3404 types instead of just INTEGER_TYPE types.
3405
3406 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
3407
3408 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
3409 TF_SIZE): Define.
3410
3411 2013-01-07 Steve Ellcey <sellcey@mips.com>
3412
3413 PR target/42661
3414 * config/mips/mips.opt: Change mad to mmad to match documentation.
3415
3416 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3417
3418 PR target/55897
3419 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
3420 .progmemx.data now.
3421
3422 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3423
3424 PR target/55897
3425 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
3426 (avr_addrspace_t): Add .section_name field.
3427 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
3428 array size.
3429 (avr_addrspace): Same. Initialize .section_name. Remove last
3430 NULL entry. Put __memx into .progmemx.data.
3431 (progmem_section_prefix): Remove.
3432 (avr_asm_init_sections): No need to initialize progmem_section.
3433 (avr_asm_named_section): Use avr_addrspace[].section_name to get
3434 section name prefix.
3435 (avr_asm_select_section): Ditto. And use get_unnamed_section to
3436 retrieve the progmem section.
3437 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
3438 boundary to run over avr_addrspace[].
3439 (avr_register_target_pragmas): Ditto.
3440
3441 2013-01-06 Jakub Jelinek <jakub@redhat.com>
3442
3443 * varasm.c (output_constant_def_contents): For asan_protect_global
3444 protected strings, adjust DECL_ALIGN if needed, before testing for
3445 anchored symbols.
3446 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
3447 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
3448 normal decls.
3449 (output_object_block): For asan protected decls, emit asan padding
3450 after their contents.
3451 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
3452 (asan_finish_file): Test it here instead.
3453
3454 2013-01-07 Nick Clifton <nickc@redhat.com>
3455 Matthias Klose <doko@debian.org>
3456 Doug Kwan <dougkwan@google.com>
3457 H.J. Lu <hongjiu.lu@intel.com>
3458
3459 PR driver/55470
3460 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
3461
3462 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
3463
3464 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
3465
3466 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
3467
3468 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
3469
3470 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3471
3472 PR target/54461
3473 * doc/install.texi (Cross-Compiler-Specific Options): Document
3474 --with-avrlibc.
3475
3476 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
3477
3478 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
3479 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
3480 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
3481 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
3482 vqmovun_high_s64): Fix source operand number and update copyright.
3483
3484 2013-01-07 Richard Biener <rguenther@suse.de>
3485
3486 PR middle-end/55890
3487 * gimple.h (gimple_call_builtin_p): New overload.
3488 * gimple.c (validate_call): New function.
3489 (gimple_call_builtin_p): Likewise.
3490 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3491 Use gimple_call_builtin_p.
3492 (find_func_clobbers): Likewise.
3493 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
3494 (strlen_optimize_stmt): Likewise.
3495
3496 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
3497
3498 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
3499 (vld1q_dup_*): Likewise.
3500 (vld1_*): Likewise.
3501 (vld1q_*): Likewise.
3502 (vld1_lane_*): Likewise.
3503 (vld1q_lane_*): Likewise.
3504
3505 2013-01-07 Richard Biener <rguenther@suse.de>
3506
3507 * lto-streamer.h (LTO_minor_version): Bump to 2.
3508
3509 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
3510
3511 * config/aarch64/aarch64-protos.h
3512 (aarch64_const_double_zero_rtx_p): Rename to...
3513 (aarch64_float_const_zero_rtx_p): ...this.
3514 (aarch64_float_const_representable_p): New.
3515 (aarch64_output_simd_mov_immediate): Likewise.
3516 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
3517 move immediate case.
3518 * config/aarch64/aarch64.c
3519 (aarch64_const_double_zero_rtx_p): Rename to...
3520 (aarch64_float_const_zero_rtx_p): ...this.
3521 (aarch64_print_operand): Allow printing of new constants.
3522 (aarch64_valid_floating_const): New.
3523 (aarch64_legitimate_constant_p): Check for valid floating-point
3524 constants.
3525 (aarch64_simd_valid_immediate): Likewise.
3526 (aarch64_vect_float_const_representable_p): New.
3527 (aarch64_float_const_representable_p): Likewise.
3528 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
3529 (aarch64_output_simd_mov_immediate): New.
3530 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
3531 (*movdf_aarch64): Likewise.
3532 * config/aarch64/constraints.md (Ufc): New.
3533 (Y): call aarch64_float_const_zero_rtx.
3534 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
3535
3536 2013-01-07 Richard Biener <rguenther@suse.de>
3537
3538 PR tree-optimization/55888
3539 PR tree-optimization/55862
3540 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
3541 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
3542 not if it is contained therein.
3543
3544 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3545
3546 * config/avr/t-avr: Typo.
3547
3548 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3549
3550 PR55243
3551 * config/avr/t-avr: Don't automatically rebuild
3552 $(srcdir)/config/avr/t-multilib
3553 $(srcdir)/config/avr/avr-tables.opt
3554 $(srcdir)/doc/avr-mmcu.texi
3555 (avr-mcus): New phony target to build them on request.
3556 (s-avr-mlib, s-avr-mmcu-texi): Remove.
3557 * avr/avr-mcus.def: Adjust comments.
3558
3559 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
3560
3561 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
3562
3563 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
3564
3565 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
3566
3567 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
3568
3569 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
3570
3571 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
3572
3573 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
3574 to generate profiling.
3575 * config/rs6000/aix64.h (LIB_SPEC): Same.
3576
3577 2013-01-04 Andrew Pinski <apinski@cavium.com>
3578
3579 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
3580 New function.
3581 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3582
3583 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
3584
3585 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
3586 unconditionally.
3587 (ix86_expand_move): Ditto.
3588 (ix86_zero_extend_to_Pmode): Ditto.
3589 (ix86_expand_call): Ditto.
3590 (ix86_expand_special_args_builtin): Ditto.
3591 (ix86_expand_builtin): Ditto.
3592
3593 2013-01-04 Richard Biener <rguenther@suse.de>
3594
3595 PR tree-optimization/55862
3596 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
3597 translating them through PHI nodes.
3598
3599 2013-01-04 Martin Jambor <mjambor@suse.cz>
3600
3601 PR tree-optimization/55755
3602 * tree-sra.c (sra_modify_assign): Do not check that an access has no
3603 children when trying to avoid producing a VIEW_CONVERT_EXPR.
3604
3605 2013-01-04 Marek Polacek <polacek@redhat.com>
3606
3607 PR middle-end/55859
3608 * opts.c (default_options_optimization): Clarify error message.
3609
3610 2013-01-04 Richard Biener <rguenther@suse.de>
3611
3612 PR middle-end/55863
3613 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
3614 reassociation.
3615
3616 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3617
3618 PR target/53789
3619 * config/pa/pa.md (movsi): Revert previous change.
3620 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
3621 references.
3622
3623 2013-01-03 Richard Henderson <rth@redhat.com>
3624
3625 * config/i386/i386.c (ix86_expand_move): Always assign to op1
3626 after eliminating TLS symbols.
3627
3628 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
3629
3630 PR bootstrap/50167
3631 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
3632 * graphite-poly.c (debug_gmp_value): Likewise.
3633
3634 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
3635
3636 PR target/55712
3637 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
3638 selected code model, define __code_mode_small__, __code_model_medium__,
3639 __code_model_large__, __code_model_32__ or __code_model_kernel__.
3640 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
3641 xchg temporary register with %k. Declare temporary register as
3642 early clobbered.
3643 [__x86_64__]: For medium and large code models, preserve %rbx register.
3644
3645 2013-01-03 Richard Biener <rguenther@suse.de>
3646
3647 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
3648 (dump_subscript): Adjust.
3649 (finalize_ddr_dependent): Do not dump redundant info.
3650 (analyze_siv_subscript): Adjust.
3651 (subscript_dependence_tester): Likewise.
3652 (compute_affine_dependence): Likewise.
3653
3654 2013-01-03 Richard Biener <rguenther@suse.de>
3655
3656 Revert
3657 2013-01-03 Richard Biener <rguenther@suse.de>
3658
3659 PR tree-optimization/55857
3660 * tree-vect-stmts.c (vectorizable_load): Do not setup
3661 re-alignment for invariant loads.
3662
3663 2013-01-02 Richard Biener <rguenther@suse.de>
3664
3665 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
3666 invariant load do not generate a vector load from the scalar location.
3667
3668 2013-01-03 Richard Biener <rguenther@suse.de>
3669
3670 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
3671 for not vectorizing.
3672 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
3673 not build INDIRECT_REFs, call get_name once only.
3674 (vect_create_data_ref_ptr): Likewise. Dump base object kind
3675 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
3676
3677 2013-01-03 Richard Biener <rguenther@suse.de>
3678
3679 PR tree-optimization/55857
3680 * tree-vect-stmts.c (vectorizable_load): Do not setup
3681 re-alignment for invariant loads.
3682
3683 2013-01-03 Richard Biener <rguenther@suse.de>
3684
3685 PR lto/55848
3686 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
3687 prefer a built-in decl.
3688
3689 2013-01-03 Jakub Jelinek <jakub@redhat.com>
3690
3691 * gcc.c (process_command): Update copyright notice dates.
3692 * gcov.c (print_version): Likewise.
3693 * gcov-dump.c (print_version): Likewise.
3694
3695 PR rtl-optimization/55838
3696 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
3697 iv0.step, iv1.step and step.
3698
3699 2013-01-03 Jakub Jelinek <jakub@redhat.com>
3700 Marc Glisse <marc.glisse@inria.fr>
3701
3702 PR tree-optimization/55832
3703 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
3704 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
3705 integer_{one,zero}_node.
3706
3707 2013-01-03 Jakub Jelinek <jakub@redhat.com>
3708
3709 PR debug/54402
3710 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
3711 * var-tracking.c (reverse_op): Don't add reverse ops to
3712 VALUEs that have already
3713 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
3714
3715 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
3716
3717 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
3718
3719 2013-01-02 Teresa Johnson <tejohnson@google.com>
3720
3721 * dumpfile.c (dump_loc): Print filename with location.
3722 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
3723 new location_t parameter to emit complete unroll message with
3724 new dump framework.
3725 (canonicalize_loop_induction_variables): Compute loops location
3726 and pass to try_unroll_loop_completely.
3727 * loop-unroll.c (report_unroll_peel): New function.
3728 (peel_loops_completely): Use new dump format with location
3729 for main dumpfile message, and invoke report_unroll_peel on success.
3730 (decide_unrolling_and_peeling): Ditto.
3731 (decide_peel_once_rolling): Remove old dumpfile message subsumed
3732 by report_unroll_peel.
3733 (decide_peel_completely): Ditto.
3734 (decide_unroll_constant_iterations): Ditto.
3735 (decide_unroll_runtime_iterations): Ditto.
3736 (decide_peel_simple): Ditto.
3737 (decide_unroll_stupid): Ditto.
3738 * cfgloop.c (get_loop_location): New function.
3739 * cfgloop.h (get_loop_location): Declare.
3740
3741 2013-01-02 Sriraman Tallam <tmsriram@google.com>
3742
3743 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
3744 NULL.
3745
3746 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3747
3748 PR middle-end/55198
3749 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
3750 BLKmode objects when EXPAND_MEMORY is specified.
3751
3752 2013-01-02 Sriraman Tallam <tmsriram@google.com>
3753
3754 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
3755 in loop predicate.
3756 (fold_builtin_cpu): Do not share cpu model decls across statements.
3757
3758 2013-01-02 Jason Merrill <jason@redhat.com>
3759
3760 PR c++/55804
3761 * tree.c (build_array_type_1): Revert earlier change.
3762
3763 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
3764
3765 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
3766 "cortex-a57".
3767 * config/aarch64/aarch64-tune.md: Re-generate.
3768
3769 2013-01-02 Richard Biener <rguenther@suse.de>
3770
3771 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
3772 invariant load do not generate a vector load from the scalar location.
3773
3774 2013-01-02 Richard Biener <rguenther@suse.de>
3775
3776 PR bootstrap/55784
3777 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
3778 * configure: Regenerate.
3779
3780 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3781
3782 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
3783 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
3784 (expand_builtin_int_roundingfn_2): Keep the original target around
3785 for the fallback case.
3786
3787 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3788
3789 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
3790 to be clear for sign changes.
3791
3792 2013-01-01 Jan Hubicka <jh@suse.cz>
3793
3794 * ipa-inline-analysis.c: Fix formatting.
3795
3796 2013-01-01 Jakub Jelinek <jakub@redhat.com>
3797
3798 PR tree-optimization/55831
3799 * tree-vect-loop.c (get_initial_def_for_induction): Use
3800 gsi_after_labels instead of gsi_start_bb.
3801 \f
3802 Copyright (C) 2013 Free Software Foundation, Inc.
3803
3804 Copying and distribution of this file, with or without modification,
3805 are permitted in any medium without royalty provided the copyright
3806 notice and this notice are preserved.