OSDN Git Service

Backport from mainline
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
2
3         Backport from mainline
4         2012-05-12  Uros Bizjak  <ubizjak@gmail.com>
5
6         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
7         ORDERED and UNORDERED conditions.
8
9 2012-05-12  Eric Botcazou  <ebotcazou@adacore.com>
10
11         * function.c (requires_stack_frame_p): If the function can throw
12         non-call exceptions, return true if the insn can throw internally.
13
14 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
15
16         * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
17         DECL_ORIGINAL_TYPE if it is present.
18
19 2012-05-09  Georg-Johann Lay  <avr@gjlay.de>
20
21         Backport from 2012-05-12 mainline r187342.
22
23         PR target/53256
24         * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
25         * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
26         * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
27         * config/avr/avr.c (avr_asm_declare_function_name): Remove.
28         (expand_prologue): Move initialization of cfun->machine->is_naked,
29         is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
30         (avr_set_current_function): ...this new static function.
31         (TARGET_SET_CURRENT_FUNCTION): New define.
32         (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
33         checking attributes of current_function_decl.
34         (avr_regs_to_save): Ditto.
35         (signal_function_p): Rename to avr_signal_function_p.
36         (interrupt_function_p): Rename to avr_interrupt_function_p.
37
38         * doc/extend.texi (Function Attributes): Better explanation of
39         'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
40         alphabetical order.
41
42 2012-05-09  Matthias Klose  <doko@ubuntu.com>
43
44         * gcc-ar.c (main): Don't check for execute bits for the plugin.
45
46 2012-05-08  Hans-Peter Nilsson  <hp@axis.com>
47
48         PR target/53272
49         * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
50         when a constant source operand matches an "I" constraint, the "no
51         CC0 change" applies to a register-destination only, not a
52         strict_low_part-destination.
53
54 2012-05-07  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
55
56         Backport from mainline:
57         2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
58
59         * config/arm/sync.md (sync_optab): Change ior attribute to "or".
60
61 2012-05-07  Jakub Jelinek  <jakub@redhat.com>
62
63         PR tree-optimization/53239
64         * tree-vrp.c (get_value_range): Set VR of
65         SSA_NAME_IS_DEFAULT_DEF of DECL_BY_REFERENCE RESULT_DECL
66         to nonnull.
67
68 2012-05-07  Richard Guenther  <rguenther@suse.de>
69
70         PR tree-optimization/53195
71         * tree-inline.c (setup_one_parameter): Properly add referenced
72         vars from the parameters new known value.
73
74 2012-05-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
75
76         Backport from mainline:
77         2012-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
78
79         PR target/52999
80         * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
81         in constant pool.
82
83 2012-05-04  Ian Lance Taylor  <iant@google.com>
84
85         * tree-vect-patterns.c (vect_single_imm_use): Correct return
86         values from false to NULL.
87
88 2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
89
90         Backport from mainline
91         2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
92
93         PR target/53228
94         * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
95         (TARGET_CMOV): Rename from TARGET_CMOVE.
96         (TARGET_CMOVE): New define.
97         * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
98         Do not set TARGET_CMOVE here.
99
100 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
101
102         Backport from mainline:
103
104         2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
105
106         PR tree-optimization/52633
107         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
108         vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
109         (vect_recog_over_widening_pattern): Remove handling of code that was
110         already detected as over-widening pattern.  Remove special handling
111         of "unsigned" cases.  Instead, support general case of conversion
112         of the shift result to another type.
113
114         2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
115
116         * tree-vect-patterns.c (vect_single_imm_use): New function.
117         (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
118         (vect_recog_over_widening_pattern): Likewise.
119         (vect_recog_widen_shift_pattern): Likewise.
120
121         2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
122
123         PR tree-optimization/52870
124         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
125         presumed pattern statement is within the same loop or basic block.
126
127 2012-05-04  Richard Guenther  <rguenther@suse.de>
128
129         * common.opt (flto-report): Do not mark as Optimization.
130
131 2012-05-04  Eric Botcazou  <ebotcazou@adacore.com>
132
133         PR target/48496
134         * recog.c (constrain_operands): If extra constraints are present, also
135         accept pseudo-registers with equivalent memory locations during reload.
136
137 2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
138
139         Backport from the mainline
140         2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
141
142         PR target/53199
143         * config/rs6000/rs6000.md (bswapdi splitters): If
144         -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
145         default) is used, generate an alternate sequence that does not
146         depend on using indexed addressing.
147
148 2012-05-03  David S. Miller  <davem@davemloft.net>
149
150         PR target/52684
151         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
152         MEM directly into a libcall, mark it's MEM_EXPR as addressable.
153         (sparc_emit_float_lib_cmp): Likewise.
154
155 2012-05-04  Martin Jambor  <mjambor@suse.cz>
156
157         Backport from mainline
158         2012-05-02  Martin Jambor  <mjambor@suse.cz>
159
160         PR lto/52605
161         * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
162         of a variable when the contect is a function.
163
164 2012-05-03  Jakub Jelinek  <jakub@redhat.com>
165
166         PR plugins/53126
167         * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
168         append program name to it and pass that as first argument
169         to make_relative_prefix.  Always pass standard_libexec_prefix
170         as last argument to make_relative_prefix.  If
171         make_relative_prefix returns NULL, fall back to
172         standard_libexec_prefix.
173
174         PR debug/53174
175         * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
176         removed.
177
178         PR target/53187
179         * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
180         mode, return that mode.
181
182 2012-05-03  Richard Guenther  <rguenther@suse.de>
183
184         PR tree-optimization/53144
185         * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
186         Rename to ...
187         (vn_reference_lookup_or_insert_for_pieces): ... this.  Properly deal
188         with SSA name values.
189         (vn_reference_lookup_3): Adjust callers.
190
191 2012-05-02  Jakub Jelinek  <jakub@redhat.com>
192
193         PR tree-optimization/53163
194         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
195         return value from compute_all_dependences.
196
197         PR rtl-optimization/53160
198         * ree.c (combine_reaching_defs): Handle the case where cand->insn
199         has been modified by ree pass already.
200
201 2012-05-01  Uros Bizjak  <ubizjak@gmail.com>
202
203         Backport from mainline
204         2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
205
206         PR middle-end/53136
207         * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
208         calls to cgraph_node_name in xstrdup.
209         (ipa_make_edge_direct_to_target): Ditto.
210         * tree-sra.c (convert_callers_for_node): Ditto.
211         * lto-symtab.c (lto_cgraph_replace_node): Ditto.
212         * ipa-cp.c (perhaps_add_new_callers): Ditto.
213         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
214         (cgraph_materialize_all_clones): Ditto.
215         * ipa-inline.c (report_inline_failed_reason): Ditto.
216         (want_early_inline_function_p): Ditto.
217         (edge_badness): Ditto.
218         (update_edge_key): Ditto.
219         (flatten_function): Ditto.
220         (ipa_inline): Ditto.
221         (inline_always_inline_functions): Ditto.
222         (early_inline_small_functions): Ditto.
223
224 2012-04-30  Andreas Tobler  <andreast@fgznet.ch>
225
226         Backport from mainline
227         2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
228
229         * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
230         Introduce emul_name to select the right linker emulation for
231         powerpc64-*-freebsd*.
232         * configure: Regenerate.
233         * config.gcc: Add bits to support powerpc64-*-freebsd*.
234         * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
235         * config/rs6000/freebsd64.h: New file.
236         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
237         POWERPC_FREEBSD.
238         (rs6000_savres_strategy): Likewise.
239         (rs6000_savres_routine_name): Likewise.
240         (rs6000_elf_file_end): Likewise.
241         * config/rs6000/t-freebsd64: New file.
242         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
243         rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
244
245 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
246
247         Backport from mainline
248         2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
249
250         PR target/53138
251         * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
252
253 2012-04-30  Eric Botcazou  <ebotcazou@adacore.com>
254
255         * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
256         predicate to discriminate types.
257
258 2012-04-27  Richard Guenther  <rguenther@suse.de>
259
260         PR c/51527
261         * convert.c (convert_to_integer): Avoid infinite recursion for
262         target-defined built-in types.
263
264 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
265
266         PR target/53120
267         * config/cris/cris.md ("*andhi_lowpart_v32")
268         ("*andqi_lowpart_v32"): Change first input-only operand from
269         a (match_operand ...) to (match_dup 0).  Drop alternatives with
270         const_int-matching constraints for redundancy.
271         ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
272         three-operand alternative.
273
274 2012-04-26  Uros Bizjak  <ubizjak@gmail.com>
275
276         Backport from mainline
277         2012-04-23  Uros Bizjak  <ubizjak@gmail.com>
278
279         * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
280         (*addsi_2_zext): Ditto.
281         (*add<mode>_3): Ditto.
282         (*addsi_3_zext): Ditto.
283         (*add<mode>_5): Ditto.
284
285 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
286
287         PR c/52880
288         * c-typeck.c (set_nonincremental_init,
289         set_nonincremental_init_from_string): Pass true instead of false
290         as IMPLICIT to add_pending_init.
291
292 2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
293
294         Backport from 2012-04-24 mainline r186768.
295
296         PR target/53065
297         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
298
299 2012-04-24  Richard Guenther  <rguenther@suse.de>
300
301         PR tree-optimization/53085
302         * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
303         stores.
304
305 2012-04-24  Jakub Jelinek  <jakub@redhat.com>
306
307         PR middle-end/53084
308         * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR
309         of MEM_REF.
310         (output_addressed_constants): Likewise.
311
312         PR middle-end/52999
313         * varasm.c (get_section): Don't ICE for section conflicts with
314         built-in section kinds.
315
316 2012-04-23  David Edelsohn  <dje.gcc@gmail.com>
317
318         * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
319
320 2012-04-23  Georg-Johann Lay  <avr@gjlay.de>
321
322         * doc/extend.texi (AVR Named Address Spaces): Fix typos.
323
324 2012-04-23  Richard Guenther  <rguenther@suse.de>
325
326         PR c/53060
327         * c-typeck.c (build_binary_op): Fix typo.
328
329 2012-04-23  Jakub Jelinek  <jakub@redhat.com>
330
331         PR tree-optimizations/52891
332         * tree-vect-patterns.c (adjust_bool_pattern): Use
333         build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
334         but with non-standard precision.
335
336 2012-04-22  Ian Lance Taylor  <iant@google.com>
337
338         * godump.c (go_output_typedef): Dump size of structs.
339
340 2012-04-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
341
342         Backport from mainline:
343
344         * config/arm/arm.c (arm_print_operand): Fix invalid alignment
345         hints for 'A' operand types.
346
347 2012-04-19  Georg-Johann Lay  <avr@gjlay.de>
348
349         Backport from 2012-04-19 mainline r186588.
350
351         PR target/53033
352         * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
353         the case *(X+const).
354
355 2012-04-18  Uros Bizjak  <ubizjak@gmail.com>
356
357         * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
358
359 2012-04-17  Uros Bizjak  <ubizjak@gmail.com>
360
361         PR target/53020
362         * config/i386/sync.md (atomic_<code><mode>): Rename to
363         atomic_<logic><mode>.
364
365 2012-04-16  Uros Bizjak  <ubizjak@gmail.com>
366
367         Backport from mainline
368         2012-04-12  Uros Bizjak  <ubizjak@gmail.com>
369
370         PR target/52932
371         * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
372         argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
373         * config/i386/sse.md (avx2_permvarv8sf): Change operand 1 to V8SI.
374         (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
375         * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
376         Update builtin type to V8SF_FTYPE_V8SF_V8SI.
377         (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
378         gen_avx2_permvarv8sf.
379
380 2012-04-16  Martin Jambor  <mjambor@suse.cz>
381
382         Backported from mainline
383
384         2012-04-13  Martin Jambor  <mjambor@suse.cz>
385         PR middle-end/52939
386
387         * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
388         fold_ctor_reference returns a zero constant.
389
390 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
391
392         Backported from mainline
393         2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
394
395         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
396         and __ILP32__ for x32.
397
398 2012-04-13  Tom de Vries  <tom@codesourcery.com>
399
400         Backport from mainline r186418.
401
402         2012-04-13  Tom de Vries  <tom@codesourcery.com>
403
404         * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
405         parameters vuse and vuse_escaped.
406         (find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
407         gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
408         vuse1 != vuse2.
409
410 2012-04-13  Richard Guenther  <rguenther@suse.de>
411
412         PR tree-optimization/52969
413         * tree-if-conv.c (predicate_mem_writes): Properly gimplify
414         the condition for the COND_EXPR and handle predicate negation
415         by swapping the COND_EXPR arms.
416
417 2012-04-13  Richard Guenther  <rguenther@suse.de>
418
419         PR c/52862
420         * convert.c (convert_to_pointer): Remove special-casing of
421         zero.
422
423 2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
424
425         Backport from mainline
426         2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
427
428         PR target/52775
429         * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
430         the list of options to enable the FCFID instruction.
431         (TARGET_EXTRA_BUILTINS): Adjust comment.
432
433 2012-04-12  Richard Guenther  <rguenther@suse.de>
434
435         PR tree-optimization/52943
436         * tree-chrec.h (chrec_is_positive): Remove.
437         * tree-scalar-evolution.c (chrec_is_positive): Move ...
438         * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
439         Return false for a constant zero instead of negative.
440         (analyze_siv_subscript_cst_affine): Handle zero difference
441         in the initial condition explicitely.
442
443 2012-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
444
445         PR middle-end/52894
446         * varasm.c (process_pending_assemble_externals): Set
447         pending_assemble_externals_processed true.
448         (assemble_external): Call assemble_external_real if the pending
449         assemble externals have been processed.
450
451 2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
452
453         PR target/52717
454         * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
455         the DECL generated for the special GOT helper.
456
457 2012-04-06  Walter Lee  <walt@tilera.com>
458
459         Backport from mainline
460         2012-03-07  Walter Lee  <walt@tilera.com>
461
462         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
463         REG_CFA_* notes for the stack pointer.
464         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
465         EH_RETURN_STACKADJ_RTX.
466         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
467         generate REG_CFA_* notes for the stack pointer.
468         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
469         by EH_RETURN_STACKADJ_RTX.
470
471 2012-04-06  Matt Turner  <mattst88@gmail.com>
472
473         * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
474
475 2012-04-06  Eric Botcazou  <ebotcazou@adacore.com>
476
477         * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
478         of the destination isn't also a FP_REGS register.
479
480 2012-04-03  Richard Guenther  <rguenther@suse.de>
481
482         Backport from mainline
483         2012-03-02  Richard Guenther  <rguenther@suse.de>
484
485         PR tree-optimization/52406
486         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
487         (struct indices): Add unconstrained_base member.
488         (struct dr_alias): Remove unused vops member.
489         (DR_UNCONSTRAINED_BASE): New define.
490         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
491         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
492         be an artificial access that covers the whole indexed object,
493         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
494         plain decl base-objects to their MEM_REF variant.
495         (dr_may_alias_p): When the base-object of either data reference
496         has unknown size use only points-to information.
497         (compute_affine_dependence): Make dumps easier to read and
498         more verbose.
499         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
500         DR_REF when looking for packed references.
501         (vect_supportable_dr_alignment): Likewise.
502
503 2012-04-03  Richard Guenther  <rguenther@suse.de>
504
505         Backport from mainline
506         2012-03-15  Richard Guenther  <rguenther@suse.de>
507
508         PR middle-end/52580
509         * tree-data-ref.c (subscript_dependence_tester_1): Check
510         all dimensions for non-conflicting access functions.
511
512 2012-04-03  Richard Guenther  <rguenther@suse.de>
513
514         Backport from mainline
515         2012-03-06  Richard Guenther  <rguenther@suse.de>
516
517         PR middle-end/52493
518         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
519
520         2012-03-23  Richard Guenther  <rguenther@suse.de>
521
522         PR tree-optimization/52678
523         * tree-vectorizer.h (struct _stmt_vec_info): Add
524         loop_phi_evolution_part member.
525         (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
526         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
527         STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
528         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
529         Use the cached evolution part and the PHI nodes value from
530         the loop preheader edge instead of re-analyzing the evolution.
531
532         2012-03-26  Richard Guenther  <rguenther@suse.de>
533
534         PR tree-optimization/52701
535         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
536         compute and set the evolution part of PHI nodes.
537
538         2012-03-30  Richard Guenther  <rguenther@suse.de>
539
540         PR tree-optimization/52754
541         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
542         propagate arbitrary addresses into really plain dereferences.
543
544 2012-04-03  Jakub Jelinek  <jakub@redhat.com>
545
546         PR tree-optimization/52835
547         * tree-data-ref.c (build_rdg): Return NULL if
548         compute_data_dependences_for_loop failed.
549
550 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
551
552         * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
553         (stmt_can_make_abnormal_goto): Use it.
554         (is_ctrl_altering_stmt): Likewise.
555
556 2012-03-31  Martin Jambor  <mjambor@suse.cz>
557
558         Backported from mainline
559         2012-03-30  Martin Jambor  <mjambor@suse.cz>
560
561         * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
562         is a builtin_stack_save in a dominating BB.
563
564 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
565
566         * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
567         crossing 128bit lane boundary.
568
569 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
570
571         Backported from mainline
572         2012-03-27  Uros Bizjak  <ubizjak@gmail.com>
573
574         PR target/52698
575         * config/i386/i386-protos.h (ix86_legitimize_reload_address):
576         New prototype.
577         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
578         * config/i386/i386.c: Include reload.h.
579         (ix86_legitimize_reload_address): New function.
580
581 2012-03-28  Martin Jambor  <mjambor@suse.cz>
582
583         Backported from mainline
584         2012-03-27  Martin Jambor  <mjambor@suse.cz>
585
586         PR middle-end/52693
587         * tree-sra.c (sra_modify_assign): Do not call
588         load_assign_lhs_subreplacements when working with an unscalarizable
589         region.
590
591 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
592
593         PR middle-end/52691
594         * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
595         __builtin_va_start to __builtin_next_arg if the latter is
596         builtin_decl_explicit_p rather than when it is not.
597
598         PR middle-end/52750
599         * tree-vect-generic.c (vector_element): Perform multiplication
600         for pos in bitsizetype type instead of idx type.
601
602 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
603
604         Backport from 2012-03-28 mainline r185910.
605
606         PR target/52692
607         * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
608         (avr_builtin_decl): New static function.
609         (struct avr_builtin_description, avr_bdesc): Move up.
610         Add GTY marker. Add field fndecl. Remove redundant field id.
611         (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
612         (avr_expand_builtin): Code cleanup because .id is removed.
613
614 2012-03-28  Aurelien Buhrig  <aurelien.buhrig.gcc@gmail.com>
615
616         PR middle-end/51893
617         * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
618         targets.
619
620 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
621
622         Backport from 2012-03-28 mainline r185907.
623
624         PR target/52737
625         * config.gcc (tm_file): Remove avr/multilib.h.
626
627         * doc/invoke.texi (AVR Options): Adjust
628         documentation of -mtiny-stack.
629
630         * config/avr/genmultilib.awk: Remove code to generate multilib.h.
631         (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
632         * config/avr/t-avr: Remove generation of multilib.h.
633         * config/avr/t-multilib: Regenerate.
634         * config/avr/multilib.h: Remove.
635         * config/avr/avr.opt (-msp8): New option.
636         (avr_sp8): New variable.
637         * config/avr/driver-avr.c (avr_device_to_sp8): New function.
638         * config/avr/avr.h (AVR_HAVE_SPH): New define.
639         (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
640         (avr_device_to_sp8): New prototype.
641         (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
642         (DRIVER_SELF_SPECS): New define.
643         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
644         __AVR_SP8__, __AVR_HAVE_SPH__.
645         * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
646         AVR_HAVE_8BIT_SP to decide if SP_H is present.
647         (avr_file_start): Ditto.
648
649 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
650
651         PR target/52736
652         * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
653         instead of 8 in adjust_address.
654
655 2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
656
657         * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
658         of a unit before computing the offset in units.
659
660 2012-03-27  Richard Guenther  <rguenther@suse.de>
661
662         PR middle-end/52720
663         * fold-const.c (try_move_mult_to_index): Handle &x.array more
664         explicitely.
665
666 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
667
668         PR target/52610
669         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
670
671 2012-03-24  Steven Bosscher  <steven@gcc.gnu.org>
672
673         PR middle-end/52640
674         * varasm.c: Include pointer-set.h.
675         (pending_assemble_externals_set): New pointer set.
676         (process_pending_assemble_externals): Destroy the pointer set.
677         (assemble_external): See if decl is in pending_assemble_externals_set,
678         and add it to pending_assemble_externals if necessary.
679         (init_varasm_once): Allocate pending_assemble_externals_set.
680
681 2012-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
682
683         Backported from mainline
684         2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
685
686         PR target/50310
687         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
688         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
689         (vector_ltgt<mode>): Likewise.
690         (vector_ordered<mode>): Likewise.
691         (vector_unordered<mode>): Likewise.
692         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
693
694 2012-03-23  Joern Rennecke  <joern.rennecke@embecosm.com>
695
696         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
697         Make static.
698
699 2012-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
700
701         Backported from mainline
702         2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
703
704         PR target/48596
705         PR target/48806
706         * config/sh/sh.c (sh_register_move_cost): Increase cost between
707         GENERAL_REGS and FP_REGS for SImode.
708
709 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
710
711         PR middle-end/52547
712         * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
713         on any new_local_var_chain vars declared during recursing on
714         GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
715
716 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
717
718         Backport from 2012-03-22 mainline r185692.
719
720         PR target/52496
721         * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
722         (unspecv): Add UNSPECV_MEMORY_BARRIER.
723         (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
724         (delay_cycles_1, delay_cycles_2): Ditto.
725         (delay_cycles_3, delay_cycles_4): Ditto.
726         (nopv, *nopv): Ditto.
727         (sleep, *sleep): Ditto.
728         (wdr, *wdr): Ditto.
729
730         Backport from 2012-03-21 mainline r185605.
731
732         PR rtl-optimization/52543
733         PR target/52461
734         * config/avr/avr-protos.h (avr_load_lpm): New prototype.
735         * config/avr/avr.c (avr_mode_dependent_address_p): New function.
736         (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
737         (avr_load_libgcc_p): Restrict to __flash loads.
738         (avr_out_lpm): Only handle 1-byte loads from __flash.
739         (avr_load_lpm): New function.
740         (avr_find_unused_d_reg): Remove.
741         (avr_out_lpm_no_lpmx): Remove.
742         (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
743         * config/avr/avr.md (unspec): Add UNSPEC_LPM.
744         (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
745         (load_<mode>, load_<mode>_clobber): New insns.
746         (mov<mode>): For multi-byte move from non-generic
747         16-bit address spaces: Expand to load_<mode> resp.
748         load_<mode>_clobber.
749         (load<mode>_libgcc): Remove expander.
750         (split-lpmx): Remove split.
751
752         Backport from 2012-03-13 mainline r185329.
753
754         PR target/52488
755         * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
756         offset (size) to a value the insns can deal with.
757         (expand_epilogue): Ditto.
758
759         Backport from 2012-03-12 mainline r185256.
760
761         PR target/52499
762         * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
763         type from reg_class_t to enum reg_class.
764         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
765
766         Backport from 2012-03-12 mainline r185253.
767
768         PR target/52148
769         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
770         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
771         r184615 from 2012-02-28.
772
773         Backport from 2012-03-08 mainline r185105.
774
775         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
776         for constants in [-63,63].
777
778         Backport from 2012-03-08 mainline r185100.
779
780         PR target/52496
781         * config/avr/avr.c (avr_mem_clobber): New static function.
782         (avr_expand_delay_cycles): Add memory clobber operand to
783         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
784         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
785         (enable_interrupt, disable_interrupt): New expander.
786         (nopv, sleep, wdr): New expanders.
787         (delay_cycles_1): Add memory clobber.
788         (delay_cycles_2): Add memory clobber.
789         (delay_cycles_3): Add memory clobber.
790         (delay_cycles_4): Add memory clobber.
791         (cli_sei): New insn from former "enable_interrupt",
792         "disable_interrupt" with memory clobber.
793         (*wdt): New insn from former "wdt" with memory clobber.
794         (*nopv): Similar, but for "nopv".
795         (*sleep): Similar, but for "sleep".
796
797         Backport from 2012-03-07 mainline r185043.
798
799         PR target/52484
800         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
801
802         Backport from 2012-03-07 mainline r185032.
803
804         PR target/52506
805         * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
806         to: RAMPZ, RAMPY, RAMPX, RAMPD.
807         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
808
809         Backport from 2012-03-07 mainline r185031.
810
811         PR target/52505
812         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
813         from RAM.
814         * config/avr/avr.md (xload_8): Adjust insn length.
815
816         Backport from 2012-03-07 mainline r185030.
817
818         PR target/52461
819         * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
820         if RAMPZ affects reading from RAM.
821
822         Backport from 2012-03-05 mainline r184919.
823
824         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
825
826 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
827
828         Backport from mainline r185259.
829
830         PR other/52545
831         * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
832         SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
833
834 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
835
836         Backported from mainline
837         2012-03-13  Jakub Jelinek  <jakub@redhat.com>
838
839         PR c/52577
840         * c-parser.c (c_parser_postfix_expression)
841         <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
842
843         * config/i386/smmintrin.h: Avoid /* within a comment.
844         * config/i386/nmmintrin.h: Likewise.
845
846 2012-03-22  Richard Guenther  <rguenther@suse.de>
847
848         * BASE-VER: Set to 4.7.1.
849         * DEV-PHASE: Set to prerelease.
850
851 2012-03-22  Release Manager
852
853         * GCC 4.7.0 released.
854
855 2012-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
856
857         * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
858
859 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
860             Andrew Pinski  <apinski@cavium.com>
861
862         PR middle-end/52592
863         * builtins.c (expand_builtin_int_roundingfn_2): If expanding
864         BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
865         calls instead of __builtin_ir{int,ound}*.
866
867 2012-03-14  Jakub Jelinek  <jakub@redhat.com>
868
869         PR c++/52582
870         * config/rs6000/rs6000.c (call_ABI_of_interest): Return true
871         if c_node is NULL.
872
873 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
874
875         * doc/invoke.texi (-std=c99), doc/standards.texi (C language):
876         Refer to GCC 4.7 version of c99status.html.
877
878 2012-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
879
880         Backport from mainline
881         2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
882
883         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
884         redefine to be NULL if the current bit-size is different from the
885         configured bit-size.
886
887         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
888         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
889         set the default tuning.  Add asserts to make sure the cpu and tune
890         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
891         test whether the index is set, instead of > 0.
892         (rs6000_file_start): Do not reset the default cpu if the current
893         bit-size is different from the configured bit-size.
894
895 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
896
897         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
898         binutils reference.
899         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
900         Update binutils references.
901         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
902         Update binutils reference.
903         Update Sun as/GNU ld caveat.
904         Document binutils largefile requirement for LTO plugin.
905         Remove reference to alternate libpthread.
906
907 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
908
909         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update binutils
910         reference.
911         (Specific, mips-sgi-irix6): Likewise.
912
913 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
914
915         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
916         * configure: Regenerate.
917
918 2012-03-07  Richard Henderson  <rth@redhat.com>
919
920         * config/m68k/m68k.h (ISA_HAS_TAS): New.
921         * config/m68k/sync.md (atomic_test_and_set): Use it.
922         (atomic_test_and_set_1): Likewise.
923
924 2012-03-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
925
926         PR target/51417
927         * Makefile.in: Let install-gcc-ar depend on installdirs,
928         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
929         Don't double canonicalize if cross-compiling.
930
931 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
932
933         * trans-mem.c: New typedef for tm_region_p.
934         Define vector types for tm_region_p.
935         (tm_region_init): Replace region_worklist to a vector called
936         bb_regions.
937
938 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
939
940         PR middle-end/52463
941         * trans-mem.c (tm_region_init): Use last_basic_block.
942
943 2012-03-05  Richard Henderson  <rth@redhat.com>
944
945         PR tree-opt/52242
946         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
947         * omp-low.c (expand_omp_atomic): Assume anything aligned to
948         BIGGEST_ALIGNMENT is aligned.
949
950 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
951
952         * config/sh/sh.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
953
954 2012-03-05  Richard Henderson  <rth@redhat.com>
955
956         PR target/52481
957         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
958         instead of calling negqi2 directly.
959
960 2012-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
961
962         * config/mips/iris6.h [!USED_FOR_TARGET] (long_intmax): Declare.
963         (INTMAX_TYPE): Use it.
964         (UINTMAX_TYPE): Likewise.
965         (SUBTARGET_OVERRIDE_OPTIONS): Define.
966         (irix6_c_common_override_options): Declare.
967         (C_COMMON_OVERRIDE_OPTIONS): Define.
968         * config/mips/mips.c [TARGET_IRIX6] (long_intmax): Define.
969         * config/mips/irix6-c.c: New file.
970         * config/mips/t-irix6 (irix6-c.o): New target.
971         * config.gcc (mips-sgi-irix6.5): Set c_target_objs,
972         cxx_target_objs.
973
974 2012-03-02  Richard Henderson  <rth@redhat.com>
975
976         * optabs.c (expand_atomic_test_and_set): Honor
977         atomic_test_and_set_trueval even when atomic_test_and_set
978         optab is not in use.
979
980 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
981
982         Backport from mainline
983         2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
984
985         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
986
987 2012-03-02  Richard Guenther  <rguenther@suse.de>
988
989         * DEV-PHASE: Set to prerelease.
990
991 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
992
993         * config.gcc (obsolete): Add all ARM targets using the FPA.
994         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
995         * doc/install.texi: Avoid references to obsolete ARM ports.
996
997 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
998
999         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
1000
1001 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
1002             Joern Rennecke  <joern.rennecke@embecosm.com>
1003
1004         * doc/extend.texi: Expand and update information on interrupt
1005         attribute for Epiphany.
1006
1007 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
1008
1009         * config/sh/sh-protos.h: Update copyright notice dates.
1010         * config/sh/sh.h: Likewise.
1011         * config/sh/sh.md: Likewise.
1012         * config/sh/constraints.md: Likewise.
1013         * config/sh/predicates.md: Likewise.
1014
1015 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
1016
1017         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
1018         * config/sh/sh.c (tertiary_reload_operand): Likewise.
1019
1020 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
1021
1022         * config/sh/constraints.md: Fix comment typo.
1023
1024 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1025
1026         PR target/52408
1027         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
1028         unsigned HOST_WIDE_INT.
1029         (zvdep_imm64): Likewise.
1030         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
1031         (vdepi_and): Likewise.
1032         Likewise for unamed 64-bit patterns.
1033         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
1034
1035 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
1036
1037         PR debug/52001
1038         PR rtl-optimization/52417
1039         * cselib.c (cselib_any_perm_equivs): New variable.
1040         (cselib_reset_table): Check that it's not set when not
1041         preserving constants.
1042         (cselib_add_permanent_equiv): Set it.
1043         (cselib_have_permanent_equivalences): New.
1044         (cselib_init, cselib_finish): Reset it.
1045         * cselib.h (cselib_have_permanent_equivalences): Declare.
1046         * alias.c (get_addr): Restore earlier behavior when there
1047         aren't permanent equivalences.
1048
1049 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
1050
1051         * config/mn10300/mn10300-modes.def: Fix copyright notice.
1052         * config/v850/v850-modes.def: Fix copyright notice.
1053
1054 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
1055
1056         * doc/extend.texi (AVR Built-in Functions): Document
1057         __builtin_avr_flash_segment.
1058
1059         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
1060         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
1061         (*split.flash_segment): New insn-and-split.
1062         * config/avr/avr.c (avr_init_builtins): Add local variables:
1063         const_memx_void_node, const_memx_ptr_type_node,
1064         char_ftype_const_memx_ptr.
1065
1066 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
1067
1068         PR tree-optimization/52445
1069         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
1070         add ssa_name_ver, offset and size fields and change store field
1071         to bool.
1072         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
1073         (add_or_mark_expr): Likewise.  Only consider previous stores
1074         with the same size and offset.
1075         (nt_init_block): Only look at gimple_assign_single_p stmts,
1076         doesn't look at rhs2.
1077
1078 2012-03-01  Richard Guenther  <rguenther@suse.de>
1079
1080         PR middle-end/52443
1081         * tree-cfg.c (verify_gimple_assign_unary): Allow any
1082         conversions from integral types to pointer types.
1083
1084 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
1085
1086         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
1087         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
1088         unintentionally removed in r184616.
1089
1090 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1091
1092         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
1093         3DNow from bdver1.
1094
1095 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
1096             Uros Bizjak  <ubizjak@gmail.com>
1097
1098         PR target/52437
1099         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
1100         alternatives, add "e" constraint to the new last alternative
1101         and ! to last 3 alternatives.
1102
1103 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
1104
1105         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
1106         DW_AT_artificial attributes at the end of the processing.
1107         (gen_array_type_die): Likewise.
1108         (gen_enumeration_type_die): Likewise.
1109         (gen_struct_or_union_type_die): Likewise.
1110         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
1111         the parent type.
1112
1113 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
1114
1115         PR middle-end/52419
1116         * expr.c (expand_assignment): If doing misaligned store that doesn't
1117         cover all mode bits, perform a RMW cycle.
1118
1119         PR tree-optimization/52429
1120         * tree-parloops.c (separate_decls_in_region_debug): Return early
1121         if var is LABEL_DECL.
1122
1123 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1124
1125         PR tree-optimization/52424
1126         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
1127         calling dom_thread_across_edge.
1128
1129 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
1130
1131         * config/avr/avr.c: Move definition of TARGET macros to end of file.
1132
1133 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
1134
1135         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
1136         * config/avr/avr.c (avr_output_bld): Remove unused function.
1137         (avr_out_sbxx_branch): Use "%T" to print bit position.
1138
1139 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
1140
1141         * config/avr/avr.md: Untabify.
1142
1143 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
1144
1145         * config/avr/avr.md (eqne): New code iterator.
1146         (*dec-and-branchsi): Use it in text peephole's condition.
1147         (*dec-and-branchhi): Ditto.
1148         (*dec-and-branchqi): Ditto.
1149
1150 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
1151
1152         PR target/49939
1153         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
1154         the device does not have the skip-bug.
1155
1156 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
1157
1158         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
1159         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
1160         -mpretend-cmove): New.
1161
1162 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
1163
1164         PR bootstrap/52397
1165         * df.h (struct df_d): Adjust comment that hard_regs_live_count
1166         doesn't count DEBUG_INSN refs.
1167         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
1168         for DEBUG_INSN refs.
1169
1170 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1171
1172         Partially revert:
1173
1174         2012-02-20  Richard Guenther  <rguenther@suse.de>
1175         PR tree-optimization/52298
1176         * tree-vect-stmts.c (vectorizable_load): Properly use
1177         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
1178         outer loops.
1179
1180 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
1181
1182         PR middle-end/51752
1183         * gimple.h (gimple_in_transaction): New.
1184         (gimple_set_in_transaction): New.
1185         (struct gimple_statement_base): Add in_transaction field.
1186         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
1187         transaction loads.
1188         (tree_ssa_lim_initialize): Compute transaction bits.
1189         * tree.h (compute_transaction_bits): Protoize.
1190         * trans-mem.c (tm_region_init): Use the heap to store BB
1191         auxilliary data.
1192         (compute_transaction_bits): New.
1193
1194 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1195
1196         * gcc.c (display_help): Document --help=common and sort entries
1197         alphabetically.
1198
1199 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1200
1201         * doc/install.texi: Document check-$LANG specific shortcuts
1202
1203 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1204
1205         PR target/51534
1206         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
1207         and vcgtu.
1208         * config/arm/arm_neon.h: Regenerate.
1209         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
1210         (neon_vcgeu): New insn.
1211         (neon_vcgtu): Likewise.
1212         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
1213         (ops): Unsigned comparison intrinsics call a different
1214         builtin.
1215
1216 2012-02-28  Richard Guenther  <rguenther@suse.de>
1217
1218         PR target/52407
1219         * config/i386/i386.c (ix86_expand_vector_set): Fix element
1220         ordering for the VEC_CONCAT for two element vectors for
1221         V2SFmode, V2SImode and V2DImode.
1222
1223 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
1224
1225         PR target/49448
1226         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
1227         detecting big-endian triplets.
1228
1229 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
1230
1231         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
1232         mode if there is no type information available.
1233
1234 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
1235
1236         PR tree-optimization/53207
1237         * doc/invoke.texi: Document as experimental and relying on graphite.
1238
1239 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
1240
1241         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
1242         of initializer to changes from r184614.
1243
1244 2012-02-28  Richard Guenther  <rguenther@suse.de>
1245
1246         PR tree-optimization/52395
1247         * tree-sra.c (build_ref_for_offset): Also look at the base
1248         TYPE_ALIGN when figuring out the alignment of the replacement.
1249
1250 2012-02-28  Richard Guenther  <rguenther@suse.de>
1251
1252         PR tree-optimization/52402
1253         * ipa-prop.c (ipa_modify_call_arguments): Properly use
1254         mis-aligned types when creating the accesses at the call site.
1255
1256 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
1257
1258         * config/avr/builtins.def: New file.
1259         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
1260         * config/avr/avr.c (enum avr_builtin_id): Use it.
1261         (avr_init_builtins): Use it. And use avr_bdesc.
1262         (bdesc_1arg): Remove.
1263         (bdesc_2arg): Remove.
1264         (bdesc_3arg): Remove.
1265         (struct avr_builtin_description): Add field n_args.
1266         (avr_bdesc): New static variable using builtins.def.
1267         (avr_expand_builtin): Use it.
1268         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
1269         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
1270         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
1271
1272 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
1273
1274         PR target/52148
1275         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
1276         match only one single hard register with respective hard reg rtx.
1277         (movmemx_<mode>): Ditto.
1278         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
1279         insn anatomy of movmem[x]_<mode>.
1280         (avr_out_movmem): Same for printing assembler and operand usage.
1281
1282 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
1283
1284         PR target/49868
1285         PR target/52261
1286         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
1287         address spaces located outside of device flash.
1288
1289         * config/avr/avr.h (base_arch_s): Remove field n_segments.
1290         (mcu_type_s): Add field n_flash.
1291         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
1292         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
1293         (AVR_MCU): Add N_FLASH argument.
1294         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
1295         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
1296         macro __FLASH<n> if that address space makes sense for the device.
1297         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
1298         outside of target flash.
1299         (avr_asm_named_section): Ditto.
1300         (avr_asm_select_section): Ditto.
1301         (avr_addr_space_convert): Ditto.
1302         (avr_emit_movmemhi): Ditto.
1303         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
1304         address space is outside of device flash.
1305         (avr_insert_attributes): Ditto.
1306         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
1307         avr_current_arch->n_segments.
1308
1309 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
1310
1311         PR target/52352
1312         * config/i386/i386.md (*movabs<mode>_1): Enable only for
1313         TARGET_LP64.
1314         (*movabs<mode>_2): Likewise.
1315
1316 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
1317
1318         PR target/52375
1319         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
1320         s_register_operand in the test instead of REG_P.  Don't call
1321         gen_reg_rtx if it won't be used.
1322
1323         PR tree-optimization/52376
1324         * ipa-split.c (split_function): Ignore CLOBBER stmts.
1325
1326 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
1327
1328         * ifcvt.c (noce_get_condition): Check condition variable is not
1329         small_register_classes_for_mode_p before accepting.
1330
1331 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
1332
1333         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
1334
1335 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1336
1337         Revert:
1338         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1339         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
1340         tuning parameters.
1341         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
1342
1343 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
1344
1345         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
1346
1347 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
1348
1349         * config/sh/predicates.md: Remove blank lines.
1350         * config/sh/sh.c: Fix typos in comments.
1351         * config/sh/constraints.md: Likewise.
1352         * config/sh/sh.md: Remove blank lines.
1353         Fix typos in comments.  Use ;; as comment characters.
1354
1355 2012-02-26  Walter Lee  <walt@tilera.com>
1356
1357         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
1358         (replace_mov_pcrel_step2): Ditto.
1359
1360 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
1361
1362         PR debug/52001
1363         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
1364         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
1365         and locs that reference values newer than the non-canonical value
1366         at hand.  Return the canonical value as a worst case.
1367         (memrefs_conflict_p): Walk canonical value's locs.
1368
1369         PR debug/52001
1370         * cselib.c (preserve_only_constants): Rename to...
1371         (preserve_constants_and_equivs): ... this.  Split out...
1372         (invariant_or_equiv_p): ... this.  Preserve plus expressions
1373         of other preserved expressions too.
1374         (cselib_reset_table): Adjust.
1375         * var-tracking.c (reverse_op): Use canonical value to build
1376         reverse operation.
1377
1378 2012-02-23  Kai Tietz  <ktietz@redhat.com>
1379
1380         * config/i386/i386.c (ix86_delegitimize_address): Handle
1381         UNSPEC_PCREL plus displacement.
1382
1383 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
1384
1385         PR target/52261
1386         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
1387         to test for unusedness in st X addressing.
1388
1389 2012-02-24  Richard Guenther  <rguenther@suse.de>
1390
1391         PR middle-end/52361
1392         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
1393         (is_gimple_reg_type): Move inline ...
1394         * gimple.h (is_gimple_reg_type): ... here.
1395
1396 2012-02-24  Richard Guenther  <rguenther@suse.de>
1397
1398         PR middle-end/52361
1399         * passes.c (execute_function_todo): When verifying SSA form
1400         verify gimple form first.
1401         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
1402
1403 2012-02-24  Richard Guenther  <rguenther@suse.de>
1404
1405         PR middle-end/52355
1406         * fold-const.c (fold_addr_of_array_ref_difference): New function.
1407         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
1408
1409 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1410
1411         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
1412
1413 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1414
1415         * tree-phinodes.c (make_phi_node): Mark static.
1416         * tree-flow.h (make_phi_node): Remove extern decl.
1417         * doc/gimple.texi (make_phi_node): Remove documentation.
1418
1419 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1420
1421         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
1422         * tree-ssa-sccvn.c (print_scc): Ditto.
1423
1424 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1425
1426         * doc/passes.texi (Full redundancy elimination): Fix typo.
1427
1428 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1429
1430         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
1431
1432 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
1433
1434         PR bootstrap/52287
1435         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
1436
1437 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
1438
1439         PR c/52290
1440         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
1441
1442 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
1443
1444         * config/avr/avr.md (code_stdname): Add ior, xor.
1445         (xior): New code iterator.
1446         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
1447         (*<code_stdname><mode>qi.byte1-3): Ditto.
1448
1449 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
1450
1451         PR tree-optimization/52019
1452         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
1453         CLOBBER stmts.
1454
1455 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1456
1457         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
1458         HAVE_INITFINI_ARRAY to work around namespace pollution in
1459         certain versions of newlib system headers.
1460         * config.in: Regenerate.
1461         * configure: Regenerate.
1462         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
1463         instead of HAVE_INITFINI_ARRAY.
1464
1465 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
1466
1467         PR target/52330
1468         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
1469         is not offsettable memory reference.
1470
1471 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
1472
1473         PR target/18145
1474         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
1475         setting avr_need_clear_bss_p for __gnu_lto* symbols.
1476
1477 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
1478
1479         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
1480         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
1481
1482 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1483
1484         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
1485         library on Solaris 8 even without TLS support.
1486         * configure: Regenerate.
1487
1488 2012-02-22  Richard Guenther  <rguenther@suse.de>
1489
1490         PR middle-end/52329
1491         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
1492         for GIMPLE_DEBUG stmts.
1493
1494 2012-02-22  Martin Jambor  <mjambor@suse.cz>
1495
1496         PR middle-end/51782
1497         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
1498         according to the base object.
1499
1500 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
1501
1502         PR rtl-optimization/50063
1503         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
1504         and 2 (8-bit SP) in operand 2.
1505         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
1506         setup to use movhi_sp_r instead of vanilla move to write SP.
1507         Adjust REG_CFA notes to superseed unspec.
1508         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
1509         of vanilla move.
1510         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
1511         known to be off) only with TARGET_NO_INTERRUPTS. Never use
1512         irq_state 1 (IRQ known to be on) here.
1513
1514 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
1515
1516         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
1517         WORDS_BIG_ENDIAN.
1518         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
1519         assign_hard_reg): Likewise.
1520
1521 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
1522
1523         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
1524
1525 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
1526
1527         * config/avr/avr.md
1528         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
1529         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
1530
1531 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
1532
1533         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
1534         prototype from here to...
1535         * config/avr/avr.h: ...here.
1536
1537 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
1538
1539         PR target/52294
1540         * thumb2.md (thumb2_shiftsi3_short): Split register and
1541         immediate shifts.  For register shifts tie operands 0 and 1.
1542         (peephole2 for above): Check that register-controlled shifts
1543         have suitably tied operands.
1544
1545 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
1546
1547         PR target/52137
1548         * config/i386/bdver1.md (bdver1_call, bdver1_push,
1549         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
1550         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
1551         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
1552         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
1553         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
1554         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
1555         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
1556         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
1557         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
1558         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
1559         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
1560         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
1561         bdver1_ssevector_avx256_unaligned_load,
1562         bdver1_ssevector_sse128_unaligned_load,
1563         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
1564         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
1565         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
1566         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
1567         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
1568         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
1569         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
1570         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
1571         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
1572         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
1573         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
1574         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
1575         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
1576         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
1577         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
1578         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
1579         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
1580         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
1581         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
1582         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
1583         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
1584         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
1585         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
1586         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
1587         bdver1_ssediv_double_load, bdver1_ssediv_double,
1588         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
1589         Add "bdver2" attribute.
1590
1591 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1592
1593         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
1594         default if possible and not specified otherwise.
1595
1596 2012-02-21  Richard Guenther  <rguenther@suse.de>
1597
1598         PR middle-end/52314
1599         * gimplify.c (create_tmp_from_val): Use the main variant type
1600         for the type of the temporary we create.
1601
1602 2012-02-21  Richard Guenther  <rguenther@suse.de>
1603
1604         PR tree-optimization/52324
1605         * gimplify.c (gimplify_expr): When re-gimplifying expressions
1606         do not gimplify a MEM_REF address operand if it is already
1607         in suitable form.
1608
1609 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1610
1611         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
1612         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
1613
1614 2012-02-21  Richard Guenther  <rguenther@suse.de>
1615
1616         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
1617         nested_in_vect_loop.
1618
1619 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
1620
1621         PR tree-optimization/52318
1622         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
1623         vdef also to non-pure/const call stmts in the sequence.
1624
1625 2012-02-20  David S. Miller  <davem@davemloft.net>
1626
1627         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
1628         don't use the "rd %pc" instruction on v9 for PIC register loads.
1629
1630 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
1631
1632         PR middle-end/52141
1633         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
1634         in a transaction safe function.
1635
1636 2012-02-20  Kai Tietz  <ktietz@redhat.com>
1637
1638         PR target/52238
1639         * stor-layout.c (place_field): Handle desired_align for
1640         ms-bitfields, too.
1641
1642 2012-02-20  Richard Guenther  <rguenther@suse.de>
1643
1644         PR tree-optimization/52298
1645         * tree-vect-stmts.c (vectorizable_store): Properly use
1646         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
1647         outer loops.
1648         (vectorizable_load): Likewise.
1649         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
1650         Access DR_STEP after ensuring it is not NULL.
1651
1652 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
1653
1654         PR tree-optimization/52286
1655         * fold-const.c (fold_binary_loc): For (X & C1) | C2
1656         optimization use double_int_to_tree instead of build_int_cst_wide,
1657         rewrite to use double_int vars.
1658
1659 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1660
1661         PR target/50166
1662         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
1663         Define _start.
1664         Remove -e 0 from $gcc_cv_ld invocation.
1665         Only use __GLIBC_PREREQ if defined.
1666         Enable on Solaris since Solaris 8 patch.
1667         (gcc_SUN_LD_VERSION): New macro.
1668         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
1669         gcc_SUN_LD_VERSION for version number format.
1670         * configure: Regenerate.
1671         * varasm.c (get_elf_initfini_array_priority_section): Set
1672         SECTION_NOTYPE for non-default priority.
1673         Use get_section instead of get_unnamed_section to emit
1674         .init_array/.fini_array with default priority.
1675
1676 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
1677
1678         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
1679         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
1680         (mips_start_unique_function, mips_output_mips16_rdhwr)
1681         (mips_code_end): New functions.
1682         (TARGET_ASM_CODE_END): Define.
1683
1684 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
1685
1686         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
1687         to stubs with non-sibling calls.
1688
1689 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
1690
1691         * doc/invoke.texi (-fira-* options): Copy-edit.
1692         (ira-* parameters): Copy-edit.
1693
1694 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
1695
1696         * doc/invoke.texi: Minor copy-edits to bring into conformance with
1697         GCC coding conventions.
1698
1699 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
1700
1701         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
1702         when used as adjectives.
1703
1704 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
1705
1706         * doc/invoke.texi: Clean up "that"/"which" confusion.
1707
1708 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
1709
1710         * system.h: Poison SMALL_REGISTER_CLASSES
1711         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
1712         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
1713
1714 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
1715
1716         PR tree-optimization/52285
1717         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
1718         when deciding if a call is a tail call or tail recursion.
1719
1720 2012-02-16  Kai Tietz  <ktietz@redhat.com>
1721
1722         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1723         interger-constant displacement for UNSPEC_PCREL.
1724
1725 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
1726
1727         PR rtl-optimization/52208
1728         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
1729         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
1730
1731         PR tree-optimization/52255
1732         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
1733         loop->header has virtual PHI, but exit_e->dest doesn't, add
1734         virtual PHI to exit_e->dest and adjust all uses after the loop.
1735
1736         PR debug/52260
1737         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
1738         children with clone_tree_hash, not after it.
1739
1740 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
1741
1742         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
1743         extended identifiers.
1744
1745 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
1746
1747         PR middle-end/51929
1748         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
1749         a same_body_alias, also test whether e->callee isn't a former
1750         or current clone of the decl this is a same body alias of.
1751
1752         PR translation/52264
1753         * cgraphunit.c (verify_cgraph_node): Fix a typo.
1754
1755 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
1756
1757         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
1758
1759 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
1760
1761         PR target/52199
1762         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
1763         force_reg instead of copy_to_reg for better optimization.  Force
1764         non-register or memory operands into a register.
1765
1766 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
1767
1768         * extend.texi: Reserve upper bits of memory model for future use.
1769
1770 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
1771             Anatoly Sokolov <aesok@post.ru>
1772             Eric Weddington <eric.weddington@atmel.com>
1773
1774         PR target/52261
1775         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
1776         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
1777         Rewrite initializers for .macro.
1778         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
1779         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
1780         atxmega32d4, atxmega32x1.
1781         avrxmega4: atxmega64a3, atxmega64d3.
1782         avrxmega5: atxmega64a1, atxmega64a1u.
1783         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
1784         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
1785         avrxmega7: atxmega128a1, atxmega128a1u.
1786         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
1787         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
1788         (struct base_arch_s): Rename reserved to xmega_p.
1789         Rename reserved2 to have_rampd.
1790         (AVR_XMEGA): New define.
1791         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
1792         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
1793         * config/avr/predicates.md (io_address_operand): Take into
1794         account SFR offset.
1795         (low_io_address_operand): Ditto.
1796         (high_io_address_operand): Ditto.
1797         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
1798         (enabled, movhi_sp_r): Use them.
1799         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
1800         cpp_define_formatted to built-in define __AVR_ARCH__.
1801         (__AVR_XMEGA__): New built-in define.
1802         (__AVR_HAVE_RAMPD__): New built-in define.
1803         (__AVR_HAVE_RAMPX__): New built-in define.
1804         (__AVR_HAVE_RAMPY__): New built-in define.
1805         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
1806
1807         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
1808         (avr_option_override): Initialize them.
1809         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
1810         (avr_init_expanders): Initialize them. No more block several calls.
1811         (emit_push_sfr): New static function.
1812         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
1813         Handle AVR_XMEGA.
1814         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
1815         (avr_print_operand): Print addreeses as symbols for
1816         RAMPX, RAMPY, RAMPD, CCP.
1817         (output_movhi): Handle AVR_XMEGA when writing to SP.
1818         (avr_out_movhi_mr_r_xmega): New static function.
1819         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
1820         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
1821         __RAMPD__,  __CCP__ as needed.
1822
1823         * config/avr/multilib.h: Regenerate.
1824         * config/avr/t-multilib: Regenerate.
1825         * config/avr/avr-tables.opt: Regenerate.
1826
1827 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
1828
1829         PR tree-optimization/50561
1830         * graphite-flattening.c (lst_project_loop): Do not
1831         remove old scattering dimensions after flattening.
1832         (lst_do_flatten): Likewise.
1833
1834 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
1835
1836         * doc/extend.texi (AVR Built-in Functions): Remove doc for
1837         __builtin_avr_map8, __builtin_avr_map16.
1838         Document __builtin_avr_insert_bits.
1839
1840         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
1841         (insert_bits): New insn.
1842         (adjust_len.map_bits): Rename to insert_bits.
1843         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
1844         * avr-protos.h (avr_out_map_bits): Remove.
1845         (avr_out_insert_bits, avr_has_nibble_0xf): New.
1846         * config/avr/constraints.md (Cxf,C0f): New.
1847         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
1848         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
1849         New built-in define __BUILTIN_AVR_INSERT_BITS.
1850         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
1851         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
1852         (avr_move_bits): Rewrite.
1853         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
1854         functions.
1855         (avr_map_op_t): New typedef.
1856         (avr_map_op): New static variable.
1857         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
1858         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
1859         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
1860         (bdesc_3arg, avr_expand_triop_builtin): New.
1861         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
1862         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
1863         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
1864         (avr_map_equal_p, avr_map_sig_p): Remove.
1865         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
1866         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
1867         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
1868         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
1869         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
1870         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
1871
1872 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
1873
1874         * config/c6x/c6x.md (reserve_cycles): New attribute.
1875         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
1876         don't reserve functional units after the branch occurs.
1877
1878 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
1879
1880         PR middle-end/52142
1881         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
1882         functions into non-tm_pure functions.
1883
1884 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1885
1886         PR lto/52178
1887         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
1888         (iterative_hash_canonical_type): Likewise.
1889         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
1890         the dead edges.
1891
1892 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
1893
1894         * haifa-sched.c (prune_ready_list): Ensure that if there is a
1895         sched-group insn, it either remains alone or the entire list is pruned.
1896
1897 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
1898
1899         * doc/install.texi (Prerequisites): Fix grammar.
1900         (Configuration): Likewise.
1901
1902 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
1903
1904         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
1905         MPC as part of GCC before describing configuring with --with-gmp etc.
1906         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
1907         sources are present.
1908
1909 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
1910
1911         PR debug/51950
1912         * dwarf2out.c (clone_tree_hash): New function.
1913         (copy_decls_walk): Use it instead of clone_tree.
1914
1915 2012-02-14  Richard Guenther  <rguenther@suse.de>
1916
1917         PR tree-optimization/52244
1918         PR tree-optimization/51528
1919         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
1920         replacements for integral types.
1921
1922 2012-02-14  Walter Lee  <walt@tilera.com>
1923
1924         * config.gcc: Handle tilegx and tilepro.
1925         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
1926         tilegx and tilepro.
1927         Add HAVE_AS_TLS check for tilegx and tilepro.
1928         * configure: Regenerate.
1929         * doc/contrib.texi: Add Mat Hostetter and self.
1930         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
1931         Document instruction intrinsics and network accessing intrinsics.
1932         (TILEPro Built-in Functions): New node.  Document instruction
1933         intrinsics and network accessing intrinsics.
1934         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
1935         (Specific, tilepro-*-linux*): Likewise.
1936         * doc/invoke.texi (TILE-Gx Options): New section.
1937         (TILEPro Options): New section.
1938         * doc/md.texi (TILE-Gx): New section.
1939         (TILEPro): New section.
1940         * common/config/tilegx/tilegx-common.c: New file.
1941         * common/config/tilepro/tilepro-common.c: New file.
1942         * config/tilegx/constraints.md: New file.
1943         * config/tilegx/linux.h: New file.
1944         * config/tilegx/mul-tables.c: New file.
1945         * config/tilegx/predicates.md: New file.
1946         * config/tilegx/sync.md: New file.
1947         * config/tilegx/t-tilegx: New file.
1948         * config/tilegx/tilegx-builtins.h: New file.
1949         * config/tilegx/tilegx-c.c: New file.
1950         * config/tilegx/tilegx-generic.md: New file.
1951         * config/tilegx/tilegx-modes.def: New file.
1952         * config/tilegx/tilegx-multiply.h: New file.
1953         * config/tilegx/tilegx-protos.h: New file.
1954         * config/tilegx/tilegx.c: New file.
1955         * config/tilegx/tilegx.h: New file.
1956         * config/tilegx/tilegx.md: New file.
1957         * config/tilegx/tilegx.opt: New file.
1958         * config/tilepro/constraints.md: New file.
1959         * config/tilepro/gen-mul-tables.cc: New file.
1960         * config/tilepro/linux.h: New file.
1961         * config/tilepro/mul-tables.c: New file.
1962         * config/tilepro/predicates.md: New file.
1963         * config/tilepro/t-tilepro: New file.
1964         * config/tilepro/tilepro-builtins.h: New file.
1965         * config/tilepro/tilepro-c.c: New file.
1966         * config/tilepro/tilepro-generic.md: New file.
1967         * config/tilepro/tilepro-modes.def: New file.
1968         * config/tilepro/tilepro-multiply.h: New file.
1969         * config/tilepro/tilepro-protos.h: New file.
1970         * config/tilepro/tilepro.c: New file.
1971         * config/tilepro/tilepro.h: New file.
1972         * config/tilepro/tilepro.md: New file.
1973         * config/tilepro/tilepro.opt: New file.
1974
1975 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
1976
1977         PR tree-optimization/52210
1978         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
1979         vect_model_simple_cost with two entry vect_def_type array instead
1980         of an address of dt.
1981
1982 2012-02-14  Richard Guenther  <rguenther@suse.de>
1983
1984         PR lto/52178
1985         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
1986         Do not stream DECL_QUALIFIER.
1987         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
1988         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
1989         (find_decls_types_r): Do not walk DECL_QUALIFIER.
1990
1991 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
1992
1993         PR c/52181
1994         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
1995         newdecl.
1996
1997 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
1998
1999         PR bootstrap/52172
2000         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
2001         * cselib.c (cselib_subst_to_values_from_insn): New function.
2002         * sched-deps.c (add_insn_mem_dependence,
2003         sched_analyze_1, sched_analyze_2): Use it.
2004
2005 2012-02-13  Jan Hubicka  <jh@suse.cz>
2006
2007         PR middle-end/52214
2008         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
2009
2010 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
2011
2012         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
2013         (GTM_SELF_SPECS): Define if not already defined.
2014         (driver_self_specs): Add GTM_SELF_SPECS.
2015         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
2016         (GTM_SELF_SPECS): Define.
2017         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
2018         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
2019
2020 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
2021
2022         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
2023         away if seen.
2024
2025         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
2026
2027         PR middle-end/52230
2028         * omp-low.c (expand_omp_for): If a static schedule without chunk size
2029         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
2030
2031 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
2032
2033         PR c/52190
2034         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
2035
2036 2012-02-13  Richard Guenther  <rguenther@suse.de>
2037
2038         PR translation/52211
2039         * passes.c (enable_disable_pass): Fix typo.
2040
2041 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
2042
2043         PR middle-end/52209
2044         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
2045         XOR for reduce_bit_field if type is unsigned.
2046
2047 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
2048
2049         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
2050         disallow changes from SFmode to mode with different size in FP regs.
2051
2052 2012-02-12  Robert Millan  <rmh@gnu.org>
2053             Gerald Pfeifer <gerald@pfeifer.com>
2054
2055         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
2056         Tweak comment.
2057
2058 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
2059
2060         PR rtl-optimization/52175
2061         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
2062         to frame-related instructions.
2063
2064 2012-02-10  Jason Merrill  <jason@redhat.com>
2065
2066         PR c++/51910
2067         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
2068         (demangle_new_symbols): Fill it.
2069         (scan_linker_output): Walk it.
2070         (start_tweaking): Split out from scan_linker_output.
2071         (maybe_tweak): Update sym->chosen.
2072         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
2073
2074 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
2075
2076         PR debug/52132
2077         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
2078
2079 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
2080
2081         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
2082         having the same mode as previous compare.
2083
2084 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
2085
2086         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
2087         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
2088         (nonlocal_goto_internal): Likewise.
2089         (nonlocal_goto): Emit a use and an indirect jump directly.
2090
2091 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
2092
2093         PR c/52190
2094         * doc/extend.texi : Update comments for __atomic_compare_exchange and
2095         __atomic_{is,always}_lock_free.
2096
2097 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
2098
2099         PR target/52146
2100         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
2101         negative constant address for x32.
2102
2103 2012-02-10  Richard Henderson  <rth@redhat.com>
2104
2105         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
2106         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
2107         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
2108
2109 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2110             Ira Rosen  <irar@il.ibm.com>
2111
2112         PR tree-optimization/50031
2113         * targhooks.c (default_builtin_vectorization_cost): Handle
2114         vec_promote_demote.
2115         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
2116         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
2117         all types of reduction and pattern statements.
2118         (vect_estimate_min_profitable_iters): Likewise.
2119         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
2120         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
2121         for explicit realigns.
2122         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
2123         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
2124         vec_promote_demote.
2125         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
2126         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
2127         vec_perm for VSX and handle vec_promote_demote.
2128
2129 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
2130
2131         PR middle-end/52177
2132         * builtins.c (fold_builtin_atomic_always_lock_free,
2133         expand_builtin_atomic_always_lock_free,
2134         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
2135         Return and/or test boolean_true_node/boolean_false_node instead of
2136         integer_one_node/integer_zero_node.
2137
2138 2012-02-10  Jan Hubicka  <jh@suse.cz>
2139
2140         PR middle-end/48600
2141         * predict.c (predict_paths_for_bb): Prevent looping.
2142         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
2143
2144 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
2145
2146         * config/arm/arm.c (output_move_double): In one case properly
2147         count number of instructions that will be emitted.
2148
2149 2012-02-10  Richard Guenther  <rguenther@suse.de>
2150
2151         PR translation/52193
2152         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
2153
2154 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
2155
2156         PR middle-end/52140
2157         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
2158
2159 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
2160
2161         PR debug/52165
2162         * var-tracking.c (emit_note_insn_var_location): If
2163         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
2164         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
2165         non-NOTE_DURING_CALL_P insn.
2166
2167 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
2168
2169         PR middle-end/51867
2170         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
2171
2172 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
2173
2174         PR driver/48524
2175         * gcc.c (switch_matches) Support switches with separated form,
2176         -D and -U.
2177
2178 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
2179
2180         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
2181         (SP_ADDR): Ditto.
2182         (RAMPZ_ADDR): Ditto.
2183         * config/avr/avr.c (avr_addr_t): New typedef.
2184         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
2185         (avr_init_expanders): Initialize it.
2186         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
2187         SREG_ADDR.
2188         (expand_epilogue): Ditto.
2189         (avr_print_operand): Ditto.
2190         (avr_file_start): Ditto.
2191         (avr_emit_movmemhi): Ditto.
2192
2193 2012-02-08  Richard Guenther  <rguenther@suse.de>
2194
2195         PR tree-optimization/46886
2196         * tree-flow.h (do_while_loop_p): Declare.
2197         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
2198         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
2199
2200 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
2201
2202         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
2203         always succeed for integers larger than a native word.
2204
2205 2012-02-08  Richard Guenther  <rguenther@suse.de>
2206
2207         PR rtl-optimization/52170
2208         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
2209         properly handle integer vector modes.
2210
2211 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
2212
2213         PR gcov-profile/52150
2214         * coverage.c: Include target.h.
2215         (build_var): Call targetm.strip_name_encoding on the assembler name.
2216         Change one _ into . or $ if the target allows it.
2217         * Makefile.in (coverage.o): Depend on $(TARGET_H).
2218
2219         PR rtl-optimization/52139
2220         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
2221         is a BARRIER after emit_insn_after_noloc, move BB_END
2222         to the last non-BARRIER insn before it.
2223
2224 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
2225
2226         PR middle-end/24306
2227         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
2228         (mips_gimplify_va_arg_expr): Call it instead of
2229         std_gimplify_va_arg_expr.
2230
2231 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
2232
2233         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
2234         message for -mno-pointers-to-nested-function.
2235
2236 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
2237
2238         PR middle-end/51994
2239         * expr.c (get_inner_reference): If there is an offset, add a negative
2240         bit position to it (if any).
2241
2242 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
2243
2244         PR rtl-optimization/52060
2245         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
2246         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
2247         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
2248         and/or i0src_copy2 when needed.
2249
2250 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
2251
2252         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
2253         or LTOPLUGINSONAME if have_c.
2254
2255         * config/freebsd-spec.h: Add comment about what macros can be defined
2256         in this header.
2257         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
2258         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
2259         here instead.
2260
2261 2012-02-07  Richard Guenther  <rguenther@suse.de>
2262
2263         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
2264         newline in -alias dumps.
2265
2266 2012-02-07  Kai Tietz  <ktietz@redhat.com>
2267             Dave Korn  <dave.korn.cygwin@gmail.com>
2268
2269         PR target/40068
2270         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
2271         Take care that typinfo gets dllexport-attribute.
2272
2273 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
2274
2275         PR middle-end/52074
2276         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
2277         if modifier < EXPAND_SUM call force_operand on the result.
2278
2279 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
2280
2281         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
2282         adding __forwarder_dst__ prefix if a forwarder_section attribute is
2283         present.
2284         (epiphany_function_type): Replace types for specific interrupts with
2285         EPIPHANY_FUNCTION_INTERRUPT.
2286         (EPIPHANY_INTERRUPT_P): Update.
2287         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
2288         New static function.
2289         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
2290         <disinterrupt>: Affects type identity.
2291         (epiphany_handle_interrupt_attribute): Handle variable number of
2292         arguments.
2293         (epiphany_compute_function_type): Update for new
2294         epiphany_function_type definition.
2295         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
2296         handlers with a longcall forwarder.
2297         (epiphany_start_function): Handle multiple interrupt arguments and/or
2298         forwarder_section attribute.
2299
2300         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
2301         libgloss.
2302
2303 2012-02-07  Alan Modra  <amodra@gmail.com>
2304
2305         PR target/52107
2306         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
2307         subregs of TFmode.
2308
2309 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2310
2311         PR tree-optimization/50969
2312         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
2313         use vec_perm rather than vector_stmt.
2314         (vect_model_load_cost): Likewise.
2315         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
2316         vec_perm to be the same as other vector statements.
2317         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
2318         cost of vec_perm for TARGET_VSX.
2319
2320 2012-02-06  Richard Guenther  <rguenther@suse.de>
2321
2322         PR tree-optimization/52115
2323         * tree-sra.c (access_has_replacements_p): New function.
2324         (sra_modify_assign): Use it to decide whether a use is uninitialized.
2325
2326 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
2327
2328         PR middle-end/52047
2329         * trans-mem.c (expand_call_tm): Add an assertion.
2330         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
2331         functions.
2332
2333 2012-02-06  Richard Guenther  <rguenther@suse.de>
2334
2335         PR tree-optimization/50955
2336         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
2337         raise cost of expressions that replace an address with an
2338         expression based on a different pointer.
2339
2340 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
2341
2342         PR target/52129
2343         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
2344         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
2345
2346 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2347
2348         PR c++/48680
2349         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
2350         -Weffc++ and specify guidelines come from second edition.
2351
2352 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
2353
2354         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
2355         (sibcall_value_multiple_internal, call_split, call_internal_direct)
2356         (call_direct_split, call_value_split, call_value_internal_direct)
2357         (call_value_direct_split, call_value_multiple_split): Use jal and
2358         jal_macro attributes.
2359
2360 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
2361
2362         * reload1.c (reload_regs_reach_end_p): Replace with...
2363         (reload_reg_rtx_reaches_end_p): ...this function.
2364         (new_spill_reg_store): Update commentary.
2365         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
2366         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
2367         before setting new_spill_reg_store.
2368         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
2369         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
2370         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
2371         for non-spill reload registers.
2372
2373 2012-02-05  Ira Rosen  <irar@il.ibm.com>
2374
2375         PR tree-optimization/52091
2376         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
2377         (vect_is_simple_use_1): Likewise.
2378         * tree-vect-loop.c (vectorizable_reduction): Update calls
2379         to vect_is_simple_use_1 and vect_is_simple_use.
2380         (vectorizable_live_operation): Likewise.
2381         * tree-vect-patterns.c (widened_name_p,
2382         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
2383         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
2384         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
2385         vectorizable_shift,vectorizable_operation, vectorizable_store,
2386         vectorizable_load): Likewise.
2387         (vect_is_simple_cond): Add an argument, pass it to
2388         vect_is_simple_use_1.
2389         (vectorizable_condition): Update calls to vect_is_simple_cond,
2390         vect_is_simple_use.
2391         (vect_is_simple_use): Add an argument, the statement in which
2392         OPERAND is used.  Check that if OPERAND's def stmt is a double
2393         reduction phi node, the use is a phi node too.
2394         (vect_is_simple_use_1): Add an argument, pass it to
2395         vect_is_simple_use.
2396         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
2397         to vect_is_simple_use.
2398
2399 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
2400
2401         PR rtl-optimization/52095
2402         * modulo-sched.c (dump_insn_locator): New function.
2403         (loop_canon_p, sms_schedule): Use it.
2404
2405         PR rtl-optimization/52113
2406         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
2407         even for decomposable shift/zext insns.
2408
2409 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
2410             Zdenek Dvorak  <ook@ucw.cz>
2411
2412         PR rtl-optimization/52092
2413         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
2414         on get_iv_value result.
2415
2416 2012-02-02  Andrew Pinski  <apinski@cavium.com>
2417
2418         PR middle-end/47982
2419         PR middle-end/43967
2420         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
2421
2422 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
2423
2424         PR middle-end/48071
2425         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
2426
2427 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
2428
2429         PR rtl-optimization/49800
2430         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
2431         (sched_finish): Call regstat_free_n_sets_and_refs.
2432
2433 2012-02-02  Jia Liu  <proljc@gmail.com>
2434
2435         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
2436         than operand 2.
2437
2438 2012-02-02  Jan Hubicka  <jh@suse.cz>
2439             Tom de Vries  <tom@codesourcery.com>
2440
2441         PR middle-end/51998
2442         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
2443         * varpool.c (varpool_analyze_pending_decls): Likewise.
2444
2445 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
2446             Jayant R Sonar <jayant.sonar@kpitcummins.com>
2447
2448         * config.gcc: Add cr16-* support.
2449
2450         * doc/extend.texi: Document cr16 extensions.
2451         * doc/install.texi: Document cr16 install.
2452         * doc/invoke.texi: Document cr16 options.
2453         * doc/md.texi: Document cr16 constraints.
2454
2455         * common/config/cr16/cr16-common.c: New file.
2456         * config/cr16/cr16.c: New file.
2457         * config/cr16/cr16.h: New file.
2458         * config/cr16/cr16.md: New file.
2459         * config/cr16/cr16.opt: New file.
2460         * config/cr16/cr16-protos.h: New file.
2461         * config/cr16/predicates.md: New file.
2462         * config/cr16/constraints.md: New file.
2463         * config/cr16/t-cr16: New file.
2464
2465 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
2466
2467         PR target/52086
2468         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
2469         that operands[2] is either immediate, or q_regs_operand.
2470
2471         PR tree-optimization/52073
2472         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
2473         a pattern stmt for pattern uses, ignore uses outside of the loop.
2474
2475 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
2476
2477         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
2478         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
2479         (OUT_AS1, OUT_AS2): Remove.
2480
2481 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
2482
2483         PR rtl-optimization/51374
2484         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
2485         to cross other volatile_refs_p insns.
2486
2487 2012-02-01  Richard Guenther  <rguenther@suse.de>
2488
2489         * doc/invoke.texi (fno-inline): Clarify documentation.
2490         (finline-small-functions): Likewise.
2491         (finline-functions): Likewise.
2492         * common.opt (finline): Adjust comment and documentation.
2493         (finline-small-functions): Clarify documentation.
2494         (finline-functions): Likewise.
2495         (finline-functions-called-once): Likewise.
2496
2497 2012-02-01  Tristan Gingold  <gingold@adacore.com>
2498
2499         * c-typeck.c (composite_type): Keep mode for pointers.
2500
2501 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
2502
2503         * function.h (regno_reg_rtx): Adjust comment.
2504         * reginfo.c (init_reg_modes_target): Only use the previous mode
2505         if it fits within one register.  Remove MIPS comment.
2506
2507 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
2508
2509         PR bootstrap/52058
2510         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
2511
2512 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2513
2514         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
2515         to srak instruction.
2516
2517 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2518
2519         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
2520
2521 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
2522
2523         PR bootstrap/52041
2524         PR bootstrap/52039
2525         PR target/51974
2526         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
2527
2528 2012-01-31  Richard Guenther  <rguenther@suse.de>
2529
2530         PR tree-optimization/51528
2531         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
2532         assigns.
2533
2534 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
2535
2536         PR bootstrap/52041
2537         PR bootstrap/52039
2538         PR target/51974
2539         * ree.c (add_removable_extension): Change def_map argument
2540         to unsigned *, store in def_map 1 + offset into *insn_list vector
2541         instead of pointers into the vector.
2542         (find_removable_extensions): Adjust caller.
2543
2544 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
2545
2546         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
2547         Transform all "* quoted-c-code" to { c-code }.
2548         Remove redundant test for "optimize" in combine patterns.
2549         Move (include "avr-dimode.md") to end of file.
2550
2551 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
2552
2553         PR target/51835
2554         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2555         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
2556
2557 2012-01-30  Richard Guenther  <rguenther@suse.de>
2558
2559         PR tree-optimization/52028
2560         * tree-loop-distribution.c (ldist_gen): Properly update
2561         virtual SSA form.
2562
2563 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
2564
2565         PR debug/52027
2566         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
2567         set_cur_line_info_table if not emitting debug info.
2568
2569         PR tree-optimization/52046
2570         * tree-vect-patterns.c (check_bool_pattern): Give up if
2571         a comparison could throw.
2572
2573         PR debug/52048
2574         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
2575
2576 2012-01-30  Richard Guenther  <rguenther@suse.de>
2577
2578         PR tree-optimization/52045
2579         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
2580         SSA form if cfgcleanup did anything.
2581
2582 2012-01-30  Richard Guenther  <rguenther@suse.de>
2583
2584         PR tree-optimization/52045
2585         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
2586         before computing final todo.
2587
2588 2012-01-30  Richard Guenther  <rguenther@suse.de>
2589
2590         PR tree-optimization/51528
2591         * tree-sra.c (sra_modify_assign): Re-factor in preparation
2592         for PR51528 fix.
2593
2594 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
2595
2596         * df-problems.c (df_kill_notes): Check that the use refers
2597         to the note under examination.
2598
2599 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
2600
2601         PR target/51920
2602         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
2603         parameter and use short-lived pseudos.
2604         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
2605         (sparc_expand_vector_init): Const-ify local variables and adjust
2606         calls to above functions.
2607
2608 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
2609
2610         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
2611
2612 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
2613
2614         * doc/invoke.texi: Make usage of "compile time" and
2615         "run time"/"runtime" consistent throughout the file.
2616
2617 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
2618
2619         * config/alpha/alpha.c (alpha_option_override): Default to
2620         full IEEE compliance mode for Go language.
2621
2622 2011-01-29  Tijl Coosemans  <tijl@coosemans.org>
2623
2624         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
2625         (LINK_SSP_SPEC): Define.
2626
2627 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2628
2629         PR target/51871
2630         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
2631         stubs.
2632
2633 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
2634
2635         * doc/invoke.texi: Correct hyphenation of "floating point",
2636         "double precision", and related terminology throughout the file.
2637
2638 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
2639
2640         PR target/52006
2641         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
2642         arm_general_register_operand predicate for operand 2 instead of
2643         register_operand.
2644
2645 2012-01-27  Ian Lance Taylor  <iant@google.com>
2646
2647         PR go/47656
2648         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
2649         * builtins.c (expand_builtin_init_trampoline): Add onstack
2650         parameter.  Change caller.
2651         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
2652         * tree.c (build_common_builtin_nodes): Declare
2653         __builtin_init_heap_trampoline.
2654
2655 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
2656
2657         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
2658         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
2659         * config/avr/avr.c: Ditto.
2660         (avr_regnames): Remove because unused.
2661         * config/avr/avr.md (*cpse.ne): New peephole.
2662         (*cpse.eq): New peephole from former cpse peepholes.
2663
2664 2012-01-27  Michael Eager  <eager@eagercon.com>
2665
2666         * config/microblaze.c (microblaze_emit_compare): Correct
2667         test after pcmp instruction.
2668
2669 2012-01-27  Richard Guenther  <rguenther@suse.de>
2670
2671         PR tree-optimization/52020
2672         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
2673
2674 2012-01-27  Richard Guenther  <rguenther@suse.de>
2675
2676         * ipa-pure-const.c (check_stmt): Clobbers do not make a
2677         function non-const/pure.
2678
2679 2012-01-27  Richard Guenther  <rguenther@suse.de>
2680
2681         PR tree-optimization/50444
2682         * tree-sra.c (build_ref_for_offset): Properly adjust the
2683         MEM_REF type for unaligned accesses.
2684
2685 2012-01-27  Richard Guenther  <rguenther@suse.de>
2686
2687         PR tree-optimization/50444
2688         * expr.c (mem_ref_refers_to_non_mem_p): New function.
2689         (expand_assignment): Use it.  Properly handle misaligned
2690         bases when expanding stores to component references.
2691         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
2692         refactor that case.
2693
2694 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
2695
2696         PR middle-end/51389
2697         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
2698         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
2699         * tree-data-ref.c (find_data_references_in_loop): Make static.
2700         (compute_all_dependences): Change return type to bool.  Bail out
2701         for too many datarefs in a loop.  Move the hunk resetting the data
2702         dependences vector from ...
2703         (compute_data_dependences_for_loop): ... here.  Account for
2704         compute_all_dependences returning false.
2705         (compute_data_dependences_for_bb): Likewise.
2706         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
2707         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
2708
2709 2012-01-27  Richard Guenther  <rguenther@suse.de>
2710
2711         PR middle-end/51959
2712         * expr.c (store_field): Use the alias-set of the scratch memory
2713         for storing to it.
2714
2715 2012-01-27  Tom de Vries  <tom@codesourcery.com>
2716
2717         PR tree-optimization/51990
2718         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2719         WITH_SIZE_EXPR.
2720         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
2721
2722 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
2723
2724         PR debug/52001
2725         * var-tracking.c (reverse_op): Don't add any reverse operation
2726         if V already has any constant locations.
2727
2728 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
2729
2730         * doc/invoke.texi: Correct usage of "command line" (noun)
2731         vs "command-line" (adjective) throughout.
2732
2733 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
2734
2735         * doc/invoke.texi (Language Independent Options): Move
2736         -Wcoverage-mismatch blurb from here....
2737         (Warning Options): ...to here.
2738
2739 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
2740
2741         * config/rs6000/rs6000.c (rs6000_option_override_internal):
2742         Set rs6000_always_hint to false for 476.
2743
2744 2012-01-27  Matthias Klose  <doko@ubuntu.com>
2745
2746         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
2747           system root.
2748         * incpath.c (add_standard_paths): Likewise.
2749
2750 2012-01-27  Richard Henderson  <rth@redhat.com>
2751
2752         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
2753         * config/m68k/sync.md (atomic_test_and_set): Rename from
2754         sync_test_and_setqi and adjust the operands.
2755         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
2756         and unconditionally enable.
2757
2758 2012-01-27  Richard Henderson  <rth@redhat.com>
2759
2760         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
2761         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
2762         (ldstub): Rename from ldstubqi.
2763         (ldstub<I24MODE>): Remove.
2764
2765 2012-01-27  Richard Henderson  <rth@redhat.com>
2766
2767         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
2768         * c-cppbuiltin.c (cpp_atomic_builtins): Define
2769         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
2770         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
2771         * doc/tm.texi: Rebuild.
2772
2773 2012-01-27  Richard Henderson  <rth@redhat.com>
2774
2775         * optabs.c (gen_atomic_test_and_set): Remove default.
2776         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
2777
2778 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
2779
2780         PR rtl-optimization/51978
2781         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
2782         (combine_reaching_defs): Likewise.
2783         (struct re_info): Remove.
2784         (add_removable_extension): Remove x and data arguments,
2785         add insn, insn_list and def_map.  Use the arguments directly
2786         instead of using struct re_info.
2787         (find_removable_extensions): Don't call add_removable_extension
2788         through note_stores, instead just call it with single_set
2789         result if non-NULL.
2790         (find_and_remove_re): Pass curr_cand->expr instead of
2791         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
2792
2793 2012-01-26  Michael Matz  <matz@suse.de>
2794
2795         PR tree-optimization/46590
2796         * cfgexpand.c: Revert last change (r183305).
2797         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
2798         regs.
2799         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
2800         checking for emptiness.
2801
2802 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
2803
2804         PR middle-end/51895
2805         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
2806         non-addressable non-BLKmode base correctly.
2807
2808 2012-01-26  Michael Matz  <matz@suse.de>
2809
2810         PR tree-optimization/48794
2811         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
2812         regions referenced from RESX/EH_DISPATCH.
2813
2814 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2815
2816         * config/s390/s390.h: Make BRANCH_COST an option.
2817         * config/s390/s390.opt: New option -mbranch-cost.
2818
2819 2012-01-26  Richard Henderson  <rth@redhat.com>
2820
2821         Revert 2012-01-24 change:
2822         * trans-mem.c (requires_barrier): Do not instrument thread local
2823         variables and emit save/restore for them.
2824
2825 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
2826
2827         PR middle-end/51986
2828         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
2829         for pat == 0.
2830
2831 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
2832
2833         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
2834         ASM_OPERANDS.
2835
2836 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
2837
2838         PR target/49868
2839         Rename __pgm to __flash.
2840         Rename __pgm1 to __flash1.
2841         Rename __pgm2 to __flash2.
2842         Rename __pgm3 to __flash3.
2843         Rename __pgm4 to __flash4.
2844         Rename __pgm5 to __flash5.
2845         Rename __pgmx to __memx.
2846         * doc/extend.texi (AVR Named Address Spaces)
2847         Rename address space names as indicated above.
2848         * config/avr/avr.c (avr_addrspace): Ditto.
2849
2850         * config/avr/avr-protos.h
2851         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
2852         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
2853         * config/avr/predicates.md: Ditto.
2854         * config/avr/avr.c Ditto, and
2855         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
2856         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
2857
2858         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
2859         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
2860         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
2861         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
2862         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
2863         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
2864         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
2865         * config/avr/avr.c: Ditto.
2866         * config/avr/avr.md: Ditto.
2867
2868 2012-01-25  Jason Merrill  <jason@redhat.com>
2869
2870         PR c++/51992
2871         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
2872
2873 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
2874
2875         PR tree-optimization/51987
2876         * tree-data-ref.c (get_references_in_stmt): Handle references in
2877         non-volatile GIMPLE_ASM.
2878
2879 2012-01-25  Richard Guenther  <rguenther@suse.de>
2880
2881         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
2882         bases are dereferenced.
2883
2884 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
2885
2886         PR rtl-optimization/48374
2887         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
2888
2889 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
2890
2891         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
2892         compute_data_dependences_for_loop returns false.
2893         * tree-parloops.c (loop_parallel_p): Likewise.
2894
2895 2012-01-25  Richard Guenther  <rguenther@suse.de>
2896
2897         * tree.h (get_pointer_alignment_1): Declare.
2898         * builtins.c (get_pointer_alignment_1): New function.
2899         (get_pointer_alignment): Use it.
2900
2901 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2902
2903         PR rtl-optimization/48308
2904         * combine.c (enum undo_kind): Add UNDO_LINKS.
2905         (struct undo): Add member l to other_contents and where.
2906         (do_SUBST_LINK): New.
2907         (SUBST_LINK): New.
2908         (try_combine): Handle LOG_LINKS for the dummy i1 case.
2909         (undo_all): Handle UNDO_LINKS.
2910
2911 2012-01-25  Richard Henderson  <rth@redhat.com>
2912
2913         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
2914         mem inputs.
2915
2916 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
2917
2918         * optabs.c (gen_atomic_test_and_set): Use each argument.
2919
2920 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
2921
2922         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
2923         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
2924         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
2925         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
2926         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
2927         TARGET_PAIRED_SINGLE_FLOAT.
2928
2929 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
2930
2931         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
2932         (in_struct, return_val): Remove MEM documentation.
2933         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
2934         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
2935         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
2936         and MEM_SCALAR.
2937         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2938         * cfgexpand.c (add_alias_set_conflicts): Likewise.
2939         * expr.c (store_field): Likewise.
2940         * function.c (assign_stack_temp_for_type): Likewise.
2941         * ifcvt.c (noce_try_cmove_arith): Likewise.
2942         * reload1.c (reload): Likewise.
2943         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
2944         (alpha_set_memflags): Likewise.
2945         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
2946
2947 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
2948
2949         * rtl.h (true_dependence, canon_true_dependence): Remove varies
2950         parameter.
2951         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
2952         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
2953         (true_dependence_1, true_dependence, canon_true_dependence): Remove
2954         varies parameter.
2955         * cselib.c (cselib_rtx_varies_p): Delete.
2956         (cselib_invalidate_mem): Update call to canon_true_dependence.
2957         * dse.c (record_store, check_mem_read_rtx): Likewise.
2958         (scan_reads_nospill): Likewise.
2959         * cse.c (check_dependence): Likewise.
2960         (cse_rtx_varies_p): Delete.
2961         * expr.c (safe_from_p): Update call to true_dependence.
2962         * ira.c (validate_equiv_mem_from_store): Likewise.
2963         (memref_referenced_p): Likewise.
2964         * postreload-gcse.c (find_mem_conflicts): Likewise.
2965         * sched-deps.c (sched_analyze_2): Likewise.
2966         * store-motion.c (load_kills_store): Likewise.
2967         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
2968         * gcse.c (mems_conflict_for_gcse_p): Likewise.
2969         (compute_transp): Update call to canon_true_dependence.
2970
2971 2012-01-25  Richard Henderson  <rth@redhat.com>
2972
2973         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
2974         (maybe_emit_atomic_test_and_set): New.
2975         (expand_sync_lock_test_and_set): Use it.
2976         (expand_atomic_test_and_set): Likewise.
2977         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
2978         the implementation; clarify implementation defined details.
2979         * doc/md.texi (atomic_test_and_set): Document.
2980
2981 2012-01-25  Richard Henderson  <rth@redhat.com>
2982
2983         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
2984
2985 2012-01-25  Richard Henderson  <rth@redhat.com>
2986
2987         PR target/51968
2988         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
2989         to effect no-op split.
2990
2991 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
2992
2993         PR lto/51698
2994         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
2995         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
2996         (BT_FN_VOID_PTR_INT_SIZE): New.
2997         (BT_FN_UINT_UINT_VAR): Remove.
2998         (BT_FN_UINT32_UINT32_VAR): New.
2999         (BT_FN_DOUBLE_VPTR): Remove.
3000         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
3001
3002         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
3003         (_ITM_changeTransactionMode): Same.
3004         (_ITM_memmoveRtWt): Change return type to void.
3005         (_ITM_memcpyRtWt): Same.
3006         (_ITM_memsetW): Same.
3007         (_ITM_RaRD): Change types to double.
3008         (_ITM_RD): Same.
3009         (_ITM_RaWD): Same.
3010         (_ITM_RfWD): Same.
3011
3012         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
3013
3014 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
3015             Patrick Marlier  <patrick.marlier@gmail.com>
3016
3017         * trans-mem.c (requires_barrier): Do not instrument thread local
3018         variables and emit save/restore for them.
3019
3020 2012-01-24  Jason Merrill  <jason@redhat.com>
3021
3022         PR c++/51812
3023         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
3024         output static aliases.
3025
3026 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
3027
3028         PR driver/47249
3029         * common.opt (-pie, -shared, pie, shared): Change from Common to
3030         Driver.
3031         * gcc.c (display_help): Display help for -pie and -shared.
3032
3033 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
3034
3035         PR target/49868
3036         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
3037         Remove note on size/offset limitation.
3038         (AVR Variable Attributes): Add example how to read data located
3039         with progmem.  Refer to named address spaces.
3040         * doc/invoke.texi (AVR Options): Fix typo.
3041
3042 2012-01-24  Richard Guenther  <rguenther@suse.de>
3043
3044         Forward-port to trunk
3045         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
3046
3047         PR middle-end/45678
3048         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
3049         op0 isn't sufficiently aligned and there is movmisalignM
3050         insn for mode, use it to load op0 into a temporary register.
3051
3052 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
3053
3054         PR target/51957
3055         * target.def (const_not_ok_for_debug_p): New hook.
3056         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
3057         documentation.
3058         * doc/tm.texi: Regenerated.
3059         * dwarf2out.c (const_ok_for_output_1): If
3060         targetm.const_not_ok_for_debug_p returns true, fail.
3061         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
3062         function.
3063         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
3064
3065 2012-01-23  Kai Tietz  <ktietz@redhat.com>
3066
3067         PR target/51900
3068         * config/i386/predicates.md (symbolic_operand): Allow
3069         UNSPEC_PCREL as PIC expression for lea.
3070         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
3071         * config/i386/i386.c (ix86_delegitimize_address): Handle
3072         UNSPEC_PCREL for none-MEM, too.
3073
3074 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
3075
3076         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
3077         (ipa_tm_create_version_alias): Same.
3078
3079 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
3080
3081         PR libitm/51830
3082         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
3083         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
3084
3085 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
3086             Patrick Marlier  <patrick.marlier@gmail.com>
3087             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
3088
3089         PR lto/51916
3090         * lto-wrapper.c (run_gcc): Pass the LTO section name to
3091         simple_object_start_read.
3092
3093 2012-01-23  Richard Guenther  <rguenther@suse.de>
3094
3095
3096         PR tree-optimization/51895
3097         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
3098         parameter decomposition into BLKmode components.
3099
3100 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
3101
3102         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
3103         fake variables for restrict-qualified pointers whose pointed-to type
3104         contains a placeholder.
3105
3106 2012-01-23  Richard Guenther  <rguenther@suse.de>
3107
3108         PR tree-optimization/51949
3109         * ipa-split.c (execute_split_functions): Do not split malloc functions.
3110
3111 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
3112
3113         PR rtl-optimization/51933
3114         * ree.c (transform_ifelse): Return true right away if dstreg is
3115         already wider or equal to cand->mode.
3116         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
3117         (make_defs_and_copies_lists): Remove defs_list and copies_list
3118         arguments, add state argument, just truncate state->work_list
3119         instead of always allocating and freeing the vector.  Assert that
3120         get_defs succeeds instead of returning 2.  Changed return type to bool.
3121         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
3122         have ext_src_mode, see if it has been modified already with the
3123         right kind of extension and has been extended before from the
3124         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
3125         just return true.  Remember the original mode in state->modified array.
3126         (combine_reaching_defs): Add state argument.  Don't allocate and
3127         free here def_list, copied_list and vec vectors, instead just
3128         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
3129         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
3130         Add state variable, clear vectors in it, initialize state.modified
3131         if needed.  Free all the vectors at the end and state.modified too.
3132         Don't skip a candidate if the extension expression has been modified.
3133
3134 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
3135
3136         PR target/47096
3137         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
3138          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
3139         (extra_options) interix.opt -> i386/interix.opt"
3140         (extra_objs):Add winnt-stubs.o
3141         * configure.ac: Add interix to target_os .comm on PE check.
3142         * configure: Regenerate.
3143         * config/interix3.h: Delete and move bits to..
3144         * config/interix.h: Delete and move bits to..
3145         * config/i386/i386-interix3.h: Delete and move bits to..
3146         * config/i386/i386-interix.h: ..here.
3147         (TARGET_CPU_DEFAULT): Remove redefinition.
3148         (TARGET_ASM_CONSTRUCTOR): Undefine.
3149         (SUBTARGET_SWITCHES): Define for ms-bitfields.
3150         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
3151         (PTRDIFF_TYPE): Define.
3152         (LONG_DOUBLE_TYPE_SIZE): Define.
3153         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
3154         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3155         (TARGET_SECTION_TYPE_FLAGS): Define.
3156         (ASM_DECLARE_FUNCTION_NAME): Define.
3157         (ASM_OUTPUT_EXTERNAL): Define.
3158         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
3159         (ASM_OUTPUT_ALIGNED_BSS): Define.
3160         (PCC_BITFIELD_TYPE_MATTERS): Define.
3161         (USE_CONST_SECTION): Define.
3162         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
3163         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
3164         (SUPPORTS_ONE_ONLY): Remove.
3165         (I386_PE_STRIP_ENCODING): Define.
3166         * config/interix.opt: Delete and move bits to..
3167         * config/i386/interix.opt: ..here. New.
3168         (mpe-aligned-commons): Add.
3169         * config/i386/t-interix: Add copyright header.
3170         (winnt-stubs.o): Add rule.
3171
3172 2012-01-22  Jason Merrill  <jason@redhat.com>
3173
3174         PR c++/51832
3175         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
3176         for extra name aliases.
3177
3178 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3179
3180         PR rtl-optimization/51924
3181         * ree.c (combine_set_extension): Improve debugging message.
3182         (combine_reaching_defs): Likewise.
3183         (get_defs): Rename confusingly named variable.
3184         (find_and_remove_re): Skip a candidate if the extension expression has
3185         been modified.
3186
3187 2012-01-21  Robert Millan  <rmh@gnu.org>
3188             Gerald Pfeifer  <gerald@pfeifer.com>
3189
3190         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
3191         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
3192
3193 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
3194
3195         PR tree-optimization/51914
3196         * tree-vect-stmts.c (vectorizable_conversion): For
3197         cvt_type && modifier == WIDEN, put temporary with cvt_type
3198         at the beginning of vec_dsts and set vec_dest to temporary
3199         with vectype_out.
3200
3201 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
3202
3203         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
3204
3205 2011-01-20  Tijl Coosemans  <tijl@coosemans.org>
3206
3207         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
3208         * config/rs6000/rs6000.c: Likewise.
3209
3210 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
3211
3212         PR target/51915
3213         * config/arm/arm.c (arm_count_output_move_double_insns): Call
3214         output_move_double on a copy of operands array.
3215
3216 2012-01-20  Cary Coutant  <ccoutant@google.com>
3217             Dodji Seketeli  <dodji@redhat.com>
3218
3219         PR debug/45682
3220         * dwarf2out.c (copy_declaration_context): Return ref to parent
3221         of declaration DIE, if necessary.
3222         (remove_child_or_replace_with_skeleton): Add new parameter; update
3223         caller.  Place skeleton DIE under parent DIE of original declaration.
3224         Move call to copy_declaration_context to here ...
3225         (break_out_comdat_types): ... from here.
3226
3227 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3228
3229         PR rtl-optimization/51856
3230         * reload.c (find_reloads_subreg_address): Set the address_reloaded
3231         flag to reloaded.
3232
3233 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3234
3235         PR target/51819
3236         * config/arm/arm.c (arm_print_operand): Correct output of alignment
3237         hints for neon loads and stores.
3238
3239 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
3240
3241         PR target/49868
3242         PR target/50887
3243         * doc/extend.texi (Named Address Spaces): Split into subsections.
3244         (AVR Named Address Spaces): New subsection.
3245         (M32C Named Address Spaces): New subsection.
3246         (RL78 Named Address Spaces): New subsection.
3247         (SPU Named Address Spaces): New subsection.
3248         (Variable Attributes): New anchor "AVR Variable Attributes".
3249         (AVR Variable Attributes): Rewrite and avoid wording
3250         "address space" in this context.
3251         * doc/invoke.texi (AVR Options): Rewrite and add documentation
3252         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
3253         (AVR Built-in Macros): New subsubsection therein.
3254         * doc/md.texi (AVR constraints): Remove "C04", "R".
3255
3256 2012-01-20  Richard Guenther  <rguenther@suse.de>
3257
3258         PR tree-optimization/51903
3259         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
3260         when removing stmts.
3261
3262 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3263
3264         PR target/50313
3265         * config/arm/arm.c (arm_load_pic_register): Use
3266         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
3267         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
3268         (arm_pic_static_addr): Likewise.
3269         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
3270         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
3271         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
3272         (pic_load_addr_unified): New.
3273
3274 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
3275
3276         PR target/51106
3277         * function.c (instantiate_virtual_regs_in_insn): Use
3278         delete_insn_and_edges when removing a wrong asm insn.
3279
3280 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
3281
3282         PR rtl-optimization/40761
3283         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
3284         Add new member loop_num.
3285         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
3286         (ira_build): Remove the parameter.
3287
3288         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
3289         (ira.c): Do not build CFG loops for one region allocation.  Remove
3290         argument from ira_build call.
3291
3292         * ira-build.c (init_loop_tree_node): New function.
3293         (create_loop_tree_nodes): Use it.  Separate the case when CFG
3294         loops are not built.
3295         (more_one_region_p): Check current_loops.
3296         (finish_loop_tree_nodes): Separate the case when CFG loops are not
3297         built.
3298         (add_loop_to_tree): Process loop equal to NULL too.
3299         (form_loop_tree): Separate the case when CFG loops are not built.
3300         Use explicitly number for the root.
3301         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
3302         an assertion.
3303         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
3304         instead of loop->num.
3305         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
3306         (mark_all_loops_for_removal): Ditto.
3307         (remove_unnecessary_regions): Separate the case when CFG loops
3308         are not built.
3309         (ira_build): Remove the parameter.  Use explicit number of regions
3310         when CFG loops are not built.
3311
3312         * ira-color.c (print_loop_title): Separate the case for the root node.
3313         Use loop_num instead of loop->num.
3314         (move_spill_restore): Use loop_num instead of loop->num.
3315
3316         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
3317         (change_loop): Ditto.
3318         (change_loop): Use loop_num instead of loop->num.
3319
3320         * ira-lives.c (process_bb_node_lives): Ditto.
3321
3322         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
3323
3324         * ira-conflicts.c (print_allocno_conflicts): Ditto.
3325
3326 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
3327
3328         PR libmudflap/40778
3329         * tree-mudflap.c (mf_artificial): New function.
3330         (execute_mudflap_function_ops, execute_mudflap_function_decls,
3331         mx_register_decls, mudflap_enqueue_decl): Use it.
3332
3333         PR target/51876
3334         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
3335         numbers in the insn pattern.
3336
3337 2012-01-19  Michael Matz  <matz@suse.de>
3338
3339         PR tree-optimization/46590
3340         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
3341         use it in remembering which conflicts we already created.
3342         (add_scope_conflicts): Adjust call to above, (de)allocate helper
3343         bitmap.
3344
3345 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
3346
3347         PR lto/51280
3348         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
3349         (merge_and_complain): Same.
3350
3351 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
3352
3353         PR bootstrap/50237
3354         * config/initfini-array.h: Guard content of the header
3355         with #ifdef HAVE_INITFINI_ARRAY.
3356         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
3357         Add initfini-array.h to tm_file here.
3358         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
3359         * config.gcc: Don't add initfini-array.h to tm_file here.
3360         * configure: Regenerated.
3361
3362 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
3363
3364         PR rtl-optimization/51505
3365         * df-problems.c (df_kill_notes): New parameter live. Update comment.
3366         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
3367         (df_note_bb_compute): Update the call to df_kill_notes.
3368
3369 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
3370
3371         * trans-mem.c (requires_barrier): Remove call to is_global_var.
3372
3373 2012-01-18  Richard Guenther  <rguenther@suse.de>
3374
3375         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
3376         of conversions to void *.
3377
3378 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3379             Richard Sandiford  <rdsandiford@googlemail.com>
3380
3381         PR middle-end/50325
3382         PR middle-end/51192
3383         * optabs.h (simplify_expand_binop): Declare.
3384         * optabs.c (simplify_expand_binop): Make global.
3385         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
3386         endian targets if the source cannot be exactly covered by word
3387         mode chunks.
3388
3389 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
3390
3391         PR bootstrap/51872
3392         * hard-reg-set.h (struct hard_reg_set_container): New type.
3393         * target.h (struct hard_reg_set_container): Forward declare.
3394         * target.def (set_up_by_prologue): New target hook.
3395         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
3396         * doc/tm.texi: Regenerated.
3397         * function.c (thread_prologue_and_epilogue_insns): Change
3398         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
3399         Call targetm.set_up_by_prologue on it.
3400         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
3401         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
3402
3403 2012-01-17  Nick Clifton  <nickc@redhat.com>
3404
3405         * config/rx/rx.c (rx_can_use_simple_return): New function.
3406         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
3407         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
3408
3409 2012-01-17  Richard Guenther  <rguenther@suse.de>
3410
3411         PR middle-end/51782
3412         * expr.c (expand_assignment): Take address-space information
3413         from the address operand of MEM_REF and TARGET_MEM_REF.
3414         (expand_expr_real_1): Likewise.
3415
3416 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3417
3418         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
3419         reload dump is requested.
3420
3421 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
3422
3423         PR other/51165
3424         * trans-mem.c (requires_barrier): Call may_be_aliased.
3425
3426 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
3427
3428         PR tree-optimization/51877
3429         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
3430         call arguments and fndecls compare equal, instead return false if they
3431         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
3432         both SSA_NAMEs that are valueized the same, or they satisfy
3433         operand_equal_p.
3434
3435 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3436
3437         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
3438         Solaris 11+.
3439         * configure: Regenerate.
3440
3441 2012-01-16  Jan Hubicka  <jh@suse.cz>
3442
3443         PR c/12245
3444         PR c++/14179
3445         * convert.c (convert_to_integer): Use fold_convert for
3446         converting an INTEGER_CST to integer type.
3447
3448 2012-01-16  Jason Merrill  <jason@redhat.com>
3449
3450         PR c++/14179
3451         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
3452
3453 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
3454
3455         PR bootstrap/51860
3456         * config/s390/s390.c (s390_chunkify_start): Don't skip
3457         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
3458         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
3459         If insn is followed by NOTE_INSN_VAR_LOCATION or
3460         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
3461         Don't use location of note insns.
3462
3463         PR tree-optimization/51865
3464         * tree-inline.c (tree_function_versioning): Call remap_decl
3465         on DECL_RESULT whenever it has VOID_TYPE_P type.
3466
3467 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
3468
3469         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
3470         for calls to locally-binding MIPS16 functions if only the return
3471         type uses float regs.
3472
3473 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
3474             Richard Sandiford  <rdsandiford@googlemail.com>
3475
3476         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
3477         (SYMBOL_32_HIGH): Likewise.
3478         (mips_output_tls_reloc_directive): Declare.
3479         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
3480         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
3481         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
3482         (mips_lo_relocs, mips_hi_relocs): Make extern.
3483         (mips16_stub_function): Move up file.
3484         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
3485         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
3486         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
3487         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
3488         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
3489         (mips_get_tp): Add MIPS16 support.
3490         (mips_legitimize_tls_address): Remove MIPS16 sorry().
3491         Generalize DTPREL and TPREL handling.
3492         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
3493         Add MIPS16 TLS support.
3494         (mips_output_tls_reloc_directive): New function.
3495         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
3496         * config/mips/predicates.md (symbolic_operand_with_high)
3497         (tls_reloc_operand): New predicates.
3498         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
3499         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
3500         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
3501         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
3502         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
3503         (*tls_get_tp_mips16_call_<mode>): Likewise.
3504
3505 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
3506
3507         PR rtl-optimization/51821
3508         * recog.c (peep2_find_free_register): Determine clobbered registers
3509         from insn pattern.
3510
3511 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
3512
3513         PR target/50925
3514         * config/avr/avr-protos.h: Revert change of 2012-01-09.
3515         * config/avr/avr.c: Likewise.
3516         * config/avr/avr.h: Likewise.
3517
3518 2012-01-13  Ian Lance Taylor  <iant@google.com>
3519
3520         PR c++/50012
3521         * tree.h (TYPE_QUALS): Add cast to int.
3522         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
3523
3524 2012-01-13  Ian Lance Taylor  <iant@google.com>
3525
3526         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
3527         comparing param_index to VEC_length result.
3528
3529 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
3530
3531         * c-decl.c: Do not include tree-mudflap.h
3532         * tree-optimize.c: Likewise.
3533         * Makefile.in: Update dependencies.
3534
3535 2012-01-13  Richard Guenther  <rguenther@suse.de>
3536
3537         PR middle-end/8081
3538         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
3539         variable-sized result always use RSO.
3540
3541 2012-01-12  DJ Delorie  <dj@redhat.com>
3542
3543         * cfgexpand.c (convert_debug_memory_address): Allow any valid
3544         pointer type, not just the default pointer type.
3545
3546 2012-01-09  Richard Henderson  <rth@redhat.com>
3547             Denis Chertykov  <chertykov@gmail.com>
3548
3549         PR target/50925
3550         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
3551         * config/avr/avr.c (avr_can_eliminate): Simplify.
3552         (avr_initial_elimination_offset): Likewise.
3553         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
3554         (expand_epilogue): Likewise.
3555         (avr_legitimize_address): Gut.
3556         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
3557         (avr_hard_regno_nregs): New.
3558         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
3559         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
3560         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
3561         add soft frame pointer.
3562         (CALL_USED_REGISTERS): Likewise.
3563         (REG_CLASS_CONTENTS): Likewise.
3564         (REGISTER_NAMES): Likewise.
3565         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
3566         (HARD_FRAME_POINTER_REGNUM): New.
3567         (FRAME_POINTER_REGNUM): Use soft frame pointer.
3568         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
3569         remove the HARD_FRAME_POINTER self-elimination.
3570
3571 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
3572
3573         PR target/51756
3574         * config/avr/avr.c (avr_encode_section_info): Test for absence of
3575         DECL_EXTERNAL when checking for initializers of progmem variables.
3576
3577 2012-01-12  Ira Rosen  <irar@il.ibm.com>
3578
3579         PR tree-optimization/51799
3580         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
3581         that the last operation is a type demotion.
3582
3583 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
3584
3585         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
3586         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
3587
3588 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
3589
3590         PR bootstrap/51796
3591         * combine.c (distribute_notes): If i3 is a noreturn call,
3592         allow old_size to be equal to args_size and make sure the
3593         noreturn call gets REG_ARGS_SIZE note.
3594         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
3595         on noreturn calls even when the delta is 0.
3596
3597 2012-01-11  Nathan Sidwell  <nathan@acm.org>
3598
3599         * gcov.c (STRING_SIZE): Remove.
3600         (generate_results): Erase annotations for source files with no
3601         coverage information.
3602         (read_line): New.
3603         (output_lines): Use it.
3604
3605 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
3606
3607         * gimple.h (gimplify_body): Remove first argument.
3608         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
3609         pointer set here, instead just pass DATA to walk_tree.
3610         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
3611         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
3612         (unvisit_body): Likewise, but with unmark_visited.
3613         (gimplify_body): Remove BODY_P argument and adjust.
3614         (gimplify_function_tree): Adjust call to gimplify_body.
3615         * omp-low.c (finalize_task_copyfn): Likewise.
3616
3617 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
3618
3619         * tree.h (build_function_decl_skip_args): Add boolean parameter.
3620         (build_function_type_skip_args): Delete.
3621         * tree.c (build_function_type_skip_args): Make static and add
3622         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
3623         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
3624         pass it to build_function_type_skip_args.
3625         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
3626         (tree_function_versioning): Likewise.
3627         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
3628         build_function_decl_skip_args.
3629         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
3630         and pass it to build_function_decl_skip_args/tree_function_versioning.
3631         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
3632         * ipa-inline-transform.c (save_inline_function_body): Likewise.
3633         * trans-mem.c (ipa_tm_create_version): Likewise.
3634         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
3635         * tree-inline.c (declare_return_variable): Remove always-true test.
3636         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
3637         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
3638         * ipa-split.c (split_function): Skip the return value for the split
3639         part if it doesn't return.
3640
3641 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3642
3643         PR tree-optimization/49642
3644         * ipa-split.c (forbidden_dominators): New variable.
3645         (check_forbidden_calls): New function.
3646         (dominated_by_forbidden): Likewise.
3647         (consider_split): Check for forbidden dominators.
3648         (execute_split_functions): Initialize and free forbidden
3649         dominators info; call check_forbidden_calls.
3650
3651 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3652
3653         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
3654
3655 2012-01-11  Nick Clifton  <nickc@redhat.com>
3656
3657         * config/rx/rx.md (return): Define pattern.
3658
3659 2012-01-11  Richard Guenther  <rguenther@suse.de>
3660
3661         * doc/extend.texi (malloc attribute): Adjust according to
3662         implementation.
3663
3664 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
3665             Patrick Marlier  <patrick.marlier@gmail.com>
3666
3667         PR middle-end/51516
3668         * trans-mem.c (get_cg_data): Traverse aliases if requested.
3669         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
3670         (ipa_tm_note_irrevocable): Same.
3671         (ipa_tm_scan_irr_block): Same.
3672         (ipa_tm_decrement_clone_counts): Same.
3673         (ipa_tm_scan_irr_function): Same.
3674         (ipa_tm_create_version_alias): Same.
3675         (ipa_tm_create_version): Same.
3676         (ipa_tm_transform_calls_redirect): Same.
3677         (ipa_tm_transform_calls): Same.
3678         (ipa_tm_transform_transaction): Same.
3679         (ipa_tm_execute): Same.
3680
3681 2012-01-10  Richard Guenther  <rguenther@suse.de>
3682
3683         PR middle-end/51806
3684         * opts.c (common_handle_option): Handle -Werror.
3685
3686 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
3687
3688         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
3689         operand number.
3690
3691 2012-01-10  Jason Merrill  <jason@redhat.com>
3692
3693         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
3694         information.
3695
3696 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3697
3698         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
3699         supports R_386_TLS_GD_PLT reloc.
3700         (gcc_cv_as_ix86_tlsldmplt): Check if linker
3701         supports R_386_TLS_LDM_PLT reloc.
3702         * configure: Regenerate.
3703         * config.in: Regenerate.
3704
3705 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
3706
3707         PR target/49868
3708         Extend __pgmx semantics to linearize memory.
3709         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
3710         determine if code comes inline or from libgcc.
3711         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
3712         (movmem_qi, movmem_qi): Set constraint #2 to "n".
3713         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
3714         (movmemx_qi, movmemx_hi): New insns.
3715         (xload_<mode>_libgcc): Rewrite to new insn condition.
3716         (xload_<mode>): Remove insns.
3717         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
3718         cases that don't satisfy avr_xload_libgcc_p().
3719         (avr_addr_space_convert): Allow converting in any direction.
3720         (avr_addr_space_subset_p): Return always true.
3721         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
3722         (avr_emit_movmemhi): Ditto.
3723         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
3724         (avr_out_movmem): Ditto.
3725         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
3726         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
3727         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
3728         (avr_encode_section_info): Encode 'progmem' in symbol flags.
3729         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
3730
3731 2012-01-10  Richard Guenther  <rguenther@suse.de>
3732
3733         PR tree-optimization/50913
3734         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
3735         Require data-refs to be representable by Graphite with respect
3736         to any loop nest.
3737
3738 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
3739
3740         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
3741         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
3742
3743 2012-01-10  Tom de Vries  <tom@codesourcery.com>
3744
3745         PR rtl-optimization/51271
3746         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
3747         handling annulled branch.
3748
3749 2012-01-10  Richard Henderson  <rth@redhat.com>
3750
3751         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
3752         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
3753         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
3754         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
3755         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
3756         arm_expand_vec_perm_const): New.
3757         * config/arm/arm-protos.h: Update.
3758         * config/arm/neon.md (UNSPEC_VCONCAT): New.
3759         (*neon_vswp<VDQX>): New.
3760         (neon_vcombine<VDX>): Use neon_split_vcombine.
3761         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
3762         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
3763         (vec_perm<VE>): New.
3764
3765 2012-01-10  Richard Henderson  <rth@redhat.com>
3766
3767         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
3768         use it if reload_completed.
3769         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
3770         arm_output_asm_insn, arm_process_output_memory_barrier,
3771         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
3772         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
3773         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
3774         arm_process_output_sync_insn, arm_output_sync_insn,
3775         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
3776         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
3777         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
3778         (emit_unlikely_jump): New.
3779         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
3780         (arm_split_atomic_op): New.
3781         * config/arm/arm-protos.h: Update.
3782         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
3783         (struct arm_sync_generator): Remove.
3784         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
3785         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
3786         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
3787         (VUNSPEC_LL, VUNSPEC_SC): New.
3788         (sync_result, sync_memory, sync_required_value, sync_new_value,
3789         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
3790         (attr length): Don't use arm_sync_loop_insns.
3791         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
3792         (movsfcc, movdfcc): Likewise.
3793         * config/arm/constraints.md (Ua): New.
3794         * config/arm/prediates.md (mem_noofs_operand): New.
3795         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
3796         (sync_clobber, sync_t2_reqd): Remove.
3797         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
3798         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
3799         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
3800         (arm_sync_compare_and_swap<SIDI>): Remove.
3801         (arm_sync_compare_and_swap<NARROW>): Remove.
3802         (arm_sync_lock_test_and_set<SIDI>): Remove.
3803         (arm_sync_lock_test_and_set<NARROW>): Remove.
3804         (arm_sync_new_<syncop><SIDI>): Remove.
3805         (arm_sync_new_<syncop><NARROW>): Remove.
3806         (arm_sync_new_nand<SIDI>): Remove.
3807         (arm_sync_new_nand<NARROW>): Remove.
3808         (arm_sync_old_<syncop><SIDI>): Remove.
3809         (arm_sync_old_<syncop><NARROW>): Remove.
3810         (arm_sync_old_nand<SIDI>): Remove.
3811         (arm_sync_old_nand<NARROW>): Remove.
3812         (*memory_barrier): Merge arm_output_memory_barrier.
3813         (atomic_compare_and_swap<QHSD>): New.
3814         (atomic_compare_and_swap<NARROW>_1): New.
3815         (atomic_compare_and_swap<SIDI>_1): New.
3816         (atomic_exchange<QHSD>): New.
3817         (cas_cmp_operand, cas_cmp_str): New.
3818         (atomic_op_operand, atomic_op_str): New.
3819         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
3820         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
3821         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
3822         (arm_load_exclusive<NARROW>): New.
3823         (arm_load_exclusivesi, arm_load_exclusivedi): New.
3824         (arm_store_exclusive<QHSD>): New.
3825
3826 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3827
3828         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
3829         reload patterns if -mvsx-scalar-memory.
3830
3831         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
3832         generated, even -mno-vsx-scalar-double was used.
3833         (vsx_xscvdpsp_scalar): Likewise.
3834         (vsx_xscvspdp_scalar2): Likewise.
3835
3836 2012-01-09  Tom de Vries  <tom@codesourcery.com>
3837             Andrew Pinski  <apinski@cavium.com>
3838
3839         PR debug/51471
3840         * reorg.c (fill_slots_from_thread): Don't speculate
3841         frame-related insns.
3842
3843 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
3844
3845         * sched-int.h (bb_note): Move to...
3846         * basic-block.h: ...here.
3847         * haifa-sched.c (bb_note): Move to...
3848         * cfgrtl.c: ...here.
3849         * function.c (next_block_for_reg): New function.
3850         (move_insn_for_shrink_wrap): Likewise.
3851         (prepare_shrink_wrap): Rewrite to use the above.
3852
3853 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
3854
3855         * gimple.c (is_gimple_non_addressable): Remove.
3856         * gimple.h: Remove is_gimple_non_addressable.
3857         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
3858         is_gimple_non_addressable.
3859         * trans-mem.c (expand_assign_tm): Same.
3860
3861 2012-01-09  Richard Guenther  <rguenther@suse.de>
3862
3863         PR tree-optimization/51775
3864         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
3865         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
3866
3867 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3868
3869         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
3870         tuning parameters.
3871         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
3872
3873 2012-01-09  Richard Guenther  <rguenther@suse.de>
3874
3875         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
3876
3877 2012-01-08  Jan Hubicka  <jh@suse.cz>
3878
3879         PR tree-optimize/51680
3880         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
3881         on when known_vals needs to be computed; cleanup.
3882
3883 2012-01-08  Jan Hubicka  <jh@suse.cz>
3884
3885         PR tree-optimize/51694
3886         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
3887
3888 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
3889
3890         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
3891         for -std=c++98 and -std=c++11 too.
3892
3893 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
3894
3895         * cfgloop.c (cancel_loop): Add free() of bbs array.
3896
3897 2012-01-07  Jan Hubicka  <jh@suse.cz>
3898
3899         PR tree-optimization/51600
3900         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
3901         that benefits small functions.
3902
3903 2012-01-07  Jan Hubicka  <jh@suse.cz>
3904
3905         * ipa-inline.c (want_inline_small_function_p): Fix formating.
3906
3907 2012-01-07  Jan Hubicka  <jh@suse.cz>
3908
3909         PR tree-optimization/51680
3910         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
3911         whose inlining reduce unit size.
3912
3913 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
3914
3915         PR bootstrap/51725
3916         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
3917         Add canonical node to containing_mem chain after the non-canonical
3918         one, even if there weren't any locs to propagate.
3919         (remove_useless_values): Keep only canonical values.
3920         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
3921         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
3922         canonicalize mem_chain elements that are not discarded.
3923
3924 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
3925
3926         PR target/47333
3927         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
3928         before emitting functions.
3929
3930         PR gcov-profile/50127
3931         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
3932         clear_aux_for_blocks.
3933
3934 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
3935
3936         PR debug/51746
3937         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
3938
3939 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
3940
3941         * c-decl.c (ext_block): Moved up.
3942         (collect_all_refs, for_each_global_decl): Take ext_block into account.
3943
3944 2012-01-06  Han Shen  <shenhan@google.com>
3945
3946         Translate built-in include paths for sysroot.
3947         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
3948         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
3949
3950         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
3951         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
3952
3953         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
3954         control whether sysroot should be prepended to gxx include dir.
3955
3956         * configure: Regenerate.
3957
3958 2012-01-06  Torvald Riegel  <triegel@redhat.com>
3959
3960         PR rtl-optimization/51771
3961         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
3962         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
3963
3964 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
3965
3966         PR tree-optimization/51315
3967         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
3968         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
3969
3970 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
3971
3972         PR target/51681
3973         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
3974         for shrp pattern.  Correctly handle and fixup shift variable.
3975         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
3976
3977 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
3978
3979         PR debug/51762
3980         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
3981         note when !ACCUMULATE_OUTGOING_ARGS.
3982
3983 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
3984
3985         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
3986         condition.
3987         (extract_range_from_unary_expr_1): Avoid useless computations.
3988
3989 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
3990
3991         PR rtl-optimization/51767
3992         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
3993         of jump_block and add an extra edge for degenerated asm gotos.
3994
3995         PR middle-end/51768
3996         * stmt.c (check_unique_operand_names): Don't ICE during error
3997         reporting if i is from labels chain.
3998
3999         PR middle-end/44777
4000         * profile.c (branch_prob): Split bbs that have exit edge
4001         and need a fake entry edge too.
4002
4003 2012-01-05  Jan Hubicka  <jh@suse.cz>
4004
4005         PR middle-end/49710
4006         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
4007         unlooping loops.
4008
4009 2012-01-05  Richard Guenther  <rguenther@suse.de>
4010
4011         PR lto/50490
4012         * tree-streamer-out.c (write_ts_optimization): New function.
4013         (streamer_write_tree_body): Call it.
4014         * tree-streamer-in.c (lto_input_ts_optimization): New function.
4015         (streamer_read_tree_body): Call it.
4016         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
4017
4018 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
4019
4020         PR middle-end/51761
4021         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
4022         * gimplify.c (gimplify_cleanup_point_expr): Save and set
4023         in_cleanup_point_expr before gimplify_stmt call and restore it
4024         afterwards.
4025         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
4026         in_cleanup_point_expr is false.
4027
4028 2012-01-05  Richard Guenther  <rguenther@suse.de>
4029
4030         PR middle-end/51764
4031         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
4032         to c.opt.
4033         * toplev.c (process_options): Reject combining mudflap and LTO.
4034         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
4035
4036 2012-01-05  Richard Guenther  <rguenther@suse.de>
4037
4038         PR tree-optimization/51760
4039         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
4040         not VARYING.
4041         (bit_value_unop): Handle UNDEFINED operands.
4042         (bit_value_binop): Likewise.
4043
4044 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
4045
4046         * config/avr/avr.c (avr_replace_prefix): Remove.
4047         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
4048         (avr_asm_function_rodata_section): Ditto.
4049         (avr_asm_select_section): Ditto.
4050
4051 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4052
4053         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
4054         insertion.
4055
4056 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
4057
4058         PR bootstrap/51648
4059         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
4060         calls that have any non-fake successor edges.
4061
4062         PR debug/51746
4063         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
4064
4065 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
4066
4067         PR tree-optimization/51624
4068         * tree-sra.c (build_ref_for_model): When replicating a chain of
4069         COMPONENT_REFs, stop as soon as the offset would become negative.
4070
4071 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
4072
4073         PR debug/51695
4074         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
4075         in .debug_loc on the floor.
4076
4077 2012-01-04  Andrew Pinski  <apinski@cavium.com>
4078
4079         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
4080
4081 2012-01-04  Andrew Pinski  <apinski@cavium.com>
4082             Adam Nemet  <anemet@caviumnetworks.com>
4083
4084         * config/mips/mips.md (size): Add SI and DI.
4085         (SIZE): New mode attribute.
4086         (U): New code attribute.
4087         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
4088         (mips_lbux_<mode>): Delete.
4089         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
4090         (mips_lhx): Use gen_mips_lhx_extsi.
4091         (mips_lhx_<mode>): Delete.
4092         (mips_lwx): Delete.
4093         (mips_l<size>x): New expand.
4094         (mips_lwx_<mode>): Delete.
4095         (mips_l<GPR:size>x_<P:mode>): New pattern.
4096         (*mips_lw<u>x_<P:mode>_ext): Likewise.
4097         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
4098         * config/mips/mips.c (mips_lx_address_p): New function.
4099         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
4100         (dsp64): New availability predicate.
4101         (mips_builtins): Add an entry for __builtin_mips_ldx.
4102         * config/mips/mips.h (ISA_HAS_LBX): New define.
4103         (ISA_HAS_LBUX): Likewise.
4104         (ISA_HAS_LHX): Likewise.
4105         (ISA_HAS_LHUX): Likewise.
4106         (ISA_HAS_LWX): Likewise.
4107         (ISA_HAS_LWUX): Likewise.
4108         (ISA_HAS_LDX): Likewise.
4109         * doc/extend.texi (__builtin_mips_ldx): Document.
4110
4111 2012-01-04  Tristan Gingold  <gingold@adacore.com>
4112
4113         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
4114         when long pointers are used.
4115         * config.build (*-*-*vms*): Handle all OpenVMS targets.
4116         (alpha64-dec-*vms*, alpha*-dec-*vms*)
4117         (ia64-hp-*vms*): Remove.
4118         * config/vms/xm-vms64.h: Delete.
4119
4120 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
4121
4122         PR middle-end/51472
4123         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
4124
4125 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
4126
4127         * opts.c (finish_options): Remove duplicate sorry.
4128
4129 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
4130
4131         PR middle-end/51696
4132         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
4133         correctly.
4134
4135 2012-01-04  Richard Guenther  <rguenther@suse.de>
4136
4137         PR middle-end/51750
4138         * tree.c (size_low_cst): New function.
4139         * tree.h (size_low_cst): Declare.
4140         * fold-const.c (fold_comparison): Use it to extract the low
4141         part of the POINTER_PLUS_EXPR offset.
4142
4143 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
4144
4145         Fix clearing ZERO_REG
4146         * config/avr/avr.md (cc): Add alternative "ldi".
4147         (movqi_insn): Use it in cc attribute.
4148         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
4149         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
4150         (output_reload_insisf): Use ZERO_REG to pre-clear register.
4151
4152 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4153
4154         * configure: Regenerate.
4155
4156 2012-01-04  Richard Guenther  <rguenther@suse.de>
4157
4158         PR tree-optimization/49651
4159         * tree-ssa-structalias.c (type_can_have_subvars): New function.
4160         (var_can_have_subvars): Use it.
4161         (get_constraint_for_1): Only consider subfields if there can be any.
4162
4163 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
4164
4165         PR bootstrap/51725
4166         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
4167         to its new canonical_cselib_val and the cselib_val was in
4168         first_containing_mem chain, but the canonical_cselib_val was not,
4169         add the latter into the chain.
4170         (cselib_invalidate_mem): Compare canonical_cselib_val of
4171         addr_list chain elt with v.
4172
4173         PR pch/51722
4174         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
4175         dwarf2out_undef): Allocate e.info using ggc_strdup instead
4176         of xstrdup.
4177         (output_macinfo_op): Don't ggc_strdup fd->filename.
4178         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
4179         then ggc_strdup it.  Don't free inc->info or cur->info.
4180         (output_macinfo): Don't free ref->info or file->info.
4181
4182 2012-01-03  Ira Rosen  <irar@il.ibm.com>
4183
4184         PR tree-optimization/51269
4185         * tree-vect-loop-manip.c (set_prologue_iterations): Make
4186         first_niters a pointer.
4187         (slpeel_tree_peel_loop_to_edge): Likewise.
4188         (vect_do_peeling_for_loop_bound): Update call to
4189         slpeel_tree_peel_loop_to_edge.
4190         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
4191         here.  Remove it from the parameters list.
4192         (vect_do_peeling_for_alignment): Update calls and compute
4193         wide_prolog_niters.
4194
4195 2012-01-03  Richard Guenther  <rguenther@suse.de>
4196
4197         PR tree-optimization/51070
4198         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4199         Properly handle calls.
4200
4201 2012-01-03  Richard Guenther  <rguenther@suse.de>
4202
4203         PR tree-optimization/51692
4204         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
4205         the LHS of allocation stmts.
4206
4207 2012-01-03  Olivier Hainque  <hainque@adacore.com>
4208
4209         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
4210
4211 2012-01-03  Olivier Hainque  <hainque@adacore.com>
4212
4213         * collect2.c (main): In AIX specific computations for vector
4214         insertions, use CONST_CAST2 to cast from char ** to const char **.
4215
4216 2012-01-03  Richard Guenther  <rguenther@suse.de>
4217
4218         PR debug/51650
4219         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
4220         the context of a limbo DIE when it does not already exist.
4221
4222 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
4223
4224         PR tree-optimization/51719
4225         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
4226         but direct call is, clear direct call's lhs and don't add fallthrough
4227         edge from dcall_bb to join_bb and PHIs.
4228
4229 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4230
4231         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
4232         the instructions emitted by the pattern.
4233         ("*TDC_insn_<mode>"): Add comment.
4234
4235 2012-01-03  Richard Guenther  <rguenther@suse.de>
4236
4237         PR middle-end/51730
4238         * fold-const.c (fold_comparison): Properly canonicalize
4239         tree offset and HOST_WIDE_INT bit position.
4240
4241 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
4242
4243         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
4244         operands for extzv pattern.
4245
4246 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
4247
4248         PR bootstrap/51725
4249         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
4250         on mem_elt first.
4251
4252 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
4253
4254         * doc/invoke.texi (-flto and related options): Copy-edit.
4255
4256 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
4257
4258         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
4259
4260 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
4261
4262         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
4263         New patterns.
4264
4265 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
4266
4267         * expr.h (move_by_pieces_ninsns): Declare.
4268         * expr.c (move_by_pieces_ninsns): Make external.
4269         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
4270         (mips_store_by_pieces_p): Likewise.
4271         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
4272         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
4273         * config/mips/mips.c (mips_move_by_pieces_p): New function.
4274         (mips_store_by_pieces_p): Likewise.
4275
4276 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
4277
4278         * passes.c (register_one_dump_file): Free full_name.
4279
4280         * reload1.c (reload): Don't allocate reg_max_ref_width here.
4281         (calculate_elim_costs_all_insns): Free offsets_at and
4282         offsets_known_at at the end and clear the pointers.
4283
4284 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
4285
4286         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
4287         this option introduced in r180739.
4288
4289 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
4290
4291         PR target/51345
4292         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
4293         (tmake_file target=avr): Add avr/t-multilib.
4294
4295         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
4296         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
4297         * config/avr/genmultilib.awk: New file.
4298         * config/avr/t-multilib: New auto-generated file.
4299         * config/avr/multilib.h: New auto-generated file.
4300         * config/avr/t-avr (AVR_MCUS): New variable.
4301         (genopt.sh): Use it.
4302         (s-mlib): Depend on t-multilib.
4303         (t-multilib, multilib.h): New dependencies.
4304         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
4305         (MULTILIB_OPTIONS): Remove.
4306         (MULTILIB_MATCHES): Remove.
4307         (MULTILIB_DIRNAMES): Remove.
4308         (MULTILIB_EXCEPTIONS): Remove:
4309         * config/avr/genopt.sh: Don't use hard coded file name;
4310         pass AVR_MCUS from t-avr instead.
4311
4312 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
4313
4314         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
4315
4316 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
4317
4318         Implement light-weight DImode support.
4319         * config/avr/avr-dimode.md: New file.
4320         * config/avr/avr.md: Include it.
4321         (adjust_len): Add plus64, compare64.
4322         (HIDI): Remove code iterator.
4323         (code_stdname): New code attribute.
4324         (rotx, rotsmode): Remove DI.
4325         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
4326         as code iterator.
4327         * config/avr/avr-protos.h (avr_have_dimode): New.
4328         (avr_out_plus64, avr_out_compare64): New.
4329         * config/avr/avr.c (avr_out_compare): Handle DImode.
4330         (avr_have_dimode): New variable definition and initialization.
4331         (avr_out_compare64, avr_out_plus64): New functions.
4332         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
4333         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
4334         (avr_compare_pattern): Skip DImode comparisons.
4335
4336 2012-01-02  Revital Eres  <revital.eres@linaro.org>
4337
4338         * ddg.c (def_has_ccmode_p): New function.
4339         (add_cross_iteration_register_deps,
4340         create_ddg_dep_from_intra_loop_link): Call it.
4341
4342 2012-01-02  Richard Guenther  <rguenther@suse.de>
4343
4344         PR other/51679
4345         * invoke.texi (fassociative-math): Remove spurious paranthesis.
4346
4347 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
4348
4349         * gcc.c (process_command): Update copyright notice dates.
4350         * gcov.c (print_version): Likewise.
4351         * gcov-dump.c (print_version): Likewise.
4352         * mips-tfile.c (main): Likewise.
4353         * mips-tdump.c (main): Likewise.
4354
4355 2012-01-01  Ira Rosen  <irar@il.ibm.com>
4356
4357         PR tree-optimization/51704
4358         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
4359         a use is inside the basic block or loop before accessing its vect info.
4360
4361 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
4362
4363         PR rtl-optimization/51069
4364         * cfgloopmanip.c (remove_path): Removing path making irreducible
4365         region unconditional makes BB part of the region.
4366
4367 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
4368
4369         PR tree-optimization/51683
4370         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
4371         calls with side-effects.
4372         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4373 \f
4374 Copyright (C) 2012 Free Software Foundation, Inc.
4375
4376 Copying and distribution of this file, with or without modification,
4377 are permitted in any medium without royalty provided the copyright
4378 notice and this notice are preserved.