OSDN Git Service

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