OSDN Git Service

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