re PR middle-end/52074 (ICE: RTL flag check: MEM_VOLATILE_P used with unexpected...
[gcc.git] / gcc / ChangeLog
1 2012-02-07 Jakub Jelinek <jakub@redhat.com>
2
3 PR middle-end/52074
4 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
5 if modifier < EXPAND_SUM call force_operand on the result.
6
7 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
8
9 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
10 adding __forwarder_dst__ prefix if a forwarder_section attribute is
11 present.
12 (epiphany_function_type): Replace types for specific interrupts with
13 EPIPHANY_FUNCTION_INTERRUPT.
14 (EPIPHANY_INTERRUPT_P): Update.
15 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
16 New static function.
17 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
18 <disinterrupt>: Affects type identity.
19 (epiphany_handle_interrupt_attribute): Handle variable number of
20 arguments.
21 (epiphany_compute_function_type): Update for new
22 epiphany_function_type definition.
23 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
24 handlers with a longcall forwarder.
25 (epiphany_start_function): Handle multiple interrupt arguments and/or
26 forwarder_section attribute.
27
28 2012-02-07 Alan Modra <amodra@gmail.com>
29
30 PR target/52107
31 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
32 subregs of TFmode.
33
34 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35
36 PR tree-optimization/50969
37 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
38 use vec_perm rather than vector_stmt.
39 (vect_model_load_cost): Likewise.
40 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
41 vec_perm to be the same as other vector statements.
42 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
43 cost of vec_perm for TARGET_VSX.
44
45 2012-02-06 Richard Guenther <rguenther@suse.de>
46
47 PR tree-optimization/52115
48 * tree-sra.c (access_has_replacements_p): New function.
49 (sra_modify_assign): Use it to decide whether a use is uninitialized.
50
51 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
52
53 PR middle-end/52047
54 * trans-mem.c (expand_call_tm): Add an assertion.
55 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
56 functions.
57
58 2012-02-06 Richard Guenther <rguenther@suse.de>
59
60 PR tree-optimization/50955
61 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
62 raise cost of expressions that replace an address with an
63 expression based on a different pointer.
64
65 2012-02-06 Jakub Jelinek <jakub@redhat.com>
66
67 PR target/52129
68 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
69 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
70
71 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
72
73 PR c++/48680
74 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
75 -Weffc++ and specify guidelines come from second edition.
76
77 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
78
79 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
80 (sibcall_value_multiple_internal, call_split, call_internal_direct)
81 (call_direct_split, call_value_split, call_value_internal_direct)
82 (call_value_direct_split, call_value_multiple_split): Use jal and
83 jal_macro attributes.
84
85 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
86
87 * reload1.c (reload_regs_reach_end_p): Replace with...
88 (reload_reg_rtx_reaches_end_p): ...this function.
89 (new_spill_reg_store): Update commentary.
90 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
91 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
92 before setting new_spill_reg_store.
93 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
94 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
95 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
96 for non-spill reload registers.
97
98 2012-02-05 Ira Rosen <irar@il.ibm.com>
99
100 PR tree-optimization/52091
101 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
102 (vect_is_simple_use_1): Likewise.
103 * tree-vect-loop.c (vectorizable_reduction): Update calls
104 to vect_is_simple_use_1 and vect_is_simple_use.
105 (vectorizable_live_operation): Likewise.
106 * tree-vect-patterns.c (widened_name_p,
107 vect_recog_vector_vector_shift_pattern, check_bool_pattern):
108 Likewise.
109 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
110 vectorizable_call, vectorizable_conversion,
111 vectorizable_assignment, vectorizable_shift,
112 vectorizable_operation, vectorizable_store, vectorizable_load):
113 Likewise.
114 (vect_is_simple_cond): Add an argument, pass it to
115 vect_is_simple_use_1.
116 (vectorizable_condition): Update calls to vect_is_simple_cond,
117 vect_is_simple_use.
118 (vect_is_simple_use): Add an argument, the statement in which
119 OPERAND is used. Check that if OPERAND's def stmt is a double
120 reduction phi node, the use is a phi node too.
121 (vect_is_simple_use_1): Add an argument, pass it to
122 vect_is_simple_use.
123 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
124 to vect_is_simple_use.
125
126 2012-02-04 Jakub Jelinek <jakub@redhat.com>
127
128 PR rtl-optimization/52095
129 * modulo-sched.c (dump_insn_locator): New function.
130 (loop_canon_p, sms_schedule): Use it.
131
132 PR rtl-optimization/52113
133 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
134 even for decomposable shift/zext insns.
135
136 2012-02-03 Jakub Jelinek <jakub@redhat.com>
137 Zdenek Dvorak <ook@ucw.cz>
138
139 PR rtl-optimization/52092
140 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
141 on get_iv_value result.
142
143 2012-02-02 Andrew Pinski <apinski@cavium.com>
144
145 PR middle-end/47982
146 PR middle-end/43967
147 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
148
149 2012-02-02 Jakub Jelinek <jakub@redhat.com>
150
151 PR middle-end/48071
152 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
153
154 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
155
156 PR rtl-optimization/49800
157 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
158 (sched_finish): Call regstat_free_n_sets_and_refs.
159
160 2012-02-02 Jia Liu <proljc@gmail.com>
161
162 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
163 than operand 2.
164
165 2012-02-02 Jan Hubicka <jh@suse.cz>
166 Tom de Vries <tom@codesourcery.com>
167
168 PR middle-end/51998
169 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
170 * varpool.c (varpool_analyze_pending_decls): Likewise.
171
172 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
173 Jayant R Sonar <jayant.sonar@kpitcummins.com>
174
175 * config.gcc: Add cr16-* support.
176
177 * doc/extend.texi: Document cr16 extensions.
178 * doc/install.texi: Document cr16 install.
179 * doc/invoke.texi: Document cr16 options.
180 * doc/md.texi: Document cr16 constraints.
181
182 * common/config/cr16/cr16-common.c: New file.
183 * config/cr16/cr16.c: New file.
184 * config/cr16/cr16.h: New file.
185 * config/cr16/cr16.md: New file.
186 * config/cr16/cr16.opt: New file.
187 * config/cr16/cr16-protos.h: New file.
188 * config/cr16/predicates.md: New file.
189 * config/cr16/constraints.md: New file.
190 * config/cr16/t-cr16: New file.
191
192 2012-02-02 Jakub Jelinek <jakub@redhat.com>
193
194 PR target/52086
195 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
196 that operands[2] is either immediate, or q_regs_operand.
197
198 PR tree-optimization/52073
199 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
200 a pattern stmt for pattern uses, ignore uses outside of the loop.
201
202 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
203
204 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
205 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
206 (OUT_AS1, OUT_AS2): Remove.
207
208 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
209
210 PR rtl-optimization/51374
211 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
212 to cross other volatile_refs_p insns.
213
214 2012-02-01 Richard Guenther <rguenther@suse.de>
215
216 * doc/invoke.texi (fno-inline): Clarify documentation.
217 (finline-small-functions): Likewise.
218 (finline-functions): Likewise.
219 * common.opt (finline): Adjust comment and documentation.
220 (finline-small-functions): Clarify documentation.
221 (finline-functions): Likewise.
222 (finline-functions-called-once): Likewise.
223
224 2012-02-01 Tristan Gingold <gingold@adacore.com>
225
226 * c-typeck.c (composite_type): Keep mode for pointers.
227
228 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
229
230 * function.h (regno_reg_rtx): Adjust comment.
231 * reginfo.c (init_reg_modes_target): Only use the previous mode
232 if it fits within one register. Remove MIPS comment.
233
234 2012-01-31 Jakub Jelinek <jakub@redhat.com>
235
236 PR bootstrap/52058
237 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
238
239 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
240
241 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
242 to srak instruction.
243
244 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
245
246 config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true
247 condition.
248
249 2012-01-31 Jakub Jelinek <jakub@redhat.com>
250
251 PR bootstrap/52041
252 PR bootstrap/52039
253 PR target/51974
254 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
255
256 2012-01-31 Richard Guenther <rguenther@suse.de>
257
258 PR tree-optimization/51528
259 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
260 assigns.
261
262 2012-01-31 Jakub Jelinek <jakub@redhat.com>
263
264 PR bootstrap/52041
265 PR bootstrap/52039
266 PR target/51974
267 * ree.c (add_removable_extension): Change def_map argument
268 to unsigned *, store in def_map 1 + offset into *insn_list vector
269 instead of pointers into the vector.
270 (find_removable_extensions): Adjust caller.
271
272 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
273
274 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
275 Transform all "* quoted-c-code" to { c-code }.
276 Remove redundant test for "optimize" in combine patterns.
277 Move (include "avr-dimode.md") to end of file.
278
279 2012-01-30 Bin Cheng <bin.cheng@arm.com>
280
281 PR target/51835
282 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
283 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
284
285 2012-01-30 Richard Guenther <rguenther@suse.de>
286
287 PR tree-optimization/52028
288 * tree-loop-distribution.c (ldist_gen): Properly update
289 virtual SSA form.
290
291 2012-01-30 Jakub Jelinek <jakub@redhat.com>
292
293 PR debug/52027
294 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
295 set_cur_line_info_table if not emitting debug info.
296
297 PR tree-optimization/52046
298 * tree-vect-patterns.c (check_bool_pattern): Give up if
299 a comparison could throw.
300
301 PR debug/52048
302 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
303
304 2012-01-30 Richard Guenther <rguenther@suse.de>
305
306 PR tree-optimization/52045
307 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
308 SSA form if cfgcleanup did anything.
309
310 2012-01-30 Richard Guenther <rguenther@suse.de>
311
312 PR tree-optimization/52045
313 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
314 before computing final todo.
315
316 2012-01-30 Richard Guenther <rguenther@suse.de>
317
318 PR tree-optimization/51528
319 * tree-sra.c (sra_modify_assign): Re-factor in preparation
320 for PR51528 fix.
321
322 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
323
324 * df-problems.c (df_kill_notes): Check that the use refers
325 to the note under examination.
326
327 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
328
329 PR target/51920
330 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
331 parameter and use short-lived pseudos.
332 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
333 (sparc_expand_vector_init): Const-ify local variables and adjust
334 calls to above functions.
335
336 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
337
338 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
339
340 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
341
342 * doc/invoke.texi: Make usage of "compile time" and
343 "run time"/"runtime" consistent throughout the file.
344
345 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
346
347 * config/alpha/alpha.c (alpha_option_overrride): Default to
348 full IEEE compliance mode for Go language.
349
350 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
351
352 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
353 (LINK_SSP_SPEC): Define.
354
355 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
356
357 PR target/51871
358 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
359 stubs.
360
361 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
362
363 * doc/invoke.texi: Correct hyphenation of "floating point",
364 "double precision", and related terminology throughout the file.
365
366 2012-01-28 Jakub Jelinek <jakub@redhat.com>
367
368 PR target/52006
369 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
370 arm_general_register_operand predicate for operand 2 instead of
371 register_operand.
372
373 2012-01-27 Ian Lance Taylor <iant@google.com>
374
375 PR go/47656
376 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
377 * builtins.c (expand_builtin_init_trampoline): Add onstack
378 parameter. Change caller.
379 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
380 * tree.c (build_common_builtin_nodes): Declare
381 __builtin_init_heap_trampoline.
382
383 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
384
385 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
386 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
387 * config/avr/avr.c: Ditto.
388 (avr_regnames): Remove because unused.
389 * config/avr/avr.md (*cpse.ne): New peephole.
390 (*cpse.eq): New peephole from former cpse peepholes.
391
392 2012-01-27 Michael Eager <eager@eagercon.com>
393
394 * config/microblaze.c (microblaze_emit_compare): Correct
395 test after pcmp instruction.
396
397 2012-01-27 Richard Guenther <rguenther@suse.de>
398
399 PR tree-optimization/52020
400 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
401
402 2012-01-27 Richard Guenther <rguenther@suse.de>
403
404 * ipa-pure-const.c (check_stmt): Clobbers do not make a
405 function non-const/pure.
406
407 2012-01-27 Richard Guenther <rguenther@suse.de>
408
409 PR tree-optimization/50444
410 * tree-sra.c (build_ref_for_offset): Properly adjust the
411 MEM_REF type for unaligned accesses.
412
413 2012-01-27 Richard Guenther <rguenther@suse.de>
414
415 PR tree-optimization/50444
416 * expr.c (mem_ref_refers_to_non_mem_p): New function.
417 (expand_assignment): Use it. Properly handle misaligned
418 bases when expanding stores to component references.
419 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
420 refactor that case.
421
422 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
423
424 PR middle-end/51389
425 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
426 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
427 * tree-data-ref.c (find_data_references_in_loop): Make static.
428 (compute_all_dependences): Change return type to bool. Bail out
429 for too many datarefs in a loop. Move the hunk resetting the data
430 dependences vector from ...
431 (compute_data_dependences_for_loop): ... here. Account for
432 compute_all_dependences returning false.
433 (compute_data_dependences_for_bb): Likewise.
434 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
435 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
436
437 2012-01-27 Richard Guenther <rguenther@suse.de>
438
439 PR middle-end/51959
440 * expr.c (store_field): Use the alias-set of the scratch memory
441 for storing to it.
442
443 2012-01-27 Tom de Vries <tom@codesourcery.com>
444
445 PR tree-optimization/51990
446 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
447 WITH_SIZE_EXPR.
448 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
449
450 2012-01-27 Jakub Jelinek <jakub@redhat.com>
451
452 PR debug/52001
453 * var-tracking.c (reverse_op): Don't add any reverse operation
454 if V already has any constant locations.
455
456 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
457
458 * doc/invoke.texi: Correct usage of "command line" (noun)
459 vs "command-line" (adjective) throughout.
460
461 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
462
463 * doc/invoke.texi (Language Independent Options): Move
464 -Wcoverage-mismatch blurb from here....
465 (Warning Options): ...to here.
466
467 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
468
469 * config/rs6000/rs6000.c (rs6000_option_override_internal):
470 Set rs6000_always_hint to false for 476.
471
472 2012-01-27 Matthias Klose <doko@ubuntu.com>
473
474 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
475 system root.
476 * incpath.c (add_standard_paths): Likewise.
477
478 2012-01-27 Richard Henderson <rth@redhat.com>
479
480 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
481 * config/m68k/sync.md (atomic_test_and_set): Rename from
482 sync_test_and_setqi and adjust the operands.
483 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
484 and unconditionally enable.
485
486 2012-01-27 Richard Henderson <rth@redhat.com>
487
488 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
489 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
490 (ldstub): Rename from ldstubqi.
491 (ldstub<I24MODE>): Remove.
492
493 2012-01-27 Richard Henderson <rth@redhat.com>
494
495 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
496 * c-cppbuiltin.c (cpp_atomic_builtins): Define
497 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
498 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
499 * doc/tm.texi: Rebuild.
500
501 2012-01-27 Richard Henderson <rth@redhat.com>
502
503 * optabs.c (gen_atomic_test_and_set): Remove default.
504 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
505
506 2012-01-26 Jakub Jelinek <jakub@redhat.com>
507
508 PR rtl-optimization/51978
509 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
510 (combine_reaching_defs): Likewise.
511 (struct re_info): Remove.
512 (add_removable_extension): Remove x and data arguments,
513 add insn, insn_list and def_map. Use the arguments directly
514 instead of using struct re_info.
515 (find_removable_extensions): Don't call add_removable_extension
516 through note_stores, instead just call it with single_set
517 result if non-NULL.
518 (find_and_remove_re): Pass curr_cand->expr instead of
519 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
520
521 2012-01-26 Michael Matz <matz@suse.de>
522
523 PR tree-optimization/46590
524 * cfgexpand.c: Revert last change (r183305).
525 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
526 regs.
527 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
528 checking for emptiness.
529
530 2012-01-26 Jakub Jelinek <jakub@redhat.com>
531
532 PR middle-end/51895
533 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
534 non-addressable non-BLKmode base correctly.
535
536 2012-01-26 Michael Matz <matz@suse.de>
537
538 PR tree-optimization/48794
539 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
540 regions referenced from RESX/EH_DISPATCH.
541
542 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
543
544 * config/s390/s390.h: Make BRANCH_COST an option.
545 * config/s390/s390.opt: New option -mbranch-cost.
546
547 2012-01-26 Richard Henderson <rth@redhat.com>
548
549 Revert 2012-01-24 change:
550 * trans-mem.c (requires_barrier): Do not instrument thread local
551 variables and emit save/restore for them.
552
553 2012-01-25 Jakub Jelinek <jakub@redhat.com>
554
555 PR middle-end/51986
556 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
557 for pat == 0.
558
559 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
560
561 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
562 ASM_OPERANDS.
563
564 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
565
566 PR target/49868
567 Rename __pgm to __flash.
568 Rename __pgm1 to __flash1.
569 Rename __pgm2 to __flash2.
570 Rename __pgm3 to __flash3.
571 Rename __pgm4 to __flash4.
572 Rename __pgm5 to __flash5.
573 Rename __pgmx to __memx.
574 * doc/extend.texi (AVR Named Address Spaces)
575 Rename address space names as indicated above.
576 * config/avr/avr.c (avr_addrspace): Ditto.
577
578 * config/avr/avr-protos.h
579 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
580 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
581 * config/avr/predicates.md: Ditto.
582 * config/avr/avr.c Ditto, and
583 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
584 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
585
586 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
587 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
588 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
589 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
590 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
591 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
592 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
593 * config/avr/avr.c: Ditto.
594 * config/avr/avr.md: Ditto.
595
596 2012-01-25 Jason Merrill <jason@redhat.com>
597
598 PR c++/51992
599 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
600
601 2012-01-25 Jakub Jelinek <jakub@redhat.com>
602
603 PR tree-optimization/51987
604 * tree-data-ref.c (get_references_in_stmt): Handle references in
605 non-volatile GIMPLE_ASM.
606
607 2012-01-25 Richard Guenther <rguenther@suse.de>
608
609 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
610 bases are dereferenced.
611
612 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
613
614 PR rtl-optimization/48374
615 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
616
617 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
618
619 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
620 compute_data_dependences_for_loop returns false.
621 * tree-parloops.c (loop_parallel_p): Likewise.
622
623 2012-01-25 Richard Guenther <rguenther@suse.de>
624
625 * tree.h (get_pointer_alignment_1): Declare.
626 * builtins.c (get_pointer_alignment_1): New function.
627 (get_pointer_alignment): Use it.
628
629 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
630
631 PR rtl-optimization/48308
632 * combine.c (enum undo_kind): Add UNDO_LINKS.
633 (struct undo): Add member l to other_contents and where.
634 (do_SUBST_LINK): New.
635 (SUBST_LINK): New.
636 (try_combine): Handle LOG_LINKS for the dummy i1 case.
637 (undo_all): Handle UNDO_LINKS.
638
639 2012-01-25 Richard Henderson <rth@redhat.com>
640
641 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
642 mem inputs.
643
644 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
645
646 * optabs.c (gen_atomic_test_and_set): Use each argument.
647
648 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
649
650 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
651 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
652 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
653 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
654 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
655 TARGET_PAIRED_SINGLE_FLOAT.
656
657 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
658
659 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
660 (in_struct, return_val): Remove MEM documentation.
661 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
662 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
663 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
664 and MEM_SCALAR.
665 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
666 * cfgexpand.c (add_alias_set_conflicts): Likewise.
667 * expr.c (store_field): Likewise.
668 * function.c (assign_stack_temp_for_type): Likewise.
669 * ifcvt.c (noce_try_cmove_arith): Likewise.
670 * reload1.c (reload): Likewise.
671 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
672 (alpha_set_memflags): Likewise.
673 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
674
675 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
676
677 * rtl.h (true_dependence, canon_true_dependence): Remove varies
678 parameter.
679 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
680 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
681 (true_dependence_1, true_dependence, canon_true_dependence): Remove
682 varies parameter.
683 * cselib.c (cselib_rtx_varies_p): Delete.
684 (cselib_invalidate_mem): Update call to canon_true_dependence.
685 * dse.c (record_store, check_mem_read_rtx): Likewise.
686 (scan_reads_nospill): Likewise.
687 * cse.c (check_dependence): Likewise.
688 (cse_rtx_varies_p): Delete.
689 * expr.c (safe_from_p): Update call to true_dependence.
690 * ira.c (validate_equiv_mem_from_store): Likewise.
691 (memref_referenced_p): Likewise.
692 * postreload-gcse.c (find_mem_conflicts): Likewise.
693 * sched-deps.c (sched_analyze_2): Likewise.
694 * store-motion.c (load_kills_store): Likewise.
695 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
696 * gcse.c (mems_conflict_for_gcse_p): Likewise.
697 (compute_transp): Update call to canon_true_dependence.
698
699 2012-01-25 Richard Henderson <rth@redhat.com>
700
701 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
702 (maybe_emit_atomic_test_and_set): New.
703 (expand_sync_lock_test_and_set): Use it.
704 (expand_atomic_test_and_set): Likewise.
705 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
706 the implementation; clarify implementation defined details.
707 * doc/md.texi (atomic_test_and_set): Document.
708
709 2012-01-25 Richard Henderson <rth@redhat.com>
710
711 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
712
713 2012-01-25 Richard Henderson <rth@redhat.com>
714
715 PR target/51968
716 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
717 to effect no-op split.
718
719 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
720
721 PR lto/51698
722 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
723 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
724 (BT_FN_VOID_PTR_INT_SIZE): New.
725 (BT_FN_UINT_UINT_VAR): Remove.
726 (BT_FN_UINT32_UINT32_VAR): New.
727 (BT_FN_DOUBLE_VPTR): Remove.
728 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
729
730 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
731 (_ITM_changeTransactionMode): Same.
732 (_ITM_memmoveRtWt): Change return type to void.
733 (_ITM_memcpyRtWt): Same.
734 (_ITM_memsetW): Same.
735 (_ITM_RaRD): Change types to double.
736 (_ITM_RD): Same.
737 (_ITM_RaWD): Same.
738 (_ITM_RfWD): Same.
739
740 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
741
742 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
743 Patrick Marlier <patrick.marlier@gmail.com>
744
745 * trans-mem.c (requires_barrier): Do not instrument thread local
746 variables and emit save/restore for them.
747
748 2012-01-24 Jason Merrill <jason@redhat.com>
749
750 PR c++/51812
751 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
752 output static aliases.
753
754 2012-01-24 Jakub Jelinek <jakub@redhat.com>
755
756 PR driver/47249
757 * common.opt (-pie, -shared, pie, shared): Change from Common to
758 Driver.
759 * gcc.c (display_help): Display help for -pie and -shared.
760
761 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
762
763 PR target/49868
764 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
765 Remove note on size/offset limitation.
766 (AVR Variable Attributes): Add example how to read data located
767 with progmem. Refer to named address spaces.
768 * doc/invoke.texi (AVR Options): Fix typo.
769
770 2012-01-24 Richard Guenther <rguenther@suse.de>
771
772 Forward-port to trunk
773 2010-09-21 Jakub Jelinek <jakub@redhat.com>
774
775 PR middle-end/45678
776 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
777 op0 isn't sufficiently aligned and there is movmisalignM
778 insn for mode, use it to load op0 into a temporary register.
779
780 2012-01-24 Jakub Jelinek <jakub@redhat.com>
781
782 PR target/51957
783 * target.def (const_not_ok_for_debug_p): New hook.
784 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
785 documentation.
786 * doc/tm.texi: Regenerated.
787 * dwarf2out.c (const_ok_for_output_1): If
788 targetm.const_not_ok_for_debug_p returns true, fail.
789 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
790 function.
791 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
792
793 2012-01-23 Kai Tietz <ktietz@redhat.com>
794
795 PR target/51900
796 * config/i386/predicates.md (symbolic_operand): Allow
797 UNSPEC_PCREL as PIC expression for lea.
798 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
799 * config/i386/i386.c (ix86_delegitimize_address): Handle
800 UNSPEC_PCREL for none-MEM, too.
801
802 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
803
804 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
805 (ipa_tm_create_version_alias): Same.
806
807 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
808
809 PR libitm/51830
810 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
811 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
812
813 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
814 Patrick Marlier <patrick.marlier@gmail.com>
815 Iain Sandoe <developer@sandoe-acoustics.co.uk>
816
817 PR lto/51916
818 * lto-wrapper.c (run_gcc): Pass the LTO section name to
819 simple_object_start_read.
820
821 2012-01-23 Richard Guenther <rguenther@suse.de>
822
823
824 PR tree-optimization/51895
825 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
826 parameter decomposition into BLKmode components.
827
828 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
829
830 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
831 fake variables for restrict-qualified pointers whose pointed-to type
832 contains a placeholder.
833
834 2012-01-23 Richard Guenther <rguenther@suse.de>
835
836 PR tree-optimization/51949
837 * ipa-split.c (execute_split_functions): Do not split malloc functions.
838
839 2012-01-23 Jakub Jelinek <jakub@redhat.com>
840
841 PR rtl-optimization/51933
842 * ree.c (transform_ifelse): Return true right away if dstreg is
843 already wider or equal to cand->mode.
844 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
845 (make_defs_and_copies_lists): Remove defs_list and copies_list
846 arguments, add state argument, just truncate state->work_list
847 instead of always allocating and freeing the vector. Assert that
848 get_defs succeeds instead of returning 2. Changed return type to bool.
849 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
850 have ext_src_mode, see if it has been modified already with the
851 right kind of extension and has been extended before from the
852 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
853 just return true. Remember the original mode in state->modified array.
854 (combine_reaching_defs): Add state argument. Don't allocate and
855 free here def_list, copied_list and vec vectors, instead just
856 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
857 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
858 Add state variable, clear vectors in it, initialize state.modified
859 if needed. Free all the vectors at the end and state.modified too.
860 Don't skip a candidate if the extension expression has been modified.
861
862 2012-01-22 Douglas B Rupp <rupp@gnat.com>
863
864 PR target/47096
865 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
866 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
867 (extra_options) interix.opt -> i386/interix.opt"
868 (extra_objs):Add winnt-stubs.o
869 * configure.ac: Add interix to target_os .comm on PE check.
870 * configure: Regenerate.
871 * config/interix3.h: Delete and move bits to..
872 * config/interix.h: Delete and move bits to..
873 * config/i386/i386-interix3.h: Delete and move bits to..
874 * config/i386/i386-interix.h: ..here.
875 (TARGET_CPU_DEFAULT): Remove redefinition.
876 (TARGET_ASM_CONSTRUCTOR): Undefine.
877 (SUBTARGET_SWITCHES): Define for ms-bitfields.
878 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
879 (PTRDIFF_TYPE): Define.
880 (LONG_DOUBLE_TYPE_SIZE): Define.
881 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
882 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
883 (TARGET_SECTION_TYPE_FLAGS): Define.
884 (ASM_DECLARE_FUNCTION_NAME): Define.
885 (ASM_OUTPUT_EXTERNAL): Define.
886 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
887 (ASM_OUTPUT_ALIGNED_BSS): Define.
888 (PCC_BITFIELD_TYPE_MATTERS): Define.
889 (USE_CONST_SECTION): Define.
890 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
891 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
892 (SUPPORTS_ONE_ONLY): Remove.
893 (I386_PE_STRIP_ENCODING): Define.
894 * config/interix.opt: Delete and move bits to..
895 * config/i386/interix.opt: ..here. New.
896 (mpe-aligned-commons): Add.
897 * config/i386/t-interix: Add copyright header.
898 (winnt-stubs.o): Add rule.
899
900 2012-01-22 Jason Merrill <jason@redhat.com>
901
902 PR c++/51832
903 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
904 for extra name aliases.
905
906 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
907
908 PR rtl-optimization/51924
909 * ree.c (combine_set_extension): Improve debugging message.
910 (combine_reaching_defs): Likewise.
911 (get_defs): Rename confusingly named variable.
912 (find_and_remove_re): Skip a candidate if the extension expression has
913 been modified.
914
915 2012-01-21 Robert Millan <rmh@gnu.org>
916 Gerald Pfeifer <gerald@pfeifer.com>
917
918 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
919 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
920
921 2012-01-20 Jakub Jelinek <jakub@redhat.com>
922
923 PR tree-optimization/51914
924 * tree-vect-stmts.c (vectorizable_conversion): For
925 cvt_type && modifier == WIDEN, put temporary with cvt_type
926 at the beginning of vec_dsts and set vec_dest to temporary
927 with vectype_out.
928
929 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
930
931 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
932
933 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
934
935 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
936 * config/rs6000/rs6000.c: Likewise.
937
938 2012-01-20 Jakub Jelinek <jakub@redhat.com>
939
940 PR target/51915
941 * config/arm/arm.c (arm_count_output_move_double_insns): Call
942 output_move_double on a copy of operands array.
943
944 2012-01-20 Cary Coutant <ccoutant@google.com>
945 Dodji Seketeli <dodji@redhat.com>
946
947 PR debug/45682
948 * dwarf2out.c (copy_declaration_context): Return ref to parent
949 of declaration DIE, if necessary.
950 (remove_child_or_replace_with_skeleton): Add new parameter; update
951 caller. Place skeleton DIE under parent DIE of original declaration.
952 Move call to copy_declaration_context to here ...
953 (break_out_comdat_types): ... from here.
954
955 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
956
957 PR rtl-optimization/51856
958 * reload.c (find_reloads_subreg_address): Set the address_reloaded
959 flag to reloaded.
960
961 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
962
963 PR target/51819
964 * config/arm/arm.c (arm_print_operand): Correct output of alignment
965 hints for neon loads and stores.
966
967 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
968
969 PR target/49868
970 PR target/50887
971 * doc/extend.texi (Named Address Spaces): Split into subsections.
972 (AVR Named Address Spaces): New subsection.
973 (M32C Named Address Spaces): New subsection.
974 (RL78 Named Address Spaces): New subsection.
975 (SPU Named Address Spaces): New subsection.
976 (Variable Attributes): New anchor "AVR Variable Attributes".
977 (AVR Variable Attributes): Rewrite and avoid wording
978 "address space" in this context.
979 * doc/invoke.texi (AVR Options): Rewrite and add documentation
980 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
981 (AVR Built-in Macros): New subsubsection therein.
982 * doc/md.texi (AVR constraints): Remove "C04", "R".
983
984 2012-01-20 Richard Guenther <rguenther@suse.de>
985
986 PR tree-optimization/51903
987 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
988 when removing stmts.
989
990 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
991
992 PR target/50313
993 * config/arm/arm.c (arm_load_pic_register): Use
994 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
995 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
996 (arm_pic_static_addr): Likewise.
997 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
998 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
999 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
1000 (pic_load_addr_unified): New.
1001
1002 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
1003
1004 PR target/51106
1005 * function.c (instantiate_virtual_regs_in_insn): Use
1006 delete_insn_and_edges when removing a wrong asm insn.
1007
1008 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
1009
1010 PR rtl-optimization/40761
1011 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
1012 Add new member loop_num.
1013 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
1014 (ira_build): Remove the parameter.
1015
1016 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
1017 (ira.c): Do not build CFG loops for one region allocation. Remove
1018 argument from ira_build call.
1019
1020 * ira-build.c (init_loop_tree_node): New function.
1021 (create_loop_tree_nodes): Use it. Separate the case when CFG
1022 loops are not built.
1023 (more_one_region_p): Check current_loops.
1024 (finish_loop_tree_nodes): Separate the case when CFG loops are not
1025 built.
1026 (add_loop_to_tree): Process loop equal to NULL too.
1027 (form_loop_tree): Separate the case when CFG loops are not built.
1028 Use explicitly number for the root.
1029 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
1030 an assertion.
1031 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
1032 instead of loop->num.
1033 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
1034 (mark_all_loops_for_removal): Ditto.
1035 (remove_unnecessary_regions): Separate the case when CFG loops
1036 are not built.
1037 (ira_build): Remove the parameter. Use explicit number of regions
1038 when CFG loops are not built.
1039
1040 * ira-color.c (print_loop_title): Separate the case for the root node.
1041 Use loop_num instead of loop->num.
1042 (move_spill_restore): Use loop_num instead of loop->num.
1043
1044 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
1045 (change_loop): Ditto.
1046 (change_loop): Use loop_num instead of loop->num.
1047
1048 * ira-lives.c (process_bb_node_lives): Ditto.
1049
1050 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
1051
1052 * ira-conflicts.c (print_allocno_conflicts): Ditto.
1053
1054 2012-01-19 Jakub Jelinek <jakub@redhat.com>
1055
1056 PR libmudflap/40778
1057 * tree-mudflap.c (mf_artificial): New function.
1058 (execute_mudflap_function_ops, execute_mudflap_function_decls,
1059 mx_register_decls, mudflap_enqueue_decl): Use it.
1060
1061 PR target/51876
1062 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
1063 numbers in the insn pattern.
1064
1065 2012-01-19 Michael Matz <matz@suse.de>
1066
1067 PR tree-optimization/46590
1068 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
1069 use it in remembering which conflicts we already created.
1070 (add_scope_conflicts): Adjust call to above, (de)allocate helper
1071 bitmap.
1072
1073 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
1074
1075 PR lto/51280
1076 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
1077 (merge_and_complain): Same.
1078
1079 2012-01-19 Jakub Jelinek <jakub@redhat.com>
1080
1081 PR bootstrap/50237
1082 * config/initfini-array.h: Guard content of the header
1083 with #ifdef HAVE_INITFINI_ARRAY.
1084 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
1085 Add initfini-array.h to tm_file here.
1086 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
1087 * config.gcc: Don't add initfini-array.h to tm_file here.
1088 * configure: Regenerated.
1089
1090 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
1091
1092 PR rtl-optimization/51505
1093 * df-problems.c (df_kill_notes): New parameter live. Update comment.
1094 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
1095 (df_note_bb_compute): Update the call to df_kill_notes.
1096
1097 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
1098
1099 * trans-mem.c (requires_barrier): Remove call to is_global_var.
1100
1101 2012-01-18 Richard Guenther <rguenther@suse.de>
1102
1103 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
1104 of conversions to void *.
1105
1106 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1107 Richard Sandiford <rdsandiford@googlemail.com>
1108
1109 PR middle-end/50325
1110 PR middle-end/51192
1111 * optabs.h (simplify_expand_binop): Declare.
1112 * optabs.c (simplify_expand_binop): Make global.
1113 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
1114 endian targets if the source cannot be exactly covered by word
1115 mode chunks.
1116
1117 2012-01-17 Jakub Jelinek <jakub@redhat.com>
1118
1119 PR bootstrap/51872
1120 * hard-reg-set.h (struct hard_reg_set_container): New type.
1121 * target.h (struct hard_reg_set_container): Forward declare.
1122 * target.def (set_up_by_prologue): New target hook.
1123 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
1124 * doc/tm.texi: Regenerated.
1125 * function.c (thread_prologue_and_epilogue_insns): Change
1126 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
1127 Call targetm.set_up_by_prologue on it.
1128 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
1129 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
1130
1131 2012-01-17 Nick Clifton <nickc@redhat.com>
1132
1133 * config/rx/rx.c (rx_can_use_simple_return): New function.
1134 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
1135 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
1136
1137 2012-01-17 Richard Guenther <rguenther@suse.de>
1138
1139 PR middle-end/51782
1140 * expr.c (expand_assignment): Take address-space information
1141 from the address operand of MEM_REF and TARGET_MEM_REF.
1142 (expand_expr_real_1): Likewise.
1143
1144 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1145
1146 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
1147 reload dump is requested.
1148
1149 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
1150
1151 PR other/51165
1152 * trans-mem.c (requires_barrier): Call may_be_aliased.
1153
1154 2012-01-17 Jakub Jelinek <jakub@redhat.com>
1155
1156 PR tree-optimization/51877
1157 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
1158 call arguments and fndecls compare equal, instead return false if they
1159 don't. Return true only if lhs1 and lhs2 are either both NULL, or
1160 both SSA_NAMEs that are valueized the same, or they satisfy
1161 operand_equal_p.
1162
1163 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1164
1165 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
1166 Solaris 11+.
1167 * configure: Regenerate.
1168
1169 2012-01-16 Jan Hubicka <jh@suse.cz>
1170
1171 PR c/12245
1172 PR c++/14179
1173 * convert.c (convert_to_integer): Use fold_convert for
1174 converting an INTEGER_CST to integer type.
1175
1176 2012-01-16 Jason Merrill <jason@redhat.com>
1177
1178 PR c++/14179
1179 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
1180
1181 2012-01-16 Jakub Jelinek <jakub@redhat.com>
1182
1183 PR bootstrap/51860
1184 * config/s390/s390.c (s390_chunkify_start): Don't skip
1185 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
1186 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
1187 If insn is followed by NOTE_INSN_VAR_LOCATION or
1188 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
1189 Don't use location of note insns.
1190
1191 PR tree-optimization/51865
1192 * tree-inline.c (tree_function_versioning): Call remap_decl
1193 on DECL_RESULT whenever it has VOID_TYPE_P type.
1194
1195 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
1196
1197 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
1198 for calls to locally-binding MIPS16 functions if only the return
1199 type uses float regs.
1200
1201 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
1202 Richard Sandiford <rdsandiford@googlemail.com>
1203
1204 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
1205 (SYMBOL_32_HIGH): Likewise.
1206 (mips_output_tls_reloc_directive): Declare.
1207 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
1208 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
1209 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
1210 (mips_lo_relocs, mips_hi_relocs): Make extern.
1211 (mips16_stub_function): Move up file.
1212 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
1213 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
1214 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
1215 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
1216 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
1217 (mips_get_tp): Add MIPS16 support.
1218 (mips_legitimize_tls_address): Remove MIPS16 sorry().
1219 Generalize DTPREL and TPREL handling.
1220 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
1221 Add MIPS16 TLS support.
1222 (mips_output_tls_reloc_directive): New function.
1223 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
1224 * config/mips/predicates.md (symbolic_operand_with_high)
1225 (tls_reloc_operand): New predicates.
1226 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
1227 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
1228 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
1229 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
1230 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
1231 (*tls_get_tp_mips16_call_<mode>): Likewise.
1232
1233 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
1234
1235 PR rtl-optimization/51821
1236 * recog.c (peep2_find_free_register): Determine clobbered registers
1237 from insn pattern.
1238
1239 2012-01-14 Denis Chertykov <chertykov@gmail.com>
1240
1241 PR target/50925
1242 * config/avr/avr-protos.h: Revert change of 2012-01-09.
1243 * config/avr/avr.c: Likewise.
1244 * config/avr/avr.h: Likewise.
1245
1246 2012-01-13 Ian Lance Taylor <iant@google.com>
1247
1248 PR c++/50012
1249 * tree.h (TYPE_QUALS): Add cast to int.
1250 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
1251
1252 2012-01-13 Ian Lance Taylor <iant@google.com>
1253
1254 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
1255 comparing param_index to VEC_length result.
1256
1257 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
1258
1259 * c-decl.c: Do not include tree-mudflap.h
1260 * tree-optimize.c: Likewise.
1261 * Makefile.in: Update dependencies.
1262
1263 2012-01-13 Richard Guenther <rguenther@suse.de>
1264
1265 PR middle-end/8081
1266 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
1267 variable-sized result always use RSO.
1268
1269 2012-01-12 DJ Delorie <dj@redhat.com>
1270
1271 * cfgexpand.c (convert_debug_memory_address): Allow any valid
1272 pointer type, not just the default pointer type.
1273
1274 2012-01-09 Richard Henderson <rth@redhat.com>
1275 Denis Chertykov <chertykov@gmail.com>
1276
1277 PR target/50925
1278 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
1279 * config/avr/avr.c (avr_can_eliminate): Simplify.
1280 (avr_initial_elimination_offset): Likewise.
1281 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
1282 (expand_epilogue): Likewise.
1283 (avr_legitimize_address): Gut.
1284 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
1285 (avr_hard_regno_nregs): New.
1286 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
1287 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
1288 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
1289 add soft frame pointer.
1290 (CALL_USED_REGISTERS): Likewise.
1291 (REG_CLASS_CONTENTS): Likewise.
1292 (REGISTER_NAMES): Likewise.
1293 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
1294 (HARD_FRAME_POINTER_REGNUM): New.
1295 (FRAME_POINTER_REGNUM): Use soft frame pointer.
1296 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
1297 remove the HARD_FRAME_POINTER self-elimination.
1298
1299 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
1300
1301 PR target/51756
1302 * config/avr/avr.c (avr_encode_section_info): Test for absence of
1303 DECL_EXTERNAL when checking for initializers of progmem variables.
1304
1305 2012-01-12 Ira Rosen <irar@il.ibm.com>
1306
1307 PR tree-optimization/51799
1308 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
1309 that the last operation is a type demotion.
1310
1311 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
1312
1313 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
1314 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
1315
1316 2012-01-11 Jakub Jelinek <jakub@redhat.com>
1317
1318 PR bootstrap/51796
1319 * combine.c (distribute_notes): If i3 is a noreturn call,
1320 allow old_size to be equal to args_size and make sure the
1321 noreturn call gets REG_ARGS_SIZE note.
1322 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
1323 on noreturn calls even when the delta is 0.
1324
1325 2012-01-11 Nathan Sidwell <nathan@acm.org>
1326
1327 * gcov.c (STRING_SIZE): Remove.
1328 (generate_results): Erase annotations for source files with no
1329 coverage information.
1330 (read_line): New.
1331 (output_lines): Use it.
1332
1333 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
1334
1335 * gimple.h (gimplify_body): Remove first argument.
1336 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
1337 pointer set here, instead just pass DATA to walk_tree.
1338 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
1339 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
1340 (unvisit_body): Likewise, but with unmark_visited.
1341 (gimplify_body): Remove BODY_P argument and adjust.
1342 (gimplify_function_tree): Adjust call to gimplify_body.
1343 * omp-low.c (finalize_task_copyfn): Likewise.
1344
1345 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
1346
1347 * tree.h (build_function_decl_skip_args): Add boolean parameter.
1348 (build_function_type_skip_args): Delete.
1349 * tree.c (build_function_type_skip_args): Make static and add
1350 SKIP_RETURN parameter. Fix thinko in the handling of variants.
1351 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
1352 pass it to build_function_type_skip_args.
1353 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
1354 (tree_function_versioning): Likewise.
1355 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
1356 build_function_decl_skip_args.
1357 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
1358 and pass it to build_function_decl_skip_args/tree_function_versioning.
1359 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
1360 * ipa-inline-transform.c (save_inline_function_body): Likewise.
1361 * trans-mem.c (ipa_tm_create_version): Likewise.
1362 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
1363 * tree-inline.c (declare_return_variable): Remove always-true test.
1364 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
1365 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
1366 * ipa-split.c (split_function): Skip the return value for the split
1367 part if it doesn't return.
1368
1369 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1370
1371 PR tree-optimization/49642
1372 * ipa-split.c (forbidden_dominators): New variable.
1373 (check_forbidden_calls): New function.
1374 (dominated_by_forbidden): Likewise.
1375 (consider_split): Check for forbidden dominators.
1376 (execute_split_functions): Initialize and free forbidden
1377 dominators info; call check_forbidden_calls.
1378
1379 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1380
1381 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
1382
1383 2012-01-11 Nick Clifton <nickc@redhat.com>
1384
1385 * config/rx/rx.md (return): Define pattern.
1386
1387 2012-01-11 Richard Guenther <rguenther@suse.de>
1388
1389 * doc/extend.texi (malloc attribute): Adjust according to
1390 implementation.
1391
1392 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
1393 Patrick Marlier <patrick.marlier@gmail.com>
1394
1395 PR middle-end/51516
1396 * trans-mem.c (get_cg_data): Traverse aliases if requested.
1397 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
1398 (ipa_tm_note_irrevocable): Same.
1399 (ipa_tm_scan_irr_block): Same.
1400 (ipa_tm_decrement_clone_counts): Same.
1401 (ipa_tm_scan_irr_function): Same.
1402 (ipa_tm_create_version_alias): Same.
1403 (ipa_tm_create_version): Same.
1404 (ipa_tm_transform_calls_redirect): Same.
1405 (ipa_tm_transform_calls): Same.
1406 (ipa_tm_transform_transaction): Same.
1407 (ipa_tm_execute): Same.
1408
1409 2012-01-10 Richard Guenther <rguenther@suse.de>
1410
1411 PR middle-end/51806
1412 * opts.c (common_handle_option): Handle -Werror.
1413
1414 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
1415
1416 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
1417 operand number.
1418
1419 2012-01-10 Jason Merrill <jason@redhat.com>
1420
1421 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
1422 information.
1423
1424 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1425
1426 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
1427 supports R_386_TLS_GD_PLT reloc.
1428 (gcc_cv_as_ix86_tlsldmplt): Check if linker
1429 supports R_386_TLS_LDM_PLT reloc.
1430 * configure: Regenerate.
1431 * config.in: Regenerate.
1432
1433 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
1434
1435 PR target/49868
1436 Extend __pgmx semantics to linearize memory.
1437 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
1438 determine if code comes inline or from libgcc.
1439 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
1440 (movmem_qi, movmem_qi): Set constraint #2 to "n".
1441 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
1442 (movmemx_qi, movmemx_hi): New insns.
1443 (xload_<mode>_libgcc): Rewrite to new insn condition.
1444 (xload_<mode>): Remove insns.
1445 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
1446 cases that don't satisfy avr_xload_libgcc_p().
1447 (avr_addr_space_convert): Allow converting in any direction.
1448 (avr_addr_space_subset_p): Return always true.
1449 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
1450 (avr_emit_movmemhi): Ditto.
1451 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
1452 (avr_out_movmem): Ditto.
1453 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
1454 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
1455 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
1456 (avr_encode_section_info): Encode 'progmem' in symbol flags.
1457 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
1458
1459 2012-01-10 Richard Guenther <rguenther@suse.de>
1460
1461 PR tree-optimization/50913
1462 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
1463 Require data-refs to be representable by Graphite with respect
1464 to any loop nest.
1465
1466 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
1467
1468 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
1469 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
1470
1471 2012-01-10 Tom de Vries <tom@codesourcery.com>
1472
1473 PR rtl-optimization/51271
1474 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
1475 handling annulled branch.
1476
1477 2012-01-10 Richard Henderson <rth@redhat.com>
1478
1479 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
1480 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
1481 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
1482 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
1483 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
1484 arm_expand_vec_perm_const): New.
1485 * config/arm/arm-protos.h: Update.
1486 * config/arm/neon.md (UNSPEC_VCONCAT): New.
1487 (*neon_vswp<VDQX>): New.
1488 (neon_vcombine<VDX>): Use neon_split_vcombine.
1489 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
1490 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
1491 (vec_perm<VE>): New.
1492
1493 2012-01-10 Richard Henderson <rth@redhat.com>
1494
1495 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
1496 use it if reload_completed.
1497 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
1498 arm_output_asm_insn, arm_process_output_memory_barrier,
1499 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
1500 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
1501 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
1502 arm_process_output_sync_insn, arm_output_sync_insn,
1503 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
1504 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
1505 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
1506 (emit_unlikely_jump): New.
1507 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
1508 (arm_split_atomic_op): New.
1509 * config/arm/arm-protos.h: Update.
1510 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
1511 (struct arm_sync_generator): Remove.
1512 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
1513 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
1514 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
1515 (VUNSPEC_LL, VUNSPEC_SC): New.
1516 (sync_result, sync_memory, sync_required_value, sync_new_value,
1517 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
1518 (attr length): Don't use arm_sync_loop_insns.
1519 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
1520 (movsfcc, movdfcc): Likewise.
1521 * config/arm/constraints.md (Ua): New.
1522 * config/arm/prediates.md (mem_noofs_operand): New.
1523 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
1524 (sync_clobber, sync_t2_reqd): Remove.
1525 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
1526 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
1527 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
1528 (arm_sync_compare_and_swap<SIDI>): Remove.
1529 (arm_sync_compare_and_swap<NARROW>): Remove.
1530 (arm_sync_lock_test_and_set<SIDI>): Remove.
1531 (arm_sync_lock_test_and_set<NARROW>): Remove.
1532 (arm_sync_new_<syncop><SIDI>): Remove.
1533 (arm_sync_new_<syncop><NARROW>): Remove.
1534 (arm_sync_new_nand<SIDI>): Remove.
1535 (arm_sync_new_nand<NARROW>): Remove.
1536 (arm_sync_old_<syncop><SIDI>): Remove.
1537 (arm_sync_old_<syncop><NARROW>): Remove.
1538 (arm_sync_old_nand<SIDI>): Remove.
1539 (arm_sync_old_nand<NARROW>): Remove.
1540 (*memory_barrier): Merge arm_output_memory_barrier.
1541 (atomic_compare_and_swap<QHSD>): New.
1542 (atomic_compare_and_swap<NARROW>_1): New.
1543 (atomic_compare_and_swap<SIDI>_1): New.
1544 (atomic_exchange<QHSD>): New.
1545 (cas_cmp_operand, cas_cmp_str): New.
1546 (atomic_op_operand, atomic_op_str): New.
1547 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
1548 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
1549 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
1550 (arm_load_exclusive<NARROW>): New.
1551 (arm_load_exclusivesi, arm_load_exclusivedi): New.
1552 (arm_store_exclusive<QHSD>): New.
1553
1554 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1555
1556 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
1557 reload patterns if -mvsx-scalar-memory.
1558
1559 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
1560 generated, even -mno-vsx-scalar-double was used.
1561 (vsx_xscvdpsp_scalar): Likewise.
1562 (vsx_xscvspdp_scalar2): Likewise.
1563
1564 2012-01-09 Tom de Vries <tom@codesourcery.com>
1565 Andrew Pinski <apinski@cavium.com>
1566
1567 PR debug/51471
1568 * reorg.c (fill_slots_from_thread): Don't speculate
1569 frame-related insns.
1570
1571 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
1572
1573 * sched-int.h (bb_note): Move to...
1574 * basic-block.h: ...here.
1575 * haifa-sched.c (bb_note): Move to...
1576 * cfgrtl.c: ...here.
1577 * function.c (next_block_for_reg): New function.
1578 (move_insn_for_shrink_wrap): Likewise.
1579 (prepare_shrink_wrap): Rewrite to use the above.
1580
1581 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
1582
1583 * gimple.c (is_gimple_non_addressable): Remove.
1584 * gimple.h: Remove is_gimple_non_addressable.
1585 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
1586 is_gimple_non_addressable.
1587 * trans-mem.c (expand_assign_tm): Same.
1588
1589 2012-01-09 Richard Guenther <rguenther@suse.de>
1590
1591 PR tree-optimization/51775
1592 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
1593 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
1594
1595 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1596
1597 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
1598 tuning parameters.
1599 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
1600
1601 2012-01-09 Richard Guenther <rguenther@suse.de>
1602
1603 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
1604
1605 2012-01-08 Jan Hubicka <jh@suse.cz>
1606
1607 PR tree-optimize/51680
1608 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
1609 on when known_vals needs to be computed; cleanup.
1610
1611 2012-01-08 Jan Hubicka <jh@suse.cz>
1612
1613 PR tree-optimize/51694
1614 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
1615
1616 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1617
1618 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
1619 for -std=c++98 and -std=c++11 too.
1620
1621 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
1622
1623 * cfgloop.c (cancel_loop): Add free() of bbs array.
1624
1625 2012-01-07 Jan Hubicka <jh@suse.cz>
1626
1627 PR tree-optimization/51600
1628 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
1629 that benefits small functions.
1630
1631 2012-01-07 Jan Hubicka <jh@suse.cz>
1632
1633 * ipa-inline.c (want_inline_small_function_p): Fix formating.
1634
1635 2012-01-07 Jan Hubicka <jh@suse.cz>
1636
1637 PR tree-optimization/51680
1638 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
1639 whose inlining reduce unit size.
1640
1641 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
1642
1643 PR bootstrap/51725
1644 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
1645 Add canonical node to containing_mem chain after the non-canonical
1646 one, even if there weren't any locs to propagate.
1647 (remove_useless_values): Keep only canonical values.
1648 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
1649 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
1650 canonicalize mem_chain elements that are not discarded.
1651
1652 2012-01-06 Jakub Jelinek <jakub@redhat.com>
1653
1654 PR target/47333
1655 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
1656 before emitting functions.
1657
1658 PR gcov-profile/50127
1659 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
1660 clear_aux_for_blocks.
1661
1662 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
1663
1664 PR debug/51746
1665 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
1666
1667 2012-01-06 Arnaud Charlet <charlet@adacore.com>
1668
1669 * c-decl.c (ext_block): Moved up.
1670 (collect_all_refs, for_each_global_decl): Take ext_block into account.
1671
1672 2012-01-06 Han Shen <shenhan@google.com>
1673
1674 Translate built-in include paths for sysroot.
1675 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
1676 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
1677
1678 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
1679 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
1680
1681 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
1682 control whether sysroot should be prepended to gxx include dir.
1683
1684 * configure: Regenerate.
1685
1686 2012-01-06 Torvald Riegel <triegel@redhat.com>
1687
1688 PR rtl-optimization/51771
1689 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
1690 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
1691
1692 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
1693
1694 PR tree-optimization/51315
1695 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
1696 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
1697
1698 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
1699
1700 PR target/51681
1701 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
1702 for shrp pattern. Correctly handle and fixup shift variable.
1703 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
1704
1705 2012-01-05 Jakub Jelinek <jakub@redhat.com>
1706
1707 PR debug/51762
1708 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
1709 note when !ACCUMULATE_OUTGOING_ARGS.
1710
1711 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
1712
1713 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
1714 condition.
1715 (extract_range_from_unary_expr_1): Avoid useless computations.
1716
1717 2012-01-05 Jakub Jelinek <jakub@redhat.com>
1718
1719 PR rtl-optimization/51767
1720 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
1721 of jump_block and add an extra edge for degenerated asm gotos.
1722
1723 PR middle-end/51768
1724 * stmt.c (check_unique_operand_names): Don't ICE during error
1725 reporting if i is from labels chain.
1726
1727 PR middle-end/44777
1728 * profile.c (branch_prob): Split bbs that have exit edge
1729 and need a fake entry edge too.
1730
1731 2012-01-05 Jan Hubicka <jh@suse.cz>
1732
1733 PR middle-end/49710
1734 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
1735 unlooping loops.
1736
1737 2012-01-05 Richard Guenther <rguenther@suse.de>
1738
1739 PR lto/50490
1740 * tree-streamer-out.c (write_ts_optimization): New function.
1741 (streamer_write_tree_body): Call it.
1742 * tree-streamer-in.c (lto_input_ts_optimization): New function.
1743 (streamer_read_tree_body): Call it.
1744 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
1745
1746 2012-01-05 Jakub Jelinek <jakub@redhat.com>
1747
1748 PR middle-end/51761
1749 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
1750 * gimplify.c (gimplify_cleanup_point_expr): Save and set
1751 in_cleanup_point_expr before gimplify_stmt call and restore it
1752 afterwards.
1753 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
1754 in_cleanup_point_expr is false.
1755
1756 2012-01-05 Richard Guenther <rguenther@suse.de>
1757
1758 PR middle-end/51764
1759 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
1760 to c.opt.
1761 * toplev.c (process_options): Reject combining mudflap and LTO.
1762 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
1763
1764 2012-01-05 Richard Guenther <rguenther@suse.de>
1765
1766 PR tree-optimization/51760
1767 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
1768 not VARYING.
1769 (bit_value_unop): Handle UNDEFINED operands.
1770 (bit_value_binop): Likewise.
1771
1772 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
1773
1774 * config/avr/avr.c (avr_replace_prefix): Remove.
1775 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
1776 (avr_asm_function_rodata_section): Ditto.
1777 (avr_asm_select_section): Ditto.
1778
1779 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
1780
1781 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
1782 insertion.
1783
1784 2012-01-05 Jakub Jelinek <jakub@redhat.com>
1785
1786 PR bootstrap/51648
1787 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
1788 calls that have any non-fake successor edges.
1789
1790 PR debug/51746
1791 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
1792
1793 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
1794
1795 PR tree-optimization/51624
1796 * tree-sra.c (build_ref_for_model): When replicating a chain of
1797 COMPONENT_REFs, stop as soon as the offset would become negative.
1798
1799 2012-01-04 Jakub Jelinek <jakub@redhat.com>
1800
1801 PR debug/51695
1802 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
1803 in .debug_loc on the floor.
1804
1805 2012-01-04 Andrew Pinski <apinski@cavium.com>
1806
1807 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
1808
1809 2012-01-04 Andrew Pinski <apinski@cavium.com>
1810 Adam Nemet <anemet@caviumnetworks.com>
1811
1812 * config/mips/mips.md (size): Add SI and DI.
1813 (SIZE): New mode attribute.
1814 (U): New code attribute.
1815 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
1816 (mips_lbux_<mode>): Delete.
1817 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
1818 (mips_lhx): Use gen_mips_lhx_extsi.
1819 (mips_lhx_<mode>): Delete.
1820 (mips_lwx): Delete.
1821 (mips_l<size>x): New expand.
1822 (mips_lwx_<mode>): Delete.
1823 (mips_l<GPR:size>x_<P:mode>): New pattern.
1824 (*mips_lw<u>x_<P:mode>_ext): Likewise.
1825 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
1826 * config/mips/mips.c (mips_lx_address_p): New function.
1827 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
1828 (dsp64): New availability predicate.
1829 (mips_builtins): Add an entry for __builtin_mips_ldx.
1830 * config/mips/mips.h (ISA_HAS_LBX): New define.
1831 (ISA_HAS_LBUX): Likewise.
1832 (ISA_HAS_LHX): Likewise.
1833 (ISA_HAS_LHUX): Likewise.
1834 (ISA_HAS_LWX): Likewise.
1835 (ISA_HAS_LWUX): Likewise.
1836 (ISA_HAS_LDX): Likewise.
1837 * doc/extend.texi (__builtin_mips_ldx): Document.
1838
1839 2012-01-04 Tristan Gingold <gingold@adacore.com>
1840
1841 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
1842 when long pointers are used.
1843 * config.build (*-*-*vms*): Handle all OpenVMS targets.
1844 (alpha64-dec-*vms*, alpha*-dec-*vms*)
1845 (ia64-hp-*vms*): Remove.
1846 * config/vms/xm-vms64.h: Delete.
1847
1848 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
1849
1850 PR middle-end/51472
1851 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
1852
1853 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
1854
1855 * opts.c (finish_options): Remove duplicate sorry.
1856
1857 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
1858
1859 PR middle-end/51696
1860 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
1861 correctly.
1862
1863 2012-01-04 Richard Guenther <rguenther@suse.de>
1864
1865 PR middle-end/51750
1866 * tree.c (size_low_cst): New function.
1867 * tree.h (size_low_cst): Declare.
1868 * fold-const.c (fold_comparison): Use it to extract the low
1869 part of the POINTER_PLUS_EXPR offset.
1870
1871 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
1872
1873 Fix clearing ZERO_REG
1874 * config/avr/avr.md (cc): Add alternative "ldi".
1875 (movqi_insn): Use it in cc attribute.
1876 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
1877 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
1878 (output_reload_insisf): Use ZERO_REG to pre-clear register.
1879
1880 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1881
1882 * configure: Regenerate.
1883
1884 2012-01-04 Richard Guenther <rguenther@suse.de>
1885
1886 PR tree-optimization/49651
1887 * tree-ssa-structalias.c (type_can_have_subvars): New function.
1888 (var_can_have_subvars): Use it.
1889 (get_constraint_for_1): Only consider subfields if there can be any.
1890
1891 2012-01-03 Jakub Jelinek <jakub@redhat.com>
1892
1893 PR bootstrap/51725
1894 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
1895 to its new canonical_cselib_val and the cselib_val was in
1896 first_containing_mem chain, but the canonical_cselib_val was not,
1897 add the latter into the chain.
1898 (cselib_invalidate_mem): Compare canonical_cselib_val of
1899 addr_list chain elt with v.
1900
1901 PR pch/51722
1902 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
1903 dwarf2out_undef): Allocate e.info using ggc_strdup instead
1904 of xstrdup.
1905 (output_macinfo_op): Don't ggc_strdup fd->filename.
1906 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
1907 then ggc_strdup it. Don't free inc->info or cur->info.
1908 (output_macinfo): Don't free ref->info or file->info.
1909
1910 2012-01-03 Ira Rosen <irar@il.ibm.com>
1911
1912 PR tree-optimization/51269
1913 * tree-vect-loop-manip.c (set_prologue_iterations): Make
1914 first_niters a pointer.
1915 (slpeel_tree_peel_loop_to_edge): Likewise.
1916 (vect_do_peeling_for_loop_bound): Update call to
1917 slpeel_tree_peel_loop_to_edge.
1918 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
1919 here. Remove it from the parameters list.
1920 (vect_do_peeling_for_alignment): Update calls and compute
1921 wide_prolog_niters.
1922
1923 2012-01-03 Richard Guenther <rguenther@suse.de>
1924
1925 PR tree-optimization/51070
1926 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
1927 Properly handle calls.
1928
1929 2012-01-03 Richard Guenther <rguenther@suse.de>
1930
1931 PR tree-optimization/51692
1932 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
1933 the LHS of allocation stmts.
1934
1935 2012-01-03 Olivier Hainque <hainque@adacore.com>
1936
1937 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
1938
1939 2012-01-03 Olivier Hainque <hainque@adacore.com>
1940
1941 * collect2.c (main): In AIX specific computations for vector
1942 insertions, use CONST_CAST2 to cast from char ** to const char **.
1943
1944 2012-01-03 Richard Guenther <rguenther@suse.de>
1945
1946 PR debug/51650
1947 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
1948 the context of a limbo DIE when it does not already exist.
1949
1950 2012-01-03 Jakub Jelinek <jakub@redhat.com>
1951
1952 PR tree-optimization/51719
1953 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
1954 but direct call is, clear direct call's lhs and don't add fallthrough
1955 edge from dcall_bb to join_bb and PHIs.
1956
1957 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1958
1959 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
1960 the instructions emitted by the pattern.
1961 ("*TDC_insn_<mode>"): Add comment.
1962
1963 2012-01-03 Richard Guenther <rguenther@suse.de>
1964
1965 PR middle-end/51730
1966 * fold-const.c (fold_comparison): Properly canonicalize
1967 tree offset and HOST_WIDE_INT bit position.
1968
1969 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
1970
1971 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
1972 operands for extzv pattern.
1973
1974 2012-01-02 Jakub Jelinek <jakub@redhat.com>
1975
1976 PR bootstrap/51725
1977 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
1978 on mem_elt first.
1979
1980 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
1981
1982 * doc/invoke.texi (-flto and related options): Copy-edit.
1983
1984 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1985
1986 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
1987
1988 2012-01-02 Jakub Jelinek <jakub@redhat.com>
1989
1990 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
1991 New patterns.
1992
1993 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1994
1995 * expr.h (move_by_pieces_ninsns): Declare.
1996 * expr.c (move_by_pieces_ninsns): Make external.
1997 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
1998 (mips_store_by_pieces_p): Likewise.
1999 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
2000 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
2001 * config/mips/mips.c (mips_move_by_pieces_p): New function.
2002 (mips_store_by_pieces_p): Likewise.
2003
2004 2012-01-02 Jakub Jelinek <jakub@redhat.com>
2005
2006 * passes.c (register_one_dump_file): Free full_name.
2007
2008 * reload1.c (reload): Don't allocate reg_max_ref_width here.
2009 (calculate_elim_costs_all_insns): Free offsets_at and
2010 offsets_known_at at the end and clear the pointers.
2011
2012 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
2013
2014 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
2015 this option introduced in r180739.
2016
2017 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
2018
2019 PR target/51345
2020 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
2021 (tmake_file target=avr): Add avr/t-multilib.
2022
2023 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
2024 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
2025 * config/avr/genmultilib.awk: New file.
2026 * config/avr/t-multilib: New auto-generated file.
2027 * config/avr/multilib.h: New auto-generated file.
2028 * config/avr/t-avr (AVR_MCUS): New variable.
2029 (genopt.sh): Use it.
2030 (s-mlib): Depend on t-multilib.
2031 (t-multilib, multilib.h): New dependencies.
2032 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
2033 (MULTILIB_OPTIONS): Remove.
2034 (MULTILIB_MATCHES): Remove.
2035 (MULTILIB_DIRNAMES): Remove.
2036 (MULTILIB_EXCEPTIONS): Remove:
2037 * config/avr/genopt.sh: Don't use hard coded file name;
2038 pass AVR_MCUS from t-avr instead.
2039
2040 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
2041
2042 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
2043
2044 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
2045
2046 Implement light-weight DImode support.
2047 * config/avr/avr-dimode.md: New file.
2048 * config/avr/avr.md: Include it.
2049 (adjust_len): Add plus64, compare64.
2050 (HIDI): Remove code iterator.
2051 (code_stdname): New code attribute.
2052 (rotx, rotsmode): Remove DI.
2053 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
2054 as code iterator.
2055 * config/avr/avr-protos.h (avr_have_dimode): New.
2056 (avr_out_plus64, avr_out_compare64): New.
2057 * config/avr/avr.c (avr_out_compare): Handle DImode.
2058 (avr_have_dimode): New variable definition and initialization.
2059 (avr_out_compare64, avr_out_plus64): New functions.
2060 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
2061 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
2062 (avr_compare_pattern): Skip DImode comparisons.
2063
2064 2012-01-02 Revital Eres <revital.eres@linaro.org>
2065
2066 * ddg.c (def_has_ccmode_p): New function.
2067 (add_cross_iteration_register_deps,
2068 create_ddg_dep_from_intra_loop_link): Call it.
2069
2070 2012-01-02 Richard Guenther <rguenther@suse.de>
2071
2072 PR other/51679
2073 * invoke.texi (fassociative-math): Remove spurious paranthesis.
2074
2075 2012-01-01 Jakub Jelinek <jakub@redhat.com>
2076
2077 * gcc.c (process_command): Update copyright notice dates.
2078 * gcov.c (print_version): Likewise.
2079 * gcov-dump.c (print_version): Likewise.
2080 * mips-tfile.c (main): Likewise.
2081 * mips-tdump.c (main): Likewise.
2082
2083 2012-01-01 Ira Rosen <irar@il.ibm.com>
2084
2085 PR tree-optimization/51704
2086 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
2087 a use is inside the basic block or loop before accessing its vect info.
2088
2089 2012-01-01 Jan Hubicka <jhjh@suse.cz>
2090
2091 PR rtl-optimization/51069
2092 * cfgloopmanip.c (remove_path): Removing path making irreducible
2093 region unconditional makes BB part of the region.
2094
2095 2012-01-01 Jakub Jelinek <jakub@redhat.com>
2096
2097 PR tree-optimization/51683
2098 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
2099 calls with side-effects.
2100 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2101 \f
2102 Copyright (C) 2012 Free Software Foundation, Inc.
2103
2104 Copying and distribution of this file, with or without modification,
2105 are permitted in any medium without royalty provided the copyright
2106 notice and this notice are preserved.