OSDN Git Service

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