OSDN Git Service

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