PR target/49880
[official-gcc.git] / gcc / ChangeLog
blob7df0ee2d4bc5b90a6cc47a803989a30665ac909a
1 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3         PR target/49880
4         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
5         (divsi3_i1): Likewise.
7 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9         PR tree-optimization/49749
10         * tree-ssa-reassoc.c (get_rank): New forward declaration.
11         (PHI_LOOP_BIAS): New macro.
12         (phi_rank): New function.
13         (loop_carried_phi): Likewise.
14         (propagate_rank): Likewise.
15         (get_rank): Add calls to phi_rank and propagate_rank.
16         
17 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
19         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
20         of TARGET_64BIT.
21         (PTRDIFF_TYPE): Likewise.
23 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
25         PR target/49920
26         * config/i386/i386.md (strset): Do not expand strset_singleop
27         when %eax or $edi are fixed.
28         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
29         (*strsetsi_1): Ditto.
30         (*strsethi_1): Ditto.
31         (*strsetqi_1): Ditto.
32         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
33         (*rep_stossi): Ditto.
34         (*rep_stosqi): Ditto.
35         (cmpstrnsi): Also fail when %ecx is fixed.
36         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
37         (*cmpstrnqi_1): Ditto.
38         (*strlenqi_1): Ditto.
39         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
40         (*strmovsi_1): Ditto.
41         (*strmovhi_1): Ditto.
42         (*strmovqi_1): Ditto.
43         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
44         (*rep_movsi): Ditto.
45         (*rep_movqi): Ditto.
47 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
49         PR target/47908
50         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
51         Disable instruction scheduling for non-ColdFire targets.
52         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
54 2011-07-31  Revital Eres  <revital.eres@linaro.org>
56         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
57         of anti-dep edge from a branch.
58         (add_cross_iteration_register_deps): Create anti-dep edge from
59         a branch.
61 2011-07-31  Revital Eres  <revital.eres@linaro.org>
63         * modulo-sched.c: Change comment.
64         (reset_sched_times): Fix print message.
65         (print_partial_schedule): Add print info.
67 2011-07-31  Tom de Vries  <tom@codesourcery.com>
69         PR middle-end/43513
70         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
71         get_object_alignment and TYPE_ALIGN.
73 2011-07-30  Tom de Vries  <tom@codesourcery.com>
75         PR middle-end/43513
76         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
77         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
79 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
81         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
82         <sys/sbd.h>.
83         (cpu_types): New array.
84         (cputype): New function.
85         (host_detect_local_cpu): Only define buf, f if !__sgi__.
86         Use scaninvent instead of /proc/cpuinfo if __sgi__.
87         * config.host: Also use driver-native.o, mips/x-native on
88         mips-sgi-irix*.
89         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
90         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
91         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
93 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
95         PR middle-end/49897
96         PR middle-end/49898
97         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
98         in nested parallel and outer is a gimple_reg, mark it as addressable
99         and set its bit in task_shared_vars bitmap too.
101 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
103         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
105 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
107         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
108         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
109         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
110         AMASK_LOCKPFTCHOK): Define.
111         (host_detect_local_cpu): Remove buf, f, cpu_names.
112         Define cpu_types, implver, amask.
113         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
114         native CPU.
115         * config.host: Also use driver-alpha.o, alpha/x-alpha on
116         alpha*-dec-osf*.
117         * config/alpha/osf5.h [__alpha__ || __alpha]
118         (host_detect_local_cpu): Declare.
119         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
120         (DRIVER_SELF_SPECS): Define.
122 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
124         PR target/47715
125         * config/i386/i386.md (*load_tp_x32): New.
126         (*load_tp_x32_zext): Ditto.
127         (*add_tp_x32): Ditto.
128         (*add_tp_x32_zext): Ditto.
129         (*load_tp_<mode>): Disable for TARGET_X32 targets.
130         (*add_tp_<mode>): Ditto.
131         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
132         ptr_mode and convert to Pmode if needed.
134 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
136         PR target/49687
137         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
138         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
139         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
140         Add X to register footprint: Clobber r26/r27.
142 2011-07-29  Richard Guenther  <rguenther@suse.de>
144         * builtins.c (fold_builtin_signbit): Build the comparison
145         with a proper type.
147 2011-07-29  Richard Guenther  <rguenther@suse.de>
149         PR tree-optimization/49893
150         * tree-predcom.c (suitable_reference_p): Volatile references
151         are not suitable.
153 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
155         PR target/49313
156         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
157         (__ctzsi2): Result for 0 may be undefined.
158         (__ctzhi2): Result for 0 may be undefined.
159         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
160         (__popcountsi2): Ditto. And don't clobber r26.
161         (__popcountdi2): Ditto. And don't clobber r27.
162         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
163         (parityhi2): New expand.
164         (paritysi2): New expand.
165         (popcounthi2): New expand.
166         (popcountsi2): New expand.
167         (clzhi2): New expand.
168         (clzsi2): New expand.
169         (ctzhi2): New expand.
170         (ctzsi2): New expand.
171         (ffshi2): New expand.
172         (ffssi2): New expand.
173         (copysignsf3): New insn.
174         (bswapsi2): New expand.
175         (*parityhi2.libgcc): New insn.
176         (*parityqihi2.libgcc): New insn.
177         (*paritysihi2.libgcc): New insn.
178         (*popcounthi2.libgcc): New insn.
179         (*popcountsi2.libgcc): New insn.
180         (*popcountqi2.libgcc): New insn.
181         (*popcountqihi2.libgcc): New insn-and-split.
182         (*clzhi2.libgcc): New insn.
183         (*clzsihi2.libgcc): New insn.
184         (*ctzhi2.libgcc): New insn.
185         (*ctzsihi2.libgcc): New insn.
186         (*ffshi2.libgcc): New insn.
187         (*ffssihi2.libgcc): New insn.
188         (*bswapsi2.libgcc): New insn.
190 2011-07-29  Richard Guenther  <rguenther@suse.de>
192         * tree-vrp.c (get_value_range): Only set parameter default
193         definitions to varying, leave others at undefined.
194         (extract_range_from_binary_expr): Fix undefined handling.
195         (vrp_visit_phi_node): Handle merged undefined state.
197 2011-07-29  Wei Guozhi  <carrot@google.com>
199         PR rtl-optimization/49799
200         * combine.c (make_compound_operation): Check if the bit field is valid
201         before change it to bit field extraction.
203 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
205         PR rtl-optimization/49891
206         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
207         newly created returnjumps.
209 2011-07-28  DJ Delorie  <dj@redhat.com>
211         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
212         local frame in a naked function, and produce a suitable error for
213         that specific case.
215         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
216         registers to be reloaded in HI classes when the target is HI.
218 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
220         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
221         bound_one, bound_two.
223 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
225         PR middle-end/48648
226         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
227         CLAST assignments.
228         (translate_clast): Same.
229         (translate_clast_assignment): New.
231 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
233         PR tree-optimization/49876
234         * sese.c (rename_uses): Do not return false on gloog_error: set
235         the new_expr to integer_zero_node and continue code generation.
236         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
238 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
240         PR debug/49846
241         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
242         arguments also check if they aren't initialized with a MODE_INT
243         mode of the same size.
245 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
247         * expr.c (get_bit_range): Handle *MEM_REF's.
249 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
251         * rtlanal.c (tablejump_p): False for returns.
252         * reorg.c (first_active_target_insn): New static function.
253         (find_end_label): Set JUMP_LABEL for a new returnjump.
254         (optimize_skip, get_jump_flags, rare_destination,
255         mostly_true_jump, get_branch_condition,
256         steal_delay_list_from_target, own_thread_p,
257         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
258         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
259         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
260         * jump.c (delete_related_insns): Likewise.
261         (jump_to_label_p): New function.
262         (redirect_target): New static function.
263         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
264         (redirect_jump_1): Assert that the new label is nonnull.
265         (redirect_jump): Likewise.
266         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
267         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
268         exit block.
269         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
270         changed.  Ensure that the right label is passed to redirect_jump.
271         * function.c (emit_return_into_block,
272         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
273         ret_rtx in their JUMP_LABEL.
274         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
275         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
276         pass ret_rtx as label.
277         * cfglayout.c (fixup_reorder_chain): Use
278         force_nonfallthru_and_redirect rather than force_nonfallthru.
279         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
280         * rtl.h (ANY_RETURN_P): New macro.
281         (jump_to_label_p): Declare.
282         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
283         JUMP_LABELs.
284         (mark_target_live_regs): Likewise.
285         * basic-block.h (force_nonfallthru_and_redirect): Declare.
286         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
287         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
288         alpha_tablejump_best_label): Remove functions.
289         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
290         alpha_tablejump_best_label): Remove declarations.
291         * config/sh/sh.c (barrier_align, split_branches): Adjust for
292         ret_rtx in JUMP_LABELs.
293         * config/arm/arm.c (is_jump_table): Likewise.
295 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
297         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
298         special predicate.  Remove explicit mode checks.
300 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
302         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
303         DW_AT_data_member_location containing just DW_OP_plus_uconst.
305         PR debug/49871
306         * dwarf2out.c (size_of_die, value_format, output_die): Use
307         DW_FORM_udata instead of DW_FORM_data[48] for
308         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
310 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
312         * config/i386/i386.md (*tls_global_dynamic_64): Update
313         length attribute.
315 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
317         PR target/47715
318         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
319         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
320         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
321         (tls_dynamic_gnu2_64): Ditto.
322         (*tls_dynamic_gnu2_lea_64): Ditto.
323         (*tls_dynamic_gnu2_call_64): Ditto.
324         (*tls_dynamic_gnu2_combine_64): Ditto.
326 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
328         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
330 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
332         PR target/47364
333         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
335 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
337         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
338         before the core constraints. Adjust attributes.
339         ("*thumb2_movdf_vfp"): Likewise.
341 2011-07-28  Kai Tietz  <ktietz@redhat.com>
343         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
344         (simplify_truth_ops_using_ranges): Likewise.
345         (build_assert_expr_for): Likewise.
346         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
347         and handle BIT_NOT_EXPR for truth-operation.
349 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
351         PR target/49313
352         Undo r176835 from trunk
353         2011-07-27  Georg-Johann Lay
355 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
357         PR target/49687
358         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
359         Add _muluhisi3, _mulshisi3, _usmulhisi3.
360         * config/avr/libgcc.S (__mulsi3): Rewrite.
361         (__mulhisi3): Rewrite.
362         (__umulhisi3): Rewrite.
363         (__usmulhisi3): New.
364         (__muluhisi3): New.
365         (__mulshisi3): New.
366         (__mulohisi3): New.
367         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
368         declare.
369         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
370         (pseudo_register_or_const_int_operand): New.
371         (combine_pseudo_register_operand): New.
372         (u16_operand): New.
373         (s16_operand): New.
374         (o16_operand): New.
375         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
376         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
377         (any_extend, any_extend2): New code iterators.
378         (extend_prefix): New code attribute.
379         (mulsi3): Rewrite. Turn insn to expander.
380         (mulhisi3): Ditto.
381         (umulhisi3): Ditto.
382         (usmulhisi3): New expander.
383         (*mulsi3): New insn-and-split.
384         (mulu<mode>si3): New insn-and-split.
385         (muls<mode>si3): New insn-and-split.
386         (mulohisi3): New insn-and-split.
387         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
388         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
389         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
390         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
391         insn-and-split.
392         (*mulsi3_call): Rewrite.
393         (*mulhisi3_call): Rewrite.
394         (*umulhisi3_call): Rewrite.
395         (*usmulhisi3_call): New insn.
396         (*muluhisi3_call): New insn.
397         (*mulshisi3_call): New insn.
398         (*mulohisi3_call): New insn.
399         (extendqihi2): Use combine_pseudo_register_operand as predicate
400         for operand 1.
401         (extendqisi2): Ditto.
402         (zero_extendqihi2): Ditto.
403         (zero_extendqisi2): Ditto.
404         (zero_extendhisi2): Ditto.
405         (extendhisi2): Ditto. Don't early-clobber operand 0.
407 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
409         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
411 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
413         PR tree-optimization/49471
414         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
415         iv only when the largest type is unsigned.  Do not call
416         lang_hooks.types.type_for_size.
418 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
420         PR middle-end/45450
421         * graphite-poly.c (apply_poly_transforms): Disable legality check
422         after an openscop read.
424 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
426         PR middle-end/47691
427         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
428         copy_bb_and_scalar_dependences.
429         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
430         (graphite_copy_stmts_from_block): Update call to rename_uses.
431         (copy_bb_and_scalar_dependences): Update call to
432         graphite_copy_stmts_from_block.
433         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
435 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
437         PR target/49313
438         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
439         (__ctzsi2): Result for 0 may be undefined.
440         (__ctzhi2): Result for 0 may be undefined.
441         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
442         (__popcountsi2): Ditto. And don't clobber r26.
443         (__popcountdi2): Ditto. And don't clobber r27.
444         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
445         (parityhi2): New expand.
446         (paritysi2): New expand.
447         (popcounthi2): New expand.
448         (popcountsi2): New expand.
449         (clzhi2): New expand.
450         (clzsi2): New expand.
451         (ctzhi2): New expand.
452         (ctzsi2): New expand.
453         (ffshi2): New expand.
454         (ffssi2): New expand.
455         (copysignsf3): New insn.
456         (bswapsi2): New expand.
457         (*parityhi2.libgcc): New insn.
458         (*parityqihi2.libgcc): New insn.
459         (*paritysihi2.libgcc): New insn.
460         (*popcounthi2.libgcc): New insn.
461         (*popcountsi2.libgcc): New insn.
462         (*popcountqi2.libgcc): New insn.
463         (*popcountqihi2.libgcc): New insn-and-split.
464         (*clzhi2.libgcc): New insn.
465         (*clzsihi2.libgcc): New insn.
466         (*ctzhi2.libgcc): New insn.
467         (*ctzsihi2.libgcc): New insn.
468         (*ffshi2.libgcc): New insn.
469         (*ffssihi2.libgcc): New insn.
470         (*bswapsi2.libgcc): New insn.
472 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
474         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
475         the mode of symbolic_opreand RTXes.
477 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
479         * config/i386/predicates.md (x86_64_movabs_operand): Return false
480         for pic_32bit_operand RTXes.
481         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
482         in DImode.
484 2011-07-27  Kai Tietz  <ktietz@redhat.com>
486         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
487         for 32-bit, too.
488         (ix86_handle_abi_attribute): Allow function attributes
489         ms_abi/sysv_abi in 32-bit mode, too.
490         * doc/extend.texi: Adjust attribute documentation.
492         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
493         expression handling.
494         (and_var_with_comparison_1): Likewise.
496 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
498         * params.h (ALLOW_STORE_DATA_RACES): New.
499         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
500         * Makefile.in (expr.o): Depend on PARAMS_H.
501         * machmode.h (get_best_mode): Add argument.
502         * fold-const.c (optimize_bit_field_compare): Add argument to
503         get_best_mode.
504         (fold_truthop): Same.
505         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
506         * expr.c (emit_group_store): Same.
507         (copy_blkmode_from_reg): Same.
508         (write_complex_part): Same.
509         (optimize_bitfield_assignment_op): Add argument.
510         Add argument to get_best_mode.
511         (get_bit_range): New.
512         (expand_assignment): Calculate maxbits and pass it down accordingly.
513         (store_field): New argument.
514         (expand_expr_real_2): New argument to store_field.  Include params.h.
515         * expr.h (store_bit_field): New argument.
516         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
517         into account maxbits.
518         * calls.c (store_unaligned_arguments_into_pseudos): New argument
519         to store_bit_field.
520         * expmed.c (store_bit_field_1): New argument.  Use it.
521         (store_bit_field): Same.
522         (store_fixed_bit_field): Same.
523         (store_split_bit_field): Same.
524         (extract_bit_field_1): Pass new argument to get_best_mode.
525         (extract_bit_field): Same.
526         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
527         * doc/invoke.texi: Document parameter allow-store-data-races.
529 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
531         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
533 2011-07-27  Kai Tietz  <ktietz@redhat.com>
535         * tree-vrp.c (extract_range_from_binary_expr): Remove
536         TRUTH-binary cases and add new bitwise-cases.
537         (extract_range_from_assignment): Likewise.
538         (register_edge_assert_for_1): Likeiwise.
539         (register_edge_assert_for): Likewise.
540         (simplify_truth_ops_using_ranges): Likewise.
541         (simplify_stmt_using_ranges): Likewise.
543 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
545         PR target/47372
546         * config/i386/i386.c (ix86_delegitimize_address): Call
547         simplify_gen_subreg for PIC with mode of x only if modes of
548         x and orig_x are different.
550 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
552         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
553         to GC allocated copy of the string.
554         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
555         before .debug_line, not after it.
557 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
559         PR middle-end/47046
560         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
561         evolution_function_is_affine_p on CHREC_RIGHT.
563 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
565         * tree-data-ref.c (max_stmt_executions_tree): Do not call
566         lang_hooks.types.type_for_size.
568 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
570         PR middle-end/47653
571         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
572         loops using wrapping semantics.
574 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
576         PR middle-end/48805
577         * tree-scalar-evolution.c (instantiate_scev_r): Return
578         chrec_dont_know for ADDR_EXPR.
580 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
581             H.J. Lu  <hongjiu.lu@intel.com>
583         PR target/47369
584         PR target/49853
585         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
586         if legitimize_tls_address returned operand in wrong mode. Allow
587         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
588         if legitimize_pic_address returned operand in wrong mode.
590 2011-07-26  Martin Jambor  <mjambor@suse.cz>
592         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
593         return false for invariants.
595 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
597         * config/i386/i386.md (add->lea splitter): Implement using SWI
598         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
599         (add->lea zext splitter): Change operand 2 predicate to
600         x86_64_nonmemory_operand.
602 2011-07-26  Richard Guenther  <rguenther@suse.de>
604         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
605         frequency makes everything hot.
607 2011-07-26  Richard Guenther  <rguenther@suse.de>
609         PR tree-optimization/49840
610         * tree-vrp.c (range_fits_type_p): Properly handle full
611         double-int precision.
613 2011-07-26  Martin Jambor  <mjambor@suse.cz>
615         PR bootstrap/49786
616         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
617         counts.
618         (update_specialized_profile): Likewise.
620 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
621             H.J. Lu  <hongjiu.lu@intel.com>
623         PR target/47381
624         PR target/49832
625         PR target/49833
626         * config/i386/i386.md (i): Change SImode attribute to "e".
627         (g): Change SImode attribute to "rme".
628         (di): Change SImode attribute to "nF".
629         (general_operand): Change SImode attribute to x86_64_general_operand.
630         (general_szext_operand): Change SImode attribute to
631         x86_64_szext_general_operand.
632         (immediate_operand): Change SImode attribute to
633         x86_64_immediate_operand.
634         (nonmemory_operand): Change SImode attribute to
635         x86_64_nonmemory_operand.
636         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
637         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
638         (*lea_1): Use SWI48 mode iterator.
639         (*lea_1_zext): New insn pattern.
640         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
641         (*bt<mode>): Ditto.
642         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
643         Update operand constraints.
644         (addsi_1_zext): Ditto.
645         (*add<mode>2): Ditto.
646         (*addsi_3_zext): Ditto.
647         (*subsi_1_zext): Ditto.
648         (*subsi_2_zext): Ditto.
649         (*subsi_3_zext): Ditto.
650         (*addsi3_carry_zext): Ditto.
651         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
652         (*mulsi3_1_zext): Ditto.
653         (*andsi_1): Ditto.
654         (*andsi_1_zext): Ditto.
655         (*andsi_2_zext): Ditto.
656         (*<any_or:code>si_1_zext): Ditto.
657         (*<any_or:code>si_2_zext): Ditto.
658         (*test<mode>_1): Use <general_operand> predicate for operand 1.
659         (*and<mode>_2): Ditto.
660         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
661         (add->lea splitter): Check operand modes in insn constraint.  Extend
662         operands less than SImode wide to SImode.
663         (add->lea zext splitter): Do not extend input operands to DImode.
664         (*lea_general_1): Handle only QImode and HImode operands.
665         (*lea_general_2): Ditto.
666         (*lea_general_3): Ditto.
667         (*lea_general_1_zext): Remove.
668         (*lea_general_2_zext): Ditto.
669         (*lea_general_3_zext): Ditto.
670         (*lea_general_4): Check operand modes in insn constraint.  Extend
671         operands less than SImode wide to SImode.
672         (ashift->lea splitter): Ditto.
673         * config/i386/i386.c (ix86_print_operand_address): Print address
674         registers with 'q' modifier on 64bit targets.
675         * config/i386/predicates.md (pic_32bit_opreand): Define as special
676         predicate.  Reject non-SI and non-DI modes.
678 2011-07-25  Andrew Pinski  <apinski@cavium.com>
680         PR tree-opt/49671
681         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
682         TREE_THIS_NOTRAP into the inner most MEM_REF.
683         Always copy TREE_THIS_VOLATILE.
684         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
685         arguments are not volatile references.
687 2011-07-25  Richard Henderson  <rth@redhat.com>
689         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
690         * final.c (final_scan_insn): Don't test for it.
691         (rest_of_clean_state): Likewise.
693 2011-07-25  Richard Henderson  <rth@redhat.com>
695         PR debug/49841
696         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
697         (emit_frame_save): Likewise.
698         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
699         insn onto a dummy blockage insn after the join label.
701 2011-07-25  Richard Henderson  <rth@redhat.com>
703         * dwarf2cfi.c (dw_trace_info): Add ID member.
704         (get_trace_index): Remove.  Change users to use ID member.
705         (before_next_cfi_note): New.
706         (connect_traces): Remove unreachable traces before the main loop.
707         Look across one trace and generate remember/restore_state if needed.
709 2011-07-25  Richard Henderson  <rth@redhat.com>
711         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
713 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
715         * genattr.c (write_upcase, gen_attr <enum definition writing>):
716         Move to ...
717         * genattr-common.c ... here.
718         (main): Call gen_attr.
719         * optc-gen.awk: Make generated program include insn-attr-common.h .
720         * Makefile.in (oprions.o): Depend on insn-attr-common.h
722 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
724         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
725         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
726         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
727         m32c_print_operand, m32c_print_operand_address): Remove.
728         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
729         Change return type to bool. Change argument type to bool.
730         (m32c_print_operand, m32c_print_operand_address): Make static.
731         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
732         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
734 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
736         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
737         attributes): Document mmap.
739 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
741         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
742         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
743         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
744         mmix_print_operand, mmix_print_operand_address): Remove.
745         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
746         Change return type to bool. Change argument type to bool.
747         (mmix_print_operand, mmix_print_operand_address): Make static.
748         (mmix_intval, mmix_output_condition): Change 'x' argument type
749         to const_rtx.
750         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
751         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
753 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
755         PR target/39386
756         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
757         shift counter for x << x and x >> x shifts.
759 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
761         PR target/47124
762         * config.gcc: Reject *-*-solaris2 configuration.
764 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
766         PR tree-optimization/49809
767         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
768         gimple_get_lhs instead of gimple_assign_lhs.
770 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
772         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
774 2011-07-25  Richard Guenther  <rguenther@suse.de>
776         PR tree-optimization/49822
777         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
778         more.  Make sure to preserve stmts with side-effects.  Properly
779         handle virtual defs, follow a longer def chain.
781 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
783         PR plugins/45348
784         PR plugins/48425
785         PR plugins/46577
786         * Makefile.in: Do not flatten c-family directory when installing
787         plugin headers.
789 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
791         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
792         original nodes if we are dealing with virtual clones.
794 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
796         * common/config/c6x/c6x-common.c: New file.
798 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
800         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
802 2011-07-25  Richard Guenther  <rguenther@suse.de>
804         PR tree-optimization/49715
805         * tree-vrp.c: Include expr.h and optabs.h.
806         (range_fits_type_): New function.
807         (simplify_float_conversion_using_ranges): Likewise.
808         (simplify_stmt_using_ranges): Call it.
809         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
810         * optabs.c (can_float_p): Export.
811         * optabs.h (can_float_p): Declare.
813 2011-07-25  Richard Guenther  <rguenther@suse.de>
815         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
816         (get_value_range): For out-of-range SSA names or names created
817         after propagation return a read-only varying range.
818         (dump_all_value_ranges): Adjust.
819         (vrp_initialize): Likewise.
820         (vrp_finalize): Likewise.
822 2011-07-24  Richard Henderson  <rth@redhat.com>
824         PR debug/49831
825         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
826         them entirely.
828 2011-07-24  Richard Henderson  <rth@redhat.com>
830         PR debug/49825
831         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
832         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
834 2011-07-24  Richard Henderson  <rth@redhat.com>
836         PR debug/49827
837         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
839 2011-07-24  Richard Henderson  <rth@redhat.com>
841         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
842         Zero args_size for abnormal edges.  Adjust all callers.
844 2011-07-24  Richard Henderson  <rth@redhat.com>
846         PR debug/49825
847         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
849 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
851         PR bootstrap/49835
852         * collect2.c (demangle_flag): Removed.
854 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
856         * configure.ac (demangler_in_ld): Default to yes.
857         * configure: Regenerated.
858         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
859         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
860         --no-demangle options straight through to ld.  When
861         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
862         way that has the intended effect on Windows.
864 2011-07-23  Richard Henderson  <rth@redhat.com>
866         * dwarf2cfi.c: Include basic-block.h.
867         (dw_label_info): Remove.
868         (trace_work_list, trace_index): New.
869         (remember_row, emit_cfa_remember): Remove.
870         (dw_trace_info_hash, dw_trace_info_eq): New.
871         (get_trace_index, get_trace_info): New.
872         (save_point_p): New.
873         (free_cfi_row): Remove.
874         (add_cfi): Do not emit DW_CFA_remember_state.
875         (cfa_row_equal_p): New.
876         (barrier_args_size): Remove.
877         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
878         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
879         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
880         (dwarf2out_cfi_begin_epilogue): Remove.
881         (dwarf2out_frame_debug_restore_state): Remove.
882         (connect_traces, create_pseudo_cfg): New.
883         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
884         * Makefile.in (dwarf2cfi.o): Update.
886 2011-07-23  Richard Henderson  <rth@redhat.com>
888         * dwarf2cfi.c (dw_trace_info): New.
889         (dw_label_info): New.
890         (cie_return_save): New.
891         (cur_trace): New.
892         (queued_args_size): Rename from args_size.  Update all users.
893         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
894         (def_cfa_1): Use cur_trace instead of cfa_*.
895         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
896         (clobbers_queued_reg_save, reg_saved_in): Likewise.
897         (dwarf2out_frame_debug_expr): Likewise.
898         (create_cie_data): Split out from ...
899         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
901 2011-07-23  Richard Henderson  <rth@redhat.com>
903         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
904         Update all users to match.
905         (execute_dwarf2_frame): Free reg_saved_in_data.
907 2011-07-23  Richard Henderson  <rth@redhat.com>
909         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
910         (queued_reg_saves): Don't GTY.  Change to a VEC.
911         (queue_reg_save): Update to match.
912         (dwarf2out_flush_queued_reg_saves): Likewise.
913         (clobbers_queued_reg_save): Likewise.
914         (reg_saved_in): Likewise.
915         (execute_dwarf2_frame): Free queued_reg_saves.
917 2011-07-23  Richard Henderson  <rth@redhat.com>
919         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
921 2011-07-23  Richard Henderson  <rth@redhat.com>
923         * dwarf2cfi.c (add_cfi_args_size): Split out from...
924         (dwarf2out_args_size): ... here.
925         (add_cfi_restore): Split out from ...
926         (dwarf2out_frame_debug_cfa_restore): ... here.
927         (def_cfa_0): Split out from ...
928         (def_cfa_1): ... here.
929         (cfi_oprnd_equal_p, cfi_equal_p): New.
930         (change_cfi_row): New.
931         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
932         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
933         (output_cfis): Remove.
934         * dwarf2out.c (output_fde): Simplify output_cfi loop.
935         (dwarf2out_switch_text_section): Don't call output_cfis.
936         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
937         * dwarf2out.h: Update decls.
938         (enum dw_val_class): Add dw_val_class_none.
940 2011-07-23  Richard Henderson  <rth@redhat.com>
942         * dwarf2cfi.c (update_row_reg_save): New.
943         (dwarf2out_frame_debug_cfa_expression): Use it.
944         (dwarf2out_frame_debug_cfa_restore): Likewise.
945         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
947 2011-07-23  Richard Henderson  <rth@redhat.com>
949         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
951 2011-07-23  Richard Henderson  <rth@redhat.com>
953         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
954         (cie_cfi_row): New.
955         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
956         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
957         (cur_row, remember_row): New.
958         (def_cfa_1): Use cur_row instead of the old_* variables.
959         (dwarf2out_frame_debug_restore_state): Similarly.
960         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
961         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
962         (dwarf2out_frame_debug_adjust_cfa): Likewise.
963         (dwarf2out_frame_debug_cfa_offset): Likewise.
964         (dwarf2out_frame_debug_expr): Likewise.
965         (execute_dwarf2_frame): Set up cur_row.
966         * dwarf2out.h (struct cfa_loc): Mark for GTY.
968 2011-07-23  Richard Henderson  <rth@redhat.com>
970         * basic-block.h (EDGE_PRESERVE): New.
971         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
972         * bb-reorder.c: Include except.h.
973         (fix_up_crossing_landing_pad): New.
974         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
975         landing pads in the right partition.  Duplicate as necessary.
976         (partition_hot_cold_basic_blocks): Fix up DF info after
977         duplicating landing pads.
978         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
979         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
980         is set properly.  Validate that EH edges are not CROSSING.
981         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
982         (dw2_build_landing_pads): ... here.
983         (convert_to_eh_region_ranges): Remove code to fixup crossing
984         landing pads.
985         * except.h (expand_dw2_landing_pad_for_region): Declare.
986         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
988 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
990         PR target/49816
991         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
993 2011-07-22  Jason Merrill  <jason@redhat.com>
995         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
997 2011-07-22  Richard Henderson  <rth@redhat.com>
999         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
1001 2011-07-22  Richard Henderson  <rth@redhat.com>
1003         * jump.c (maybe_propagate_label_ref): Split out of...
1004         (mark_all_labels): ... here.  Do not attempt label_ref
1005         propagation while in cfglayout mode.
1007 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
1009         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
1010         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
1011         (dwarf_attr_name): Handle DW_AT_GNU_macros.
1012         (dwarf2out_define): If the vector is empty and
1013         lineno is 0, emit a dummy entry first.
1014         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
1015         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
1016         optimize_macinfo_range): New functions.
1017         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
1018         mergeable, optimize longer strings using
1019         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
1020         optimize longer sequences of define/undef ops from headers
1021         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
1022         emit a section headers.
1023         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
1024         and macinfo_section_label to DEBUG_MACRO_SECTION
1025         resp. DEBUG_MACRO_SECTION_LABEL.
1026         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
1027         instead of DW_AT_macro_info.
1029         PR other/32998
1030         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
1031         options.
1032         * dwarf2out.c: Include opts.h.
1033         (dchar_p): New typedef.  Define heap VEC for it.
1034         (producer_string): New variable.
1035         (gen_producer_string): New function.
1036         (gen_compile_unit_die): Use it.
1037         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
1038         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
1039         * doc/invoke.texi: Document -grecord-gcc-switches and
1040         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
1041         to -frecord-gcc-switches description.
1043 2011-07-22  Jason Merrill  <jason@redhat.com>
1045         PR c++/30112
1046         * c-decl.c (c_linkage_bindings): Define.
1048 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
1050         PR debug/49815
1051         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
1053 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
1055         * config/i386/i386.c (ix86_option_override_internal): Disallow
1056         MS ABI in x32 mode.
1057         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
1058         only for TARGET_LP64.
1059         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
1061 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1063         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
1064         avoid warnings when GCC is built with a C++ compiler.
1066 2011-07-22  Martin Jambor  <mjambor@suse.cz>
1068         PR lto/49796
1069         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
1070         if decl node is in another partition, call cgraph_get_node only once.
1072 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
1074         * config.gcc (x86_64-*-linux*): Set
1075         default_gnu_indirect_function to yes.
1077 2011-07-22  Richard Guenther  <rguenther@suse.de>
1079         PR tree-optimization/45819
1080         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
1081         preserve volatile and notrap flags.
1083 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1084             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1086         PR bootstrap/49794
1087         * configure.ac: Test AM_ICONV with CXX.
1088         * configure: Regenerate.
1089         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
1091 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1093         PR bootstrap/49797
1094         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
1095         (set_cloog_options): Use it.
1097 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
1099         PR c++/49756
1100         * gcc.c (main): Call stack_limit_increase (64MB).
1101         * toplev.c (toplev_main): Likewise.
1103 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1105         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
1106         instead of force_reg.
1108 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1110         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
1111         needed and use force_reg after convert.
1112         (ix86_expand_call): Likewise.
1113         (ix86_expand_special_args_builtin): Likewise.
1114         (ix86_expand_builtin): Likewise.
1116 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1118         PR middle-end/47654
1119         PR middle-end/49649
1120         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
1121         in parameter.  Initialize v1 and v2 based on the values returned
1122         by clast_name_to_lb_ub.
1123         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
1124         values.
1125         (type_for_clast_bin): Same.
1126         (type_for_clast_expr): Same.
1127         (type_for_clast_eq): Update calls to type_for_clast_expr.
1128         (type_for_clast_for): Same.
1129         (build_iv_mapping): Same.
1130         * graphite-ppl.h (value_min): New.
1132 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1134         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
1135         types whenever possible.
1137 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1139         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
1140         and ub fields.
1141         (new_clast_name_index): Add lb and ub parameters.
1142         (free_clast_name_index): New.
1143         (clast_name_to_lb_ub): New.
1144         (save_clast_name_index): Add lb and ub parameters.
1145         (compute_bounds_for_param): New.
1146         (type_for_level): Removed.
1147         (type_for_clast_for): Removed level parameter.  Do not call
1148         type_for_level.
1149         (graphite_create_new_loop): Store the lb and ub for the clast_name
1150         of the iterator of the loop that has been generated.
1151         (graphite_create_new_loop_guard): Remove parameter level.
1152         (create_params_index): Store the lb and ub of each parameter.
1153         (gloog): Use free_clast_name_index.  Pass to create_params_index
1154         the current scop.
1156 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1158         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
1159         (max_precision_type): Inline max_signed_precision_type.
1160         (type_for_clast_red): Use max_precision_type.
1161         (type_for_clast_bin): Same.
1162         (type_for_clast_for): Same.
1164 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1166         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
1167         type_for_interval.
1168         (gcc_type_for_value): Renamed type_for_value.
1169         (gcc_type_for_clast_term): Renamed type_for_clast_term.
1170         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
1171         (gcc_type_for_clast_red): Renamed type_for_clast_red.
1172         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
1173         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
1174         (graphite_translate_clast_equation): Update calls.
1175         (compute_type_for_level): Renamed type_for_level.
1176         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
1177         (build_iv_mapping): Update calls.
1178         (graphite_create_new_loop_guard): Same.
1180 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1182         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
1183         comment.
1185 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1187         * graphite-clast-to-gimple.c (struct ivs_params): New.
1188         (clast_name_to_gcc): Use ivs_params to pass around parameters.
1189         (clast_to_gcc_expression): Same.
1190         (clast_to_gcc_expression_red): Same.
1191         (gcc_type_for_clast_term): Same.
1192         (gcc_type_for_clast_expr): Same.
1193         (gcc_type_for_clast_red): Same.
1194         (gcc_type_for_clast_bin): Same.
1195         (gcc_type_for_clast_eq): Same.
1196         (graphite_translate_clast_equation): Same.
1197         (graphite_create_guard_cond_expr): Same.
1198         (graphite_create_new_guard): Same.
1199         (graphite_create_new_loop): Same.
1200         (build_iv_mapping): Same.
1201         (translate_clast_user): Same.
1202         (graphite_create_new_loop_guard): Same.
1203         (translate_clast): Same.
1204         (translate_clast_for_loop): Same.
1205         (translate_clast_for): Same.
1206         (translate_clast_guard): Same.
1207         (initialize_cloog_names): Fix typo.
1208         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
1210 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1212         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
1213         (new_clast_name_index): Add level parameter.
1214         (clast_name_to_level): New.
1215         (save_clast_name_index): Add level parameter.
1216         (newivs_to_depth_to_newiv): Removed.
1217         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
1218         (graphite_create_new_loop): Add level parameter.  Pass level to
1219         save_clast_name_index.
1220         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
1221         (create_params_index): Pass level to save_clast_name_index.
1223 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1225         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
1226         recompute type, lb, and ub.  Get them from...
1227         (graphite_create_new_loop_guard): ...here.  Pass in parameter
1228         pointers to type, lb, and ub.
1229         (translate_clast_for_loop): Update function calls.
1230         (translate_clast_for): Same.
1232 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1234         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
1235         psct_dynamic_dim.
1236         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
1237         (gcc_type_for_iv_of_clast_loop): Update use of level.
1238         (gloog): Start counting nesting level from 0.
1239         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
1240         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
1241         psct_dynamic_dim on level.
1243 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1245         * config/i386/i386.c (ix86_legitimize_address): Convert to
1246         Pmode if needed.
1248 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1250         * config/i386/i386.c (function_value_64): Always return pointers
1251         in Pmode.
1252         (ix86_promote_function_mode): New.
1253         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
1255 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1257         PR tree-optimization/49749
1258         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
1259         remove no-longer-used maxrank variable.
1261 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
1263         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
1265 2011-07-21  Jason Merrill  <jason@redhat.com>
1267         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
1268         * recog.h (struct insn_data_d): Check it instead of
1269         HAVE_DESIGNATED_INITIALIZERS.
1270         * genoutput.c (output_insn_data): Likewise.
1272 2011-07-21  Richard Guenther  <rguenther@suse.de>
1274         PR tree-optimization/49770
1275         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
1276         valueized any operand.  Renamed from ...
1277         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
1278         (valueize_shared_reference_ops_from_ref): Return whether we
1279         valueized any operand.
1280         (vn_reference_lookup): Only when we valueized any operand
1281         use the valueized reference for alias analysis.  Do not preserve
1282         the original reference tree in this case.
1284 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
1286         * config/i386/i386.c (ix86_decompose_address): Reject all but
1287         register operands and subregs of DImode hard registers in index.
1289 2011-07-21  Kai Tietz  <ktietz@redhat.com>
1291         * fold-const.c (fold_unary_loc): Preserve indirect
1292         comparison cast to none-boolean type.
1293         * tree-ssa.c (useless_type_conversion_p): Preserve cast
1294         from/to boolean-type.
1295         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
1296         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
1297         * tree-cfg.c (verify_gimple_comparison): Check result
1298         type of comparison expression.
1299         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
1300         of condition result and disallow type-cast sinking into comparison.
1302 2011-07-21  Richard Guenther  <rguenther@suse.de>
1304         * tree-ssa-forwprop.c (combine_conversions): Return whether
1305         we have to run cfg-cleanup.  Properly remove dead stmts.
1306         (ssa_forward_propagate_and_combine): Adjust.
1308 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
1310         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
1312 2011-07-21  Kai Tietz  <ktietz@redhat.com>
1314         * tree-ssa-propagate.c (substitute_and_fold): Use
1315         do_dce flag to deside, if BB's statements are scanned
1316         in last to first, or first to last order.
1318 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
1320         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
1322 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1323             Uros Bizjak  <ubizjak@gmail.com>
1324             Richard Henderson  <rth@redhat.com>
1326         * config/i386/constraints.md (w): New.
1328         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
1329         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
1331         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
1332         instead of TARGET_64BIT.
1334         * config/i386/i386.md (indirect_jump): Replace
1335         nonimmediate_operand with indirect_branch_operand.
1336         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
1337         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
1338         Convert operand 0 to Pmode for x32 if not PIC.
1339         (*tablejump_1): Replace nonimmediate_operand with
1340         indirect_branch_operand.  Replace constraint "m" with "w".
1341         (*call_vzeroupper): Replace constraint "m" with "w".
1342         (*call): Likewise.
1343         (*call_rex64_ms_sysv_vzeroupper): Likewise.
1344         (*call_rex64_ms_sysv): Likewise.
1345         (*call_value_vzeroupper): Likewise.
1346         (*call_value): Likewise.
1347         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
1348         (*call_value_rex64_ms_sysv): Likewise.
1349         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
1351         * config/i386/predicates.md (indirect_branch_operand): New.
1352         (call_insn_operand): Support x32.
1354 2011-07-20  Michael Eager  <eager@eagercon.com>
1356         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
1358 2011-07-20  Richard Henderson  <rth@redhat.com>
1360         * cfg.c (dump_bb_info): Dump basic_block->flags.
1361         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
1363 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
1365         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1366         of DImode hard registers in index.
1367         (ix86_legitimate_address_p): Allow subregs of base and index to span
1368         more than a word.  Assert that subregs of base and index satisfy
1369         register_no_elim_operand predicates.  Reject addresses where
1370         base and index have different modes.
1372 2011-07-20  Robert Millan  <rmh@gnu.org>
1374         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
1376 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1378         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
1379         removing now-unnecessary assignment.
1381 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1383         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
1384         memory address space to the type's address space.
1386 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
1388         PR target/36467
1389         PR target/49687
1390         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
1391         and expand appropriately if there is a CONST_INT in operand2.
1392         (usmulqihi3): New insn.
1393         (*sumulqihi3): New insn.
1394         (*osmulqihi3): New insn.
1395         (*oumulqihi3): New insn.
1396         (*muluqihi3.uconst): New insn_and_split.
1397         (*muluqihi3.sconst): New insn_and_split.
1398         (*mulsqihi3.sconst): New insn_and_split.
1399         (*mulsqihi3.uconst): New insn_and_split.
1400         (*mulsqihi3.oconst): New insn_and_split.
1401         (*ashifthi3.signx.const): New insn_and_split.
1402         (*ashifthi3.signx.const7): New insn_and_split.
1403         (*ashifthi3.zerox.const): New insn_and_split.
1404         (mulsqihi3): New insn.
1405         (muluqihi3): New insn.
1406         (muloqihi3): New insn.
1407         * config/avr/predicates.md (const_2_to_7_operand): New.
1408         (const_2_to_6_operand): New.
1409         (u8_operand): New.
1410         (s8_operand): New.
1411         (o8_operand): New.
1412         (s9_operand): New.
1413         (register_or_s9_operand): New.
1415 2011-07-20  Kai Tietz  <ktietz@redhat.com>
1417         * builtins.c (fold_builtin_expect): See through the cast
1418         from truthvalue_type_node to long.
1420 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
1422         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
1423         where we can use them from the standard and altivec instruction
1424         sets, instead of always using the 3 operand VSX forms that require
1425         the destination to overlap one of the inputs.
1426         (vsx_fms*): Ditto.
1427         (vsx_fnma*): Ditto.
1428         (vsx_fnms*): Ditto.
1430         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
1431         for DF types.
1432         (fmsdf4_fpr): Ditto.
1433         (nfmadf4_fpr): Ditto.
1434         (nfmsdf4_fpr): Ditto.
1436 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
1438         * genrecog.c (make_insn_sequence): Correct position numbering
1439         when filtering out match_scratch and match_dup.
1441 2011-07-20  Richard Guenther  <rguenther@suse.de>
1443         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
1444         against already removed statements.
1445         (forward_propagate_into_comparison): Remove dead defining stmts.
1446         (forward_propagate_into_gimple_cond): Likewise.
1447         (forward_propagate_into_cond): Simplify.
1448         (ssa_forward_propagate_and_combine): Handle changed cfg from
1449         forward_propagate_into_comparison.
1450         * tree-ssa-phiopt.c (conditional_replacement): Use proper
1451         locations for newly built statements.
1453 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
1455         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
1457 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1459         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
1460         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
1462 2011-07-20  Richard Guenther  <rguenther@suse.de>
1464         PR middle-end/18908
1465         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
1466         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
1467         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
1469 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
1471         * config/frv/frv.c (frv_register_move_cost): Define explicitly
1472         costs for subclasses of GR_REGS.
1474 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
1476         PR target/49780
1477         * config/i386/predicates.md (no_seg_addres_operand): No more special.
1478         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1479         of DImode hard registers in base.
1480         (ix86_legitimate_address_p): Allow SImode and DImode base and index
1481         registers.
1483 2011-07-20  Richard Guenther  <rguenther@suse.de>
1485         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
1486         (unify_nodes): Deal with that.
1487         (solve_graph): Likewise.
1489 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
1491         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
1492         canonicalize left operand from ZERO_EXTEND to AND.
1494 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
1496         * target.def (class_max_nregs): New hook.
1497         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
1498         * doc/tm.texi: Regenerate.
1499         * targhooks.c (default_class_max_nregs): New function.
1500         * targhooks.h (default_class_max_nregs): Declare.
1501         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
1502         x_ira_reg_class_min_nregs arrays to unsigned char.
1503         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
1504         hook instead of CLASS_MAX_NREGS macro.
1505         * reginfo.c (restore_register_info): Ditto.
1506         * ira-conflicts.c (process_regs_for_copy): Use
1507         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
1508         Change type rclass and aclass vars to reg_class_t.
1509         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
1510         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
1511         reg_class_t.
1512         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
1513         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
1515         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
1516         * config/i386/i386.c (ix86_class_max_nregs): New function.
1517         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
1518         instead of CLASS_MAX_NREGS macro.
1519         (TARGET_CLASS_MAX_NREGS): Define.
1520         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
1521         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
1522         * config/avr/avr.c (class_max_nregs): Remove function.
1523         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
1524         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
1525         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
1526         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
1527         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
1528         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
1529         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
1530         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
1531         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
1532         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
1533         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
1534         * config/score/score.h (CLASS_MAX_NREGS): Remove.
1535         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
1536         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
1537         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
1539 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
1541         * cif-code.def (OVERWRITABLE): Fix typo and move around.
1542         (TARGET_OPTIMIZATION_MISMATCH): Delete.
1543         (EH_PERSONALITY): Fix typo.
1544         (NON_CALL_EXCEPTIONS): Fix message.
1545         (OPTIMIZATION_MISMATCH): Adjust message.
1546         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
1548 2011-07-19  Ian Lance Taylor  <iant@google.com>
1550         * doc/install.texi (Configuration): Document
1551         --enable-build-poststage1-with-cxx.
1553 2011-07-19  Robert Millan  <rmh@gnu.org>
1555         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
1556         (GLIBC_DYNAMIC_LINKER): Remove.
1558         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
1559         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
1560         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
1561         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
1562         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
1563         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
1565         * config/mips/linux.h: Remove everything except for ...
1566         (GLIBC_DYNAMIC_LINKER): ... this macro.
1568         * config/mips/linux64.h: Remove everything except for ...
1569         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
1570         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
1571         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
1572         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
1573         (GNU_USER_LINK_EMULATIONN32): New macros.
1575         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
1576         Use the new headers.
1578 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1580         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
1581         Add offset_known_p and size_known_p fields.
1582         (MEM_OFFSET_KNOWN_P): Update accordingly.
1583         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
1584         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
1585         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
1586         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
1587         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
1588         (init_emit_regs): Likewise.
1590 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1592         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
1593         (MEM_OFFSET): Change from returning an rtx to returning a
1594         HOST_WIDE_INT.
1595         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
1596         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
1597         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
1598         (clear_mem_offset): Declare.
1599         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
1600         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
1601         MEM_OFFSET to get a HOST_WIDE_INT offset.
1602         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
1603         (adjust_offset_for_component_ref): Take a bool "known_p"
1604         parameter and a HOST_WIDE_INT "offset" parameter.
1605         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
1606         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
1607         than an rtx.  Use clear_mem_offset to clear the offset.
1608         * cfgcleanup.c (merge_memattrs): Likewise.
1609         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
1610         * function.c (assign_parm_find_stack_rtl): Likewise.
1611         (assign_parm_setup_stack): Likewise.
1612         * print-rtl.c (print_rtx): Likewise.
1613         * reload.c (find_reloads_subreg_address): Likewise.
1614         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1615         * var-tracking.c (INT_MEM_OFFSET): Likewise.
1616         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
1617         (get_mem_align_offset): Likewise.
1618         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
1619         (clear_mem_offset): New function.
1620         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
1621         offset rather than an rtx.  Assume both the expressio and offset
1622         are available.
1623         (r10k_needs_protection_p_1): Update accordingly, checking the
1624         expression and offset availability here instead.
1626 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1628         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
1629         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
1630         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
1631         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
1632         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
1633         (clear_mem_size): Declare.
1634         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
1635         (clear_mem_size): New function.
1636         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
1637         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
1638         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
1639         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
1640         to clear the size.
1641         (nonoverlapping_memrefs_p): Likewise.
1642         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
1643         (expand_builtin_init_trampoline): Likewise.
1644         * calls.c (compute_argument_addresses): Likewise.
1645         * cfgcleanup.c (merge_memattrs): Likewise.
1646         * dce.c (find_call_stack_args): Likewise.
1647         * dse.c (record_store, scan_insn): Likewise.
1648         * dwarf2out.c (dw_sra_loc_expr): Likewise.
1649         * expr.c (emit_block_move_hints): Likewise.
1650         * function.c (assign_parm_find_stack_rtl): Likewise.
1651         * print-rtl.c (print_rtx): Likewise.
1652         * reload.c (find_reloads_subreg_address): Likewise.
1653         * rtlanal.c (may_trap_p_1): Likewise.
1654         * var-tracking.c (track_expr_p): Likewise.
1655         * varasm.c (assemble_trampoline_template): Likewise.
1656         * config/arm/arm.c (arm_print_operand): Likewise.
1657         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
1658         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
1659         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
1660         (expand_constant_setmem_prologue): Likewise.
1661         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
1662         * config/rs6000/rs6000.c (expand_block_move): Likewise.
1663         (adjacent_mem_locations): Likewise.
1664         * config/s390/s390.c (s390_expand_setmem): Likewise.
1665         (s390_expand_insv): Likewise.
1666         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
1667         (*extendqi<mode>2_short_displ): Likewise.
1668         * config/sh/sh.c (expand_block_move): Likewise.
1669         * config/sh/sh.md (extv, extzv): Likewise.
1671 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1673         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
1674         (mem_attrs_htab_eq): ...here.
1675         (find_mem_attrs): Replace with...
1676         (set_mem_attrs): ...this function.  Take a mem_attrs structure
1677         rather than individual fields.
1678         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
1679         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
1680         (set_mem_size, change_address, adjust_address_1, offset_address)
1681         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
1682         Update accordingly.
1684 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1686         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
1687         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
1688         Provide a dummy definition of MEM_ADDR_SPACE for generators.
1689         (target_rtl): Add x_mode_mem_attrs.
1690         (mode_mem_attrs): New macro.
1691         (get_mem_attrs): New function.
1692         * emit-rtl.c (get_mem_attrs): Rename to...
1693         (find_mem_attrs): ...this.
1694         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
1695         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
1696         (set_mem_size, change_address, adjust_address_1, offset_address)
1697         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
1698         Update accordingly.
1699         (init_emit_regs): Initialize mode_mem_attrs.
1701 2011-07-19  Richard Guenther  <rguenther@suse.de>
1703         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
1704         TRUTH_*_EXPR handling.
1705         * tree-ssa-operands.c (get_expr_operands): Likewise.
1706         * tree-ssa-pre.c (fully_constant_expression): Likewise.
1707         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
1708         Likewise.
1709         (is_and_or_or): Likewise.
1710         (is_norm_cond_subset_of): Likewise.
1712 2011-07-19  Richard Guenther  <rguenther@suse.de>
1714         * tree.h (fold_build_pointer_plus_loc): New helper function.
1715         (fold_build_pointer_plus_hwi_loc): Likewise.
1716         (fold_build_pointer_plus): Define.
1717         (fold_build_pointer_plus_hwi): Likewise.
1718         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
1719         (fold_builtin_memory_op): Likewise.
1720         (fold_builtin_stpcpy): Likewise.
1721         (fold_builtin_memchr): Likewise.
1722         (fold_builtin_strstr): Likewise.
1723         (fold_builtin_strchr): Likewise.
1724         (fold_builtin_strrchr): Likewise.
1725         (fold_builtin_strpbrk): Likewise.
1726         (fold_builtin_strcat): Likewise.
1727         (expand_builtin_memory_chk): Likewise.
1728         (fold_builtin_memory_chk): Likewise.
1729         * c-typeck.c (build_unary_op): Likewise.
1730         * cgraphunit.c (thunk_adjust): Likewise.
1731         * fold-const.c (build_range_check): Likewise.
1732         (fold_binary_loc): Likewise.
1733         * omp-low.c (extract_omp_for_data): Likewise.
1734         (expand_omp_for_generic): Likewise.
1735         (expand_omp_for_static_nochunk): Likewise.
1736         (expand_omp_for_static_chunk): Likewise.
1737         * tree-affine.c (add_elt_to_tree): Likewise.
1738         * tree-data-ref.c (split_constant_offset_1): Likewise.
1739         * tree-loop-distribution.c (generate_memset_zero): Likewise.
1740         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
1741         * tree-predcom.c (ref_at_iteration): Likewise.
1742         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
1743         (add_to_parts): Likewise.
1744         (create_mem_ref): Likewise.
1745         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
1746         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
1747         (number_of_iterations_le): Likewise.
1748         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
1749         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
1750         (vect_create_addr_base_for_vector_ref): Likewise.
1751         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
1752         (vect_create_cond_for_alias_checks): Likewise.
1753         * tree-vrp.c (extract_range_from_assert): Likewise.
1754         * config/alpha/alpha.c (alpha_va_start): Likewise.
1755         (alpha_gimplify_va_arg_1): Likewise.
1756         * config/i386/i386.c (ix86_va_start): Likewise.
1757         (ix86_gimplify_va_arg): Likewise.
1758         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1759         * config/mep/mep.c (mep_expand_va_start): Likewise.
1760         (mep_gimplify_va_arg_expr): Likewise.
1761         * config/mips/mips.c (mips_va_start): Likewise.
1762         (mips_gimplify_va_arg_expr): Likewise.
1763         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1764         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
1765         (rs6000_gimplify_va_arg): Likewise.
1766         * config/s390/s390.c (s390_va_start): Likewise.
1767         (s390_gimplify_va_arg): Likewise.
1768         * config/sh/sh.c (sh_va_start): Likewise.
1769         (sh_gimplify_va_arg_expr): Likewise.
1770         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1771         * config/spu/spu.c (spu_va_start): Likewise.
1772         (spu_gimplify_va_arg_expr): Likewise.
1773         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1774         Likewise.
1775         (xstormy16_gimplify_va_arg_expr): Likewise.
1776         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
1777         (xtensa_gimplify_va_arg_expr): Likewise.
1779 2011-07-19  Richard Guenther  <rguenther@suse.de>
1781         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
1782         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
1783         handling.
1785         PR middle-end/18908
1786         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
1787         result of BIT_*_EXPR to bitfield precision.
1789 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
1791         PR tree-optimization/49742
1792         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
1793         as a potential write.
1795 2011-07-19  Richard Guenther  <rguenther@suse.de>
1797         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
1798         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
1799         (forward_propagate_comparison): Simplify, remove obsolete code.
1801 2011-07-19  Richard Guenther  <rguenther@suse.de>
1803         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
1804         BIT_XOR_EXPR, same as the RTL expander does.
1805         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
1806         (verify_gimple_assign_unary): Likewise.
1807         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
1808         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
1809         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
1811 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
1813         PR tree-optimization/49768
1814         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
1815         if offset is smaller than bitoffset, but offset+size is bigger
1816         than bitoffset.
1818 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
1820         PR tree-optimization/49771
1821         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
1822         zero step, set segment length to the size of the data-ref's type.
1824 2011-07-18  Martin Jambor  <mjambor@suse.cz>
1826         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
1827         comments.
1828         (ipcp_values_pool): Declare.
1829         (ipcp_sources_pool): Likewise.
1830         (ipcp_lattice): Changed to forward declaration.
1831         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
1832         cannot_devirtualize.
1833         (ipa_node_params): New fields descriptors, lattices, known_vals,
1834         clone_for_all_contexts and node dead, removed fields params and
1835         count_scale.
1836         (ipa_set_param_count): Removed.
1837         (ipa_get_param_count): Made to work with descriptors vector.
1838         (ipa_get_param): Updated.
1839         (ipa_param_cannot_devirtualize_p): Removed.
1840         (ipa_param_types_vec_empty): Likewise.
1841         (ipa_set_param_used): New function.
1842         (ipa_get_param_used): Updated to use descriptors vector.
1843         (ipa_func_list): Removed.
1844         (ipa_init_func_list): Removed declaration.
1845         (ipa_push_func_to_list_1): Likewise.
1846         (ipa_pop_func_from_list): Likewise.
1847         (ipa_push_func_to_list): Removed.
1848         (ipa_lattice_from_jfunc): Remove declaration.
1849         (ipa_get_jf_pass_through_result): Declare.
1850         (ipa_get_jf_ancestor_result): Likewise.
1851         (ipa_value_from_jfunc): Likewise.
1852         (ipa_get_lattice): Update.
1853         (ipa_lat_is_single_const): New function.
1854         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
1855         (ipa_init_func_list): Likewise.
1856         (ipa_pop_func_from_list): Likewise.
1857         (ipa_get_param_decl_index): Fix coding style.
1858         (count_formal_params): Removed.
1859         (count_formal_params_1): Renamed to count_formal_params.
1860         (ipa_populate_param_decls): Update to use descriptors vector.
1861         (ipa_initialize_node_params): Likewise.
1862         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
1863         (ipa_analyze_params_uses): Likewise.
1864         (ipa_free_node_params_substructures): Likewise and free also lattices
1865         and known values.
1866         (duplicate_array): Removed.
1867         (ipa_edge_duplication_hook): Add the new edge to the list of edge
1868         clones.
1869         (ipa_node_duplication_hook): Update to use new lattices.
1870         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
1871         (ipa_free_all_structures_after_iinln): Likewise.
1872         (ipa_write_node_info): Update to use new lattices.
1873         (ipa_read_node_info): Likewise.
1874         (ipa_get_jf_pass_through_result): New function.
1875         (ipa_get_jf_ancestor_result): Likewise.
1876         (ipa_value_from_jfunc): Likewise.
1877         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
1878         * ipa-cp.c: Reimplemented.
1879         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
1880         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
1881         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
1882         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
1883         * doc/invoke.texi (devirt-type-list-size): Removed description.
1884         (ipa-cp-value-list-size): Added description.
1886 2011-07-18  Richard Henderson  <rth@redhat.com>
1888         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
1889         before calling create_basic_block.
1891 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
1893         PR middle-end/49675
1894         * tree.c (build_common_builtin_nodes): Register
1895         __builtin_return_address, __cyg_profile_func_enter
1896         and __cyg_profile_func_exit.
1898 2011-07-18  Richard Henderson  <rth@redhat.com>
1900         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
1901         (add_labels_and_missing_jumps): ... here.
1902         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
1904 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
1906         PR target/47744
1907         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1908         of DImode hard registers in PLUS address chains.
1910 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1912         PR bootstrap/49769
1913         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
1914         (alpha*-*-freebsd*): Likewise.
1915         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1916         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1917         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
1918         crtprec80.o, crtfastmath.o to extra_parts for all targets.
1919         (ia64*-*-elf*): Remove extra_parts.
1920         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
1921         (sparc64-*-linux*): Likewise.
1922         (sparc64-*-freebsd*): Likewise.
1924         Revert:
1925         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
1926         (ia64*-*-linux*): Likewise.
1927         (mips64*-*-linux*): Likewise.
1928         (mips*-*-linux*): Likewise.
1930 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
1932         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
1934 2011-07-18  Richard Guenther  <rguenther@suse.de>
1936         * gimplify.c (gimplify_expr): Use input_location, not saved_location
1937         when building new trees.
1939 2011-07-18  Richard Guenther  <rguenther@suse.de>
1941         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
1942         expansion result to bitfield precision if required.
1944 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1946         * config.gcc (i[3456x]86-*-netware*): Remove.
1948         * gthr-nks.h: Remove.
1949         * configure.ac (enable_threads): Remove nks.
1950         * configure: Regenerate.
1952         * config/i386/i386.c (ix86_encode_section_info): Remove netware
1953         reference.
1954         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
1955         <netware.h> reference.
1957         * config/i386/netware-libgcc.c,
1958         gcc/config/i386/netware-libgcc.def,
1959         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
1960         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
1961         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
1962         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
1964         * doc/extend.texi (Function Attributes,
1965         callee_pop_aggregate_return): Remove i?86-netware reference.
1966         * doc/install.texi (Configuration, --enable-threads): Remove nks.
1968 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1970         PR target/49746
1971         Revert:
1972         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1974         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
1975         patterns.
1977 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
1979         PR middle-end/49732
1980         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
1982 2011-07-16  Matthias Klose  <doko@ubuntu.com>
1984         * doc/install.texi: Document --enable-static-libjava.
1986 2011-07-15  Richard Henderson  <rth@redhat.com>
1988         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1989         Replace all three arguments by returning a VEC of edges.
1990         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
1991         pointers and counts.
1992         (fix_edges_for_rarely_executed_code): Merge ...
1993         (rest_of_handle_partition_blocks): ... into...
1994         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
1995         any work was performed.
1996         (pass_partition_blocks): Clear todo_flags_finish.
1998 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
1999             Jakub Jelinek  <jakub@redhat.com>
2000             Jonathan Wakely  <jwakely.gcc@gmail.com>
2002         PR libstdc++/49745
2003         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
2004         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
2006 2011-07-15  Jason Merrill  <jason@redhat.com>
2008         PR testsuite/49741
2009         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
2010         rather than --tool_opts.
2012 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
2014         * doc/plugins.texi (Building GCC plugins): gengtype needs its
2015         corresponding gtype.state.
2017 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2019         PR target/49723
2020         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
2022 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
2024         PR target/48220
2025         * doc/md.texi (Standard Names): Document window_save.
2026         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
2027         expand_debug_expr and expand_debug_source_expr.  If the target has
2028         a window_save instruction, adjust the ENTRY_VALUE_EXP.
2029         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
2030         SSA_NAME_VAR is a parameter.
2031         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
2032         * var-tracking.c (parm_reg_t): New type and associated vector type.
2033         (windowed_parm_regs): New variable.
2034         (adjust_insn): If the target has a window_save instruction and this
2035         is the instruction, make its effect on parameter registers explicit.
2036         (next_non_note_insn_var_location): New function.
2037         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
2038         (vt_add_function_parameter): If the target has a window_save insn,
2039         adjust the incoming RTL and record that in windowed_parm_regs.
2040         (vt_finalize): Free windowed_parm_regs.
2042 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
2044         * doc/invoke.texi (C6X Options): New section.
2045         * doc/md.texi (TI C6X family): New section.
2046         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
2047         tic6x-*-uclinux.
2048         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
2049         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
2050         Provide C6X definitions.
2051         * config/c6x/c6x.md: New file.
2052         * config/c6x/constraints.md: New file.
2053         * config/c6x/predicates.md: New file.
2054         * config/c6x/c6x-sched.md.in: New file.
2055         * config/c6x/c6x-sched.md: New file.
2056         * config/c6x/gensched.sh: New file.
2057         * config/c6x/c6x-mult.md.in: New file.
2058         * config/c6x/genmult.sh: New file.
2059         * config/c6x/c6x-mult.md: New file.
2060         * config/c6x/sync.md: New file.
2061         * config/c6x/c6x-protos.h: New file.
2062         * config/c6x/sfp-machine.h: New file.
2063         * config/c6x/c6x.c: New file.
2064         * config/c6x/c6x.h: New file.
2065         * config/c6x/crti.s: New file.
2066         * config/c6x/crtn.s: New file.
2067         * config/c6x/lib1funcs.asm: New file.
2068         * config/c6x/c6x-modes.def: New file.
2069         * config/c6x/genopt.sh: New file.
2070         * config/c6x/c6x.opt: New file.
2071         * config/c6x/c6x-tables.opt: New file.
2072         * config/c6x/c6x-opts.h: New file.
2073         * config/c6x/c6x-isas.def: New file.
2074         * config/c6x/elf.h: New file.
2075         * config/c6x/elf-common.h: New file.
2076         * config/c6x/uclinux-elf.h: New file.
2077         * config/c6x/t-c6x: New file.
2078         * config/c6x/t-c6x-elf: New file.
2079         * config/c6x/t-c6x-uclinux: New file.
2080         * config/c6x/t-c6x-softfp: New file.
2081         * config/c6x/gtd.c: New file.
2082         * config/c6x/gtf.c: New file.
2083         * config/c6x/ltd.c: New file.
2084         * config/c6x/ltf.c: New file.
2085         * config/c6x/ged.c: New file.
2086         * config/c6x/gef.c: New file.
2087         * config/c6x/led.c: New file.
2088         * config/c6x/lef.c: New file.
2089         * config/c6x/eqd.c: New file.
2090         * config/c6x/eqf.c: New file.
2091         * config/c6x/libgcc-c6xeabi.ver: New file.
2093         Revert
2094         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2095         PR rtl-optimization/11320
2096         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2097         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2098         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2099         current_sched_info->compute_jump_reg_dependencies. Record which
2100         registers are used and which registers are set by the jump.
2101         Clear deps->reg_conditional_sets after a barrier.
2102         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2103         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2104         (init_deps): Initialize reg_conditional_sets.
2105         (free_deps): Clear reg_conditional_sets.
2106         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2107         Mark registers live on entry of the fallthrough block and conditionally
2108         set as set by the jump. Mark registers live on entry of non-fallthrough
2109         blocks as used by the jump.
2110         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2111         Mark new parameters as unused.
2113 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
2115         PR tree-opt/49309
2116         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
2117         Use fold_build2_loc instead of build2.
2118         Use the correct type for the new tree.
2120 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2122         PR rtl-optimization/11320
2123         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
2124         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
2126 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
2128         PR target/49487
2129         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
2130         of REG.
2131         (*rotw<mode>): Use const_int_operand for operand2.
2132         Use match_scatch for operand3.
2133         (*rotb<mode>): Ditto
2134         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
2136 2011-07-14  Richard Guenther  <rguenther@suse.de>
2138         PR tree-optimization/49651
2139         * tree-ssa-structalias.c (get_constraint_for_1): Properly
2140         handle dereferences with subvariables.
2142 2011-07-14  Richard Guenther  <rguenther@suse.de>
2144         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
2145         (fold_stmt_1): Do it here directly on gimple and as a first thing.
2147 2011-07-14  Richard Guenther  <rguenther@suse.de>
2149         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
2150         not bool_var when folding bool_var != 1 or bool_var == 0.
2152 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2154         * haifa-sched.c (schedule_insns): Remove outdated comment.
2155         (schedule_block): When computing a known value for TODO_SPEC,
2156         just set it rather than using logical operations.
2157         (try_ready): Likewise.  Use a local variable rather than a
2158         pointer to TODO_SPEC.  Reorder an if statement to move the
2159         easy case to the then block.
2160         * sched-deps.c (dep_spec_p): New static function.
2161         (update_dep): Use it to decide whether to call
2162         change_spec_dep_to_hard.
2163         (get_back_and_forw_lists): Use it.
2164         (sd_resolve_dep): Likewise.
2165         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
2166         (haifa_note_mem_dep): Likewise.
2167         (check_dep): Likewise.
2168         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
2169         (sched_free_deps): Free in two passes.
2171 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
2173         PR middle-end/49736
2174         * expr.c (all_zeros_p): Undo bogus part of last change.
2176 2011-07-14  Matthias Klose <doko@ubuntu.com>
2178         * doc/extend.texi (optimize attribute): Fix typo.
2180 2011-07-14  Richard Guenther  <rguenther@suse.de>
2182         * gimplify.c (gimplify_expr): Only do required conversions.
2184 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
2186         PR target/43746
2187         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
2188         i.e. use default_elf_select_section.
2189         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
2190         (READONLY_DATA_SECTION_ASM_OP): Remove.
2191         (TARGET_ASM_NAMED_SECTION): Move from here...
2192         * config/avr/avr.c: ...to here.
2193         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
2194         (avr_asm_named_section): Make static.
2196 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2198         PR bootstrap/49739
2199         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
2200         and crtfastmath.o for Linux/x86.
2202 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2204         * haifa-sched.c: Include "hashtab.h"
2205         (sched_no_dce): New global variable.
2206         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
2207         SHADOW_P): New macros.
2208         (last_clock_var, cycle_issued_insns): Move declarations.
2209         (must_backtrack): New static variable.
2210         (struct delay_pair): New structure.
2211         (delay_htab, delay_htab_i2): New static variables.
2212         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
2213         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
2214         functions.
2215         (dep_cost_1): If delay pairs exist, try to look up the insns and
2216         use the correct pair delay if we find them.
2217         (rank-for_schedule): Tweak priority for insns that must be scheduled
2218         soon to avoid backtracking.
2219         (queue_insn): Detect conditions which force backtracking.
2220         (ready_add): Likewise.
2221         (struct sched_block_state): Add member shadows_only_p.
2222         (struct haifa_save_data): New structure.
2223         (backtrack_queue): New static variable.
2224         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
2225         unschedule_insns_until, restore_last_backtrack_point,
2226         free_topmost_backtrack_point, free_backtrack_queue,
2227         estimate_insn_tick, estimate_shadow_tick): New functions.
2228         (prune_ready_list): New arg shadows_only_p.  All callers changed.
2229         If true, remove everything that isn't SHADOW_P.  Look up delay
2230         pairs and estimate ticks to avoid scheduling the first insn too early.
2231         (verify_shadows): New function.
2232         (schedule_block): Add machinery to enable backtracking.
2233         (sched_init): Take sched_no_dce into account when setting
2234         DF_LR_RUN_DCE.
2235         (free_delay_pairs): New function.
2236         (init_h_i_d): Initialize INSN_EXACT_TICK.
2237         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
2238         * sched-deps.c (sd_unresolve_dep): New function.
2239         * sched-int. (struct haifa_sched_info): New fields save_state
2240         and restore_state.
2241         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
2242         feeds_backtrack_insn and shadow_p.
2243         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
2244         (sched_no_dce): Declare variable.
2245         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
2246         sd_unresolve_dep): Declare functions.
2247         * modulo-sched.c (sms_sched_info): Clear the two new fields.
2248         * sched-rgn.c (rgn_const_sched_info): Likewise.
2249         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2250         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
2251         (ebb_sched_info): Add them for the two new fields.
2252         (add_deps_for_risky_insns): Call add_delay_dependencies.
2254 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2256         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
2257         Rename -mr11.
2258         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
2259         (rs6000_call_indirect_aix): Ditto.
2260         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
2261         (call_indirect_aix<ptrsize>_internal): Ditto.
2262         (call_indirect_aix<ptrsize>_nor11): Ditto.
2263         (call_indirect_aix<ptrsize>_internal2): Ditto.
2264         (call_value_indirect_aix<ptrsize>): Ditto.
2265         (call_value_indirect_aix<ptrsize>_internal): Ditto.
2266         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2267         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2268         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
2270 2011-07-13  Jason Merrill  <jason@redhat.com>
2272         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
2274 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2276         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
2277         * config/spu/spu.md ("clrsb<mode>2"): New expander.
2279 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
2281         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
2282         * configure: Regenerate.
2284 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2286         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
2287         (asm_file_start): Remove.
2288         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
2289         free_bb_for_insn around code that modifies insns before
2290         restarting df analysis.
2292 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2294         PR target/49541
2295         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
2296         (LINK_SPEC): ... here.
2298 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
2300         * haifa-sched.c (struct sched_block_state): New.
2301         (schedule_block): Move some local variables into such a structure.
2303 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2305         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
2306         * config/i386/t-crtpc: Remove.
2307         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
2308         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
2309         tmake_file.
2310         (x86_64-*-darwin*): Likewise.
2311         (i[34567]86-*-linux*): Likewise.
2312         (x86_64-*-linux*): Likewise.
2314         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
2315         Handle -mpc32, -mpc64, -mpc80.
2317 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2319         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
2320         * config/alpha/t-crtfm: Remove.
2321         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
2322         * config/i386/t-crtfm: Remove.
2323         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
2324         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
2325         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
2326         * config/sparc/t-crtfm: Remove.
2328         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
2329         (alpha*-*-freebsd*): Likewise.
2330         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
2331         (x86_64-*-darwin*): Likewise.
2332         (i[34567]86-*-linux*): Likewise.
2333         (x86_64-*-linux*): Likewise.
2334         (x86_64-*-mingw*): Likewise.
2335         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
2336         (ia64*-*-freebsd*): Likewise.
2337         (ia64*-*-linux*): Likewise.
2338         (mips64*-*-linux*): Likewise.
2339         (mips*-*-linux*): Likewise.
2340         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
2341         (sparc64-*-linux*): Likewise.
2342         (sparc64-*-freebsd*): Likewise.
2344 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2346         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
2347         * config/darwin-crt3.c: Move to ../libgcc/config.
2348         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
2349         ($(T)crt3$(objext)): Remove.
2350         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
2351         ($(T)crt2$(objext)): Remove.
2352         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
2353         (powerpc64-*-darwin*): Likewise.
2355 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2357         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
2359         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
2360         (addsi_1_zext): This.
2362 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
2364         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
2365         * doc/tm.texi: Regenerate.
2366         * target.def (mergeable_rodata_prefix): New defhookpod.
2367         * varasm.c (mergeable_string_section, mergeable_constant_section):
2368         Use it. Allocate name with alloca.
2370 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2372         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
2374 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
2376         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
2377         overlap check.
2379 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
2381         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
2382         (count_type_elements): Delete.
2383         (complete_ctor_at_level_p): Declare.
2384         * expr.c (flexible_array_member_p): New function, split out from...
2385         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
2386         parameter with for_ctor_p.  When for_ctor_p is true, return the
2387         number of elements that should appear in the top-level constructor,
2388         otherwise return an estimate of the number of scalars.
2389         (categorize_ctor_elements): Replace p_must_clear with p_complete.
2390         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
2391         (complete_ctor_at_level_p): New function, borrowing union logic
2392         from old categorize_ctor_elements_1.
2393         (mostly_zeros_p): Return true if the constructor is not complete.
2394         (all_zeros_p): Update call to categorize_ctor_elements.
2395         * gimplify.c (gimplify_init_constructor): Update call to
2396         categorize_ctor_elements.  Don't call count_type_elements.
2397         Unconditionally prevent clearing for variable-sized types,
2398         otherwise rely on categorize_ctor_elements to detect
2399         incomplete initializers.
2401 2011-07-13  Richard Guenther  <rguenther@suse.de>
2403         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
2404         the final type is integral.
2406 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
2408         * sched-int.h (struct _dep): Add member cost.
2409         (DEP_COST, UNKNOWN_DEP_COST): New macros.
2410         * sched-deps.c (init_dep_1): Initialize DEP_COST.
2411         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
2412         (sched_change_pattern): Reset it for dependent insns.
2414 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2416         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
2417         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
2418         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
2419         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
2420         (CRT0_S, MCRT0_S): Remove.
2421         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
2422         Remove.
2423         (s-crt0): Remove.
2424         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
2426 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
2428         * cse.c (insert_with_costs): Put semi-colon after empty loop body
2429         on the next line.
2430         * emit-rtl.c (push_to_sequence): Likewise.
2431         * haifa-sched.c (max_issue): Likewise.
2432         * matrix-reorg.c (add_allocation_site): Likewise.
2433         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2434         * reload.c (alternative_allows_const_pool_ref): Likewise.
2435         * sched-rgn.c (rgn_add_block): Likewise.
2436         (rgn_fix_recovery_cfg): Likewise.
2437         * tree.c (attribute_list_contained): Likewise.
2439 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
2441         * config/i386/i386.c: Tidy processor feature bitmasks.
2442         (m_P4_NOCONA): New.
2444 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
2446         PR rtl-opt/49474
2447         * cprop.c (find_implicit_sets): Correct the condition.
2449 2011-07-12  Richard Henderson  <rth@redhat.com>
2451         PR target/49713
2452         * dwarf2out.h (dwarf_frame_regnum): Remove.
2453         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
2454         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
2455         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
2456         (execute_dwarf2_frame): Initialize them.
2457         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
2458         users of the macros with the variables.
2459         (expand_builtin_dwarf_sp_column): Revert last change.
2460         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
2461         result of DWARF_FRAME_REGNUM into a local variable.
2463 2011-07-12  Richard Henderson  <rth@redhat.com>
2465         PR target/49714
2466         * config/i386/i386.c (x86_output_mi_thunk): Use
2467         machopic_indirect_call_target instead of machopic_indirection_name
2468         directly.
2470 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
2471             Eric Botcazou  <ebotcazou@adacore.com>
2473         * prefix.h: Wrap up in extern "C" block.
2475 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
2477         AMD bdver2 Enablement
2478         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
2479         (case ${target}): Add bdver2.
2480         * config/i386/driver-i386.c (host_detect_local_cpu): Let
2481         -march=native recognize bdver2 processors.
2482         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2483         bdver2 def_and_undef
2484         * config/i386/i386.c (struct processor_costs bdver2_cost): New
2485         bdver2 cost table.
2486         (m_BDVER2): New definition.
2487         (m_AMD_MULTIPLE): Includes m_BDVER2.
2488         (initial_ix86_tune_features): Add bdver2 tuning.
2489         (processor_target_table): Add bdver2 entry.
2490         (static const char *const cpu_names): Add bdver2 entry.
2491         (ix86_option_override_internal): Add bdver2 instruction sets.
2492         (ix86_issue_rate): Add bdver2.
2493         (ix86_adjust_cost): Add bdver2.
2494         (has_dispatch): Add bdver2.
2495         * config/i386/i386.h (TARGET_BDVER2): New definition.
2496         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
2497         (enum processor_type): Add PROCESSOR_BDVER2.
2498         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
2499         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
2500         description.
2502 2011-07-12  Richard Henderson  <rth@redhat.com>
2504         PR target/49714
2505         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
2506         destination address in memory on some paths.
2508 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
2510         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
2511         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
2512         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
2513         * function.c (locate_and_pad_parm): Take it into account.
2514         * target.def (function_arg_round_boundary): New hook.
2515         * targhooks.c (default_function_arg_round_boundary): New function.
2516         * targhooks.h (default_function_arg_round_boundary): Declare.
2517         * doc/tm.texi: Regenerate.
2519 2011-07-12  Richard Guenther  <rguenther@suse.de>
2521         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
2522         Do not perform no-op changes.
2524 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
2526         * config/arm/predicates.md (neon_struct_operand): Make a normal
2527         predicate.
2528         (neon_struct_or_register_operand): New predicate.
2529         * config/arm/neon.md (movmisalign<mode>): Replace predicates
2530         with neon_struct_or_register_operand.
2531         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
2532         neon_struct_operand instead of memory_operand.
2534 2011-07-12  Martin Jambor  <mjambor@suse.cz>
2536         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
2537         * cgraph.c (cgraph_get_node_or_alias): Removed.
2538         (change_decl_assembler_name): Changed all calls to
2539         cgraph_get_node_or_alias to a call to cgraph_get_node.
2540         (cgraph_make_decl_local): Likewise.
2541         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
2542         * varasm.c (default_binds_local_p_1): Likewise.
2543         (decl_binds_to_current_def_p): Likewise.
2545 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
2547         PR tree-optimization/49712
2548         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
2550 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
2552         * genautomata.c (add_arc): Return void.  All callers changed.
2553         (make_automaton): Remove dead code.
2555 2011-07-11  Richard Henderson  <rth@redhat.com>
2557         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
2558         (DW_FRAME_POINTER_REGNUM): New.
2559         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
2560         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
2561         (dwf_regno): New.
2562         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
2563         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
2564         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
2565         Use it.
2566         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
2567         * dwarf2out.h (dwarf_frame_regnum): New.
2568         (struct cfa_loc): Document the domain of the reg member.
2570 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
2572         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
2573         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
2575 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
2577         PR debug/49676
2578         * dwarf2out.c (int_shift_loc_descriptor): New function.
2579         (int_loc_descriptor): If shorter, emit i as
2580         (i >> shift), shift, DW_OP_shl for suitable shift value.
2581         Similarly, try to optimize large negative values using
2582         DW_OP_neg of a positive value if shorter.
2583         (size_of_int_shift_loc_descriptor): New function.
2584         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
2585         changes.
2586         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
2587         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
2588         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
2589         is shorter.
2590         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
2591         addend as added DW_OP_plus if it is shorter.
2593 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2595         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
2596         (DTORS_SECTION_ASM_OP): Define.
2598 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2600         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
2601         * config/t-dfprules: Move to ../libgcc/config.
2602         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2603         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
2604         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
2605         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
2606         Likewise.
2607         (i[34567]86-*-cygwin*): Likewise.
2608         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
2609         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
2610         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
2611         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
2612         D64PBIT_FUNCS, D128PBIT_FUNCS.
2614 2011-07-11  Richard Guenther  <rguenther@suse.de>
2616         * tree-vrp.c (simplify_conversion_using_ranges): Manually
2617         translate the source value-range through the conversion chain.
2619 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
2621         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
2623 2011-07-11  Arthur Loiret  <aloiret@debian.org>
2625         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
2626         a bi-arch compiler defaulting to 31-bit. In this case:
2627         (tmake_file): Add s390/t-linux64.
2628         * doc/install.texi: Add s390-linux to the list of targets supporting
2629         --enable-targets=all.
2631 2011-07-11  Arthur Loiret  <aloiret@debian.org>
2632             Matthias Klose <doko@debian.org>
2634         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
2635         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
2636         (tm_file): Add mips/linux64.h.
2637         (tmake_file): Add mips/t-linux64.
2638         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2639         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
2640         instead of hardcoded mabi=n32.
2641         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2642         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2643         convention.
2645 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2647         * passes.c (init_optimization_passes): Add invariant motion pass
2648         after induction variable optimization.
2650 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
2652         PR target/39633
2653         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
2654         offsets 1..5 set cc0 in a usable way.
2656 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
2658         * tree.h (call_expr_arg): Remove.
2659         (call_expr_argp): Likewise.
2661 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2663         * config/sparc/sparc.md (save_register_window_1): Rename to...
2664         (window_save): ...this.
2665         * config/sparc/sparc.c (emit_save_register_window): Rename to...
2666         (emit_window_save): ...this.
2667         (sparc_expand_prologue): Adjust to above renaming.
2669 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
2671         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
2672         of movabs for x32.
2674 2011-07-10  Richard Henderson  <rth@redhat.com>
2676         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
2677         run final, instead of emitting text directly.
2679 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
2681         * config/i386/i386.c (ix86_option_override_internal): Turn on
2682         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
2683         small PIC models for TARGET_X32.
2685 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
2687         PR target/49684
2688         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
2689         $(LIBGCC2_CFLAGS).
2691         PR bootstrap/49680
2692         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
2693         stray notes and debug insns by using prev_nonnote_nondebug_insn
2694         instead of PREV_INSN.
2696 2011-07-09  Richard Henderson  <rth@redhat.com>
2698         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
2699         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
2700         * dwarf2out.c: ... here.
2701         (output_all_cfis): Remove.
2702         (dwarf2out_switch_text_section): Use output_cfis directly.
2703         (size_of_locs): Export.
2704         (output_loc_sequence, output_loc_sequence_raw): Export.
2705         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
2706         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
2707         output_cfa_loc_raw): Move to ...
2708         * dwarfcfi.c: ... here.
2709         * dwarf2out.h: Update decls.
2711 2011-07-09  Richard Henderson  <rth@redhat.com>
2713         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
2714         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
2715         * dwarf2cfi.c: ... here.
2716         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
2717         (DWARF_ROUND, DWARF_CIE_ID): Remove.
2718         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
2719         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
2720         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
2722 2011-07-09  Richard Henderson  <rth@redhat.com>
2724         * dwarf2cfi.c (cie_return_save): New.
2725         (queue_reg_save): Use compare_reg_or_pc.
2726         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
2727         (dwarf2out_frame_debug_expr): Likewise.
2728         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
2729         (initial_return_save): Likewise.
2730         (execute_dwarf2_frame): Save and restore initial return save from
2731         the cie to the fde.
2732         * config/mips/mips.c (mips_frame_set): Remove special case for
2733         DWARF_FRAME_RETURN_COLUMN.
2735 2011-07-09  Richard Henderson  <rth@redhat.com>
2737         * dwarf2cfi.c (lookup_cfa): Remove.
2738         (execute_dwarf2_frame): Assert queues are empty on entry.
2739         Setup initial cfa directly, not via lookup_cfa.
2740         Don't clear args_size state here.
2742 2011-07-09  Richard Henderson  <rth@redhat.com>
2744         * dwarf2cfi.c (add_cfi_vec): New.
2745         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
2746         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
2747         (execute_dwarf2_frame): Set add_cfi_vec.
2749 2011-07-09  Richard Henderson  <rth@redhat.com>
2751         * defaults.h (ASM_COMMENT_START): Move here...
2752         * dwarf2asm.c: ... from here.
2753         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
2754         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
2755         * varasm.c: Likewise.
2757 2011-07-09  Richard Henderson  <rth@redhat.com>
2759         PR debug/49686
2760         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
2761         (create_cfi_notes): ... do it here instead.
2763 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
2765         PR debug/49676
2766         * dwarf2out.c (size_of_int_loc_descriptor): New function.
2767         (address_of_int_loc_descriptor): Use it.
2768         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
2770 2011-07-09  Richard Henderson  <rth@redhat.com>
2772         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
2773         (prologue, epilogue): New.
2774         (return, *rts): New.
2775         (blockage, setd, seti): New.
2776         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2777         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2778         (pdp11_saved_regno): New.
2779         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
2780         generate rtl instead of text.
2781         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
2782         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
2783         * config/pdp11/pdp11-protos.h: Update.
2785 2011-07-09  Richard Henderson  <rth@redhat.com>
2787         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2788         try to insert an rtl prologue here.
2789         (rs6000_output_function_epilogue): Similarly.
2790         * config/rs6000/rs6000.md (prologue): Emit a barrier to
2791         satisfy !TARGET_SCHED_PROLOG.
2792         (epilogue, sibcall_epilogue): Likewise.
2794 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
2796         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
2797         (FP_REG_P): Delete.
2798         (IN_OR_GLOBAL_P): Likewise.
2800 2011-07-08  Jason Merrill  <jason@redhat.com>
2802         PR c++/45437
2803         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
2804         compound assignment.
2806         * cgraph.c (cgraph_add_to_same_comdat_group): New.
2807         * cgraph.h: Declare it.
2808         * ipa.c (function_and_variable_visibility): Make sure thunks
2809         have the right visibility.
2811 2011-07-08  Richard Henderson  <rth@redhat.com>
2813         PR bootstrap/49680
2814         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
2815         any tablejump vector.
2817         PR bootstrap/49680
2818         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
2819         end of the prologue.
2821 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
2823         PR target/49621
2824         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
2825         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
2826         * config/rs6000/vector.md (vector_select_<mode>,
2827         vector_select_<mode>_uns): Change second operand of NE to
2828         CONST0_RTX (<MODE>mode) instead of const0_rtx.
2829         * config/rs6000/altivec.md (*altivec_vsel<mode>,
2830         *altivec_vsel<mode>_uns): Expect second operand of NE to be
2831         zero_constant of the corresponding vector mode.
2832         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
2833         Likewise.
2835 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
2837         * graphite-dependences.c (build_alias_set_powerset): Remove
2838         continue from loop, add one more assert.
2840 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
2842         PR target/46779
2843         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
2844         In particular, allow 8-bit values in r28 and r29.
2845         (avr_hard_regno_scratch_ok): Disallow any register that might be
2846         part of the frame pointer.
2847         (avr_hard_regno_rename_ok): Same.
2848         (avr_legitimate_address_p): Don't allow SUBREGs.
2850 2011-07-08  Julian Brown  <julian@codesourcery.com>
2852         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
2853         big-endian mode.
2854         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
2855         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
2856         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
2857         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
2858         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
2859         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
2860         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
2861         registers in big-endian mode.
2863 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
2865         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
2866         in terms of another.
2867         (write_attr_value): Write a cast if necessary.
2869         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
2870         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
2871         (REG_WORDS_BIG_ENDIAN): Document.
2872         * doc/tm.texi: Regenerate.
2873         * reload.c (operands_match_p): Take it into account.
2874         (reload_adjust_reg_for_mode): Likewise.
2875         * rtlanal.c (subreg_get_info): Likewise.
2877 2011-07-08  Richard Guenther  <rguenther@suse.de>
2879         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
2880         folding.
2882 2011-07-08  Kai Tietz  <ktietz@redhat.com>
2884         * fold-const.c (fold_truth_andor): Factored out truth_andor
2885         label from fold_binary as function.
2886         (fold_binary_loc): Replace truth_andor lable
2887         by function fold_truth_andor.
2889 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
2891         PR middle-end/49519
2892         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
2893         check if address is stored in register. If so - give up.
2894         (check_sibcall_argument_overlap_1): Do not perform check of
2895         overlapping when it is call to address.
2897 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
2899         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
2900         of magic '31'.
2902 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
2904         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
2905         GET_MODE_BITSIZE where appropriate.
2906         (widen_leading, expand_parity, expand_ctz, expand_ffs,
2907         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
2908         expand_float, expand_fix): Likewise.
2909         * expr.c (convert_move, convert_modes, expand_expr_real_2,
2910         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2911         * stor-layout.c (get_mode_bounds): Likewise.
2912         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
2913         Likewise.
2914         * convert.c (convert_to_integer): Likewise.
2915         * expmed.c (expand_shift_1): Likewise.
2917         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
2918         a bitsize.
2920         * optabs.c (expand_binop): Tighten conditions for doubleword
2921         expansions.
2922         (widen_bswap): Assert that mode bitsize and precision are the same.
2923         * stor-layout.c (get_best_mode): Skip modes that have lower
2924         precision than bitsize.
2925         * recog.c (simplify_while_replacing): Assert that bitsize and
2926         precision are the same.
2928 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2930         * Makefile.in (LIBGCOV): Remove.
2931         (libgcc.mvars): Remove LIBGCOV.
2932         * libgov.c: Move to ../libgcc.
2934 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2936         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
2938 2011-07-08  Martin Jambor  <mjambor@suse.cz>
2940         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
2941         is too big for total scalarization.
2943 2011-07-07  Richard Henderson  <rth@redhat.com>
2945         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
2946         (DBX_DEBUGGING_INFO): Undef.
2948 2011-07-07  Richard Henderson  <rth@redhat.com>
2950         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
2951         Handle some opcodes specially for debugging.
2952         * print-rtl.c: Include dwarf2out.h
2953         (print_rtx): Handle NOTE_INSN_CFI.
2954         * Makefile.in (print-rtl.o): Update.
2956 2011-07-07  Richard Henderson  <rth@redhat.com>
2958         * tree-pass.h (pass_dwarf2_frame): Declare.
2959         * passes.c (init_optimization_passes): Add it.
2960         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
2961         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
2962         make static, do not call add_cfis_to_fde.
2963         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
2964         dwarf2out_frame_init): Merge into...
2965         (execute_dwarf2_frame): ... here.  New function.
2966         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
2967         saved_do_cfi_asm to a tri-state variable.
2968         (gate_dwarf2_frame, pass_dwarf2_frame): New.
2969         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
2970         if it has yet to be done.  Don't call dwarf2cfi_function_init.
2971         * dwarf2out.h, debug.h: Update decls.
2972         * final.c (final_start_function): Don't call
2973         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
2974         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
2975         * toplev.c (lang_dependent_init): Likewise.
2977 2011-07-07  Richard Henderson  <rth@redhat.com>
2979         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
2980         FDE_TABLE_INCREMENT): Replace with...
2981         (fde_vec): ... this, a new vector.
2982         (current_fde): Remove.  Replace all users with cfun->fde.
2983         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
2984         (size_of_aranges, dwarf2out_finish): Likewise.
2985         (dwarf2out_alloc_current_fde): Break out from ...
2986         (dwarf2out_begin_prologue): ... here.
2987         (dwarf2out_frame_init): Remove.
2988         * dwarf2cfi.c: Update all users of current_fde.
2989         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
2990         * dwarf2out.h: Update decls.
2991         (dw_fde_node): Add fde_index member.
2992         * function.h (struct function): Add fde member.
2994 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2995             Richard Henderson  <rth@redhat.com>
2997         * dwarf2cfi.c (add_cfi): Remove.
2998         (dwarf2out_cfi_label): Remove force argument.  Only generate the
2999         label name.
3000         (add_fde_cfi): Simplify the different code paths.
3001         (add_cie_cfi): New.
3002         (old_cfa, old_cfa_remember): New.
3003         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
3004         (last_reg_save_label): Remove.
3005         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
3006         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
3007         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
3008         dwarf2out_frame_debug_cfa_expression,
3009         dwarf2out_frame_debug_cfa_restore,
3010         dwarf2out_frame_debug_cfa_window_save,
3011         dwarf2out_frame_debug_expr): Remove label parameter.
3012         (cfi_label_required_p, add_cfis_to_fde): New.
3013         (dwarf2out_frame_debug_after_prologue): New.
3014         (dwarf2cfi_frame_init): Initialize old_cfa.
3015         (dwarf2out_frame_debug_restore_state): Likewise.
3016         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
3017         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
3018         * final.c (final_start_function): Call
3019         dwarf2out_frame_debug_after_prologue.
3021 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3022             Richard Henderson  <rth@redhat.com>
3024         * dwarf2cfi.c (cfi_insn): New.
3025         (dwarf2out_cfi_label): Don't emit cfi label here.
3026         (add_fde_cfi): Create a NOTE_INSN_CFI.
3027         (dwarf2out_frame_debug): Setup cfi_insn.
3028         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
3029         (dwarf2out_cfi_begin_epilogue): Make static.
3030         (dwarf2out_frame_debug_restore_state): Make static.
3031         * dwarf2out.c (output_cfi_directive): Make static.
3032         (dwarf2out_emit_cfi): New.
3033         * dwarf2out.h: Update.
3034         * final.c (final): Remove CFI notes.
3035         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
3036         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
3037         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
3038         * insn-notes.def (NOTE_INSN_CFI): New.
3039         (NOTE_INSN_CFI_LABEL): New.
3040         * rtl.h (union rtunion_def): Add rt_cfi member.
3041         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
3043 2011-07-07  Richard Henderson  <rth@redhat.com>
3045         * dwarf2cfi.c: New file.
3046         * Makefile.in (OBJS): Add it.
3047         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
3048         * gengtype.c (open_base_files): Include dwarf2out.h.
3049         * coretypes.h (enum var_init_status): Move from ...
3050         * rtl.h: ... here.
3051         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
3052         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
3053         expand_builtin_dwarf_sp_column, init_return_column_size,
3054         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
3055         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
3056         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
3057         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
3058         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
3059         compute_barrier_args_size, dwarf2out_args_size,
3060         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
3061         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
3062         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
3063         queue_reg_save, dwarf2out_flush_queued_reg_saves,
3064         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
3065         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
3066         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
3067         dwarf2out_frame_debug_cfa_expression,
3068         dwarf2out_frame_debug_cfa_restore,
3069         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
3070         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
3071         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
3072         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
3073         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
3074         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
3075         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
3076         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
3077         dw_loc_descr_node): Move to dwarf2out.h.
3078         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
3079         mem_loc_descriptor): Export.
3080         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
3081         (dwarf2out_frame_init): Extract CIE generation code to
3082         dwarf2cfi_frame_init.
3084 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3086         PR target/49660
3087         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
3088         MASK_V8PLUS, remove commented out flag and reorder.
3090 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
3092         PR c/49644
3093         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
3094         one non-complex and one complex argument, call c_save_expr on both
3095         operands.
3097 2011-07-07  Martin Jambor  <mjambor@suse.cz>
3099         PR middle-end/49495
3100         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
3101         (verify_cgraph_node): Some functinality moved to
3102         verify_edge_corresponds_to_fndecl, call it.
3104 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3106         * config.gcc (*local*): Remove.
3107         * doc/install-old.texi: Don't mention local configurations.
3109 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
3111         PR debug/49522
3112         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
3113         referencing debug insns that have been reset.
3114         (dead_debug_insert_before): Don't assert reg is non-NULL,
3115         instead return immediately if it is NULL.
3117 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3119         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
3121 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3123         * hw-doloop.c: New file.
3124         * hw-doloop.h: New file.
3125         * Makefile.in (OBJS): Add hw-doloop.o.
3126         (hw-doloop.o): New rule.
3127         ($(obj_out_file)): Add hw-doloop.h dependency.
3128         * config/bfin/bfin.c: Include "hw-doloop.h".
3129         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
3130         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
3131         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
3132         type changed to hwloop_info.  Return bool, true if the loop was
3133         successfully optimized.  Remove code that was moved to
3134         hw-doloop.c, and adjust other parts.
3135         (hwloop_fail): New static function, containing parts that used
3136         to be in bfin_optimize_loop.
3137         (bfin_discover_loop, bfin_discover_loops, free_loops,
3138         bfin_reorder_loops): Remove.
3139         (hwloop_pattern_reg): New static function.
3140         (bfin_doloop_hooks): New variable.
3141         (bfin_reorg_loops): Remove most code, call reorg_loops.
3142         * config/bfin/bfin.md (doloop_end splitter): Also enable if
3143         loop counter is a memory_operand.
3145 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
3147         * config.gcc: Support --with-multilib-list for x86 Linux targets.
3149         * configure.ac: Mention x86-64 for --with-multilib-list.
3150         * configure: Regenerated.
3152         * config/i386/gnu-user64.h (SPEC_64): Support x32.
3153         (SPEC_32): Likewise.
3154         (ASM_SPEC): Likewise.
3155         (LINK_SPEC): Likewise.
3156         (TARGET_THREAD_SSP_OFFSET): Likewise.
3157         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
3158         (SPEC_X32): New.
3160         * config/i386/i386.h (TARGET_X32): New.
3161         (TARGET_LP64): New.
3162         (LONG_TYPE_SIZE): Likewise.
3163         (POINTER_SIZE): Likewise.
3164         (POINTERS_EXTEND_UNSIGNED): Likewise.
3165         (OPT_ARCH64): Support x32.
3166         (OPT_ARCH32): Likewise.
3168         * config/i386/i386.opt (mx32): New.
3170         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
3171         (GLIBC_DYNAMIC_LINKERX32): Likewise.
3172         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
3173         (GLIBC_DYNAMIC_LINKERX32): Likewise.
3175         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
3176         (BIONIC_DYNAMIC_LINKERX32): Likewise.
3177         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
3179         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
3181         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
3183         * doc/invoke.texi: Document -mx32.
3185 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
3187         * doc/invoke.texi (mwords-little-endian): Deprecate.
3188         * config/arm/arm.opt (mwords-little-endian): Likewise.
3189         * config/arm/arm.c (arm_option_override): Warn about the deprecation
3190         of -mwords-little-endian.
3192 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
3194         * reload1.c (choose_reload_regs): Use mode sizes to check whether
3195         an old reload register completely defines the required value.
3197 2011-07-07  Richard Guenther  <rguenther@suse.de>
3199         * fold-const.c (fold_unary_loc): Do not strip sign-changes
3200         for NEGATE_EXPR.
3202 2011-07-07  Richard Guenther  <rguenther@suse.de>
3204         * tree-vrp.c (simplify_conversion_using_ranges): New function.
3205         (simplify_stmt_using_ranges): Call it.
3207 2011-07-07  Kai Tietz  <ktietz@redhat.com>
3209         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
3210         (lookup_logical_inverted_value): Likewise.
3211         (simplify_bitwise_binary_1): Likewise.
3212         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
3214 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3216         * gcc.c (%[Spec]): Don't document.
3217         (struct spec_list): Update comment.
3218         (do_spec_1): Don't handle %[Spec].
3219         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
3221 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3223         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
3224         default based on TARGET_ASM_NAMED_SECTION.
3225         * common/common-target.def (have_named_sections): Default to true.
3226         * common/config/default-common.c: Don't include tm.h.
3227         * common/config/picochip/picochip-common.c
3228         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
3229         * common/config/m32c/m32c-common.c: Remove.
3230         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
3231         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3232         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3233         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3234         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3235         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3236         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3238 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
3240         PR middle-end/49640
3241         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
3242         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
3244 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3246         PR libmudflap/49550
3247         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
3249 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3251         PR target/39150
3252         * configure.ac (gcc_cv_as_hidden): Also accept
3253         x86_64-*-solaris2.1[0-9]*.
3254         (gcc_cv_as_cfi_directive): Likewise.
3255         (gcc_cv_as_comdat_group_group): Likewise.
3256         (set_have_as_tls): Likewise.
3257         * configure: Regenerate.
3258         * config.gcc (i[34567]86-*-solaris2*): Also handle
3259         x86_64-*-solaris2.1[0-9]*.
3260         * config.host (i[34567]86-*-solaris2*): Likewise.
3261         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
3262         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
3263         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
3264         (TARGET_LD_EMULATION): Use it.
3265         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
3266         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
3267         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
3268         (ASM_CPU64_DEFAULT_SPEC): Define.
3269         (ASM_CPU_SPEC): Use %(asm_cpu_default).
3270         (ASM_SPEC): Redefine.
3271         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
3272         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
3273         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
3274         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
3275         configuration.
3276         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
3278 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3280         * config/sol2.h (ASM_SPEC): Split into ...
3281         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
3282         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
3283         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
3284         (ASM_SPEC): Use ASM_SPEC_BASE.
3285         * config/sparc/sol2.h (ASM_SPEC): Redefine.
3287 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
3289         * config/avr/avr.md (*reload_insi): Change predicate #1 to
3290         const_int_operand.  Ditto for peep2 producing this insn.
3291         Add argument to output_reload_insisf call.
3292         (*movsi,*movsf): Add argument to output_movsisf call.
3293         (*reload_insf): New insn and new peep2 to produce it.
3294         * config/avr/avr-protos.h (output_movsisf): Change prototype.
3295         (output_reload_insisf): Change prototype.
3296         * config/avr/avr.c (avr_asm_len): New function.
3297         (output_reload_insisf): Rewrite.
3298         (output_movsisf): Change prototype.  output_reload_insisf for
3299         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
3300         (adjust_insn_length): Add argument to output_movsisf and
3301         output_reload_insisf call.
3303 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3305         * emit-rtl.c (paradoxical_subreg_p): New function.
3306         * rtl.h (paradoxical_subreg_p): Declare.
3307         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
3308         apply_distributive_law, simplify_comparison, simplify_set): Use it.
3309         * cse.c (record_jump_cond, cse_insn): Likewise.
3310         * expr.c (force_operand): Likewise.
3311         * rtlanal.c (num_sign_bit_copies1): Likewise.
3312         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
3313         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
3314         (push_reload): Use precision to check for paradoxical subregs.
3315         * expmed.c (extract_bit_field_1): Likewise.
3317         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
3318         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
3319         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
3320         simplify_set, simplify_logical, expand_compound_operation,
3321         make_extraction, force_to_mode, if_then_else_cond, extended_count,
3322         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
3323         record_value_for_reg): Likewise.
3324         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
3325         * simplify-rtx. c (simplify_unary_operation_1,
3326         simplify_binary_operation_1, simplify_const_relational_operation):
3327         Likewise.
3329         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
3330         instead of GET_MODE_BITSIZE where appropriate.
3331         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
3332         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
3333         init_num_sign_bit_copies_in_rep): Likewise.
3334         * cse.c (fold_rtx, cse_insn): Likewise.
3335         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
3336         * simplify-rtx.c (simplify_unary_operation_1,
3337         simplify_const_unary_operation, simplify_binary_operation_1,
3338         simplify_const_binary_operation, simplify_ternary_operation,
3339         simplify_const_relational_operation, simplify_subreg): Likewise.
3340         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
3341         simplify_if_then_else, simplify_set, expand_compound_operation,
3342         expand_field_assignment, make_extraction, if_then_else_cond,
3343         make_compound_operation, force_to_mode, make_field_assignment,
3344         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
3345         extended_count, try_widen_shift_mode, simplify_shift_const_1,
3346         simplify_comparison, record_promoted_value, simplify_compare_const,
3347         record_dead_and_set_regs_1): Likewise.
3349         Revert:
3350         * simplify-rtx.c (simplify_const_binary_operation): Use the
3351         shift_truncation_mask hook instead of performing modulo by width.
3352         Compare against mode precision, not bitsize.
3353         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
3354         Use shift_truncation_mask instead of constructing the value manually.
3356 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
3358         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
3359         declaration.
3360         (rs6000_save_toc_in_prologue_p): Ditto.
3362         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
3363         up the static chain (r11) during indirect function calls.
3364         (-msave-toc-indirect): New undocumented debug switch.
3366         * config/rs6000/rs6000.c (struct machine_function): Add
3367         save_toc_in_prologue field to note whether the prologue needs to
3368         save the TOC value in the reserved stack location.
3369         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
3370         to save the TOC in the prologue, do so.
3371         (rs6000_trampoline_init): Don't allow creating AIX style
3372         trampolines if -mno-r11 is in effect.
3373         (rs6000_call_indirect_aix): New function to create AIX style
3374         indirect calls, adding support for -mno-r11 to suppress loading
3375         the static chain, and saving the TOC in the prologue instead of
3376         the call body.
3377         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
3378         TOC in the prologue.
3380         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
3381         register numbers.
3382         (TOC_REGNUM): Ditto.
3383         (STATIC_CHAIN_REGNUM): Ditto.
3384         (ARG_POINTER_REGNUM): Ditto.
3385         (SFP_REGNO): Delete, unused.
3386         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
3387         function descriptor offsets.
3388         (TOC_SAVE_OFFSET_64BIT): Ditto.
3389         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
3390         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
3391         (AIX_FUNC_DESC_SC_32BIT): Ditto.
3392         (AIX_FUNC_DESC_SC_64BIT): Ditto.
3393         (ptrload): New mode attribute for the appropriate load of a pointer.
3394         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
3395         (call_indirect_aix64): Ditto.
3396         (call_value_indirect_aix32): Ditto.
3397         (call_value_indirect_aix64): Ditto.
3398         (call_indirect_nonlocal_aix32_internal): Ditto.
3399         (call_indirect_nonlocal_aix32): Ditto.
3400         (call_indirect_nonlocal_aix64_internal): Ditto.
3401         (call_indirect_nonlocal_aix64): Ditto.
3402         (call): Rewrite AIX indirect function calls.  Add support for
3403         eliminating the static chain, and for moving the save of the TOC
3404         to the function prologue.
3405         (call_value): Ditto.
3406         (call_indirect_aix<ptrsize>): Ditto.
3407         (call_indirect_aix<ptrsize>_internal): Ditto.
3408         (call_indirect_aix<ptrsize>_internal2): Ditto.
3409         (call_indirect_aix<ptrsize>_nor11): Ditto.
3410         (call_value_indirect_aix<ptrsize>): Ditto.
3411         (call_value_indirect_aix<ptrsize>_internal): Ditto.
3412         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3413         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3414         (call_nonlocal_aix32): Relocate in the rs6000.md file.
3415         (call_nonlocal_aix64): Ditto.
3417         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
3418         -mno-r11 documentation.
3420 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
3422         PR other/49658
3423         * doc/extend.texi (Compound Literals): Fix typo.
3425 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
3427         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
3429 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
3431         * configure.ac (plugin-version.h): Generate
3432         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
3433         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
3434         macros.
3436         * configure: Regenerate.
3438         * doc/plugins.texi (Building GCC plugins): Mention
3439         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
3441 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
3443         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
3444         * combine.c (make_extraction, gen_lowpart_or_truncate,
3445         apply_distributive_law, simplify_comparison,
3446         reg_truncated_to_mode, record_truncated_value): Use it.
3447         * cse.c (notreg_cost): Likewise.
3448         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
3449         * expr.c (convert_move, convert_modes): Likewise.
3450         * optabs.c (expand_binop, expand_unop): Likewise.
3451         * postreload.c (move2add_last_label): Likewise.
3452         * regmove.c (optimize_reg_copy_3): Likewise.
3453         * rtlhooks.c (gen_lowpart_general): Likewise.
3454         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3456 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
3458         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
3460 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
3462         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
3463         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
3464         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
3465         (simplify_const_unary_operation, simplify_binary_operation_1,
3466         simplify_const_binary_operation, simplify_const_relational_operation):
3467         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
3468         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
3469         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
3470         simplify_shift_const_1, simplify_comparison): Likewise.
3471         * expr.c (convert_modes): Likewise.
3472         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
3473         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
3474         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
3476         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
3478 2011-07-06  Richard Guenther  <rguenther@suse.de>
3480         PR tree-optimization/49645
3481         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
3482         register variables.
3483         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
3484         in type qualification here ...
3485         (copy_reference_ops_from_ref): ... not here.
3486         (vn_reference_lookup_3): ... or here.
3487         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
3488         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
3490 2011-07-06  Ian Lance Taylor  <iant@google.com>
3492         * doc/install.texi (Configuration): It's
3493         --enable-gnu-indirect-function, not --enable-indirect-function.
3495 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
3497         * simplify-rtx.c (simplify_const_binary_operation): Use the
3498         shift_truncation_mask hook instead of performing modulo by width.
3499         Compare against mode precision, not bitsize.
3500         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
3501         Use shift_truncation_mask instead of constructing the value manually.
3503 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
3505         PR middle-end/47383
3506         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
3507         address computation and convert to address_mode if needed.
3509 2011-07-06  Richard Guenther  <rguenther@suse.de>
3511         * tree.c (build_common_tree_nodes_2): Merge with
3512         build_common_tree_nodes.
3513         * tree.h (build_common_tree_nodes): Adjust prototype.
3514         (build_common_tree_nodes_2): Remove.
3515         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
3516         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
3518 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
3520         PR tree-optimization/49618
3521         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
3522         t recurse on the decl.
3523         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
3524         return true if expr isn't known to be defined in current
3525         TU or some other LTO partition.
3527 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
3529         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
3530         override CASE_VALUES_THRESHOLD.
3532         * stmt.c (toplevel): Include params.h.
3533         (case_values_threshold): Use the --param case-values-threshold
3534         value if non-zero, otherwise use machine dependent value.
3535         (expand_case): Use case_values_threshold.
3537         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
3539         * doc/invoke.texi (--param case-values-threshold): Document.
3541 2011-07-05  Richard Henderson  <rth@redhat.com>
3543         * dwarf2out.c (dwarf2out_cfi_label): Make static.
3544         (dwarf2out_flush_queued_reg_saves): Make static.
3545         (dwarf2out_reg_save): Remove.
3546         (dwarf2out_return_save): Remove.
3547         (dwarf2out_return_reg): Remove.
3548         (dwarf2out_reg_save_reg): Remove.
3549         (dwarf2out_def_cfa): Merge into ...
3550         (dwarf2out_frame_init): ... here.
3551         * dwarf2out.h, tree.h: Remove declarations as necessary.
3553 2011-07-05  Richard Henderson  <rth@redhat.com>
3555         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
3556         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3557         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
3558         the alloc insn.
3560         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
3561         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
3562         (process_epilogue): Don't call dwarf2out_def_cfa.
3564         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
3565         indicate the return address save.
3566         (process_cfa_register): Likewise.
3568         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
3569         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
3571         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
3572         for ar.pfs save at alloc insn.
3574 2011-07-05  Richard Henderson  <rth@redhat.com>
3576         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
3577         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3578         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
3579         stack pointer save.
3580         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
3581         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
3582         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
3583         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
3585 2011-07-05  Richard Henderson  <rth@redhat.com>
3587         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
3588         VUNSPEC_* constants here instead of via define_constants.
3589         (VUNSPEC_PEM): New constant.
3590         (procedure_entry_mask): New insn.
3591         (prologue): New expander.
3592         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
3593         (vax_expand_prologue): Rename from vax_output_function_prologue;
3594         emit rtl instead of text.
3595         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
3596         (print_operand): Add 'x' prefix.
3598 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3600         PR middle-end/47715
3601         * calls.c (precompute_register_parameters): Promote the function
3602         argument before checking non-legitimate constant.
3604 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
3606         PR tree-optimization/47654
3607         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
3608         (lst_do_strip_mine_loop): Return an int.
3609         (lst_do_strip_mine): Same.
3610         (scop_do_strip_mine): Same.
3611         (scop_do_block): Loop blocking should strip-mine at least two loops.
3612         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
3613         (scop_do_interchange): Same.
3614         * graphite-poly.h (scop_do_interchange): Update declaration.
3615         (scop_do_strip_mine): Same.
3617 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
3619         * graphite-clast-to-gimple.c (precision_for_value): Removed.
3620         (precision_for_interval): Removed.
3621         (gcc_type_for_interval): Use mpz_sizeinbase.
3623 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
3625         * graphite-ppl.h (value_max): Correct computation of max.
3627 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
3629         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
3631 2011-07-05  Richard Guenther  <rguenther@suse.de>
3633         * c-decl.c (c_init_decl_processing): Defer building common
3634         tree nodes to c_common_nodes_and_builtins.
3636 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
3638         PR tree-optimization/49580
3639         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
3640         the loop's number of iterations.
3641         * tree-parloops.c (transform_to_exit_first_loop): Add the
3642         handling of the loop's number of iterations before the call
3643         to gimple_duplicate_sese_tail.
3644         Insert the stmt caclculating the new rhs of the loop's
3645         condition stmt to the preheader instead of iters_bb.
3647 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3649         PR rtl-optimization/47449
3650         * fwprop.c (forward_propagate_subreg): Don't propagate hard
3651         register nor zero/sign extended hard register.
3653 2011-07-05  Richard Guenther  <rguenther@suse.de>
3655         PR tree-optimization/49518
3656         PR tree-optimization/49628
3657         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
3658         irrelevant and invariant data-references.
3659         (vect_analyze_data_ref_access): For invariant loads clear the
3660         group association.
3662 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
3664         PR rtl-optimization/49619
3665         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
3666         pass VOIDmode as op0_mode to recursive call, and return temp even
3667         when different from tor, just if it is not IOR of the original
3668         PLUS arguments.
3670         PR rtl-optimization/49472
3671         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
3672         negating MULT, negate the second operand instead of first.
3673         (simplify_binary_operation_1) <case MULT>: If one operand is
3674         a NEG and the other is MULT, don't attempt to optimize by negation
3675         of the MULT operand if it only moves the NEG operation around.
3677         PR debug/49602
3678         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
3679         get_current_def return value if it can't be trusted to be
3680         the current value of the variable in the current bb.
3682 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
3684         PR target/49600
3685         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
3686         general register to memory for !TARGET_INTER_UNIT_MOVES.
3688 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
3690         PR target/44643
3691         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
3692         instead of TREE_READONLY.
3694 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
3696         * doc/extend.texi (AVR Built-in Functions): Update documentation
3697         of __builtin_avr_fmul*.
3698         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
3699         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
3700         * config/avr/avr.md (fmul): Rename to fmul_insn.
3701         (fmuls): Rename to fmuls_insn.
3702         (fmulsu): Rename to fmulsu_insn.
3703         (fmul,fmuls,fmulsu): New expander.
3704         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
3705         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
3706         * config/avr/libgcc.S (__fmul): New function.
3707         (__fmuls): New function.
3708         (__fmulsu,__fmulsu_exit): New function.
3710 2011-07-04  Richard Guenther  <rguenther@suse.de>
3712         PR tree-optimization/49615
3713         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
3714         basic-block index check.
3716 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
3718         * longlong.h (count_leading_zeros, count_trailing_zeros,
3719         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
3720         resp. 64.
3722 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
3724         PR tree-optimization/49610
3725         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
3726         a basic block.
3728 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
3729             Olivier Hainque  <hainque@adacore.com>
3730             Nicolas Setton  <setton@adacore.com>
3732         * tree.h (TYPE_ARTIFICIAL): New flag.
3733         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
3734         the DIE of the type if it is artificial.
3735         (gen_array_type_die): Likewise.
3736         (gen_enumeration_type_die): Likewise.
3737         (gen_struct_or_union_type_die): Likewise.
3738         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
3739         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
3741 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
3743         * tree-object-size.c (pass_through_call): Handle
3744         BUILT_IN_ASSUME_ALIGNED.
3746 2011-07-01  Martin Jambor  <mjambor@suse.cz>
3748         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
3750 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
3752         PR middle-end/48016
3753         * explow.c (update_nonlocal_goto_save_area): Use proper mode
3754         for stack save area.
3755         * function.c (expand_function_start): Likewise.
3757 2011-07-01  Richard Guenther  <rguenther@suse.de>
3759         PR middle-end/49596
3760         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
3761         may have unknown refs.
3763 2011-07-01  Kai Tietz  <ktietz@redhat.com>
3765         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
3767 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3769         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
3770         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
3771         (Specific, mips-sgi-irix6): Likewise.
3773 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3775         PR libmudflap/49549
3776         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
3778 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
3780         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
3781         [idx]= and [idx1 ... idx2]= before initializers if needed for
3782         array initializers.
3784 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
3786         * config.gcc (score-*-elf): Remove score7.o.
3787         * config/score/t-score-elf: Likewise.
3788         * config/score/score.c: Merge score7 to score.c and
3789         remove forwarding functions.
3790         * config/score/score7.c: Deleted.
3791         * config/score/score7.h: Deleted.
3793 2011-07-01  Richard Guenther  <rguenther@suse.de>
3795         PR tree-optimization/49603
3796         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
3798 2011-06-30  Martin Jambor  <mjambor@suse.cz>
3800         * tree-sra.c (struct access): Rename total_scalarization to
3801         grp_total_scalarization
3802         (completely_scalarize_var): New function.
3803         (sort_and_splice_var_accesses): Set total_scalarization in the
3804         representative access.
3805         (analyze_access_subtree): Propagate total scalarization accross the
3806         tree, no holes in totally scalarized trees, simplify coverage
3807         computation.
3808         (analyze_all_variable_accesses): Call completely_scalarize_var instead
3809         of completely_scalarize_record.
3811 2011-06-30  Richard Henderson  <rth@redhat.com>
3813         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
3814         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
3815         * config/i386/i386.c: Don't include dwarf2out.h.
3816         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
3817         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
3818         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
3819         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
3820         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
3822 2011-06-30  Richard Henderson  <rth@redhat.com>
3824         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
3825         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3826         * final.c (final_scan_insn): Look for it, and invoke
3827         dwarf2out_frame_debug before the insn if found.
3829 2011-06-30  Richard Henderson  <rth@redhat.com>
3831         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
3832         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
3834 2011-06-30  Richard Henderson  <rth@redhat.com>
3836         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
3837         Define a vector of this type.
3838         (regs_saved_in_regs): Use a VEC.
3839         (num_regs_saved_in_regs): Remove.
3840         (compare_reg_or_pc): New.
3841         (record_reg_saved_in_reg): Split out from...
3842         (dwarf2out_flush_queued_reg_saves): ... here.
3843         (clobbers_queued_reg_save): Update for VEC.
3844         (reg_saved_in): Likewise.
3845         (dwarf2out_frame_debug_init): Likewise.
3846         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
3847         (dwarf2out_frame_debug_cfa_register): Likewise.
3849 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3851         PR tree-optimization/49572
3852         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
3853         type of the RHS instead of that of the LHS for the expression type.
3855 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3857         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
3858         unconditionally.
3860 2011-06-30  Richard Guenther  <rguenther@suse.de>
3862         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
3863         * tree-ssa-structalias.c (create_variable_info_for): Do not
3864         add initial constraints for non-var-decls.  Properly handle
3865         globals in other ltrans partitions.
3866         (intra_create_variable_infos): Manually create constraints for
3867         the fake no-alias parameter.
3868         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
3869         and assert there are no clones.
3871 2011-06-30  Richard Guenther  <rguenther@suse.de>
3873         PR tree-optimization/46787
3874         * tree-data-ref.c (dr_address_invariant_p): Remove.
3875         (find_data_references_in_stmt): Invariant accesses are ok now.
3876         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
3877         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
3878         invariant loads.
3880 2011-06-30  Martin Jambor  <mjambor@suse.cz>
3882         PR tree-optimization/49094
3883         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
3884         (build_accesses_from_assign): Use it.
3886 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
3888         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
3889         handling of BUILT_IN_ASSUME_ALIGNED.
3891         PR debug/49364
3892         * dwarf2out.c (output_abbrev_section): Don't return early
3893         if abbrev_die_table_in_use is 1.
3894         (dwarf2out_finish): Instead don't call output_abbrev_section
3895         nor emit abbrev_section_label in that case.
3897 2011-06-30  Nick Clifton  <nickc@redhat.com>
3899         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
3900         for the V850E.
3902 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
3904         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
3905         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
3907 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
3909         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3910         both pattern and original statements if necessary.
3911         (vect_transform_loop): Likewise.
3912         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
3913         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
3914         Mark the pattern statement only if the original statement doesn't
3915         have its own uses.
3916         (process_use): Call vect_mark_relevant with additional parameter.
3917         (vect_mark_stmts_to_be_vectorized): Likewise.
3918         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
3919         (vect_analyze_stmt): Handle both pattern and original statements
3920         if necessary.
3921         (vect_transform_stmt): Don't store vectorized pattern statement
3922         in the original statement.
3923         (vect_is_simple_use_1): Use related pattern statement only if the
3924         original statement is irrelevant.
3925         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3927 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
3929         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
3930         option.
3931         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
3932         entry.
3933         (TARGET_AVX128_OPTIMAL): New definition.
3934         * config/i386/i386.c (initial_ix86_tune_features): Initialize
3935         X86_TUNE_AVX128_OPTIMAL entry.
3936         (ix86_option_override_internal): Enable the generation
3937         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
3938         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
3939         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
3941 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3943         PR tree-optimization/49539
3944         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
3945         names by means of stmt_references_abnormal_ssa_name.
3946         (associate_plusminus): Call can_propagate_from before propagating
3947         from definition statements.
3948         (ssa_forward_propagate_and_combine): Remove superfluous newline.
3950 2011-06-29  Richard Guenther  <rguenther@suse.de>
3952         * doc/invoke.texi: Document -scev dump modifier.
3953         * tree-pass.h (TDF_SCEV): New dump flag.
3954         * tree-dump.c (dump_option_value_in): Add scev.
3955         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
3956         * tree-scalar-evolution.c: Likewise.
3958 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
3960         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
3961         (cxa_type_match): Correct declaration.
3962         (__gnu_unwind_pr_common): Reconstruct additional indirection
3963         when __cxa_type_match returns succeeded_with_ptr_to_base.
3965 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3967         PR rtl-optimization/49114
3968         * reload.c (struct replacement): Remove SUBREG_LOC member.
3969         (push_reload): Do not set it.
3970         (push_replacement): Likewise.
3971         (subst_reload): Remove dead code.
3972         (copy_replacements): Remove assertion.
3973         (copy_replacements_1): Do not handle SUBREG_LOC.
3974         (move_replacements): Likewise.
3975         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
3976         Detect subregs via recursive descent instead of via SUBREG_LOC.
3978 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
3980         * config/avr/avr.c (avr_encode_section_info): Dispatch to
3981         default_encode_section_info.
3983 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
3985         PR tree-optimization/49545
3986         * builtins.c (get_object_alignment_1): Update function comment.
3987         Do not use DECL_ALIGN for functions, but test
3988         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
3989         * fold-const.c (get_pointer_modulus_and_residue): Don't check
3990         for functions here.
3991         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3993 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
3995         PR debug/49567
3996         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
3997         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
3999 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
4001         PR target/34734
4002         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
4003         about uninitialized data attributed 'progmem' from here...
4004         (avr_encode_section_info): ...to this new function.
4005         (TARGET_ENCODE_SECTION_INFO): New define.
4006         (avr_section_type_flags): For data in ".progmem.data", remove
4007         section flag SECTION_WRITE.
4009 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
4011         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
4012         _xmulhisi3_exit.
4013         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
4014         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
4015         (__umulhisi3): Ditto.
4016         * config/avr/avr.md (mulhisi3): New insn expender.
4017         (umulhisi3): New insn expender.
4018         (*mulhisi3_call): New insn.
4019         (*umulhisi3_call): New insn.
4021 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
4023         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
4025 2011-06-28  Richard Henderson  <rth@redhat.com>
4027         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
4028         all code and arguments that handled pushes.  Update all callers.
4030 2011-06-28  Richard Henderson  <rth@redhat.com>
4032         * config/arm/arm.c (arm_output_function_prologue): Don't call
4033         thumb1_output_function_prologue.
4034         (arm_expand_prologue): Avoid dead store.
4035         (number_of_first_bit_set): Use ctz_hwi.
4036         (thumb1_emit_multi_reg_push): New.
4037         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
4038         to emit the entire prologue as rtl.
4039         (thumb1_output_interwork): Split out from
4040         thumb1_output_function_prologue.
4041         (thumb1_output_function_prologue): Remove.
4042         (arm_attr_length_push_multi): Handle thumb1.
4043         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
4044         (prologue_thumb1_interwork): New.
4045         (*push_multi): Allow thumb1; use push_mult_memory_operand.
4046         * config/arm/predicates.md (push_mult_memory_operand): New.
4048 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
4050         * config/sparc/sync.md (*stbar): Delete.
4051         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
4053 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
4055         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
4057 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4059         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
4060         (TARGET_64BIT_DEFAULT): Define.
4061         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
4062         of tm_file.
4063         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
4065 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
4067         * common.opt (in_lto_p): New Variable entry.
4068         * flags.h (in_lto_p): Move to common.opt.
4069         * gcc.c: Include params.h.
4070         (set_option_handlers): Also use common_handle_option and
4071         target_handle_option.
4072         (main): Call global_init_params, finish_params and init_options_struct.
4073         * opts.c (debug_type_names): Move from toplev.c.
4074         (print_filtered_help): Access quiet_flag through opts pointer.
4075         (common_handle_option): Return early in the driver for some options.
4076         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
4077         opts pointer.
4078         * toplev.c (in_lto_p): Move to common.opt.
4079         (debug_type_names): Move to opts.c.
4080         * Makefile.in (OBJS): Remove opts.o.
4081         (OBJS-libcommon-target): Add opts.o.
4082         (gcc.o): Update dependencies.
4084 2011-06-28  Kai Tietz  <ktietz@redhat.com>
4086         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
4088 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4090         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
4091         with '=' constraint modifier.
4092         (*divdf3_vfp): Likewise.
4093         ("*mulsf3_vfp"): Likewise.
4094         ("*muldf3_vfp"): Likewise.
4095         ("*mulsf3negsf_vfp"): Likewise.
4096         ("*muldf3negdf_vfp"): Likewise.
4098 2011-06-28  Nick Clifton  <nickc@redhat.com>
4100         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
4101         relaxation when performing an incremental link.
4103 2011-06-28  Kai Tietz  <ktietz@redhat.com>
4105         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
4106         within BB from last to first.
4108 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
4110         * genattr-common.c: New.  Based on genattr.c.
4111         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
4112         (MOSTLYCLEANFILES): Add insn-attr-common.h.
4113         (opts.o): Update dependencies.
4114         (.PRECIOUS): Add insn-attr-common.h.
4115         (simple_rtl_generated_h): Add insn-attr-common.h.
4116         (build/genattr-common.o): New.
4117         (genprogrtl): Add attr-common.
4118         * genattr.c (main): Include insn-attr-common.h.  Don't generate
4119         definitions of DELAY_SLOTS or INSN_SCHEDULING.
4120         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
4122 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
4124         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
4125         avr-*-* and avr-*-rtems* targets.
4127         * config/avr/elf.h: New file.
4128         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
4129         (TARGET_ASM_SELECT_SECTION): Define.
4130         (INIT_SECTION_ASM_OP): Undefine.
4131         (FINI_SECTION_ASM_OP): Undefine.
4132         (READONLY_DATA_SECTION_ASM_OP): Undefine.
4133         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
4134         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
4135         * config/avr/avr.h:
4136         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
4137         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
4138         (MAX_OFILE_ALIGNMENT): Move to elf.h.
4139         (STRING_LIMIT): Move to elf.h.
4140         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
4141         (ASM_DECLARE_OBJECT_NAME): Remove.
4142         (ESCAPES): Remove.
4143         (ASM_OUTPUT_SKIP): Remove.
4144         (DWARF2_DEBUGGING_INFO): Remove.
4145         (OBJECT_FORMAT_ELF): Remove.
4146         (USER_LABEL_PREFIX): Remove.
4147         (ASM_OUTPUT_EXTERNAL): Remove.
4148         (ASM_OUTPUT_ASCII): Remove.
4149         (TYPE_ASM_OP): Remove.
4150         (SIZE_ASM_OP): Remove.
4151         (WEAK_ASM_OP): Remove.
4152         (STRING_ASM_OP): Remove.
4153         (SET_ASM_OP): Remove.
4154         (ASM_WEAKEN_LABEL): Remove.
4155         (TYPE_OPERAND_FMT): Remove.
4156         (ASM_DECLARE_FUNCTION_SIZE): Remove.
4157         (ASM_FINISH_DECLARE_OBJECT): Remove.
4158         (NO_DOLLAR_IN_LABEL): Remove.
4159         (ASM_GENERATE_INTERNAL_LABEL): Remove.
4160         (ASM_OUTPUT_CASE_LABEL): Remove.
4161         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
4162         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
4163         (gas_output_ascii): Remove.
4164         (gas_output_limited_string): Remove.
4165         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
4166         * config/avr/avr-protos.h
4167         (gas_output_ascii): Remove prototye.
4168         (gas_output_limited_string): Remove prototype.
4170 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
4172         PR target/48637
4173         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
4174         asm operands.
4176 2011-06-27  Jan Hubicka  <jh@suse.cz>
4178         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
4179         node instead of references in node.
4181 2011-06-27  Richard Henderson  <rth@redhat.com>
4183         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
4184         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
4185         inside ifdef.
4187 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
4189         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
4191         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
4192         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
4193         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
4194         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
4195         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
4196         (evaluate_stmt, execute_fold_all_builtins): Handle
4197         BUILT_IN_ASSUME_ALIGNED.
4198         * tree-ssa-dce.c (propagate_necessity): Likewise.
4199         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4200         call_may_clobber_ref_p_1): Likewise.
4201         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
4202         (expand_builtin_assume_aligned): New function.
4203         * doc/extend.texi (__builtin_assume_aligned): Document.
4205         PR debug/49544
4206         * cselib.c (promote_debug_loc): If cselib_preserve_constants
4207         and l has two DEBUG_INSN owned locs instead of just one, adjust
4208         the second location's setting_insn too.
4210 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4212         PR libmudflap/38738
4213         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
4215 2011-06-27  Nick Clifton  <nickc@redhat.com>
4217         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
4218         bit position of highest bit set into a count of the high zero bits.
4220 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4222         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
4224 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4226         PR lto/48492
4227         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
4228         to a NULL parent.
4230 2011-06-27  Richard Guenther  <rguenther@suse.de>
4232         PR tree-optimization/49394
4233         * passes.c (execute_one_pass): Restore current_pass after
4234         applying IPA transforms.
4236 2011-06-27  Kai Tietz  <ktietz@redhat.com>
4238         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
4239         out of type precision after operation.
4240         (find_bswap): Take for limit value the integer auto-promotion
4241         into account.
4243 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4245         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
4246         forward scan as well.
4248 2011-06-27  Tristan Gingold  <gingold@adacore.com>
4250         PR target/44241
4251         * config/vms/vms-protos.h: New file.
4252         * config/vms/vms-crtlmap.map: New file.
4253         * config/vms/vms.c: New file.
4254         * config/vms/make-crtlmap.awk: New file.
4255         * config/vms/vms-crtl.h: File removed.
4256         * config/vms/vms-crtl-64.h: File removed.
4257         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
4258         * config/alpha/vms64.h: Do not include vms-crtl-64.h
4259         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
4260         clear some builtins on VMS.  Calls vms_patch_builtins.
4261         (avms_asm_output_external): Remove.
4262         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
4263         (struct crtl_name_spec): Remove
4264         (DO_CTRL_NAMES): Remove.
4265         * config/ia64/vms.h (struct crtl_name_spec): Remove
4266         (DO_CTRL_NAMES): Remove.
4267         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
4268         clear some builtins on VMS.  Calls vms_patch_builtins.
4269         (ia64_asm_output_external): Remove DO_CRTL_NAME.
4270         * config/ia64/vms64.h: Do not include vms-crtl-64.h
4271         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
4273 2011-06-27  Tristan Gingold  <gingold@adacore.com>
4275         * config/alpha/alpha.c (alpha_end_function): Always generate .end
4276         directive on VMS.
4278 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4280         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
4281         the function receives nonlocal gotos.
4283 2011-06-27  Richard Guenther  <rguenther@suse.de>
4285         PR tree-optimization/49536
4286         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
4287         For non-scalar inner types use a scalar type according to
4288         the scalar inner mode.
4290 2011-06-27  Richard Guenther  <rguenther@suse.de>
4292         PR tree-optimization/49365
4293         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
4295 2011-06-27  Richard Guenther  <rguenther@suse.de>
4297         PR tree-optimization/49169
4298         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
4299         the alignment of function decls.
4301 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
4303         PR target/47997
4304         * config/darwin.c (darwin_mergeable_string_section): Place string
4305         constants in '.cstring' rather than '.const' when CF/NSStrings are
4306         active.
4308 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4310         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
4311         (emit_save_register_window): Likewise.
4312         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
4313         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
4314         Swap back %o7/%i7 in register naming.
4316 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
4318         PR driver/49371
4319         * config/darwin.c (darwin_override_options): Improve warning when
4320         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
4321         is given with fpie/fPIE.
4322         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
4323         * config/darwin9.h (PIE_SPEC): New.
4325 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
4327         * timevar.c (timevar_print): Increase width for display of timevar
4328         name.
4330 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
4332         PR c++/46400
4333         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
4334         instead of TYPE_CHAIN for chain_next for types.
4336 2011-06-24  Richard Henderson  <rth@redhat.com>
4338         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
4339         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
4340         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
4341         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
4342         (sparc_flat_expand_prologue): Emit individual instructions
4343         instead of one of the above.
4345 2011-06-24  Easwaran Raman  <eraman@google.com>
4347         PR rtl-optimization/49429
4348         PR target/49454
4349         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
4350         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
4351         used to copy y into x.
4352         * calls.c (initialize_argument_information): Mark
4353         an argument addressable if it is passed by invisible reference.
4354         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
4355         if it is passed by reference.
4357 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
4359         PR rtl-optimization/49504
4360         * rtlanal.c (nonzero_bits1): Properly handle addition or
4361         subtraction of a pointer in Pmode if pointers extend unsigned.
4362         (num_sign_bit_copies1): Likewise.
4364 2011-06-24  Martin Jambor  <mjambor@suse.cz>
4366         PR tree-optimizations/49516
4367         * tree-sra.c (sra_modify_assign): Choose the safe path for
4368         aggregate copies if we also did scalar replacements.
4370 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4372         PR target/49335
4373         * config/arm/predicates.md (add_operator): New.
4374         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
4376 2011-06-24  Andi Kleen  <ak@linux.intel.com>
4378         * tree-sra.c (type_internals_preclude_sra_p): Add msg
4379         parameter. Split up ifs and report reason in *msg.
4380         (reject): Add.
4381         (find_var_candiate): Add msg variable.
4382         Split up ifs and report reason to reject.
4383         (find_param_candidates): Add msg variable.
4384         Pass msg to type_internals_preclude_sra_p.
4386 2011-06-23  Jeff Law  <law@redhat.com>
4388         PR middle-end/48770
4389         * reload.h (reload): Change to return a bool.
4390         * ira.c (ira): If requested by reload, run a fast DCE pass after
4391         reload has completed.  Fix comment typo.
4392         * reload1.c (need_dce): New file scoped static.
4393         (reload): Set reload_completed here.  Return whether or not a DCE
4394         pass after reload is needed.
4395         (delete_dead_insn): Set need_dce as needed.
4397         PR middle-end/49465
4398         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
4399         to detect threading through joiner block.  If there was already
4400         an edge to the new target, then do not change the PHI nodes.
4402 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
4404         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
4405         get_pointer_alignment to see if base isn't sufficiently aligned.
4407 2011-06-23  Jan Hubicka  <jh@suse.cz>
4409         PR tree-optimize/49373
4410         * tree-pass.h (all_late_ipa_passes): Declare.
4411         * cgraphunit.c (init_lowered_empty_function): Fix properties.
4412         (cgraph_optimize): Execute late passes; remove unreachable funcions
4413         after materialization.
4414         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
4415         LTOing.
4416         * passes.c (all_late_ipa_passes): Declare.
4417         (dump_passes, register_pass): Handle late ipa passes.
4418         (init_optimization_passes): Move ipa_pta to late passes; schedule
4419         fixup_cfg at beggining of all_passes.
4420         (apply_ipa_transforms): New function.
4421         (execute_one_pass): When doing simple ipa pass, apply all transforms.
4423 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
4425         * params.c: Include common/common-target.h.  Don't include tm.h.
4426         (lang_independent_params): Move from toplev.c.
4427         (global_init_params): New.
4428         * params.h (global_init_params): Declare.
4429         * target.def (default_params): Move to common-target.def.
4430         * toplev.c (lang_independent_options): Remove.
4431         (lang_independent_params): Move to params.c.
4432         (general_init): Use global_init_params.
4433         * common/common-target.def (option_default_params): Move from
4434         target.def.
4435         * common/config/ia64/ia64-common.c: Include params.h.
4436         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4437         from ia64.c.
4438         * common/config/rs6000/rs6000-common.c: Include params.h.
4439         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4440         from rs6000.c.
4441         * common/config/sh/sh-common.c: Include params.h.
4442         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4443         from sh.c.
4444         * common/config/spu/spu-common.c: Include params.h.
4445         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4446         from spu.c.
4447         * config/ia64/ia64.c (ia64_option_default_params,
4448         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
4449         * config/rs6000/rs6000.c (rs6000_option_default_params,
4450         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
4451         * config/sh/sh.c (sh_option_default_params,
4452         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
4453         * config/spu/spu.c (spu_option_default_params,
4454         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
4455         * Makefile.in (OBJS): Remove params.o.
4456         (OBJS-libcommon-target): Add params.o.
4457         (params.o, $(common_out_object_file)): Update dependencies.
4458         * doc/tm.texi: Regenerate.
4460 2011-06-23  Alan Modra  <amodra@gmail.com>
4462         PR bootstrap/49383
4463         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
4464         invocation for 2011-06-09 changes.
4466 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
4468         PR libgomp/49490
4469         * omp-low.c (expand_omp_for_static_nochunk): Only
4470         use n ceil/ nthreads size for the first n % nthreads threads in the
4471         team instead of all threads except for the last few ones which
4472         get less work or none at all.
4474         PR debug/49496
4475         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
4476         uses.
4478 2011-06-22  Richard Guenther  <rguenther@suse.de>
4480         PR tree-optimization/49493
4481         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
4482         Refer to the alias target of variables.
4483         (associate_varinfo_to_alias_1): Remove.
4484         (ipa_pta_execute): Do not associate aliases with anything.
4485         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
4486         (cgraph_function_node): Likewise.
4487         (cgraph_function_or_thunk_node): Likewise.
4488         (varpool_variable_node): Likewise.
4490 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
4492         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
4493         * config.gcc (arm*-*-linux*): Default to gnu tls.
4494         (arm*-*-*): Add --with-tls option.
4495         (all_defaults): Add 'tls'.
4497 2011-06-22  Richard Henderson  <rth@redhat.com>
4499         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
4500         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
4501         (dwarf2out_frame_debug_cfa_window_save): Rename from
4502         dwarf2out_window_save; make static.
4503         * tree.h (dwarf2out_window_save): Don't declare.
4505         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
4506         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
4507         (emit_save_register_window): Rename from gen_save_register_window;
4508         emit the insn and add REG_CFA_* notes.
4509         (sparc_expand_prologue): Update to match.
4510         * config/sparc/sparc.md (save_register_window_1): Simplify from
4511         save_register_window<P:mode>.
4513 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
4515         PR target/49497
4516         * config/i386/i386.md (*lea_general_2): Always allow SImode.
4517         (*lea_general_2_zext): Likewise.
4518         (imul to lea peepholes): Use const359_operand and check
4519         TARGET_PARTIAL_REG_STALL.
4521         * config/i386/predicates.md (const359_operand): New.
4523 2011-06-22  Michael Matz  <matz@suse.de>
4525         * cgraphunit.c (assemble_thunk): Use correct return type.
4527 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
4528             Dmitry Melnik  <dm@ispras.ru>
4530         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
4531         (neon_output_shift_immediate): Ditto.
4532         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
4533         prototype.
4534         (neon_output_shift_immediate): Ditto.
4535         * config/arm/neon.md (vashl<mode>3): Modified constraint.
4536         (vashr<mode>3_imm): New insn pattern.
4537         (vlshr<mode>3_imm): Ditto.
4538         (vashr<mode>3): Modified constraint.
4539         (vlshr<mode>3): Ditto.
4540         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
4541         predicate.
4542         (imm_for_neon_rshift_operand): Ditto.
4543         (imm_lshift_or_reg_neon): Ditto.
4544         (imm_rshift_or_reg_neon): Ditto.
4546         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
4548 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
4550         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
4551         builtin calls even if likelyvalue is not CONSTANT.
4552         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
4553         Return get_value_for_expr of first operand
4554         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
4555         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4556         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
4557         their non-checking counterparts.
4558         (call_may_clobber_ref_p_1): Likewise.
4559         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
4560         like their non-checking counterparts.
4561         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4562         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
4563         like their non-checking counterparts.
4564         (find_func_clobbers): Likewise.
4565         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
4566         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
4568         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
4569         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
4570         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
4571         of base type reference as argument.
4572         (resolve_addr_in_expr): Likewise.  Fix keep computation.
4573         (convert_descriptor_to_signed): Renamed to...
4574         (convert_descriptor_to_mode): ... this.  For wider types convert to
4575         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
4576         (typed_binop): New function.
4577         (scompare_loc_descriptor, ucompare_loc_descriptor,
4578         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
4579         default to unsigned type instead of signed.
4581         PR debug/47858
4582         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
4583         (gimple_build_debug_source_bind_stat): New prototype.
4584         (gimple_build_debug_source_bind): Define.
4585         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
4586         gimple_debug_source_bind_get_value,
4587         gimple_debug_source_bind_get_value_ptr,
4588         gimple_debug_source_bind_set_var,
4589         gimple_debug_source_bind_set_value): New inlines.
4590         * gimple.c (gimple_build_debug_source_bind_stat): New function.
4591         * gimple-pretty-print.c (dump_gimple_debug): Handle
4592         GIMPLE_DEBUG_SOURCE_BIND.
4593         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
4594         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4595         * tree-parloops.c (eliminate_local_variables,
4596         separate_decls_in_region): Likewise.
4597         (separate_decls_in_region_debug): Renamed from
4598         separate_decls_in_region_debug_bind.  Handle
4599         gimple_debug_source_bind_p.
4600         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
4601         prototypes.
4602         (DECL_HAS_DEBUG_ARGS_P): Define.
4603         (struct tree_function_decl): Add has_debug_args_flag field.
4604         * tree.c (debug_args_for_decl): New variable.
4605         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
4606         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
4607         (rewrite_debug_stmt_uses): New function.
4608         (rewrite_stmt): Use it to rewrite debug stmt uses.
4609         * rtl.def (DEBUG_PARAMETER_REF): New.
4610         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
4611         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
4612         DEBUG_PARAMETER_REF.
4613         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
4614         * print-rtl.c (print_rtx): Likewise.
4615         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
4616         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
4617         debug stmts in the first bb.
4618         * tree-inline.c (remap_ssa_name): If remapping default def
4619         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
4620         a source bind debug stmt.
4621         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
4622         (maybe_move_debug_stmts_to_successors): Likewise.
4623         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
4624         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
4625         debug args vector from old_decl to new_decl.
4626         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
4627         or modified parameters, add debug bind stmts before call
4628         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
4629         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
4630         on DECL_DEBUG_EXPRs from debug args vector.
4631         (expand_debug_source_expr): New function.
4632         (expand_debug_locations): Use it for source bind insns.
4633         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
4634         * var-tracking.c (prepare_call_arguments): Add debug args
4635         to call_arguments if any.
4636         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
4637         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
4638         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
4639         (get_ref_die_offset, parameter_ref_descriptor): New functions.
4640         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
4641         (gen_subprogram_die): Handle parameters identified by
4642         DEBUG_PARAMETER_REF.
4644 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
4646         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
4647         * doc/install.texi (Configuration): Document --with-tls.
4648         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
4649         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
4650         (arm_tls_descseq_addr): New.
4651         (legitimize_tls_address): Add tlsdesc support.
4652         (arm_cannot_copy_insn_p): Check for tlscall.
4653         (arm_emit_tls_decoration): Likewise.
4654         * config/arm/arm.h (TARGET_GNU2_TLS): New.
4655         (OPTION_DEFAULT_SPECS): Add with-tls support.
4656         * config/arm/arm.md (R1_REGNUM): Define.
4657         (tlscall): New.
4658         * config/arm/arm.opt (tls_type): New enumeration type and values.
4659         (mtls-dialect): New switch.
4660         * config/arm/arm-opts.h (enum tls_type): New.
4662 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4664         * attribs.c (register_attribute): Added assert to check that all
4665         attribute specs are registered with a name that is not empty and
4666         does not start with '_'.
4667         (decl_attributes): Avoid the lookup of the "naked" attribute spec
4668         if the function has no attributes.
4669         * tree.c (is_attribute_with_length_p): Removed.
4670         (is_attribute_p): Removed.
4671         (private_is_attribute_p): New.
4672         (private_lookup_attribute): New.
4673         (lookup_attribute): Removed.
4674         (lookup_ident_attribute): New.
4675         (remove_attribute): Require the first argument to be in the form
4676         'text', not '__text__'.  Updated asserts.
4677         (merge_attributes): Use lookup_ident_attributes instead of
4678         lookup_attribute.
4679         (merge_dllimport_decl_attributes): Use remove_attribute.
4680         (attribute_list_contained): Likewise.
4681         (attribute_list_equal): Immediately return 1 if the arguments are
4682         identical pointers.
4683         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
4684         'int'.  Require the first argument to be in the form 'text', not
4685         '__text__'.  Require the second argument to be an identifier.
4686         (lookup_attribute): Made inline.  Require the first argument to be
4687         in the form 'text', not '__text__'.
4688         (private_is_attribute_p, private_lookup_attribute): New.
4689         Updated comments.
4691 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
4693         * builtins.c: Add sync_ or SYNC__ to builtin names.
4694         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
4695         * omp-low.c: Add sync_ or SYNC__ to builtin names.
4697 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
4699         PR target/33049
4700         * config/avr/avr.md (extzv): New expander.
4701         (*extzv): New insn.
4702         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
4703         * config/avr/constraints.md (C04): New constraint.
4704         * doc/md.texi (Machine Constraints): Document it.
4706 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
4708         PR middle-end/49489
4709         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
4710         unsignedp argument instead of 1 for clrsb_optab.
4711         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
4712         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
4713         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
4714         * optabs.c (widen_leading): Call widen_operand and expand_unop
4715         with 0 as unsignedp argument instead of 1 for clrsb_optab.
4716         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
4718 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
4720         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
4722 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
4724         * gensupport.c (add_define_attr): New static function.
4725         (is_predicable): Allow multi-alternative lists for the "predicable"
4726         attribute.
4727         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
4728         (process_one_cond_exec): Call alter_attrs_for_insn.
4729         * doc/md.texi (Defining Attributes): Mention some standard names.
4730         (Conditional Execution): Update documentation for "predicable".
4732         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
4733         __builtin_clrsbll): Document.
4734         * doc/rtl.texi (clrsb): New entry.
4735         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
4736         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
4737         (expand_unop): Handle clrsb_optab.
4738         (init_optabs): Initialize it.
4739         * optabs.h (enum optab_index): New entry OTI_clrsb.
4740         (clrsb_optab): Define.
4741         * genopinit.c (optabs): Add an entry for it.
4742         * builtins.c (expand_builtin): Handle clrsb builtin functions.
4743         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
4744         BUILT_IN_CLRSBLL): New.
4745         * rtl.def (CLRSB): New code.
4746         * dwarf2out.c (mem_loc_descriptor): Handle it.
4747         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4748         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
4749         and popcount.
4750         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
4751         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
4752         (__ctzDI2): Move declaration.
4753         * config/bfin/bfin.md (clrsbsi2): New expander.
4754         (signbitssi2): Use the CLRSB rtx.
4755         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
4756         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
4758 2011-06-21  Richard Guenther  <rguenther@suse.de>
4760         * ipa-inline-transform.c (inline_transform): Fix previous change.
4762 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
4764         PR tree-optimization/49478
4765         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
4766         with constant operand.
4768 2011-06-21  Richard Guenther  <rguenther@suse.de>
4770         * ipa-inline-transform.c (inline_transform): Fix typo.
4772 2011-06-21  Richard Guenther  <rguenther@suse.de>
4774         PR tree-optimization/49483
4775         * tree-vect-stmts.c (vectorizable_assignment): Also handle
4776         VIEW_CONVERT_EXPR conversions.
4778 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
4780         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
4781         * config/avr/avr-tables.opt: New file (generated).
4782         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
4783         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
4784         avr-mcus.def.
4785         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
4786         (avr_option_override): Don't process -mmcu= argument here.  Set
4787         avr_current_device using avr_mcu_index.
4788         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
4789         * config/avr/avr.opt (mmcu=): Use Enum.
4790         * config/avr/t-avr (avr-devices.o): Update dependencies.
4791         ($(srcdir)/config/avr/avr-tables.opt): New.
4792         * target.def (help): Remove.
4793         * doc/tm.texi.in (TARGET_HELP): Remove.
4794         * doc/tm.texi: Regenerate.
4795         * opts.c: Don't include target.h.
4796         (common_handle_option): Don't call targetm.help.
4797         * system.h (TARGET_HELP): Poison.
4798         * Makefile.in (opts.o): Update dependencies.
4800 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4802         * config/usegld.h: New file.
4803         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
4804         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
4805         (LIB_SPEC): Likewise.  Search /lib.
4806         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
4807         (RDYNAMIC_SPEC): Handle GNU ld.
4808         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
4809         Define.
4810         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
4811         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
4812         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
4813         (STACK_CHECK_STATIC_BUILTIN): Define.
4814         * config/sol2.opt (compat-bsd): Remove.
4815         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
4816         * config/sol2-bi.h: New file.
4817         * config/sol2-gld.h: Remove.
4818         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
4819         (NO_DBX_BNSYM_ENSYM): Remove.
4820         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
4821         (STACK_CHECK_STATIC_BUILTIN): Remove.
4822         Test USE_GLD instead of TARGET_GNU_LD.
4823         * config/i386/sol2-10.h: Rename to ...
4824         * config/i386/sol2-bi.h .. this.
4825         (SUBTARGET_EXTRA_SPECS): Redefine.
4826         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
4827         (MULTILIB_DEFAULTS): Remove.
4828         (DEFAULT_ARCH32_P): Define.
4829         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
4830         (ARCH64_SUBDIR): Define.
4831         Test USE_GLD instead of TARGET_GNU_LD.
4832         (I386_EMULATION): Rename to ...
4833         (ARCH32_EMULATION): ... this.
4834         (X86_64_EMULATION): Rename to ...
4835         (ARCH64_EMULATION): ... this.
4836         (TARGET_LD_EMULATION): Remove.
4837         (LINK_ARCH_SPEC): Remove.
4838         * config/i386/sol2-gas.h: Remove.
4839         * config/i386/t-sol2-10: Rename to ...
4840         * config/i386/t-sol2-64: ... this.
4841         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
4842         (AS_SPARC64_FLAG): Define.
4843         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
4844         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
4845         depending on TARGET_CPU_DEFAULT.
4846         (CPP_CPU_SPEC): Redefine.
4847         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
4848         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
4849         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
4850         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
4851         ASM_ARCH_DEFAULT_SPEC): Redefine.
4852         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4853         LINK_ARCH_DEFAULT_SPEC.
4854         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
4855         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
4856         (ARCH64_SUBDIR): Define.
4857         (LINK_ARCH64_SPEC): Redefine.
4858         (CC1_SPEC): Redefine.
4859         (OPTION_DEFAULT_SPECS): Redefine.
4860         (MULTILIB_DEFAULTS): Define.
4861         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
4862         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
4863         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
4864         (NO_DBX_BNSYM_ENSYM): Remove.
4865         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
4866         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
4867         (TARGET_ASM_NAMED_SECTION): Likewise.
4868         (STACK_CHECK_STATIC_BUILTIN): Remove.
4869         * config/sparc/sol2-bi.h: Remove.
4870         * config/sparc/sol2-gas-bi.h: Remove.
4871         * config/sparc/sol2-gas.h: Remove.
4872         * config/sparc/sol2-gld-bi.h: Remove.
4873         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
4874         common parts ...
4875         (*-*-solaris2*): ... here.
4877 2011-06-21  Christian Bruel  <christian.bruel@st.com>
4879         PR other/43564
4880         * ipa-inline.c (can_inline_edge_p): Check
4881         !DECL_DISREGARD_INLINE_LIMITS.
4883 2011-06-21  Christian Bruel  <christian.bruel@st.com>
4885         PR middle-end/49139
4886         * cgraphunit.c (process_function_and_variable_attributes): warn when
4887         always_inline functions that are not inline.
4888         * ipa-inline-transform.c (inline_transform): Always call
4889         optimize_inline.
4890         * tree-inline.c (tree_inlinable_function_p): Use error instead
4891         of sorry.
4892         (expand_call_inline): Likewise.
4894 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
4896         * Makefile.in (dg_target_exps): Set.
4897         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
4898         instead of 7, try to divide it more evenly.
4900 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
4902         PR target/49089
4903         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
4904         (avx256_split_unaligned_store): New definition.
4905         (ix86_option_override_internal): Enable avx256 unaligned load/store
4906         splitting only when avx256_split_unaligned_load/store is set.
4908 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
4910         * regrename.c (scan_rtx_reg): Handle the case where we write to an
4911         open chain in a smaller mode without failing the entire block.
4913 2011-06-21  Alan Modra  <amodra@gmail.com>
4915         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
4916         CONST high part large-toc address.
4917         (rs6000_tls_referenced_p): Make static.
4918         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
4920 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4922         PR target/49385
4923         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
4924         one of the operands is a register.
4926 2011-06-20  Kai Tietz  <ktietz@redhat.com>
4928         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
4929         operations in combination with binary and.
4931 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
4933         * regrename.c (do_replace): Don't update notes.
4935 2011-06-20  Alan Modra  <amodra@gmail.com>
4937         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
4938         of toc-relative address in CONST.
4939         (rs6000_delegitimize_address): Recognize changed address.
4940         (rs6000_legitimize_reload_address): Likewise.
4941         (rs6000_emit_move): Don't force these constants to memory.
4942         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
4943         toc-relative address in CONST.
4944         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
4945         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
4947 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4949         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
4950         (count_trailing_zeros): Likewise.
4952 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4954         PR other/49325
4955         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
4956         .init_array can be used with .ctors on targets.
4957         * configure: Regenerated.
4959 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
4961         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
4962         if the element type is volatile.
4964 2011-06-18  Jan Hubicka  <jh@suse.cz>
4966         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
4967         extra name aliases.
4968         (lto_symtab_resolve_can_prevail_p): Likewise.
4969         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
4970         * cgraphbuild.c (record_reference): Remove extra body alias code.
4971         (mark_load): Likewise.
4972         (mark_store): Likewise.
4973         * cgraph.h (varpool_node): Remove extra_name filed;
4974         add alias_of and extraname_alias.
4975         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
4976         (varpool_alias_aliased_node): New inline function.
4977         (varpool_variable_node): New function.
4978         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
4979         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
4980         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
4981         (input_varpool_node): Likewise.
4982         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
4983         (varpool_externally_visible_p): Remove extra body alias code.
4984         (function_and_variable_visibility): Likewise.
4985         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
4986         (ipa_pta_execute): Use it.
4987         * varpool.c (varpool_remove_node): Remove extra name alias code.
4988         (varpool_mark_needed_node): Likewise.
4989         (varpool_analyze_pending_decls): Analyze aliases.
4990         (assemble_aliases): New functoin.
4991         (varpool_assemble_decl): Use it.
4992         (varpool_create_variable_alias): New function.
4993         (varpool_extra_name_alias): Rewrite.
4994         (varpool_for_node_and_aliases): New function.
4996 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
4998         PR target/49411
4999         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
5000         last_arg_constant and last argument doesn't match its predicate,
5001         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
5002         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
5003         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
5004         spelling of error message.
5005         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
5006         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
5007         const_0_to_255_operand instead of const_int_operand.
5009         Revert:
5010         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5012         * config/i386/sse.md (blendbits): Remove mode attribute.
5013         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5014         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5015         Check integer value of operand 3 in insn constraint.
5017 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
5019         PR rtl-optimization/48542
5020         * reload.c (find_equiv_reg): Stop looking when finding a
5021         setjmp-type call.
5022         * reload1.c (reload_as_needed): Invalidate all reload
5023         registers when crossing a setjmp-type call.
5025 2011-06-16  Jeff Law  <law@redhat.com>
5027         * tree-ssa-threadupdate.c (struct redirection_data): New field
5028         intermediate_edge.
5029         (THREAD_TARGET2): Define.
5030         (redirection_data_eq): Also check that the intermediate edge is equal.
5031         (lookup_redirection_data): Drop useless argument.  Extract the
5032         outgoing_edge and intermediate edge from E.  Callers updated.
5033         (copy_phi_args, update_destination_phis): New functions.
5034         (fix_duplicate_block_edges): Likewise.
5035         (create_edge_and_update_destination_phis): Duplicate all the edges
5036         hung off e->aux.  Use copy_phi_args.
5037         (create_duplicates): Use fix_duplicate_block_edges.
5038         (fixup_template_block): Likewise.
5039         (redirect_edges): If necessary, redirect the joiner block's incoming
5040         edge to the duplicate of the joiner block.
5041         (thread_block): Don't muck up loops when threading through a joiner
5042         block.
5043         (thread_through_loop_header): Handle threading through a joiner block.
5044         (mark_threaded_blocks, register_jump_thread): Likewise.
5045         * tree-flow.h (register_jump_thread): Add new argument.  Callers
5046         updated.
5047         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
5048         (thread_across_edge): Handle threading through a joiner block.
5050 2011-06-16  Martin Jambor  <mjambor@suse.cz>
5052         PR tree-optimization/49343
5053         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
5054         calculate offset, provide 2nd operand for the new COMPONENT_REF.
5056 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
5058         * config/darwin-protos.h (machopic_select_rtx_section): Move to
5059         inside RTX_CODE ifdef.
5061 2011-06-16  Tom de Vries  <tom@codesourcery.com>
5063         PR target/45098
5064         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
5065         Disallow NULL pointer for pointer arithmetic.
5067 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5069         PR target/49398
5070         Revert.
5071         2011-06-10  Wei Guozhi  <carrot@google.com>
5073         PR target/45335
5074         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
5075         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
5076         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
5077         related peephole2.
5078         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
5079         related peephole2.
5080         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
5081         (arm_legitimate_ldrd_p): New prototype.
5082         (arm_output_ldrd): New prototype.
5083         * config/arm/arm.c (arm_check_ldrd_operands): New function.
5084         (arm_legitimate_ldrd_p): New function.
5085         (arm_output_ldrd): New function.
5087 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
5089         PR middle-end/46500
5090         * doc/tm.texi.in: Update Copyright date.
5091         * doc/tm.texi: Regenerate.
5092         * targhooks.c (default_setup_incoming_varargs): Replace
5093         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5094         (default_pretend_outgoing_varargs_named): Likewise.
5095         (hook_pass_by_reference_must_pass_in_stack): Likewise.
5096         (hook_callee_copies_named): Likewise.
5097         (default_function_arg_advance): Likewise.
5098         (default_function_arg): Likewise.
5099         (default_function_incoming_arg): Likewise.
5100         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
5101         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
5102         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
5103         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5104         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
5105         * targhooks.h (default_setup_incoming_varargs): Likewise.
5106         (default_pretend_outgoing_varargs_named): Likewise.
5107         (hook_pass_by_reference_must_pass_in_stack): Likewise.
5108         (hook_callee_copies_named): Likewise.
5109         (default_function_arg_advance): Likewise.
5110         (default_function_arg): Likewise.
5111         (default_function_incoming_arg): Likewise.
5112         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
5113         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
5114         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
5115         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5116         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
5117         * target.def (pass_by_reference): Likewise.
5118         (setup_incoming_varargs, strict_argument_naming): Likewise.
5119         (pretend_outgoing_varargs_named, callee_copies): Likewise.
5120         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
5121         (function_incoming_arg): Likewise.
5122         * target.h: Don't include "tm.h" .
5123         (cumulative_args_t): New typedef.
5124         [GCC_TM_H] (get_cumulative_args): New static inline function.
5125         [GCC_TM_H] (pack_cumulative_args): Likewise.
5126         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
5127         argument type with cumulative_args_t.
5128         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
5129         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
5130         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
5131         (frv_arg_partial_bytes, frv_function_arg): Likewise.
5132         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
5133         (frv_function_arg_1): Likewise.
5134         * config/s390/s390.c (s390_pass_by_reference): Likewise.
5135         (s390_function_arg_advance, s390_function_arg): Likewise.
5136         * config/m32c/m32c.c (m32c_function_arg): Likewise.
5137         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
5138         (m32c_strict_argument_naming): Likewise.
5139         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
5140         (spu_function_arg_advance): Likewise.
5141         (spu_setup_incoming_varargs): Likewise.  Make static.
5142         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
5143         Remove prototype.
5144         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
5145         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5146         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
5147         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
5148         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
5149         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
5150         (mep_pass_by_reference, mep_function_arg): Likewise.
5151         (mep_function_arg_advance): Likewise.
5152         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
5153         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
5154         (m32r_function_arg, m32r_function_arg_advance): Likewise.
5155         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
5156         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
5157         (ix86_function_arg, ix86_pass_by_reference): Likewise.
5158         (ix86_setup_incoming_varargs): Likewise.
5159         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
5160         (sh_strict_argument_naming): Likewise.
5161         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
5162         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
5163         (sh_function_arg_advance, sh_function_arg): Likewise.
5164         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
5165         (pdp11_function_arg_advance): Likewise.
5166         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
5167         Likewise.
5168         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
5169         * config/avr/avr.c (avr_function_arg): Likewise.
5170         (avr_function_arg_advance): Likewise.
5171         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
5172         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
5173         (xtensa_function_arg_1): Likewise.
5174         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
5175         Likewise.
5176         (xstormy16_function_arg): Likewise.
5177         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
5178         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
5179         (fr30_function_arg_advance): Likewise.
5180         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
5181         (lm32_function_arg, lm32_function_arg_advance): Likewise.
5182         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
5183         (moxie_function_arg, moxie_function_arg_advance): Likewise.
5184         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
5185         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
5186         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
5187         (cris_function_arg, cris_function_incoming_arg): Likewise.
5188         (cris_function_arg_advance, cris_function_arg_1): Likewise.
5189         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
5190         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
5191         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
5192         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
5193         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
5194         (mn10300_arg_partial_bytes): Likewise.
5195         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
5196         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
5197         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
5198         (ia64_function_arg_1): Likewise.
5199         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
5200         (m68k_function_arg): Likewise.
5201         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
5202         (rs6000_function_arg, setup_incoming_varargs): Likewise.
5203         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
5204         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
5205         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
5206         (picochip_arg_advance): Likewise.
5207         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
5208         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
5209         (mcore_function_arg_advance): Likewise.
5210         * config/score/score.c (score_pass_by_reference): Likewise.
5211         (score_function_arg_advance): Likewise.
5212         (score_arg_partial_bytes): Likewise.  Make static.
5213         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
5214         * config/arm/arm.c (arm_arg_partial_bytes): Replace
5215         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5216         (arm_function_arg, arm_function_arg_advance): Likewise.
5217         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
5218         * config/pa/pa.c (pa_pass_by_reference): Likewise.
5219         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
5220         (pa_function_arg): Likewise.
5221         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
5222         (mips_function_arg, mips_function_arg_advance): Likewise.
5223         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
5224         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
5225         * config/vax/vax.c (vax_function_arg): Likewise.
5226         (vax_function_arg_advance): Likewise.
5227         * config/h8300/h8300.c (h8300_function_arg): Likewise.
5228         (h8300_function_arg_advance): Likewise.
5229         * config/v850/v850.c (v850_pass_by_reference): Likewise.
5230         (v850_strict_argument_naming, v850_function_arg): Likewise.
5231         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
5232         (v850_setup_incoming_varargs): Likewise.
5233         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
5234         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
5235         (mmix_function_arg, mmix_pass_by_reference): Likewise.
5236         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
5237         with const void *.
5238         * config/bfin/bfin.c (setup_incoming_varargs): Replace
5239         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5240         (bfin_function_arg_advance, bfin_function_arg): Likewise.
5241         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
5242         * calls.c (emit_call_1): Change type of args_so_far to
5243         cumulative_args_t.  Changed all callers.
5244         (initialize_argument_information): Likewise.
5245         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
5246         * dse.c (get_call_args): Likewise.
5247         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5248         * function.c (pass_by_reference, reference_callee_copied): Likewise.
5249         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
5250         New member args_so_far_v.  Changed all users.
5251         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
5252         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5253         * config/mips/mips.c (mips_output_args_xfer): Likewise.
5254         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5255         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5256         * config/microblaze/microblaze.c (microblaze_expand_prologue):
5257         Likewise.
5258         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
5259         m32r_pass_by_reference.
5261 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
5263         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
5264         argument to be a VEC of statements.
5265         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
5266         assert that pattern statements have to have their vector type set.
5267         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
5268         Change the first argument to be a VEC of statements.  Update
5269         documentation.
5270         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
5271         (vect_handle_widen_mult_by_const): New function.
5272         (vect_recog_widen_mult_pattern):  Change the first argument to be a
5273         VEC of statements.  Update documentation.  Check that the constant is
5274         INTEGER_CST.  Support multiplication by a constant that fits an
5275         intermediate type - call vect_handle_widen_mult_by_const.
5276         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
5277         call.  Handle additional pattern statements if necessary.
5279 2011-06-16  Nick Clifton  <nickc@redhat.com>
5281         PR target/49427
5282         * config.gcc: Set cpu_type to v850 for any V850 architecture.
5283         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
5284         md_file, extra_modes, out_file and extra_options are these are all
5285         deduced from cpu_type.
5287 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
5289         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
5290         truncation mask to 63.
5292 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
5294         PR target/49313
5295         PR target/29524
5296         * longlong.h: Add AVR support:
5297         (count_leading_zeros): New macro.
5298         (count_trailing_zeros): New macro.
5299         (COUNT_LEADING_ZEROS_0): New macro.
5300         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
5301         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
5302         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
5303         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
5304         (LIB2FUNCS_EXCLUDE): Add _clz.
5305         * config/avr/libgcc.S (XCALL): Move up in file.
5306         (XJMP): New C Macro.
5307         (DEFUN): New asm macro.
5308         (ENDF): New asm macro.
5309         (__ffssi2): New function.
5310         (__ffshi2): New function.
5311         (__loop_ffsqi2): New function.
5312         (__ctzsi2): New function.
5313         (__ctzhi2): New function.
5314         (__clzdi2): New function.
5315         (__clzsi2): New function.
5316         (__clzhi2): New function.
5317         (__paritydi2): New function.
5318         (__paritysi2): New function.
5319         (__parityhi2): New function.
5320         (__parityqi2): New function.
5321         (__popcounthi2): New function.
5322         (__popcountsi2): New function.
5323         (__popcountdi2): New function.
5324         (__popcountqi2): New function.
5325         (__bswapsi2): New function.
5326         (__bswapdi2): New function.
5327         (__ashldi3): New function.
5328         (__ashrdi3): New function.
5329         (__lshrdi3): New function.
5330         Fix suspicous lines.
5332 2011-06-16  Richard Guenther  <rguenther@suse.de>
5334         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
5335         the same as x != 0.
5336         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
5337         to (bool) X & 1.
5338         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
5339         equality compares against zero for the lower bit.
5341 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
5343         PR tree-optimization/49419
5344         * tree-vrp.c (execute_vrp): Call init_range_assertions
5345         before estimate_numbers_of_iterations, call
5346         free_number_of_iterations_estimates before calling
5347         remove_range_assertions.
5349 2011-06-16  Revital Eres  <revital.eres@linaro.org>
5351         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
5352         (struct partial_schedule): Add rows_length field.
5353         (verify_partial_schedule): Check rows_length.
5354         (ps_insert_empty_row): Handle rows_length.
5355         (create_partial_schedule): Likewise.
5356         (free_partial_schedule): Likewise.
5357         (reset_partial_schedule): Likewise.
5358         (create_ps_insn): Remove rest_count argument.
5359         (remove_node_from_ps): Update rows_length.
5360         (add_node_to_ps): Update rows_length and call create_ps_insn
5361         without passing row_rest_count.
5362         (rotate_partial_schedule): Update rows_length.
5364 2011-06-16  Revital Eres  <revital.eres@linaro.org>
5366         * ddg.c (add_intra_loop_mem_dep): New function.
5367         (build_intra_loop_deps): Call it.
5369 2011-06-13  Jeff Law  <law@redhat.com>
5371         * df-problems.c (df_lr_local_compute): Manually CSE
5372         PIC_OFFSET_TABLE_REGNUM.
5373         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
5374         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
5376 2011-06-13  Jan Hubicka  <jh@suse.cz>
5378         * cgraphunit.c (handle_alias_pairs): New function.
5379         (cgraph_finalize_compilation_unit): Use it.
5380         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
5381         as externally visible.
5383 2011-06-15  Richard Guenther  <rguenther@suse.de>
5385         * expr.c (expand_expr_real_2): Reduce all integral types to
5386         bitfield precision.
5387         (expand_expr_real_1): Likewise.
5389 2011-06-15  Martin Jambor  <mjambor@suse.cz>
5391         PR tree-optimization/48613
5392         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
5393         ipa_node_params_vector is NULL.
5395 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
5397         PR debug/49382
5398         * dwarf2out.c (dw_loc_list_node): Add force field.
5399         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
5400         location in the list, even if it is modified before first real insn.
5401         (output_loc_list): Emit empty ranges with force flag set.
5402         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
5404 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
5406         PR target/49349
5407         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
5408         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
5409         above a fence.  Update comments.
5410         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
5411         placed just above it.  Do not allow NULL place_to_insert.
5413 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
5415         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
5416         (slpeel_tree_peel_loop_to_edge): Don't call
5417         remove_dead_stmts_from_loop.
5418         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
5419         remove irrelevant pattern statements.  For irrelevant statements
5420         check if it is the last statement of a detected pattern, use
5421         corresponding pattern statement instead.
5422         (destroy_loop_vec_info): No need to remove pattern statements,
5423         only free stmt_vec_info.
5424         (vect_transform_loop): For irrelevant statements check if it is
5425         the last statement of a detected pattern, use corresponding
5426         pattern statement instead.
5427         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
5428         pattern statements.  Set basic block for the new statement.
5429         (vect_pattern_recog): Update documentation.
5430         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
5431         operands of pattern statements.
5432         (vectorizable_call): Fix printing.  In case of a pattern statement
5433         use the lhs of the original statement when creating a dummy
5434         statement to replace the original call.
5435         (vect_analyze_stmt): For irrelevant statements check if it is
5436         the last statement of a detected pattern, use corresponding
5437         pattern statement instead.
5438         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
5439         statements use gsi of the original statement.
5441 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
5443         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
5444         common/common-target-def.h.
5445         * target.def (default_target_flags, handle_option,
5446         supports_split_stack, optimization_table, init_struct,
5447         except_unwind_info, unwind_tables_default, have_named_sections):
5448         Move to common/common-target.def.
5449         * target.h (enum opt_levels, struct default_options): Move to
5450         common/common-target.h.
5451         * targhooks.c (default_except_unwind_info,
5452         dwarf2_except_unwind_info, sjlj_except_unwind_info,
5453         default_target_handle_option, empty_optimization_table): Move to
5454         common/common-targhooks.c.
5455         * targhooks.h (default_except_unwind_info,
5456         dwarf2_except_unwind_info, sjlj_except_unwind_info,
5457         default_target_handle_option, empty_optimization_table): Move to
5458         common/common-targhooks.h.
5459         * common/common-target-def.h: Include common/common-targhooks.h.
5460         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
5461         defined.
5462         * common/common-target.def (handle_option, option_init_struct,
5463         option_optimization_table, default_target_flags,
5464         except_unwind_info, supports_split_stack, unwind_tables_default,
5465         have_named_sections): Move from target.def.
5466         (HOOK_PREFIX): Undefine at end of file.
5467         * common/common-target.h: Include input.h.
5468         (enum opt_levels, struct default_options): Move from target.h.
5469         * common/common-targhooks.c, common/common-targhooks.h: New.
5470         * config.gcc (target_has_targetm_common): Default to yes.
5471         (moxie*): Set target_has_targetm_common=no.
5472         (hppa*-*-*): Don't set target_has_targetm_common=yes.
5473         * doc/tm.texi: Regenerate.
5474         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
5475         (C_TARGET_DEF_H): Add common/common-targhooks.h.
5476         (GCC_OBJS): Remove vec.o.
5477         (OBJS): Remove hooks.o and vec.o.
5478         (OBJS-libcommon-target): Add vec.o, hooks.o and
5479         common/common-targhooks.o.
5480         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
5481         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
5482         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
5483         cfglayout.o, $(out_object_file), $(common_out_object_file)):
5484         Update dependencies.
5485         (common/common-targhooks.o): New.
5486         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
5487         * common/config/pa/pa-common.c: Include more headers.  Take
5488         copyright dates from pa.c.
5489         (pa_option_optimization_table, pa_handle_option,
5490         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
5491         TARGET_HANDLE_OPTION): Move from pa.c.
5492         * common/config/alpha/alpha-common.c,
5493         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
5494         common/config/bfin/bfin-common.c,
5495         common/config/cris/cris-common.c,
5496         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
5497         common/config/h8300/h8300-common.c,
5498         common/config/i386/i386-common.c,
5499         common/config/ia64/ia64-common.c,
5500         common/config/iq2000/iq2000-common.c,
5501         common/config/lm32/lm32-common.c,
5502         common/config/m32c/m32c-common.c,
5503         common/config/m32r/m32r-common.c,
5504         common/config/m68k/m68k-common.c,
5505         common/config/mcore/mcore-common.c,
5506         common/config/mep/mep-common.c,
5507         common/config/microblaze/microblaze-common.c,
5508         common/config/mips/mips-common.c,
5509         common/config/mmix/mmix-common.c,
5510         common/config/mn10300/mn10300-common.c,
5511         common/config/pdp11/pdp11-common.c,
5512         common/config/picochip/picochip-common.c,
5513         common/config/rs6000/rs6000-common.c,
5514         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
5515         common/config/score/score-common.c, common/config/sh/sh-common.c,
5516         common/config/sparc/sparc-common.c,
5517         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
5518         common/config/vax/vax-common.c,
5519         common/config/xstormy16/xstormy16-common.c,
5520         common/config/xtensa/xtensa-common.c: New.
5521         * config/alpha/alpha.c: Include common/common-target.h.
5522         (alpha_option_optimization_table, alpha_handle_option,
5523         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5524         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
5525         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
5526         * config/arm/arm.c (arm_option_optimization_table,
5527         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5528         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
5529         arm-common.c.
5530         * config/avr/avr.c (avr_option_optimization_table,
5531         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
5532         to avr-common.c.
5533         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
5534         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
5535         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
5536         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
5537         * config/cris/cris.c (cris_option_optimization_table,
5538         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5539         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
5540         cris-common.c.
5541         * config/fr30/fr30.c (fr30_option_optimization_table,
5542         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
5543         to fr30-common.c.
5544         * config/frv/frv.c (frv_option_optimization_table,
5545         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
5546         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
5547         * config/h8300/h8300.c (h8300_option_optimization_table,
5548         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5549         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
5550         * config/i386/i386-protos.h (ix86_handle_option): Declare.
5551         * config/i386/i386.c: Include common/common-target.h.
5552         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
5553         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
5554         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
5555         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
5556         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
5557         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
5558         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
5559         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
5560         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
5561         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
5562         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
5563         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
5564         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
5565         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
5566         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
5567         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
5568         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
5569         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
5570         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
5571         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
5572         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
5573         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
5574         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
5575         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
5576         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
5577         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
5578         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
5579         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
5580         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
5581         ix86_option_optimization_table, ix86_option_init_struct,
5582         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
5583         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
5584         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
5585         i386-common.c.
5586         * config/i386/t-i386 (i386.o): Update dependencies.
5587         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
5588         * config/ia64/ia64.c (ia64_option_optimization_table,
5589         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
5590         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5591         ia64_handle_option): Move to ia64-common.c.
5592         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
5593         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
5594         * config/lm32/lm32.c (lm32_option_optimization_table,
5595         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
5596         to lm32-common.c.
5597         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
5598         m32c-common.c.
5599         * config/m32r/m32r.c (m32r_option_optimization_table,
5600         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5601         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
5602         m32r_handle_option): Move to m32r-common.c.
5603         (m32r_memory_move_cost): Remove comment referring to
5604         TARGET_HANDLE_OPTION.
5605         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
5606         Move to m68k-common.c.
5607         * config/mcore/mcore.c (mcore_option_optimization_table,
5608         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5609         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
5610         * config/mep/mep.c (mep_option_optimization_table,
5611         mep_handle_option, TARGET_HANDLE_OPTION,
5612         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
5613         Move to mep-common.c.
5614         * config/microblaze/microblaze.c
5615         (microblaze_option_optimization_table,
5616         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5617         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
5618         * config/mips/mips.c (mips_handle_option,
5619         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
5620         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
5621         mips-common.c.
5622         * config/mmix/mmix.c (mmix_option_optimization_table,
5623         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
5624         Move to mmix-common.c.
5625         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
5626         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
5627         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5628         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
5629         * config/pa/pa.c: Include common/common-target.h.
5630         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
5631         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5632         pa_handle_option): Move to pa-common.c.
5633         (pa_option_override): Use targetm_common.except_unwind_info.
5634         (pa_asm_output_mi_thunk, pa_function_section): Use
5635         targetm_common.have_named_sections.
5636         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
5637         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5638         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
5639         pdp11_handle_option, pdp11_option_init_struct): Move to
5640         pdp11-common.c.
5641         * config/picochip/picochip.c (picochip_option_optimization_table,
5642         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
5643         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
5644         * config/rs6000/rs6000.c: Include common/common-target.h.
5645         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
5646         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
5647         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
5648         rs6000_handle_option): Move to rs6000-common.c.
5649         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5650         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
5651         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
5652         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
5653         * config/s390/s390.c (processor_flags_table,
5654         s390_option_optimization_table, s390_option_init_struct,
5655         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
5656         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
5657         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
5658         * config/s390/s390.h (processor_flags_table): Declare.
5659         * config/score/score.c (score_option_optimization_table,
5660         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5661         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
5662         score_handle_option): Move to score-common.c.
5663         * config/sh/sh.c (sh_option_optimization_table,
5664         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
5665         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5666         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
5667         * config/sparc/sparc.c: Include common/common-target.h.
5668         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
5669         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
5670         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
5671         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
5672         spu_option_init_struct): Move to spu-common.c.
5673         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
5674         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
5675         * config/v850/v850.c (small_memory_physical_max,
5676         v850_handle_memory_optionn v850_handle_option,
5677         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
5678         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
5679         v850-common.c.
5680         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
5681         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
5682         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
5683         Move to xtensa-common.c.
5684         * cfglayout.c: Include common/common-target.h.
5685         (fixup_reorder_chain): Use targetm_common.have_named_sections.
5686         * cfgrtl.c: Include common/common-target.h.
5687         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
5688         targetm_common.have_named_sections.
5689         * dbxout.c: Include common/common-target.h.
5690         (dbxout_function_end): Use targetm_common.have_named_sections.
5691         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
5692         targetm_common.except_unwind_info.
5693         * dwarf2out.c: Include common/common-target.h.
5694         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
5695         dwarf2out_begin_prologue, dwarf2out_frame_init,
5696         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
5697         targetm_common.except_unwind_info.
5698         * except.c: Include common/common-target.h.
5699         (init_eh, finish_eh_generation,
5700         output_one_function_exception_table): Use
5701         targetm_common.except_unwind_info.
5702         (switch_to_exception_section): Use targetm_common.have_named_sections.
5703         * explow.c: Include common/common-target.h.
5704         * expr.c: Include common/common-target.h.
5705         (build_personality_function): Use targetm_common.except_unwind_info.
5706         * function.c: Include common/common-target.h.
5707         (expand_function_end): Use targetm_common.except_unwind_info.
5708         * haifa-sched.c: Include common/common-target.h.
5709         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
5710         * lto-opts.c: Include common/common-target.h instead of target.h.
5711         (lto_reissue_options): Use targetm_common.handle_option.
5712         * opts.c: Include common/common-target.h.
5713         (target_handle_option): Use targetm_common.handle_option.
5714         (init_options_struct): Update comment referring to
5715         targetm.target_option.optimization.  Use
5716         targetm_common.default_target_flags,
5717         targetm_common.unwind_tables_default and
5718         targetm_common.option_init_struct.
5719         (default_options_optimization): Use
5720         targetm_common.option_optimization_table.
5721         (finish_options): Use targetm_common.except_unwind_info,
5722         targetm_common.unwind_tables_default,
5723         targetm_common.have_named_sections and
5724         targetm_common.supports_split_stack.
5725         * toplev.c: Include common/common-target.h.
5726         (process_options): Use targetm_common.have_named_sections.
5727         * tree-tailcall.c: Include common/common-target.h.
5728         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
5729         * tree.c: Include common/common-target.h.
5730         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
5731         * varasm.c: Include common/common-target.h.
5732         (resolve_unique_section, hot_function_section,
5733         default_function_section): Use targetm_common.have_named_sections.
5735 2011-06-14  Easwaran Raman  <eraman@google.com>
5737         PR rtl-optimization/44194
5738         * dse.c: Include tree-flow.h
5739         (insn_info): Add new field non_frame_wild_read.
5740         (group_info): Add new fields escaped_n and escaped_p.
5741         (kill_on_calls): New variable.
5742         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
5743         (dse_step0): Initialize kill_on_calls.
5744         (can_escape): New function.
5745         (set_usage_bits): Add additional parameter; record information
5746         about escaped locations.
5747         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
5748         (dse_step2_nospill): Set kill_on_calls based on
5749         group->escaped_n and group->escaped_n.
5750         (add_wild_read): Refactor into...
5751         (reset_active_stores): ... New function, and
5752         (free_read_records): ... New function.
5753         (add_non_frame_wild_read): New function.
5754         (scan_insn): Call add_non_frame_wild_read on non-const calls.
5755         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
5756         (dse_step5_nospill): Call scan_reads_nospill for instructions
5757         marked as non_frame_wild_read.
5758         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
5760 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
5762         * common/common-target-def.h, common/common-target.def,
5763         common/common-target.h, common/config/default-common.c,
5764         common/config/pa/pa-common.c: New files.
5765         * Makefile.in (common_out_file, common_out_object_file,
5766         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
5767         (OBJS-libcommon-target): Include $(common_out_object_file).
5768         (prefix.o): Update dependencies.
5769         ($(common_out_object_file), common/common-target-hooks-def.h,
5770         s-common-target-hooks-def-h): New.
5771         (s-tm-texi): Also check timestamp on common-target.def.
5772         (build/genhooks.o): Update dependencies.
5773         * config.gcc (common_out_file, target_has_targetm_common): Define.
5774         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
5775         TARGET_ALWAYS_STRIP_DOTDOT.
5776         * configure.ac (common_out_object_file): Define.
5777         (common_out_file, common_out_object_file): Substitute.
5778         (common): Create directory.
5779         * configure: Regenerate.
5780         * doc/tm.texi.in (targetm_common): Document.
5781         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
5782         * doc/tm.texi: Regenerate.
5783         * genhooks.c (hook_array): Also include common/common-target.def.
5784         * prefix.c (tm.h): Don't include.
5785         (common/common-target.h): Include.
5786         (ALWAYS_STRIP_DOTDOT): Don't define.
5787         (update_path): Use targetm_common.always_strip_dotdot instead of
5788         ALWAYS_STRIP_DOTDOT.
5789         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
5791 2011-06-14  David Li  <davidxl@google.com>
5793         * passes.c (execute_function_todo): Remove TODO_dump_func.
5794         (execute_one_pass): Remove TODO_dump_func.
5795         (execute_function_dump): New function.
5796         * tree-vrp.c: Remove TODO_dump_func.
5797         * regrename.c: Remove TODO_dump_func.
5798         * fwprop.c: Remove TODO_dump_func.
5799         * tree-into-ssa.c: Remove TODO_dump_func.
5800         * tree-complex.c: Remove TODO_dump_func.
5801         * tracer.c: Remove TODO_dump_func.
5802         * tree-loop-distribution.c: Remove TODO_dump_func.
5803         * postreload-gcse.c: Remove TODO_dump_func.
5804         * postreload.c: Remove TODO_dump_func.
5805         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
5806         * tree-tailcall.c: Remove TODO_dump_func.
5807         * ipa-cp.c: Remove TODO_dump_func.
5808         * final.c: Remove TODO_dump_func.
5809         * tree-emutls.c: Remove TODO_dump_func.
5810         * omp-low.c: Remove TODO_dump_func.
5811         * tree-ssa-dse.c: Remove TODO_dump_func.
5812         * tree-ssa-uncprop.c: Remove TODO_dump_func.
5813         * auto-inc-dec.c: Remove TODO_dump_func.
5814         * reorg.c: Remove TODO_dump_func.
5815         * tree-ssa-copyrename.c: Remove TODO_dump_func.
5816         * tree-ssa-ccp.c: Remove TODO_dump_func.
5817         * compare-elim.c: Remove TODO_dump_func.
5818         * mode-switching.c: Remove TODO_dump_func.
5819         * modulo-sched.c: Remove TODO_dump_func.
5820         * tree-call-cdce.c: Remove TODO_dump_func.
5821         * cse.c: Remove TODO_dump_func.
5822         * web.c: Remove TODO_dump_func.
5823         * tree-stdarg.c: Remove TODO_dump_func.
5824         * lto-streamer-out.c: Remove TODO_dump_func.
5825         * tree-ssa-math-opts.c: Remove TODO_dump_func.
5826         * tree-ssa-dom.c: Remove TODO_dump_func.
5827         * tree-nrv.c: Remove TODO_dump_func.
5828         * loop-init.c: Remove TODO_dump_func.
5829         * gimple-low.c: Remove TODO_dump_func.
5830         * ipa-inline.c: Remove TODO_dump_func.
5831         * tree-ssa-sink.c: Remove TODO_dump_func.
5832         * jump.c: Remove TODO_dump_func.
5833         * ifcvt.c: Remove TODO_dump_func.
5834         * tree-ssa-loop.c: Remove TODO_dump_func.
5835         * recog.c: Remove TODO_dump_func.
5836         * dse.c: Remove TODO_dump_func.
5837         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
5838         * matrix-reorg.c: Remove TODO_dump_func.
5839         * tree-eh.c: Remove TODO_dump_func.
5840         * regmove.c: Remove TODO_dump_func.
5841         * function.c: Remove TODO_dump_func.
5842         * tree-vectorizer.c: Remove TODO_dump_func.
5843         * ipa-split.c: Remove TODO_dump_func.
5844         * gcse.c: Remove TODO_dump_func.
5845         * tree-if-conv.c: Remove TODO_dump_func.
5846         * init-regs.c: Remove TODO_dump_func.
5847         * tree-ssa-phiopt.c: Remove TODO_dump_func.
5848         * implicit-zee.c: Remove TODO_dump_func.
5849         * lower-subreg.c: Remove TODO_dump_func.
5850         * bt-load.c: Remove TODO_dump_func.
5851         * tree-dfa.c: Remove TODO_dump_func.
5852         * except.c: Remove TODO_dump_func.
5853         * emit-rtl.c: Remove TODO_dump_func.
5854         * store-motion.c: Remove TODO_dump_func.
5855         * cfgexpand.c: Remove TODO_dump_func.
5856         * tree-cfgcleanup.c: Remove TODO_dump_func.
5857         * cfgcleanup.c: Remove TODO_dump_func.
5858         * tree-ssa-pre.c: Remove TODO_dump_func.
5859         * tree-sra.c: Remove TODO_dump_func.
5860         * tree-mudflap.c: Remove TODO_dump_func.
5861         * tree-ssa-copy.c: Remove TODO_dump_func.
5862         * cfglayout.c: Remove TODO_dump_func.
5863         * tree-ssa-forwprop.c: Remove TODO_dump_func.
5864         * tree-ssa-dce.c: Remove TODO_dump_func.
5865         * ira.c: Remove TODO_dump_func.
5866         * tree-ssa.c: Remove TODO_dump_func.
5867         * integrate.c: Remove TODO_dump_func.
5868         * tree-optimize.c: Remove TODO_dump_func.
5869         * tree-ssa-phiprop.c: Remove TODO_dump_func.
5870         * tree-object-size.c: Remove TODO_dump_func.
5871         * combine.c: Remove TODO_dump_func.
5872         * bb-reorder.c: Remove TODO_dump_func.
5873         * cprop.c: Remove TODO_dump_func.
5874         * var-tracking.c: Remove TODO_dump_func.
5875         * tree-profile.c: Remove TODO_dump_func.
5876         * tree-vect-generic.c: Remove TODO_dump_func.
5877         * reg-stack.c: Remove TODO_dump_func.
5878         * sched-rgn.c: Remove TODO_dump_func.
5879         * tree-ssa-structalias.c: Remove TODO_dump_func.
5880         * tree-switch-conversion.c: Remove TODO_dump_func.
5881         * tree-cfg.c: Remove TODO_dump_func.
5882         * tree-ssa-reassoc.c: Remove TODO_dump_func.
5883         * combine-stack-adj.c: Remove TODO_dump_func.
5884         * dce.c: Remove TODO_dump_func.
5885         * tree-ssanames.c: Remove TODO_dump_func.
5886         * regcprop.c: Remove TODO_dump_func.
5888 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5890         PR middle-end/47364
5891         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
5892         and properly handle result not in Pmode.
5894 2011-06-14  Robert Millan  <rmh@gnu.org>
5896         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
5897         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
5898         `config/linux.h'.
5900         * config/i386/kfreebsd-gnu64.h: New file.
5901         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
5902         with `i386/kfreebsd-gnu64.h'.
5904         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
5905         (GNU_USER_LINK_EMULATION64): New macros.
5906         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
5907         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
5908         of hardcoding `elf_i386' and `elf_x86_64'.
5910 2011-06-14  Nick Clifton  <nickc@redhat.com>
5912         PR target/49403
5913         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
5915         PR target/49402
5916         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
5918 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
5920         PR fortran/49103
5921         * tree.h (DECL_NONSHAREABLE): Define.
5922         (struct tree_decl_common): Change decl_common_unused to
5923         decl_nonshareable_flag.
5924         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
5925         Ignore vars with DECL_NONSHAREABLE bit set.
5926         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
5927         on stores to automatic aggregate vars.
5929         PR rtl-optimization/49390
5930         Revert:
5931         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
5933         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
5934         MEM_ALIAS_SET.
5936 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
5937             Tom de Vries  <tom@codesourcery.com>
5939         PR target/45098
5940         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
5941         Document changed semantics.
5942         (max_stmt_executions, max_stmt_executions_int): Declare.
5943         * tree-data-ref.c (estimated_loop_iterations)
5944         (estimated_loop_iterations_int): Move functions...
5945         * tree-ssa-loop-niter.c (estimated_loop_iterations)
5946         (estimated_loop_iterations_int): here.
5947         (record_estimate): Change nb_iterations_upper_bound and
5948         nb_iterations_estimate semantics.
5949         (max_stmt_executions, max_stmt_executions_int): New function.
5950         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
5951         (max_stmt_executions_tree): this.
5952         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
5953         estimated_loop_iterations_tree.
5954         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
5955         max_stmt_executions_int instead of estimated_loop_iterations_int.
5956         * predict.c (predict_loops): Idem.
5957         * tree-parloops.c (parallelize_loops): Idem.
5958         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
5959         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
5960         (init_omega_for_ddr_1): Idem.
5961         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
5962         (loop_prefetch_arrays): Idem
5963         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
5964         max_stmt_executions instead of estimated_loop_iterations.
5965         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
5966         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
5967         instead of nb_iterations_upper_bound.
5969 2011-06-13  Jan Hubicka  <jh@suse.cz>
5971         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
5973 2011-06-14  Richard Henderson  <rth@redhat.com>
5975         PR debug/48459
5976         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
5977         (based_loc_descr): Assert it's true.
5978         (compute_frame_pointer_to_fb_displacement): Set it, rather than
5979         aborting immediately.
5981 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
5982             Mingfeng Wu  <mingfeng@faraday-tech.com>
5984         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
5986 2011-06-13  Jan Hubicka  <jh@suse.cz>
5988         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
5990 2011-06-13  Jan Hubicka  <jh@suse.cz>
5992         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
5993         similarly to DECL_COMDAT.
5994         * cgraphunit.c (cgraph_analyze_function): Likewise.
5995         * ipa.c (function_and_variable_visibility): Likewise.
5997 2011-06-13  Jan Hubicka  <jh@suse.cz>
5999         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
6000         BINFO_VIRTUALS when streaming for ltrans unit.
6002 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
6004         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
6005         (movdi_internal64): Same.
6007 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
6009         PR target/44618
6010         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
6011         a set of similar patterns, where the MATCH_OPERAND for the function
6012         argument is replaced with individual references to hardware registers.
6013         (save_fpregs_<mode>): Ditto
6014         (restore_gpregs_<mode>): Ditto
6015         (return_and_restore_gpregs_<mode>): Ditto
6016         (return_and_restore_fpregs_<mode>): Ditto
6017         (return_and_restore_fpregs_aix_<mode>): Ditto
6019 2011-06-13  Jan Hubicka  <jh@suse.cz>
6021         * ipa-utils.c (postorder_stack): New structure.
6022         (ipa_reverse_postorder): Handle aliases.
6024 2011-06-13  Jan Hubicka  <jh@suse.cz>
6026         * ipa-inline.c (reset_edge_caches): Walk aliases.
6027         (update_caller_keys): Do not test inlinability of aliases.
6028         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
6029         (do_estimate_growth): Fix typo.
6031 2011-06-13  Jan Hubicka  <jh@suse.cz>
6033         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
6034         (can_remove_node_now_p): ... here; handle same comdat groups.
6035         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
6036         (inline_call): Update use of can_remove_node_now_p.
6038 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
6040         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
6041         condition to disallow non-identical memory locations.
6042         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
6043         preference to bit manipulation instructions.
6045 2011-06-13  Jan Hubicka  <jh@suse.cz>
6047         * cgraph.c (cgraph_for_node_thunks_and_aliases,
6048         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
6049         (nonremovable_p): New function.
6050         (cgraph_can_remove_if_no_direct_calls_p): New function.
6051         (used_from_object_file_p): New functoin.
6052         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
6053         references from aliases.
6054         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
6055         * ipa-inline.c (check_caller_edge): New function.
6056         (want_inline_function_called_once_p): Use it; accept aliases called
6057         once, too.
6058         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
6060 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6062         PR target/48454
6063         * config/arm/neon.md (vec_pack_trunc): Set the lengths
6064         correctly for the case with Quad vectors.
6066 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
6067            Ira Rosen  <ira.rosen@linaro.org>
6069         PR tree-optimization/49352
6070         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
6071         all, make sure loop_use_stmt after the loop is a def stmt of a used
6072         SSA_NAME that is the only one defined inside of the loop.  Don't
6073         check for COND_EXPR and GIMPLE_BINARY_RHS.
6074         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
6075         check_reduction is true.
6077 2011-06-11  Jan Hubicka  <jh@suse.cz>
6079         PR middle-end/49373
6080         * ipa.c (cgraph_externally_visible_p): Check resolution info.
6082 2011-06-11  Jan Hubicka  <jh@suse.cz>
6084         PR middle-end/48836
6085         * ipa-inline-transform.c: Include tree-pass.h
6086         (inline_transform): Set TODO_update_ssa_only_virtuals.
6087         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
6089 2011-06-11  Jan Hubicka  <jh@suse.cz>
6091         PR middle-end/49378
6092         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
6093         aliases and thunks.
6095 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
6097         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
6098         Take number of iterations to peel into account for equally frequent
6099         misalignment values.
6101 2011-06-11  Jan Hubicka  <jh@suse.cz>
6103         * lto-streamer-out.c (produce_symtab): Stream out the newly
6104         represented aliases.
6106 2011-06-11  Jan Hubicka  <jh@suse.cz>
6108         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
6109         varying args.
6110         (ipa_update_after_lto_read): Likewise.
6111         (ipa_write_node_info): Do not sream call_with_var_arguments.
6112         (ipa_read_node_info): Likewise.
6114 2011-06-11  Jan Hubicka  <jh@suse.cz>
6116         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
6118 2011-06-11  Jan Hubicka  <jh@suse.cz>
6120         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
6121         (lto_symtab_resolve_can_prevail_p): Likewise.
6122         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
6123         * cgraph.c (same_body_aliases_done): New global var.
6124         (cgraph_same_body_alias_1): Rename to ...
6125         (cgraph_create_function_alias): ... this one; reorg to new
6126         representation.
6127         (cgraph_same_body_alias): Use cgraph_create_function_alias;
6128         record references when asked to.
6129         (cgraph_add_thunk): Fix formating.
6130         (cgraph_get_node): Kill same body alias code.
6131         (cgraph_node_for_asm): Likewise.
6132         (cgraph_remove_same_body_alias): Remove.
6133         (cgraph_remove_node): Kill same body alias code.
6134         (cgraph_mark_address_taken_node): Mark also the aliased function
6135         as having address taken.
6136         (dump_cgraph_node): Dump same body aliases.
6137         (cgraph_for_node_thunks_and_aliases): Update for new alias
6138         representation.
6139         (cgraph_for_node_and_aliases): Likewise.
6140         * cgraph.h (same_body): Kll pointer.
6141         (same_body_alias): Update comment.
6142         (same_body_aliases_done): Declare.
6143         (cgraph_remove_same_body_alias): Remove declaration.
6144         (cgraph_create_function_alias): Declare.
6145         (cgraph_process_same_body_aliases): Declare.
6146         (cgraph_function_with_gimple_body_p): Check for alias.
6147         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
6148         (cgraph_alias_aliased_node): New function.
6149         (cgraph_function_node): Update for new aliases.
6150         (cgraph_function_or_thunk_node): Likewise.
6151         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
6152         (inline_call): Remove dead aliases.
6153         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
6154         name hack for same body aliases.
6155         (clone_of_p): Look through aliases.
6156         (verify_cgraph_node): Verify aliases.
6157         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
6158         (cgraph_process_same_body_aliases): New function.
6159         (process_function_and_variable_attributes): Disable weakref warning on
6160         alias.
6161         (cgraph_analyze_functions): Handle aliases.
6162         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
6163         (assemble_thunks): Rename to ...
6164         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
6165         (cgraph_expand_function): Remove alias output code.
6166         (cgraph_output_in_order): Skip aliases.
6167         (cgraph_preserve_function_body_p): Aliases don't need preserving.
6168         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
6169         (ipa_record_reference): Do not assert on alias references.
6170         (ipa_ref_has_aliases_p): New function.
6171         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
6172         (ipa_ref_has_aliases_p): Declare.
6173         * lto-cgraph.c (lto_output_node): Handle aliases.
6174         (input_node): Likewise.
6175         * lto-streamer-out.c (lto_output): Skip aliases.
6176         (produce_symtab): Kill same_body_alias code.
6177         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
6178         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
6179         * ipa-inline.c (update_caller_keys): Walk aliases.
6180         (inline_small_functions): Fix thinko in previous patch.
6181         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
6182         (function_and_variable_visibility): Do not walk same body aliases.
6183         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
6184         (ipa_pta_execute): Use it.
6186 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
6188         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
6189         (*vec_dupv2df): Rename from vec_dupv2df.
6190         (vec_dupv2df): New expander.
6192 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
6194         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
6196 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
6198         * config/i386/i386.md: Use default value in "isa" attribute.
6199         * config/i386/sse.md: Ditto.
6200         * config/i386/mmx.md: Ditto.
6202 2011-06-10  Wei Guozhi  <carrot@google.com>
6204         PR target/45335
6205         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
6206         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
6207         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
6208         related peephole2.
6209         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
6210         related peephole2.
6211         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
6212         (arm_legitimate_ldrd_p): New prototype.
6213         (arm_output_ldrd): New prototype.
6214         * config/arm/arm.c (arm_check_ldrd_operands): New function.
6215         (arm_legitimate_ldrd_p): New function.
6216         (arm_output_ldrd): New function.
6218 2011-06-10  David Li  <davidxl@google.com>
6220         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
6221         * passes.c (passr_eq): New function.
6222         (create_pass_tab): New function.
6223         (pass_traverse): New function.
6224         (dump_one_pass): New function.
6225         (dump_pass_list): New function.
6226         (dump_passes): New function.
6228 2011-06-10  Jan Hubicka  <jh@suse.cz>
6230         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
6231         setting the nothrow flag.
6232         * ipa-reference.c (propagate): Skip aliases.
6233         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
6234         (propagate_nothrow): Skip aliases; do not update cgraph.
6235         (local_pure_const): Do not update cgraph.
6236         * tree-profile.c (tree_profiling): Do fixup_cfg.
6238 2011-06-10  Jan Hubicka  <jh@suse.cz>
6240         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
6241         (cgraph_local_node_p): ... here; handle aliases.
6242         (has_addr_references_p): Break out from ...;
6243         (cgraph_remove_unreachable_nodes) ... here.
6245 2011-06-10  Jan Hubicka  <jh@suse.cz>
6247         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
6248         * common.opt (flag_inline_functions_called_once): Do not
6249         initialize to 1.
6251 2011-06-10  Jan Hubicka  <jh@suse.cz>
6253         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
6254         (ipcp_initialize_node_lattices): Do not deal with aliases;
6255         Do not try to propagate through thunks.
6256         (ipcp_change_tops_to_bottom): Do not deal with aliases.
6258 2011-06-10  Jan Hubicka  <jh@suse.cz>
6260         * ipa-prop.c (ipa_write_node_info): Stream jump functions
6261         for indirect calls.
6262         (ipa_read_node_info): Likewise.
6264 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6266         PR lto/49302
6267         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
6268         (build_and_insert_call): Likewise.
6269         (build_and_insert_ref): New.
6270         (gimple_expand_builtin_pow): Minor cleanup.
6271         (gimple_expand_builtin_cabs): New.
6272         (execute_cse_sincos): Add case for BUILT_IN_CABS.
6274 2011-06-10  Jan Hubicka  <jh@suse.cz>
6276         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
6277         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
6278         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
6279         (ipcp_propagate_stage): Skip aliases when propagating.
6280         (ipcp_need_redirect_p): Skip aliases.
6281         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
6282         collect_callers_of_node.
6283         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
6284         for aliases.
6285         (ipa_compute_jump_functions): Look through aliases.
6287 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6289         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
6291 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
6293         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
6294         Adjust comments.
6295         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
6297 2011-06-10  Jan Hubicka  <jh@suse.cz>
6299         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
6300         Update call of gimple_get_virt_method_for_binfo.
6301         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
6302         refuse_thunks parameter.
6303         (gimple_fold_call): Update.
6304         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
6306 2011-06-10  Jan Hubicka  <jh@suse.cz>
6308         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
6309         (not_all_callers_have_enough_arguments_p): ... this one; turn into
6310         worker for cgraph_for_node_and_aliases.
6311         (convert_callers_for_node): Break out from ...
6312         (convert_callers): ... here.
6313         (modify_function): Use collect_callers_of_node.
6314         (ipa_early_sra): Use cgraph_for_node_and_aliases.
6316 2011-06-10  Richard Guenther  <rguenther@suse.de>
6318         PR tree-optimization/49361
6319         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
6320         when not already in gimple form.
6322 2011-06-10  Richard Guenther  <rguenther@suse.de>
6324         PR bootstrap/49344
6325         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
6326         FOR_EACH_PHI_OR_STMT_USE.
6328 2011-06-10  Jan Hubicka  <jh@suse.cz>
6330         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
6331         (clone_inlined_nodes): ... here.
6332         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
6333         to real destination prior inlining.
6334         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
6335         can_early_inline_edge_p, want_early_inline_function_p,
6336         want_early_inline_function_p, want_inline_small_function_p,
6337         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
6338         edge_badness, update_all_callee_keys, lookup_recursive_calls,
6339         add_new_edges_to_heap, inline_small_functions, flatten_function,
6340         inline_always_inline_functions, early_inline_small_functions): Use
6341         cgraph_function_or_thunk_node.
6342         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
6343         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
6344         (do_estimate_edge_growth_1): Break out from ...
6345         (do_estimate_growth) ... here; walk aliases.
6346         (inline_generate_summary): Skip aliases.
6348 2011-06-10  Richard Guenther  <rguenther@suse.de>
6350         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
6351         forward when combining, visit inserted stmts when a stmt was changed.
6353 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
6355         * tree.h (error_operand_p): Add.
6356         * dbxout.c (dbxout_type_fields): Use the latter.
6357         * c-decl.c (add_stmt): Likewise.
6358         * gimplify.c (omp_add_variable, omp_notice_variable,
6359         gimplify_scan_omp_clauses): Likewise.
6361 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
6363         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
6364         when a value is actually passed in regs.
6366 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
6367             Laurent Rougé  <laurent.rouge@menta.fr>
6369         * doc/invoke.texi (SPARC options): Add -mflat.
6370         * config/sparc/sparc.opt: Likewise.
6371         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
6372         (sparc_flat_expand_prologue): Declare.
6373         (sparc_flat_expand_epilogue): Likewise.
6374         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
6375         (CPP_ENDIAN_SPEC): Replace with...
6376         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
6377         (CPP_SPEC): Adjust to above change.
6378         (EXTRA_SPECS): Likewise.
6379         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
6380         (INCOMING_REGNO): Likewise.
6381         (OUTGOING_REGNO): Likewise.
6382         (LOCAL_REGNO): Likewise.
6383         (SETUP_FRAME_ADDRESSES): Likewise.
6384         (FIXED_REGISTERS): Set 0 for %fp.
6385         (CALL_USED_REGISTERS): Likewise.
6386         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
6387         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
6388         (RETURN_ADDR_REGNUM): Define.
6389         (RETURN_ADDR_RTX): Use it.
6390         (INCOMING_RETURN_ADDR_REGNUM): Define.
6391         (INCOMING_RETURN_ADDR_RTX): Use it.
6392         (DWARF_FRAME_RETURN_COLUMN): Likewise.
6393         (EH_RETURN_REGNUM): Define.
6394         (EH_RETURN_STACKADJ_RTX): Use it.
6395         (EH_RETURN_HANDLER_RTX): Delete.
6396         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
6397         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
6398         Delete.
6399         (struct machine_function): Add frame_size, apparent_frame_size,
6400         frame_base_reg, frame_base_offset, n_global_fp_regs and
6401         save_local_in_regs_p fields.
6402         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
6403         sparc_frame_base_offset, sparc_n_global_fp_regs,
6404         sparc_save_local_in_regs_p): New macros.
6405         (sparc_option_override): Error out if -fcall-saved-REG is specified
6406         for Out registers.
6407         (eligible_for_restore_insn): Fix formatting.
6408         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
6409         (eligible_for_sibcall_delay): Likewise.
6410         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
6411         (sparc_legitimate_address_p): Adjust to above change.
6412         (save_global_or_fp_reg_p): New predicate.
6413         (return_addr_reg_needed_p): Likewise.
6414         (save_local_or_in_reg_p): Likewise.
6415         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
6416         (SORR_SAVE, SORR_RESTORE): Delete.
6417         (sorr_pred_t): New typedef.
6418         (sorr_act_t): New enum.
6419         (save_or_restore_regs): Rename to...
6420         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
6421         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
6422         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
6423         mechanism.  Add CFI information for double-word saves in 32-bit mode.
6424         (emit_adjust_base_to_offset): New function extracted from...
6425         (emit_save_or_restore_regs): ...this.  Rename the rest to...
6426         (emit_save_or_restore_regs_global_fp_regs): ...this.
6427         (emit_save_or_restore_regs_local_in_regs): New function.
6428         (gen_create_flat_frame_[123]): New functions.
6429         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
6430         (sparc_flat_expand_prologue): New function.
6431         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
6432         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
6433         (sparc_flat_expand_epilogue): New function.
6434         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
6435         (output_return): Likewise.
6436         (output_sibcall): Likewise.
6437         (sparc_output_mi_thunk): Likewise.
6438         (sparc_frame_pointer_required): Likewise.
6439         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
6440         function optimization.
6441         * config/sparc/sparc.md (flat): New attribute.
6442         (prologue): Add TARGET_FLAT handling.
6443         (save_register_window): Disable if TARGET_FLAT.
6444         (create_flat_frame_[123]): New patterns.
6445         (epilogue): Add TARGET_FLAT handling.
6446         (sibcall_epilogue): Likewise.
6447         (eh_return): New expander.
6448         (eh_return_internal): New insn and splitter.
6449         (return_internal): Add TARGET_FLAT handling.
6450         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
6451         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
6452         (nonlocal_goto): Add TARGET_FLAT handling.
6453         * config/sparc/t-elf: Add -mflat multilib.
6454         * config/sparc/t-leon: Likewise.
6456 2011-06-10  Jan Hubicka  <jh@suse.cz>
6458         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
6459         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
6460         (self_recursive_p): Use cgraph_function_node.
6461         (propagate_pure_const): Likewise.
6462         (propagate_nothrow): Likewise.
6463         * ipa-reference.c (ipa_reference_get_not_read_global): Use
6464         cgraph_function_node.
6465         (propagate_bits): Likewise.
6466         (propagate): Likewise.
6468 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6469             Richard Earnshaw  <rearnsha@arm.com>
6471         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
6472         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
6473         (*thumb2_movdi_vfp): Delete.
6474         (*arm_movdi_vfp_cortexa8): Delete.
6475         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
6476         (*movdi_vfp_cortexa8): Likewise.
6478 2011-06-10  Richard Guenther  <rguenther@suse.de>
6480         * stor-layout.c (initialize_sizetypes): Give names to all
6481         sizetype kinds.
6483 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
6485         PR tree-optimization/49318
6486         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
6487         irrelevant pattern statements.
6489 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
6491         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
6493         PR bootstrap/49354
6494         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
6495         to last assignment.
6497 2011-06-09  Jan Hubicka  <jh@suse.cz>
6499         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
6500         do not recompute reachable flag.
6501         (cgraph_finalize_function, cgraph_analyze_functions): Set
6502         redefined_extern_inline here.
6504 2011-06-09  Jan Hubicka  <jh@suse.cz>
6506         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
6507         (cgraph_only_called_directly_p): ... this one; bring offline.
6508         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
6509         varpool_used_from_object_file_p): Drop names from the declaratoin.
6510         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
6511         collect_callers_of_node): New.
6512         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
6513         (cgraph_edge_recursive_p): Use cgraph_function_node.
6514         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
6515         (cgraph_node_cannot_be_local_p_1): Break out from ...
6516         (cgraph_node_can_be_local_p): ... here; walk aliases.
6517         (cgraph_for_node_thunks_and_aliases): New function.
6518         (cgraph_for_node_and_aliases): New function.
6519         (cgraph_make_node_local_1): Break out from ...
6520         (cgraph_make_node_local) ... here; use
6521         cgraph_for_node_thunks_and_aliases.
6522         (cgraph_set_nothrow_flag_1): Break out from ...
6523         (cgraph_set_nothrow_flag) ... here;
6524         use cgraph_for_node_thunks_and_aliases.
6525         (cgraph_set_const_flag_1): Break out from ...
6526         (cgraph_set_const_flag) ... here;
6527         use cgraph_for_node_thunks_and_aliases.
6528         (cgraph_set_pure_flag_1): Break out from ...
6529         (cgraph_set_pure_flag) ... here;
6530         use cgraph_for_node_thunks_and_aliases.
6531         (cgraph_propagate_frequency_1): Break out from ...
6532         (cgraph_propagate_frequency) ... here; use
6533         cgraph_for_node_thunks_and_aliases.
6534         (cgraph_used_from_object_file_p): Do not care about aliases.
6535         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
6536         New functions.
6537         (collect_callers_of_node_1, collect_callers_of_node): New functions.
6539 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
6541         PR rtl-optimization/49154
6542         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
6543         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
6544         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
6545         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
6546         * config/cris/cris.h (cris_register_move_cost): Remove
6547         !TARGET_V32 code.  Tweak comments.
6549 2011-06-09  Jan Hubicka  <jh@suse.cz>
6551         * cgraphbuild.c (record_eh_tables): Mark personality function as having
6552         address taken.
6554 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
6556         PR rtl-optimization/49154
6557         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
6558         is a matching slot in the hashtable, assign it to classes_ptr.
6560         PR rtl-optimization/49154
6561         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
6562         register classes.
6563         * doc/tm.texi: Regenerate.
6565 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
6567         PR target/49307
6568         * config/sh/sh.md (UNSPEC_CHKADD): New.
6569         (chk_guard_add): New define_insn_and_split.
6570         (symGOT_load): Use chk_guard_add instead of blockage.
6572 2011-06-09  Kai Tietz  <ktietz@redhat.com>
6574         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
6576 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
6578         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
6580 2011-06-09  Wei Guozhi  <carrot@google.com>
6582         PR target/46975
6583         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
6584         (peephole2 for conditional move): Generate 16 bit instructions.
6586 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
6588         * config/i386/i386.md (*movdi_internal_rex64): Merge
6589         alternatives 6 and 8.
6591 2011-06-09  David Li  <davidxl@google.com>
6593         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
6594         * passes.c (passr_eq): New function.
6595         (create_pass_tab): New function.
6596         (pass_traverse): New function.
6597         (dump_one_pass): New function.
6598         (dump_pass_list): New function.
6599         (dump_passes): New function.
6601 2011-06-09  David Li  <davidxl@google.com>
6603         * tree-complex.c (tree_lower_complex): Gate cleanup.
6604         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
6605         (execute_optimize_stdarg): Ditto.
6606         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
6607         (execute_cleanup_eh_1): Ditto.
6608         (execute_cleanup_eh): Ditto.
6609         * gcse.c (gate_rtl_pre): Ditto.
6610         (execute_rtl_pre): Ditto.
6611         * except.c (finish_eh_generation): Ditto.
6612         (convert_to_eh_region_ranges): Ditto.
6613         * cprop.c (one_cprop_pass): Ditto.
6615 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
6617         PR target/48673
6618         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
6619         in all basic blocks.
6621 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6623         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
6624         (HAVE_ENABLE_EXECUTE_STACK): Define.
6625         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
6626         (HAVE_ENABLE_EXECUTE_STACK): Define.
6627         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
6628         (HAVE_ENABLE_EXECUTE_STACK): Define.
6629         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
6630         (ENABLE_EXECUTE_STACK): Remove.
6631         (HAVE_ENABLE_EXECUTE_STACK): Define.
6632         [IN_LIBGCC2]: Don't include <windows.h>.
6633         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
6634         (HAVE_ENABLE_EXECUTE_STACK): Define.
6635         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
6636         (HAVE_ENABLE_EXECUTE_STACK): Define.
6637         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
6638         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
6639         (HAVE_ENABLE_EXECUTE_STACK): Define.
6640         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
6641         (HAVE_ENABLE_EXECUTE_STACK): Define.
6642         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
6643         (HAVE_ENABLE_EXECUTE_STACK): Define.
6644         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
6645         (HAVE_ENABLE_EXECUTE_STACK): Define.
6646         * config/alpha/alpha.c (alpha_trampoline_init): Test
6647         HAVE_ENABLE_EXECUTE_STACK.
6648         * config/i386/i386.c (ix86_trampoline_init): Likewise.
6649         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6650         (sparc64_initialize_trampoline): Likewise.
6651         * libgcc2.c [L_enable_execute_stack]: Remove.
6652         * system.h (ENABLE_EXECUTE_STACK): Poison.
6653         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
6654         * doc/tm.texi: Regenerate.
6655         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
6657 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
6659         PR middle-end/49308
6660         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
6661         variable.  After resetting and rescanning insn continue with previous
6662         statement.
6664 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6666         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
6667         (gcc_cv_ld_hidden): Likewise.
6668         * configure: Regenerate.
6669         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
6670         (ix86_stack_protect_fail): Mark unused.
6671         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
6672         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
6673         [TARGET_MACHO]: Don't define.
6674         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
6675         (TARGET_STACK_PROTECT_FAIL): Likewise.
6676         (rs6000_stack_protect_fail): Mark unused.
6677         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
6678         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
6680 2011-06-08  Andi Kleen  <ak@linux.intel.com>
6682         * varasm.c (get_section): Print location of other conflict
6683         for section conflicts.
6685 2011-06-08  Andi Kleen  <ak@linux.intel.com>
6687         * config/i386/driver-i386.c (host_detect_local_cpu):
6688         Add model 0x2d Intel CPU.
6690 2011-06-08  Andi Kleen  <ak@linux.intel.com>
6692         * reginfo.c (global_regs_decl): Add.
6693         (globalize_reg): Add decl parameter. Compute location.  Pass location
6694         to warnings and add inform. Store decl in global_regs_decl.
6695         * rtl.h (globalize_reg): Update prototype.
6696         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
6698 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
6700         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
6702 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
6704         PR target/49305
6705         * config/sh/predicates.md (general_movsrc_operand): Check
6706         mode for memory with indexed address for QI and HImode.
6707         (general_movdst_operand): Likewise.
6709 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
6711         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
6713 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
6715         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
6716         (num_ssa_operands): Likewise.
6717         (op_iter_init_phiuse): Forward-declare.
6718         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
6720 2011-06-08  Nick Clifton  <nickc@redhat.com>
6722         * doc/invoke.texi (ARM Options): Update description of
6723         -mthumb-interwork.
6725 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
6727         * config/i386/driver-i386.c (host_detect_local_cpu): Support
6728         unknown Intel family 0x6 CPUs.
6730 2011-06-08  Martin Jambor  <mjambor@suse.cz>
6732         * tree-sra.c (mark_rw_status): Removed.
6733         (analyze_access_subtree): New parameter parent instead of
6734         mark_read and mark_write, propagate from that.
6736 2011-06-08  Julian Brown  <julian@codesourcery.com>
6738         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
6739         for double-precision helper functions in hard-float mode if only
6740         single-precision arithmetic is supported in hardware.
6742 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
6744         PR rtl-optimization/49303
6745         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
6746         code_motion_path_driver returned 0 or 1.
6747         (sel_region_finish): Clear h_d_i_d.
6749 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
6751         * config/sh/sh.c (prepare_move_operands): Set pic register
6752         appropriately for global and local dynamic tls models even
6753         if flag_pic is unset.
6755 2011-06-07  Jason Merrill  <jason@redhat.com>
6757         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
6759 2011-06-07  Xinliang David Li  <davidxl@google.com>
6760         * passes.c (enable_disable_pass): Handle assembler name.
6761         (is_pass_explicitly_enabled_or_disabled): Ditto.
6763 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6765         PR tree-optimization/48497
6766         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
6768 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6770         PR tree-optimization/46728
6771         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
6772         to use gimple_val_nonnegative_real_p.
6773         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
6774         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
6776 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
6778         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
6780 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
6782         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
6783         constant vectors.
6785 2011-06-07  Richard Guenther  <rguenther@suse.de>
6787         * stor-layout.c (initialize_sizetypes): Initialize all
6788         sizetypes based on target definitions.
6789         (set_sizetype): Remove.
6790         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
6791         * tree.h (set_sizetype): Remove.
6793 2011-06-07  Nick Clifton  <nickc@redhat.com>
6795         * config.gcc: Unify V850 architecture options and add support for
6796         newer V850 architectures.
6797         * config/v850/t-v850e: Delete.
6799 2011-06-07  Richard Guenther  <rguenther@suse.de>
6801         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
6802         Call set_sizetype from here.
6804 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
6806         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
6807         (*maddhisi4tb, *maddhisi4tt): New define_insns.
6809 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
6810             Andrew Stubbs  <ams@codesourcery.com>
6812         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
6813         multiplies.
6814         * doc/md.texi (Canonicalization of Instructions): Document widening
6815         multiply canonicalization.
6817 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
6819         PR gcov-profile/49299
6820         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
6822 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
6824         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
6825         a pointer.
6826         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
6827         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
6828         vect_recog_pow_pattern): Likewise.
6829         (vect_pattern_recog_1): Remove declaration.
6830         (widened_name_p): Remove declaration.  Add new argument to specify
6831         whether to check that both types are either signed or unsigned.
6832         (vect_recog_widen_mult_pattern): Update documentation.  Handle
6833         unsigned patterns and multiplication by constants.
6834         (vect_pattern_recog_1): Update vect_recog_func references.  Use
6835         statement information from the statement returned from pattern
6836         detection functions.
6837         (vect_pattern_recog): Update vect_recog_func reference.
6838         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
6839         multiplication by a constant use the type of the other operand.
6841 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
6843         PR rtl-optimization/49145
6844         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
6846 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
6848         PR debug/49262
6849         * dwarf2out.c (native_encode_initializer): Decrement count in each
6850         iteration.
6852         PR debug/49294
6853         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
6854         non-MODE_INT modes.
6856         PR c++/49264
6857         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
6858         if stmt folded into nothing.
6859         * tree-inline.c (fold_marked_statements): If a builtin at the end of
6860         a bb folded into nothing, just update cgraph edges and move to next bb.
6861         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
6862         to be NULL.  Don't compute count and frequency if new_call is NULL.
6864 2011-06-04  Diego Novillo  <dnovillo@google.com>
6866         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
6867         (cgraph.o): Likewise.
6868         (cgraphunit.o): Likewise.
6869         * cgraphunit.c: Include lto-streamer.h
6870         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
6871         if LTO is enabled.
6872         * lto-streamer-in.c (unpack_value_fields): Call
6873         streamer_hooks.unpack_value_fields if set.
6874         (lto_materialize_tree): For unhandled nodes, first try to
6875         call lto_streamer_hooks.alloc_tree, if it exists.
6876         (lto_input_ts_decl_common_tree_pointers): Move reading of
6877         DECL_INITIAL to lto_streamer_read_tree.
6878         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
6879         (lto_streamer_read_tree): New.
6880         (lto_reader_init): Rename from lto_init_reader.
6881         Move initialization code to lto/lto.c.
6882         * lto-streamer-out.c (pack_value_fields): Call
6883         streamer_hooks.pack_value_fields if set.
6884         (lto_output_tree_ref): For tree nodes that are not normally indexable,
6885         call streamer_hooks.indexable_with_decls_p before giving up.
6886         (lto_output_ts_decl_common_tree_pointers): Move handling
6887         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
6888         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
6889         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
6890         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
6891         (lto_streamer_write_tree): New.
6892         (lto_output): Call lto_streamer_init directly.
6893         (lto_writer_init): Remove.
6894         * lto-streamer.c (streamer_hooks): New.
6895         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
6896         instead of lto_preload_common_nodes.
6897         (lto_is_streamable): Move from lto-streamer.h
6898         (lto_streamer_hooks_init): New.
6899         (streamer_hooks): New.
6900         (streamer_hooks_init): New.
6901         * lto-streamer.h (struct output_block): Forward declare.
6902         (struct lto_input_block): Likewise.
6903         (struct data_in): Likewise.
6904         (struct bitpack_d): Likewise.
6905         (struct streamer_hooks): Declare.
6906         (streamer_hooks): Declare.
6907         (lto_streamer_hooks_init): Declare.
6908         (lto_streamer_write_tree): Declare.
6909         (lto_streamer_read_tree): Declare.
6910         (streamer_hooks_init): Declare.
6911         (lto_is_streamable): Move to lto-streamer.c
6913 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6915         * longlong.h (smul_ppmm): The resulting register pair contains the
6916         higher order word first.
6918 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6920         PR tree-optimization/46728
6921         * builtins.c (powi_table): Remove.
6922         (powi_lookup_cost): Remove.
6923         (powi_cost): Remove.
6924         (expand_powi_1): Remove.
6925         (expand_powi): Remove.
6926         (expand_builtin_pow_root): Remove.
6927         (expand_builtin_pow): Remove.
6928         (expand_builtin_powi): Eliminate handling of constant exponent.
6929         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
6931 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6933         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
6935 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6937         * dce.c (reset_unmarked_insns_debug_uses): New.
6938         (delete_unmarked_insns): Skip debug insns.
6939         (prescan_insns_for_dce): Likewise.
6940         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
6941         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
6942         active reg can be found.
6943         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
6944         (convert_regs_1): Use it.
6946 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6948         * tree-pretty-print.c (dump_function_header): Add flags.
6949         Don't dump decl_uid with nouid.
6950         * tree-pretty-print.h (dump_function_header): Adjust.
6951         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
6952         * passes.c (pass_init_dump_file): Pass dump_flags on.
6953         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
6955 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6957         PR bootstrap/49270
6958         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
6960 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
6962         PR tree-optimization/49243
6963         * calls.c (setjmp_call_p): Also check if fndecl has the
6964         returns_twice attribute.
6966 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6968         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
6969         -ffast-math etc.
6971 2011-06-06  Richard Henderson  <rth@redhat.com>
6972             Georg-Johann Lay  <avr@gjlay.de>
6974         PR target/42210
6975         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
6976         New predicates.
6977         * config/avr/avr.md ("insv"): New insn expander.
6978         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
6979         "*insv.not.io", "*insv.reg"): New insns.
6981 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
6983         PR target/49285
6984         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
6985         to nonimmediate_operand from memory_operand for the operand that is to
6986         be forced to memory by the expander.  Lose the constraints.
6988 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
6990         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
6991         EH return when delayed branches are disabled.
6993 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
6995         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
6996         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
6997         calculation.
6998         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
6999         Simplify MODE_V1DF and MODE_V2SF handling.
7000         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
7001         Simplify MODE_SF handling.
7003 2011-06-04  Jan Hubicka  <jh@suse.cz>
7005         PR tree-optimization/48893
7006         PR tree-optimization/49091
7007         PR tree-optimization/49179
7008         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
7009         Bounds check.
7011 2011-06-04  Jan Hubicka  <jh@suse.cz>
7013         PR lto/48954
7014         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
7015         bitmaps.
7017 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
7019         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
7021 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
7023         PR target/49281
7024         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
7025         to be strictly smaller than 1 << shiftcount.
7027 2011-06-04  Jan Hubicka  <jh@suse.cz>
7029         PR tree-optimize/48929
7030         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
7031         of empty predicate.
7033 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
7035         PR debug/48333
7036         * calls.c (emit_call_1): Prefer the __builtin declaration of
7037         builtin functions.
7039 2011-06-03   Diego Novillo  <dnovillo@google.com>
7041         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
7042         (lto_input_tree_pointers): Likewise.
7043         * lto-streamer-out.c (pack_value_fields): Likewise.
7044         (lto_output_tree_pointers): Likewise.
7045         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
7046         and OPTIMIZATION_NODE.
7048 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7050         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
7051         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
7052         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
7053         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
7054         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
7055         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
7056         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
7057         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
7058         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
7059         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
7060         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
7061         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
7062         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
7063         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
7064         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
7065         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
7066         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
7067         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
7068         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
7069         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
7070         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
7071         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
7072         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
7073         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
7074         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
7075         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
7076         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
7077         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
7078         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
7079         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
7080         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
7081         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
7082         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
7083         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
7084         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
7085         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
7086         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
7087         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
7088         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
7089         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
7090         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
7091         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
7092         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
7093         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
7094         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
7095         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
7096         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
7097         * system.h (MD_UNWIND_SUPPORT): Poison.
7098         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
7099         * doc/tm.texi: Regenerate.
7100         * unwind-dw2.c: Include md-unwind-support.h instead of
7101         MD_UNWIND_SUPPORT.
7102         * config/ia64/unwind-ia64.c: Likewise.
7103         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
7105 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
7107         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
7109 2011-06-03  Richard Henderson  <rth@redhat.com>
7110             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7112         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
7113         (sigill_hdlr): Correct insn, insn size.
7114         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
7116 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7118         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
7119         t-slibgcc-dummy.
7120         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
7121         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
7122         * config/mips/t-iris: Remove.
7123         * config/mips/t-irix6: New file.
7124         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
7126 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7128         * Makefile.in (LIB2ADDEHDEP): Remove.
7129         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
7130         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
7131         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
7132         * config/t-darwin (LIB2ADDEHDEP): Remove.
7133         * config/t-freebsd (LIB2ADDEHDEP): Remove.
7134         * config/t-linux (LIB2ADDEHDEP): Remove.
7136 2011-06-03  Diego Novillo  <dnovillo@google.com>
7138         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
7139         (lto_register_var_decl_in_symtab): Likewise.
7140         (lto_register_function_decl_in_symtab): Likewise.
7141         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
7142         logic to uniquify_nodes.
7144 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7146         * config/alpha/t-osf5: Remove.
7147         * config/alpha/t-osf-pthread: Remove.
7148         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
7149         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
7151 2011-06-03  Julian Brown  <julian@codesourcery.com>
7153         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
7154         (strongarm1110): Use strongarm tuning.
7155         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
7156         * config/arm/arm.c (arm_strongarm_tune): New.
7157         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
7158         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
7159         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
7160         setting, using previous defaults or 1 for Cortex-A5.
7161         (arm_option_override): Set max_insns_skipped from current tuning.
7163 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
7165         * doc/install.texi (Options specification): Document --with-specs.
7167 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7169         * config/arm/neon.md (orndi3_neon): Actually split it.
7171 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
7173         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
7174         * var-tracking.c (reverse_op): Limite recurse depth to 5.
7176 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
7178         PR debug/47590
7179         * target.def (delay_sched2, delay_vartrack): New.
7180         * doc/tm.texi.in: Update.
7181         * doc/tm.texi: Rebuild.
7182         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
7183         * var-tracking.c (gate_handle_var_tracking): Likewise.
7184         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
7185         (bfin_flag_var_tracking): Drop.
7186         (output_file_start): Don't save and override flag_var_tracking.
7187         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
7188         (bfin_reorg): Test original variables.
7189         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7190         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
7191         (ia64_flag_var_tracking): Drop.
7192         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7193         (ia64_file_start): Don't save and override flag_var_tracking.
7194         (ia64_override_options_after_change): Ditto
7195         flag_schedule_insns_after_reload.
7196         (ia64_reorg): Test original variables.
7197         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
7198         (picochip_flag_var_tracking): Drop.
7199         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7200         (picochip_option_override): Don't save and override
7201         flag_schedule_insns_after_reload.
7202         (picochip_asm_file_start): Ditto flag_var_tracking.
7203         (picochip_reorg): Test original variables.
7204         * config/spu/spu.c (spu_flag_var_tracking): Drop.
7205         (TARGET_DELAY_VARTRACK): Define.
7206         (spu_var_tracking): New.
7207         (spu_machine_dependent_reorg): Call it.
7208         (asm_file_start): Don't save and override flag_var_tracking.
7210 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
7212         PR target/49163
7213         * config/sh/predicates.md (general_movsrc_operand): Return 0
7214         for memory and memory subreg of which address is an invalid
7215         indexed address for QI and HImode.
7216         (general_movdst_operand): Likewise.
7218 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
7220         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
7221         edges only, when there is a non-local label in the function.
7222         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
7224 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
7226         * config/i386/constraints.md (Y3): New register constraint.
7227         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
7228         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
7229         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
7230         *sse2_interleave_lowv2df.
7232 2011-06-02  Julian Brown  <julian@codesourcery.com>
7234         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
7235         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
7236         (arm_cortex_a5_tune): New.
7238 2011-06-02  Julian Brown  <julian@codesourcery.com>
7240         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
7241         * config/arm/arm.c (arm_default_branch_cost): New.
7242         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
7243         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
7244         (arm_fa726_tune): Set branch_cost field using
7245         arm_default_branch_cost.
7246         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
7247         current_tune structure.
7248         * dojump.c (tm_p.h): Include file.
7250 2011-06-02  Julian Brown  <julian@codesourcery.com>
7252         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
7253         tuning.
7254         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
7255         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
7256         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
7257         field.
7258         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
7259         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
7260         (arm_fa726te_tune): Add prefer_constant_pool setting.
7261         (arm_v6t2_tune, arm_cortex_tune): New.
7262         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
7263         prefer_constant_pool setting.
7265 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
7267         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
7268         switch statement.
7269         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
7270         (*movdf_internal) <case 6,7,8>: Ditto.
7272         * config/i386/constraints.md (Y4): New register constraint.
7273         * config/i386/sse.md (vec_set<mode>_0): Merge with
7274         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
7275         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
7276         *vec_extractv2di_1_sse.
7277         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
7278         and *vec_concatv2di_rex64_sse.
7280 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
7282         PR target/48807
7283         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
7284         of cgraph_local_info for null before attempting to use it.
7286 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
7288         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
7289         (current_function_dynamic_alloc_count): Delete.
7290         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
7291         (expand_builtin_nonlocal_goto): Remove obsolete comment.
7292         (expand_builtin_update_setjmp_buf): Remove dead code.
7293         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
7294         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
7295         support.
7296         * function.c (instantiate_virtual_regs): Likewise.
7297         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
7298         for a block with a single abnormal incoming edge.
7299         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
7300         (SETJMP_VIA_SAVE_AREA): Delete.
7301         * config/sparc/sparc-protos.h (load_got_register): Declare.
7302         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
7303         (load_got_register): Make global.
7304         (sparc_frame_pointer_required): Add 'static'.
7305         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
7306         (sparc_builtin_setjmp_frame_value): New function.
7307         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
7308         (save_stack_nonlocal): New expander.
7309         (restore_stack_nonlocal): Likewise.
7310         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
7311         (nonlocal_goto_internal): New insn.
7312         (goto_handler_and_restore): Delete.
7313         (builtin_setjmp_setup): Likewise.
7314         (do_builtin_setjmp_setup): Likewise.
7315         (setjmp): Likewise.
7316         (builtin_setjmp_receiver): New expander.
7318 2011-06-01  David Li  <davidxl@google.com>
7320         PR middle-end/49261
7321         * tree-pretty-print.c (dump_function_header): Format cleanup.
7323 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
7325         PR target/49238
7326         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
7327         needed when original operands are used for msw_skip comparison.
7329 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
7331         PR debug/49250
7332         * var-tracking.c (add_uses, add_stores): Don't call
7333         cselib_subst_to_values on ENTRY_VALUE.
7335 2011-06-01  Diego Novillo  <dnovillo@google.com>
7337         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
7338         output_record_start with LTO_null instead of output_zero.
7339         (lto_output_ts_binfo_tree_pointers): Likewise.
7340         (lto_output_tree): Likewise.
7341         (output_eh_try_list): Likewise.
7342         (output_eh_region): Likewise.
7343         (output_eh_lp): Likewise.
7344         (output_eh_regions): Likewise.
7345         (output_bb): Likewise.
7346         (output_function): Likewise.
7347         (output_unreferenced_globals): Likewise.
7348         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
7349         instead of NUM_TREE_CODES.
7350         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
7351         (lto_output_int_in_range): Change << to >> when shifting VAL.
7353 2011-06-01  Diego Novillo  <dnovillo@google.com>
7355         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
7356         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
7358 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7360         PR target/45074
7361         * optabs.h (valid_multiword_target_p): Declare.
7362         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
7363         doing multi-word operations.
7364         * optabs.c (expand_binop): Likewise.
7365         (expand_doubleword_bswap): Likewise.
7366         (expand_absneg_bit): Likewise.
7367         (expand_unop): Likewise.
7368         (expand_copysign_bit): Likewise.
7369         (multiword_target_p): New function.
7371 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7373         PR rtl-optimization/48830
7374         PR rtl-optimization/48808
7375         PR rtl-optimization/48792
7376         * reload.c (push_reload): Check contains_reg_of_mode.
7377         * reload1.c (strip_paradoxical_subreg): New function.
7378         (gen_reload_chain_without_interm_reg_p): Use it to handle
7379         paradoxical subregs.
7380         (emit_output_reload_insns, gen_reload): Likewise.
7382 2011-06-01  David Li  <davidxl@google.com>
7384         * predict.c : Change pass name
7385         * ipa.c: Ditto.
7386         * dce.c: Ditto.
7387         * tree-profile.c: Ditto.
7388         * except.c: Ditto.
7390 2011-06-01  David Li  <davidxl@google.com>
7392         * tree-pretty-print.c (dump_function_header): New function.
7393         * final.c (rest_of_clean_state): Use header dumper.
7394         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
7395         * passes.c (pass_init_dump_file): Use header dumper.
7397 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
7399         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
7400         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
7401         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
7402         New functions.
7403         (mem_loc_descriptor): Use them.
7405         * var-tracking.c (create_entry_value): New function.
7406         (vt_add_function_parameter): Use it.
7408 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7410         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
7411         Include <signal.h>, <ucontext.h>.
7412         (sigill_caught): Define.
7413         (sigill_hdlr): New function.
7414         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
7415         insns can be executed.
7416         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
7417         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
7419 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7421         * config/t-slibgcc-darwin: Move to ...
7422         * config/t-slibgcc-dummy: ... this.  Clarify comments.
7423         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
7424         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
7425         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
7426         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
7427         Remove i386/t-crtstuff from tmake_file.
7428         (i[34567]86-*-solaris2*): Remove t-svr4,
7429         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
7430         t-slibgcc-dummy.
7431         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
7432         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
7433         sparc/t-crtfm from tmake_file.
7434         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
7435         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
7436         Remove extra_parts.
7437         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
7438         * config/i386/t-nwld (SHLIB_LINK): Remove.
7439         * config/i386/t-rtems-i386: Rename to ...
7440         * config/i386/t-rtems: ... this.
7441         ($(T)crti.o, $(T)crtn.o): Remove.
7442         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
7443         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
7444         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
7445         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
7446         EXTRA_MULTILIB_PARTS): Remove.
7447         * config/sparc/t-sol2-64: Likewise.
7448         * config/sparc/t-sol2: Remove.
7449         * config/sparc/t-crtin: Remove.
7450         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
7451         * config/i386/gmon-sol2.c: Remove.
7452         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
7453         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
7454         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
7455         * config/i386/sol2-gc1.asm: Remove.
7456         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
7457         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
7458         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
7459         * config/t-slibgcc-sld: Remove.
7461 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
7463         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
7464         base_type_for_mode with op_mode instead of mode.
7466 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
7468         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
7469         Cortex-A15.
7470         * config/arm/arm-tune.md: Regenerate.
7471         * config/arm/arm-tables.opt: Regenerate.
7472         * config/arm/arm.c (FL_DIV): Rename...
7473         (FL_THUMB_DIV): ... to this.
7474         (FL_ARM_DIV): Define.
7475         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
7476         (arm_arch_hwdiv): Remove.
7477         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
7478         (arm_issue_rate): Add cortexr5.
7479         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
7480         __ARM_ARCH_EXT_IDIV__.
7481         (TARGET_IDIV): Define.
7482         (arm_arch_hwdiv): Remove.
7483         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
7484         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
7485         (divsi3, udivsi3): New patterns.
7486         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
7487         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
7489 2011-06-01  Martin Jambor  <mjambor@suse.cz>
7491         * ipa-utils.c (ipa_dfs_info): New field scc_no.
7492         * ipa-utils.c (searchc): Set scc_no.
7494 2011-06-01  Martin Jambor  <mjambor@suse.cz>
7496         * ipa-utils.c (searchc_env): New field allow_overwritable.
7497         (searchc): do not ignore edges to overwritable nodes if indicated
7498         by env->allow_overwritable.
7499         (ipa_reduced_postorder): Set env.allow_overwritable.
7501 2011-06-01  Richard Guenther  <rguenther@suse.de>
7503         * tree.c (free_lang_data): Do not reset boolean_type_node nor
7504         char_type_node.
7505         * lto-streamer.c (lto_record_common_node): Take node pointer,
7506         do not register types.
7507         (lto_preload_common_nodes): Explicitly skip preloading nodes
7508         that differ between frontends.
7510 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
7512         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
7513         NON_FLOAT_REGS.
7515 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
7517         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
7518         parameter value for dump. Dump cost on outermost call only.
7519         (rs6000_memory_move_cost): Dump cost on outermost call only.
7521 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
7523         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
7524         DW_OP_GNU_convert ops.
7526         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
7527         cselib_preserve_constants.
7528         (cselib_lookup_1): If cselib_preserve_constants,
7529         a new VALUE is being created for REG and there is a VALUE for the
7530         same register in wider mode, add another loc with lowpart SUBREG of
7531         the wider VALUE.
7532         (cselib_subst_to_values): Handle ENTRY_VALUE.
7533         * var-tracking.c  (replace_expr_with_values): Return NULL for
7534         ENTRY_VALUE too.
7535         * dwarf2out.c (convert_descriptor_to_signed): New function.
7536         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
7537         instead of two shifts.
7538         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
7539         the right mode if needed.
7540         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
7541         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
7542         convert_descriptor_to_signed.
7543         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
7544         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
7546         PR target/48688
7547         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
7549 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
7551         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
7552         of X87MODEI12 and SWI48x instead of SSEMODEI24.
7553         (SWI248x): New mode iterator, rename from X87MODEI.
7554         (X87MODEI): Remove mode iterator.
7555         (X87MODEI12): Ditto.
7556         (SSEMODEI24): Ditto.
7558 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
7560         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
7561         * doc/invoke.texi: Document max-vartrack-expr-depth.
7562         * var-tracking.c (EXPR_DEPTH): New.
7563         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
7565 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
7567         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
7568         * config/i386/sse.md: Add n to negated FMA pattern names.
7570 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
7572         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
7574 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
7576         * gengtype-state.c (read_state_params_structs): Initialize previous.
7578 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
7580         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
7581         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
7583 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
7585         * config/i386/i386.md (*movtf_internal): Avoid allocating general
7586         registers.  Penalize F*r->o alternative to prevent partial memory
7587         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
7588         CONST_DOUBLE immediates when optimizing function for size.  Do not move
7589         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
7590         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
7591         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
7592         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
7593         alternatives.
7594         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
7596         (fp_register_operand splitters): Use fp_register_operand
7597         constraint.  Do not use FP_REG_P in insn condition.
7598         (any_fp_register_operand splitters): Use any_fp_register_operand
7599         constraint.  Do not use ANY_FP_REG_P in insn condition.
7601 2011-05-31  Jan Hubicka  <jh@suse.cz>
7603         * cgraph.h (cgraph_inline_failed_t): Give enum a name
7604         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
7605         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
7606         (lto_output_edge): Use output_enum and var_len_unsigned.
7607         (lto_output_varpool_node): Likewise.
7608         (input_overwrite_node): Do not take resolution parameter;
7609         extract it from a bitpack.
7610         (input_node): Do not read resolution; use input_enum and
7611         var_len_unsigned.
7612         (input_varpool_node): Likewise.
7613         (input_edge): Likewise.
7614         (input_cgraph_1): Likewise.
7616 2011-05-31  Richard Guenther  <rguenther@suse.de>
7618         * gimple.c (gimple_register_canonical_type): Do not register
7619         any types via gimple_register_type.
7621 2011-05-31  Jan Hubicka  <jh@suse.cz>
7623         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
7624         of thunks.
7626 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
7628         PR rtl-optimization/49235
7629         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
7630         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
7632 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
7634         PR tree-optimization/49093
7635         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
7636         data references.
7638 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
7640         PR debug/49047
7641         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
7642         for concrete functions containing the code of cloned functions.
7644 2011-05-31  Richard Guenther  <rguenther@suse.de>
7646         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
7647         to ...
7648         (forward_propagate_into_comparison_1): ... this.
7649         (forward_propagate_comparison): Rename to ...
7650         (forward_propagate_into_comparison): ... this.  Split out
7651         real forward propagation code to ...
7652         (forward_propagate_comparison): ... this.
7653         (forward_propagate_into_gimple_cond): Remove looping.
7654         (forward_propagate_into_cond): Likewise.
7655         (simplify_not_neg_expr): Return whether we have done something.
7656         (simplify_gimple_switch): Likewise.
7657         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
7658         (ssa_forward_propagate_and_combine): ... this.  Re-structure
7659         to do a forward forward-propagation walk on BBs and a backward
7660         stmt combining walk on BBs.  Consistently re-scan changed statements.
7661         (pass_forwprop): Adjust.
7663 2011-05-30  Ian Lance Taylor  <iant@google.com>
7665         * godump.c (go_format_type): Correct length of name added to
7666         obstack for anonymous field.
7668 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
7670         PR target/49186
7671         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
7672         part of the second operand is 0.
7674 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
7676         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
7677         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
7678         to memory for !TARGET_MEMORY_MISMATCH_STALL.
7679         (*movdf_internal_rex64): Do not penalize F->r alternative.
7680         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
7681         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
7682         when optimizing function for size.  Do not move CONST_DOUBLEs
7683         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
7684         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
7685         SUBREGs.  Do not check for MEM_P operands in the insn condition,
7686         check for ANY_FP_REGNO_P instead.
7687         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
7688         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
7689         function for speed.
7690         * config/i386/i386.c (ix86_option_override_internal): Do not
7691         set TARGET_INTEGER_DFMODE_MOVES here.
7693 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
7695         PR target/49168
7696         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
7698 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
7700         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
7701         DW_TAG_rvalue_reference_type even for
7702         -gdwarf-4 -fno-debug-types-section.
7704 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7706         PR tree-optimization/46728
7707         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
7708         (build_and_insert_binop): New.
7709         (gimple_expand_builtin_pow): Reorder args for
7710         build_and_insert_call; use build_and_insert_binop; add more
7711         optimizations for fractional exponents.
7713 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
7715         PR bootstrap/49190
7717         Revert:
7718         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7720         * tree.h (struct tree_identifier): Inherit from tree_typed, not
7721         tree_common.
7722         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
7723         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
7724         TS_BASE instead of TS_COMMON.
7725         * varasm.c (assemble_name): Remove assert.
7727 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
7729         * config.gcc: Keep obselete list sorted.
7731 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
7732             Eric Botcazou  <ebotcazou@adacore.com>
7734         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
7735         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
7736         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
7737         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
7738         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
7740 2011-05-30  Richard Guenther  <rguenther@suse.de>
7742         * gimple.c (gimple_types_compatible_p_1): Compare record
7743         and union type members properly.
7745 2011-05-30  Richard Guenther  <rguenther@suse.de>
7747         PR tree-optimization/49210
7748         * ipa-split.c (split_function): Care for the case where the call
7749         result is not trivially convertible to the result holding variable.
7751 2011-05-30  Richard Guenther  <rguenther@suse.de>
7753         PR tree-optimization/49218
7754         * tree-vrp.c (adjust_range_with_scev): Properly check whether
7755         overflow occured.
7757 2011-05-30  Richard Guenther  <rguenther@suse.de>
7759         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
7760         New function split out from ...
7761         (forward_propagate_into_gimple_cond): ... here.  Adjust.
7762         (forward_propagate_into_cond): Likewise.
7763         (forward_propagate_comparison): Also propagate into
7764         comparisons on assignment RHS.  Change return value to
7765         behave similar to forward_propagate_into_cond.
7766         (tree_ssa_forward_propagate_single_use_vars): Handle
7767         strict-overflow warnings properly for forward_propagate_comparison.
7769 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7771         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
7772         from plugin linker.
7773         * configure: Regenerate.
7775 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
7777         PR tree-optimization/49199
7778         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
7779         non-reduction operands are either defined in the loop or by induction.
7781 2011-05-29  Xinliang David Li  <davidxl@google.com>
7783         * opts-global.c (handle_common_deferred_options): Handle new options.
7784         * passes.c (register_one_dump_file): Call register_pass_name.
7785         (execute_one_pass): Check explicit enable/disable flag.
7786         (passr_hash): New function.
7787         (passr_eq): Ditto.
7788         (register_pass_name): Ditto.
7789         (get_pass_by_name): Ditto.
7790         (pass_hash): Ditto.
7791         (pass_eq): Ditto.
7792         (enable_pass): Ditto.
7793         (disable_pass): Ditto.
7794         (is_pass_explicitly_enabled_or_disabled): Ditto.
7796 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
7798         * config/i386/i386.md (*movoi_internal_avx): Use
7799         standard_sse_constant_opcode for alternative 0.
7800         (*movti_internal_sse): Ditto.
7801         (*movti_internal_rex64): Use standard_sse_constant_opcode for
7802         alternative 2.
7803         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
7804         sselog1 type moves.
7805         (*movsi_internal): Ditto.
7806         (*movdi_internal): Ditto.  Add ssecvt type moves.
7808 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
7810         PR target/48830
7811         * rtlanal.c (simplify_subreg_regno): Adjust comment.
7813 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
7815         PR rtl-optimization/49095
7816         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
7817         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
7819 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
7821         PR target/43995
7822         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
7823         recurse_p argument.  Only follow register copies if it is set,
7824         and prevent mips_find_pic_call_symbol from recursing.
7825         (mips_find_pic_call_symbol): Add a recurse_p argument.
7826         Pass it to mips_pic_call_symbol_from_set.
7827         (mips_annotate_pic_calls): Update accordingly.
7829 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
7831         * emit-rtl.c (try_split): Use a loop to search for
7832         NOTE_INSN_CALL_ARG_LOCATIONs.
7834 2011-05-29  Richard Guenther  <rguenther@suse.de>
7836         PR tree-optimization/49217
7837         * ipa-pure-const.c (propagate_pure_const): Fix typos.
7839 2011-05-28  Jan Hubicka  <jh@suse.cz>
7841         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
7842         length.
7843         (string_slot_free): Remove
7844         (create_output_block): Initialize obstack.
7845         (destroy_output_block): Free obstack.
7846         (lto_string_index): Add PERSISTENT parameter; do not duplicate
7847         the string unless it needs to be added into the hash.
7848         (lto_output_string_with_length): Add persistent attribute;
7849         handle NULL strings.
7850         (lto_output_string): Add PERSISTENT parameter.
7851         (output_string_cst, output_identifier): Simplify.
7852         (lto_output_location_bitpack): Update.
7853         (lto_output_builtin_tree): Update.
7854         * lto-streamer.h (struct output_block): Add obstack.
7855         (lto_output_string, lto_output_string_with_length): Remove
7856         declarations; functions are static now.
7858 2011-05-28  Jan Hubicka  <jh@suse.cz>
7860         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
7861         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
7862         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
7863         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
7864         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
7865         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
7866         unpack_ts_decl_with_vis_value_fields,
7867         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
7868         lto_get_builtin_tree): Use enum and variable length i/o.
7869         * basic-block.h (profile_status_d): Add PROFILE_LAST.
7870         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
7871         New functions.
7872         (bp_pack_enum, bp_unpack_enum): New macros.
7874 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7876         * genrecog.c: Remove redundant forward declarations.
7878 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7880         * config.gcc: Deprecate mips*-*-openbsd*.
7882 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7884         PR bootstrap/49195
7885         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
7886         for match_op_dup.
7888 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
7890         PR middle-end/48981
7891         * gengtype.c (vec_prefix_type): New function.
7892         (note_def_vec): Use vec_prefix_type and change the length
7893         attribute to be based on the prefix.
7894         * vec.c: Include coretypes.h before vec.h.
7895         (struct vec_prefix): Remove.
7896         (vec_gc_p_reserve): Change the offsetof to sizeof.
7897         (vec_gc_p_reserve_exact): Likewise.
7898         (vec_heap_p_reserve): Likewise.
7899         (vec_heap_p_reserve_exact): Likewise.
7900         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
7901         (vec_stack_p_reserve): Change the offsetof to sizeof.
7902         (vec_stack_p_reserve_exact): Likewise.
7903         * vec.h (struct vec_prefix): New struct definition.
7904         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
7905         (VEC_T_GTY(T,B)): Likewise.
7906         (DEF_VEC_FUNC_P(T)): Use prefix field.
7907         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
7908         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
7910 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7912         PR tree-optimization/46728
7913         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
7914         (powi_as_mults): Add gimple_set_location.
7915         (build_and_insert_call): New.
7916         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
7917         0.5, 0.25, 0.75, 1./3., or 1./6.
7919 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
7921         * doc/contrib.texi: Update copyright years.
7922         (Contributors): Add Zdenek Sojka.
7924 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
7926         * c-decl.c (c_push_function_context): Copy the current statement
7927         list stack.
7928         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
7929         (finish_struct): Call building_stmt_list_p instead of checking
7930         cur_stmt_list.
7931         * c-parser.c (c_parser_postfix_expression): Likewise.
7932         * c-typeck.c (c_end_compound_stmt): Likewise.
7933         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
7934         * tree-iterator.c (stmt_list_cache): Change to a VEC.
7935         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
7936         (free_stmt_list): Likewise.
7937         * tree.h (struct tree_statement_list): Include typed_tree instead
7938         of tree_common.
7939         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
7940         as TS_TYPED instead of TS_COMMON.
7942 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7943             Uros Bizjak  <ubizjak@gmail.com>
7945         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
7946         (HAVE_AS_IX86_TLSGDPTL): Define.
7947         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
7948         (HAVE_AS_IX86_TLSLDMPLT): Define.
7949         * configure: Regenerate.
7950         * config.in: Regenerate.
7951         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
7952         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
7953         TARGET_SUN_TLS, use @tlsgdplt or @plt.
7954         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
7955         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
7956         @tlsldmplt or @plt.
7957         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
7959 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
7961         * sched-int.h (struct _haifa_deps_insn_data): New members cond
7962         and reverse_cond.
7963         (INSN_COND, INSN_REVERSE_COND): New macros.
7964         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
7965         once.
7966         (sched_get_condition_with_rev): Cache the results, and look them up
7967         if possible.
7968         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
7969         are clobbered by the current insn.
7970         * target.def (exposed_pipline): New sched data hook.
7971         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
7972         * doc/tm.texi: Regenerate.
7974 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7976         PR tree-optimization/49170
7977         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
7978         sincos or cexp.
7980 2011-05-27  Richard Guenther  <rguenther@suse.de>
7982         PR middle-end/49189
7983         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
7984         of comparisons.
7986 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
7988         * haifa-sched.c (sched_scan_info): Remove.
7989         (schedule_block): Call sched_extend_luids rather than sched_init_luids
7990         with NULL args.
7991         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
7992         Remove functions.
7993         (sched_scan): Remove.
7994         (sched_extend_luids): Renamed from luids_extend_insn and no longer
7995         static.  All callers changed.
7996         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
7997         static.  All callers changed.
7998         (sched_init_luids): Remove all arguments except the first.  All
7999         callers changed.  Don't use sched_scan.
8000         (haifa_init_h_i_d): Likewise.
8001         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
8002         manually rather than using sched_init_luids.  Likewise with
8003         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
8004         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
8005         rather than sched_init_luids with NULL args.
8006         * sel-sched-ir.c (new_insns): Remove variable.
8007         (sched_scan): New static function, previously in haifa-sched.c.  Remove
8008         all arguments but the first two; all callers changed.
8009         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
8010         rather than sched_init_luids.
8011         (sel_init_bbs): Remove second argument.  All callers changed.
8012         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
8013         with NULL arguments.
8014         (create_insn_rtx_from_pattern): Likewise.
8015         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
8016         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
8017         (sched_init_insn_luid, sched_extend_luids): Declare.
8018         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
8019         declarations.
8021 2011-05-27  Richard Guenther  <rguenther@suse.de>
8023         PR middle-end/49177
8024         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
8025         A CMP B ? (T) true : (T) false for non-integral types T again.
8027 2011-05-27  Jan Hubicka  <jh@suse.cz>
8029         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
8030         so 0 means NULL string.
8031         (lto_output_string_with_length): ... here.
8032         (lto_output_string, output_string_cst, output_identifier): Update
8033         handling of NULL strings.
8034         (lto_output_location_bitpack): New function.
8035         (lto_output_location): Use it.
8036         (lto_output_tree_ref): Use output_record_start.
8037         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
8038         len values.
8039         * lto-streamer-in.c (string_for_index): Break out from ...; offset
8040         values by 1.
8041         (input_string_internal): ... here;
8042         (input_string_cst, input_identifier, lto_input_string): Update handling
8043         of NULL strings.
8044         (lto_input_location_bitpack): New function
8045         (lto_input_location): Use it.
8046         (unpack_ts_type_common_value_fields): Pack align & alias in var len
8047         values.
8048         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
8049         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
8050         (bp_pack_value): Sanity check the value range.
8051         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
8052         New functions.
8053         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
8054         New functions.
8056 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
8058         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
8059         call_arg_location instructions down the floor.
8061 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
8063         PR rtl-optimization/49154
8064         * ira.c (setup_pressure_classes): Process class without sublcasses
8065         as a candidate for pressure classes.
8067 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
8069         PR rtl-optimization/48575
8070         * genrecog.c (position_type): New enum.
8071         (position): New structure.
8072         (decision): Use position structure instead of a string.
8073         (root_pos, peep2_insn_pos_list): New variables.
8074         (next_position, compare_positions): New functions.
8075         (new_decision): Use position structures instead of strings.
8076         (maybe_both_true): Likewise.
8077         (change_state): Likewise.
8078         (write_tree): Likewise.
8079         (make_insn_sequence): Likewise.
8081 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
8083         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
8084         TS_BASE instead of TS_COMMON.
8085         (find_decls_types_r): Check for TS_TYPED structure before looking at
8086         TREE_TYPE.
8087         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
8088         Add chain field.
8089         (BLOCK_CHAIN): Use new chain field.
8091 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
8093         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
8094         moves expensive on Power7 also.
8096 2011-05-26  Richard Guenther  <rguenther@suse.de>
8098         * fold-const.c (fold_unary_loc): Remove bogus code.
8100 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
8102         * tree.h (struct tree_identifier): Inherit from tree_typed, not
8103         tree_common.
8104         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
8105         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
8106         TS_BASE instead of TS_COMMON.
8107         * varasm.c (assemble_name): Remove assert.
8109 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
8111         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
8112         substituted first.
8113         * libgcc-std.ver: Delete file.
8115 2011-05-26  Richard Guenther  <rguenther@suse.de>
8117         PR tree-optimization/48702
8118         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
8119         only when we know the base address is within bounds.
8120         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
8121         assume the base address of TARGET_MEM_REFs is in bounds.
8123 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8125         PR target/49099
8126         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
8127         declaration in TARGET_SOLARIS.
8129 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
8131         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
8132         The instruction is then expanded explicitly.
8133         (supported_compare): Callable instruction.
8134         (compare): Likewise.
8136 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
8138         PR c++/49165
8139         * gimplify.c (shortcut_cond_r): Don't special case
8140         COND_EXPRs if they have void type on one of their arms.
8142 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
8144         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
8145         to reduce duplication, and to achieve a slightly more logical order
8146         of operations.
8148 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
8150         PR tree-optimization/49161
8151         * tree-vrp.c (struct case_info): New type.
8152         (compare_case_labels): Sort case_info structs instead of
8153         trees, and not primarily by CASE_LABEL uids but by
8154         label_for_block indexes.
8155         (find_switch_asserts): Put case labels into struct case_info
8156         array instead of TREE_VEC, adjust sorting, compare label_for_block
8157         values instead of CASE_LABELs.
8159 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8161         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
8162         ("orndi3_neon"): Likewise.
8163         ("bic<mode>3_neon"): Likewise.
8165 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
8167         PR tree-optimization/49038
8168         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
8169         Ensure at least one epilogue iteration if required by data
8170         accesses with gaps.
8171         * tree-vectorizer.h (struct _loop_vec_info): Add new field
8172         to mark loops that require peeling for gaps.
8173         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
8174         (vect_get_known_peeling_cost): Take peeling for gaps into
8175         account.
8176         (vect_transform_loop): Generate epilogue if required by data
8177         access with gaps.
8178         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
8179         loop as requiring an epilogue if there are gaps in the end of
8180         the strided group.
8182 2011-05-25  Ian Lance Taylor  <iant@google.com>
8184         * godump.c (go_format_type): Output the first field with a usable
8185         Go type, if any.
8187 2011-05-25  Ian Lance Taylor  <iant@google.com>
8189         * godump.c (go_format_type): Check for invalid type names, pointer
8190         target types, and struct field types.
8192 2011-05-25  Jason Merrill  <jason@redhat.com>
8194         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
8196 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
8198         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
8200 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8202         * config/i386/i386.md (*movqi_extv_1)): Put back
8203         "register_operand" check in "type" calculation.
8204         (*movqi_extzv_2): Likewise.
8206 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8208         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
8210 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
8212         PR bootstrap/49160
8213         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
8214         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
8215         __divxc3, __divtc3): Wrap definitions in #ifndef.
8217 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8219         PR target/49142
8220         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
8221         "register_operand" check and replace q_regs_operand with
8222         QIreg_operand in "type" calculation.
8223         (*movqi_extv_1): Likewise.
8224         (*movqi_extzv_2_rex64): Likewise.
8225         (*movqi_extzv_2): Likewise.
8227         * config/i386/predicates.md (QIreg_operand): New.
8229 2011-05-25  Richard Guenther  <rguenther@suse.de>
8231         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
8232         type-based offset disambiguation, streamline MEM_REF and
8233         TARGET_MEM_REF handling.
8235 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8237         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
8238         (bdesc_special_args): Add pause intrinsic.
8240         * config/i386/i386.md (UNSPEC_PAUSE): New.
8241         (pause): Likewise.
8242         (*pause): Likewise.
8243         * config/i386/ia32intrin.h (__pause): Likewise.
8245         * doc/extend.texi (X86 Built-in Functions): Add documentation for
8246         pause intrinsic.
8248 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8250         PR tree-optimization/46728
8251         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
8252         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
8254 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
8256         * tree.h (struct tree_exp): Inherit from struct tree_typed.
8257         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
8258         instead of TS_COMMON.
8260 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
8262         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
8263         LIBGCC2_GNU_PREFIX is defined.
8264         (__N): New macro.
8265         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
8266         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
8267         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
8268         __clz_tab): Define using __N.
8269         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
8270         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
8271         * target.def (libfunc_gnu_prefix): New hook.
8272         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
8273         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
8274         * doc/tm.texi: Regenerate.
8275         * system.h (LIBGCC2_GNU_PREFIX): Poison.
8276         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
8277         account.
8278         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
8279         (init_optabs): Likewise for the bswap libfuncs.
8280         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
8281         and divide.
8282         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
8283         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
8284         * libgcc-std.ver: Remove.
8285         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
8286         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
8287         libgcc-std.ver.
8288         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8289         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
8290         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
8291         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
8292         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
8293         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8294         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8295         * config/fixed-bit.h (FIXED_OP): Define differently depending on
8296         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
8297         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
8299 2011-05-25  Jan Hubicka  <jh@suse.cz>
8301         * lto-streamer-out.c (output_record_start): Use lto_output_enum
8302         (lto_output_tree): Use output_record_start.
8303         * lto-streamer-in.c (input_record_start): Use lto_input_enum
8304         (lto_get_pickled_tree): Use input_record_start.
8305         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
8306         (lto_value_range_error): New function.
8307         * lto-streamer.h (lto_value_range_error): Declare.
8308         (lto_output_int_in_range, lto_input_int_in_range): New functions.
8309         (lto_output_enum, lto_input_enum): New macros.
8311 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8313         * common.opt (flag_stack_usage_info): New variable.
8314         (-Wstack-usage): New option.
8315         * doc/invoke.texi (Warning options): Document -Wstack-usage.
8316         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
8317         <OPT_fstack_usage>: Likewise.
8318         * toplev.c (output_stack_usage): Handle -Wstack-usage.
8319         * calls.c (expand_call): Test flag_stack_usage_info variable instead
8320         of flag_stack_usage.
8321         (emit_library_call_value_1): Likewise.
8322         * explow.c (allocate_dynamic_stack_space): Likewise.
8323         * function.c (instantiate_virtual_regs ): Likewise.
8324         (prepare_function_start): Likewise.
8325         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
8326         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
8327         * config/arm/arm.c (arm_expand_prologue): Likewise.
8328         (thumb1_expand_prologue): Likewise.
8329         * config/avr/avr.c (expand_prologue): Likewise.
8330         * config/i386/i386.c (ix86_expand_prologue): Likewise.
8331         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
8332         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
8333         * config/mips/mips.c (mips_expand_prologue): Likewise.
8334         * config/pa/pa.c (hppa_expand_prologue): Likewise.
8335         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8336         * config/s390/s390.c (s390_emit_prologue): Likewise.
8337         * config/sh/sh.c (sh_expand_prologue): Likewise.
8338         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8339         * config/spu/spu.c (spu_expand_prologue): Likewise.
8341 2011-05-25  Richard Guenther  <rguenther@suse.de>
8343         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
8344         (gimple_canonical_types_compatible_p): Likewise.
8346 2011-05-25  Jan Hubicka  <jh@suse.cz>
8348         PR middle-end/49062
8349         * ipa.c (function_and_variable_visibility): Only add to same
8350         comdat group list if DECL_ONE_ONLY.
8352 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
8354         PR rtl-optimization/49014
8355         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
8357 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
8359         PR target/49128
8360         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8362 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
8364         PR rtl-optimization/48757
8365         * ira-build.c (loop_with_eh_edge_p): Rename to
8366         loop_with_complex_edge_p, check edges on complexity, make function
8367         conditional.
8368         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
8369         conditional.
8371 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
8373         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
8374         force flag_ira_share_save_slots to 0.
8376 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
8378         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
8379         (vt_initialize): Set PROLOGUE_BB unconditionally.
8380         Add block comment about CFA_BASE_RTX machinery.
8381         Reset FP_CFA_OFFSET to -1 on all invalid paths.
8382         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
8384 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
8386         PR objc/48187
8387         * c-parser.c (c_parser_objc_class_instance_variables): More robust
8388         parsing of syntax error in ObjC instance variable lists.  In
8389         particular, avoid an infinite loop if there is a stray ']'.
8390         Updated error message.
8392 2011-05-24  Ian Lance Taylor  <iant@google.com>
8394         * godump.c (go_define): Don't accept a string immediately after
8395         another operand.
8397 2011-05-24  Ian Lance Taylor  <iant@google.com>
8399         * godump.c (struct godump_container): Add invalid_hash field.
8400         (go_format_type): Return false if type is found in invalid_hash.
8401         (go_output_typedef): Add invalid type to invalid_hash.
8402         (go_finish): Create and delete invalid_hash.
8404 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8406         PR tree-optimization/46728
8407         * tree-ssa-math-opts.c (powi_table): New.
8408         (powi_lookup_cost): New.
8409         (powi_cost): New.
8410         (powi_as_mults_1): New.
8411         (powi_as_mults): New.
8412         (gimple_expand_builtin_powi): New.
8413         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
8414         (gate_cse_sincos): Remove sincos/cexp restriction.
8416 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8418         PR target/3746
8419         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
8420         mips-tdump native.
8421         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
8422         * mips-tdump.c: Likewise.
8424 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8426         PR target/49128
8427         * config/i386/driver-i386.c (host_detect_local_cpu): Always
8428         add -mno-XXX.  Handle FMA.
8430 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
8432         PR rtl-optimization/48633
8433         * ira-build.c (loop_with_eh_edge_p): New function.
8434         (mark_loops_for_removal): Use it.
8436 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
8438         PR rtl-optimization/48971
8439         * ira.c (setup_pressure_classes): Don't check register move cost
8440         for classes with one registers.  Don't add pressure class if there
8441         is a pressure class with the same available hard registers.
8442         Check contains_reg_of_mode.  Fix a typo in collecting
8443         temp_hard_regset.  Ignore hard registers not belonging to a class.
8445 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
8447         PR target/49133
8448         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
8450 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
8451             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8453         PR gcov-profile/48845
8454         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
8456 2011-05-24  Richard Guenther  <rguenther@suse.de>
8458         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
8459         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
8460         (gimple_types_compatible_p_1): Adjust.
8461         (iterative_hash_canonical_type): Do not bother about complete vs.
8462         incomplete types.
8463         (gimple_canonical_types_compatible_p): Likewise.
8465 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8467         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
8469 2011-05-24  Richard Guenther  <rguenther@suse.de>
8471         PR bootstrap/49078
8472         * gimple.c (gimple_register_canonical_type): Revert
8473         previous change.
8474         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
8475         does not for a tree for the case where it matters.  Cache
8476         pointer-type alias-sets.
8478 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
8480         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
8481         (OBJS): Remove options.o, opts-common.o and prefix.o.
8482         (OBJS-libcommon-target): New.
8483         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
8484         (BACKEND): Include libcommon-target.a.
8485         (MOSTLYCLEANFILES): Include libcommon-target.a.
8486         (libcommon-target.a): New.
8487         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
8488         prefix.o.
8490 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
8492         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
8493         parts of output shared with the driver.
8494         * optc-gen.awk: Don't generate parts of output not shared with the
8495         driver.
8496         * opth-gen.awk: Remove GCC_DRIVER conditionals.
8497         * doc/options.texi (SourcerInclude): Mention options-save.c.
8498         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
8499         (OBJS): Add options-save.o.
8500         (options-save.c, options-save.o): New.
8501         (options.o): Update dependencies.
8502         (gcc-options.o): Remove.
8503         (mostlyclean): Remove options-save.c.
8505 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
8507         PR debug/49032
8508         * dbxout.c: Include cgraph.h.
8509         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
8510         and without value expr, return NULL if no varpool node exists for
8511         it or if it is not needed.
8512         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
8514         PR c/49120
8515         * c-decl.c (start_decl): Convert expr to void_type_node.
8517 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
8519         PR rtl-optimization/48826
8520         * emit-rtl.c (try_split): When splitting a call that is followed
8521         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
8523 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
8525         * cfgexpand.c (expand_debug_expr): For unused non-addressable
8526         parameters passed in memory prefer using DECL_INCOMING_RTL over
8527         the pseudos it will be copied into.
8529 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
8531         PR target/47315
8532         * config/i386/i386.c (ix86_option_override_internal): Save the
8533         initial options after checking vzeroupper.
8535 2011-05-23  David Li  <davidxl@google.com>
8537         PR tree-optimization/48988
8538         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
8539         Initialize has_valid_pred for each pred chain.
8541 2011-05-23  Richard Guenther  <rguenther@suse.de>
8543         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
8544         (iterative_hash_gimple_type): Always hash type names.
8546 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
8548         * c-typeck.c (build_function_call_vec): Tweak call to
8549         check_function_arguments.
8551 2011-05-23  Richard Guenther  <rguenther@suse.de>
8553         PR tree-optimization/49115
8554         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
8555         is not necessarily carried out, do not claim it kills the ref.
8556         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
8558 2011-05-23  Richard Guenther  <rguenther@suse.de>
8560         PR middle-end/15419
8561         * builtins.c (fold_builtin_memory_op): Be less restrictive about
8562         what pointer types we accept for folding.
8564 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8566         * gthr-gnat.c: Remove.
8567         * gthr-gnat.h: Remove.
8568         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
8569         * config/t-freebsd (LIB2ADDEH): Likewise.
8570         * config/t-linux (LIB2ADDEH): Likewise.
8571         * config/t-sol2 (LIB2ADDEH): Likewise.
8572         * config/ia64/t-vms (LIB2ADDEH): Likewise.
8573         * configure.ac (target_thread_file): Remove gnat handling.
8574         * configure: Regenerate.
8575         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
8577 2011-05-23  Tristan Gingold  <gingold@adacore.com>
8578             Eric Botcazou  <ebotcazou@adacore.com>
8580         * gcov.c (create_file_names): If no object directory is specified,
8581         keep the directory of the file.
8583 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8585         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
8586         * configure: Regenerate.
8588 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
8590         PR middle-end/48973
8591         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
8592         failed and the comparison has a single bit signed type, use
8593         constm1_rtx instead of const1_rtx for true value.
8594         (do_store_flag): If ops->type is single bit signed type, disable
8595         signel bit test optimization and pass -1 instead of 1 as last
8596         parameter to emit_store_flag_force.
8598 2011-05-23  Tom de Vries  <tom@codesourcery.com>
8600         PR target/45098
8601         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
8602         function.
8603         (infer_loop_bounds_from_undefined): Use new function.
8605 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
8607         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
8608         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
8609         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
8610         and -O0 otherwise.
8611         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
8613 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
8615         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
8616         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
8617         returns true.
8619 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
8621         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
8623 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
8625         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
8626         UNSPEC_MOVE_PIC pattern.
8628 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
8630         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
8631         (sparc-*-rtems*): Likewise.
8632         (sparc64-*-elf*): Likewise.
8633         (sparc64-*-rtems*): Likewise.
8634         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
8635         * config/sparc/t-crtin: New file.
8636         * config/sparc/t-sol2 (crti.o): Delete rule.
8637         (crtn.o): Likewise.
8638         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
8639         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
8640         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
8641         (ENDFILE_SPEC): Add crtn.o.
8643 2011-05-22  Tom de Vries  <tom@codesourcery.com>
8645         PR middle-end/48689
8646         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
8647         CODE_CONTAINS_STRUCT (TS_COMMON).
8649 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
8651         PR middle-end/49029
8652         * expmed.c (extract_fixed_bit_field): Test whether target can be used
8653         only after deciding which mode to use.
8655 2011-05-22  Tom de Vries  <tom@codesourcery.com>
8657         PR target/45098
8658         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
8659         for call to get_shiftadd_cost.
8661 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
8663         PR target/49104
8664         * config/i386/cpuid.h (bit_MMXEXT): New define.
8666 2011-05-22  Nick Clifton  <nickc@redhat.com>
8668         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
8669         initialisation of non-existant args[2] element.  Use args[] array
8670         not arg[] array to pass arguments to build_function_type_list.
8672 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
8674         PR tree-optimization/49087
8675         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
8677 2011-05-21  Jason Merrill  <jason@redhat.com>
8679         PR c++/49092
8680         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
8681         static storage duration.
8683 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8685         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
8686         frame pointer.
8688 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8690         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
8691         false if there are call-saved registers here...
8692         (sparc_can_use_return_insn_p): ...but here instead.
8693         (save_or_restore_regs): Fix thinko.
8694         (sparc_expand_prologue): Use current_function_is_leaf.
8695         (sparc_frame_pointer_required): Likewise.
8697 2011-05-21  Nick Clifton  <nickc@redhat.com>
8699         PR target/49098
8700         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
8702 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8704         * gengtype.c (walk_type): Implemented "atomic" GTY option.
8705         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
8707 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
8709         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
8710         * optc-gen.awk: Move common code to opt-read.awk.
8711         * opth-gen.awk: Likewise.
8712         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
8714 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
8716         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
8718 2011-05-20  Tom de Vries  <tom@codesourcery.com>
8720         PR target/45098
8721         * tree-ssa-loop-ivopts.c: Include expmed.h.
8722         (get_shiftadd_cost): New function.
8723         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
8725 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
8727         PR bootstrap/49086
8728         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
8729         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
8731 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
8733         * Makefile.in: Update comment referring to $(OBJS-common).
8735 2011-05-20  Ian Lance Taylor  <iant@google.com>
8737         * godump.c (go_output_typedef): Put enum constants in the macro
8738         hash table to avoid duplicate Go const definitions.
8740 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
8742         * Makefile.in (LIBDEPS): Add libcommon.a.
8743         (LIBS): Likewise.
8744         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
8745         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
8746         pretty-print.o and version.o.
8747         (OBJS-libcommon): New.
8748         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
8749         (BACKEND): Add libcommon.a.
8750         (MOSTLYCLEANFILES): Likewise.
8751         (libcommon.a): New.
8752         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
8753         (cpp$(exeext)): Likewise.
8754         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
8755         pretty-print.o and input.o.
8756         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
8757         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
8758         (errors.o): Remove.
8759         (mips-tfile): Don't explicitly use version.o.
8760         (mips-tdump): Likewise.
8761         (gcov.o): Depend on $(DIAGNOSTIC_H).
8762         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
8763         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
8764         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
8765         * gcov-dump.c: Include intl.h and diagnostic.h.
8766         (main): Initialize diagnostics.
8767         * gcov.c: Include diagnostic.h.
8768         (fnotice): Remove.
8769         (main): Initialize diagnostics.
8770         * lto-wrapper.c: Include diagnostic.h.
8771         (main): Initialize diagnostics.
8773 2011-05-20  Michael Matz  <matz@suse.de>
8775         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
8777 2011-05-20  Michael Matz  <matz@suse.de>
8778             Richard Guenther  <rguenther@suse.de>
8780         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
8781         use lto_streamer_cache_append directly instead of returning a VEC.
8782         (preload_common_node): Remove.
8783         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
8784         track seen nodes.
8785         (lto_streamer_cache_create): Call lto_preload_common_nodes.
8787 2011-05-20  Richard Guenther  <rguenther@suse.de>
8789         PR tree-optimization/49079
8790         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
8791         MEM_REFs correctly for the trailing array access detection.
8792         Special case constants the same way as decls for overall size
8793         constraining.
8795 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
8797         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
8798         argument expansion.
8800 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
8802         PR tree-optimization/49073
8803         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
8804         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
8805         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
8807 2011-05-20  Richard Guenther  <rguenther@suse.de>
8809         PR middle-end/48849
8810         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
8811         of pointer types the same way the middle-end does.
8813 2011-05-20  Richard Guenther  <rguenther@suse.de>
8815         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
8816         or pointer-to chains.  Delay all fixup to uniquify_nodes.
8818 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
8820         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
8821         (fma4_fmaddsub): Likewise
8823 2011-05-19  Jan Hubicka  <jh@suse.cz>
8825         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
8826         (GIMPLE_TYPE_PAIR_SIZE): New macro.
8827         (type_pair_cache): New static var.
8828         (lookup_type_pair): Use fixed sized custom hash; make inline.
8829         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
8830         calls of lookup_type_pair.
8831         (print_gimple_types_stats): Remove cache stats.
8832         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
8833         and gtc_ob.
8835 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
8837         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
8838         when TARGET_RDRND is active.
8839         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
8840         Generate dummy SImode target register when target is NULL.
8842 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
8844         * config/arm/arm-fpus.def: New.
8845         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
8846         arm-fpus.def.
8847         * config/arm/arm-tables.opt: Regenerate.
8848         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
8849         (arm_option_override): Don't decode FPU name to string here.
8850         * config/arm/arm.opt (mfpu=): Use Enum.
8851         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
8852         Update dependencies.
8854 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
8856         * collect2.c: Include diagnostic.h.
8857         (fatal_perror, fatal, error, fancy_abort): Remove.
8858         (main): Set progname.  Call xmalloc_set_program_name and
8859         diagnostic_initialize.
8860         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
8861         scan_libraries, resolve_lib_name): Call fatal_error instead of
8862         fatal and fatal_perror.
8863         * collect2.h (error, fatal, fatal_perror): Don't declare.
8864         * tlink.c: Include diagnostic-core.h.
8865         (recompile_files): Call fatal_error instead of fatal_perror.
8866         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
8867         pretty-print.o and input.o.
8868         (collect2.o, tlink.o): Update dependencies.
8870 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8872         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
8874 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8876         PR target/40483
8877         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
8878         COMDAT group syntax, both SPARC and x86 variants.
8879         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
8880         * configure: Regenerate.
8881         * config/sol2.h (TARGET_SOLARIS): Define.
8882         (PUSHSECTION_FORMAT): Remove.
8883         (SECTION_NAME_FORMAT): Define.
8884         * config/sol2.c: Include hashtab.h.
8885         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
8886         expansion, using SECTION_NAME_FORMAT.
8887         (solaris_comdat_htab): New variable.
8888         (struct comdat_entry): Define.
8889         (comdat_hash): New function.
8890         (comdat_eq): New function.
8891         (solaris_elf_asm_comdat_section): New function.
8892         (solaris_define_comdat_signature): New function.
8893         (solaris_code_end): New function.
8894         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
8895         (solaris_code_end): Declare.
8896         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
8897         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
8898         solaris_code_end.
8899         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
8900         Remove ATTRIBUTE_UNUSED.
8901         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
8902         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
8903         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
8904         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
8905         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
8906         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
8907         (PUSHSECTION_FORMAT): Remove.
8908         (SECTION_NAME_FORMAT): Redefine.
8910 2011-05-19  Kai Tietz  <ktietz@redhat.com>
8912         * tree-cfg.c (verify_gimple_assign_binary): Barf on
8913         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
8914         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
8916 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
8917             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8919         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
8921 2011-05-19  Richard Guenther  <rguenther@suse.de>
8923         PR middle-end/48985
8924         * tree-object-size.c (addr_object_size): If the pointed-to
8925         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
8927 2011-05-19  Richard Guenther  <rguenther@suse.de>
8929         * gimple.c (gimple_types_compatible_p_1): Compare names of
8930         the types themselves.
8931         (iterative_hash_gimple_type): And hash them that way.
8932         (gimple_register_type_1): If we register a main variant properly
8933         initialize the leader to ourselves.
8935 2011-05-19  Tom de Vries  <tom@codesourcery.com>
8937         PR target/45098
8938         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
8939         get_loop_invariant_expr_id.
8940         (get_loop_invariant_expr_id): Use get_expr_id.
8941         (parm_decl_cost): New function.
8942         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
8943         Improve bound cost estimation.  Use different inv_expr_id for elim and
8944         express cases.
8946 2011-05-19  Tom de Vries  <tom@codesourcery.com>
8948         PR target/45098
8949         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
8950         cost_base.cost == 0.
8952 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8954         PR target/49002
8955         * config/i386/sse.md
8956         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
8957         load cast.
8959 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
8961         PR tree-optimization/49039
8962         * tree-vrp.c (extract_range_from_binary_expr): For
8963         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
8964         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
8966 2011-05-18  Tom de Vries  <tom@codesourcery.com>
8968         PR target/45098
8969         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
8971 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
8973         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
8974         (*tls_global_dynamic_64): Ditto.
8975         (*tls_local_dynamic_base_32_gnu): Ditto.
8976         (*tls_local_dynamic_base_64): Ditto.
8977         (tls_initial_exec_64_sun): Ditto.
8979 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
8981         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
8982         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
8983         bf592-none.
8984         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
8985         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
8986         * config/bfin/bfin.c (bfin_cpus): Add bf592.
8987         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8988         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
8989         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
8990         * config/bfin/elf.h (LIB_SPEC): Add bf592.
8992 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
8994         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
8995         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
8996         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
8997         target_thread_pointer, arm_structure_size_boundary, struct
8998         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
8999         struct abi_name, arm_all_abis): Remove.
9000         (arm_option_override) Don't process most enumerated option values here.
9001         Don't process target_fpe_name here.  Work with integer not string for
9002         structure size boundary; use separate diagnostics for each case.
9003         * config/arm/arm.h (enum float_abi_type, enum
9004         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
9005         to arm-opts.h.
9006         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
9007         arm_structure_size_boundary): Remove.
9008         * config/arm/arm.opt (mabi=): Use Enum and Init.
9009         (arm_abi_type): New Enum and EnumValue entries.
9010         (mfloat-abi=): Use Enum and Init.
9011         (float_abi_type): New Enum and EnumValue entries.
9012         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
9013         (mfp16-format=): Use Enum and Init.
9014         (arm_fp16_format_type): New Enum and EnumValue entries.
9015         (mstructure-size-boundary=): Use UInteger and Init.
9016         (mtp=): Use Enum and Init.
9017         (arm_tp_type): New Enum and EnumValue entries.
9019 2011-05-18  Richard Guenther  <rguenther@suse.de>
9021         PR tree-optimization/49018
9022         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
9023         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
9024         gimple_has_side_effects.
9026 2011-05-18  Richard Guenther  <rguenther@suse.de>
9028         * gimple.c (gimple_register_type_1): New function, split out from ...
9029         (gimple_register_type): ... here.  Avoid infinite recursion.
9031 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
9033         PR tree-optimization/41881
9034         * tree-vectorizer.h (struct _loop_vec_info): Add new field
9035         reduction_chains along with a macro for its access.
9036         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
9037         (destroy_loop_vec_info): Free reduction chains.
9038         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
9039         (vect_is_slp_reduction): New function.
9040         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
9041         (vect_create_epilog_for_reduction): Support SLP reduction chains.
9042         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
9043         definition types for reduction chains.
9044         (vect_supported_load_permutation_p): Don't allow permutations for
9045         reduction chains.
9046         (vect_analyze_slp_instance): Support reduction chains.
9047         (vect_analyze_slp): Try to build SLP instance from reduction chains.
9048         (vect_get_constant_vectors):  Handle reduction chains.
9049         (vect_schedule_slp_instance): Mark the first statement of the
9050         reduction chain as reduction.
9052 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
9054         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
9055         names for group elements access.
9056         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
9057         reduction chains as well.  Remove data reference and interleaving
9058         related words from the fields names.
9059         * tree-vect-loop.c (vect_transform_loop): Use new names for group
9060         elements access.
9061         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
9062         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
9063         vect_update_interleaving_chain, vect_same_range_drs,
9064         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
9065         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
9066         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
9067         vect_analyze_group_access, vect_analyze_data_ref_access,
9068         vect_create_data_ref_ptr, vect_transform_strided_load,
9069         vect_record_strided_load_vectors): Likewise.
9070         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
9071         vect_model_load_cost, vectorizable_store, vectorizable_load,
9072         vect_remove_stores, new_stmt_vec_info): Likewise.
9073         * tree-vect-slp.c (vect_build_slp_tree,
9074         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
9076 2011-05-18  Richard Guenther  <rguenther@suse.de>
9078         PR middle-end/48989
9079         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
9080         operand verification.
9081         (verify_gimple_assign_binary): Likewise.
9082         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
9083         to non-1-precision BOOLEAN_TYPEs.
9085 2011-05-18  Tom de Vries  <tom@codesourcery.com>
9087         PR target/45098
9088         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
9090 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
9092         PR tree-optimization/49000
9093         * tree-ssa.c (execute_update_addresses_taken): Call
9094         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
9095         be rewritten and decl has been marked for renaming, reset
9096         the debug stmt.
9098 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
9100         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
9101         enum_opts_set when testing if attributes have set -mfpmath=.
9103 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
9105         * config/mips/mips.c (mips_handle_option): Remove unused variable.
9107 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
9109         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
9110         info->entry with 0
9111         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
9112         id.transform_lang_insert_block with NULL.
9114 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
9116         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
9117         (output_fp_compare): Change args 3 and 4 to bool.
9118         (ix86_expand_call): Change arg 6 to bool.
9119         (ix86_attr_length_immediate_default): Change arg 2 to bool.
9120         (ix86_attr_length_vex_default): Change arg 3 to bool.
9121         * config/i386/i386.md: Update all uses.
9122         * config/i386/i386.c: Ditto.
9123         (ix86_flags_dependent): Change return type to bool.
9125 2011-05-17  Richard Guenther  <rguenther@suse.de>
9127         * gimple.c (type_hash_pair_compare): Fix comparison.
9129 2011-05-17  Richard Guenther  <rguenther@suse.de>
9131         * gimple.c (iterative_hash_gimple_type): Simplify singleton
9132         case some more, fix final hash value of the non-singleton case.
9134 2011-05-17  Richard Guenther  <rguenther@suse.de>
9136         PR bootstrap/49013
9137         Revert
9138         2011-05-16  Richard Guenther  <rguenther@suse.de>
9140         * gimple.c (gimple_types_compatible_p_1): Use names of the
9141         type itself, not its main variant.
9142         (iterative_hash_gimple_type): Likewise.
9144 2011-05-17  Richard Guenther  <rguenther@suse.de>
9146         * gimple.c (gimple_register_canonical_type): Use the main-variant
9147         leader for computing the canonical type.
9149 2011-05-17  Nick Clifton  <nickc@redhat.com>
9151         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
9152         moves.
9154         * config/rx/rx.md: Add peephole to remove redundant extensions
9155         after loads.
9156         (bitset_in_memory): Use rx_restricted_mem_operand.
9157         (bitinvert_in_memory): Likewise.
9158         (bitclr_in_memory): Likewise.
9160 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
9161             Nick Clifton  <nickc@redhat.com>
9163         * config/rx/rx.md: Add peepholes to match a register move followed
9164         by a comparison of the moved register.  Replace these with an
9165         addition of zero that does both actions in one instruction.
9167 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
9169         PR target/48986
9170         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
9171         predicate to allow CONST_INT.
9172         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
9174 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
9176         * opts-common.c (opt_enum_arg_to_value): New.
9177         * opts.h (opt_enum_arg_to_value): Declare.
9178         * config/i386/i386.opt (fpmath): Remove.
9179         (mfpmath=): Use Enum, Init and Save.
9180         (fpmath_unit): New Enum and EnumValue entries.
9181         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
9182         name for function fpmath state.
9183         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
9184         * config/i386/i386.c: Include diagnostic.h.
9185         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
9186         (ix86_target_string): Take enum fpmath_unit value instead of string.
9187         (ix86_debug_options): Update call to ix86_target_string.
9188         (ix86_option_override_internal): Don't process fpmath strings here.
9189         (x86_function_specific_save, ix86_function_specific_restore):
9190         Don't handle fpmath state specially.
9191         (ix86_function_specific_print): Pass fpmath state to
9192         ix86_target_string instead of printing in this function.
9193         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
9194         Handle enum attributes.
9195         (IX86_ATTR_ENUM, ix86_opt_enum): New.
9196         (ix86_valid_target_attribute_tree): Update option_strings
9197         handling.  Handle fpmath as enum option.
9198         (ix86_can_inline_p): Update field names for function fpmath state.
9199         (ix86_expand_builtin): Update call to ix86_target_string.
9200         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
9201         (ix86_fpmath): Remove.
9202         * config/i386/t-i386 (i386.o): Update dependencies.
9204 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
9206         PR preprocessor/48677
9207         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
9208         from decoded_options[0], not from itself.
9210 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
9212         * config/i386/constraints.md (z): New constraint.
9213         * config/i386/i386.c (c): New mode attribute.
9214         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
9215         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
9216         constraint for operand 0.
9217         (*call_vzeroupper): Ditto.
9218         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
9219         (*call_rex64_ms_sysv_vzeroupper): Ditto.
9220         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
9221         Use "lzm" constraint for operand 0.
9222         (*call_pop_vzeroupper): Ditto.
9223         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
9224         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
9225         constraint for operand 0.
9226         (*sibcall_vzeroupper): Ditto.
9227         (*sibcall_rex64_ms_sysv): Ditto.
9228         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
9229         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
9230         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
9231         (*sibcall_pop_vzeroupper): Ditto.
9232         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
9233         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
9234         mode iterator.  Use "<c>zm" constraint for operand 1.
9235         (*call_value_vzeroupper): Ditto.
9236         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
9237         for operand 1.
9238         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
9239         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
9240         *call_value_pop_1.  Use "lzm" constraint for operand 1.
9241         (*call_value_pop_vzeroupper): Ditto.
9242         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
9243         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
9244         mode iterator.  Use "Uz" constraint for operand 1.
9245         (*sibcall_value_vzeroupper): Ditto.
9246         (*sibcall_value_rex64_ms_sysv): Ditto.
9247         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
9248         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
9249         constraint for operand 1.
9250         (*sibcall_value_pop_vzeroupper): Ditto.
9251         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
9252         and "z" constraint for operand 2.
9253         (*tls_global_dynamic_32_gnu): Ditto.
9254         (*tls_local_dynamic_base_32_gnu): Ditto.
9255         (*tls_local_dynamic_base_64): Ditto.
9256         (*tls_local_dynamic_32_once): Ditto.
9257         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
9258         Update all callers.
9259         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
9261 2011-05-16  Richard Guenther  <rguenther@suse.de>
9263         * gimple.c (gimple_types_compatible_p_1): Use names of the
9264         type itself, not its main variant.
9265         (iterative_hash_gimple_type): Likewise.
9267 2011-05-16  Richard Guenther  <rguenther@suse.de>
9269         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
9270         always visit pointer target and function result and argument types.
9272 2011-05-16  Jason Merrill  <jason@redhat.com>
9274         PR c++/48999
9275         * tree-inline.c (copy_statement_list): Put back recursion.
9277 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
9279         PR target/27663
9280         PR target/41076
9281         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
9282         * config/avr/avr.md ("*ior<mode>qi.byte0",
9283         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
9285 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
9287         PR target/45099
9288         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
9289         register is needed for a function argument.
9291 2011-05-16  Richard Guenther  <rguenther@suse.de>
9293         * gimple.c (struct type_hash_pair): New type.
9294         (type_hash_pair_compare): New function.
9295         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
9297 2011-05-16  Revital Eres  <revital.eres@linaro.org>
9299         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
9301 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
9303         * config/i386/i386.md (floating point move splitters): Fix
9304         usage of standard_80387_constant_p.
9305         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
9307 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
9309         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
9311 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9313         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
9314         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
9315         (tree_ssa_lim_finalize): Likewise.
9317 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
9319         * config/i386/constraint.md (Yd, Yx): New register constraints.
9320         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
9321         Yd conditional register constraint.
9322         (*movtf_internal): Use standard_sse_constant_opcode.
9323         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
9324         Yx conditional register constraint.
9325         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
9326         Yd conditional register constraint.  Use standard_sse_constant_p to
9327         check for valid SSE constants and call standard_sse_constant_opcode to
9328         output SSE insn.
9329         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
9330         constants and call standard_sse_constant_opcode to output SSE insn.
9331         * config/i386/i386.c (ix86_option_ovverride_internal): Set
9332         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
9333         optimize_size is set.
9334         (standard_sse_constant_opcode): Output conditional AVX insn templates.
9336 2011-05-14  Tobias Burnus  <burnus@net-b.de>
9338         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
9340 2011-05-13  Martin Jambor  <mjambor@suse.cz>
9342         * ipa-prop.c (ipa_cst_from_jfunc): New function.
9343         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
9344         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
9345         (evaluate_conditions_for_ipcp_clone): Removed.
9346         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
9347         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
9348         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
9350 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
9352         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
9353         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
9354         lieu of MAY_HAVE_DEBUG_STMTS.
9355         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
9356         debug statements if !MAY_HAVE_DEBUG_STMTS.
9358 2011-05-13  Martin Thuresson  <martint@google.com>
9360         PR gcov-profile/47793
9361         * libgcov.c (gcov_exit): Support relative profile paths.
9362         * doc/invoke.texi (-fprofile-dir): Update for above change.
9364 2011-05-13  Richard Guenther  <rguenther@suse.de>
9366         * gimple.c (gimple_canonical_types_compatible_p): Do not use
9367         type-pair caching, do not compare hashes.
9369 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
9371         PR middle-end/48965
9372         * tree-cfg.c (edge_to_cases_cleanup): Return true.
9373         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
9375 2011-05-13  Kai Tietz  <ktietz@redhat.com>
9377         * gimplify.c (gimplify_expr): Make sure operand is boolified.
9378         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
9379         compatible type for TRUTH_NOT_EXPR.
9381 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
9383         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
9384         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
9385         can_create_pseudo_p ().
9387 2011-05-13  Richard Guenther  <rguenther@suse.de>
9389         PR lto/48978
9390         * gimple.c (iterative_hash_gimple_type): Revert change in
9391         pointer target and function result and argument hashing.
9393 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
9395         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
9396         (*movxf_internal_nointeger): Ditto.
9397         (*movdf_internal_rex64): Ditto.
9398         (*movdf_internal): Ditto.
9399         (*movdf_internal_nointeger): Ditto.
9400         (*movsf_internal): Ditto.
9401         (sincos splitters): Use can_create_pseudo ().
9403 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
9405         * config/i386/i386-opts.h: New.
9406         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
9407         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
9408         ix86_section_threshold): Remove.
9409         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
9410         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
9411         OPT_mbranch_cost_.
9412         (ix86_option_override_internal): Don't decode strings for options
9413         other than -march=, -mtune= and -mfpmath=.  Don't allow for
9414         __attribute__ uses in remaining diagnostics for options with
9415         string arguments.  Don't check for integer arguments being negative.
9416         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
9417         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
9418         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
9419         ix86_branch_cost, ix86_section_threshold): Remove.
9420         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
9421         HeaderInclude.
9422         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
9423         but not Var.
9424         (masm=): Use Enum and Init.
9425         (asm_dialect): New Enum and EnumValue entries.
9426         (mbranch-cost=): Use UInteger.
9427         (mlarge-data-threshold=): Use UInteger and Init.
9428         (mcmodel=): Use Enum and Init.
9429         (cmodel): New Enum and EnumValue entries.
9430         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
9431         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
9432         mregparm=): Use UInteger.
9433         (mstringop-strategy=): Use Enum and Init.
9434         (stringop_alg): New Enum and EnumValue entries.
9435         (mtls-dialect=): Use Enum and Init.
9436         (tls_dialect): New Enum and EnumValue entries.
9437         (mabi=): Use Enum and Init.
9438         (calling_abi): New Enum and EnumValue entries.
9439         (mveclibabi=): Use Enum and Init.
9440         (ix86_veclibabi): New Enum and EnumValue entries.
9442 2011-05-13  Nick Clifton  <nickc@redhat.com>
9444         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
9445         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
9447 2011-05-13  Kai Tietz  <ktietz@redhat.com>
9449         PR middle-end/48984
9450         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
9451         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
9452         (gimple_boolify): Check for cast for boolean_type_node instead for
9453         BOOLEAN_TYPE.
9455 2011-05-13  Richard Guenther  <rguenther@suse.de>
9457         PR tree-optimization/48172
9458         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
9459         multiplying by number of iterations for equal step.
9460         (vect_create_cond_for_alias_checks): Likewise.
9462 2011-05-13  Andreas Schwab  <schwab@redhat.com>
9464         * configure.ac: Use AS_HELP_STRING throughout.
9465         * configure: Regenerate.
9467 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
9469         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
9470         (ix86_emit_restore_regs_using_mov): Likewise.
9471         (ix86_emit_restore_sse_regs_using_mov): Likewise.
9473 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
9475         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
9476         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
9477         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
9478         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
9479         RTX_OK_FOR_OLO10_P): ...here.
9480         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
9481         SYMBOLIC_CONST.
9483 2011-05-12  Kai Tietz  <ktietz@redhat.com>
9485         * gimplify.c (gimple_boolify): Re-boolify expression
9486         arguments even if expression type is of kind BOOLEAN_TYPE.
9487         (gimplify_boolean_expr): Removed.
9488         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
9489         and XOR. Additional take care that we keep expression's type.
9490         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
9491         of TRUTH_AND|OR|XOR_EXPR.
9493 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
9495         PR tree-optimization/48975
9496         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
9497         on all bbs here and free and clear ifc_bbs at the end.
9499 2011-05-12  Richard Guenther  <rguenther@suse.de>
9501         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
9502         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
9503         until after simple checks.
9504         (gimple_types_compatible_p): Likewise.
9505         (iterative_hash_gimple_type): Always hash pointer targets
9506         and function return and argument types.
9507         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
9508         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
9509         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
9510         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
9511         completely in the simple compare section.
9512         (gimple_register_canonical_type): Query the cache again after
9513         registering.
9515 2011-05-12  Richard Guenther  <rguenther@suse.de>
9517         PR tree-optimization/48172
9518         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
9519         the number of iterations from the segment size calculation.
9520         (vect_create_cond_for_alias_checks): Adjust.
9522 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
9524         PR debug/48967
9525         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
9526         if validate_subreg fails.
9528 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
9530         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
9531         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
9532         early.
9534 2011-05-12  DJ Delorie  <dj@redhat.com>
9536         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
9537         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
9538         created builtin into rx_builtins array.
9539         (rx_builtin_decl): New function.
9540         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
9542 2011-05-12  DJ Delorie  <dj@redhat.com>
9543             Nick Clifton  <nickc@redhat.com>
9545         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
9546         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
9547         (rx_is_legitimate_address): Add pre-decrement and post-increment
9548         addressing in HImode and QImode.  Fix test for out of range
9549         REG+INT addressing.
9550         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
9551         (rx_align_for_label): Test label before extracting its usage count.
9552         (rx_adjust_insn_lengths): Fix selection of insn codes.
9553         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
9555 2011-05-11  Jason Merrill  <jason@redhat.com>
9557         * tree.c (type_hash_canon): Use struct tree_type_non_common.
9559 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
9561         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
9562         reindent the subsequent block.
9564 2011-05-11  Satoru Takabayashi  <satorux@google.com>
9565             Paul Pluzhnikov  <ppluzhnikov@google.com>
9567         * doc/install.texi (Configuration): Document --with-linker-hash-style.
9568         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
9569         * config.in: Add LINKER_HASH_STYLE.
9570         * configure.ac: Add --with-linker-hash-style.
9571         * configure: Regenerate.
9573 2011-05-11  Richard Guenther  <rguenther@suse.de>
9575         PR middle-end/48964
9576         * gimple.c (iterative_hash_canonical_type): Fix typo.
9578 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
9580         * config/i386/i386.c (legitimize_tls_address)
9581         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
9582         expanders directly for TARGET_GNU2_TLS.  Determine pic and
9583         __tls_get_addr symbol reference here.  Update call to
9584         gen_tls_global_dynamic_{32,64} for added arguments.
9585         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
9586         expanders directly for TARGET_GNU2_TLS.  Determine
9587         __tls_get_addr symbol reference here.  Update call to
9588         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
9589         unique UNSPEC REG_EQUIV to libcall block.
9590         (ix86_tls_get_addr): Declare static.
9591         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
9592         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
9593         Do not determine pic and __tls_get_addr symbol reference here. Do not
9594         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
9595         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
9596         (tls_global_dynamic_64): Add operand 2.  Do not determine
9597         __tls_get_addr symbol reference here.  Do not call
9598         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
9599         (tls_local_dynamic_base64): Ditto for operand 1.
9601 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
9603         * function.c (expand_function_start): Initialize stack_check_probe_note
9604         only if the generic stack checking mechanism is used.
9606 2011-05-11  Richard Guenther  <rguenther@suse.de>
9608         PR tree-optimization/15256
9609         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
9610         (A & B) | C, combine (A op CST1) op CST2.
9611         (tree_ssa_forward_propagate_single_use_vars): Only bother to
9612         visit assigns that have uses.
9614 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
9616         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
9617         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
9618         (unpack_ts_type_common_value_fields): ...this.  Update comment.
9619         (unpack_value_fields): Adjust for renaming.
9620         (lto_input_ts_type_tree_pointers): Split into...
9621         (lto_input_ts_type_common_tree_pointer): ...this and...
9622         (lto_input_ts_type_non_common_tree_pointers): ...this.
9623         (lto_input_tree_pointers): Adjust for above split.
9624         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
9625         (pack_ts_type_common_value_fields): ...this.  Update comment.
9626         (lto_output_ts_type_tree_pointers): Split into...
9627         (lto_output_ts_type_common_tree_pointers): ...this and...
9628         (lto_output_ts_type_non_common_tree_pointers): ...this.
9629         (lto_output_tree_pointers): Adjust for above split.
9630         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
9631         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
9632         * stor-layout.c (vector_type_mode): Adjust location of mode field.
9633         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
9634         Define.
9635         (struct tree_type): Split into...
9636         (struct tree_type_common: ...this and...
9637         (struct tree_type_with_lang_specific): ...this and...
9638         (struct tree_type_non_common): ...this.  Adjust accessor macros
9639         accordingly.
9640         (TYPE_VALUES_RAW): Define.
9641         (union tree_node): Update for above changes.
9642         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
9643         TS_TYPE_NON_COMMON.
9644         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
9645         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
9646         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
9647         * treestructu.def (TS_TYPE): Remove.
9648         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
9649         Define.
9651 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
9653         PR debug/48159
9654         * tree-ssa.c (reset_debug_uses): New function.
9655         * tree-flow.h (reset_debug_uses): New prototype.
9656         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
9657         * tree-loop-distribution.c (generate_loops_for_partition): Call
9658         reset_debug_uses on the stmts that will be removed.  Keep around
9659         all debug stmts, don't count them as bits in partition bitmap.
9660         (generate_builtin): Don't count debug stmts or labels as bits in
9661         partition bitmap.
9663 2011-05-11  Richard Guenther  <rguenther@suse.de>
9665         * gimple.c (gimple_type_hash_1): Merge with ...
9666         (gimple_type_hash): ... this.
9667         (gtc_visit): Remove mode parameter and simplify accordingly.
9668         (gimple_types_compatible_p_1): Likewise.
9669         (gimple_types_compatible_p): Likewise.
9670         (iterative_hash_gimple_type): Likewise.
9671         (visit): Likewise.
9672         (gimple_type_eq): Adjust.
9674 2011-05-11  Revital Eres  <revital.eres@linaro.org>
9676         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
9677         enters the branch create an anti edge in the opposite direction
9678         to prevent the creation of reg-moves.
9679         * modulo-sched.c: Adjust comment to reflect the fact we are
9680         scheduling closing branch.
9681         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
9682         (stage_count): New field in struct partial_schedule.
9683         (calculate_stage_count): New function.
9684         (normalize_sched_times): Rename to reset_sched_times and handle
9685         incrementing the sched time of the nodes by a constant value
9686         passed as parameter.
9687         (duplicate_insns_of_cycles): Skip closing branch.
9688         (sms_schedule_by_order): Schedule closing branch.
9689         (ps_insn_find_column): Handle closing branch.
9690         (sms_schedule): Call reset_sched_times and adjust the code to
9691         support scheduling of the closing branch.
9692         (ps_insert_empty_row): Update calls to normalize_sched_times
9693         and rotate_partial_schedule functions.
9695 2011-05-11  Richard Guenther  <rguenther@suse.de>
9697         PR middle-end/48953
9698         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
9700 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
9702         * opts.c (finish_options): Move warning settings from process_options.
9703         * toplev.c (process_options): Move warning settings to finish_options.
9705 2011-05-11  Richard Guenther  <rguenther@suse.de>
9707         PR tree-optimization/18041
9708         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
9709         (simplify_bitwise_binary): ... this.  Handle operand conversions
9710         by applying them to the result instead.
9711         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
9713 2011-05-11  Richard Guenther  <rguenther@suse.de>
9715         * gimple.c (gimple_canonical_types_compatible_p): Split out
9716         from gimple_types_compatible_p and friends.  Do not recurse
9717         to pointed-to types.
9718         (gimple_canonical_type_eq): Use it.
9719         (iterative_hash_canonical_type): Split out from
9720         iterative_hash_gimple_type and friends.  Do not recurse
9721         to pointed-to types.
9722         (gimple_canonical_type_hash): Use it, allocate the hash here.
9724 2011-05-11  Revital Eres  <revital.eres@linaro.org>
9726         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
9727         recognizing doloop.
9729 2011-05-11  Revital Eres  <revital.eres@linaro.org>
9731         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
9732         instead of PREV_INSN.
9734 2011-05-11  Revital Eres  <revital.eres@linaro.org>
9736         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
9737         * loop-doloop.c (doloop_condition_get): Likewise.
9738         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
9739         (doloop_end): New.
9740         * config/arm/arm.md (*addsi3_compare0): Remove "*".
9742 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
9744         * tree.def (CASE_LABEL_EXPR): Add an operand.
9745         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
9747 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9749         * c-decl.c (c_override_global_bindings_to_false): Remove.
9750         (global_bindings_p): Don't check
9751         c_override_global_bindings_to_false.
9752         * c-tree.h (c_override_global_bindings_to_false): Remove.
9753         * c-typeck.c (composite_type): Don't set
9754         c_override_global_bindings_to_false.
9756 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
9758         PR target/48857, 48495
9759         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
9760         (VSX_MODE): Ditto.
9761         (VSX_MOVE_MODE): Ditto.
9762         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
9763         VSX vector types.  Add V2DImode.
9764         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
9765         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
9766         (MODES_TIEABLE_P): Ditto.
9768         * config/rs6000/rs6000.c (rs6000_emit_move): Use
9769         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
9770         VSX_VECTOR_MODE.
9771         (init_cumulative_args): Ditto.
9772         (rs6000_function_arg_boundary): Ditto.
9773         (rs6000_function_arg_advance_1): Ditto.
9774         (rs6000_function_arg): Ditto.
9775         (rs6000_function_ok_for_sibcall): Ditto.
9776         (emit_frame_save): Ditto.
9777         (rs6000_function_value): Ditto.
9778         (rs6000_libcall_value): Ditto.
9780 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9782         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9783         i386/darwin-lib.h to $libgcc_tm_file.
9784         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
9786 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9788         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
9790 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9792         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
9793         * config/rs6000/rs6000-tables.opt: New file (generated).
9794         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
9795         rs6000/rs6000-tables.opt to extra_options.
9796         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
9797         * config/rs6000/rs6000.c (rs6000_select): Remove.
9798         (processor_target_table): Move contents to rs6000-cpus.def.
9799         (darwin_rs6000_override_options): Check
9800         global_options_set.x_rs6000_cpu_index instead of
9801         rs6000_select[1].string.
9802         (rs6000_option_override_internal): Likewise.
9803         (rs6000_handle_option): Don't assert that global structures are in
9804         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
9805         (rs6000_default_cpu): New variable.
9806         (rs6000_file_start): Set it instead of local default_cpu.  Check
9807         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
9808         global_options_set.x_rs6000_tune_index instead of rs6000_select.
9809         (rs6000_darwin_file_start): Check rs6000_default_cpu and
9810         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
9811         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
9812         rs6000_select): Remove.
9813         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
9814         Remove.
9815         (mcpu=, mtune=): Use Var, Init, Enum and Save.
9816         * config/rs6000/t-rs6000
9817         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
9818         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9819         global_options_set.x_rs6000_cpu_index instead of
9820         rs6000_select[1].string.
9821         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9822         global_options_set.x_rs6000_cpu_index instead of
9823         rs6000_select[1].string.
9825 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9827         * config.gcc (libgcc_tm_file): Define instead of including files
9828         from ../../libgcc/config/ in tm_file.
9829         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
9830         * configure: Regenerate.
9831         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
9832         libgcc_tm.h, cs-libgcc_tm.h): New.
9833         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
9834         (clean): Remove libgcc_tm.h.
9835         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
9836         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
9837         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
9839 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
9841         PR target/48896
9842         * config/avr/avr.c (avr_ret_register): Return unsigned int
9843         instead of int.
9844         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
9845         it to avr_libcall_value.
9846         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
9847         expand_expr.
9848         (avr_expand_binop_builtin): Ditto.
9849         (avr_expand_unop_builtin): Ditto.
9851 2011-05-10  DJ Delorie  <dj@redhat.com>
9853         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
9854         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
9855         * config/rx/rx.c (rx_align_for_label): Add label and
9856         uses_threshold parameters.  Do not align when the label is not
9857         used enough.
9858         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
9860 2011-05-10  Richard Guenther  <rguenther@suse.de>
9862         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
9863         a series of conversions and apply foldings similar to what
9864         fold-const does.
9865         (tree_ssa_forward_propagate_single_use_vars): Call it.
9867 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
9869         PR tree-optimization/48611
9870         PR tree-optimization/48794
9871         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
9872         referenced from RESX or EH_DISPATCH arguments.
9874         PR debug/48928
9875         * dfp.c (decimal_to_decnumber): Handle conversion from
9876         dconst{1,2,m1,half}.
9878 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9880         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
9881         for !flag_prefer_avx128.
9882         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
9884 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
9886         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
9887         (fold_ternary_loc): Use expr_location_or.
9889 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9891         PR debug/48853
9892         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
9893         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
9894         Pmode and mem_mode is not VOIDmode.
9896 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
9898         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
9899         TYPE_QUAL_RESTRICT): Convert to enum.
9901 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9903         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
9904         (const_pow2_1_to_8_operand): Ditto.
9905         (const_pow2_1_to_128_operand): Ditto.
9906         (const_pow2_1_to_32768_operand): Ditto.
9907         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
9908         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
9909         in insn constraint to check integer value of operand 3.
9910         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
9912         (PINSR_MODE): New mode iterator.
9913         (sse2p4_1): New mode attribute.
9914         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
9915         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
9916         iterator.  Use const_int_operand instead of
9917         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
9918         exact_log2 in insn constraint to check integer value of operand 3.
9920 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9922         * config/i386/sse.md (blendbits): Remove mode attribute.
9923         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9924         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9925         Check integer value of operand 3 in insn constraint.
9927 2011-05-09  Richard Guenther  <rguenther@suse.de>
9929         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
9930         for diagnostics.
9931         (lto_symtab_merge): Likewise.  Do not register types here.
9932         (lto_symtab_merge_decls_2): Likewise.
9933         (lto_symtab_merge_decls_1): Likewise.
9934         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
9935         * gimple.c (enum gtc_mode): Declare.
9936         (gimple_types_compatible_p): Make static.
9938 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9940         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
9941         temporary register to match Pmode.
9943 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9945         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
9946         and *vec_concatv4si_1_avx.
9948 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9950         PR rtl-optimization/48927
9951         * ira-conflicts.c (commutative_constraint_p): Use
9952         recog_data.alternative_enabled_p to disable alternatives where
9953         "enabled" attribute is false.
9954         (get_dup_num): Ditto.
9955         * ira-lives.c (single_reg_class): Ditto.
9956         (ira_implicitly_set_insn_hard_regs): Ditto.
9958 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
9960         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
9961         (dataflow_set_preserve_mem_locs): Likewise.
9963 2011-05-09  Philipp Thomas  <pth@suse.de>
9965         * config/mep/mep.c (mep_validate_vliw): Syntax description
9966         should not be translated.
9968 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
9970         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
9971         * config/mips/mips-tables.opt: New file (generated).
9972         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
9973         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
9974         MIPS_ARCH_OPTION_NATIVE): Define.
9975         * config/mips/mips.c (mips_cpu_info_table): Move contents to
9976         mips-cpus.def.
9977         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
9978         mips_parse_cpu): Remove.
9979         (mips_cpu_info_from_opt, mips_default_arch): New.
9980         (mips_handle_option): Don't assert that global structures are in
9981         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
9982         (mips_option_override): Use new variables and functions to set
9983         state of these options.  Use strcmp to check for individual CPU names.
9984         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
9985         definition.
9986         * config/mips/mips.opt (march=): Use ToLower and Enum.
9987         (mips): Use ToLower, Enum and Var.
9988         (mtune=): Use ToLower and Enum.
9989         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
9991 2011-05-08  Jan Hubicka  <jh@suse.cz>
9993         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
9994         Arrange type pairs to be UID ordered.
9995         (gimple_lookup_type_leader): Make inline.
9997 2011-05-09  Nick Clifton  <nickc@redhat.com>
9999         PR target/48899
10000         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
10001         PROCESSOR_DEFAULT.
10003         PR target/48897
10004         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
10005         variable 's'.
10007 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
10009         * combine.c (simplify_comparison): Abstract out parts into...
10010         (simplify_compare_const): ... new function.
10011         (try_combine): Generalize parallel arithmetic/compare combining
10012         to call simplify_compare_const() and CANONICALIZE_COMPARE().
10014 2011-05-08  Jan Hubicka  <jh@suse.cz>
10016         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
10017         (cgraph_create_virtual_clone): Call hooks once virtual clone
10018         is finished.
10019         * cgraph.h (cgraph_clone_node): Update prototype.
10020         * ipa-cp.c (ipcp_estimate_growth): Use
10021         estimate_ipcp_clone_size_and_time.
10022         * ipa-inline-transform.c (clone_inlined_nodes): Update.
10023         * lto-cgraph.c (input_node): Update.
10024         * ipa-inline.c (recursive_inlining): Update.
10025         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
10026         (evaluate_conditions_for_known_args): Break out from ...
10027         (evaluate_conditions_for_edge): ... here.
10028         (evaluate_conditions_for_ipcp_clone): New function.
10029         (inline_node_duplication_hook): Update clone summary based
10030         on parameter map.
10031         (estimate_callee_size_and_time): Rename to ...
10032         (estimate_node_size_and_time): take NODE instead of EDGE;
10033         take POSSIBLE_TRUTHS as argument.
10034         (estimate_callee_size_and_time): Update.
10035         (estimate_ipcp_clone_size_and_time): New function.
10036         (do_estimate_edge_time): Update.
10038 2011-05-08  Richard Guenther  <rguenther@suse.de>
10040         PR middle-end/48908
10041         PR middle-end/48905
10042         * expmed.c (expand_shift_1): Compute adjusted constant shift
10043         amount manually.
10045 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
10047         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
10049 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
10051         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
10053 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
10055         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
10057 2011-05-07  Jan Hubicka  <jh@suse.cz>
10059         * ipa-inline-transform.c (inline_call): Account when program size
10060         decreases.
10061         * ipa-inline.c (relative_time_benefit): New function.
10062         (edge_badness): Reorganize to be power 2 based; fix thinko when
10063         computing badness for negative growth; update comments to match
10064         reality; better dumps.
10066 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
10068         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
10069         type to bool and adjust comment.
10070         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
10071         (fold_mathfn_compare): Remove calls to global_bindings_p.
10072         (fold_inf_compare): Likewise.
10073         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
10074         * c-tree.h (global_bindings_p): Adjust prototype.
10075         * c-decl.c (global_bindings_p): Return bool and simplify.
10077 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
10079         PR tree-optimization/48837
10080         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
10081         when accumulator transformation is performed.
10083 2011-05-06  Jan Hubicka  <jh@suse.cz>
10085         * i386.h (ix86_tune_indices): Add
10086         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
10087         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
10088         * i386.c (initial_ix86_tune_features): Add
10089         X86_SOFTARE_PREFETCHING_BENEFICIAL.
10090         (software_prefetching_beneficial_p): Remove predicate.
10091         (ix86_option_override_internal): Use new macro.
10093 2011-05-06  Jan Hubicka  <jh@suse.cz>
10095         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
10097 2011-05-06  Jan Hubicka  <jh@suse.cz>
10099         * cgraph.c (cgraph_add_thunk): Create real function node instead
10100         of alias node; finalize it and mark needed/reachale; arrange visibility
10101         to be right and add it into the corresponding same comdat group list.
10102         (dump_cgraph_node): Dump thunks.
10103         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
10104         cgraph_function_with_gimple_body_p,
10105         cgraph_first_function_with_gimple_body,
10106         cgraph_next_function_with_gimple_body): New functions.
10107         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
10108         New macros.
10109         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
10110         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
10111         * cgraphunit.c (cgraph_finalize_function): Only look into possible
10112         devirtualization when optimizing.
10113         (verify_cgraph_node): Verify thunks.
10114         (cgraph_analyze_function): Analyze thunks.
10115         (cgraph_mark_functions_to_output): Output thunks only in combination
10116         with function they are assigned to.
10117         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
10118         alias into normal node.
10119         (assemble_thunks): New functoin.
10120         (cgraph_expand_function): Use it.
10121         * lto-cgraph.c (lto_output_node): Stream thunks.
10122         (input_overwrite_node): Stream in thunks.
10123         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
10124         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
10125         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
10126         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
10127         (inline_analyze_function): Do not care about thunk jump functions.
10128         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
10129         * ipa-prop.c (ipa_prop_write_jump_functions): Use
10130         cgraph_function_with_gimple_body_p.
10131         * passes.c (do_per_function_toporder): Use
10132         cgraph_function_with_gimple_body_p.
10133         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
10134         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
10135         (function_called_by_processed_nodes_p): Likewise.
10137 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
10139         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
10140         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
10141         entries.
10142         (mabi=): Replace with separate entries for mabi=altivec,
10143         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
10144         mabi=ieeelongdouble and mabi=ibmlongdouble.
10145         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
10146         check for -mabi=spe without SPE ABI support here.
10147         (rs6000_handle_option): Replace OPT_mabi_ handling with
10148         OPT_mabi_altivec and OPT_mabi_spe handling.
10150 2011-05-06  Cary Coutant  <ccoutant@google.com>
10152         * dwarf2out.c (contains_subprogram_definition): New function.
10153         (should_move_die_to_comdat): Call it.
10155 2011-05-06  Jeff Law  <law@redhat.com>
10157         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
10158         remove_ctrl_stmt_and_useless_edges.
10159         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
10160         (fixup_template_block, thread_single_edge): Likewise.
10161         (mark_threaded_blocks): Use THREAD_TARGET.
10163 2011-05-06  Alan Modra  <amodra@gmail.com>
10165         PR target/48900
10166         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
10167         const0_rtx as the arg to the dummy __tls_get_addr libcall.
10169 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
10171         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
10172         constraint modifier to "r".
10174 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
10176         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
10177         fall through for OPT_mcmodel_.
10179 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10181         * config/s390/s390.c (s390_asm_trampoline_template): Comment
10182         instruction sizes.
10183         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
10185 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10187         PR target/47930
10188         * config/arm/arm.opt (marm): Document it.
10189         (mthumb): Reject negative variant.
10191 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
10193         PR target/48898
10194         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10195         Fix typo in "ccvt" variable name.
10197 2011-05-06  Tristan Gingold  <gingold@adacore.com>
10199         PR target/48895
10200         * config/vms/vms-ar.c (main): Remove cwd variable.
10202 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
10204         PR debug/48902
10205         * var-tracking.c (prepare_call_arguments): Move else before #endif.
10207 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
10209         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
10210         * gimplify.c (gimplify_switch_expr): Likewise.
10211         * omp-low.c (expand_omp_sections): Likewise.
10212         * tree-eh.c (lower_try_finally_switch): Likewise.
10213         (lower_eh_dispatch): Likewise.
10214         * tree.h (build_case_label): Declare.
10215         * tree.c (build_case_label): Define.
10217 2011-05-05  Jason Merrill  <jason@redhat.com>
10219         PR c++/40975
10220         * tree-inline.c (copy_tree_r): Use copy_statement_list.
10221         (copy_statement_list): Don't recurse.
10222         * stor-layout.c (copy_self_referential_tree_r): Don't allow
10223         STATEMENT_LIST.
10225 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
10227         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
10228         through from -mfpu= handling.
10229         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
10231 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
10233         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
10234         POST_MODIFY.
10236 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
10238         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
10239         for 11.31.
10240         (hppa[12]*-*-hpux11*): Ditto.
10241         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
10242         * config/ia64/hpux-unix2003.h: New.
10243         * config/pa/pa-hpux1131.opt: New.
10244         * config/pa/pa-hpux1131.h: New.
10245         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
10246         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
10247         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
10249 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
10251         PR debug/48853
10252         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
10253         instead of mode as 3rd argument to recursive call.
10254         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
10255         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
10256         VOIDmode.
10257         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
10258         don't give up if mode is Pmode and mem_mode is not VOIDmode.
10259         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
10260         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
10262 2011-05-05  Julian Brown  <julian@codesourcery.com>
10264         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
10265         parenthesis in D-register case.
10267 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
10269         * opt-functions.awk (var_type_struct): Handle Enum options.
10270         * optc-gen.awk: Don't check range of variables of character type.
10271         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
10272         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
10273         rs6000_sdata_name, rs6000_explicit_options): Remove.
10274         (rs6000_option_override_internal): Check for -malign-power here.
10275         Use global_options_set instead of rs6000_explicit_options.
10276         (rs6000_parse_fpu_option): Remove.
10277         (rs6000_handle_option): Access variables via opts and opts_set
10278         pointers.  Use error_at and warning_at.  Add fall-through
10279         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
10280         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
10281         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
10282         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
10283         here.  Don't use rs6000_parse_fpu_option.
10284         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
10285         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
10286         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
10287         (mrecip=): Use Var.
10288         (mspe): Use Var and Save.
10289         (mtraceback=): Use Enum and Var.
10290         (rs6000_traceback_type): New Enum and EnumValue entries.
10291         (mfloat-gprs=): Use Enum, Var and Save.
10292         (rs6000_float_gprs): New Enum and EnumValue entries.
10293         (mlong-double-): use Var and Save.
10294         (msched-costly-dep=, minsert-sched-nops=): Use Var.
10295         (malign-): Use Enum and Var.
10296         (rs6000_alignment_flags): New Enum and EnumValue entries.
10297         (mfpu=): Use Enum.
10298         (fpu_type_t): New Enum and EnumValue entries.
10299         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10300         global_options_set instead of rs6000_explicit_options.
10301         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10302         global_options_set instead of rs6000_explicit_options.
10303         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10304         global_options_set instead of rs6000_explicit_options.
10305         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10306         global_options_set instead of rs6000_explicit_options.
10307         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
10308         global_options_set instead of rs6000_explicit_options.
10309         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10310         global_options_set instead of rs6000_explicit_options.
10311         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
10312         definition.
10313         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10314         global_options_set instead of rs6000_explicit_options.
10315         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
10316         (rs6000_cmodel): New Enum and EnumValue entries.
10317         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10318         global_options_set instead of rs6000_explicit_options.
10319         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
10320         (mtls-size=): Use Enum and Var.
10321         (rs6000_tls_size): New Enum and EnumValue entries.
10323 2011-05-05  Michael Matz  <matz@suse.de>
10325         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
10326         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
10327         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
10328         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
10329         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
10330         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
10331         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
10332         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
10333         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
10334         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
10335         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
10336         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
10337         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
10338         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
10339         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
10340         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
10342 2011-05-05  Richard Guenther  <rguenther@suse.de>
10344         * expmed.c (expand_variable_shift): Rename to ...
10345         (expand_shift_1): ... this.  Take an expanded shift amount.
10346         For rotates recurse directly not building trees for the shift amount.
10347         (expand_variable_shift): Wrap around expand_shift_1.
10348         (expand_shift): Adjust.
10350 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
10352         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
10354 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
10356         * tree.h (get_pending_sizes): Remove prototype.
10357         (put_pending_size): Likewise.
10358         (put_pending_sizes): Likewise.
10359         * stor-layout.c (pending_sizes): Delete.
10360         (get_pending_sizes): Likewise.
10361         (put_pending_size): Likewise.
10362         (put_pending_sizes): Likewise.
10363         (variable_size): Do not call put_pending_size and tidy up.
10364         * function.h (struct function): Remove dont_save_pending_sizes_p.
10365         * lto-streamer-in.c (input_function): Do not stream it.
10366         * lto-streamer-out.c (output_function): Likewise.
10367         * tree-inline.c (initialize_cfun): Do not copy it.
10368         * c-decl.c (store_parm_decls): Do not set it.
10369         * omp-low.c (create_task_copyfn): Likewise.
10370         * tree-optimize.c (tree_rest_of_compilation): Likewise.
10372 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
10374         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
10375         conditions.
10376         (*movdf_internal): Ditto.
10377         (*movdf_internal_nointeger): Ditto.
10378         (*movsf_internal): Ditto.
10380 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
10382         * c-decl.c (finish_decl): Don't call get_pending_sizes.
10383         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
10384         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
10385         (c_variable_size): Remove.
10386         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
10387         call put_pending_sizes.
10388         (get_parm_info): Add parameter expr.  Use it to set
10389         arg_info->pending_sizes.
10390         (store_parm_decls): Use arg_info->pending_sizes instead or calling
10391         get_pending_sizes.
10392         * c-parser.c (c_parser_parms_declarator): Update call to
10393         c_parser_parms_list_declarator.
10394         (c_parser_parms_list_declarator): Take parameter expr.  Update
10395         call to push_parm_decl.  Update recursive call.  Don't call
10396         get_pending_sizes.  Update calls to get_parm_info.
10397         (c_parser_objc_method_definition): Update calls to
10398         c_parser_objc_method_decl and objc_start_method_definition.
10399         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
10400         (c_parser_objc_method_decl): Add parameter expr.  Update call to
10401         grokparm.
10402         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
10403         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
10404         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
10406 2011-05-05  Michael Hope  <michael.hope@linaro.org>
10408         PR pch/45979
10409         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
10410         __ARM_EABI__ hosts.
10412 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10414         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10415         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
10416         (spu_output_mi_thunk): New function.
10418 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10420         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
10421         targetm.asm_out.print_operand.
10422         * config/sol2.c: Include target.h.
10424 2011-05-04  Jan Hubicka  <jh@suse.cz>
10426         * ipa-inline.c (reset_edge_caches): New function.
10427         (update_caller_keys): Add check_inlinablity_for; do not
10428         reset edge caches; remove now unnecesary loop.
10429         (update_callee_keys): Add comments; reset node_growth_cache of callee.
10430         (update_all_callee_keys): Likewise.
10431         (inline_small_functions): Sanity check cache; update code
10432         recomputing it.
10434 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
10436         PR rtl-optimization/47612
10437         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
10438         as the last insn of the sequence to be moved.
10440 2011-05-04  Tobias Burnus  <burnus@net-b.de>
10442         PR fortran/48864
10443         * doc/invoke.texi (Ofast): Document that it
10444         enables Fortran's -fno-protect-parens.
10446 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
10448         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
10450 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
10452         * stor-layout.c (variable_size): Do not issue errors.
10454 2011-05-04  Richard Guenther  <rguenther@suse.de>
10456         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
10457         for array-ref indices.
10458         (tree_coverage_counter_addr): Likewise.
10459         (build_fn_info_type): Use size_int for index types.
10460         (build_gcov_info): Likewise.
10462 2011-05-04  Richard Guenther  <rguenther@suse.de>
10464         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
10465         to build_int_cst.
10466         * c-typeck.c (really_start_incremental_init): Use bitsize_int
10467         for constructor indices.
10468         (push_init_level): Likewise.
10470 2011-05-04  Richard Guenther  <rguenther@suse.de>
10472         * explow.c (promote_mode): Move variable declarations before code.
10474 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
10476         * tree.h (build_function_type_array): Declare.
10477         (build_varargs_function_type_array): Declare.
10478         (build_function_type_vec, build_varargs_function_type_vec): Define.
10479         * tree.c (build_function_type_array_1): New function.
10480         (build_function_type_array): New function.
10481         (build_varargs_function_type_array): New function.
10483 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
10485         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
10486         before setting STMT_VINFO_TYPE.
10488 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10490         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
10491         instead of spu_pass_by_reference.
10493 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10495         * calls.c (emit_library_call_value_1): Invoke
10496         promote_function_mode hook on libcall arguments.
10497         * explow.c (promote_function_mode, promote_mode): Handle TYPE
10498         argument being NULL.
10499         * targhooks.c (default_promote_function_mode): Lisewise.
10500         * config/s390/s390.c (s390_promote_function_mode): Likewise.
10501         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
10503         * doc/tm.texi: Document that TYPE argument might be NULL.
10505 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
10507         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
10509 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
10511         From Bernd Schmidt
10512         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
10514 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10516         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
10517         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
10518         Move ...
10519         * mips-tfile.c: ... here.
10520         Don't include coretypes.h, tm.h, filenames.h.
10521         (saber_stop): Remove definition and all calls.
10522         [__SABER__]: Remove.
10523         (__LINE__): Remove default.
10524         (Size_t, Ptrdiff_t): Remove definitions.
10525         Replace by size_t, ptrdiff_t.
10526         [!MIPS_DEBUGGING_INFO]: Remove.
10527         (SHASH_SIZE, THASH_SIZE): Remove defaults.
10528         (progname): Add const.
10529         (STATIC): Remove.
10530         Replace all uses by static.
10531         (ALIGN_SYMTABLE_OFFSET): Remove default.
10532         * mips-tdump.c: Don't include coretypes.h, tm.h.
10533         Remove !MIPS_IS_STAB guard.
10534         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
10535         $(TM_H), filenames.h dependencies.
10536         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
10538 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
10540         From Jie Zhang
10541         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
10542         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
10544 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
10546         From Bernd Schmidt
10547         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
10548         account and save/restore RETS.
10549         (PROFILE_BEFORE_PROLOGUE): Define.
10550         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
10551         the push insn to use predecrement.
10553 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
10555         From Jie Zhang
10556         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
10558 2011-05-04  Nick Clifton  <nickc@redhat.com>
10560         * config/mn10300/mn10300.c: Include cfgloop.h.
10561         (DUMP): New macro.
10562         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
10563         Lcc or a FLcc insn into the instruction stream.
10564         (mn10300_block_contains_call): New function.  Returns true if the
10565         given basic block contains a CALL insn.
10566         (mn10300_loop_contains_call_insn): New function.  Returns true if
10567         the given loop contains a CALL insn.
10568         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
10569         to use the SETLB and Lcc or FLcc insns.
10570         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
10571         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
10572         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
10573         disable the SETLB optimization.
10574         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
10575         __SETLB__ or __NO_SETLB__.
10576         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
10577         (movsf_internal): Handle MDR register.
10578         (cmpsi): Make visible.
10579         (setlb): New pattern.
10580         (Lcc): New pattern.
10581         (FLcc): New pattern.
10583 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
10585         PR target/48860
10586         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
10587         for reg<->xmm moves.
10588         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
10589         (vec_concatv2di_rex64_sse): Ditto.
10590         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
10591         (*vec_extractv2di_1_rex64): Ditto.
10593         Revert:
10594         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
10596         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
10597         reg<->xmm moves.
10598         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
10600 2011-05-04  Richard Guenther  <rguenther@suse.de>
10602         * tree.h (int_const_binop): Remove notrunc argument.
10603         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
10604         create integer constants that are properly truncated.
10605         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
10606         (const_binop): Remove zero notrunc argument to int_const_binop.
10607         (size_binop_loc): Likewise.
10608         (fold_div_compare): Likewise.
10609         (maybe_canonicalize_comparison_1): Likewise.
10610         (fold_comparison): Likewise.
10611         (fold_binary_loc): Likewise.
10612         (multiple_of_p): Likewise.
10613         * expr.c (store_constructor): Likewise.
10614         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
10615         (maybe_fold_stmt_addition): Likewise.
10616         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
10617         * stor-layout.c (layout_type): Likewise.
10618         * tree-data-ref.c (tree_fold_divides_p): Likewise.
10619         * tree-sra.c (build_ref_for_offset): Likewise.
10620         (build_user_friendly_ref_for_offset): Likewise.
10621         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
10622         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
10623         * tree-ssa-loop-niter.c (inverse): Likewise.
10624         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10625         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
10626         * tree-switch-conversion.c (check_range): Likewise.
10627         (build_constructors): Likewise.
10628         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
10629         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
10630         (extract_range_from_assert): Likewise.
10631         (vrp_int_const_binop): Likewise.
10632         (extract_range_from_binary_expr): Likewise.
10633         (extract_range_from_unary_expr): Likewise.
10634         (check_array_ref): Likewise.
10635         (find_case_label_range): Likewise.
10636         (simplify_div_or_mod_using_ranges): Likewise.
10637         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
10638         comparing case labels for merging.
10640 2011-05-03  Mark Wielaard  <mjw@redhat.com>
10642         * dwarf2out.c (debug_str_hash_forced): Removed.
10643         (gen_label_for_indirect_string): Removed.
10644         (get_debug_string_label): Removed.
10645         (AT_string_form): Generate label directly.
10646         (output_indirect_string): Test indirect_string_node for
10647         DW_FORM_strp instead of checking label and refcount.
10648         (prune_indirect_string): Removed.
10649         (prune_unused_types): Don't check debug_str_hash_forced or
10650         call prune_indirect_string.
10652 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
10654         PR other/48093
10655         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
10657 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
10659         PR debug/47994
10660         PR debug/47919
10661         * combine.c (try_combine): Skip debug insns at m_split tests.
10663 2011-04-26  Mark Wielaard  <mjw@redhat.com>
10665         PR42288
10666         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
10667         when info_section_emitted.
10669 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
10671         * config/mips/mips-opts.h: New.
10672         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
10673         to mips-opts.h.
10674         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
10675         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
10676         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
10677         via opts pointer.
10678         * config/mips/mips.h (enum mips_code_readable_setting): Move to
10679         mips-opts.h.
10680         (mips_abi, mips_code_readable): Don't declare.
10681         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
10682         (mabi=): Use Enum and Var.
10683         (mips_abi): New Enum and EnumValue entries.
10684         (mcode-readable=): Use Enum and Var.
10685         (mips_code_readable_setting): New Enum and EnumValue entries.
10686         (mr10k-cache-barrier=): Use Enum and Var.
10687         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
10689 2011-05-03  Jan Hubicka  <jh@suse.cz>
10691         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
10692         replace hash by pointer map.
10693         (cgraph_node_set_element_def, cgraph_node_set_element,
10694         const_cgraph_node_set_element, varpool_node_set_element_def,
10695         varpool_node_set_element, const_varpool_node_set_element): Remove.
10696         (free_cgraph_node_set, free_varpool_node_set): New function.
10697         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
10698         * tree-emutls.c: Free varpool node set.
10699         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
10700         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
10701         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
10702         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
10703         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
10704         Move here from ipa.c; implement using pointer_map
10705         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
10706         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
10707         debug_cgraph_node_set, varpool_node_set_new,
10708         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
10709         dump_varpool_node_set, debug_varpool_node_set):
10710         Move to ipa-uitls.c.
10711         * passes.c (ipa_write_summaries): Update.
10713 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10715         From Mike Frysinger:
10716         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
10717         bf542/bf544/bf547/bf548/bf549.
10719 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
10721         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
10723 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10725         From Bernd Schmidt:
10726         * config/bfin/bfin.md (MOVCC): New mode_macro.
10727         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
10728         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
10729         comments from generated assembly.
10731 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10733         From Bernd Schmidt
10734         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
10735         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
10736         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
10737         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
10738         * config/bfin/lib1funcs.asm (___muldi3): New function.
10740 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10742         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
10743         build_function_type_list instead of build_function_type.
10744         Rearrange initialization of `args' to do so.
10746 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10748         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
10749         instead of build_function_type.
10751 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10753         * config/rs6000/rs6000.c (spe_init_builtins): Call
10754         build_function_type_list instead of build_function_type.
10755         (paired_init_builtins, altivec_init_builtins): Likewise.
10756         (builtin_function_type): Likewise.
10758 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10760         * config/sh/sh.c (sh_media_init_builtins): Call
10761         build_function_type_list instead of build_function_type.
10763 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10765         * config/sparc/sparc.c (sparc_file_end): Call
10766         build_function_type_list instead of build_function_type.
10768 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10770         * config/alpha/alpha.c (alpha_init_builtins): Call
10771         build_function_type_list instead of build_function_type.
10773 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10775         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
10776         build_function_type_list instead of build_function_type.
10778 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10780         * config/iq2000/i2000.c (iq2000_init_builtins): Call
10781         build_function_type_list instead of build_function_type.
10782         Delete `endlink' variable.
10784 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10786         * config/avr/avr.c (avr_init_builtins): Call
10787         build_function_type_list instead of build_function_type.
10789 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10791         * config/picochip/picochip.c (picochip_init_builtins): Call
10792         build_function_type_list instead of build_function_type.
10793         Delete `endlink' variable.
10795 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10797         * config/bfin/bfin.c (bfin_init_builtins): Call
10798         build_function_type_list instead of build_function_type.
10800 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10802         From Bernd Schmidt
10803         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
10804         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
10806 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10808         From Jie Zhang:
10809         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
10810         libbffastfp overrides libgcc when -mfast-fp.
10812 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10814         Originally from Bernd Schmidt
10815         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
10816         * config/bfin/bfin.c (override_options): Test it and error if
10817         TARGET_FDPIC.
10819 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10821         Originally From Bernd Schmidt
10822         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
10823         FD-PIC.
10825 2011-05-03  Jeff Law  <law@redhat.com>
10827         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
10828         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
10829         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
10830         than accessing AUX field directly.  Free the AUX field before
10831         clearing it.
10832         (thread_block, thread_through_loop_header): Likewise.
10833         (thread_single_edge, mark_threaded_blocks): Likewise.
10834         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
10835         (register_jump_thread): Do not attempt to thread to a NULL edge.
10837 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
10839         * function.c (init_function_start): Call decide_function_section.
10840         * varasm.c (decide_function_section): New function.
10841         (assemble_start_function): When not using
10842         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
10843         or first_function_block_is_cold.
10844         * rtl.h (decide_function_section): Declare.
10846 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
10847             Jakub Jelinek  <jakub@redhat.com>
10849         PR target/48774
10850         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
10851         only succeed if req_mode is the same as set_mode.
10853 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
10855         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
10856         * genemit.c (gen_exp): Handle RETURN.
10857         * emit-rtl.c (verify_rtx_sharing): Likewise.
10858         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
10859         * rtl.c (copy_rtx): RETURN is shared.
10860         * rtl.h (enum global_rtl_index): Add GR_RETURN.
10861         (ret_rtx): New.
10862         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
10863         * config/s390/s390.c (s390_emit_epilogue): Likewise.
10864         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
10865         * config/cris/cris.c (cris_expand_return): Likewise.
10866         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
10867         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
10868         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
10869         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
10870         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
10871         Likewise.
10872         * config/v850/v850.c (expand_epilogue): Likewise.
10873         * config/bfin/bfin.c (bfin_expand_call): Likewise.
10874         * config/arm/arm.md (epilogue): Likewise.
10875         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
10876         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
10877         variable to ret_reg.
10879 2011-05-03  Richard Guenther  <rguenther@suse.de>
10881         PR lto/48846
10882         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
10883         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
10884         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10886 2011-05-03  Richard Guenther  <rguenther@suse.de>
10888         * c-decl.c (grokdeclarator): Instead of looking at
10889         TREE_OVERFLOW check if the constant fits in the index type.
10891 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10893         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
10894         (vec_store_lanes<mode><mode>): Likewise.
10896 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10898         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
10899         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
10900         convert_optab_index values.
10901         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
10902         * genopinit.c (optabs): Initialize the new optabs.
10903         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
10904         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
10905         (expand_STORE_LANES): New functions.
10906         * tree.h (build_array_type_nelts): Declare.
10907         * tree.c (build_array_type_nelts): New function.
10908         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
10909         (vect_model_load_cost): Likewise.
10910         (vect_store_lanes_supported, vect_load_lanes_supported)
10911         (vect_record_strided_load_vectors): Declare.
10912         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
10913         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
10914         (vect_transform_strided_load): Split out statement recording into...
10915         (vect_record_strided_load_vectors): ...this new function.
10916         * tree-vect-stmts.c (create_vector_array, read_vector_array)
10917         (write_vector_array, create_array_ref): New functions.
10918         (vect_model_store_cost): Add store_lanes_p argument.
10919         (vect_model_load_cost): Add load_lanes_p argument.
10920         (vectorizable_store): Try to use store-lanes functions for
10921         interleaved stores.
10922         (vectorizable_load): Likewise load-lanes and loads.
10923         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
10924         to vect_model_store_cost.
10925         (vect_build_slp_tree): Likewise vect_model_load_cost.
10927 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10929         * hooks.h (hook_bool_mode_uhwi_false): Declare.
10930         * hooks.c (hook_bool_mode_uhwi_false): New function.
10931         * target.def (array_mode_supported_p): New hook.
10932         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
10933         * doc/tm.texi: Regenerate.
10934         * stor-layout.c (mode_for_array): New function.
10935         (layout_type): Use it.
10936         * config/arm/arm.c (arm_array_mode_supported_p): New function.
10937         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
10939 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
10941         PR target/48723
10942         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
10943         for -fstack-check if the size to allocate is negative.
10945 2011-05-02  Lawrence Crowl  <crowl@google.com>
10947         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
10948         (timevar_cond_start): New for starting a timer only when it is not
10949         already running.
10950         (timevar_cond_stop): New for stopping a timer when it was not already
10951         running.
10953         * timevar.c (timevar_stop): Enable start/stop timers to start again.
10954         (timevar_cond_start): New as above.
10955         (timevar_cond_stop): New as above.
10957         * timevar.def: Add start/stop timers for compiler phases,
10958         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
10959         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
10960         and TV_PHASE_FINALIZE.
10961         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
10962         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
10963         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
10964         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
10965         Make unused TV_OVERLOAD into a start/stop timer.
10967         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
10968         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
10969         to indicate that they are start/stop timers.
10971         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
10972         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
10973         Move initialization to do_compile.
10974         (do_compile): Add initialization from above.
10975         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
10977         * c-decl.c (c_write_global_declarations): Add start/stop of
10978         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
10980         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
10981         or TV_PARSE_INLINE, as appropriate.
10982         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
10983         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
10985 2011-05-02  Jason Merrill  <jason@redhat.com>
10987         PR c++/40975
10988         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
10990 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
10992         PR c/35445
10993         * c-decl.c (finish_decl): Only create a composite if the types are
10994         compatible.
10996 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
10998         * config/fr30/fr30-protos.h (Mmode): Don't define.
10999         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
11000         definition where used.
11001         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
11002         define.  Expand definitions where used.
11003         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
11004         Expand definitions where used.
11005         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
11006         rx_function_arg, rx_function_arg_advance,
11007         rx_function_arg_boundary): Expand definitions of those macros.
11008         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
11009         definition where used.
11011 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
11013         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
11014         reg<->xmm moves.
11015         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
11016         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
11017         with *movv2sf_internal_rex64_avx.
11018         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
11019         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
11020         Use %v prefix in insn mnemonic to handle TARGET_AVX.
11021         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
11022         "vex" in "prefix" attribute calculation.
11023         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
11025 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
11027         PR target/47951
11028         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
11029         inputs match the output.
11031 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
11033         PR target/47955
11034         * config/m68k/m68k.c (m68k_expand_prologue): Set
11035         current_function_static_stack_size.
11037 2011-05-02   Jan Hubicka  <jh@suse.cz>
11039         * lto-streamer.c (lto_streamer_cache_insert_1,
11040         lto_streamer_cache_lookup, lto_streamer_cache_create,
11041         lto_streamer_cache_delete): Use pointer map instead of hashtable.
11042         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
11044 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
11046         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
11047         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
11048         config/m68k/t-opts: New files.
11049         * config/m68k/m68k-tables.opt: New file (generated).
11050         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
11051         extra_options and m68k/t-opts to tmake_file.
11052         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
11053         (all_isas): Initialize using m68k-isas.def.
11054         (all_microarchs): Initialize using m68k-microarchs.def.
11055         (m68k_find_selection): Remove.
11056         (m68k_handle_option): Don't assert that global structures are in
11057         use.  Use error_at.  Access variables via opts pointer.  Don't
11058         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
11059         directly for -m68020-40 and -m68020-60.
11060         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
11061         m68k_tune_entry here.
11062         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
11063         to m68k-opts.h.
11064         (m68k_library_id_string): Remove declaration.
11065         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
11066         (m68k_library_id_string): New Variable.
11067         (march=, mcpu=, mtune=): Use Enum and Var.
11069 2011-05-02  Richard Guenther  <rguenther@suse.de>
11071         * varasm.c (output_constructor_regular_field): Compute zero-based
11072         index with double-ints.  Make sure to ICE instead of producing
11073         wrong code.
11074         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
11075         in asserts.  Properly use a signed type.
11077 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
11079         * config/i386/sse.md (V): New mode iterator.
11080         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
11081         TARGET_SSE2.
11082         (V_256): Rename from AVX256MODE.
11083         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
11084         condition to all users.
11085         (VF1): Ditto.
11086         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
11087         condition to all users.
11088         (VF_128): Make V4SF mode unconditional.
11089         (VF_256): Rename from AVX256MODEF2P.
11090         (VI4F_128): Rename from SSEMODE4S.
11091         (VI8F_128): Rename from SSEMODE2D.
11092         (VI4F_256): Rename from AVX256MODE8P.
11093         (VI8F_256): Rename from AVX256MODE4P.
11094         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
11095         (ssescalarmodesuffix): Remove SF and DF modes.
11096         (SSEMODE124): Remove.
11097         (SSEMODE1248): Ditto.
11098         (SSEMODEF2P): Ditto.
11099         (AVXMODEF2P): Ditto.
11100         (AVXMODEFDP): Ditto.
11101         (AVXMODEFSP): Ditto.
11102         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
11103         unconditional.
11104         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
11105         unconditional.
11106         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
11107         xop_pcmov_<mode>256.  Use V mode iterator.
11109         Adjust RTX patterns globally for renamed mode attributes.
11111 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11113         * haifa-sched.c (sched_emit_insn): Emit insn before first
11114         non-scheduled insn.  Inform back-end about new insn.  Add
11115         new insn to scheduled_insns list.
11117 2011-05-02  Richard Guenther  <rguenther@suse.de>
11119         PR tree-optimization/48822
11120         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
11121         (process_scc): Indicate which iteration we start.
11123 2011-05-02  Jan Hubicka  <jh@suse.cz>
11125         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
11126         (lto_section_overrun): New.
11127         * lto-section-out.c (append_block): Rename to ...
11128         (lto_append_block): ... this one; export.
11129         (lto_output_1_stream): Move lto lto-streamer.h
11130         (lto_output_data_stream): Update.
11131         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
11132         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
11133         functions.
11135 2011-05-02  Richard Guenther  <rguenther@suse.de>
11137         * tree.c (tree_code_counts): New global array.
11138         (record_node_allocation_statistics): Count individual tree codes.
11139         (dump_tree_statistics): Dump individual code stats.
11141 2011-05-01  Jan Hubicka  <jh@suse.cz>
11143         * ipa-inline.c (caller_growth_limits): Fix thinko when
11144         looking for largest stack frame.
11145         * ipa-inline.h (dump_inline_summary): Declare.
11146         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
11147         on stack usage.
11148         (dump_inline_summary): Export.
11149         (debug_inline_summary): Declare as DEBUG_FUNCTION.
11151 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
11153         * reginfo.c (memory_move_cost): Change rclass argument type form
11154         'enum reg_class' to reg_class_t.
11155         * reload.h (memory_move_cost): Update prototype.
11156         * postreload.c reload_cse_simplify_set): Change type dclass var to
11157         reg_class_t.
11158         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
11159         Update prototype.
11160         (ira_allocate_and_set_costs): Change aclass argument type form
11161         'enum reg_class' to reg_class_t.
11162         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
11163         Change aclass argument type to reg_class_t.
11164         (update_conflict_hard_reg_costs): Change type aclass and pref vars
11165         to reg_class_t.
11166         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
11167         memory_move_cost call.
11169         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
11170         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
11171         Change type tmp var to reg_class_t.
11173 2011-04-30  Jan Hubicka  <jh@suse.cz>
11175         * ipa-inline.c (can_inline_edge_p): Disregard limits when
11176         inlining into function with flatten attribute.
11177         (want_inline_small_function_p): Be more realistic about inlining
11178         cold calls where callee size grows.
11180 2011-04-30  Jan Hubicka  <jh@suse.cz>
11182         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
11183         flags.
11185 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
11187         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
11188         PRINT_OPERAND_PUNCT_VALID_P): Remove.
11189         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
11190         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
11191         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11192         (print_operand): Rename to...
11193         (sparc_print_operand): ...this. Make static. Adjust
11194         sparc_print_operand function call.
11195         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
11196         functions.
11198 2011-04-30  Jan Hubicka  <jh@suse.cz>
11200         PR middle-end/48752
11201         * ipa-inline.c (early_inliner): Disable when doing late
11202         addition of function.
11204 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
11206         * dwarf2out.c (get_address_mode): New inline.
11207         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
11208         if not dwarf_strict emit
11209         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
11210         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
11211         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
11212         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
11213         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
11214         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
11215         mem_loc_descriptor callers.
11216         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11217         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
11218         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
11219         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
11220         (base_types): New variable.
11221         (get_base_type_offset, calc_base_type_die_sizes,
11222         base_type_for_mode, mark_base_types, base_type_cmp,
11223         move_marked_base_types): New functions.
11224         (calc_die_sizes): Assert that die_offset is 0 or equal to
11225         next_die_offset.
11226         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
11227         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
11228         callers.  If not dwarf_strict, call mem_loc_descriptor even for
11229         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
11230         (gen_subprogram_die): Don't give up on call site parameters
11231         with non-integral or large integral modes.  Adjust
11232         mem_loc_descriptor callers.
11233         (prune_unused_types): Call prune_unused_types_mark on base_types
11234         vector entries.
11235         (resolve_addr): Call mark_base_types.
11236         (dwarf2out_finish): Call move_marked_base_types.
11238         PR tree-optimization/48809
11239         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
11240         type.
11241         (gen_inbound_check): Don't compute index_expr - range_min in utype
11242         again, instead reuse SSA_NAME initialized in build_arrays.
11243         Remove two useless gsi_for_stmt calls.
11245 2011-04-29  Jeff Law  <law@redhat.com>
11247         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
11249 2011-04-29  Martin Jambor  <mjambor@suse.cz>
11251         * cgraph.h (cgraph_postorder): Remove declaration.
11252         * ipa-utils.h (ipa_free_postorder_info): Declare.
11253         (ipa_reverse_postorder): Likewise.
11254         * cgraphunit.c: Include ipa-utils.h.
11255         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
11256         * ipa-inline.c: Include ipa-utils.h.
11257         (ipa_inline): Update call to ipa_reverse_postorder.
11258         * ipa-pure-const.c (propagate_pure_const): Update call to
11259         ipa_reduced_postorder and ipa_print_order.  Call
11260         ipa_free_postorder_info to clean up.
11261         (propagate_nothrow): Likewise.
11262         * ipa-reference.c (propagate): Removed a useless call to
11263         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
11264         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
11265         * ipa.c: Include ipa-utils.h.
11266         (ipa_profile): Update call to ipa_reverse_postorder.
11267         (cgraph_postorder): Moved to...
11268         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
11269         (ipa_utils_print_order): Renamed to ipa_print_order.
11270         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
11271         comments.
11272         (ipa_free_postorder_info): New function.
11273         * passes.c: Include ipa-utils.h.
11274         (do_per_function_toporder): Update call to ipa_reverse_postorder.
11275         (ipa_write_summaries): Likewise.
11276         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
11277         (cgraphunit.o): Likewise.
11278         (ipa.o): Likewise.
11279         (ipa-inline.o): Likewise.
11281 2011-04-29  Jan Hubicka  <jh@suse.cz>
11283         * gcc.dg/tree-ssa/inline-10.c: New testcase.
11284         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
11285         * ipa-inline.h (clause_t): Turn into unsigned int.
11286         * ipa-inline-analysis.c (add_clause): Do more simplification.
11287         (and_predicates): Shortcut more cases.
11288         (predicates_equal_p): Move forward; check that clauses are properly
11289         ordered.
11290         (or_predicates): Shortcut more cases.
11291         (edge_execution_predicate): Rewrite as...
11292         (set_cond_stmt_execution_predicate): ... this function; handle
11293         __builtin_constant_p.
11294         (set_switch_stmt_execution_predicate): New .
11295         (compute_bb_predicates): New.
11296         (will_be_nonconstant_predicate): Update TODO.
11297         (estimate_function_body_sizes): Use compute_bb_predicates
11298         and free them later, always try to estimate if stmt is constant.
11299         (estimate_time_after_inlining, estimate_size_after_inlining):
11300         Gracefully handle optimized out edges.
11301         (read_predicate): Fix off by one error.
11303 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
11305         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
11307 2011-04-27  Xinliang David Li  <davidxl@google.com>
11309         * tree-profile.c (init_ic_make_global_vars): Set
11310         tls attribute on ic vars.
11311         * coverage.c (coverage_end_function): Initialize
11312         function_list with zero.
11314 2011-04-29  Richard Guenther  <rguenther@suse.de>
11316         * builtins.c (fold_builtin_classify_type): Use integer_type_node
11317         for the type of the result.
11318         (fold_builtin_isascii): Likewise.
11319         (fold_builtin_toascii): Use integer_type_node where appropriate.
11320         (fold_builtin_logb): Likewise.
11321         (fold_builtin_frexp): Likewise.
11322         (fold_builtin_strstr): Likewise.
11323         (fold_builtin_strpbrk): Likewise.
11324         (fold_builtin_fputs): Likewise.
11325         (fold_builtin_sprintf): Likewise.
11326         (fold_builtin_snprintf): Likewise.
11327         (fold_builtin_printf): Likewise.
11328         (do_mpfr_remquo): Use a proper type for the assigned constant.
11329         (do_mpfr_lgamma_r): Likewise.
11330         * dwarf2out.c (resolve_one_addr): Use size_int.
11331         * except.c (init_eh): Likewise.
11332         (assign_filter_values): Use integer_type_node for filter values.
11333         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
11334         indices.
11335         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
11336         for EH region numbers.
11337         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
11338         for the shift amount.
11340 2011-04-29  Richard Guenther  <rguenther@suse.de>
11342         * expr.h (expand_shift): Rename to ...
11343         (expand_variable_shift): ... this.
11344         (expand_shift): Take a constant shift amount.
11345         * expmed.c (expand_shift): Rename to ...
11346         (expand_variable_shift): ... this.
11347         (expand_shift): New wrapper around expand_variable_shift.
11348         * expr.c (convert_move, emit_group_load_1, emit_group_store,
11349         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
11350         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
11351         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
11352         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
11353         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
11354         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
11355         emit_store_flag_1, emit_store_flag): Likewise.
11356         * builtins.c (expand_builtin_signbit): Likewise.
11357         * calls.c (load_register_parameters): Likewise.
11358         * function.c (assign_parm_setup_block): Likewise.
11359         * lower-subreg.c (resolve_shift_zext): Likewise.
11360         * optabs.c (widen_bswap, expand_abs_nojump,
11361         expand_one_cmpl_abs_nojump, expand_float): Likewise.
11362         * spu/spu.c (spu_expand_extv): Likewise.
11363         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11365 2011-04-29  Richard Guenther  <rguenther@suse.de>
11367         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
11368         for the remapped region number.
11369         * predict.c (build_predict_expr): Use integer_type_node for the
11370         predict kind.
11371         * fold-const.c (fold_binary_loc): Use integer_type_node for
11372         the shift amount.  Use a proper type for the PLUS_EXPR operand.
11374 2011-04-29  Michael Matz  <matz@suse.de>
11376         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
11377         other trees that just builtins.
11378         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
11380 2011-04-29  Richard Guenther  <rguenther@suse.de>
11382         * tree-nested.c (get_trampoline_type): Use size_int.
11383         (get_nl_goto_field): Likewise.
11384         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
11385         for all indexes.
11386         (lower_eh_constructs_2): Likewise.
11387         (lower_resx): Likewise.
11388         (lower_eh_dispatch): Likewise.
11389         * tree-mudflap.c (mf_build_string): Use size_int.
11390         (mudflap_register_call): Use integer_type_node for the flag.
11391         (mudflap_enqueue_constant): Use size_int.
11392         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
11393         instead of rebuilding it.
11395 2011-04-29  Richard Guenther  <rguenther@suse.de>
11397         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
11398         Handle OBJ_TYPE_REF.
11399         (find_func_aliases_for_call): Use it more consistently.
11401 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
11403         * haifa-sched.c (last_nondebug_scheduled_insn): New.
11404         (rank_for_schedule): Use it.
11405         (schedule_block): Set it.
11407 2011-04-28  David Li  <davidxl@google.com>
11409         * tree.c (crc32_string): Use crc32_byte.
11410         (crc32_byte): New function.
11411         * tree.h (crc32_byte): New function.
11412         * gcov.c (read_graph_file): Handle new cfg_cksum.
11413         (read_count_file): Ditto.
11414         * profile.c (instrument_values): Ditto.
11415         (get_exec_counts): Ditto.
11416         (read_profile_edge_counts): Ditto.
11417         (compute_branch_probabilities): Ditto.
11418         (compute_value_histograms): Ditto.
11419         (branch_prob): Ditto.
11420         (end_branch_prob): Ditto.
11421         * coverage.c (read_counts_file): Ditto.
11422         (get_coverage_counts): Ditto.
11423         (tree_coverage_counter_addr): Ditto.
11424         (coverage_checksum_string): Ditto.
11425         (coverage_begin_output): Ditto.
11426         (coverage_end_function): Ditto.
11427         (build_fn_info_type): Ditto.
11428         (build_fn_info_value): Ditto.
11429         * libgcov.c (gcov_exit): Ditto.
11430         * gcov-dump.c (tag_function): Ditto.
11431         (compute_checksum): Remove.
11433 2011-04-29  Alan Modra  <amodra@gmail.com>
11435         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11436         unspec plus offset.  Tidy macho code.
11438 2011-04-29  Martin Jambor  <mjambor@suse.cz>
11440         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
11441         node instead of a decl.  Update all callers.
11442         * cgraph.h: Update declaration.
11444 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
11446         PR tree-optimization/48765
11447         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
11448         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
11449         to indicate if loop aware SLP is being used.  Scan the statements
11450         and update the vectorization factor according to the type of
11451         vectorization before statement analysis.
11452         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
11453         pass it to vect_analyze_loop_operations.
11454         (vectorizable_reduction): Set number of copies to 1 in case of pure
11455         SLP statement.
11456         * tree-vect-stmts.c (vectorizable_conversion,
11457         vectorizable_assignment, vectorizable_shift,
11458         vectorizable_operation, vectorizable_type_demotion,
11459         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
11460         Likewise.
11461         (vectorizable_condition): Move the check that it is not SLP
11462         vectorization before the number of copies check.
11463         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
11464         to vectorize the loop using SLP.
11466 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
11468         PR middle-end/48597
11469         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
11470         inline asm.
11472 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
11474         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
11475         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
11476         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11477         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11478         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
11479         linux*.h headers.
11480         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
11481         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11482         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11483         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11484         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11485         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
11486         REG_NAME.
11487         * config/i386/linux.h (REG_NAME): Don't define.
11488         * config/i386/linux64.h (REG_NAME): Don't define.
11489         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
11490         Undefine before defining.
11492 2011-04-28  Jan Hubicka  <jh@suse.cz>
11494         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
11495         nonconstant_names array.
11496         (estimate_function_body_sizes): Build nonconstant_names array; handle
11497         BUILT_IN_CONSTANT_P.
11499 2011-04-28  Richard Guenther  <rguenther@suse.de>
11501         PR bootstrap/48804
11502         Revert
11503         2011-04-28  Richard Guenther  <rguenther@suse.de>
11505         * tree-ssa-structalias.c (solve_constraints): Build succ graph
11506         as late as possible.
11508 2011-04-28  Richard Guenther  <rguenther@suse.de>
11510         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
11511         (debug_constraint): Do it here.
11512         (dump_constraints): And here.
11513         (rewrite_constraints): And here.
11514         (dump_constraint_edge): Remove.
11515         (dump_constraint_graph): Rewrite to produce DOT output.
11516         (solve_constraints): Build succ graph as late as possible.
11517         Dump constraint graphs before and after solving.
11519 2011-04-28  Richard Guenther  <rguenther@suse.de>
11521         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11522         New function split out from ...
11523         (find_func_aliases): ... here.  Call it.
11524         (find_func_aliases_for_call): Likewise.
11526 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11528         * internal-fn.h (internal_fn_name_array): Declare.
11529         (internal_fn_flags_array): Likewise.
11531 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
11533         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
11534         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
11535         Move from sse.md.
11536         (ssemodefsuffix): Remove.
11537         (ssevecmodesuffix): New mode attribute.
11538         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
11539         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
11540         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
11541         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
11542         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
11543         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
11544         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
11545         ssemodesuffix mode attribute.
11546         (float splitters): Use ssevecmodesuffix mode attribute.
11547         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
11548         (sseinsmode): Rename from avxvecmode.
11549         (avxsizesuffix): Rename from avxmodesuffix.
11550         (sseintvecmode): Rename from avxpermvecmode.
11551         (ssedoublevecmode): Rename from ssedoublesizemode.
11552         (ssehalfvecmode): Rename from avxhalfvecmode.
11553         (ssescalarmode): Rename from avxscalarmode.
11554         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
11555         templates for ssemodesuffix mode attribute.
11556         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
11557         mode attribute.
11559         Adjust RTX patterns globally for renamed mode attributes.
11561 2011-04-27  Jan Hubcika  <jh@suse.cz>
11563         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
11564         * ipa-inline-analysis.c: Include alloc-pool.h.
11565         (edge_predicate_pool): New.
11566         (trye_predicate_p): New function
11567         (false_predicate_p): New function.
11568         (add_clause): Sanity check that false clauses are "optimized";
11569         never add clauses to predicate that is already known to be false.
11570         (and_predicate): Use flase_predicate_p.
11571         (evaulate_predicate): Rename to ...
11572         (evaluate_predicate): ... this one; update all callers; assert
11573         that false is not listed among possible truths.
11574         (dump_predicate): Use true_predicate_p.
11575         (account_size_time): Use false_predicate_p.
11576         (evaulate_conditions_for_edge): Rename to ...
11577         (evaluate_conditions_for_edge) ... this one.
11578         (edge_set_predicate): New function.
11579         (inline_edge_duplication_hook): Duplicate edge predicates.
11580         (inline_edge_removal_hook): Free edge predicates.
11581         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
11582         (dump_inline_summary): Update.
11583         (estimate_function_body_sizes): Set edge predicates.
11584         (estimate_calls_size_and_time): Handle predicates.
11585         (estimate_callee_size_and_time): Update.
11586         (remap_predicate): Add toplev_predicate; update comment.
11587         (remap_edge_predicates): New function.
11588         (inline_merge_summary): Compute toplev predicate; update.
11589         (read_predicate): New function.
11590         (read_inline_edge_summary): Use it.
11591         (inline_read_section): Likewise.
11592         (write_predicate): New function.
11593         (write_inline_edge_summary): Use it.
11594         (inline_write_summary): Likewise.
11595         (inline_free_summary): Free alloc pool and edge summary vec.
11597 2011-04-27  Richard Guenther  <rguenther@suse.de>
11599         * tree-ssa-structalias.c (changed_count): Remove.
11600         (changed): Use a bitmap.
11601         (unify_nodes): Adjust.
11602         (do_sd_constraint): Likewise.
11603         (do_ds_constraint): Likewise.
11604         (do_complex_constraint): Likewise.
11605         (solve_graph): Likewise.
11607 2011-04-27  Jan Hubicka  <jh@suse.cz>
11609         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
11611 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
11613         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
11614         (avx_vperm2f128_*_operand): Ditto.
11615         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
11616         Use avx_vpermilp_parallel in insn condition.
11617         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
11618         Use avx_vperm2f128_parallel in insn condition.
11620 2011-04-27  Richard Guenther  <rguenther@suse.de>
11622         * Makefile.in (tree-ssa-structalias.o): Remove
11623         gt-tree-ssa-structalias.h dependency.
11624         (GTFILES): Remove tree-ssa-structalias.c.
11625         * tree.c (allocate_decl_uid): New function.
11626         (make_node_stat): Use it.
11627         (copy_node_stat): Likewise.
11628         * tree.h (allocate_decl_uid): Declare.
11629         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
11630         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
11631         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
11632         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
11633         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
11634         (struct heapvar_map): Likewise.
11635         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
11636         heapvar_insert): Likewise.
11637         (make_heapvar_for): Rename to ...
11638         (make_heapvar): ... this.  Simplify.
11639         (fake_var_decl_obstack): New global var.
11640         (build_fake_var_decl): New function.
11641         (make_constraint_from_heapvar): Adjust.
11642         (handle_lhs_call): Likewise.
11643         (create_function_info_for): Likewise.
11644         (intra_create_variable_infos): Likewise.
11645         (init_alias_vars): Allocate fake_var_decl_obstack.
11646         (init_alias_heapvars, delete_alias_heapvars): Remove.
11647         (compute_points_to_sets): Do not call init_alias_heapvars.
11648         (ipa_pta_execute): Likewise.
11649         (delete_points_to_sets): Free fake_var_decl_obstack.
11651 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11653         * config/spu/divmovti4.c (union qword_UTItype): New data type.
11654         (si_from_UTItype, si_to_UTItype): New functions.
11655         (__udivmodti4): Use them to implement type-punning.
11656         * config/spu/multi3.c (union qword_TItype): New data type.
11657         (si_from_TItype, si_to_TItype): New functions.
11658         (__multi3): Use them to implement type-punning.
11660 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11662         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
11664 2011-04-27  Jan Hubicka  <jh@suse.cz>
11666         * ipa-prop.c (function_insertion_hook_holder): New holder.
11667         (ipa_add_new_function): New function.
11668         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
11669         Register/deregister holder.
11671 2011-04-27  Richard Guenther  <rguenther@suse.de>
11673         PR tree-optimization/48772
11674         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
11676 2011-04-27  Richard Guenther  <rguenther@suse.de>
11678         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
11679         TARGET_MEM_REF handling.
11681 2011-04-27  Nick Clifton  <nickc@redhat.com>
11683         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
11684         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
11685         (REG_CLASS_NAMES): Likewise.
11686         (REG_CLASS_CONTENTS): Likewise.
11687         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
11688         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
11689         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
11690         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
11691         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
11692         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
11693         duplicate register classes.
11694         (frv_class_likely_spilled_p): Likewise.
11695         (frv_register_move_cost): Likewise.
11697         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
11698         end of the regno_reg_class array.
11700 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
11702         PR c/48742
11703         * c-typeck.c (build_binary_op): Don't wrap arguments if
11704         int_operands is true.
11706 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
11708         PR target/48767
11709         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
11710         targetm.calls.must_pass_in_stack for void type.
11712 2011-04-26  Jan Hubicka  <jh@suse.cz>
11714         * cgraphbuild.c (build_cgraph_edges): Update call
11715         of cgraph_create_edge and cgraph_create_indirect_edge.
11716         * cgraph.c (cgraph_create_edge_including_clones,
11717         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
11718         cgraph_update_edges_for_call_stmt_node): Do not take nest
11719         argument; do not initialize call_stmt_size/time.
11720         (dump_cgraph_node): Do not dump nest.
11721         (cgraph_clone_edge): Do not take loop_nest argument;
11722         do not propagate it; do not clone call_stmt_size/time.
11723         (cgraph_clone_node): Likewise.
11724         (cgraph_create_virtual_clone): Update.
11725         * cgraph.h (struct cgraph_edge): Remove
11726         call_stmt_size/call_stmt_time/loop_nest.
11727         (cgraph_create_edge, cgraph_create_indirect_edge,
11728         cgraph_create_edge_including_clones, cgraph_clone_node): Update
11729         prototype.
11730         * tree-emutls.c (gen_emutls_addr): Update.
11731         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
11732         loop_nest; handle indirect calls, too.
11733         (clone_inlined_nodes): Do not care about updating inline summaries.
11734         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
11735         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
11736         stream call_stmt_size/call_stmt_time/loop_nest.
11737         * ipa-inline.c (edge_badness): Update.
11738         (ipa_inline): dump summaries after inlining.
11739         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
11740         New.
11741         (inline_edge_summary): New function.
11742         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
11743         (inline_edge_removal_hook): Handle edge summaries.
11744         (inline_edge_duplication_hook): New hook.
11745         (inline_summary_alloc): Alloc hooks.
11746         (initialize_growth_caches): Do not register removal hooks.
11747         (free_growth_caches); Do not free removal hook.
11748         (dump_inline_edge_summary): New function.
11749         (dump_inline_summary): Use it.
11750         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
11751         (inline_update_callee_summaries): New function.
11752         (inline_merge_summary): Use it.
11753         (do_estimate_edge_time, do_estimate_edge_growth): Update.
11754         (read_inline_edge_summary): New function.
11755         (inline_read_section): Use it.
11756         (write_inline_edge_summary): New function.
11757         (inline_write_summary): Use it.
11758         (inline_free_summary): Free edge new holders.
11759         * tree-inline.c (copy_bb): Update.
11761 2011-04-26  Jason Merrill  <jason@redhat.com>
11763         * tree-eh.c (lower_try_finally_switch): Create the label along with
11764         the CASE_LABEL_EXPR.
11766 2011-04-26  David S. Miller  <davem@davemloft.net>
11767             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11769         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
11770         * configure: Regenerate.
11772 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11774         PR target/48258
11775         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
11776         reduction.
11777         (VEC_reduc): New code iterator and splitters for vector reduction.
11778         (VEC_reduc_name): Ditto.
11779         (VEC_reduc_rtx): Ditto.
11780         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
11781         (reduc_<VEC_reduc_name>_v4sf): Ditto.
11783         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11784         support for extracting SF on VSX.
11786         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
11787         generating xscvspdp.
11788         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
11789         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
11790         double add, minimum, maximum vector reduction.
11791         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
11792         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
11793         optimize double vector reduction.
11794         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
11796 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
11798         * config/fr30/fr30.h (inhibit_libc): Don't define.
11799         * config/m32r/m32r-protos.h: Correct comment.
11800         * config/v850/v850.h (GHS_default_section_names,
11801         GHS_current_section_names): Use tree, not union tree_node *.
11803 2011-04-26  Xinliang David Li  <davidxl@google.com>
11805         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
11806         * c-family/c-opts.c (c_common_handle_option): Set
11807         warn_maybe_uninitialized.
11808         * opts.c (common_handle_option): Ditto.
11809         * common.opt:  New option.
11810         * tree-ssa.c (warn_uninit): Add one more parameter.
11811         (warn_uninitialized_var): Pass warning code.
11812         * tree-flow.h: Interface change.
11814 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11816         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
11817         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
11818         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
11820 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11822         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
11823         * config/mips/mips.opt (mmips-tfile): Remove.
11825         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
11826         mips-tdump reference to ...
11827         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
11828         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
11829         reference by Tru64 UNIX.
11831 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
11833         PR debug/48768
11834         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
11835         is error_mark_node, set value to NULL.
11837         PR tree-optimization/48734
11838         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
11839         if return value from maybe_fold_*_comparsions isn't something
11840         the code is prepared to handle.
11842 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
11844         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
11845         mode check.
11846         (ext_QIreg_nomode_operands): Remove.
11847         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
11848         (*andsi_1): Ditto.
11849         (*andhi_1): Ditto.
11851 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
11853         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
11855 2011-04-26  Richard Guenther  <rguenther@suse.de>
11857         * c-typeck.c (build_unary_op): Do not expand array-refs via
11858         pointer arithmetic.  Only adjust qualifiers for function types.
11860 2011-04-26  Richard Guenther  <rguenther@suse.de>
11862         PR middle-end/48694
11863         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
11864         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
11865         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
11866         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
11868 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
11870         * doc/extend.texi: Document __underlying_type.
11872 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
11874         * config/rs6000/titan.md (automata_option "progress"): Remove.
11876 2011-04-25  Jeff Law  <law@redhat.com>
11878         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
11880 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11882         * system.h (ENUM_BITFIELD): Remove.
11884 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
11885             Eric Botcazou  <ebotcazou@adacore.com>
11887         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
11888         for STORE_FLAG_VALUE==-1 case.
11890 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
11892         PR target/43804
11893         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
11894         LEGITIMATE_PIC_OPERAND_P.
11896 2011-04-24  Jan Hubicka  <jh@suse.cz>
11898         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
11899         WPA hack.
11900         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
11901         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
11902         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
11903         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
11904         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
11905         Sanity check predicate length.
11906         (remap_predicate): Likewise; sanity check jump functions.
11907         (inline_read_section, inline_write_summary): Sanity check
11908         predicate length.
11910 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
11912         PR other/48748
11913         * doc/extend.texi (Type Traits): Document __is_standard_layout,
11914         __is_literal_type, and __is_trivial; update throughout about
11915         possibly cv-qualified void types.
11917 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
11919         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
11920         testsuite and make it version agnostic.
11922 2011-04-22  Jan Hubicka  <jh@suse.cz>
11924         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
11926 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
11928         PR c/48685
11929         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
11930         to VOID_TYPE even around MODIFY_EXPR.
11932 2011-04-22  Mike Stump  <mikestump@comcast.net>
11934         * gensupport.c (read_md_rtx): Fix typo in comment.
11935         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
11936         comment.
11938 2011-04-22  Jan Hubicka  <jh@suse.cz>
11940         * gengtype.c (open_base_files): Add ipa-inline.h include.
11941         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
11942         ipa-prop.c; update all uses.
11943         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
11944         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
11945         merge summary of inlined function into former caller.
11946         * ipa-inline.c (max_benefit): Remove.
11947         (edge_badness): Compensate for removal of benefits.
11948         (update_caller_keys): Use
11949         reset_node_growth_cache/reset_edge_growth_cache.
11950         (update_callee_keys): Likewise.
11951         (update_all_callee_keys): Likewise.
11952         (inline_small_functions): Do not collect max_benefit; do not reset
11953         estimated_growth; call free_growth_caches and initialize_growth_caches.
11954         * ipa-inline.h (struct condition, type clause_t, struct predicate,
11955         struct size_time_entry): New structures.
11956         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
11957         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
11958         and estimated_growth.
11959         (edge_growth_cache_entry): New structure.
11960         (node_growth_cache, edge_growth_cache): New global vars.
11961         (estimate_growth): Turn into inline.
11962         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
11963         initialize_growth_caches, free_growth_caches): Declare.
11964         (estimate_edge_growth): Rewrite.
11965         (estimate_edge_time): Implement as inline cache lookup.
11966         (reset_node_growth_cache, reset_edge_growth_cache): New inline
11967         functions.
11968         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
11969         (NUM_CONDITIONS): New constant.
11970         (predicate_conditions): New enum.
11971         (IS_NOT_CONSTANT): New constant.
11972         (edge_removal_hook_holder): New var.
11973         (node_growth_cache, edge_growth_cache): New global vars.
11974         (true_predicate, single_cond_predicate, false_predicate,
11975         not_inlined_predicate, add_condition, add_clause, and_predicates,
11976         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
11977         dump_clause, dump_predicate, account_size_time,
11978         evaulate_conditions_for_edge): New functions.
11979         (inline_summary_alloc): Move to heap.
11980         (inline_node_removal_hook): Clear condition and entry vectors.
11981         (inline_edge_removal_hook): New function.
11982         (initialize_growth_caches, free_growth_caches): New function.
11983         (dump_inline_summary): Update.
11984         (edge_execution_predicate): New function.
11985         (will_be_nonconstant_predicate): New function.
11986         (estimate_function_body_sizes): Compute BB and constantness predicates.
11987         (compute_inline_parameters): Do not clear estimated_growth.
11988         (estimate_edge_size_and_time): New function.
11989         (estimate_calls_size_and_time): New function.
11990         (estimate_callee_size_and_time): New function.
11991         (remap_predicate): New function.
11992         (inline_merge_summary): New function.
11993         (do_estimate_edge_time): New function based on...
11994         (estimate_edge_time): ... this one.
11995         (do_estimate_edge_growth): New function.
11996         (do_estimate_growth): New function based on....
11997         (estimate_growth): ... this one.
11998         (inline_analyze_function): Analyze after deciding on jump functions.
11999         (inline_read_section): New function.
12000         (inline_read_summary): Use it.
12001         (inline_write_summary): Write all the new data.
12002         * ipa-prop.c (ipa_get_param_decl_index): Export.
12003         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
12004         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
12005         Declare.
12006         (ipa_get_lattice): Move here from ipa-cp.c
12007         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
12008         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
12009         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
12010         cgraph_edge_inlinable_p): Remove.
12011         * cgraphunit.c: Include ipainline.h
12012         (cgraph_process_new_functions): Update call of
12013         compute_inline_parameters.
12015 2011-04-22  Richard Guenther  <rguenther@suse.de>
12017         * tree.c (build_int_cst): Properly create canonicalized integer
12018         constants.
12019         (build_int_cst_type): Remove scary comments.
12021 2011-04-22  Xinliang David Li  <davidxl@google.com>
12023         * toplev.c (process_options): Enable -Werror=coverage-mismatch
12024         by default when -Wno-error is not specified.
12025         * opts-global.c (decode_options): Remove call to
12026         control_warning_options.
12028 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
12030         PR tree-optimization/48717
12031         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
12032         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
12034 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
12036         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
12037         definition where used.
12039 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
12041         PR c/48716
12042         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
12043         TREE_STATIC variables declared inside of some OpenMP construct.
12045 2011-04-22  Martin Jambor  <mjambor@suse.cz>
12047         PR middle-end/48585
12048         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
12050 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
12052         PR c/36750
12053         * c-typeck.c (pop_init_level): Do not warn about initializing
12054         with ` = {0}'.
12056 2011-04-22  Alan Modra  <amodra@gmail.com>
12058         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
12059         when returning call_cookie.
12060         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
12061         pointers, to functions with no more vector args than the current
12062         function, and some non-local calls for ABI_V4.
12063         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
12064         sibcall_nonlocal_aix64): Combine to ..
12065         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
12066         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
12067         (sibcall_value_nonlocal_aix<mode>): ..likewise.
12068         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
12069         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
12070         operand.
12071         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
12072         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
12073         sibcall_value_symbolic_64): Delete.
12075 2011-04-21  Xinliang David Li  <davidxl@google.com>
12077         * cgraph.h: Remove pid.
12078         * cgraph.c: Remove pid.
12079         * value-prof.c (init_node_map): New function.
12080         (del_node_map): New function.
12081         (find_func_by_funcdef_no): New function.
12082         (gimple_ic_transform): Call new function.
12083         * cgraphunit.c (cgraph_finalize_function): Remove pid.
12084         * function.c (get_last_funcdef_no): New function.
12085         * function.h (get_last_funcdef_no): New function.
12086         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
12087         to libgcov function.
12088         (tree-profiling): Call node map init and delete function.
12090 2011-04-21  Ian Lance Taylor  <iant@google.com>
12092         * godump.c (go_format_type): Use exported Go name for anonymous
12093         field name.
12095 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12097         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
12098         Call builtin_function_type_list instead of builtin_function_type.
12099         (UNARY, BINARY, TRINARY, QUAD): Likewise.
12101 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12103         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
12104         build_function_type_list instead of build_function_type.
12105         Delete variable `endlink'.
12107 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12109         * config/s390/s390.c (s390_init_builtins): Call
12110         build_function_type_list instead of build_function_type.
12112 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12114         * config/ia64/ia64.c (ia64_init_builtins): Call
12115         build_function_type_list instead of builtin_function_type.
12117 2011-04-21  Easwaran Raman  <eraman@google.com>
12119         * cfgexpand.c (stack_var): Remove OFFSET...
12120         (add_stack_var): ...and its reference here...
12121         (expand_stack_vars): ...and here.
12122         (stack_var_cmp): Sort by descending order of size.
12123         (partition_stack_vars): Change heuristic.
12124         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
12125         (dump_stack_var_partition): Add newline after each partition.
12127 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
12128             Jeff Law  <law@redhat.com>
12130         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
12131         * gengtype.c (matching_file_name_substitute): Likewise.
12133 2011-04-21  Richard Guenther  <rguenther@suse.de>
12135         PR lto/48703
12136         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
12138 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
12140         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
12142 2011-04-21  Richard Guenther  <rguenther@suse.de>
12144         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
12145         file name.
12147 2011-04-21  Richard Guenther  <rguenther@suse.de>
12149         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12150         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
12151         Use DECL_P, not SSA_VAR_P.
12152         (ptr_derefs_may_alias_p): Likewise.
12153         (ptr_deref_may_alias_ref_p_1): Likewise.
12154         (decl_refs_may_alias_p): Likewise.
12155         (refs_may_alias_p_1): Likewise.
12156         (ref_maybe_used_by_call_p_1): Likewise.
12157         (call_may_clobber_ref_p_1): Likewise.
12158         (indirect_ref_may_alias_decl_p): Assume indirect refrences
12159         are either MEM_REF or TARGET_MEM_REF.
12160         (indirect_refs_may_alias_p): Likewise.
12161         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
12162         for MEM_EXPR of indirect calls.
12164 2011-04-21  Tristan Gingold  <gingold@adacore.com>
12166         * vmsdbgout.c (write_srccorr): Compute file length from the string.
12167         (dst_file_info_struct): Remove flen field.
12168         (lookup_filename): Remove code that set flen field.
12170 2011-04-21  Tristan Gingold  <gingold@adacore.com>
12172         * config/ia64/ia64.c (ia64_start_function): Add a guard.
12174 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
12176         PR target/48708
12177         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
12178         vec_extract and vec_concat for non-SSE4_1 targets.
12180 2011-04-21  Richard Guenther  <rguenther@suse.de>
12182         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
12183         return statements.
12185 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
12187         * config/i386/cygming.h (union tree_node, TREE): Don't define or
12188         undefine.
12189         (FILE): Don't undefine.
12191 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
12193         * config/alpha/alpha.c (struct machine_function): Use rtx, not
12194         struct rtx_def *.
12195         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
12196         struct rtx_def *.
12197         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
12198         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
12199         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
12200         rtx_def *.
12201         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
12202         definitions where used.
12203         * config/microblaze/microblaze.h (struct microblaze_args): Use
12204         rtx, not struct rtx_def *.
12205         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
12206         rtx_def *.
12207         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
12208         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
12209         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
12210         not struct rtx_def *.
12211         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
12212         struct rtx_def *.
12213         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
12214         rtx_def *.
12215         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
12217 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
12219         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
12220         operand_equal_p to compare DR_BASE_ADDRESSes.
12221         (vect_check_interleaving): Likewise.
12223 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
12225         PR target/46329
12226         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
12227         for all Neon struct constants.
12229 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
12231         * target.def (legitimate_constant_p): New hook.
12232         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
12233         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
12234         * doc/tm.texi: Regenerate.
12235         * hooks.h (hook_bool_mode_rtx_true): Declare.
12236         * hooks.c (hook_bool_mode_rtx_true): Define.
12237         * system.h (LEGITIMATE_CONSTANT_P): Poison.
12238         * calls.c (precompute_register_parameters): Replace uses of
12239         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
12240         (emit_library_call_value_1): Likewise.
12241         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
12242         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
12243         * ira-costs.c (scan_one_insn): Likewise.
12244         * recog.c (general_operand, immediate_operand): Likewise.
12245         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
12246         * reload1.c (init_eliminable_invariants): Likewise.
12248         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
12249         mode argument.
12250         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
12251         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
12252         argument.
12253         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12254         * config/alpha/predicates.md (input_operand): Update call to
12255         alpha_legitimate_constant_p.
12257         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
12258         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
12259         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
12260         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12261         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
12262         (arm_legitimate_constant_p): New functions.
12263         (arm_cannot_force_const_mem): Make static.
12265         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
12267         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
12268         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
12269         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
12270         instead of bfin_legitimate_constant_p.
12271         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
12272         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12274         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
12276         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
12278         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
12279         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
12280         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12281         (frv_legitimate_constant_p): Make static.  Add a mode argument.
12283         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
12284         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
12285         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
12287         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
12288         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
12289         * config/i386/i386.c (legitimate_constant_p): Rename to...
12290         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
12291         argument.
12292         (ix86_cannot_force_const_mem): Update accordingly.
12293         (ix86_legitimate_address_p): Likewise.
12294         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12295         * config/i386/i386.md: Update commentary.
12297         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
12298         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
12299         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12300         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
12302         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
12304         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
12305         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
12306         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12307         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
12309         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
12310         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
12311         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
12313         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
12314         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12315         (m32r_legitimate_constant_p): New function.
12317         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
12318         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
12319         LEGITIMATE_CONSTANT_P.
12320         (LEGITIMATE_CONSTANT_P): Delete.
12321         * config/m68k/m68k.c (m68k_expand_prologue): Call
12322         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
12323         (m68k_legitimate_constant_p): New function.
12324         * config/m68k/m68k.md: Update comments.
12326         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
12327         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12328         (mcore_legitimate_constant_p): New function.
12330         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
12331         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
12332         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
12333         Add a mode argument.
12334         (mep_legitimate_address): Update accordingly.
12335         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12337         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
12338         Delete.
12339         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
12340         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
12341         static.  Check OP's mode for VOIDmode.
12342         (microblaze_legitimate_constant_p): New function.
12343         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12345         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
12346         * config/mips/mips.c (mips_legitimate_constant_p): New function.
12347         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
12348         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12349         * config/mips/predicates.md: Update comments.
12351         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
12352         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
12353         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12354         (mmix_legitimate_constant_p): Make static, return a bool, and take
12355         a mode argument.
12356         (mmix_print_operand_address): Update accordingly.
12358         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
12359         Delete.
12360         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
12361         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
12362         static.  Add a mode argument.
12363         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12365         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
12367         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
12368         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12369         (pa_legitimate_constant_p): New function.
12371         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
12373         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
12374         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12375         (pdp11_legitimate_constant_p): New function.
12377         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
12378         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12379         (rs6000_legitimate_constant_p): New function.
12381         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
12382         (rx_legitimate_constant_p): ...this.
12383         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
12384         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
12385         (rx_legitimate_constant_p): ...this.
12386         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12387         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
12389         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
12390         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
12391         * config/s390/s390.c (legitimate_constant_p): Rename to...
12392         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
12393         and add a mode argument.
12394         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12396         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
12398         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
12399         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12400         (sh_legitimate_constant_p): New function.
12402         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
12403         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
12404         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12405         (legitimate_constant_p): Rename to...
12406         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
12407         argument.
12408         (constant_address_p): Update accordingly.
12410         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
12411         argument and return a bool.
12412         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
12413         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12414         (spu_legitimate_constant_p): Add a mode argument and return a bool.
12415         (spu_rtx_costs): Update accordingly.
12416         * config/spu/predicates.md (vec_imm_operand): Likewise.
12418         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
12420         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
12421         * config/v850/v850.c (v850_legitimate_constant_p): New function.
12422         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12424         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
12425         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
12426         * config/vax/vax.c (legitimate_constant_p): Likewise.
12428         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
12429         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12430         (xtensa_legitimate_constant_p): New function.
12432 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
12434         * target.def (cannot_force_const_mem): Add a mode argument.
12435         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
12436         * doc/tm.texi: Regenerate.
12437         * hooks.h (hook_bool_mode_rtx_false): Declare.
12438         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
12439         (hook_bool_mode_const_rtx_true): Likewise.
12440         (hook_bool_mode_rtx_false): New function.
12441         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
12442         to be non-VOID.  Update call to cannot_force_const_mem.
12443         (find_reloads): Update accordingly.
12444         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
12445         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
12446         argument.
12447         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
12448         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
12449         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
12450         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
12451         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
12452         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
12453         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
12454         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
12455         (m68k_cannot_force_const_mem): ...this new function.
12456         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
12457         argument.
12458         (mips_const_insns, mips_legitimize_const_move): Update calls.
12459         (mips_secondary_reload_class): Likewise.
12460         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
12461         (pa_cannot_force_const_mem): ...this new function.
12462         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
12463         (rs6000_cannot_force_const_mem): ...this new function.
12464         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
12465         argument.
12466         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
12467         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
12468         to...
12469         (xtensa_cannot_force_const_mem): ...this new function.
12471 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
12473         * config/mips/mips.c (mips16_build_function_stub): Call
12474         build_function_type_list instead of build_function_type.
12475         (mips16_build_call_stub): Likewise.
12477 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
12479         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
12480         instead of build_function_type.
12482 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
12484         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
12485         instead of build_function_type.
12487 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
12489         PR target/48678
12490         * config/i386/i386.md (insv): Change operand 0 constraint to
12491         "register_operand".  Change operand 1 and 2 constraint to
12492         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
12493         * config/i386/sse.md (sse4_1_pinsrb): Export.
12494         (sse2_pinsrw): Ditto.
12495         (sse4_1_pinsrd): Ditto.
12496         (sse4_1_pinsrq): Ditto.
12497         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
12498         * config/i386/i386.c (ix86_expand_pinsr): New.
12500 2011-04-20  Easwaran Raman  <eraman@google.com>
12502         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
12503         containing union type only with -fstrict-aliasing.
12505 2011-04-20  Jim Meyering  <meyering@redhat.com>
12507         Remove useless if-before-free tests.
12508         * calls.c (expand_call, save_area): Likewise.
12509         * cfgcleanup.c (try_forward_edges): Likewise.
12510         * collect2.c (collect_execute): Likewise.
12511         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
12512         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
12513         * coverage.c (coverage_checksum_string): Likewise.
12514         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
12515         * cselib.c (cselib_init): Likewise.
12516         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
12517         (df_set_clean_cfg): Likewise.
12518         * function.c (free_after_compilation): Likewise.
12519         * gcc.c (do_spec_1, main): Likewise.
12520         * gcov.c (create_file_names): Likewise.
12521         * gensupport.c (identify_predicable_attribute): Likewise.
12522         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
12523         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
12524         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
12525         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
12526         * ipa-pure-const.c (local_pure_const): Likewise.
12527         * ipa-reference.c (propagate): Likewise.
12528         * ira-costs.c (free_ira_costs): Likewise.
12529         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
12530         * matrix-reorg.c (mat_free): Likewise.
12531         * prefix.c (get_key_value): Likewise.
12532         * profile.c (compute_value_histograms): Likewise.
12533         * reload1.c (free_reg_equiv): Likewise.
12534         * sched-deps.c (free_deps): Likewise.
12535         * sel-sched-ir.c (fence_clear): Likewise.
12536         * sese.c (set_rename, if_region_set_false_region): Likewise.
12537         * tree-data-ref.c (free_rdg): Likewise.
12538         * tree-eh.c (lower_try_finally): Likewise.
12539         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
12540         * tree-ssa-live.c (delete_var_map): Likewise.
12541         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
12542         * tree-ssa-pre.c (phi_trans_add): Likewise.
12544 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
12546         PR tree-optimization/48611
12547         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
12548         beyond ERT_MUST_NOT_THROW region.
12550 2011-04-20  Catherine Moore  <clm@codesourcery.com>
12552         * config/mips/mips.opt (mfix-24k): New.
12553         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
12554         * config/mips/mips.md (length): Increase by 4 for stores if
12555         fixing 24K errata.
12556         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
12557         all noreorder if fixing 24K errata.
12558         * doc/invoke.texi: Document mfix-24k.
12560 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
12562         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
12563         quad-word modes, reduce to 9-bit index range when above 1016 limit.
12565 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
12567         * config/arm/arm.c (arm_gen_constant): Move movw support ....
12568         (const_ok_for_op): ... to here.
12570 2011-04-20  Kai Tietz  <ktietz@redhat.com>
12572         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
12573         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
12575 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
12577         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
12579 2011-04-20  Richard Guenther  <rguenther@suse.de>
12581         PR tree-optimization/47892
12582         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
12583         are if-convertible.
12585 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
12587         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
12589 2011-04-20  Tristan Gingold  <gingold@adacore.com>
12591         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
12593 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
12595         PR target/18145
12597         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
12598         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
12599         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12600         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
12601         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
12603         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
12604         New prototype.
12606         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
12607         (avr_asm_named_section, avr_asm_output_aligned_common,
12608         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
12609         New functions to update...
12610         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
12611         (avr_asm_init_sections): Overwrite section callbacks for
12612         data_section, bss_section.
12613         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
12614         from here to...
12615         (avr_file_end): ...here.
12617 2011-04-20  Richard Guenther  <rguenther@suse.de>
12619         PR middle-end/48695
12620         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
12621         objects and types here.  Adjust for their offset before comparing.
12623 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
12625         * tree-vect-stmts.c (vectorizable_store): Only chain one related
12626         statement per copy.
12628 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
12630         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
12631         (GIMPLE_H): Include $(INTERNAL_FN_H).
12632         (OBJS-common): Add internal-fn.o.
12633         (internal-fn.o): New rule.
12634         * internal-fn.def: New file.
12635         * internal-fn.h: Likewise.
12636         * internal-fn.c: Likewise.
12637         * gimple.h: Include internal-fn.h.
12638         (GF_CALL_INTERNAL): New gf_mask.
12639         (gimple_statement_call): Put fntype into a union with a new
12640         internal_fn field.
12641         (gimple_build_call_internal): Declare.
12642         (gimple_build_call_internal_vec): Likewise.
12643         (gimple_call_same_target_p): Likewise.
12644         (gimple_call_internal_p): New function.
12645         (gimple_call_internal_fn): Likewise.
12646         (gimple_call_fntype): Return null for internal calls.
12647         (gimple_call_set_fntype): Assert that the function is not internal.
12648         (gimple_call_set_fn): Likewise.
12649         (gimple_call_set_fndecl): Likewise.
12650         (gimple_call_set_internal_fn): New function.
12651         (gimple_call_addr_fndecl): Handle null functions.
12652         (gimple_call_return_type): Likewise null types.
12653         * gimple.c (gimple_build_call_internal_1): New function.
12654         (gimple_build_call_internal): Likewise.
12655         (gimple_build_call_internal_vec): Likewise.
12656         (gimple_call_same_target_p): Likewise.
12657         (gimple_call_flags): Handle calls to internal functions.
12658         (gimple_call_fnspec): New function.
12659         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
12660         (gimple_has_side_effects): Handle null functions.
12661         (gimple_rhs_has_side_effects): Likewise.
12662         (gimple_call_copy_skip_args): Handle calls to internal functions.
12663         * cfgexpand.c (expand_call_stmt): Likewise.
12664         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
12665         * gimple-fold.c (gimple_fold_call): Handle null functions.
12666         (gimple_fold_stmt_to_constant_1): Don't fold
12667         calls to internal functions.
12668         * gimple-low.c (gimple_check_call_args): Handle calls to internal
12669         functions.
12670         * gimple-pretty-print.c (dump_gimple_call): Likewise.
12671         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
12672         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
12673         (do_warn_unused_result): Likewise.
12674         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
12675         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
12676         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
12677         the target of a call.
12678         (initialize_hash_element): Update accordingly.
12679         (hashable_expr_equal_p): Use gimple_call_same_target_p.
12680         (iterative_hash_hashable_expr): Handle calls to internal functions.
12681         (print_expr_hash_elt): Likewise.
12682         * tree-ssa-pre.c (can_value_number_call): Likewise.
12683         (eliminate): Handle null functions.
12684         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
12685         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
12686         (find_func_aliases): Likewise.
12687         * value-prof.c (gimple_ic_transform): Likewise.
12688         (gimple_indirect_call_to_profile): Likewise.
12689         * lto-streamer-in.c (input_gimple_stmt): Likewise.
12690         * lto-streamer-out.c (output_gimple_stmt): Likewise.
12692 2011-04-19  Jan Hubicka  <jh@suse.cz>
12694         * ipa-inline-transform.c (save_inline_function_body): Add comments.
12695         * ipa-inline.c (inline_small_functions): Compute summaries first,
12696         populate heap later.
12698 2011-04-19  Jan Hubicka  <jh@suse.cz>
12700         * cgraph.h (save_inline_function_body): Remove.
12701         * ipa-inline-transform.c: New file, broke out of...
12702         * ipa-inline.c: ... this one; Update toplevel comment.
12703         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
12704         make global.
12705         (update_noncloned_frequencies): Move to ipa-inline-transform.c
12706         (cgraph_mark_inline_edge): Rename to inline_call; move to
12707         ipa-inline-transform.c.
12708         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
12709         move to ipa-inline-transform.c
12710         (recursive_inlining, inline_small_functions, flatten_function,
12711         ipa_inline, inline_always_inline_functions,
12712         early_inline_small_functions): Update.
12713         (inline_transform): Move to ipa-inline-transform.c.
12714         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
12715         Declare.
12716         * Makefile.in (ipa-inline-transform.o): New file.
12717         * cgraphunit.c (save_inline_function_body): Move to
12718         ipa-inline-transform.c
12720 2011-04-19  DJ Delorie  <dj@redhat.com>
12722         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
12723         registers if we already know there aren't any.
12724         (m32c_emit_epilogue): Don't emit a barrier here.
12725         (m32c_emit_eh_epilogue): Likewise.
12726         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
12727         operands at expand time.
12728         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
12729         int" wchar type.
12730         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
12731         duplicates.  Provide aliases instead.
12732         * config/m32c/prologue.md (eh_return): Emit a barrier here.
12733         (eh_epilogue): Add a "(return)" here as a hint to other parts of
12734         the compiler.
12736 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
12738         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
12739         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
12740         (general_or_i64_p, sparc_register_move_cost): New function.
12742 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12744         * doc/install.texi (Configuration, --enable-threads): Remove mach.
12745         Add lynx, mipssde.  Sort table.
12747 2011-04-19  Xinliang David Li  <davidxl@google.com>
12749         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
12750         not negative.
12752 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
12754         PR target/48678
12755         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
12756         is a SUBREG with non-MODE_INT mode inside of it.
12758 2011-04-19  Martin Jambor  <mjambor@suse.cz>
12760         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
12761         also according to actual contants.
12762         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
12763         (gimple_fold_call): Use it.
12764         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
12766 2011-04-19  Martin Jambor  <mjambor@suse.cz>
12768         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
12769         non-pointer assignments.
12771 2011-04-19  Martin Jambor  <mjambor@suse.cz>
12773         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
12774         account anc_offset and otr_type from the indirect edge info.
12775         * ipa-prop.c (get_ancestor_addr_info): New function.
12776         (compute_complex_ancestor_jump_func): Assignment analysis moved to
12777         get_ancestor_addr_info, call it.
12778         (ipa_note_param_call): Do not initialize information about polymorphic
12779         calls, return the indirect call graph edge.  Remove the last
12780         parameter, adjust all callers.
12781         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
12782         parameters.  Initialize polymorphic information in the indirect edge.
12784 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12786         PR lto/48148
12787         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
12788         the types if they have different enumeration identifiers.
12790 2011-04-19  Jan Hubicka  <jh@suse.cz>
12792         * cgraph.h (cgraph_optimize_for_size_p): Declare.
12793         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
12794         * predict.c (cgraph_optimize_for_size_p): Break out from ...
12795         (optimize_function_for_size_p) ... here.
12797 2011-04-19  Richard Guenther  <rguenther@suse.de>
12799         PR lto/48207
12800         * tree.c (free_lang_data): Do not reset the decl-assembler-name
12801         langhook.
12803 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12805         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
12806         if DECL_NO_INLINE_WARNING_P is set on the function.
12808 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
12810         PR fortran/47976
12811         * reload1.c (inc_for_reload): Return void. All callers changed.
12812         (emit_input_reload_insns): Don't try to delete previous output
12813         reloads to a register, or record spill_reg_store for autoincs.
12815 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
12817         * gengtype.h: Updated copyright year.
12818         (struct input_file_st): Add inpisplugin field.
12819         (type_fileloc): New function.
12820         * gengtype.c
12821         (write_typed_struct_alloc_def): Add gcc_assert.
12822         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
12823         (write_typed_alloc_defns): Don't output for plugin files.
12824         (input_file_by_name): Clear inpisplugin field.
12825         (main): Set inpisplugin field for plugin files.
12827 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
12829         * gengtype-state.c (string_eq): New.
12830         (read_state): Use string_eq instead of strcmp when creating the
12831         state_ident_tab.
12833 2011-04-19  Wei Guozhi  <carrot@google.com>
12835         PR target/47855
12836         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
12837         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
12838         linkage.
12839         * config/arm/constraints.md (Uu): New constraint.
12840         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
12842 2011-04-19  Tristan Gingold  <gingold@adacore.com>
12844         * config.gcc (-*-*-*vms): Added.
12845         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
12846         definitions moved.
12847         * config/vms/vms-ld.c: New file.
12848         * config/vms/vms-ar.c: New file.
12849         * config/vms/t-vmsnative: New file.
12851 2011-04-18  Xinliang David Li  <davidxl@google.com>
12853         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
12855 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
12857         PR middle-end/48661
12858         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
12859         if TREE_TYPE (v) is non-NULL.
12861         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
12862         gimple_get_virt_mehtod_for_binfo.
12863         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
12864         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
12865         callers.
12866         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
12868 2011-04-18  Michael Matz  <matz@suse.de>
12869             Steve Ellcey  <sje@cup.hp.com>
12871         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
12872         use its mode as source mode if it isn't VOIDmode.
12874 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
12876         * doc/passes.texi: Fill crossref nodes.
12878 2011-04-18  Jim Meyering  <meyering@redhat.com>
12880         Fix doubled-word typos in comments and strings
12881         * config/alpha/vms-unwind.h: s/for for/for/
12882         * config/arm/unwind-arm.h: Likewise.
12883         * config/microblaze/microblaze.c: Likewise.
12884         * config/sh/constraints.md: s/in in/in/
12885         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
12887 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
12889         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
12890         (AVX_FLOAT_MODE_P): Ditto.
12891         (AVX128_VEC_FLOAT_MODE_P): Ditto.
12892         (AVX256_VEC_FLOAT_MODE_P): Ditto.
12893         (AVX_VEC_FLOAT_MODE_P): Ditto.
12894         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
12895         (UNSPEC_MASKSTORE): Ditto.
12896         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
12897         Merge from <sse>_movmsk<ssemodesuffix> and
12898         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
12899         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
12900         iterator.
12901         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
12902         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
12903         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
12905 2011-04-18  Jan Hubicka  <jh@suse.cz>
12907         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
12909         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
12910         (want_inline_function_called_once_p): Break out the logic from
12911         ipa_inline.
12912         (edge_badness): Ensure that profile is not misupdated.
12913         (lookup_recursive_calls): Prioritize by call frequencies.
12914         (inline_small_functions): Move program size estimates here;
12915         actually process whole queue even when unit growth has been
12916         met. (to properly compute inline_failed reasons and for the
12917         case unit size decrease.) Revisit comments on recursive inlining.
12918         (ipa_inline): Remove unit summary code; first inline hot calls
12919         of functions called once, cold calls next.
12920         (order, nnodes): Remove unused variables.
12921         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
12922         (GTFILES): Remove ipa-inline.c
12923         * sel-sched.c (fill_insns): Silence uninitialized var warning.
12925 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12927         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
12929 2011-04-18  Jie Zhang  <jie@codesourcery.com>
12930             Richard Earnshaw  <rearnsha@arm.com>
12932         * arm.c (neon_builtin_type_bits): Remove.
12933         (typedef enum neon_builtin_mode): New.
12934         (T_MAX): Don't define.
12935         (typedef enum neon_builtin_datum): Remove bits, codes[],
12936         num_vars and base_fcode.  Add mode, code and fcode.
12937         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
12938         VAR10): Change accordingly.
12939         (neon_builtin_data[]): Change accordingly
12940         (arm_init_neon_builtins): Change accordingly.
12941         (neon_builtin_compare): Remove.
12942         (locate_neon_builtin_icode): Remove.
12943         (arm_expand_neon_builtin): Change accordingly.
12945         * arm.h (enum arm_builtins): Move to ...
12946         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
12948         * arm.c (arm_builtin_decl): Declare.
12949         (TARGET_BUILTIN_DECL): Define.
12950         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
12951         (arm_builtin_decls[]): New.
12952         (arm_init_neon_builtins): Store builtin declarations in
12953         arm_builtin_decls[].
12954         (arm_init_tls_builtins): Likewise.
12955         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
12956         (arm_builtin_decl): New.
12958 2011-04-18  Richard Guenther  <rguenther@suse.de>
12960         * tree.c (upper_bound_in_type): Build properly canonicalized
12961         INTEGER_CSTs.
12962         (lower_bound_in_type): Likewise.
12964 2011-04-18  Richard Guenther  <rguenther@suse.de>
12966         * gimple.h (gimple_call_addr_fndecl): New function.
12967         (gimple_call_fndecl): Use it.
12968         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
12969         for direct calls.
12970         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
12971         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
12973 2011-04-18  Richard Guenther  <rguenther@suse.de>
12975         PR middle-end/48650
12976         * tree.c (build_string): STRING_CST is now derived from tree_typed.
12978 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12980         PR lto/48492
12981         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
12982         DECL_IN_CONSTANT_POOL without RTL.
12984 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
12985             Ira Rosen  <ira.rosen@linaro.org>
12987         PR target/48252
12988         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
12989         to match neon_vzip/vuzp/vtrn_internal.
12990         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
12991         outputs explicitly dependent on both inputs.
12992         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
12994 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
12996         PR tree-optimization/48616
12997         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
12998         whether the shift is by scalar or vector based on whether all SLP
12999         scalar stmts have the same rhs.
13001 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
13003         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
13004         memory operands.
13006 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
13008         PR target/43700
13009         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
13010         registers.
13012 2011-04-17  Jan Hubicka  <jh@suse.cz>
13014         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
13015         * cgrpahunit.c (cgraph_finalize_function): Do not set
13016         finalized_by_frontend.
13017         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
13018         finalized_by_frontend.
13020 2011-04-17  Jan Hubicka  <jh@suse.cz>
13022         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
13023         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
13024         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
13025         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
13026         method.
13027         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
13028         gimple-fold.c
13029         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
13031 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
13033         PR lto/48538
13034         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
13035         is non-null before accessing it.
13036         (input_cgraph): Remove trailing spaces.
13038 2011-04-17  Revital Eres  <revital.eres@linaro.org>
13040         * params.def (sms-min-sc): New param flag.
13041         * modulo-sched.c (sms_schedule): Use it.
13042         * doc/invoke.texi (sms-min-sc): Document it.
13044 2011-04-17  Jan Hubicka  <jh@suse.cz>
13046         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
13047         present, also set gimple_call_set_cannot_inline.
13048         * ipa-inline.c: Update toplevel comment.
13049         (MAX_TIME): Remove.
13050         (cgraph_clone_inlined_nodes): Fix linebreaks.
13051         (cgraph_check_inline_limits): Restructure to ...
13052         (caller_growth_limits): ... this one; be more tolerant
13053         on growth in nested inline chains; add explanatory comment;
13054         fix stack accounting thinko introduced by previous patch.
13055         (cgraph_default_inline_p): Remove.
13056         (report_inline_failed_reason): New function.
13057         (can_inline_edge_p): New function.
13058         (can_early_inline_edge_p): New function.
13059         (leaf_node_p): Move upwards in file.
13060         (want_early_inline_function_p): New function.
13061         (want_inline_small_function_p): New function.
13062         (want_inline_self_recursive_call_p): New function.
13063         (cgraph_edge_badness): Rename to ...
13064         (edge_badness) ... this one; fix linebreaks.
13065         (update_edge_key): Update call of edge_baddness; add
13066         detailed dump about queue updates.
13067         (update_caller_keys): Use can_inline_edge_p and
13068         want_inline_small_function_p.
13069         (cgraph_decide_recursive_inlining): Rename to...
13070         (recursive_inlining): Use can_inline_edge_p and
13071         want_inline_self_recursive_call_p; simplify and remove no longer
13072         valid FIXME.
13073         (cgraph_set_inline_failed): Remove.
13074         (add_new_edges_to_heap): Use can_inline_edge_p and
13075         want_inline_small_function_p.
13076         (cgraph_decide_inlining_of_small_functions): Rename to ...
13077         (inline_small_functions): ... this one; cleanup; use
13078         can/want predicates; cleanup debug ouput; work edges till fibheap
13079         is exhausted and do not stop once unit growth is reached; remove
13080         later loop processing remaining edges.
13081         (cgraph_flatten): Rename to ...
13082         (flatten_function): ... this one; use can_inline_edge_p
13083         and can_early_inline_edge_p predicates.
13084         (cgraph_decide_inlining): Rename to ...
13085         (ipa_inline): ... this one; remove unreachable nodes before
13086         inlining functions called once; simplify the pass.
13087         (cgraph_perform_always_inlining): Rename to ...
13088         (inline_always_inline_functions): ... this one; use
13089         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
13090         (cgraph_decide_inlining_incrementally): Rename to ...
13091         (early_inline_small_functions): ... this one; simplify
13092         using new predicates; cleanup; make dumps prettier.
13093         (cgraph_early_inlining): Rename to ...
13094         (early_inliner): newer inline regular functions into always-inlines;
13095         fix updating of call stmt summaries.
13096         (pass_early_inline): Update for new names.
13097         (inline_transform): Fix formating.
13098         (gate_cgraph_decide_inlining): Rename to ...
13099         (pass_ipa_inline): ... this one.
13100         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
13101         * ipa-inline-analysis.c (dump_inline_summary): Update.
13102         (compute_inline_parameters): Do not compute disregard_inline_limits;
13103         look for mismatching arguments.
13104         (estimate_growth): Fix handlig of non-trivial self recursion.
13105         (inline_read_summary): Do not read info->disregard_inline_limits.
13106         (inline_write_summary): Do not write info->disregard_inline_limits.
13107         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
13108         and move all checks into can_inline_edge_p predicate; re-enable code
13109         comparing optimization levels.
13110         (expand_call_inline): Do not test inline_forbidden_into_p.
13111         * Makefile.in (ipa-inline.o): Update arguments.
13113 2011-04-17  Revital Eres  <revital.eres@linaro.org>
13115         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
13117 2011-04-17  Revital Eres  <revital.eres@linaro.org>
13119         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
13121 2011-04-17  Michael Matz  <matz@suse.de>
13123         PR tree-optimization/48622
13124         PR lto/48645
13125         * ipa-inline-analysis.c (inline_read_summary): Read size/time
13126         in same order as they're written.
13128 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13130         * config/pa/predicates.md: Reorganize and simplify predicates.
13131         Eliminate duplicate code checks.
13132         (arith_operand): Rename to arith14_operand
13133         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
13134         * config/pa/pa.md: Use renamed operands.
13135         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
13136         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
13137         arith11_operand, adddi3_operand, indexed_memory_operand,
13138         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
13139         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
13140         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
13141         move_dest_operand, move_src_operand, prefetch_cc_operand,
13142         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
13143         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
13144         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
13145         div_operand, int5_operand, movb_comparison_operator,
13146         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
13147         arith_double_operand, ireg_operand, lhs_lshift_operand,
13148         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
13149         integer_store_memory_operand): Likewise.
13150         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
13151         (integer_store_memory_operand, read_only_operand,
13152         function_label_operand, borx_reg_operand,
13153         non_hard_reg_operand): Likewise.
13154         (eq_neq_comparison_operator): Delete unused operator.
13155         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
13156         function_label_operand.
13157         (emit_move_sequence): Likewise.
13159 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
13161         * config/i386/sse.md (sseunpackmode): New mode attribute.
13162         (ssepackmode): Ditto.
13163         (vec_pack_trunc_<mode>): Macroize expander from
13164         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
13165         (vec_unpacks_lo_<mode>): Macroize expander from
13166         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13167         (vec_unpacks_hi_<mode>): Macroize expander from
13168         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13169         (vec_unpacku_lo_<mode>): Macroize expander from
13170         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13171         (vec_unpacku_hi_<mode>): Macroize expander from
13172         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13173         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
13174         ix86_expand_sse4_unpack.
13175         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
13177 2011-04-16  Jan Hubicka  <jh@suse.cz>
13179         * cgraphbuild.c: Include ipa-inline.h.
13180         (reset_inline_failed): Use initialize_inline_failed.
13181         * cgraph.c: Include ipa-inline.h.
13182         (cgraph_create_node_1): Do not initialize estimated_growth.
13183         (initialize_inline_failed): More to ipa-inline-analysis.c
13184         (dump_cgraph_node): Do not dump inline flags.
13185         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
13186         and disregard_inline_limits flags.
13187         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
13188         time, size, estimated_growth.
13189         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
13190         Update.
13191         * cgraphunit.c (cgraph_decide_is_function_needed): Use
13192         DECL_DISREGARD_INLINE_LIMITS.
13193         (cgraph_analyze_function): Do not initialize
13194         node->local.disregard_inline_limits.
13195         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
13196         inlinable, versionable and disregard_inline_limits.
13197         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
13198         cgraph_check_inline_limits, cgraph_default_inline_p,
13199         cgraph_edge_badness, update_caller_keys, update_callee_keys,
13200         add_new_edges_to_heap): Update.
13201         (cgraph_decide_inlining_of_small_function): Update; set
13202         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
13203         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
13204         cgraph_decide_inlining_incrementally): Update.
13205         * ipa-inline.h (inline_summary): Add inlinable, versionable,
13206         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
13207         time, size and estimated_growth parameters.
13208         (estimate_edge_growth): Update.
13209         (initialize_inline_failed): Declare.
13210         * ipa-split.c: Include ipa-inline.h
13211         (execute_split_functions): Update.
13212         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
13213         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
13214         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
13215         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
13216         estimated_growth to INT_MIN.
13217         (inline_node_duplication_hook): Likewise.
13218         (dump_inline_summary): Dump new fields.
13219         (compute_inline_parameters): Update.
13220         (estimate_edge_time, estimate_time_after_inlining,
13221         estimate_size_after_inlining, estimate_growth, inline_read_summary,
13222         inline_write_summary):
13223         (initialize_inline_failed): Move here from cgraph.c.
13224         * tree-sra.c: Include ipa-inline.h.
13225         (ipa_sra_preliminary_function_checks): Update.
13226         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
13227         ipa-inline.h.
13229 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
13231         * config/i386/sse.md (V16): New mode iterator.
13232         (VI1, VI8): Ditto.
13233         (AVXMODEQI, AVXMODEDI): Remove.
13234         (sse2, sse3): New mode attribute.
13235         (mov<mode>): Use V16 mode iterator.
13236         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
13237         (push<mode>1): Use V16 mode iterator.
13238         (movmisalign<mode>): Ditto.
13239         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
13240         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
13241         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
13242         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
13243         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
13244         avx_movdqu<avxmodesuffix>.
13245         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
13246         *avx_movdqu<avxmodesuffix>.
13247         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
13248         avx_lddqu<avxmodesuffix>.
13249         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
13250         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
13251         avx_movnt<AVXMODEDI:mode>.
13252         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
13253         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
13255 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
13257         PR target/48629
13258         * haifa-sched.c (prune_ready_list, schedule_block): Use
13259         sched_pressure_p rather than flag_sched_pressure.
13261 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
13263         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
13264         cgraph_get_node instead of cgraph_get_create_node.
13266 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
13268         * cfgexpand.c (expand_debug_expr): Use
13269         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
13271 2011-04-15  Michael Matz  <matz@suse.de>
13273         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
13274         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
13275         * function.c (gimplify_parameters): Ditto.
13276         * gimplify.c (gimplify_vla_decl): Ditto.
13278         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
13279         (gimple_call_set_alloca_for_var): New inline function.
13280         (gimple_call_alloca_for_var_p): Ditto.
13281         * gimple.c (gimple_build_call_from_tree): Remember
13282         CALL_ALLOCA_FOR_VAR_P state.
13283         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
13285         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
13286         calls if they were for VLA objects.
13288 2011-04-15  Martin Jambor  <mjambor@suse.cz>
13290         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
13291         of ADR_EXPRs.
13293 2011-04-15  Martin Jambor  <mjambor@suse.cz>
13295         PR middle-end/48601
13296         * tree-emutls.c (lower_emutls_function_body): Call
13297         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
13298         result is non-NULL.
13300 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
13302         * c-decl.c (detect_field_duplicates): Call
13303         objc_detect_field_duplicates instead of objc_get_interface_ivars.
13305 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
13307         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
13308         * gimple.c (gimple_asm_clobbers_memory_p): Define.
13309         * ipa-pure-const.c (check_stmt): Call it.
13310         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
13312 2011-04-15  Richard Guenther  <rguenther@suse.de>
13314         PR tree-optimization/48290
13315         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
13316         Properly decide inhibiting propagation based on the valueized
13317         operand.  Do loop-closed SSA form preserving here ...
13318         (init_copy_prop): ... not here.
13320 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
13322         PR target/48612
13323         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
13324         (*ieee_smax<mode>3): Likewise.
13326 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13328         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
13329         Replace match_operand with match_dup for the third operand in
13330         these expanders.
13332 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
13334         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
13335         to track processing of conditionals.  Update all callers.
13336         (try_combine, simplify_if_then_else): Update.
13338 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
13340         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
13341         -fsched-pressure.
13343 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
13345         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
13346         instead of match_operand for operand 3.
13348 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
13350         * recog.h (insn_operand_data): Add an "allows_mem" field.
13351         * genoutput.c (output_operand_data): Initialize it.
13352         * optabs.c (maybe_legitimize_operand_same_code): New function.
13353         (maybe_legitimize_operand): Use it when matching the original
13354         op->value.
13356 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
13358         * gimplify.c: Fix issues in comments throughout.
13359         (voidify_wrapper_expr): Fix long line.
13360         (build_stack_save_restore): Likewise.
13361         (gimplify_loop_expr): Likewise.
13362         (gimplify_compound_lval): Likewise.
13363         (gimplify_init_ctor_eval): Likewise.
13364         (gimplify_modify_expr_rhs): Likewise.
13365         (omp_notice_threadprivate_variable): Likewise.
13367 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
13369         * cfgexpand.c (expand_call_stmt): Convert the function type to the
13370         original one if this is not a builtin function.
13372 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
13374         PR target/48605
13375         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
13376         offset it as needed based on top 2 bits in operands[3], change
13377         MEM mode to SFmode and mask those 2 bits away from operands[3].
13379 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
13381         * c-parser.c (c_parser_objc_protocol_definition): Updated for
13382         change from objc_declare_protocols() to objc_declare_protocol().
13384 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
13386         * config/i386/sse.md (sse4_1): New mode attribute.
13387         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
13388         avx_blend<ssemodesuffix><avxmodesuffix> and
13389         sse4_1_blend<ssemodesuffix> using VF mode iterator.
13390         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
13391         avx_blendv<ssemodesuffix><avxmodesuffix> and
13392         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
13393         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
13394         avx_dp<ssemodesuffix><avxmodesuffix> and
13395         sse4_1_dp<ssemodesuffix> using VF mode iterator.
13396         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
13397         (sse4_1_packusdw): Merge with *avx_packusdw.
13398         (sse4_1_pblendvb): Merge with *avx_pblendvb.
13399         (sse4_1_pblendw): Merge with *avx_pblendw.
13400         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
13401         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
13402         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
13403         VF mode iterator.
13404         (sse4_1_round<ssescalarmodesuffix>): Merge with
13405         *avx_round<ssescalarmodesuffix>.
13406         (aesenc): Merge with *avx_aesenc.
13407         (aesenclast): Merge with *avx_aesenclast.
13408         (aesdec): Merge with *avx_aesdec.
13409         (aesdeclast): Merge with *avx_aesdeclast.
13410         (pclmulqdq): Merge with *pclmulqdq.
13411         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
13412         New predicate.
13413         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
13415 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
13417         PR middle-end/48608
13418         * cfgexpand.c (get_decl_align_unit): Renamed to ...
13419         (align_local_variable): This.  Update DECL_ALIGN.
13420         (add_stack_var): Updated.
13421         (expand_one_stack_var): Likewise.
13423 2011-04-14  Richard Guenther  <rguenther@suse.de>
13425         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
13426         Remove.
13427         (dse_initialize_block_local_data, dse_leave_block,
13428         record_voperand_set, get_stmt_uid): Likewise.
13429         (dse_possible_dead_store_p): Allow any kind of killing stmt.
13430         (dse_optimize_stmt): Remove voperand set handling code.
13431         Simplify and improve to handle any kind of killing stmt.
13432         (dse_record_phi): Remove.
13433         (dse_enter_block): Simplify.
13434         (tree_ssa_dse): Likewise.
13435         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
13437 2011-04-14  Jan Hubicka  <jh@suse.cz>
13439         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
13440         * cgraph.h (struct inline_summary): Move to ipa-inline.h
13441         (cgraph_local_info): Remove inline_summary.
13442         * ipa-cp.c: Include ipa-inline.h.
13443         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
13444         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
13445         accesor.
13446         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
13447         (input_overwrite_node): Do not set inline summary.
13448         (input_node): Do not stream inline summary.
13449         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
13450         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
13451         growth; we do not have inline parameters computed for that anyway.
13452         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
13453         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
13454         (inline_summary_t): New type and VECtor.
13455         (debug_inline_summary, dump_inline_summaries): Declare.
13456         (inline_summary): Use VOCtor.
13457         (estimate_edge_growth): Kill hack computing call stmt size directly.
13458         * lto-section-in.c (lto_section_name): Add inline section.
13459         * ipa-inline-analysis.c: Include lto-streamer.h
13460         (node_removal_hook_holder, node_duplication_hook_holder): New holders
13461         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
13462         (inline_summary_vec): Define.
13463         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
13464         dump_inline_summaries): New functions.
13465         (estimate_function_body_sizes): Properly compute size/time of outgoing
13466         calls.
13467         (compute_inline_parameters): Alloc inline_summary; do not compute
13468         size/time of incomming calls.
13469         (estimate_edge_time): Avoid missing time summary hack.
13470         (inline_read_summary): Read inline summary info.
13471         (inline_write_summary): Write inline summary info.
13472         (inline_free_summary): Free all hooks and inline summary vector.
13473         * lto-streamer.h: Add LTO_section_inline_summary section.
13474         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
13475         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
13477 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
13479         * tree-vectorizer.h (vect_strided_store_supported): Add a
13480         HOST_WIDE_INT argument.
13481         (vect_strided_load_supported): Likewise.
13482         (vect_permute_store_chain): Return void.
13483         (vect_transform_strided_load): Likewise.
13484         (vect_permute_load_chain): Delete.
13485         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
13486         count argument.  Check that the count is a power of two.
13487         (vect_strided_load_supported): Likewise.
13488         (vect_permute_store_chain): Return void.  Update after above changes.
13489         Assert that the access is supported.
13490         (vect_permute_load_chain): Likewise.
13491         (vect_transform_strided_load): Return void.
13492         * tree-vect-stmts.c (vectorizable_store): Update calls after
13493         above interface changes.
13494         (vectorizable_load): Likewise.
13495         (vect_analyze_stmt): Don't check for strided powers of two here.
13497 2011-04-14  Richard Guenther  <rguenther@suse.de>
13499         PR tree-optimization/48590
13500         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13501         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
13502         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
13503         BUILT_IN_STACK_SAVE.
13504         * tree-ssa-dce.c (propagate_necessity): Handle
13505         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
13507 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
13509         * c-parser.c (c_parser_objc_class_declaration): Updated call to
13510         objc_declare_class.
13512 2011-04-14  Richard Guenther  <rguenther@suse.de>
13514         * tree.h (get_object_alignment_1): Declare.
13515         * builtins.c (get_object_alignment_1): Split out worker from ...
13516         (get_object_alignment): ... here.
13517         * fold-const.c (get_pointer_modulus_and_residue): Use
13518         get_object_alignment_1.
13520 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
13522         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
13523         type parameter.
13524         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
13525         parameter.  Generalise code to handle arrays as well as vectors.
13526         (vect_setup_realignment): Update accordingly.
13527         * tree-vect-stmts.c (vectorizable_store): Likewise.
13528         (vectorizable_load): Likewise.
13530 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
13532         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
13533         within the per-copy loop.
13535 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
13537         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
13538         in the dump file.
13540 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
13542         * doc/options.texi (Negative): Explicitly mention that the
13543         Negative chain must be circular.
13545 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
13547         * function.h (block_chainon): Declare.
13548         * function.c (block_chainon): Define.
13550 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
13551             Eric Weddington  <eric.weddington@atmel.com>
13552             Georg-Johann Lay  <avr@gjlay.de>
13554         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
13555         New Includes
13556         (avr_init_builtins, avr_expand_builtin,
13557         avr_expand_delay_cycles, avr_expand_unop_builtin,
13558         avr_expand_binop_builtin ): New functions.
13559         (avr_builtin_id): New enum
13560         (struct avr_builtin_description): New struct
13561         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
13562         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
13564         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
13565         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
13566         UNSPECV_DELAY_CYCLES): new enumeration values
13567         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
13568         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
13569         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
13570         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
13571         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
13572         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
13573         "fmulsu"): New insns
13575         * config/avr/avr-c.c: fix line endings
13576         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
13577         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
13578         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
13579         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
13580         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
13582         * doc/extend.texi (AVR Built-in Functions): New node
13583         (Target Builtins): Add documentation of AVR
13584         built-in functions.
13586 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
13588         PR target/44643
13589         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
13590         alone. Error if non-const data has attribute progmem.
13592 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
13594         * tree.h (struct tree_constructor): Include tree_typed instead of
13595         tree_common.
13596         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
13597         TS_TYPED instead of TS_COMMON.
13599 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
13601         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
13602         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
13603         (sse2_psadbw): Merge with *avx_psadbw.
13604         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
13605         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
13606         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
13607         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
13608         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
13609         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
13610         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
13611         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
13612         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
13613         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
13614         (ssse3_palignrti): Merge with *avx_palignrti.
13616 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
13618         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
13619         * tree-ssanames.c (fini_ssanames): VEC_free it.
13620         (make_ssa_name_fn): Update for VECness of free_ssanames.
13621         (release_ssa_name, release_dead_ssa_names): Likewise.
13622         * tree.h (struct tree_ssa_name): Include tree_typed instead of
13623         tree_common.
13624         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
13625         TS_TYPED instead of TS_COMMON.
13627 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
13629         * postreload-gcse.c (gcse_after_reload_main): Add calls to
13630         statistics_counter_event.
13631         * tree-ssa-copyrename.c (stats): Define.
13632         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
13633         statistics_counter_event.
13634         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
13635         (bswap_stats, widen_mul_stats): Define.
13636         (insert_reciprocals): Increment rdivs_inserted.
13637         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
13638         rfuncs_inserted.  Add calls to statistics_counter_event.
13639         (execute_cse_sincos_1): Increment inserted.
13640         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
13641         statistics_counter_event.
13642         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
13643         of bswap_stats.  Add calls to statistics_counter_event.
13644         (convert_mult_to_widen): Increment widen_mults_inserted.
13645         (convert_plusminus_to_widen): Increment maccs_inserted.
13646         (convert_mult_to_fma): Increment fmas_inserted.
13647         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
13648         calls to statistics_counter_event.
13650 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
13652         PR rtl-optimization/48455
13653         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
13654         `temp_costs->mem_cost'.
13656 2011-04-13  Jan Hubicka  <jh@suse.cz>
13658         * ipa-inline.h: New file.
13659         * ipa-inline-analysis.c: New file. Broken out of ...
13660         * ipa-inline.c: ... this file; update toplevel comment;
13661         include ipa-inline.h
13662         (inline_summary): Move to ipa-inline.h
13663         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
13664         ipa-inline-analysis.c.
13665         (cgraph_estimate_time_after_inlining): Rename to
13666         estiamte_time_after_inlining; move to ipa-inline-analysis.c
13667         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
13668         to estimate_edge_growth.
13669         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
13670         rename to estimate_size_after_inlining.
13671         (cgraph_mark_inline_edge): Update for new naming convention.
13672         (cgraph_check_inline_limits): Likewise.
13673         (cgraph_edge_badness): Likewise.
13674         (cgraph_decide_recursive_inlining): Likewise.
13675         (cgraph_decide_inlining_of_small_functions): Likewise.
13676         (cgraph_decide_inlining_incrementally): Likewise.
13677         (cgraph_estimate_growth): Rename to estimate_growth; move to
13678         ipa-inline-analysis.c.
13679         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
13680         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
13681         (compute_inline_parameters): Likewise.
13682         (compute_inline_parameters_for_current): Likewise.
13683         (pass_inline_parameters): Likewise.
13684         (inline_indirect_intraprocedural_analysis): Likewise.
13685         (analyze_function): Rename to inline_analyze_function; likewise.
13686         (add_new_function): Move to ipa-inline-analysis.c.
13687         (inline_generate_summary): Likewise.
13688         (inline_read_summary): Likewise.
13689         (inline_write_summary): Likewise.
13690         * Makefile.in (ipa-inline-analysis.c): New file.
13692 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13694         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
13695         * configure: Regenerate.
13697 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
13699         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
13700         instead of tree_common.
13701         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
13702         Likewise.
13703         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
13704         TS_TYPED rather than TS_COMMON.
13705         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
13707 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
13709         PR target/45263
13710         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
13711         r20 around calls of __tablejump_elpm__
13713 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
13715         PR middle-end/48591
13716         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
13717         NULL.
13718         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
13720 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
13722         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
13723         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
13724         (cfi_vec): New typedef.
13725         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
13726         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
13727         (cie_cfi_vec): New static variable.
13728         (cie_cfi_head): Delete.
13729         (add_cfi): Accept a cfi_vec * as first argument. All callers and
13730         declaration changed. Use vector rather than list operations.
13731         (new_cfi): Don't initialize the dw_cfi_next field.
13732         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
13733         rather than list operations.
13734         (lookup_cfa): Use vector rather than list operations.
13735         (output_cfis): New argument upto. Accept a cfi_vec rather than
13736         a dw_cfi_ref list head as argument. All callers changed.
13737         Iterate over the vector using upto as a maximum index.
13738         (output_all_cfis): New static function.
13739         (output_fde): Use vector rather than list operations. Use the
13740         new upto argument for output_cfis rather than manipulating a
13741         list.
13742         (dwarf2out_begin_prologue): Change initializations to match
13743         new struct members.
13744         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
13745         from the vector length rather than searching for the end of a list.
13746         Use output_all_cfis.
13747         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
13749 2011-04-13  Nick Clifton  <nickc@redhat.com>
13751         * config/rx/rx.md (movmemsi): Do not use this pattern when
13752         volatile pointers are involved.
13754 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
13756         * config/i386/sse.md (pinsrbits): Remove.
13757         (sse2_packsswb): Merge with *avx_packsswb.
13758         (sse2_packssdw): Merge with *avx_packssdw.
13759         (sse2_packuswb): Merge with *avx_packuswb.
13760         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
13761         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
13762         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
13763         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
13764         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
13765         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
13766         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
13767         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
13768         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
13769         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
13770         (sse2_loadld): Merge with *avx_loadld.
13771         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
13772         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
13773         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
13774         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
13775         (vec_concatv2di): Merge with *vec_concatv2di_avx.
13777 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
13779         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
13780         calling TREE_CHAIN.
13781         * print-tree.c (print_node): Likewise.
13782         * tree-inline.c (copy_tree_r): Likewise.
13783         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
13784         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
13785         instead of TS_COMMON.
13786         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
13787         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
13788         (copy_node_stat): Zero TREE_CHAIN only if necessary.
13789         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
13790         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
13791         ...and these...
13792         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
13793         * tree.h: ...here.
13794         (TREE_CHAIN): Check for a TS_COMMON structure.
13795         (TREE_TYPE): Check for a TS_TYPED structure.
13797 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
13799         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
13800         cgraph_get_create_node instead of cgraph_node.
13802 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13804         * c-parser.c (c_parser_initelt): Updated call to
13805         objc_build_message_expr.
13806         (c_parser_postfix_expression): Likewise.
13808 2011-04-12  Kai Tietz  <ktietz@redhat.com>
13810         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
13811         MASK_MS_BITFIELD_LAYOUT bit.
13813 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
13815         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
13816         assert it is always true.
13817         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
13818         moves.
13820 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13822         * c-parser.c (c_lex_one_token): Rewritten conditional used when
13823         compiling Objective-C to be more efficient.
13825 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
13827         * opts-common.c (decode_cmdline_options_to_array): Remove variable
13828         argv_copied.
13830 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13832         * recog.h, genoutput.c, optabs.c: Revert last patch.
13834 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13836         PR target/48090
13837         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
13839 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13841         * recog.h (insn_operand_data): Add an "allows_mem" field.
13842         * genoutput.c (output_operand_data): Initialize it.
13843         * optabs.c (maybe_legitimize_operand_same_code): New function.
13844         (maybe_legitimize_operand): Use it when matching the original
13845         op->value.
13847 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13849         * genpreds.c (process_define_predicate): Move most processing
13850         to gensupport.c.  Continue to validate the expression.
13851         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
13852         (process_define_predicate): Move processing to gensupport.c.
13853         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
13854         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
13855         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
13856         argument.
13857         (valid_predicate_name_p): New function, split out from old
13858         genpreds.c:process_define_predicate.
13859         (process_define_predicate): New function, combining code from
13860         old genpreds.c and genrecog.c functions.
13861         (process_rtx): Call it for DEFINE_PREDICATE and
13862         DEFINE_SPECIAL_PREDICATE.
13864 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13866         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
13867         size of a '%A' memory reference.
13868         (T_DREG, T_QREG): New neon_builtin_type_bits.
13869         (arm_init_neon_builtins): Assert that the load and store operands
13870         are neon_struct_operands.
13871         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
13872         (NEON_ARG_MEMORY): New builtin_arg.
13873         (neon_dereference_pointer): New function.
13874         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
13875         Handle NEON_ARG_MEMORY.
13876         (arm_expand_neon_builtin): Update after above interface changes.
13877         Use NEON_ARG_MEMORY for loads and stores.
13878         * config/arm/predicates.md (neon_struct_operand): New predicate.
13879         * config/arm/iterators.md (V_two_elem): Tweak formatting.
13880         (V_three_elem): Use BLKmode for accesses that have no associated mode.
13881         (V_four_elem): Tweak formatting.
13882         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
13883         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
13884         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
13885         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
13886         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
13887         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
13888         (neon_vst4<mode>): Replace pointer operand with a memory operand.
13889         Use %A in the output template.
13890         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
13891         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
13892         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
13893         the width of the memory access.  Remove post-increment.
13894         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
13896 2011-04-12  Nick Clifton  <nickc@redhat.com>
13898         * config/v850/v850.c (expand_prologue): Do not use the CALLT
13899         instruction for interrupt handlers if the target is the basic V850
13900         architecture.
13901         (expand_epilogue): Likewise.
13903 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
13905         PR rtl-optimization/48549
13906         * combine.c (propagate_for_debug): Also stop after BB_END of
13907         this_basic_block.  Process LAST and just stop processing after it.
13908         (combine_instructions): If last_combined_insn has been deleted,
13909         set last_combined_insn to its PREV_INSN.
13911 2011-04-12  Richard Guenther  <rguenther@suse.de>
13913         PR tree-optimization/46076
13914         * gimple.h (struct gimple_statement_call): Add fntype field.
13915         (gimple_call_fntype): Adjust.
13916         (gimple_call_set_fntype): New function.
13917         * gimple.c (gimple_build_call_1): Set the call function type.
13918         * gimplify.c (gimplify_call_expr): Preserve the function
13919         type the frontend used for the call.
13920         (gimplify_modify_expr): Likewise.
13921         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
13922         function type.
13923         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
13924         function type.
13925         * tree-ssa.c (useless_type_conversion_p): Function pointer
13926         conversions are useless.
13928 2011-04-12  Martin Jambor  <mjambor@suse.cz>
13930         * cgraph.h (cgraph_node): Remove function declaration.
13931         (cgraph_create_node): Declare.
13932         (cgraph_get_create_node): Likewise.
13933         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
13934         Updated all callers.
13935         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
13936         the decl does not already exist.  Call cgraph_get_create_node instead
13937         of cgraph_node.
13938         (cgraph_get_create_node): New function.
13939         (cgraph_same_body_alias): Update comment.
13940         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
13941         assert it does not return NULL.
13942         (cgraph_update_edges_for_call_stmt): Likewise.
13943         (cgraph_clone_edge): Likewise.
13944         (cgraph_create_virtual_clone): Likewise.
13945         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
13946         instead of cgraph_node.
13947         (cgraph_add_new_function): Call cgraph_create_node or
13948         cgraph_get_create_node instead of cgraph_node.
13949         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
13950         instead of cgraph_node.
13951         (record_eh_tables): Likewise.
13952         (mark_address): Likewise.
13953         (mark_load): Likewise.
13954         (build_cgraph_edges): Call cgraph_get_create_node instead
13955         of cgraph_node.
13956         (rebuild_cgraph_edges): Likewise.
13957         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
13958         instead of cgraph_node.
13959         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
13960         cgraph_node.
13961         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
13962         cgraph_create_node instead of cgraph_node.
13963         * c-decl.c (finish_function): Call cgraph_get_create_node instead
13964         of cgraph_node.
13965         * lto-cgraph.c (input_node): Likewise.
13966         * lto-streamer-in.c (input_function): Likewise.
13967         * varasm.c (mark_decl_referenced): Likewise.
13968         (assemble_alias): Likewise.
13970 2011-04-12  Martin Jambor  <mjambor@suse.cz>
13972         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
13973         instead of cgraph_node and assert it does not return NULL.
13974         * lto-streamer-in.c (lto_read_body): Likewise.
13975         * omp-low.c (new_omp_context): Likewise.
13976         (create_task_copyfn): Likewise.
13977         * tree-emutls.c (lower_emutls_function_body): Likewise.
13978         * matrix-reorg.c (transform_allocation_sites): Likewise.
13980 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
13982         PR c/48552
13983         * c-typeck.c (build_asm_expr): Error out on attempts to use
13984         void type outputs or inputs for constraints that allow reg or
13985         don't allow memory.
13987 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
13988             Richard Earnshaw  <rearnsha@arm.com>
13990         PR target/48250
13991         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
13992         to use sign-magnitude offsets. Reject unsupported unaligned
13993         cases. Add detailed description in comments.
13994         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
13995         condition from TARGET_32BIT to TARGET_ARM.
13997 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
13999         * tree.h (struct typed_tree): New.
14000         (struct tree_common): Include it instead of tree_base.
14001         (TREE_TYPE): Update for new location of type field.
14002         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
14003         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
14004         (union tree_node): Add typed field.
14005         * treestruct.def (TS_TYPED): New.
14006         * lto-streamer.c (check_handled_ts_structures): Handle it.
14007         * tree.c (MARK_TS_TYPED): New macro.
14008         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
14010 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
14012         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
14013         (force_nonfallthru): Do not alter the loop nest if no basic block
14014         was created.
14016 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
14018         * config/i386/sse.md (VI): New mode iterator.
14019         (SSEMODEI): Remove.
14020         (AVX256MODEI): Ditto.
14021         (AVXMODEF4P): Ditto.
14022         (avxvecpsmode): Ditto.
14023         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
14024         (sse2_andnot<mode>3): New expander.
14025         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
14026         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
14027         (<any_logic:code><mode>3): Use VI mode iterator.
14028         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
14029         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
14030         (*andnottf3): Handle AVX three-operand constraints.
14031         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
14033 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14034             Robert Millan  <rmh@gnu.org>
14036         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
14037         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
14038         GNU_USER_DYNAMIC_LINKER64): Define.
14039         (REG_NAME): Don't undefine.
14040         (MD_UNWIND_SUPPORT): Undefine.
14041         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
14042         (REG_NAME): Don't undefine.
14043         (MD_UNWIND_SUPPORT): Undefine.
14044         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
14046 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14048         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
14049         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
14051 2011-04-11  Xinliang David Li  <davidxl@google.com>
14053         * value-profile.c (check_ic_target): New function.
14054         (gimple_ic_transform): Sanity check indirect call target.
14055         * gimple-low.c (gimple_check_call_args): Interface change.
14056         (gimple_check_call_matching_types): New function.
14057         * tree-inline.c (tree_can_inline_p): Call new function.
14059 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
14061         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
14062         tree-pretty-print.h & realmpfr.h.
14064 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
14066         PR middle-end/48464
14067         * ira.c (setup_pressure_classes): Fix typo in loop condition.
14068         (setup_allocno_and_important_classes): Ditto.
14070 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14072         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
14073         GNU_USER_DYNAMIC_LINKER.
14074         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
14075         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14076         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
14077         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14078         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14079         GNU_USER_TARGET_OS_CPP_BUILTINS.
14080         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
14081         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14082         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14083         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14084         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
14085         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14086         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14087         GNU_USER_TARGET_OS_CPP_BUILTINS.
14088         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14089         GNU_USER_DYNAMIC_LINKER.
14090         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14091         GNU_USER_TARGET_OS_CPP_BUILTINS.
14092         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
14093         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14094         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
14095         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14096         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
14097         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
14098         GNU_USER_DYNAMIC_LINKER64): Remove.
14099         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
14100         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14101         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14102         GNU_USER_DYNAMIC_LINKER.
14103         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14104         GNU_USER_TARGET_OS_CPP_BUILTINS.
14105         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14106         GNU_USER_TARGET_OS_CPP_BUILTINS.
14107         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
14108         to GNU_USER_TARGET_OS_CPP_BUILTINS.
14109         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14110         GNU_USER_TARGET_OS_CPP_BUILTINS.
14111         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
14112         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
14113         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
14114         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
14115         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14116         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14117         GNU_USER_DYNAMIC_LINKER.
14118         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14119         GNU_USER_TARGET_OS_CPP_BUILTINS.
14120         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
14121         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14122         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14123         GNU_USER_DYNAMIC_LINKER.
14124         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14125         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14126         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
14127         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14128         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14129         GNU_USER_DYNAMIC_LINKER.
14130         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
14131         GNU_USER_DYNAMIC_LINKERN32.
14132         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
14133         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
14134         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
14135         GNU_USER_DYNAMIC_LINKER32.
14136         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
14137         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14138         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14139         GNU_USER_DYNAMIC_LINKER.
14140         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14141         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14142         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
14143         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14144         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14145         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
14146         GNU_USER_DYNAMIC_LINKER32.
14147         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
14148         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
14149         GNU_USER_DYNAMIC_LINKER.
14150         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
14151         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14152         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
14153         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
14154         GNU_USER_DYNAMIC_LINKER64.
14155         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
14156         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14157         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14158         GNU_USER_DYNAMIC_LINKER.
14159         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
14160         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14161         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14162         GNU_USER_DYNAMIC_LINKER.
14163         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
14164         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14165         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
14166         GNU_USER_DYNAMIC_LINKER32.
14167         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
14168         GNU_USER_DYNAMIC_LINKER64.
14169         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
14170         GNU_USER_DYNAMIC_LINKER64.
14171         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
14172         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14173         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
14174         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14175         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14177 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14179         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
14180         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
14181         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
14182         GNU_USER_DYNAMIC_LINKER.
14183         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
14184         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
14185         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
14186         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
14187         GNU_USER_DYNAMIC_LINKER64.
14188         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
14189         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
14190         GNU_USER_LINK_EMULATION.
14191         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
14192         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
14193         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
14194         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
14195         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
14196         CPP_SPEC, CC1_SPEC): Remove.
14197         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
14198         (GNU_USER_DYNAMIC_LINKER): Define.
14199         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
14200         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
14201         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
14202         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
14203         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
14204         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
14205         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
14206         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
14207         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
14208         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
14209         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
14210         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
14211         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
14212         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
14213         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
14214         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
14215         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14216         GNU_USER_DYNAMIC_LINKER.
14217         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14218         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
14219         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14220         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
14221         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14222         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
14223         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
14224         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
14225         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
14226         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
14228 2011-04-11  Kai Tietz  <ktietz@redhat.com>
14230         PR target/9601
14231         PR target/11772
14232         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
14233         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
14234         comment.
14235         (ix86_is_msabi_thiscall): Removed.
14236         (ix86_is_type_thiscall): Likewise.
14237         (ix86_get_callcvt): New function.
14238         (ix86_comp_type_attributes): Simplify check.
14239         (ix86_function_regparm): Use ix86_get_callcvt for calling
14240         convention attribute checks.
14241         (ix86_return_pops_args): Likewise.
14242         (ix86_static_chain): Likewise.
14243         (x86_this_parameter): Likewise.
14244         (x86_output_mi_thunk): Likewise.
14245         (ix86_function_type_abi): Optimize check for types without attributes.
14246         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
14247         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
14248         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
14249         by flag-values.
14250         (IX86_BASE_CALLCVT): Helper macro.
14251         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14252         Use ix86_get_callcvt for calling convention attribute checks and avoid
14253         symbol-decoration for stdcall in TARGET_RTD case.
14254         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
14255         Likewise.
14256         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
14257         for declaration.
14259 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
14261         * config/i386/sse.md (VI_128): New mode iterator.
14262         (VI12_128): Rename from SSEMODE12.
14263         (VI14_128): Rename from SSEMODE14.
14264         (VI124_128): New mode iterator.
14265         (VI24_128): Rename from SSEMODE248.
14266         (VI248_128): Rename from SSEMODE248.
14267         (SSEMODE124C8): Remove.
14268         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
14269         (*sse2_<plusminus_insn><mode>3): Merge with
14270         *avx_<plusminus_insn><mode>3.
14271         (*mulv8hi3): Merge with *avx_mulv8hi3.
14272         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
14273         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
14274         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
14275         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
14276         (ashr<mode>3): Merge with *avx_ashr<mode>3.
14277         (lshr<mode>3): Merge with *avx_lshr<mode>3.
14278         (ashl<mode>3): Merge with *avx_ashl<mode>3.
14279         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
14280         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
14281         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14282         (*<smaxmin:code>v8hi3): Ditto.
14283         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
14284         (*<smaxmin:code>v16qi3): Ditto.
14285         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
14286         (*sse2_eq<mode>3): Ditto.
14287         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
14288         (*sse2_gt<mode>3): Ditto.
14289         (vcondv2di): Split out of vcond<mode>.
14290         (vconduv2di): Split out of vcondu<mode>.
14292 2011-04-11  Richard Guenther  <rguenther@suse.de>
14294         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
14295         before calling tree_low_cst.
14297 2011-04-11  Richard Guenther  <rguenther@suse.de>
14299         * stor-layout.c (layout_type): Compute all array index size operations
14300         in the original type.
14301         (initialize_sizetypes): Add comment.
14302         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
14304 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14306         * common.opt (Tbss=, Tdata=, Ttext=): New options.
14308 2011-04-11  Martin Jambor  <mjambor@suse.cz>
14310         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
14311         of cgraph_node, handle NULL return value.
14312         (cgraph_global_info): Likewise.
14313         (cgraph_rtl_info): Likewise.
14314         * tree-inline.c (estimate_num_insns): Likewise.
14315         * gimplify.c (unshare_body): Likewise.
14316         (unvisit_body): Likewise.
14317         (gimplify_body): Likewise.
14318         * predict.c (optimize_function_for_size_p): Likewise.
14319         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
14320         (call_may_clobber_ref_p_1): Likewise.
14321         * varasm.c (function_section_1): Likewise.
14322         (assemble_start_function): Likewise.
14324 2011-04-11  Martin Jambor  <mjambor@suse.cz>
14326         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
14327         of cgraph_node.
14328         * final.c (rest_of_clean_state): Likewise.
14329         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
14330         * passes.c (pass_init_dump_file): Likewise.
14331         (execute_all_ipa_transforms): Likewise.
14332         (function_called_by_processed_nodes_p): Likewise.
14333         * predict.c (maybe_hot_frequency_p): Likewise.
14334         (probably_never_executed_bb_p): Likewise.
14335         (compute_function_frequency): Likewise.
14336         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
14337         (unnest_nesting_tree_1): Likewise.
14338         (lower_nested_functions): Likewise.
14339         * tree-optimize.c (execute_fixup_cfg): Likewise.
14340         (tree_rest_of_compilation): Likewise.
14341         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
14342         * tree-sra.c (ipa_early_sra): Likewise.
14343         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
14344         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
14345         * ipa.c (record_cdtor_fn): Likewise.
14346         * ipa-inline.c (cgraph_early_inlining): Likewise.
14347         (compute_inline_parameters_for_current): Likewise.
14348         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14349         * ipa-pure-const.c (local_pure_const): Likewise.
14350         * ipa-split.c (split_function): Likewise.
14351         (execute_split_functions): Likewise.
14352         * cgraphbuild.c (build_cgraph_edges): Likewise.
14353         (rebuild_cgraph_edges): Likewise.
14354         (cgraph_rebuild_references): Likewise.
14355         (remove_cgraph_callee_edges): Likewise.
14356         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
14357         (verify_cgraph_node): Likewise.
14358         (cgraph_analyze_functions): Likewise.
14359         (cgraph_preserve_function_body_p): Likewise.
14360         (save_inline_function_body): Likewise.
14361         (save_inline_function_body): Likewise.
14362         * tree-inline.c (copy_bb): Likewise.
14363         (optimize_inline_calls): Likewise.
14365 2011-04-11  Martin Jambor  <mjambor@suse.cz>
14367         PR tree-optimization/48195
14368         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
14369         ipa_check_create_edge_args.
14370         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
14371         ipa_check_create_edge_args.
14372         * ipa-inline.c (inline_generate_summary): Do not call
14373         ipa_check_create_node_params and ipa_check_create_edge_args.
14374         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
14375         ipa_check_create_edge_args.
14377 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
14379         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
14380         instead of loop.
14381         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14382         * function.c (record_hard_reg_sets): Likewise.
14383         * ira.c (compute_regs_asm_clobbered): Likewise.
14384         * sched-deps.c (sched_analyze_1): Likewise.
14385         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
14387 2011-04-09  Xinliang David Li  <davidxl@google.com>
14389         PR tree-optimization/PR48484
14390         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
14391         has_valid_pred lazily
14393 2011-04-09  Duncan Sands  <baldrick@free.fr>
14395         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
14397 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
14399         * combine.c (combine_validate_cost): Adjust comments.  Set registered
14400         cost of I0 to zero at the end, if any.
14402 2011-04-08  Xinliang David Li  <davidxl@google.com>
14404         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
14405         to insane profile data.
14407 2011-04-08  Xinliang David Li  <davidxl@google.com>
14409         * ipa-cp.c (ipcp_update_profiling): Correct
14410          negative scale factor due to insane profile data.
14412 2011-04-08  Xinliang David Li  <davidxl@google.com>
14414         * final.c (dump_basic_block_info): New function.
14415         (final): Dump basic block.
14416         (final_scan_insn): Remove old dump.
14418 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
14420         PR target/47829
14421         * config.gcc (i386-*-freebsd): Disable unwind table generation for
14422         crtbegin/crtend.
14424 2011-04-08  Michael Matz  <matz@suse.de>
14426         PR middle-end/48389
14427         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
14428         functions.
14429         (rebuild_jump_labels): Call rebuild_jump_labels_1.
14430         * rtl.h (rebuild_jump_labels_chain): Declare.
14431         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
14432         insns inserted on edges.
14434 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
14436         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
14437         * config/arm/arm-arches.def: New.
14438         * config/arm/arm-opts.h: New.
14439         * config/arm/genopt.sh: New.
14440         * config/arm/arm-tables.opt: New (generated).
14441         * config/arm/arm.c (arm_handle_option, arm_target_help,
14442         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
14443         (all_architectures): Get most table contents from arm-arches.def.
14444         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
14445         arm_selected_tune here.
14446         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
14447         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
14448         (march=, mcpu=, mtune=): Use Enum and Var.
14449         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
14450         (arm.o): Update dependencies.
14452 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
14454         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
14455         of header_file.
14456         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
14457         (write_typed_alloc_defns): Likewise.
14458         (main): Calls write_typed_alloc_defns with output_header.
14460 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
14462         PR inline-asm/48435
14463         * ira-color.c (setup_profitable_hard_regs): Add comments.
14464         Don't take prohibited hard regs into account.
14465         (setup_conflict_profitable_regs): Rename to
14466         get_conflict_profitable_regs.
14467         (check_hard_reg_p): Check prohibited hard regs.
14469 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
14471         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
14472         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
14473         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
14475 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14477         PR target/48366
14478         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
14479         move from floating point to shift amount register.
14480         (emit_move_sequence): Remove secondary reload support for floating
14481         point to shift amount amount register copies.
14482         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
14483         amount register copies.
14484         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
14485         register, return false if mode isn't a scalar integer mode.
14486         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
14488 2011-04-08  Richard Guenther  <rguenther@suse.de>
14490         * gimple.c (gimple_call_flags): Remove kludge.
14492 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
14494         * sel-sched.c (sel_region_init): Move call to
14495         sel_setup_region_sched_flags after setup_current_loop_nest.
14497 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
14499         PR rtl-optimization/48272
14500         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
14501         init_insn_reg_pressure_info.  Adjust a caller.
14502         * sched-int.h (init_insn_reg_pressure_info): Declare.
14503         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
14504         when sched-pressure is enabled.
14506 2011-04-08  Richard Guenther  <rguenther@suse.de>
14508         * gimple.c (gimple_set_modified): Do not queue calls to
14509         MODIFIED_NORETURN_CALLS here ...
14510         * tree-ssa-operands.c (update_stmt_operands): ... but here.
14512 2011-04-08  Richard Guenther  <rguenther@suse.de>
14514         PR lto/48467
14515         * toplev.c (lang_dependent_init): Do not open asm_out_file
14516         in WPA mode, nor perform debug machinery initialization.
14517         (finalize): Do not unlink asm_out_file in WPA mode.
14519 2011-04-08  Richard Guenther  <rguenther@suse.de>
14521         * gimple.h (gimple_call_fntype): New function.
14522         (gimple_call_return_type): Use it.
14523         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
14524         * gimple-low.c (gimple_check_call_args): Likewise.
14525         * gimple.c (gimple_call_flags): Likewise.
14526         (gimple_call_arg_flags): Likewise.
14527         (gimple_call_return_flags): Likewise.
14528         * tree-cfg.c (verify_gimple_call): Likewise.
14529         (do_warn_unused_result): Likewise.
14530         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
14531         * value-prof.c (gimple_ic_transform): Fix fndecl check.
14533 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
14535         PR rtl-optimization/48235
14536         * sel-sched.c (code_motion_process_successors): Recompute the last
14537         insn in basic block if control flow changed.
14538         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
14539         Update condition for ilist_remove.
14541 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
14543         PR rtl-optimization/48302
14544         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
14545         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
14546         it to record added preheader blocks.
14547         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
14548         on to sel_add_loop_preheaders.
14549         (sel_region_init): Move call to setup_current_loop_nest after
14550         sel_init_bbs.
14552 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
14554         PR target/48273
14555         * cfgloop.h (loop_has_exit_edges): New helper.
14556         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
14557         non-clonable.
14558         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
14559         that have no exit edges.
14561 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
14563         PR rtl-optimization/48442
14564         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
14565         all callers.  Adjust assert.
14567 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
14569         PR tree-optimization/48377
14570         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
14571         is_packed to true even for types with smaller TYPE_ALIGN than
14572         TYPE_SIZE.
14574 2011-04-08  Richard Guenther  <rguenther@suse.de>
14576         PR bootstrap/48513
14577         * doc/tm.texi: Re-generate.
14579 2011-04-08  Wei Guozhi  <carrot@google.com>
14581         PR target/47855
14582         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
14583         * config/arm/arm.c (arm_attr_length_push_multi): New function.
14584         * config/arm/arm.md (*push_multi): Change the length computation to
14585         call a C function.
14587 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
14589         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
14590         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
14591         * doc/tm.texi: Regenerate.
14592         * system.h (ASM_OUTPUT_BSS): Poison.
14593         * varasm.c (asm_output_bss): Remove function.
14594         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
14596         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
14597         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
14598         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
14599         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
14600         Likewise.
14601         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
14602         Likewise.
14603         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
14604         Likewise.
14605         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14607 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
14609         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
14610         EnumValue lines.
14612 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
14614         * config/m68k/m68k.c (m68k_handle_option): Don't handle
14615         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
14616         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
14617         OPT_mcpu32.
14618         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
14619         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
14620         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
14621         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
14622         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
14623         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
14624         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
14625         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
14626         options.  Don't map other m68k options manually.  Don't handle
14627         old-style options as canonical.
14628         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
14629         * doc/install.texi (m68k-*-*): Document binutils version requirement.
14631 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
14633         * basic-block.h (force_nonfallthru): Move to...
14634         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
14635         (force_nonfallthru): ...here.
14636         * cfghooks.c (force_nonfallthru): New function.
14637         * cfgrtl.c (force_nonfallthru): Rename into...
14638         (rtl_force_nonfallthru): ...this.
14639         (commit_one_edge_insertion): Do not set AUX field.
14640         (commit_edge_insertions): Do not discover new basic blocks.
14641         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
14642         (cfg_layout_rtl_cfg_hooks): Likewise.
14643         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
14644         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
14645         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
14647 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
14649         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14650         Remove macros.
14652 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
14654         * config/i386/sse.md: Update copyright year.
14655         (avxcvtvecmode): Remove.
14656         (sse_movhlps): Merge with *avx_movhlps.
14657         (sse_movlhps): Merge with *avx_movlhps.
14658         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
14659         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
14660         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
14661         (sse_loadhps): Merge with *avx_loadhps.
14662         (sse_storelps): Merge with *avx_storelps.
14663         (sse_loadlps): Merge with *avx_loadlps.
14664         (sse_movss): Merge with *avx_movss.
14665         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
14666         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
14667         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
14668         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
14669         (vec_set<mode>_0): Ditto.
14670         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
14671         (sse4_1_insertps): Merge with *avx_insertps.
14672         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
14673         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
14674         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
14675         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
14676         (sse2_storehpd): Merge with *avx_storehpd.
14677         (sse2_loadhpd): Merge with *avx_loadhpd.
14678         (sse2_loadlpd): Merge with *avx_loadlpd.
14679         (sse2_movsd): Merge with *avx_movsd.
14680         (*vec_concatv2df): Merge with *vec_concatv2df.
14682 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
14684         PR debug/48343
14685         * combine.c (combine_instructions): Add last_combined_insn,
14686         update it if insn is after it, pass it to all try_combine calls.
14687         (try_combine): Add last_combined_insn parameter, pass it instead of
14688         i3 to propagate_for_debug.
14690 2011-04-07  Nick Clifton  <nickc@redhat.com>
14692         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
14693         to handle MDR <-> data register transfers.
14694         (movhi_internal): Likewise.
14696 2011-04-07  Alan Modra  <amodra@gmail.com>
14698         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
14699         previous stack info.
14701 2011-04-07  Tom de Vries  <tom@codesourcery.com>
14703         PR target/43920
14704         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
14705         flow_find_cross_jump.  Swap variables to implement backward replacement.
14706         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
14708 2011-04-07  Tom de Vries  <tom@codesourcery.com>
14710         PR target/43920
14711         * cfgcleanup.c (walk_to_nondebug_insn): New function.
14712         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
14713         and bb2.
14714         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
14715         src1 or src2.  Redirect edges to the last basic block.  Update
14716         frequency and count on multiple basic blocks in case of fallthru.
14718 2011-04-07  Tom de Vries  <tom@codesourcery.com>
14720         PR target/43920
14721         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
14722         function.
14723         (old_insns_match_p): Change return type.  Replace return false/true
14724         with return dir_none/dir_both.  Use can_replace_by.
14725         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
14726         direction from dir_p.  Register replacement direction in dir, last_dir
14727         and afterlast_dir.  Handle new return type of old_insns_match_p using
14728         merge_dir.  Return replacement direction in dir_p.
14729         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
14730         return type of old_insns_match_p.
14731         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
14732         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
14733         flow_find_cross_jump.
14734         * basic-block.h (enum replace_direction): New type.
14735         (flow_find_cross_jump): Add parameter to declaration.
14737 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
14739         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
14740         (AVXMODEDCVTPS2DQ): Ditto.
14741         (VEC_FLOAT_MODE): Ditto.
14742         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
14743         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
14744         (<any_logic:code><mode>3): Use VF mode iterator.
14745         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
14746         Use VF mode iterator.
14747         (copysign<mode>3): Use VF mode iterator.
14748         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
14749         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
14750         (*<any_logic:code><MODEF:mode>3): Merge with
14751         *avx_<any_logic:code><MODEF:mode>3.
14752         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
14753         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
14754         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
14755         (avx_cvtdq2ps<avxmodesuffix>): Remove.
14756         (sse2_cvtdq2ps): Use %v modifier.
14757         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
14758         (avx_cvtps2dq<avxmodesuffix>): Remove.
14759         (sse2_cvtps2dq): Use %v modifier.
14760         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
14761         (avx_cvttps2dq<avxmodesuffix>): Remove.
14762         (sse2_cvttps2dq): Use %v modifier.
14763         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
14764         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
14765         (sse2_cvtsd2siq): Fix insn template.
14766         (sse2_cvtsd2siq_2): Ditto.
14767         (sse2_cvttsd2siq): Ditto.
14768         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
14769         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
14771 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
14773         * gcov-io.c: Use GCC Runtime Library Exception.
14775 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
14777         PR debug/48466
14778         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
14779         as base_reg whatever register reg has been eliminated to, instead
14780         of hardcoding STACK_POINTER_REGNUM.
14782 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
14784         * doc/tm.texi.in: Document C target hooks as separate from general
14785         target hooks.
14786         * doc/tm.texi: Regenerate.
14787         * genhooks.c (struct hook_desc): Add docname field.
14788         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
14789         docname field.
14790         (hook_array): Include c-target.def.
14791         (emit_documentation): Use docname field in output.
14792         (emit_init_macros): Take docname argument.  Only emit definitions
14793         for hooks matching docname.
14794         (main): Expect additional arguments in all cases.  Pass argument
14795         to emit_init_macros.
14796         * target.def: Move initial macro definitions and comments to
14797         target-hooks-macros.h.
14798         (gcc_targetcm): Move to c-family/c-target.def.
14799         * target.h (targetcm): Move declaration to c-family/c-target.h.
14800         * targhooks.c (default_handle_c_option): Move to
14801         c-family/c-opts.c.
14802         * targhooks.h (default_handle_c_option): Move declaration to
14803         c-family/c-common.h.
14804         * target-hooks-macros.h: New file.
14805         * config.gcc (target_has_targetcm): Define and use to add to
14806         c_target_objs and cxx_target_objs.
14807         * config/default-c.c: New file.
14808         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
14809         of target.h and target-def.h.
14810         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
14811         (darwin_objc_construct_string, darwin_cfstring_ref_p,
14812         darwin_check_cfstring_format_arg): Make static.
14813         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
14814         TARGET_STRING_OBJECT_REF_TYPE_P,
14815         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
14816         * config/darwin-protos.h (darwin_objc_construct_string,
14817         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
14818         declare.
14819         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
14820         TARGET_STRING_OBJECT_REF_TYPE_P,
14821         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
14822         * config/t-darwin (darwin-c.o): Update dependencies.
14823         * system.h (TARGET_HAS_TARGETCM): Poison.
14824         * Makefile.in (TARGET_H): Update.
14825         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
14826         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
14827         (default-c.o): New target.
14828         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
14829         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
14830         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
14831         c-target.def.
14832         (build/genhooks.o): Update dependencies.
14834 2011-04-06  Richard Guenther  <rguenther@suse.de>
14836         * ipa-inline.c (enum inlining_mode): Remove.
14837         (cgraph_flatten): Use some other token.
14838         (cgraph_edge_early_inlinable_p): New function, split out from ...
14839         (cgraph_perform_always_inlining): New function, split out from ...
14840         (cgraph_decide_inlining_incrementally): ... here.
14841         (cgraph_mark_inline_edge): Adjust.
14842         (cgraph_early_inlining): Re-structure.
14843         (pass_early_inline): Require SSA form.
14845 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
14846             Julian Brown  <julian@codesourcery.com>
14847             Mark Shinwell  <shinwell@codesourcery.com>
14849         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
14850         LO_REGS only for Thumb-1.
14851         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
14852         be used in short instructions when optimising for size on Thumb-2.
14854 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
14856         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
14857         associated with user returns to be preserved.
14859 2011-04-06  Tristan Gingold  <gingold@adacore.com>
14861         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
14862         symbol_queue_size, DBXOUT_DECR_NESTING,
14863         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
14864         if XCOFF_DEBUGGING_INFO.
14866 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
14868         * config/i386/i386.md (attribute isa): New.
14869         (attribute enabled): New.
14870         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
14871         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
14872         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
14873         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
14874         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
14875         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14876         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
14877         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
14879         * config/i386/sse.md (VF): New mode iterator.
14880         (VF1): Ditto.
14881         (VF2): Ditto.
14882         (VF_128): Ditto.
14883         (SSEMODEF4): Remove.
14884         (attribute sse): Handle V8SF and V4DF modes.
14885         (<absneg:code><mode>2): Use VF mode iterator.
14886         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
14887         mode iterator.
14888         (<plusminus_insn><mode>3): Use VF mode iterator.
14889         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
14890         Use VF mode iterator.
14891         (<sse>_vm<plusminus_insn><mode>3): Merge with
14892         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
14893         (mul<mode>3): Use VF mode iterator.
14894         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
14895         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
14896         mode iterator.
14897         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
14898         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
14899         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
14900         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
14901         mode iterator.
14902         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
14903         Use VF1 mode iterator.
14904         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
14905         (sqrt<VF2:mode>2): New expander.
14906         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
14907         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
14908         and sqrtv2df2.  Use VF mode iterator.
14909         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
14910         mode iterator.
14911         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
14912         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
14913         Use VF1 mode iterator.
14914         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
14915         (<smaxmin:code><mode>3): Use VF mode iterator.
14916         (*<smaxmin:code><mode>3_finite): Merge with
14917         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
14918         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14919         (<sse>_vm<smaxmin:code><mode>2): Merge with
14920         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
14921         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
14922         mode iterator.
14923         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
14924         mode iterator.
14925         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
14926         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
14927         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
14928         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
14929         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
14930         VF mode iterator.
14931         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
14932         Use VF_128 mode iterator.
14933         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
14934         mode iterator.
14935         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
14936         VF_128 mode iterator.
14937         (vcond<mode>): Use VF mode iterator.
14938         * config/i386/predicates.md (sse_comparison_operator): Merge with
14939         avx_comparison_float_operator.  Do not declare as special_predicate.
14940         * config/i386/i386.c (struct builtin_description): Update for renamed
14941         compare patterns.
14942         (ix86_expand_args_builtin): Ditto.
14943         (ix86_expand_sse_compare_mask): Ditto.
14945 2011-04-06  Richard Guenther  <rguenther@suse.de>
14947         * tree-inline.c (estimate_num_insns): For calls simply account
14948         for all passed arguments and a used return value.
14950 2011-04-06  Richard Guenther  <rguenther@suse.de>
14952         PR tree-optimization/47663
14953         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
14954         call_stmt_time fields.
14955         (cgraph_edge_inlinable_p): Declare.
14956         (cgraph_edge_recursive_p): New inline function.
14957         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
14958         (cgraph_clone_edge): Copy it.
14959         * ipa-inline.c (cgraph_estimate_edge_time): New function.
14960         Account for call stmt time.
14961         (cgraph_estimate_time_after_inlining): Take edge argument.
14962         (cgraph_estimate_edge_growth): Account call stmt size.
14963         (cgraph_estimate_size_after_inlining): Take edge argument.
14964         (cgraph_mark_inline_edge): Adjust.
14965         (cgraph_check_inline_limits): Likewise.
14966         (cgraph_recursive_inlining_p): Remove.
14967         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
14968         (cgraph_decide_recursive_inlining): Take edge argument and
14969         adjust.
14970         (cgraph_decide_inlining_of_small_functions): Do not avoid
14971         diags for recursive inlining here.
14972         (cgraph_flatten): Adjust.
14973         (cgraph_decide_inlining_incrementally): Likewise.
14974         (estimate_function_body_sizes): Remove call cost handling.
14975         (compute_inline_parameters): Initialize caller edge call costs.
14976         (cgraph_estimate_edge_growth): New function.
14977         (cgraph_estimate_growth): Use it.
14978         (cgraph_edge_badness): Likewise.
14979         (cgraph_check_inline_limits): Take an edge argument.
14980         (cgraph_decide_inlining_of_small_functions): Adjust.
14981         (cgraph_decide_inlining): Likewise.
14982         * tree-inline.c (estimate_num_insns): Only account for call
14983         return value if it is used.
14984         (expand_call_inline): Avoid diagnostics on recursive inline
14985         functions here.
14986         * lto-cgraph.c (lto_output_edge): Output edge call costs.
14987         (input_edge): Input edge call costs.
14989 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14991         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
14993 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
14995         * doc/invoke.texi (Spec Files): Fix typo.
14997 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
14999         * profile.c (branch_prob): Move declaration of local variable.  Remove
15000         obsolete ??? comment.  Expand the location explicitly instead of using
15001         the LOCATION_FILE and LOCATION_LINE macros.
15003 2011-04-06  Wei Guozhi  <carrot@google.com>
15005         PR target/47855
15006         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
15007         (arm_cond_branch): Likewise.
15008         (arm_cond_branch_reversed): Likewise.
15009         (arm_jump): Likewise.
15010         (push_multi): Likewise.
15011         * config/arm/constraints.md (Py): New constraint.
15013 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15015         PR bootstrap/48471
15016         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
15017         Move these...
15018         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
15019         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
15020         #ifdef DBX_DEBUGGING_INFO.
15022 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
15024         PR bootstrap/48403
15025         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
15026         if old and new states differ.
15028 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
15030         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
15031         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
15032         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
15033         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
15034         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
15035         mcfv4e): Use Alias.
15036         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
15037         ColdFire options to -mcpu= options.
15039 2011-04-05  Jeff Law  <law@redhat.com>
15041         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
15042         check if BB is a successor of LOOP->header and return
15043         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
15045 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
15047         * cprop.c (struct reg_use): Remove.
15048         (reg_use_table): Make an array of RTX.
15049         (find_used_regs, constprop_register, local_cprop_pass,
15050         bypass_block): Simplify users of reg_use_table.
15051         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
15052         on one of the uses found by find_used_regs.
15054 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15056         PR bootstrap/48469
15057         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
15058         declaration.
15060 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15062         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
15063         as an rtx.
15064         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
15066 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
15068         PR middle-end/48441
15069         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
15071 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15073         * combine.c: Include obstack.h.
15074         (struct insn_link): Define.
15075         (uid_log_links): Adjust type.
15076         (FOR_EACH_LOG_LINK): New macro.
15077         (insn_link_obstack): Declare.
15078         (alloc_insn_link): Define.
15079         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
15080         type of link variables.
15081         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
15082         (try_combine, record_promoted_values, distribute_notes): Likewise.
15083         (distribute_links): Likewise.  Tweak prototype.
15084         (clear_log_links): Delete.
15085         (adjust_for_new_dest): Call alloc_insn_link.
15086         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
15088 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15090         * gcse.c (modify_mem_list): Convert to an array of VECs.
15091         (canon_modify_mem_list, compute_transp): Tweak formatting.
15092         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
15093         (load_killed_in_block_p): Likewise.
15094         (record_last_mem_set_info): Likewise.
15095         (clear_modify_mem_tables): Likewise.
15097 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15099         PR middle-end/48461
15100         * function.c (emit_use_return_register_into_block): Only define if
15101         HAVE_return.
15103 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
15105         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
15107 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
15109         * config/rx/rx-opts.h: New.
15110         * config/rx/rx.c (rx_cpu_type): Remove.
15111         (rx_handle_option): Don't assert that global structures are in
15112         use.  Access variables via opts pointer.  Defer most handling of
15113         OPT_mint_register_.  Use error_at.
15114         (rx_option_override): Handle deferred OPT_mint_register_ here.
15115         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
15116         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
15117         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
15118         (rx_cpu_types): New Enum and EnumValue entries.
15119         (mint-register=): Use Defer and use Var accordingly.
15121 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15123         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
15124         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
15125         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
15126         Move these...
15127         (debug_free_queue, debug_nesting, symbol_queue_index):
15128         ...and these...
15129         * dbxout.c: ...to here.  Make static.
15131 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15133         * gcse.c (modify_pair): Define.  Define a VEC of it.
15134         (canon_modify_mem_list): Convert to an array of VECs.
15135         (free_insn_expr_list_list): Delete.
15136         (clear_modify_mem_tables): Call VEC_free instead.
15137         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
15138         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
15139         (canon_list_insert, compute_transp): Likewise.
15141 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15143         PR target/43920
15144         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
15145         for size.
15147 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15149         PR target/43920
15150         * function.c (emit_use_return_register_into_block): New function.
15151         (thread_prologue_and_epilogue_insns): Use
15152         emit_use_return_register_into_block.
15154 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15156         PR target/43920
15157         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
15158         insn.
15160 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15162         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
15164 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
15166         * config/arm/arm.md (define_constants for unspec): Replace with
15167         define_c_enum.
15168         (define_constants for unspecv): Replace with define_c_enum.
15169         * config/arm/neon.md (define_constants for unspec): Replace with
15170         define_c_enum.
15172 2011-04-04  Richard Henderson  <rth@redhat.com>
15174         PR bootstrap/48400
15175         * dwarf2out.c (output_line_info): Always emit line info from
15176         at least one section.
15177         (dwarf2out_init): Create text_section_line_info here ...
15178         (set_cur_line_info_table): ... not here.
15180 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
15182         PR target/48380
15183         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
15184         not called.
15186         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
15188 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
15190         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
15191         (expr_equiv_p): Remove.
15192         (insert_set_in_table): Look at <dest, src> pair instead of expr.
15193         (hash_scan_set): Update call to insert_set_in_table.
15194         (dump_hash_table): Dump <dest, src> pair.
15195         (lookup_set): Simplify.  Lookup <dest, src> pair.
15196         (compute_transp): Remove, fold heavily simplified code into...
15197         (compute_local_properties): ...here.  Expect COMP and TRANSP
15198         unconditionally.
15199         (find_avail_set): Take set directly from struct expr.
15200         (find_bypass-set): Likewise.
15201         (bypass_block): Likewise.
15202         (cprop_insn): Likewise.  Remove redundant INSN_P test.
15204         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
15205         checks on form of COND from find_implicit_sets to here.
15206         (find_implicit_sets): Cleanup control flow. Split critical edges
15207         if it exposes implicit sets.  Allocate/resize implicit_sets as
15208         necessary.
15209         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
15210         changed something.  Run df_analyze after find_implicit_sets if any
15211         edges were split.  Do not allocate implicit_sets here.
15213         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
15214         (gcse_obstack): Renamed to cprop_obstack.
15215         (GNEW, GNEWVEC, GNEWVAR): Remove.
15216         (gmalloc): Remove.
15217         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
15218         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
15219         (gcse_alloc): Likewise, and rename to cprop_alloc.
15220         (alloc_gcse_men, free_gcse_mem): Remove.
15221         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
15222         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
15223         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
15225         * cprop.c (oprs_not_set_p): Remove.
15226         (mark_set, mark_clobber): Remove.
15227         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
15228         (reg_not_set_p): New function.
15229         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
15230         (cprop_insn): Likewise.
15231         (cprop_jump): Use FOR_EACH_EDGE.
15233 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
15235         PR bootstrap/48403
15236         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
15237         (rank_for_schedule): Use scheduled_insns vector instead of
15238         last_scheduled_insn.
15239         (ok_for_early_queue_removal): Likewise.
15240         (queue_to_ready): Search forward in nonscheduled_insns_begin if
15241         we have a dbg_cnt.
15242         (choose_ready): Likewise.
15243         (commit_schedule): Use VEC_iterate.
15244         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
15245         a dbg_cnt, use it and ensure the first insn is in the ready list.
15246         (haifa_sched_init): Allocate scheduled_insns.
15247         (sched_extend_ready_list): Don't allocate it; reserve space.
15248         (haifa_sched_finish): Free it.
15250 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
15252         * optc-gen.awk: Always remove type from Variable entry before
15253         recording in var_seen.
15255 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
15257         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
15258         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
15259         call to tidy_fallthru_edges.
15261 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
15263         * doc/options.texi (ToLower): Document.
15264         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
15265         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
15266         * opts.h (cl_option): Add cl_tolower field.
15267         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
15268         arguments with lowercase strings.
15269         * config/rx/rx.opt (mcpu=): Add ToLower.
15270         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
15271         argument.
15273 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
15275         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
15277 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
15279         * config/vax/vax.c: Include reload.h.
15281 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
15283         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
15284         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15285         (sparc_preferred_reload_class): New function.
15287 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
15289         PR debug/48401
15290         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
15291         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
15293 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
15295         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
15296         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
15298 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
15300         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
15301         (ASM_OUTPUT_ALIGNED_BSS): Define.
15303 2011-04-03  Michael Matz  <matz@suse.de>
15305         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
15306         and next_slot members.
15307         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
15308         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
15309         (lto_streamer_cache_append): Declare.
15310         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
15311         unsigned index, remove offset parameter, ensure that we append
15312         or update existing entries.
15313         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
15314         parameter, update next_slot for append.
15315         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
15316         parameter.
15317         (lto_streamer_cache_insert_at): Likewise.
15318         (lto_streamer_cache_append): New function.
15319         (lto_streamer_cache_lookup): Use unsigned index.
15320         (lto_streamer_cache_get): Likewise.
15321         (lto_record_common_node): Don't test tree_node_can_be_shared.
15322         (preload_common_node): Adjust call to lto_streamer_cache_insert.
15323         (lto_streamer_cache_delete): Don't free offsets member.
15324         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
15325         (lto_output_string_with_length): Use lto_output_data_stream.
15326         (lto_output_tree_header): Remove ix parameter, don't write it.
15327         (lto_output_builtin_tree): Likewise.
15328         (lto_write_tree): Adjust callers to above, don't track and write
15329         offset, write unsigned index.
15330         (output_unreferenced_globals): Don't emit all global vars.
15331         (write_global_references): Use unsigned indices.
15332         (lto_output_decl_state_refs): Likewise.
15333         (write_symbol): Likewise.
15334         * lto-streamer-in.c (lto_input_chain): Move earlier.
15335         (input_function): Use unsigned index.
15336         (input_alias_pairs): Don't read and then ignore all global vars.
15337         (lto_materialize_tree): Remove ix_p parameter, don't read index,
15338         don't pass it back, use lto_streamer_cache_append.
15339         (lto_register_var_decl_in_symtab): Use unsigned index.
15340         (lto_register_function_decl_in_symtab): Likewise.
15341         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
15342         index.
15343         (lto_get_builtin_tree): Don't read index, use
15344         lto_streamer_cache_append.
15345         (lto_read_tree): Adjust call to lto_materialize_tree.
15347         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
15348         don't use function calls in arguments to MIN.
15350         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
15351         twice.
15353         * gimple.c (gimple_type_leader_entry): Mark deletable.
15355 2011-04-03  Alan Modra  <amodra@gmail.com>
15357         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
15359 2011-04-03  Michael Matz  <matz@suse.de>
15361         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
15362         an integer.
15363         * tree.h (tree_decl_non_common.vindex): Adjust comment.
15365 2011-04-03  Michael Matz  <matz@suse.de>
15367         * cgraphbuild.c (record_reference): Canonicalize constructor values.
15368         * gimple-fold.c (canonicalize_constructor_val): Accept being called
15369         without function context.
15370         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
15371         current_function_decl and cfun.
15373 2011-04-03  Michael Matz  <matz@suse.de>
15375         * tree.c (decl_init_priority_insert): Don't create entry for
15376         default priority.
15377         (decl_fini_priority_insert): Ditto.
15378         (fields_compatible_p, find_compatible_field): Remove.
15379         * tree.h (fields_compatible_p, find_compatible_field): Remove.
15380         * gimple.c (gimple_compare_field_offset): Adjust block comment.
15382 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
15384         * combine.c (try_combine): Remove useless local variable.
15386 2011-04-03  Richard Guenther  <rguenther@suse.de>
15387             Ira Rosen  <ira.rosen@linaro.org>
15389         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
15390         non-variable offsets and compare the remaining bases of the two
15391         accesses instead of looking for exact same data-ref.
15393 2011-04-02  Kai Tietz  <ktietz@redhat.com>
15395         PR target/48416
15396         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
15398         * i386.c (ix86_is_msabi_thiscall): New helper function.
15399         (ix86_is_type_thiscall): New helper function.
15400         (ix86_comp_type_attributes): Handle thiscall for method-functions
15401         special.
15402         (init_cumulative_args): Likewise.
15403         (find_drap_reg): Likewise.
15404         (ix86_static_chain): Likewise.
15405         (x86_this_parameter): Likewise.
15406         (x86_output_mi_thunk): Likewise.
15408 2011-04-01  Olivier Hainque  <hainque@adacore.com>
15409             Nicolas Setton  <setton@adacore.com>
15410             Eric Botcazou  <ebotcazou@adacore.com>
15412         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
15413         (add_gnat_descriptive_type_attribute): New function.
15414         (gen_array_type_die): Call it.
15415         (gen_enumeration_type_die): Likewise.
15416         (gen_struct_or_union_type_die): Likewise.
15417         (modified_type_die): Likewise.
15418         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
15419         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
15420         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
15422 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
15424         PR bootstrap/48148
15425         * dwarf2out.c (resolve_addr): Don't call force_decl_die
15426         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
15428         Revert:
15429         2011-03-17  Richard Guenther  <rguenther@suse.de>
15431         PR bootstrap/48148
15432         * lto-cgraph.c (input_overwrite_node): Clear the abstract
15433         origin for decls in other ltrans units.
15434         (input_varpool_node): Likewise.
15436 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
15438         PR middle-end/48335
15439         * expr.c (expand_assignment): Handle all possibilities
15440         if TO_RTX is CONCAT.
15441         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
15442         (store_split_bit_field): If SUBREG_REG (op0) or
15443         op0 itself has smaller mode than word, return it
15444         for offset 0 and const0_rtx for out-of-bounds stores.
15445         If word is const0_rtx, skip it.
15447 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
15449         * config/h8300/h8300.c (print_operand_address): Rename to...
15450         (h8300_print_operand_address): ...this. Make static. Adjust comments.
15451         Call h8300_print_operand and h8300_print_operand_address instead of
15452         print_operand and print_operand_address. Declare.
15453         (print_operand): Renake to...
15454         (h8300_print_operand): ...this. Make static. Adjust comments.
15455         Call h8300_print_operand instead of print_operand. Declare.
15456         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
15457         (h8300_register_move_cost): Likewise.
15458         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
15459         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
15460         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
15461         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
15462         * config/h8300/h8300-protos.h (print_operand): Delete.
15463         (print_operand_address): Delete.
15465 2011-04-01  Richard Henderson  <rth@redhat.com>
15467         PR 48400
15468         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
15469         in strict mode before dwarf4.  Re-order tests to early out
15470         before switching sections.
15472 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
15474         * config/h8300/constraints.md: New file.
15475         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
15476         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
15477         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
15478         * config/h8300/predicates.md (bit_operand): Likewise.
15479         (incdec_operand): Use satisfies_constraint_M and
15480         satisfies_constraint_O.  Don't use C code block.
15481         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
15482         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
15483         (compute_mov_length): Use satisfies_constraint_G.
15484         (fix_bit_operand): Use satisfies_constraint_U.
15485         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
15486         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
15487         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
15488         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
15489         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
15490         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
15491         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15492         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
15493         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
15494         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
15495         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
15496         (EXTRA_MEMORY_CONSTRAINT): Delete.
15498 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
15499             Michael Meissner  <meissner@linux.vnet.ibm.com>
15501         PR target/48262
15502         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
15503         operands, as per the specifications.
15505         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
15506         (vec_extract_evenv4sf): Ditto.
15507         (vec_extract_evenv8hi): Ditto.
15508         (vec_extract_evenv16qi): Ditto.
15509         (vec_extract_oddv4si): Ditto.
15511 2011-03-31  Mark Wielaard  <mjw@redhat.com>
15513         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
15514         high_pc attribute if the CU has no associated code. Only output
15515         DW_AT_entry_pc for CU if not generating strict dwarf and
15516         dwarf_version < 4.
15518 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
15520         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
15521         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
15522         out of ...
15523         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
15524         * final.c (final_start_function): Call the new function rather
15525         than using a NULL argument for dwarf2out_frame_debug.
15527         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
15528         that contains the prologue.
15530         * haifa-sched.c (queue_insn): New arg REASON.  All callers
15531         changed.  Print it in debugging output.
15533         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
15535         * sched-ebb.c (begin_schedule_ready): Remove second argument.
15536         Split most of the code into...
15537         (begin_move_insn): ... here.  New function.
15538         (ebb_sched_info): Add a pointer to it.
15539         * haifa-sched.c (scheduled_insns): New static variable.
15540         (sched_extend_ready_list): Allocate it.
15541         (schedule_block): Use it to record the order of scheduled insns.
15542         Perform RTL changes to move insns only after all scheduling
15543         decisions have been made.
15544         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
15545         begin_move_insn field.
15546         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
15547         * sched-int.h (struct haifa_sched_info): Remove second argument
15548         from begin_schedule_ready hook.  Add new member begin_move_insn.
15549         * sched-rgn.c (begin_schedule_ready): Remove second argument.
15550         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
15552         * haifa-sched.c (prune_ready_list): New function, broken out of
15553         schedule_block.
15554         (schedule_block): Use it.
15556 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15558         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
15560 2011-04-01  Kai Tietz  <ktietz@redhat.com>
15562         * config.gcc (*-*-mingw*): Allow as option the
15563         posix threading model.
15564         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
15565         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
15566         definition.
15567         (CPP_SPEC): Add pthread/no-pthread handling.
15568         (LIB_SPEC): Likewise.
15569         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
15570         (LIB_SPEC): Likewise.
15571         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
15572         flag to pass -pthread option for shared libgcc build.
15573         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
15574         for shared libgcc build.
15575         * config/i386/t-mingw-pthread: New file.
15576         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
15577         New define to enable use of library pthread by default.
15578         * config/i386/mingw.opt (pthread): New driver option.
15579         (no-pthread): New driver option.
15580         * config/i386/cygming.opt: Make sure trailing empty line is retained.
15581         * config/i386/mingw-w64.opt: Likewise.
15583 2011-04-01  Gary Funck  <gary@intrepid.com>
15585         * c-decl.c (grokdeclarator): Fix formatting.
15587 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
15589         * expr.c (emit_block_move_via_movmem): Use n_generator_args
15590         instead of n_operands.
15591         (set_storage_via_setmem): Likewise.
15592         * optabs.c (maybe_gen_insn): Likewise.
15593         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
15594         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
15595         (mips_expand_builtin_direct): Likewise.
15596         * config/spu/spu.c (expand_builtin_args): Likewise.
15598 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
15600         * recog.h (insn_data_d): Add n_generator_args.
15601         * genoutput.c (data): Likewise.
15602         (output_insn_data): Print it.
15603         (max_opno, num_dups): Delete.
15604         (scan_operands): Just fill in "d->operand[...]".
15605         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
15607 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
15609         * gensupport.h (pattern_stats): New structure.
15610         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
15611         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
15612         (max_operand_1, max_operand_vec): Delete.
15613         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
15615 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
15617         * emit-rtl.c (emit_pattern_after_setloc): New function.
15618         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
15619         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
15620         (emit_pattern_after): New function.
15621         (emit_insn_after, emit_jump_insn_after): Call it.
15622         (emit_call_insn_after, emit_debug_insn_after): Likewise.
15623         (emit_pattern_before_setloc): New function.
15624         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
15625         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
15626         Likewise.
15627         (emit_pattern_before): New function.
15628         (emit_insn_before, emit_jump_insn_before): Call it.
15629         (emit_call_insn_before, emit_debug_insn_before): Likewise.
15631 2011-03-31  Richard Henderson  <rth@redhat.com>
15633         * dwarf2out.c (dw_separate_line_info_ref): Remove.
15634         (dw_separate_line_info_entry): Remove.
15635         (enum dw_line_info_opcode): New.
15636         (dw_line_info_entry): Use it.
15637         (dw_line_info_table, dw_line_info_table_p): New.
15638         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
15639         (line_info_table, line_info_label_num): Remove.
15640         (line_info_table_in_use): Remove.
15641         (separate_line_info_table): Remove.
15642         (separate_line_info_table_allocated): Remove.
15643         (separate_line_info_table_in_use): Remove.
15644         (LINE_INFO_TABLE_INCREMENT): Remove.
15645         (line_info_label_num): New.
15646         (cur_line_info_table): New.
15647         (text_section_line_info, cold_text_section_line_info): New.
15648         (separate_line_info): New.
15649         (SEPARATE_LINE_CODE_LABEL): Remove.
15650         (print_dwarf_line_table): Remove.
15651         (debug_dwarf): Don't dump it.
15652         (output_one_line_info_table): New.
15653         (output_line_info): Use it.
15654         (new_line_info_table): New.
15655         (set_cur_line_info_table): New.
15656         (dwarf2out_switch_text_section): Use it.
15657         (dwarf2out_begin_function): Likewise.
15658         (push_dw_line_info_entry): New.
15659         (dwarf2out_source_line): Rewrite for new line info tables.
15660         (dwarf2out_init): Remove dead initailizations.
15662 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
15664         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
15665         various flags.
15666         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
15667         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
15668         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
15669         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
15670         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
15671         * opt-functions.awk (flag_init, switch_bit_fields): New.
15672         (switch_flags): Don't handle flags moved to bit-fields.  Don't
15673         generate CL_MISSING_OK or CL_SAVE.
15674         * optc-gen.awk: Update to generate bit-field output as well as
15675         flags field.
15676         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
15677         bit-field instead of CL_REJECT_DRIVER flag.
15678         * opts-common.c (generate_canonical_option,
15679         decode_cmdline_option): Use bit-fields instead of CL_* flags.
15680         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
15681         instead of CL_REJECT_NEGATIVE flag.
15682         * toplev.c (print_switch_values): Use cl_report bit-field instead
15683         of CL_REPORT flag.
15685 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
15687         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
15688         a zero minimum index only if it is redundant.
15690 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
15692         PR rtl-optimization/48381
15693         * ira-color.c (assign_hard_reg): Use hard reg set intersection
15694         instead of ira_class_hard_reg_index for calculating conflicting
15695         hard registers.
15697 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
15699         * cprop.c: Clean up hash table building.
15700         (reg_avail_info): Remove.
15701         (oprs_available_p): Remove.
15702         (record_last_reg_set_info): Remove.
15703         (record_last_set_info): Remove.
15704         (reg_available_p): New function.
15705         (gcse_constant_p): Do not treat unfolded conditions as constants.
15706         (make_set_regs_unavailable): New function.
15707         (hash_scan_set): Simplify with new reg_available_p.
15708         (compute_hash_table_work): Traverse insns stream only once.
15709         Do not compute reg_avail_info. Traverse insns in reverse order.
15710         Record implicit sets after recording explicit sets from the block.
15712 2011-03-31  Michael Matz  <matz@suse.de>
15714         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
15716 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
15718         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
15719         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
15720         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15721         (h8300_mode_dependent_address_p): New function.
15722         (h8300_get_index): Make static.
15724 2011-03-31  Jeff Law  <law@redhat.com>
15726         * reload1.c (elimination_effects): Fix typo in recent change.
15728         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
15729         typo potentially leading to null pointer dereference.
15731         * caller-save.c (new_saved_hard_reg): Eliminate return value.
15732         (setup_save_areas): Corresponding changes to avoid useless
15733         assignments.
15735         * jump.c (reversed_comparison_code_parts): Avoid successive return
15736         statements when REVERSE_CONDITION is defined.
15738         * expr.c (expand_assignment): Avoid useless assignments.
15739         (expand_expr_real_1): Likewise.
15740         (expand_expr_real_2): Avoid useless statements.
15742         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
15744         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
15746         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
15747         statements.
15749         * stmt.c (expand_expr_stmt): Avoid useless assignment.
15751 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
15753         PR target/47109
15754         * doc/tm.texi.in (TARGET_VERSION): Remove.
15755         * doc/tm.texi: Regenerate.
15756         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
15757         * collect2.c (main): Don't use TARGET_VERSION.
15758         * mips-tdump.c (main): Don't use TARGET_VERSION.
15759         * mips-tfile.c (main): Don't use TARGET_VERSION.
15760         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
15761         * config/rs6000/vxworksae.h: Remove.
15762         * config/alpha/alpha.h (TARGET_VERSION): Remove.
15763         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
15764         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
15765         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
15766         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
15767         * config/arm/arm.h (TARGET_VERSION): Remove.
15768         * config/arm/coff.h (TARGET_VERSION): Remove.
15769         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
15770         * config/arm/elf.h (TARGET_VERSION): Remove.
15771         * config/arm/freebsd.h (TARGET_VERSION): Remove.
15772         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
15773         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
15774         * config/arm/pe.h (TARGET_VERSION): Remove.
15775         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
15776         * config/arm/semi.h (TARGET_VERSION): Remove.
15777         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
15778         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
15779         * config/arm/vxworks.h (TARGET_VERSION): Remove.
15780         * config/avr/avr.h (TARGET_VERSION): Remove.
15781         * config/bfin/bfin.h (TARGET_VERSION): Remove.
15782         * config/fr30/fr30.h (TARGET_VERSION): Remove.
15783         * config/frv/frv.h (TARGET_VERSION): Remove.
15784         * config/h8300/h8300.h (TARGET_VERSION): Remove.
15785         * config/i386/cygwin.h (TARGET_VERSION): Remove.
15786         * config/i386/darwin.h (TARGET_VERSION): Remove.
15787         * config/i386/darwin64.h (TARGET_VERSION): Remove.
15788         * config/i386/djgpp.h (TARGET_VERSION): Remove.
15789         * config/i386/freebsd.h (TARGET_VERSION): Remove.
15790         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
15791         * config/i386/gnu.h (TARGET_VERSION): Remove.
15792         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
15793         * config/i386/i386elf.h (TARGET_VERSION): Remove.
15794         * config/i386/linux.h (TARGET_VERSION): Remove.
15795         * config/i386/linux64.h (TARGET_VERSION): Remove.
15796         * config/i386/lynx.h (TARGET_VERSION): Remove.
15797         * config/i386/mingw32.h (TARGET_VERSION): Remove.
15798         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
15799         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
15800         * config/i386/netware.h (TARGET_VERSION): Remove.
15801         * config/i386/nto.h (TARGET_VERSION): Remove.
15802         * config/i386/openbsd.h (TARGET_VERSION): Remove.
15803         * config/i386/vxworks.h (TARGET_VERSION): Remove.
15804         * config/ia64/elf.h (TARGET_VERSION): Remove.
15805         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
15806         * config/ia64/hpux.h (TARGET_VERSION): Remove.
15807         * config/ia64/linux.h (TARGET_VERSION): Remove.
15808         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
15809         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
15810         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
15811         * config/lm32/lm32.h (TARGET_VERSION): Remove.
15812         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
15813         * config/m32c/m32c.h (TARGET_VERSION): Remove.
15814         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
15815         * config/m32r/m32r.h (TARGET_VERSION): Remove.
15816         * config/m68k/linux.h (TARGET_VERSION): Remove.
15817         * config/m68k/m68k.h (TARGET_VERSION): Remove.
15818         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
15819         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
15820         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
15821         * config/mep/mep.h (TARGET_VERSION): Remove.
15822         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
15823         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
15824         * config/mips/iris6.h (MACHINE_TYPE): Remove.
15825         * config/mips/linux.h (TARGET_VERSION): Remove.
15826         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
15827         * config/mips/vxworks.h (TARGET_VERSION): Remove.
15828         * config/mmix/mmix.h (TARGET_VERSION): Remove.
15829         * config/mn10300/linux.h (TARGET_VERSION): Remove.
15830         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
15831         * config/pa/pa.h (TARGET_VERSION): Remove.
15832         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
15833         * config/picochip/picochip.h (TARGET_VERSION): Remove.
15834         * config/rs6000/aix.h (TARGET_VERSION): Remove.
15835         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
15836         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
15837         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
15838         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
15839         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
15840         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
15841         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
15842         * config/rs6000/linux.h (TARGET_VERSION): Remove.
15843         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
15844         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
15845         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
15846         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
15847         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
15848         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
15849         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
15850         * config/s390/linux.h (TARGET_VERSION): Remove.
15851         * config/s390/s390.h (TARGET_VERSION): Remove.
15852         * config/s390/tpf.h (TARGET_VERSION): Remove.
15853         * config/score/score.h (TARGET_VERSION): Remove.
15854         * config/sh/linux.h (TARGET_VERSION): Remove.
15855         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
15856         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
15857         * config/sh/sh.h (TARGET_VERSION): Remove.
15858         * config/sh/sh64.h (TARGET_VERSION): Remove.
15859         * config/sh/superh.h (TARGET_VERSION): Remove.
15860         * config/sh/vxworks.h (TARGET_VERSION): Remove.
15861         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
15862         * config/sparc/linux.h (TARGET_VERSION): Remove.
15863         * config/sparc/linux64.h (TARGET_VERSION): Remove.
15864         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
15865         TARGET_NAME32, TARGET_NAME): Remove.
15866         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
15867         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
15868         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
15869         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
15870         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
15871         * config/spu/spu.h (TARGET_VERSION): Remove.
15872         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
15873         * config/v850/v850.h (TARGET_VERSION): Remove.
15874         * config/vax/linux.h (TARGET_VERSION): Remove.
15875         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
15876         * config/xtensa/elf.h (TARGET_VERSION): Remove.
15877         * config/xtensa/linux.h (TARGET_VERSION): Remove.
15879 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
15881         PR target/48142
15882         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
15883         frame-related from frame-unrelated adjustments to the stack pointer.
15885 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
15887         * common.opt (fdebug-types-section): Move earlier.
15888         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
15890 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
15892         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
15893         var.
15895 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
15897         * tree.h (CASE_CHAIN): Define.
15898         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
15899         (gimple_redirect_edge_and_branch): Likewise.
15901 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15903         PR middle-end/48367
15904         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
15905         calculation.
15907 2011-03-30  Jeff Law  <law@redhat.com>
15909         * PR bootstrap/48371
15910         * reload1.c (reload): Fix botch in last change.
15912         * reload.h (struct reload): Fix typo introduced in last change.
15914 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
15916         * config/arm/arm.opt (mhard-float, msoft-float): Mark
15917         Undocumented.  Remove help text.
15918         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
15919         -mhard-float.
15921 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
15923         * doc/options.texi (NegativeAlias): Document.
15924         (Alias): Mention NegativeAlias.
15925         * opt-functions.awk: Handle NegativeAlias.
15926         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
15927         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
15928         * opts.h (CL_NEGATIVE_ALIAS): Define.
15929         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
15930         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
15931         OPT_mspe_.
15932         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
15933         Alias entries.
15934         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15935         mno-spe and mno-isel instead of mspe=no and -misel=no.
15937 2011-03-29  Mark Wielaard  <mjw@redhat.com>
15939         * common.opt (fdebug-types-section): New flag.
15940         * doc/invoke.texi: Document new -fno-debug-types-section flag.
15941         * dwarf2out.c (use_debug_types): New define.
15942         (struct die_struct): Mark die_id with GTY desc use_debug_types.
15943         (print_die): Guard output of type unit signatures using
15944         use_debug_types.
15945         (build_abbrev_table): Replace assert of dwarf_version >= 4
15946         with assert on use_debug_types.
15947         (size_of_die): Likewise.
15948         (unmark_dies): Likewise.
15949         (value_format): Decide AT_ref_external form on use_debug_types.
15950         (output_die): Replace dwarf_version version check guard with
15951         use_debug_types where appropriate.
15952         (modified_type_die): Likewise.
15953         (gen_reference_type_die): Likewise.
15954         (dwarf2out_start_source_file): Likewise.
15955         (dwarf2out_end_source_file): Likewise.
15956         (prune_unused_types_walk_attribs): Likewise.
15957         (dwarf2out_finish): Likewise.
15959 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15961         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
15963 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
15965         PR rtl-optimization/48332
15966         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
15967         mode of input operand N and modeN to its actual mode.
15969 2011-03-30  Jeff Law  <law@redhat.com>
15971         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
15972         define accessor macro.
15973         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
15974         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
15975         (reg_equiv_init): Likewise.
15976         (reg_equivs_size): New variable.
15977         (reg_equiv_init_size): Remove.
15978         (allocate_initial_values): Move prototype to here from....
15979         * integrate.h (allocate_initial_values): Remove prototype.
15980         * integrate.c: Include reload.h.
15981         (allocate_initial_values): Corresponding changes.
15982         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
15983         (fix_reg_equiv_init, no_equiv): Corresponding changes.
15984         (update_equiv_regs): Corresponding changes.
15985         (ira): Corresponding changes.
15986         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
15987         (push_secondary_reload): Corresponding changes.
15988         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
15989         (make_memloc, find_reloads_address): Corresponding changes.
15990         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
15991         (find_reloads_address_1): Corresponding changes.
15992         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
15993         (refers_to_regno_for_reload_p): Corresponding changes.
15994         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
15995         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
15996         * reload1.c: Include ggc.h.
15997         (grow_reg_equivs): New function.
15998         (replace_pseudos_in, reload): Corresponding changes.
15999         (calculate_needs_all_insns, alter_regs): Corresponding changes.
16000         (eliminate_regs_1, elimination_effects): Corresponding changes.
16001         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
16002         (delete_output_reload): Likewise.
16003         * caller-save.c (mark_referenced_regs): Corresponding changes.
16004         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
16005         * frv/predicates.md (frv_load_operand): Corresponding changes.
16006         * microblaze/microblaze.c (double_memory_operand): Corresponding
16007         changes.
16008         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
16009         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
16010         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
16011         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
16012         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
16013         changes.
16014         * pa/pa.c (emit_move_sequence): Corresponding changes.
16015         * vax/vax.c (nonindexed_address_p): Corresponding changes.
16017 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
16019         PR target/47551
16020         * config/arm/arm.c (coproc_secondary_reload_class): Handle
16021         structure modes.  Don't check neon_vector_mem_operand for
16022         vector or structure modes.
16024 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
16025             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16027         PR target/43590
16028         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
16029         operand 1 and reshuffle the operands to match.
16030         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
16032 2011-03-30  Christian Schüler  <cschueler@gmx.de>
16034         PR driver/48208
16035         * config/c.opt (F): Added 'Driver' to -F option.
16037         PR driver/48260
16038         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
16039           handler function.
16040         * config/darwin.opt: Added '-arch' option.
16042 2011-03-30  Nick Clifton  <nickc@redhat.com>
16044         * config/rx/rx.md: Add peepholes and patterns to combine
16045         extending loads and simple arithmetic instructions.
16046         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
16047         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
16048         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
16049         modes to use pre-decrement and post-increment addressing.
16050         (rx_is_restricted_memory_address): Add range checking of REG+INT
16051         addresses.
16052         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
16053         (rx_memory_move_cost): Adjust cost of stores.
16054         (rx_adjust_insn_length): New function.
16056 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
16058         PR c/48305
16059         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
16060         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
16061         matching arg00/arg01 types.
16063 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
16065         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
16066         last_location to UNKNOWN_LOCATION.
16068 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
16070         PR target/48349
16071         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
16072         FLOAT_SSE_REGS.
16074 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
16075             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16077         PR bootstrap/48337
16078         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
16079         Init(PROCESSOR_V7).
16080         (sparc_cpu): Likewise.
16081         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
16082         PROCESSOR_V7.
16084 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
16086         PR target/48336
16087         PR middle-end/48342
16088         PR rtl-optimization/48345
16089         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
16090         hard regs for given mode from profitable regs when doing secondary
16091         allocation.
16093 2011-03-29  Jeff Law  <law@redhat.com>
16095         PR bootstrap/48327
16096         * tree-ssa-threadupdate.c (struct redirection_data): Remove
16097         do_not_duplicate field.
16098         (lookup_redirection_data): Corresponding changes.
16099         (create_duplicates): Always create a template block.
16100         (redirect_edges): Remove code which reused the original block
16101         when it was going to become unreachable code.
16102         (thread_block): Don't set do_not_duplicate field.
16104 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
16106         * lto-opts.c (register_user_option_p, lto_register_user_option):
16107         Make type argument unsigned.
16108         * lto-streamer.h (lto_register_user_option): Make type argument
16109         unsigned.
16110         * opth-gen.awk: Make CL_* macros unsigned.
16111         * opts-common.c (find_opt): Make lang_mask argument unsigned.
16112         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
16113         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
16114         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
16115         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
16116         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
16117         (find_opt): Make lang_mask argument unsigned.
16119 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
16121         PR rtl-optimization/48331
16122         PR rtl-optimization/48334
16123         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
16124         for any used algorithm.
16126 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
16128         * ira-conflicts.c (build_object_conflicts): Add unused attribute
16129         to parent_max.
16131 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
16133         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
16134         (alpha_option_override): Don't set alpha_sr_alias_set.
16135         (emit_frame_store_1): Use gen_frame_mem rather than calling
16136         set_mem_alias_set.
16137         (alpha_expand_epilogue): Ditto.
16139 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
16141         PR tree-optimization/48290
16142         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
16143         vectorization, check that relevant phis in the basic block after
16144         the inner loop are really inner loop's exit phis.
16146 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
16148         PR debug/48190
16149         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
16150         (cached_dw_loc_list_def): New structure.
16151         (cached_dw_loc_list): New typedef.
16152         (cached_dw_loc_list_table): New variable.
16153         (cached_dw_loc_list_table_hash): New function.
16154         (cached_dw_loc_list_table_eq): Likewise.
16155         (add_location_or_const_value_attribute): Take a bool cache_p.
16156         Cache the list when the parameter is true.
16157         (gen_formal_parameter_die): Update caller.
16158         (gen_variable_die): Likewise.
16159         (dwarf2out_finish): Likewise.
16160         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
16161         while generating debug info for the decl.
16162         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
16163         (dwarf2out_init): Initialize cached_dw_loc_list_table.
16164         (resolve_addr): Cache the result of resolving a chain of
16165         location lists.
16167 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
16169         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
16170         conflict object hard regset nodes have intersecting hard reg sets.
16172         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
16173         after regstat_init_n_sets_and_refs.
16175         * ira.c: Add more comments at the top.
16176         (setup_stack_reg_pressure_class, setup_pressure_classes):
16177         Add comments how we compute the register pressure classes.
16178         (setup_allocno_and_important_classes): Add more comments.
16179         (setup_class_translate_array, reorder_important_classes)
16180         (setup_reg_class_relations): Add comments.
16182         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
16183         start of the file.
16185         * ira-color.c: Add 2011 to the Copyright line.
16186         (assign_hard_reg):  Add more comments.
16187         (improve_allocation): Ditto.
16189         * ira-costs.c: Add 2011 to the Copyright line.
16190         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
16191         comments.
16192         (setup_regno_cost_classes_by_mode): Ditto.
16194         Initial patches from ira-improv branch:
16196         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
16198         * ira-build.c (ira_create_object): Remove initialization of
16199         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
16200         (ira_create_allocno): Remove initialization of
16201         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
16202         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
16203         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
16204         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
16205         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
16206         Initialize ALLOCNO_ADD_DATA.
16207         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
16208         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
16209         ALLOCNO_REG.
16210         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
16211         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
16213         * ira.c (ira_reallocate): Remove.
16214         (setup_pressure_classes): Call
16215         ira_init_register_move_cost_if_necessary.  Use
16216         ira_register_move_cost instead of ira_get_register_move_cost.
16217         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
16218         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
16220         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
16221         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
16222         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
16223         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
16224         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
16225         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
16226         Fix formatting.
16227         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
16228         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
16229         (struct allocno_color_data): New.
16230         (allocno_color_data_t): New typedef.
16231         (allocno_color_data): New definition.
16232         (ALLOCNO_COLOR_DATA): New macro.
16233         (struct object_color_data): New.
16234         (object_color_data_t): New typedef.
16235         (object_color_data): New definition.
16236         (OBJECT_COLOR_DATA): New macro.
16237         (update_copy_costs, calculate_allocno_spill_cost): Call
16238         ira_init_register_move_cost_if_necessary.  Use
16239         ira_register_move_cost instead of ira_get_register_move_cost.
16240         (move_spill_restore, update_curr_costs): Ditto.
16241         (allocno_spill_priority): Make it inline.
16242         (color_pass): Allocate and free allocno_color_dat and object_color_data.
16243         (struct coalesce_data, coalesce_data_t): New.
16244         (allocno_coalesce_data): New definition.
16245         (ALLOCNO_COALESCE_DATA): New macro.
16246         (merge_allocnos, coalesced_allocno_conflict_p): Use
16247         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
16248         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
16249         (coalesce_allocnos): Ditto.
16250         (setup_coalesced_allocno_costs_and_nums): Ditto.
16251         (collect_spilled_coalesced_allocnos): Ditto.
16252         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
16253         (setup_slot_coalesced_allocno_live_ranges): Ditto.
16254         (coalesce_spill_slots): Ditto.
16255         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
16256         free allocno_coalesce_data.
16258         * ira-conflicts.c: Fix formatting.
16259         (process_regs_for_copy): Call
16260         ira_init_register_move_cost_if_necessary.  Use
16261         ira_register_move_cost instead of ira_get_register_move_cost.
16262         (build_object_conflicts): Optimize.
16264         * ira-costs.c (record_reg_classes): Optimize.  Call
16265         ira_init_register_move_cost_if_necessary.  Use
16266         ira_register_move_cost, ira_may_move_in_cost, and
16267         ira_may_move_out_cost instead of ira_get_register_move_cost and
16268         ira_get_may_move_cost.
16269         (record_address_regs): Ditto.
16270         (scan_one_insn): Optimize.
16271         (find_costs_and_classes): Optimize.
16272         (process_bb_node_for_hard_reg_moves): Call
16273         ira_init_register_move_cost_if_necessary.  Use
16274         ira_register_move_cost instead of ira_get_register_move_cost.
16276         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
16277         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
16278         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
16279         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
16280         definitions.
16281         (ira_initiate_emit_data, ira_finish_emit_data)
16282         (create_new_allocno): New functions.
16283         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
16284         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
16285         Use ira_register_move_cost instead of ira_get_register_move_cost.
16287         * ira-int.h: Fix some comments.
16288         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
16289         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
16290         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
16291         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
16292         add_data.
16293         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
16294         bitfield after mode.  Make hard_regno a short int.  Make
16295         hard_regno short.  Remove first_coalesced_allocno and
16296         next_coalesced_allocno.  Move mem_optimized_dest_p,
16297         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
16298         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
16299         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
16300         temp, colorable_p.  Add new member add_data.
16301         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
16302         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
16303         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
16304         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
16305         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
16306         (ALLOCNO_ADD_DATA): New macro.
16307         (ira_emit_data_t): New typedef.
16308         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
16309         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
16310         from struct ira_allocno.
16311         (ALLOCNO_EMIT_DATA): New macro.
16312         (ira_allocno_emit_data, allocno_emit_reg): New.
16313         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
16314         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
16315         (OBJECT_ADD_DATA): New macro.
16316         (ira_reallocate): Remove.
16317         (ira_initiate_emit_data, ira_finish_emit_data): New.
16318         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
16319         (ira_init_register_move_cost_if_necessary): New.
16320         (ira_object_conflict_iter_next): Merge into
16321         ira_object_conflict_iter_cond.
16322         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
16324         * ira-live.c (process_single_reg_class_operands): Call
16325         ira_init_register_move_cost_if_necessary.  Use
16326         ira_register_move_cost instead of ira_get_register_move_cost.
16328         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
16330         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
16332         * ira-costs.c: Fix formatting.
16333         (cost_classes, cost_classes_num): Remove.
16334         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
16335         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
16336         (cost_classes_del, cost_classes_htab): New.
16337         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
16338         (initiate_regno_cost_classes, setup_cost_classes): New.
16339         (setup_regno_cost_classes_by_aclass): New.
16340         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
16341         (record_reg_classes): Use regno_cost_classes instead of
16342         cost_classes.  Move checking opposite operand up.
16343         (record_address_regs): Use regno_cost_classes
16344         instead of cost_classes.
16345         (scan_one_insn): Ditto.  Use always general register.
16346         (print_allocno_costs): Use regno_cost_classes instead of
16347         cost_classes.
16348         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
16349         (find_costs_and_classes): Set up cost classes for each registers.
16350         Use also their mode for this.  Use regno_cost_classes instead of
16351         cost_classes.
16352         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
16353         cost_classes.
16354         (free_ira_costs, ira_init_costs): Don't use cost_classes.
16355         (ira_costs, ira_set_pseudo_classes): Call
16356         initiate_regno_cost_classes and finish_regno_cost_classes.
16358         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
16360         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
16362         * target.def (ira_cover_classes): Remove.
16364         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
16366         * doc/tm.texi.in: Ditto.
16368         * ira-conflicts.c: Remove mentioning cover classes from the file.
16369         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
16370         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
16372         * targhooks.c (default_ira_cover_classes): Remove.
16374         * targhooks.h (default_ira_cover_classes): Ditto.
16376         * haifa-sched.c: Remove mentioning cover classes from the file.
16377         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
16378         ira_pressure_classes and ira_pressure_classes_num instead of
16379         ira_reg_class_cover_size and ira_reg_class_cover.  Use
16380         sched_regno_pressure_class instead of sched_regno_cover_class.
16381         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
16382         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
16384         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
16385         classes from the file.
16386         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
16387         (struct object_hard_regs, struct object_hard_regs_node): New.
16388         (struct ira_object): New members profitable_hard_regs,
16389         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
16390         (struct ira_allocno): Rename cover_class to aclass.  Rename
16391         cover_class_cost and updated_cover_class_cost to class_cost and
16392         updated_class_cost.  Remove splay_removed_p and
16393         left_conflict_size.  Add new members colorable_p.
16394         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
16395         (ALLOCNO_COLORABLE_P): New macro.
16396         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
16397         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
16398         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
16399         (OBJECT_...): Rename parameter C to O.
16400         (OBJECT_PROFITABLE_HARD_REGS): New macro.
16401         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
16402         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
16403         (struct target_ira_int): New members x_ira_max_memory_move_cost,
16404         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
16405         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
16406         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
16407         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
16408         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
16409         x_ira_reg_class_subunion.
16410         (ira_max_memory_move_cost, ira_max_register_move_cost)
16411         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
16412         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
16413         (ira_important_class_nums, ira_reg_class_superunion): New macros.
16414         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
16415         (ira_reg_class_union): Rename to ira_reg_class_subunion.
16416         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
16417         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
16418         (ira_tune_allocno_costs_and_cover_classes): Rename to
16419         ira_tune_allocno_costs.
16420         (ira_debug_hard_regs_forest): New.
16421         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
16422         (ira_object_conflict_iter_next): Fix comments.
16423         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
16424         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
16425         cover_class to aclass.
16426         (ira_allocate_and_accumulate_costs): Ditto.
16427         (ira_allocate_and_set_or_copy_costs): Ditto.
16429         * opts.c (decode_options): Remove ira_cover_class check.
16431         * ira-color.c: Remove mentioning cover classes from the file.  Use
16432         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
16433         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
16434         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
16435         (splay-tree.h): Remove include.
16436         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
16437         before copy_freq_compare_func.
16438         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
16439         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
16440         New definitions.
16441         (hard_regs_roots, hard_regs_node_vec): Ditto.
16442         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
16443         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
16444         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
16445         (create_new_object_hard_regs_node): Ditto.
16446         (add_new_object_hard_regs_node_to_forest): Ditto.
16447         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
16448         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
16449         Ditto.
16450         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
16451         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
16452         (remove_unused_object_hard_regs_nodes): Ditto.
16453         (enumerate_object_hard_regs_nodes): Ditto.
16454         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
16455         (object_hard_regs_subnode_t): Ditto.
16456         (struct object_hard_regs_subnode): Ditto.
16457         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
16458         (setup_object_hard_regs_subnode_index): Ditto.
16459         (get_object_hard_regs_subnodes_num): Ditto.
16460         (form_object_hard_regs_nodes_forest): Ditto.
16461         (finish_object_hard_regs_nodes_tree): Ditto.
16462         (finish_object_hard_regs_nodes_forest): Ditto.
16463         (allocnos_have_intersected_live_ranges_p): Rename to
16464         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
16465         (pseudos_have_intersected_live_ranges_p): Rename to
16466         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
16467         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
16468         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
16469         (update_copy_costs): Remove assert.  Skip cost update if the hard
16470         reg does not belong the class.
16471         (assign_hard_reg): Process only profitable hard regs.
16472         (uncolorable_allocnos_num): Make it scalar.
16473         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
16474         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
16475         and ira_reg_class_max_nregs.
16476         (bucket_allocno_compare_func): Check frequency first.
16477         (sort_bucket): Add compare function as a parameter.
16478         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
16479         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
16480         (push_allocno_to_stack): Rewrite for checking new allocno
16481         colorability.
16482         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
16483         (push_only_colorable): Pass new parameter to sort_bucket.
16484         (push_allocno_to_spill): Remove.
16485         (allocno_spill_priority_compare): Make it inline and rewrite.
16486         (splay_tree_allocate, splay_tree_free): Remove.
16487         (allocno_spill_sort_compare): New function.
16488         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
16489         build and use splay tree.  Choose first allocno in uncolorable
16490         allocno bucket to spill.  Remove setting spill cost.
16491         (all_conflicting_hard_regs): Remove.
16492         (setup_allocno_available_regs_num): Check only profitable hard
16493         regs.  Print info about hard regs nodes.
16494         (setup_allocno_left_conflicts_size): Remove.
16495         (put_allocno_into_bucket): Don't call
16496         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
16497         (improve_allocation): New.
16498         (color_allocnos): Call setup_profitable_hard_regs,
16499         form_object_hard_regs_nodes_forest, improve_allocation,
16500         finish_object_hard_regs_nodes_forest.  Setup spill cost.
16501         (print_loop_title): Use pressure classes.
16502         (color_allocnso): Ditto.
16503         (do_coloring): Remove allocation and freeing splay_tree_node_pool
16504         and allocnos_for_spilling.
16505         (ira_sort_regnos_for_alter_reg): Don't setup members
16506         {first,next}_coalesced_allocno.
16507         (color): Remove allocating and freeing removed_splay_allocno_vec.
16508         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
16509         prohibited_class_mode_regs.
16511         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
16512         formatting.
16513         (update_allocno_pressure_excess_length): Use pressure classes.
16514         (inc_register_pressure, dec_register_pressure): Check for pressure
16515         class.
16516         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
16517         pressure class.  Use ira_reg_class_nregs instead of
16518         ira_reg_class_max_nregs.
16519         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
16520         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
16521         (single_reg_class): Use ira_reg_class_nregs instead of
16522         ira_reg_class_max_nregs.
16523         (process_bb_node_lives): Use pressure classes.
16525         * ira-emit.c: Remove mentioning cover classes from the file.  Use
16526         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
16527         (change_loop): Use pressure classes.
16528         (modify_move_list): Call ira_set_allocno_class instead of
16529         ira_set_allocno_cover_class.
16531         * ira-build.c: Remove mentioning cover classes from the file.  Use
16532         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
16533         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
16534         ALLOCNO_UPDATED_CLASS_COST instead of
16535         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
16536         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
16537         (ira_create_allocno): Remove initialization of
16538         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
16539         ALLOCNO_COLORABLE_P.
16540         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
16541         Update conflict regs for the objects.
16542         (create_cap_allocno): Remove assert.  Don't propagate
16543         ALLOCNO_AVAILABLE_REGS_NUM.
16544         (ira_free_allocno_costs): New function.
16545         (finish_allocno): Change a part of code into call of
16546         ira_free_allocno_costs.
16547         (low_pressure_loop_node_p): Use pressure classes.
16548         (object_range_compare_func): Don't compare classes.
16549         (setup_min_max_conflict_allocno_ids): Ditto.
16551         * loop-invariant.c: Remove mentioning cover classes from the file.
16552         Use ira_pressure_classes and ira_pressure_classes_num instead of
16553         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
16554         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
16555         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
16556         Use reg_allocno_class instead of reg_cover_class.
16557         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
16558         STACK_REG_COVER_CLASS.
16559         (get_regno_cover_class): Rename to get_regno_pressure_class.
16560         (move_loop_invariants): Initialize and finalize regstat.
16562         * ira.c: Remove mentioning cover classes from the file.  Add
16563         comments about coloring without cover classes.  Use ALLOCNO_CLASS
16564         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
16565         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
16566         setup_class_subset_and_memory_move_costs.
16567         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
16568         (setup_cover_and_important_classes): Rename to
16569         setup_allocno_and_important_classes.
16570         (setup_class_translate_array): New.
16571         (setup_class_translate): Call it for allocno and pressure classes.
16572         (cover_class_order): Rename to allocno_class_order.
16573         (comp_reg_classes_func): Use ira_allocno_class_translate instead
16574         of ira_class_translate.
16575         (reorder_important_classes): Set up ira_important_class_nums.
16576         (setup_reg_class_relations): Set up ira_reg_class_superunion.
16577         (print_class_cover): Rename to print_classes.  Add parameter.
16578         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
16579         Print pressure classes too.
16580         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
16581         setup_reg_subclasses.
16582         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
16583         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
16584         (setup_prohibited_class_mode_regs): Use
16585         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
16586         (clarify_prohibited_class_mode_regs): New function.
16587         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
16588         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
16589         (ira_init_once): Initialize them.
16590         (free_register_move_costs): Process them.
16591         (ira_init): Move calls of find_reg_classes and
16592         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
16593         Call clarify_prohibited_class_mode_regs.
16594         (ira_no_alloc_reg): Remove.
16595         (too_high_register_pressure_p): Use pressure classes.
16597         * sched-deps.c: Remove mentioning cover classes from the file.
16598         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
16599         ira_pressure_classes and ira_pressure_classes_num instead of
16600         ira_reg_class_cover_size and ira_reg_class_cover.
16601         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
16602         sched_regno_pressure_class instead of sched_regno_cover_class.
16603         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
16604         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
16606         * ira.h: Add 2010 to Copyright.
16607         (ira_no_alloc_reg): Remove external.
16608         (struct target_ira): Rename x_ira_hard_regno_cover_class,
16609         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
16610         x_ira_class_translate to x_ira_hard_regno_allocno_class,
16611         x_ira_allocno_classes_num, x_ira_allocno_classes, and
16612         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
16613         x_ira_pressure_classes, x_ira_pressure_class_translate, and
16614         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
16615         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
16616         x_ira_no_alloc_regs.
16617         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
16618         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
16619         ira_allocno_classes_num and ira_allocno_classes.
16620         (ira_class_translate): Rename to ira_allocno_class_translate.
16621         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
16622         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
16623         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
16624         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
16625         (ira_no_alloc_regs): New.
16627         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
16628         classes from the file.  Use ALLOCNO_CLASS instead of
16629         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
16630         ALLOCNO_COVER_CLASS_COST.
16631         (regno_cover_class): Rename to regno_aclass.
16632         (record_reg_classes): Use ira_reg_class_subunion instead of
16633         ira_reg_class_union.
16634         (record_address_regs): Check overflow.
16635         (scan_one_insn): Ditto.
16636         (print_allocno_costs): Print total mem cost fore regional allocation.
16637         (print_pseudo_costs): Use REG_N_REFS.
16638         (find_costs_and_classes): Use classes intersected with them on the
16639         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
16640         ira_reg_class_union.  Use ira_allocno_class_translate and
16641         regno_aclass instead of ira_class_translate and regno_cover_class.
16642         Modify code for finding regno_aclass.  Setup preferred classes for
16643         the next pass.
16644         (setup_allocno_cover_class_and_costs): Rename to
16645         setup_allocno_class_and_costs.  Use regno_aclass instead of
16646         regno_cover_class.  Use ira_set_allocno_class instead of
16647         ira_set_allocno_cover_class.
16648         (init_costs, finish_costs): Use regno_aclass instead of
16649         regno_cover_class.
16650         (ira_costs): Use setup_allocno_class_and_costs instead of
16651         setup_allocno_cover_class_and_costs.
16652         (ira_tune_allocno_costs_and_cover_classes): Rename to
16653         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
16654         by processing objects.  Use ira_reg_class_max_nregs instead of
16655         ira_reg_class_nregs.
16657         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
16659         * sched-int.h: Remove mentioning cover classes from the file.
16660         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
16662         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
16663         classes from the file.
16664         (struct reg_pref): Rename coverclass into allocnoclass.
16665         (reg_cover_class): Rename to reg_allocno_class.
16667         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
16669         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
16671         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
16673         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
16675         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
16677         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
16679         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
16681         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
16683         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
16685         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
16687         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
16688         (i386_ira_cover_classes): Ditto.
16690         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
16692         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
16694         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
16696         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
16698         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
16700         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
16702         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
16703         (mips_ira_cover_classes): Ditto.
16705         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
16707         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
16709         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
16711         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
16713         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
16715         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
16716         (IRA_COVER_CLASSES_VSX): Ditto.
16718         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
16719         (rs6000_ira_cover_classes): Ditto.
16721         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
16723         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
16725         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
16727         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
16729         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
16731         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
16733         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
16735         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
16737         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
16739         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
16741 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
16743         PR debug/48253
16744         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
16745         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
16746         dw_fde_unlikely_section_end_label, cold_in_std_section,
16747         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
16748         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
16749         fields.
16750         (output_fde): Use dw_fde_second_{begin,end} if second is
16751         true, otherwise dw_fde_{begin,end}.
16752         (output_call_frame_info): Test dw_fde_second_begin != NULL
16753         instead of dw_fde_switched_sections.
16754         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
16755         fields, initialize new fields.  Initialize in_std_section
16756         unconditionally from the first partition.
16757         (dwarf2out_end_epilogue): Don't override dw_fde_end when
16758         dw_fde_second_begin is non-NULL.
16759         (dwarf2out_switch_text_section): Stop initializing removed
16760         dw_fde_struct fields, initialize new fields, initialize
16761         also dw_fde_end here.  Set dw_fde_switch_cfi even when
16762         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
16763         (struct var_loc_list_def): Add last_before_switch field.
16764         (arange_table, arange_table_allocated, arange_table_in_use,
16765         ARANGE_TABLE_INCREMENT, add_arange): Removed.
16766         (size_of_aranges): Count !in_std_section and !second_in_std_section
16767         hunks in fdes, instead of looking at arange_table_in_use.
16768         (output_aranges): Add aranges_length argument, don't call
16769         size_of_aranges here.  Instead of using aranges_table*
16770         emit ranges for fdes when !in_std_section resp.
16771         !second_in_std_section.
16772         (dw_loc_list): Break ranges crossing section switch.
16773         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
16774         use dw_fde_second_end instead of dw_fde_end as end of last range.
16775         (gen_subprogram_die): Don't call add_arange.  Use
16776         dw_fde_{begin,end} for first partition and if switched
16777         section dw_fde_second_{begin,end} for the second.
16778         (var_location_switch_text_section_1,
16779         var_location_switch_text_section): New functions.
16780         (dwarf2out_begin_function): Initialize cold_text_section even
16781         when function_section () isn't text_section.
16782         (prune_unused_types): Don't walk arange_table.
16783         (dwarf2out_finish): Don't needlessly test
16784         flag_reorder_blocks_and_partition when testing cold_text_section_used.
16785         If info_section_emitted, call size_of_aranges and if it indicates
16786         non-empty .debug_aranges, call output_aranges with the computed
16787         size.  Stop using removed dw_fde_struct fields, use
16788         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
16789         for second.
16791         PR debug/48203
16792         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
16793         create ENTRY_VALUE if incoming or address of incoming's MEM
16794         is a hard REG.
16795         * dwarf2out.c (mem_loc_descriptor): Don't emit
16796         DW_OP_GNU_entry_value of DW_OP_fbreg.
16797         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
16798         on ENTRY_VALUE is able to find the canonical parameter VALUE.
16799         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
16800         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
16801         ENTRY_VALUE_EXPs.
16802         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
16803         is a REG_P or MEM_P with REG_P address, compute hash directly
16804         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
16805         (preserve_only_constants): Don't clear VALUES forwaring
16806         ENTRY_VALUE to some other VALUE.
16808 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
16810         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
16811         instead of GEN_INT.
16813 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
16815         * cfgexpand.c (expand_gimple_cond): Always set the source location and
16816         block before expanding the statement.
16817         (expand_gimple_stmt_1): Likewise.  Set them here...
16818         (expand_gimple_stmt): ...and not here.  Tidy.
16819         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
16820         unknown.
16822 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
16824         * Makefile.in: New rule for cprop.o.
16825         * gcse.c: Move constant/copy propagation to cprop.c.
16826         (compute_local_properties): Only handle expression tables.
16827         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
16828         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
16829         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
16830         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
16831         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
16832         compute_cprop_data, find_used_regs, try_replace_reg,
16833         find_avail_set, cprop_jump, constprop_register, cprop_insn,
16834         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
16835         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
16836         find_bypass_set, reg_killed_on_edge, bypass_block,
16837         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
16838         execute_rtl_cprop, pass_rtl_cprop): Move to...
16839         * cprop.c: ...here.  New file, constant/copy propagation for RTL
16840         moved from gcse.c to here with minor cleanups in duplicated code.
16842 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
16844         * config/i386/i386.c (flag_opts): Fix a typo in
16845         -mavx256-split-unaligned-store.
16847 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
16849         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
16850         LIBCALL_VALUE): Remove macros.
16851         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16852         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16853         (h8300_function_value, h8300_libcall_value,
16854         h8300_function_value_regno_p): New functions.
16856 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
16858         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
16860 2011-03-28  Jeff Law  <law@redhat.com>
16862         * tree-ssa-threadupdate.c (redirect_edges): Call
16863         create_edge_and_update_destination_phis as needed.
16864         (create_edge_and_update_destination_phis): Accept new BB argument.
16865         All callers updated.
16866         (thread_block): Do not update the profile when threading around
16867         intermediate blocks.
16868         (thread_single_edge): Likewise.
16869         (determine_bb_domination_status): If BB is not a successor of the
16870         loop header, return NONDOMINATING.
16871         (register_jump_thread): Note when we register a jump thread around
16872         an intermediate block.
16873         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
16874         (thread_across_edge): Use it.
16876 2011-03-28  Tristan Gingold  <gingold@adacore.com>
16878         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
16879         when for_return is 2.
16881 2011-03-28  Jeff Law  <law@redhat.com>
16883         * var-tracking.c (canonicalize_values_mark): Delete unused
16884         lhs assignment.
16885         (canonicalize_values_star, set_variable_part): Likewise.
16886         (clobber_variable_part, delete_variable_part): Likewise.
16888 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
16890         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
16892 2011-03-28  Martin Jambor  <mjambor@suse.cz>
16894         * tree-inline.c (expand_call_inline): Do not check that destination
16895         node is analyzed.
16896         (optimize_inline_calls): Assert that destination node is analyzed.
16897         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
16898         not call tree_lowering_passes.
16899         * cgraph.h (cgraph_analyze_function): Declare.
16900         * cgraphunit.c (cgraph_analyze_function): Make public.
16902 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
16904         * config/sparc/sparc-opts.h: New.
16905         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
16906         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
16907         (sparc_option_override): Store processor_type enumeration rather
16908         than string in cpu_default.  Remove name and enumeration from
16909         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
16910         without using sparc_select.  Use target_flags_explicit instead of
16911         fpu_option_set.
16912         * config/sparc/sparc.h (enum processor_type): Move to
16913         sparc-opts.h.
16914         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
16915         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
16916         HeaderInclude entry.
16917         (mcpu=, mtune=): Use Var and Enum.
16918         (sparc_processor_type): New Enum and EnumValue entries.
16920 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16921             Iain Sandoe  <iains@gcc.gnu.org>
16923         PR target/48245
16924         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
16926 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
16928         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
16929         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
16930         Insert new statements at it in lieu of STMT.
16931         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
16932         * tree-vect-stmts.c (vectorizable_store): Likewise.
16933         (vectorizable_load): Likewise.
16935 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
16937         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
16938         (divtf3): Ditto.
16939         (multf3): Ditto.
16940         (subtf3): Ditto.
16942 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16944         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
16945         unaligned 256bit load/store.
16946         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
16947         (*avx_movdqu<avxmodesuffix>): Likewise.
16949 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16951         PR target/48288
16952         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
16953         * config/pa/pa.md (iordi3): Use new predicate in expander.
16954         (iorsi3): Likewise.
16956 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
16958         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
16959         FUNCTION_VALUE_REGNO_P): Remove macros.
16960         * config/mips/mips-protos.h (mips_function_value): Remove.
16961         * config/mips/mips.c (mips_function_value): Rename to...
16962         (mips_function_value_1): ... this. Make static.  Handle receiving
16963         the function type in 'fn_decl_or_type' argument.
16964         (mips_function_value, mips_libcall_value,
16965         mips_function_value_regno_p): New function.
16966         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16967         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16969 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16971         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
16972         and -mavx256-split-unaligned-store.
16973         (ix86_option_override_internal): Split 32-byte AVX unaligned
16974         load/store by default.
16975         (ix86_avx256_split_vector_move_misalign): New.
16976         (ix86_expand_vector_move_misalign): Use it.
16978         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
16979         -mavx256-split-unaligned-store.
16981         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
16982         256bit load/store.  Generate unaligned store on misaligned memory
16983         operand.
16984         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
16985         256bit load/store.
16986         (*avx_movdqu<avxmodesuffix>): Likewise.
16988         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
16989         -mavx256-split-unaligned-store.
16991 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
16993         PR target/38598
16994         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
16995         Update commentary.
16997 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
16999         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
17000         opno arguments with an expand_operand.  Use create_input_operand.
17001         (mips_prepare_builtin_target): Delete.
17002         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
17003         functions.
17004         (mips_expand_builtin_direct): Use create_output_operand and
17005         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
17006         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
17007         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
17009 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
17011         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
17012         function.
17013         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
17015 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
17017         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
17018         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
17019         basic blocks and call commit_edge_insertions directly.
17020         (fixup_abnormal_edges): Move from here to...
17021         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
17022         on the edges and return whether some have actually been inserted.
17023         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
17024         compensation code.
17026 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
17028         PR rtl-optimization/48144
17029         * sel-sched-ir.c (merge_history_vect): Factor out from ...
17030         (merge_expr_data): ... here.
17031         (av_set_intersect): Rename to av_set_code_motion_filter.
17032         Update all callers.  Call merge_history_vect when an expression
17033         is found in both sets.
17034         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
17036 2011-03-26  Alan Modra  <amodra@gmail.com>
17038         * config/rs6000/predicates.md (word_offset_memref_op): Handle
17039         cmodel medium addresses.
17040         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
17041         64-bit gpr loads and stores.
17042         (rs6000_secondary_reload_ppc64): New function.
17043         * config/rs6000/rs6000-protos.h: Declare it.
17044         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
17046 2011-03-26  Alan Modra  <amodra@gmail.com>
17048         PR target/47487
17049         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
17050         GNU Go in traceback table.
17052 2011-03-25  Richard Henderson  <rth@redhat.com>
17054         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
17055         if there are exactly 6 operands.
17056         (set_storage_via_setmem): Similarly.
17058 2011-03-25  Kai Tietz  <ktietz@redhat.com>
17060         * collect2.c (write_c_file_stat): Handle backslash
17061         as right-hand directory separator.
17062         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
17063         checking just for slash.
17064         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
17065         instead of checking for trailing slash.
17066         * gcc.c (record_temp_file): Use filename_cmp instead
17067         of strcmp.
17068         (do_spec_1): Likewise.
17069         (replace_outfile_spec_function): Likewise.
17070         (is_directory): Use filename_ncmp instead of strncmp.
17071         (print_multilib_info): Likewise.
17072         * gcov.c (find_source): Use filename_cmp instead
17073         instead of strcmp.
17074         (make_gcov_file_name): Fix order of slash/backslash
17075         checks.
17076         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
17077         (add_standard_paths): Likewise.
17078         * mips-tfile.c (saber_stop): Handle backslash.
17079         * prefix.c (update_path): Use filename_ncmp instead of
17080         strncmp.
17081         * profile.c (output_location): Use filename_cmp instead
17082         of strcmp.
17083         * read-md.c (handle_toplevel_file): Handle backslash.
17084         * tlink.c (frob_extension):  Likewise.
17085         * tree-cfg.c (same_line_p): Use filename_cmp instead of
17086         strcmp.
17087         * tree-dump.c (dequeue_and_dump): Handle backslash.
17088         * tree.c (get_file_function_name): Likewise.
17089         * gengtype.c (read_input_list): Likewise.
17090         (get_file_realbasename): Likewise.
17091         (get_output_file_with_visibility): Use filename_cmp
17092         instead of strcmp.
17094 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
17096         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
17097         case to VFPv1.
17099 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
17101         * fold-const.c (expr_location_or): New function.
17102         (fold_truth_not_expr): Call it.
17104 2011-03-25  Jeff Law  <law@redhat.com>
17106         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
17107         va_end.
17108         * c-family/c-common.c (def_fn_type): Likewise.
17109         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
17110         * emit-rtl.c (gen_rtvec): Likewise.
17111         * lto/lto-lang.c (def_fn_type): Likewise.
17113 2011-03-25  Richard Guenther  <rguenther@suse.de>
17115         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
17116         also generate copies.
17117         (fini_copy_prop): Handle constant values properly.
17119 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
17121         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
17122         mode size instead of bitsize with DWARF2_ADDR_SIZE.
17123         (hash_loc_operands, compare_loc_operands): Handle
17124         DW_OP_GNU_entry_value.
17126 2011-03-25  Kai Tietz  <ktietz@redhat.com>
17128         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
17129         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
17130         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
17131         comment and use macro TARGET_64BIT_MS_ABI instead.
17132         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
17133         and change default behavior for 32-bit MS_ABI.
17134         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
17135         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
17136         32-bit, too.
17137         (ix86_cfun_abi): Likewise.
17138         (ix86_maybe_switch_abi): Adjust comment.
17139         (init_cumulative_args): Check for bit-ness in MS_ABI case.
17140         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
17141         instead of checking for SYSV_ABI.
17142         (ix86_nsaved_sseregs): Likewise.
17143         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
17144         to 16 bytes.
17145         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
17146         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
17147         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
17148         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
17149         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
17151 2011-03-25  Richard Guenther  <rguenther@suse.de>
17153         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
17154         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
17155         (verify_gimple): Remove.
17156         * tree-cfg.c (verify_gimple_call): Merge verification
17157         from verify_stmts.
17158         (verify_gimple_phi): Merge verification from verify_stmts.
17159         (verify_gimple_label): New function.
17160         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
17161         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
17162         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
17163         (verify_stmts): Rename to verify_gimple_in_cfg.
17164         (verify_gimple_in_cfg): New function.
17165         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
17166         * tree-ssa.c (verify_ssa): Likewise.
17167         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
17169 2011-03-25  Richard Guenther  <rguenther@suse.de>
17171         * passes.c (init_optimization_passes): Add FRE pass after
17172         early SRA.
17174 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
17175             Andrew Stubbs  <ams@codesourcery.com>
17177         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
17178         for Cortex-A8.
17179         (arm_movdi_vfp_cortexa8): New pattern.
17180         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
17181         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
17182         instructions when tuning for Cortex-A8.  Set attribute "arch".
17183         * config/arm/arm.md: Move include arm-tune.md up a bit.
17184         (define_attr "arch"): Add "onlya8" and "nota8" values.
17185         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
17187 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
17189         PR bootstrap/48282
17190         Revert:
17191         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
17193         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
17194         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
17195         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
17196         * passes.c (init_optimization_passes): Move
17197         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
17199 2011-03-25  Kai Tietz  <ktietz@redhat.com>
17201         * c-typeck.c (comptypes_internal): Replace target
17202         hook call of comp_type_attributes by version in tree.c file.
17203         * gimple.c (gimple_types_compatible_p_1): Likewise.
17204         * tree-ssa.c (useless_type_conversion_p): Likewise.
17205         * tree.c (build_type_attribute_qual_variant): Likewise.
17206         (attribute_value_equal): New static helper function.
17207         (comp_type_attributes): New function.
17208         (merge_attributes): Use attribute_value_equal for comparison.
17209         (attribute_list_contained): Likewise.
17210         * tree.h (comp_type_attributes): New prototype.
17212 2011-03-25  Richard Guenther  <rguenther@suse.de>
17214         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
17215         of complex types at -O0.
17216         (verify_gimple_assign_binary): Likewise.
17217         (verify_gimple_assign_ternary): Likewise.
17219 2011-03-24  Mark Wielaard  <mjw@redhat.com>
17221         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
17222         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
17224 2011-03-24  Mark Wielaard  <mjw@redhat.com>
17226         PR debug/48041
17227         * dwarf2out.c (output_abbrev_section): Only write table when
17228         abbrev_die_table_in_use > 1.
17230 2011-02-24  Richard Henderson  <rth@redhat.com>
17232         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
17233         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
17234         (alpha_expand_unaligned_load_words): Use extql.
17235         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
17236         (emit_insxl): Handle all modes for consistency.
17238 2011-02-24  Richard Henderson  <rth@redhat.com>
17240         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
17241         (alpha_expand_unaligned_load): Likewise.
17242         (alpha_expand_unaligned_store): Likewise.
17243         (alpha_expand_unaligned_load_words): Likewise.
17244         (alpha_expand_unaligned_store_words): Likewise.
17245         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
17246         (alpha_split_lock_test_and_set_12): Likewise.
17247         (print_operand, alpha_fold_builtin_extxx): Likewise.
17248         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
17249         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
17250         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
17251         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
17252         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
17253         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
17254         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
17255         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
17256         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
17257         (extwl, extll, extql): Similarly.
17258         (inswh, inslh, insqh): Similarly.
17259         (mskbl, mskwl, mskll, mskql): Similarly.
17260         (mskwh, msklh, mskqh): Similarly.
17262 2011-02-24  Richard Henderson  <rth@redhat.com>
17264         * config/alpha/alpha.md (attribute isa): Add er, ner.
17265         (attribute enabled): Handle them.
17266         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
17268 2011-02-24  Richard Henderson  <rth@redhat.com>
17270         * config/alpha/alpha.md (attribute isa): Add vms.
17271         (attribute enabled): Handle it.
17272         (*movsf): Merge *movsf_{nofix,fix,nofp}.
17273         (*movdf): Merge *movdf_{nofix,fix,nofp}.
17274         (*movtf): Rename from *movtf_internal for consistency.
17275         (*movsi): Merge with *movsi_nt_vms.
17276         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
17277         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
17278         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
17279         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
17281 2011-02-24  Richard Henderson  <rth@redhat.com>
17283         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
17284         (extendqisi2, extendhisi2): Likewise.
17285         (extendqidi2): Simplify BWX/non-BWX expansions.
17286         (extendhidi2): Similarly.
17288 2011-02-24  Richard Henderson  <rth@redhat.com>
17290         * config/alpha/alpha.md (attribute isa): New.
17291         (attribute enabled): New.
17292         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
17293         (zero_extendqisi2, zero_extendqidi2): Similarly.
17294         (zero_extendhisi2, zero_extendhidi2): Similarly.
17295         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
17297 2011-02-24  Richard Henderson  <rth@redhat.com>
17299         * config/alpha/predicates.md (input_operand): Revert last change;
17300         update comment to mention 32-bit VMS rather than Windows.
17302 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
17304         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
17305         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
17306         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
17307         * passes.c (init_optimization_passes): Move
17308         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
17310 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
17312         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
17314 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
17316         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
17317         correctly.
17319 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
17321         PR debug/48204
17322         * simplify-rtx.c (simplify_const_unary_operation): Call
17323         real_convert when changing mode class with FLOAT_EXTEND.
17325 2011-03-24  Nick Clifton  <nickc@redhat.com>
17327         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
17328         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17329         * config/rx/rx.c (rx_option_override): Set align_jumps,
17330         align_loops and align_labels if not set by the user.
17331         (rx_align_for_label): New function.
17332         (rx_max_skip_for_label): New function.
17333         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
17334         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
17335         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
17336         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
17337         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
17339 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
17341         PR rtl-optimization/48263
17342         * optabs.c (expand_binop_directly): Reinstate convert_modes code
17343         and original commutative_p handling.  Use maybe_gen_insn.
17345 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17347         * reload.c (find_reloads_subreg_address): Add address_reloaded
17348         parameter and return true there if the full address has been
17349         reloaded.
17350         (find_reloads_toplev): Pass address_reloaded flag.
17351         (find_reloads_address_1): Don't use address_reloaded parameter.
17353 2011-03-24  Jeff Law  <law@redhat.com>
17355         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
17356         unused variable "ann".
17357         (remove_unused_locals): Likewise.
17359         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
17360         statement.
17362         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
17363         after it is freed.
17365 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17367         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
17368         for invalid symbolic addresses.
17369         (s390_secondary_reload): Don't use s390_check_symref_alignment for
17370         larl operands.
17372 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
17374         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
17375         the argument in calls to fold_truth_not_expr.
17377 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
17379         * tree.c (record_node_allocation_statistics): New function.
17380         (make_node_stat, copy_node_stat, build_string): Call it.
17381         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
17382         (build1_stat, build_omp_clause): Likewise.
17384 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
17386         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
17387         last commit.
17389 2011-03-24  Richard Guenther  <rguenther@suse.de>
17391         PR tree-optimization/48271
17392         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
17393         blocks that still exist.
17395 2011-03-24  Richard Guenther  <rguenther@suse.de>
17397         PR tree-optimization/48270
17398         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
17399         not free datarefs before ddrs.
17401 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
17403         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
17404         from the address built for a reference with variable offset.
17406 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
17408         PR target/48237
17409         * config/i386/i386.md (*movdf_internal_rex64): Do not split
17410         alternatives that can be handled with movq or movabsq insn.
17411         (*movdf_internal): Disable for !TARGET_64BIT.
17412         (*movdf_internal_nointeger): Ditto.
17413         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
17415 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
17417         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
17418         (FUNCTION_ARG_ADVANCE): Likewise.
17419         * tm.texi.in: Change references to them to hook references.
17420         * tm.texi: Regenerate.
17421         * targhooks.c (default_function_arg): Eliminate check for target macro.
17422         (default_function_incoming_arg): Likewise.
17423         (default_function_arg_advance): Likewise.
17424         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
17425         (function_arg_advance): Likewise.
17426         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
17428 2011-03-24  Richard Guenther  <rguenther@suse.de>
17430         PR middle-end/48269
17431         * tree-object-size.c (addr_object_size): Do not double-account
17432         for MEM_REF offsets.
17434 2011-03-24  Diego Novillo  <dnovillo@google.com>
17436         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
17437         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
17438         (lto_input_data_block): Move from lto-opts.c.  Make extern.
17439         Update all users.
17440         (lto_input_string): Rename from input_string.  Make extern.
17441         Update all users.
17442         * lto-streamer-out.c (lto_output_string_with_length): Rename from
17443         output_string_with_length.
17444         Output 0 to indicate a non-NULL string.  Update all callers to
17445         not emit 0.
17446         (lto_output_string): Rename from output_string.  Make extern.
17447         Update all users.
17448         (lto_output_decl_state_streams): Make extern.
17449         (lto_output_decl_state_refs): Make extern.
17450         * lto-streamer.h (lto_input_string): Declare.
17451         (lto_input_data_block): Declare.
17452         (lto_output_string): Declare.
17453         (lto_output_string_with_length): Declare.
17454         (lto_output_decl_state_streams): Declare.
17455         (lto_output_decl_state_refs): Declare.
17457 2011-03-24  Richard Guenther  <rguenther@suse.de>
17459         PR tree-optimization/46562
17460         * tree.c (build_invariant_address): New function.
17461         * tree.h (build_invariant_address): Declare.
17462         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
17463         a renamed function moved ...
17464         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
17465         Take valueization callback parameter.
17466         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
17467         * gimple-fold.h: New file.
17468         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
17469         (ccp_fold, fold_const_aggregate_ref,
17470         fold_ctor_reference, fold_nonarray_ctor_reference,
17471         fold_array_ctor_reference, fold_string_cst_ctor_reference,
17472         get_base_constructor): Move ...
17473         * gimple-fold.c: ... here.
17474         (gimple_fold_stmt_to_constant_1): New function
17475         split out from ccp_fold.  Take a valueization callback parameter.
17476         Valueize all operands.
17477         (gimple_fold_stmt_to_constant): New wrapper function.
17478         (fold_const_aggregate_ref_1): New function split out from
17479         fold_const_aggregate_ref.  Take a valueization callback parameter.
17480         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
17481         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
17482         invariant POINTER_PLUS_EXPRs to invariant form.
17483         (vn_valueize): New function.
17484         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
17485         * tree-vrp.c (vrp_valueize): New function.
17486         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
17487         to fold statements to constants.
17488         * tree-ssa-pre.c (eliminate): Properly guard propagation of
17489         function declarations.
17490         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
17491         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
17493 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
17495         * config/h8300/predicates.md (jump_address_operand): Fix register
17496         mode check.
17498 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
17500         * doc/invoke.texi (max-stores-to-sink): Document.
17501         * params.h (MAX_STORES_TO_SINK): Define.
17502         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
17503         if either vectorization or if-conversion is disabled.
17504         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
17505         tree-vect-data-refs.c vect_equal_offsets.
17506         (dr_equal_offsets_p): New function.
17507         (find_data_references_in_bb): Remove static.
17508         * tree-data-ref.h (find_data_references_in_bb): Declare.
17509         (dr_equal_offsets_p): Likewise.
17510         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
17511         (vect_drs_dependent_in_basic_block): Update calls to
17512         vect_equal_offsets.
17513         (vect_check_interleaving): Likewise.
17514         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
17515         (cond_if_else_store_replacement): Rename to...
17516         (cond_if_else_store_replacement_1): ... this.  Change arguments and
17517         documentation.
17518         (cond_if_else_store_replacement): New function.
17519         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
17520         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
17522 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
17524         PR target/46934
17525         * config/arm/arm.md (casesi): Use the gen_int_mode() function
17526         to subtract lower bound instead of GEN_INT().
17528 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
17530         PR other/48179
17531         PR other/48221
17532         PR other/48234
17533         * doc/extend.texi (Alignment): Move section to match order in TOC.
17534         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
17535         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
17537 2011-03-23  Jeff Law  <law@redhat.com>
17539         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
17540         before removing the edge.
17542         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
17543         it may have been freed by redirect_branch_edge or
17544         redirect_edge_succ_nodup.
17546 2011-03-23  Richard Guenther  <rguenther@suse.de>
17548         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
17549         (check_va_list_escapes): Likewise.
17550         (check_all_va_list_escapes): Likewise.
17552 2011-03-23  Richard Guenther  <rguenther@suse.de>
17554         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
17555         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
17556         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
17557         (alias.o): Likewise.
17558         (ipa-type-escape.o): Remove.
17559         (ipa-struct-reorg.o): Likewise.
17560         (GTFILES): Remove ipa-struct-reorg.c.
17561         * alias.c: Do not include ipa-type-escape.h.
17562         * tree-ssa-alias.c: Likewise.
17563         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
17564         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
17565         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
17566         and ipa-type-escape passes.
17567         * tree-pass.h (pass_ipa_type_escape): Remove.
17568         (pass_ipa_struct_reorg): Likewise.
17569         * ipa-struct-reorg.h: Remove.
17570         * ipa-struct-reorg.c: Likewise.
17571         * ipa-type-escape.h: Likewise.
17572         * ipa-type-escape.c: Likewise.
17573         * doc/invoke.texi (-fipa-struct-reorg): Remove.
17574         (--param struct-reorg-cold-struct-ratio): Likewise.
17575         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
17576         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
17577         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
17579 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17581         * config/s390/2084.md: Enable all insn reservations also for z9_ec
17582         cpu attribute value.
17583         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
17584         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
17585         * config/s390/s390.c (processor_flags_table): New constant array.
17586         (s390_handle_arch_option): Remove.
17587         (s390_handle_option): Remove s390_handle_arch_option invocations
17588         and OPT_mwarn_framesize_ handling.
17589         (s390_option_override): Remove s390_handle_arch_option invocation.
17590         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
17591         warnings.
17592         * config/s390/s390.md (cpu attribute): Add z9_ec value.
17593         * config/s390/s390.opt (s390_tune, s390_arch)
17594         (march=): Replace s390_arch_option enum and values with
17595         processor_type.  Set variable name to s390_arch.  Set
17596         initialization value.
17597         (mtune=): Replace s390_arch_option with processor_type.  Set
17598         variable name to s390_tune.  Set initialization value.
17600 2011-03-23  Julian Brown  <julian@codesourcery.com>
17602         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
17603         accesses which are not naturally aligned.
17605 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
17607         PR target/47553
17608         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
17610 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
17612         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
17613         parameter from "int" to "enum insn_code".
17614         (expand_operand_type): New enum.
17615         (expand_operand): New structure.
17616         (create_expand_operand): New function.
17617         (create_fixed_operand, create_output_operand): Likewise
17618         (create_input_operand, create_convert_operand_to): Likewise.
17619         (create_convert_operand_from, create_address_operand): Likewise.
17620         (create_integer_operand): Likewise.
17621         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
17622         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
17623         (expand_insn, expand_jump_insn): Likewise.
17624         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
17625         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
17626         (expand_movstr, expand_builtin___clear_cache): Likewise.
17627         (expand_builtin_lock_release): Likewise.
17628         * explow.c (allocate_dynamic_stack_space): Likewise.
17629         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
17630         and use the default handling in that case.
17631         * expmed.c (check_predicate_volatile_ok): Delete.
17632         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
17633         (emit_cstore): Likewise.
17634         * expr.c (emit_block_move_via_movmem): Likewise.
17635         (set_storage_via_setmem, expand_assignment): Likewise.
17636         (emit_storent_insn, try_casesi): Likewise.
17637         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
17638         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
17639         (expand_vec_shift_expr, expand_binop_directly): Likewise.
17640         (expand_twoval_unop, expand_twoval_binop): Likewise.
17641         (expand_unop_direct, emit_indirect_jump): Likewise.
17642         (emit_conditional_move, vector_compare_rtx): Likewise.
17643         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
17644         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
17645         (expand_sync_lock_test_and_set): Likewise.
17646         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
17647         (emit_unop_insn): Likewise.
17648         (expand_copysign_absneg): Change icode to an insn_code.
17649         (create_convert_operand_from_type): New function.
17650         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
17651         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
17652         (expand_insn, expand_jump_insn): Likewise.
17653         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
17654         than const_int_operand for operand 2.
17656 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17658         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
17659         if possible.
17661 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
17663         * emit-rtl.c (emit_pattern_before_noloc): New function.
17664         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
17665         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
17666         (emit_pattern_after_noloc): New function.
17667         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
17668         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
17670 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
17672         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
17673         (__ffsDI2): Likewise.
17675 2011-03-22  Richard Henderson  <rth@redhat.com>
17677         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
17678         of !TARGET_ABI_OPEN_VMS.
17679         (alpha_trampoline_init, alpha_start_function): Likewise.
17680         (alpha_expand_epilogue, alpha_file_start): Likewise.
17681         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
17682         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
17683         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
17684         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
17685         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
17687 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17689         * config/s390/s390-opts.h: New.
17690         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
17691         s390_arch_flags, s390_warn_framesize, s390_stack_size,
17692         s390_stack_guard): Remove.
17693         (s390_handle_arch_option): Return void.  Take enum
17694         s390_arch_option value instead of string and searching array.
17695         (s390_handle_option): Don't assert that global structures are in
17696         use.  Access variables via opts pointer.  Use error_at.  Don't use
17697         sscanf for -mstack-guard= or -mstack-size=.  Update call to
17698         s390_handle_arch_option.
17699         (s390_option_override): Update call to s390_handle_arch_option.
17700         (s390_emit_prologue): Use %d format for s390_stack_size in
17701         diagnostic.  Use %wd for HOST_WIDE_INT.
17702         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
17703         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
17704         * config/s390/s390.opt (config/s390/s390-opts.h): New
17705         HeaderInclude entry.
17706         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
17707         s390_arch_flags, s390_warn_framesize): New Variable entries.
17708         (s390_arch_option): New Enum and EnumValue entries.
17709         (march=): Use Enum instead of Var.
17710         (mstack-guard=, mstack-size=): Use UInteger and Var.
17711         (mtune=): Use Enum.
17713 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17715         * config/score/score.c (score_handle_option): Don't assert that
17716         global structures are in use.  Access target_flags via opts
17717         pointer.  Use value of -march= option to determine target_flags
17718         settings.
17719         * config/score/score.opt (march=): Use Enum.
17720         (score_arch): New Enum and EnumValue entries.
17722 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17724         * config/mep/mep.c (option_mtiny_specified): Remove.
17725         (mep_option_override): Move register handling for -mivc2 from
17726         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
17727         instead of option_mtiny_specified.
17728         (mep_handle_option): Access target_flags via opts pointer.  Don't
17729         assert that global structures are in use.  Defer part of -mivc2
17730         handling and move it to mep_option_override.
17731         * config/mep/mep.opt (IVC2): New Mask entry.
17732         (mivc2): Use Var and Defer instead of Mask.
17734 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17736         * config/v850/v850-opts.h: New.
17737         * config/v850/v850.c (small_memory): Replace with
17738         small_memory_physical_max array.  Make that array static const.
17739         (v850_handle_memory_option): Take integer value of argument.  Take
17740         gcc_options pointer, option text and location.  Return void.
17741         Update for changes to small memory structures.
17742         (v850_handle_option): Access target_flags via opts pointer.  Don't
17743         assert that global structures are in use.  Update calls to
17744         v850_handle_memory_option.
17745         (v850_encode_data_area): Update references to small memory settings.
17746         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
17747         (enum small_memory_type): Move to v850-opts.h.
17748         * config/v850/v850.opt (config/v850/v850-opts.h): New
17749         HeaderInclude entry.
17750         (small_memory_max): New Variable entry.
17751         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
17752         (mtda, mzda): Likewise.
17754 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17756         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
17757         pointer.  Don't assert that global structures are in use.
17759 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17761         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
17762         via opts pointer.  Don't assert that global structures are in use.
17764 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17766         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
17767         (munix=93): Use Var.
17768         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
17769         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
17770         * config/pa/pa-opts.h: New.
17771         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
17772         (pa_handle_option): Don't assert that global structures are in
17773         use.  Access target_flags via opts pointer.  Don't handle
17774         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
17775         OPT_munix_98 here.
17776         (pa_option_override): Handle deferred OPT_mfixed_range_.
17778 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17780         * config/mn10300/mn10300-opts.h: New.
17781         * config/mn10300/mn10300.c (mn10300_processor,
17782         mn10300_tune_string): Remove.
17783         (mn10300_handle_option): Don't assert that global structures are
17784         in use.  Access mn10300_processor via opts pointer.  Don't handle
17785         OPT_mtune_ here.
17786         * config/mn10300/mn10300.h (enum processor_type): Move to
17787         mn10300-opts.h.
17788         (mn10300_processor): Remove.
17789         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
17790         HeaderInclude entry.
17791         (mn10300_processor): New Variable entry.
17792         (mtune=): Use Var.
17794 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17796         * config/microblaze/microblaze.c: Don't include opts.h.
17797         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
17798         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
17799         (mno-clearbss): Use Var and Warn.
17801 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17803         * config/m32r/m32r-opts.h: New.
17804         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
17805         (m32r_handle_option): Don't assert that global structures are in
17806         use.  Access target_flags and m32r_cache_flush_func via opts
17807         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
17808         OPT_mno_flush_trap here.
17809         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
17810         include of m32r-opts.h.
17811         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
17812         HeaderInclude entry.
17813         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
17814         (mmodel=): Use Enum and Var.
17815         (m32r_model): New Enum and EnumValue entries.
17816         (mno-flush-trap): Use Var.
17817         (msdata=): Use Enum and Var.
17818         (m32r_sdata): New Enum and EnumValue entries.
17820 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17822         * config/m32c/m32c.c: Don't include opts.h.
17823         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
17824         m32c_handle_option): Remove.
17825         (m32c_option_override): Check global_options_set.x_target_memregs
17826         instead of target_memregs_set.
17827         * config/m32c/m32c.h (target_memregs): Remove.
17828         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
17829         variable.
17831 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17833         * config/iq2000/iq2000-opts.h: New.
17834         * config/iq2000/iq2000.c: Don't include opts.h.
17835         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
17836         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
17837         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
17838         HeaderInclude entry.
17839         (iq2000_tune): New Variable entry.
17840         (march=): Add comment.  Use Enum.
17841         (iq2000_arch): New Enum and EnumValue entries.
17842         (mcpu=): Use Enum and Var.
17843         (iq2000_tune): New Enum and EnumValue entries.
17845 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17847         * config/ia64/ia64-opts.h: New.
17848         * config/ia64/ia64.c (ia64_tune): Remove.
17849         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
17850         here.  Use error_at.
17851         (ia64_option_override): Handle deferred OPT_mfixed_range_.
17852         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
17853         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
17854         HeaderInclude entry.
17855         (ia64_tune): New Variable entry.
17856         (mfixed-range=): Use Defer and Var.
17857         (mtune=): Use Enum and Var.
17858         (ia64_tune): New Enum and EnumValue entries.
17860 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17862         * config/frv/frv-opts.h: New.
17863         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
17864         frv-opts.h.
17865         (frv_cpu_type): Remove.
17866         * config/frv/frv.c: Don't include opts.h.
17867         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
17868         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
17869         (frv_cpu_type): New Variable entry.
17870         (frv_cpu): New Enum and EnumValue entries.
17872 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17874         * config/cris/cris.c (cris_handle_option): Access target_flags via
17875         opts pointer.  Don't assert that global structures are in use.
17876         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
17877         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
17879 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17881         * config/bfin/bfin-opts.h: New.
17882         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
17883         bfin_si_revision, bfin_workarounds): Remove.
17884         (bfin_cpus): Make static const.
17885         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
17886         not bfin_lib_id_given.
17887         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
17888         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
17889         pointer. Use error_at.  Don't assert that global structures are in use.
17890         * config/bfin/bfin.h: Include bfin-opts.h.
17891         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
17892         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
17893         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
17894         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
17895         entries.
17897 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17899         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
17900         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
17901         or -msoft-float here.
17902         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
17903         -msoft-float and -mhard-float.
17904         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
17905         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17906         msoft-float.
17907         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
17908         -msoft-float.
17909         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
17910         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
17911         not mhard-float.
17912         (LIBGCC_SPEC): Don't handle -msoft-float.
17913         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
17914         -mhard-float.
17915         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17916         msoft-float.
17917         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
17918         -mfloat-abi=*, not -msoft-float and -mhard-float.
17919         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
17920         -msoft-float.
17921         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
17922         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
17923         mhard-float and msoft-float.
17924         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
17925         mfloat-abi=soft in comments, not mhard-float and msoft-float.
17926         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
17927         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
17928         mhard-float.
17929         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
17930         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
17931         msoft-float.
17932         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
17933         not mhard-float.
17934         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
17935         not msoft-float.
17937 2011-03-22  Richard Henderson  <rth@redhat.com>
17939         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
17940         TARGET_ABI_WINDOWS_NT.
17941         (alpha_output_function_end_prologue): Likewise.
17942         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
17943         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
17944         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
17945         (trap, *movsi_nt_vms): Likewise.
17946         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
17947         (*tablejump_osf_nt_internal): Remove.
17948         * config/alpha/predicates.md (input_operand): Only test Pmode.
17950 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17952         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
17953         via opts pointer.  Use error_at.  Don't assert that global
17954         structures are in use.
17956 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17958         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
17959         (ix86_handle_option): Access ix86_isa_flags and
17960         ix86_isa_flags_explicit via opts pointer.  Don't assert that
17961         global structures are in use.
17962         (ix86_function_specific_save, ix86_function_specific_restore):
17963         Update ix86_isa_flags_explicit field name.
17964         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
17965         (ix86_isa_flags_explicit): Rename TargetSave entry to
17966         x_ix86_isa_flags_explicit.
17968 2011-03-22  Richard Henderson  <rth@redhat.com>
17970         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
17971         (alpha_option_override, direct_return): Likewise.
17972         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
17973         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
17974         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
17975         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
17976         (alpha_expand_epilogue, alpha_end_function): Likewise.
17977         (alpha_init_libfuncs): Likewise.
17978         (struct machine_function): Remove unicosmk members.
17979         (print_operand) ['t']: Remove.
17980         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
17981         unicosmk_output_module_name, unicosmk_output_common,
17982         current_section_align, unicosmk_output_text_section_asm_op,
17983         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
17984         unicosmk_section_type_flags, unicosmk_unique_section,
17985         unicosmk_asm_named_section, unicosmk_insert_attributes,
17986         unicosmk_output_align, unicosmk_defer_case_vector,
17987         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
17988         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
17989         unicosmk_output_ssib, unicosmk_add_call_info_word,
17990         unicosmk_extern_head, unicosmk_output_default_externs,
17991         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
17992         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
17993         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
17994         * config/alpha/alpha-protos.h: Update.
17995         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
17996         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
17997         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
17998         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
17999         (*mulsi_se, mulvsi3): Likewise.
18000         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
18001         (*divmodsi_internal, call, call_value, realign): Likewise.
18002         (moddi3, umoddi3): Likewise; remove duplicate expander.
18003         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
18004         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
18005         (*movdi_nofix): Remove r/U alternative.
18006         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
18007         * config/alpha/constraints.md ("U"): Remove.
18008         * config/alpha/predicates.md (call_operand"): Don't test
18009         TARGET_ABI_UNICOSMK.
18011 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18013         * target.def (handle_option): Take gcc_options and
18014         cl_decoded_option pointers and location_t.
18015         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
18016         * doc/tm.texi: Regenerate.
18017         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
18018         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
18019         * lto-opts.c (lto_reissue_options): Generate option structure for
18020         targetm.handle_option call.
18021         * opts.c (target_handle_option): Update call to
18022         targetm.handle_option.  Remove assertions about values now passed
18023         down to hook.
18024         * targhooks.c (default_target_handle_option): New.
18025         * targhooks.h (default_target_handle_option): Declare.
18026         * config/alpha/alpha.c: Include opts.h.
18027         (alpha_handle_option): Update to new hook interface.
18028         * config/arm/arm.c: Include opts.h.
18029         (arm_handle_option): Update to new hook interface.
18030         * config/arm/t-arm (arm.o): Update dependencies.
18031         * config/bfin/bfin.c: Include opts.h.
18032         (bfin_handle_option): Update to new hook interface.
18033         * config/cris/cris.c: Include opts.h.
18034         (cris_handle_option): Update to new hook interface.
18035         * config/frv/frv.c: Include opts.h.
18036         (frv_handle_option): Update to new hook interface.
18037         * config/i386/i386.c: Include opts.h.
18038         (ix86_handle_option): Update to new hook interface.
18039         (ix86_valid_target_attribute_inner_p): Generate option structure
18040         for call to ix86_handle_option.
18041         * config/i386/t-i386 (i386.o): Update dependencies.
18042         * config/ia64/ia64.c: Include opts.h.
18043         (ia64_handle_option): Update to new hook interface.
18044         * config/ia64/t-ia64 (ia64.o): Update dependencies.
18045         * config/iq2000/iq2000.c: Include opts.h.
18046         (iq2000_handle_option): Update to new hook interface.
18047         * config/m32c/m32c.c: Include opts.h.
18048         (m32c_handle_option): Update to new hook interface.
18049         * config/m32r/m32r.c: Include opts.h.
18050         (m32r_handle_option): Update to new hook interface.
18051         * config/m68k/m68k.c: Include opts.h.
18052         (m68k_handle_option): Update to new hook interface.
18053         * config/mep/mep.c: Include opts.h.
18054         (mep_handle_option): Update to new hook interface.
18055         * config/microblaze/microblaze.c: Include opts.h.
18056         (microblaze_handle_option): Update to new hook interface.
18057         * config/mips/mips.c: Include opts.h.
18058         (mips_handle_option): Update to new hook interface.
18059         * config/mn10300/mn10300.c: Include opts.h.
18060         (mn10300_handle_option): Update to new hook interface.
18061         * config/pa/pa.c: Include opts.h.
18062         (pa_handle_option): Update to new hook interface.
18063         * config/pdp11/pdp11.c: Include opts.h.
18064         (pdp11_handle_option): Update to new hook interface.
18065         * config/rs6000/rs6000.c: Include opts.h.
18066         (rs6000_handle_option): Update to new hook interface.
18067         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
18068         * config/rx/rx.c: Include opts.h.
18069         (rx_handle_option): Update to new hook interface.
18070         * config/s390/s390.c: Include opts.h.
18071         (s390_handle_option): Update to new hook interface.
18072         * config/score/score.c: Include opts.h.
18073         (score_handle_option): Update to new hook interface.
18074         * config/sh/sh.c: Include opts.h.
18075         (sh_handle_option): Update to new hook interface.
18076         * config/sparc/sparc.c: Include opts.h.
18077         (sparc_handle_option): Update to new hook interface.
18078         * config/v850/v850.c: Include opts.h.
18079         (v850_handle_option): Update to new hook interface.
18081 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18083         * gcc.c (driver_unknown_option_callback): Only permit and save
18084         unknown -Wno- options.
18085         (driver_wrong_lang_callback): Save options directly instead of via
18086         driver_unknown_option_callback.
18088 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
18090         * combine.c (simplify_set): Try harder to find the best CC mode when
18091         simplifying a nested COMPARE on the RHS.
18093 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18095         * config/alpha/gnu.h: Remove.
18096         * config/arc: Remove directory.
18097         * config/arm/netbsd.h: Remove.
18098         * config/arm/t-pe: Remove.
18099         * config/crx: Remove directory.
18100         * config/i386/netbsd.h: Remove.
18101         * config/m68hc11: Remove directory.
18102         * config/m68k/uclinux-oldabi.h: Remove.
18103         * config/mcore/mcore-pe.h: Remove.
18104         * config/mcore/t-mcore-pe: Remove.
18105         * config/netbsd-aout.h: Remove.
18106         * config/rs6000/gnu.h: Remove.
18107         * config/sh/sh-symbian.h: Remove.
18108         * config/sh/symbian-base.c: Remove.
18109         * config/sh/symbian-c.c: Remove.
18110         * config/sh/symbian-cxx.c: Remove.
18111         * config/sh/symbian-post.h: Remove.
18112         * config/sh/symbian-pre.h: Remove.
18113         * config/sh/t-symbian: Remove.
18114         * config/svr3.h: Remove.
18115         * config/vax/netbsd.h: Remove.
18116         * config.build: Don't handle i[34567]86-*-pe.
18117         * config.gcc: Remove handling of deprecations for most deprecated
18118         targets.
18119         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
18120         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
18121         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
18122         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
18123         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
18124         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
18125         Remove cases.
18126         * config.host: Don't handle i[34567]86-*-pe.
18127         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
18128         (ASM_SPEC32): Don't handle -mcall-gnu.
18129         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
18130         -mcall-gnu.
18131         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
18132         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
18133         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18134         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
18135         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
18136         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
18137         conditional on SYMBIAN.
18138         * configure.ac: Don't handle powerpc*-*-gnu*.
18139         * configure: Regenerate.
18140         * doc/extend.texi (interrupt attribute): Don't mention CRX.
18141         * doc/install-old.texi (m6811, m6812): Don't mention.
18142         * doc/install.texi (arc-*-elf*): Don't document multilib option.
18143         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
18144         (m68k-uclinuxoldabi): Don't mention.
18145         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
18146         Remove.
18147         (-mcall-gnu): Remove.
18148         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
18149         families): Remove constraint documentation.
18151 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
18153         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
18154         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
18155         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
18157 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
18159         PR target/48226
18160         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
18161         vector when peeking at the next token for vector, don't expand the
18162         keywords.
18164 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
18166         * config/avr/avr-protos.h (expand_epilogue): Change prototype
18167         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
18168         * config/avr/avr.c (init_cumulative_args)
18169         (avr_function_arg_advance): Use it.
18170         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
18171         sibcall epilogues.
18172         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
18173         (avr_function_ok_for_sibcall): ...this new function.
18174         (avr_lookup_function_attribute1): New static Function.
18175         (avr_naked_function_p, interrupt_function_p)
18176         (signal_function_p, avr_OS_task_function_p)
18177         (avr_OS_main_function_p): Use it.
18178         * config/avr/avr.md ("sibcall", "sibcall_value")
18179         ("sibcall_epilogue"): New expander.
18180         ("*call_insn", "*call_value_insn"): New insn.
18181         ("call_insn", "call_value_insn"): Remove
18182         ("call", "call_value", "epilogue"): Change expander to handle
18183         sibling calls.
18185 2011-03-21  Nick Clifton  <nickc@redhat.com>
18187         * doc/invoke.texi (Overall Options): Move closing brace to end of
18188         options list.
18189         (Optimization Options): Add missing @gol.
18190         (Directory Options): Likewise.
18191         (i386 and x86-64 Options): Likewise.
18192         (RS6000 and PowerPC Options): Likewise.
18193         (i386 and x86-64 Windows Options): Likewise.
18194         (V850 Options): Add text missing from descriptions.
18196 2011-03-22  Richard Henderson  <rth@redhat.com>
18198         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
18199         (avr_incoming_return_addr_rtx): New.
18200         (emit_push_byte): New.
18201         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
18202         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
18203         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
18204         (emit_pop_byte): New.
18205         (expand_epilogue): Use it.  Pop frame pointer by bytes.
18206         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
18207         (INCOMING_RETURN_ADDR_RTX): New.
18208         (INCOMING_FRAME_SP_OFFSET): New.
18209         (ARG_POINTER_CFA_OFFSET): New.
18210         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
18211         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
18212         (pophi): Remove.
18214         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
18216 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
18218         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
18219         (FUNCTION_ARG_ADVANCE): Likewise.
18220         * tm.texi.in: Change references to them to hook references.
18221         * tm.texi: Regenerate.
18222         * targhooks.c (default_function_arg): Eliminate check for target
18223         macro.
18224         (default_function_incoming_arg): Likewise.
18225         (default_function_arg_advance): Likewise.
18226         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
18227         (function_arg_advance): Likewise.
18228         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
18230 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
18232         * tree.c (build_call_1): New function.
18233         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
18235 2011-03-22  Richard Guenther  <rguenther@suse.de>
18237         PR tree-optimization/48228
18238         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
18239         for single-arg PHIs.
18241 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
18243         PR rtl-optimization/48143
18244         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
18245         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
18246         sse2_cvtps2pd): Likewise.
18248 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18250         * recog.c (canonicalize_change_group): Use validate_unshare_change.
18252 2011-03-22  Richard Guenther  <rguenther@suse.de>
18254         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
18255         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
18256         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
18257         and REALIGN_LOAD_EXPR.
18258         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
18259         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
18260         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
18261         DOT_PROD_EXPR case ...
18262         (expand_expr_real_2): ... here.
18263         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
18264         and REALIGN_LOAD_EXPR.
18265         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
18266         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
18267         (vect_create_epilog_for_reduction): Likewise.
18268         (vectorizable_reduction): Likewise.
18269         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
18270         * tree-vect-stmts.c (vectorizable_load): Likewise.
18272 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
18274         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
18276 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18278         * config/s390/s390.c (s390_delegitimize_address): Fix offset
18279         handling for PLTOFF/GOTOFF.
18281 2011-03-22  Nick Clifton  <nickc@redhat.com>
18283         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
18284         trailing backslash from the end of the macro definition.
18286 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18288         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
18289         and PLT unspecs.
18291 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
18293         * expr.h (prepare_operand): Move to...
18294         * optabs.h (prepare_operand): ...here and change the insn code
18295         parameter from "int" to "enum insn_code".
18296         (insn_operand_matches): Declare.
18297         * expr.c (init_expr_target): Use insn_operand_matches.
18298         (compress_float_constant): Likewise.
18299         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
18300         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
18301         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
18302         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
18303         Likewise.
18304         (gen_cond_trap): Likewise.
18305         (prepare_operand): Likewise.  Change icode to an insn_code.
18306         (insn_operand_matches): New function.
18307         * reload.c (find_reloads_address_1): Use insn_operand_matches.
18308         * reload1.c (gen_reload): Likewise.
18309         * targhooks.c (default_secondary_reload): Likewise.
18311 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
18313         * config/alpha/alpha.md (unspec): New define_c_enum.
18314         (unspecv): Ditto.
18316 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
18318         PR debug/48214
18319         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
18320         between a call and its CALL_ARG_LOCATION note.
18322 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
18324         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
18326 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
18328         PR c/42544
18329         PR c/48197
18330         * c-common.c (shorten_compare): If primopN is first sign-extended
18331         to opN and then zero-extended to result type, set primopN to opN.
18333 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
18335         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
18336         for barrier handlers.
18338 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
18340         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
18341         UNSPEC constants to be in the unspec enumeration, and redefine
18342         all UNSPECV constants to be in the unspecv enumeration, so that
18343         dumps print which unspec/unspec_volatile this is.
18344         * config/rs6000/vector.md (UNSPEC_*): Ditto.
18345         * config/rs6000/paired.md (UNSPEC_*): Ditto.
18346         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
18347         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
18348         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
18350         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
18351         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
18352         UNSPECV_LWSYNC, since these are used as unspec_volatile.
18353         * config/rs6000/sync.md (isync, lwsync): Ditto.
18355 2011-03-21  Richard Guenther  <rguenther@suse.de>
18357         * params.def (lto-min-partition): Fix typo.
18359 2011-03-21  Richard Guenther  <rguenther@suse.de>
18361         PR c/47939
18362         * c-decl.c (grokdeclarator): Drop to the main variant only
18363         for array types.  Drop flag_gen_aux_info check.
18365 2011-03-21  Richard Guenther  <rguenther@suse.de>
18367         PR translation/47911
18368         * params.def (lto-partitions): Fix typo.
18369         (lto-min-partition): Fix wording.
18371 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
18373         * config/rs6000/t-freebsd: Remove duplication from file.
18375 2011-03-21  Richard Guenther  <rguenther@suse.de>
18377         PR middle-end/47661
18378         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
18380 2011-03-21  Richard Guenther  <rguenther@suse.de>
18382         PR lto/48210
18383         * params.def (lto-partitions): Require at least 1 partition.
18385 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18387         * gthr-solaris.h: Remove.
18388         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
18389         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
18390         (LIB_SPEC): Likewise.
18391         * config/sol2.opt (threads): Remove.
18392         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
18393         (sparc*-*-solaris2*): Likewise.
18394         * configure.ac (enable_threads): Enable solaris support.
18395         * configure: Regenerate.
18396         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
18397         * doc/install.texi (Configuration, --enable-threads=lib): Remove
18398         solaris.
18400 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18402         * config.gcc: Obsolete *-*-solaris2.8*.
18403         * doc/install.texi (Specific, *-*-solaris2*): Document it.
18405 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18407         PR bootstrap/48135
18408         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
18409         reference.  Solaris 8 perl works.
18411 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18413         PR bootstrap/48135
18414         * doc/install.texi (Prerequisites): Move jar etc. up.
18415         Explain support library version requirements.
18417 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18419         PR bootstrap/48135
18420         * doc/install.texi (Prerequisites): Move Perl to build
18421         requirements.  Always necessary on Solaris 2 with Sun ld.
18423 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18425         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
18426         binutils 2.21.
18427         (Specific, i?86-*-solaris2.[89]): Likewise.
18428         (Specific, i?86-*-solaris2.10): Likewise.
18429         (Specific, mips-sgi-irix6): Likewise.
18430         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
18431         Update for binutils 2.21.
18433 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18435         * configure.ac (gcc_cv_lto_plugin): Fix typo.
18436         Allow -fuse-linker-plugin for non-default plugin linker.
18437         * configure: Regenerate.
18439 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
18441         PR bootstrap/48167
18442         * gengtype.c (files_rules): Added rule for cp/parser.h.
18444 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
18446         PR target/48213
18447         * config/s390/s390.c (s390_delegitimize_address): Don't call
18448         lowpart_subreg if orig_x has BLKmode.
18450 2011-03-21  Kai Tietz  <ktietz@redhat.com>
18452         PR target/12171
18453         * doc/plugins.texi: Adjust documentation for plugin register_callback.
18454         * tree.h (attribute_spec): Add new member affects_type_identity.
18455         * attribs.c (empty_attribute_table): Adjust attribute_spec
18456         initializers.
18457         * config/alpha/alpha.c: Likewise.
18458         * config/arc/arc.c: Likewise.
18459         * config/arm/arm.c: Likewise.
18460         * config/avr/avr.c: Likewise.
18461         * config/bfin/bfin.c: Likewise.
18462         * config/crx/crx.c: Likewise.
18463         * config/darwin.h: Likewise.
18464         * config/h8300/h8300.c: Likewise.
18465         * config/i386/cygming.h: Likewise.
18466         * config/i386/i386.c: Likewise.
18467         * config/ia64/ia64.c: Likewise.
18468         * config/m32c/m32c.c: Likewise.
18469         * config/m32r/m32r.c: Likewise.
18470         * config/m68hc11/m68hc11.c: Likewise.
18471         * config/m68k/m68k.c: Likewise.
18472         * config/mcore/mcore.c: Likewise.
18473         * config/mep/mep.c: Likewise.
18474         * config/microblaze/microblaze.c: Likewise.
18475         * config/mips/mips.c: Likewise.
18476         * config/rs6000/rs6000.c: Likewise.
18477         * config/rx/rx.c: Likewise.
18478         * config/sh/sh.c: Likewise.
18479         * config/sol2.h: Likewise.
18480         * config/sparc/sparc.c: Likewise.
18481         * config/spu/spu.c: Likewise.
18482         * config/stormy16/stormy16.c: Likewise.
18483         * config/v850/v850.c: Likewise.
18485 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
18487         * simplify-rtx.c (simplify_binary_operation_1): Handle
18488         (xor (and A B) C) case when B and C are both constants.
18490 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
18492         * tree-dfa.c (add_referenced_var): Fix typo in comment.
18494 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
18496         PR bootstrap/48168
18497         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
18499 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
18501         PR rtl-optimization/48156
18502         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
18503         assume df and df_lr are not NULL.
18505 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18507         PR debug/48023
18508         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
18509         between a call and its CALL_ARG_LOCATION note.
18511 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
18513         PR debug/48178
18514         * config/sh/sh.c (find_barrier): Don't emit a constant pool
18515         between a call and its corresponding CALL_ARG_LOCATION note.
18517 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
18519         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
18520         instead of loop. Use HARD_REGISTER_NUM_P predicate.
18521         * haifa-sched.c (setup_ref_regs): Ditto.
18522         * caller-save.c (add_used_regs_1): Ditto.
18523         * dse.c (look_for_hardregs): Ditto.
18524         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
18525         * sched-rgn.c (check_live_1): Ditto.
18527 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
18529         * c-decl.c (diagnose_mismatched_decls): Give an error for
18530         redefining a typedef with variably modified type.
18532 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
18534         * c-decl.c (grokfield): Don't allow typedefs for structures or
18535         unions with no tag by default.
18536         * doc/extend.texi (Unnamed Fields): Update.
18538 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
18540         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
18541         Rewrite using indirect functions.
18542         (lwp_slwpcb): Ditto.
18543         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
18544         (avx_vinsertf128<mode>): Ditto.
18546 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18548         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
18549         unspecs.
18551 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18553         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
18554         splitting between a call and its corresponding CALL_ARG_LOCATION note.
18556 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
18558         PR rtl-optimization/48170
18559         * gcse.c (hoist_code): Remove bogus asserts.
18561 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
18563         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
18564         computation for prologue/epilogue.
18566 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18568         * Makefile.in (check-consistency): Remove.
18570 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
18572         PR debug/48176
18573         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
18574         arange_table_in_use is 0, but either text_section_used or
18575         cold_text_section_used is true.  Don't call it if
18576         !info_section_emitted.
18578 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
18580         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
18581         FUNCTION_VALUE_REGNO_P): Remove.
18582         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
18583         Remove.
18584         * config/avr/avr.c (avr_ret_register): Make static inline.
18585         (avr_function_value_regno_p): New function.
18586         (avr_libcall_value): Make static. Add 'func' argument.
18587         (avr_function_value): Make static. Rename 'func' argument to
18588         'fn_decl_or_type', forward it to avr_libcall_value. Call
18589         avr_ret_register function instead of RET_REGISTER macro.
18590         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18592 2011-03-18  Jason Merrill  <jason@redhat.com>
18594         PR c++/23372
18595         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
18597 2011-03-18  Richard Guenther  <rguenther@suse.de>
18599         * doc/install.texi (--enable-gold): Remove.
18600         (--with-plugin-ld): Document.
18601         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
18603 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
18605         PR middle-end/47790
18606         * expr.c (optimize_bitfield_assignment_op): Revamp to work
18607         again after expansion changes.
18609 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
18611         * combine.c (try_combine): Do simplification only call of
18612         subst() on i2 even when i1 is present. Update comments.
18614 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18616         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
18617         and UNSPEC_PCREL_SYMOFF.
18619 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18621         * config/s390/s390.md: Use define_c_enum for the unspec constant
18622         definitions.
18624 2011-03-18  Richard Henderson  <rth@redhat.com>
18625             Jakub Jelinek  <jakub@redhat.com>
18627         PR bootstrap/48161
18628         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
18629         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
18631 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
18633         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18634         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
18635         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
18636         Change return type to bool.
18637         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18639 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
18641         PR debug/48163
18642         * var-tracking.c (prepare_call_arguments): If CALL target
18643         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
18644         pc instead of looking it up using cselib_lookup and use
18645         Pmode for it if x has VOIDmode.
18646         * dwarf2out.c (gen_subprogram_die): If also both first and
18647         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
18649         PR debug/48163
18650         * function.c (assign_parms): For data.passed_pointer parms
18651         use MEM of data.entry_parm instead of data.entry_parm itself
18652         as DECL_INCOMING_RTL.
18653         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
18654         also when passed and declared mode is the same, DECL_RTL
18655         is a MEM with pseudo as address and DECL_INCOMING_RTL is
18656         a MEM too.
18658 2011-03-16  Jeff Law  <law@redhat.com>
18660         PR rtl-optimization/37273
18661         * ira-costs.c (scan_one_insn): Detect constants living in memory and
18662         handle them like argument loads from stack slots.  Do not double
18663         count memory for memory constants and argument loads from stack slots.
18665 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18667         PR debug/48160
18668         * var-tracking.c (prepare_call_arguments): Check SUBREG.
18670 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18672         PR target/48171
18673         * config/i386/i386.opt: Add Save to -mavx and -mfma.
18675 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
18677         PR bootstrap/48153
18678         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
18679         if dwarf_strict.
18680         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
18681         Clear call_arg_locations and call_arg_loc_last always.
18683         PR middle-end/48152
18684         * var-tracking.c (prepare_call_arguments): If argument needs to be
18685         passed by reference, adjust argtype and mode.
18687 2011-03-17  Richard Guenther  <rguenther@suse.de>
18689         PR middle-end/48134
18690         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
18691         a value make sure to fold the statement.
18693 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
18695         PR target/43872
18696         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
18697         return condition with !cfun->calls_alloca.
18699 2011-03-17  Richard Guenther  <rguenther@suse.de>
18701         PR bootstrap/48148
18702         * lto-cgraph.c (input_overwrite_node): Clear the abstract
18703         origin for decls in other ltrans units.
18704         (input_varpool_node): Likewise.
18706 2011-03-17  Richard Guenther  <rguenther@suse.de>
18708         PR middle-end/48165
18709         * tree-object-size.c (compute_object_offset): Properly return
18710         the offset operand of MEM_REFs as sizetype.
18712 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
18714         PR rtl-optimization/48141
18715         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
18716         * dse.c: Include params.h.
18717         (active_local_stores_len): New variable.
18718         (add_wild_read, dse_step1): Clear it when setting active_local_stores
18719         to NULL.
18720         (record_store, check_mem_read_rtx): Decrease it when removing
18721         from the chain.
18722         (scan_insn): Likewise.  Increase it when adding to chain, if it
18723         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
18724         set active_local_stores to NULL before the addition.
18725         * Makefile.in (dse.o): Depend on $(PARAMS_H).
18727         PR rtl-optimization/48141
18728         * dse.c (record_store): If no positions are needed in an insn
18729         that cannot be deleted, at least unchain it from active_local_stores.
18731 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
18733         PR debug/47510
18734         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
18735         (lookup_type_die_strip_naming_typedef): ... here.
18736         (get_context_die): Use it.
18737         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
18738         the anonymous struct named by the naming typedef.
18740 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18742         PR target/48154
18743         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
18744         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
18746 2011-03-16  Jeff Law  <law@redhat.com>
18748         * tree-vrp.c (identify_jump_threads): Slightly simplify type
18749         check for operands of conditional.  Allow type to be a pointer.
18751 2011-03-16  Richard Guenther  <rguenther@suse.de>
18753         PR tree-optimization/48149
18754         * fold-const.c (fold_binary_loc): Fold
18755         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
18757 2011-03-16  Richard Guenther  <rguenther@suse.de>
18759         PR tree-optimization/26134
18760         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
18761         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
18762         (non_rewritable_mem_ref_base): Handle complex type component
18763         accesses, constrain offsets for vector and complex extracts
18764         more properly.
18766 2011-03-16  Richard Guenther  <rguenther@suse.de>
18768         PR tree-optimization/48146
18769         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
18770         operands avoiding the need for renaming.
18772 2011-03-16  Richard Guenther  <rguenther@suse.de>
18774         * gimple-fold.c (maybe_fold_reference): Open-code relevant
18775         constant folding.  Move MEM_REF canonicalization first.
18776         Rely on fold_const_aggregate_ref for initializer folding.
18777         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
18779 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
18781         PR middle-end/48136
18782         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
18783         arg0/arg1 or their arguments are always fold converted to matching
18784         types.
18786         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
18787         to nargs.
18789 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18791         PR lto/46944
18792         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
18793         Handle in-tree gold.
18794         (ld_vers): Extract binutils version for gold.
18795         (gcc_cv_ld_hidden): Handle gold here.
18796         (gcc_cv_lto_plugin): Determine level of linker plugin support.
18797         * configure: Regenerate.
18798         * config.in: Regenerate.
18799         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
18800         -fuse-linker-plugin otherwise.
18801         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
18802         (LINK_COMMAND_SPEC): Use it.
18803         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
18805 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
18807         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
18808         * calls.c: Remove debug.h include.
18809         (emit_call_1): Don't call virtual_call_token debug hook.
18810         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
18811         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
18812         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
18813         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
18814         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
18815         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
18816         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
18817         dwarf2out_virtual_call): Remove.
18818         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
18819         copy_call_info and virtual_call hooks.
18820         (dwarf2out_init): Don't initialize vcall_insn_table,
18821         debug_dcall_section and debug_vcall_section.
18822         (prune_unused_types): Don't mark nodes from dcall_table.
18823         (dwarf2out_finish): Don't output dcall or vcall tables.
18824         * final.c (final_scan_insn): Don't call direct_call or
18825         virtual_call debug hooks.
18826         * debug.h (struct gcc_debug_hooks): Remove direct_call,
18827         virtual_call_token, copy_call_info and virtual_call hooks.
18828         (debug_nothing_uid): Remove prototype.
18829         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
18830         copy_call_info and virtual_call hooks.
18831         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18832         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
18833         * debug.c (do_nothing_debug_hooks): Likewise.
18834         (debug_nothing_uid): Remove.
18835         * doc/invoke.texi (-fenable-icf-debug): Remove.
18836         * common.opt (-fenable-icf-debug): Likewise.
18838         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
18839         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
18840         call's MEM.  Handle functions returning aggregate through a hidden
18841         first pointer.  For virtual calls add clobbered pc to call arguments
18842         chain.
18843         * dwarf2out.c (gen_subprogram_die): Emit
18844         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
18845         can't be emitted.
18847         PR debug/45882
18848         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
18849         * rtl.h (ENTRY_VALUE_EXP): Define.
18850         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
18851         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
18852         * print-rtl.c (print_rtx): Likewise.
18853         * gengtype.c (adjust_field_rtx_def): Likewise.
18854         * var-tracking.c (vt_add_function_parameter): Adjust
18855         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
18856         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
18857         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
18858         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
18859         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
18861         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
18862         Call var_location debug hook even on CALL_INSNs.
18863         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
18864         * rtl.def (ENTRY_VALUE): New.
18865         * dwarf2out.c: Include cfglayout.h.
18866         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
18867         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
18868         (struct call_arg_loc_node): New type.
18869         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
18870         tail_call_site_count): New variables.
18871         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
18872         DW_TAG_GNU_call_site_parameter.
18873         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
18874         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
18875         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
18876         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
18877         and DW_AT_GNU_all_source_call_sites.
18878         (mem_loc_descriptor): Handle ENTRY_VALUE.
18879         (add_src_coords_attributes): Don't add enything if
18880         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
18881         (dwarf2out_abstract_function): Save and clear call_arg_location,
18882         call_site_count and tail_call_site_count around dwarf2out_decl call.
18883         (gen_call_site_die): New function.
18884         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
18885         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
18886         (dwarf2out_function_decl): Clear call_arg_locations,
18887         call_arg_loc_last, set call_site_count and tail_call_site_count
18888         to -1 and free block_map.
18889         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
18890         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
18891         followed by any real instructions.
18892         (dwarf2out_begin_function): Set call_site_count and
18893         tail_call_site_count to 0.
18894         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
18895         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
18896         attempt to force a DIE for it and worst case remove the attribute.
18897         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
18898         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
18899         the decl itself.
18900         * var-tracking.c: Include tm_p.h.
18901         (vt_stack_adjustments): For calls call note_register_arguments.
18902         (argument_reg_set): New variable.
18903         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
18904         ensure the VALUE is resolved.
18905         (call_arguments): New variable.
18906         (prepare_call_arguments): New function.
18907         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
18908         (struct expand_loc_callback_data): Add ignore_cur_loc field.
18909         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
18910         always use the best expression.
18911         (vt_expand_loc): Add ignore_cur_loc argument.
18912         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
18913         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
18914         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
18915         note for all calls.
18916         (vt_add_function_parameter): Use cselib_lookup_from_insn.
18917         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
18918         argument.  Don't call cselib_preserve_only_values and
18919         cselib_reset_table.
18920         (note_register_arguments): New function.
18921         (vt_initialize): Compute argument_reg_set.  Call
18922         vt_add_function_parameters before processing basic blocks instead of
18923         afterwards.  For calls call prepare_call_arguments before calling
18924         cselib_process_insn.
18925         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
18926         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
18927         (var-tracking.o): Depend on $(TM_P_H).
18928         * cfglayout.h (insn_scope): New prototype.
18929         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
18930         * cfglayout.c (insn_scope): No longer static.
18931         * insn-notes.def (CALL_ARG_LOCATION): New.
18932         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
18933         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
18934         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
18935         nothing for DECL_EXTERNAL BLOCK_VARS.
18937 2011-03-16  Alan Modra  <amodra@gmail.com>
18939         PR target/45844
18940         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18941         create invalid offset address for vsx splat insn.
18942         * config/rs6000/predicates.md (splat_input_operand): New.
18943         * config/rs6000/vsx.md (vsx_splat_*): Use it.
18945 2011-03-15  Xinliang David Li  <davidxl@google.com>
18947         PR c/47837
18948         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
18949         (normalize_preds): New function.
18950         (is_use_properly_guarded): Normalize def predicates.
18952 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18954         PR target/46788
18955         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
18956         in the output template.
18958 2011-03-15  Richard Guenther  <rguenther@suse.de>
18960         PR middle-end/47650
18961         * tree-pretty-print.c (dump_function_declaration): Properly
18962         dump unprototyped and varargs function types.
18964 2011-03-15  Richard Guenther  <rguenther@suse.de>
18966         PR tree-optimization/13954
18967         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
18968         and friends.
18970 2011-03-15  Richard Guenther  <rguenther@suse.de>
18972         PR tree-optimization/48037
18973         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
18974         selects into BIT_FIELD_REFs.
18975         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
18976         vector select.
18978 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
18980         PR tree-optimization/48129
18981         * builtins.c (fold_builtin_snprintf): Convert to type of
18982         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
18983         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
18985 2011-03-15  Richard Guenther  <rguenther@suse.de>
18987         PR tree-optimization/41490
18988         * tree-ssa-dce.c (propagate_necessity): Handle returns without
18989         value but with VUSE.
18990         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
18991         return statements.
18992         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
18993         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
18994         * tree-tailcall.c (find_tail_calls): Ignore returns.
18996 2011-03-15  Richard Guenther  <rguenther@suse.de>
18998         PR middle-end/48031
18999         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
19000         or variable-indexed array accesses when in gimple form.
19002 2011-03-15  Richard Guenther  <rguenther@suse.de>
19004         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
19006 2011-03-15  Alan Modra  <amodra@gmail.com>
19008         PR target/48032
19009         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
19010         presume symbol_refs without a symbol_ref_decl are suitably
19011         aligned, nor other trees we may see here.  Handle anchor symbols.
19012         (legitimate_constant_pool_address_p): Comment.  Add mode param.
19013         Check cmodel=medium addresses.  Adjust all calls.
19014         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
19015         creating cmodel=medium optimized access to locals.
19016         * config/rs6000/constraints.md (R): Pass QImode to
19017         legitimate_constant_pool_address_p.
19018         * config/rs6000/predicates.md (input_operand): Pass mode to
19019         legitimate_constant_pool_address_p.
19020         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
19021         Update prototype.
19023 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
19025         PR target/48053
19026         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
19027         64-bit constants being loaded into registers other than GPRs such
19028         as loading 0 into a VSX register.
19030 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19032         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
19034 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
19036         PR middle-end/47917
19037         * builtins.c (fold_builtin_snprintf): New function.
19038         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
19039         (fold_builtin_4): Likewise.
19041         PR middle-end/38878
19042         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
19043         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
19044         and C - X == X also strip nops from +/-/p+ operand.
19045         When optimizing -X == C, fold C to arg0's type.
19047         PR debug/47946
19048         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
19049         emit it as add_AT_int instead of add_AT_unsigned.
19051 2011-03-14  Tom Tromey  <tromey@redhat.com>
19053         * unwind-dw2.c: Include sys/sdt.h if it exists.
19054         (_Unwind_DebugHook): Use STAP_PROBE2.
19055         * config.in, configure: Rebuild.
19056         * configure.ac: Check for sys/sdt.h.
19058 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
19060         * config/i386/i386.md (ROUND_FLOOR): New constant.
19061         (ROUND_CEIL): Ditto.
19062         (ROUND_TRUNC): Ditto.
19063         (ROUND_MXCSR): Ditto.
19064         (ROUND_NO_EXC): Ditto.
19065         (rint<mode>2): Use new defines instead of numerical constants.
19066         (floor<mode>2): Ditto.
19067         (ceil<mode>2): Ditto.
19068         (btrunc<mode>2): Ditto.
19069         * config/i386/i386-builtin-types.def: Define ROUND function type
19070         aliases.
19071         * config/i386/i386.c (enum ix86_builtins): Add
19072         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
19073         (struct builtin_description): Add
19074         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
19075         (ix86_expand_sse_round): New static function.
19076         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
19077         function types.
19078         (ix86_builtin_vectorized_function): Handle
19079         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
19081 2011-03-14  Tom Tromey  <tromey@redhat.com>
19083         * c-parser.c (c_parser_asm_string_literal): Clear
19084         warn_overlength_strings.
19086 2011-03-14  Tom Tromey  <tromey@redhat.com>
19088         * c-parser.c (disable_extension_diagnostics): Save
19089         warn_overlength_strings.
19090         (restore_extension_diagnostics): Restore warn_overlength_strings.
19092 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
19094         * BASE-VER: Change to 4.7.0.
19096 2011-03-14  Richard Guenther  <rguenther@suse.de>
19098         PR middle-end/48098
19099         * tree.c (build_vector_from_val): Adjust assert to requirements
19100         and reality.
19102 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
19104         PR bootstrap/48102
19105         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
19107 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
19109         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
19110         terms of target_flags_explicit. Adjust copyright year.
19112         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
19113         * config/rs6000/t-freebsd: New file. Add override for
19114         LIB2FUNCS_EXTRA.
19116 2011-03-13  Chris Demetriou  <cgd@google.com>
19118         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
19119         (-fno-diagnostics-show-option): this, to reflect current default.
19120         (-Werror=): Update text about -fno-diagnostics-show-option.
19122 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
19124         PR target/48053
19125         * config/rs6000/predicates.md (easy_vector_constant_add_self,
19126         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
19127         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
19128         mode is not V2DImode or V2DFmode.
19129         (vspltis_constant): Do not handle V2DImode and V2DFmode.
19130         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
19131         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
19132         registers to 0.
19133         (movdi_internal64): Likewise.
19135 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
19137         PR tree-optimization/47127
19138         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
19139         parameter.
19140         (set_cloog_options): Same.
19141         (scop_to_clast): Same.
19142         (print_clast_stmt): Do not call cloog_state_malloc and
19143         cloog_state_free.
19144         (print_generated_program): Same.
19145         (gloog): Same.
19146         * graphite-clast-to-gimple.h (cloog_state): Declared.
19147         (scop_to_clast): Adjust declaration.
19148         * graphite.c (cloog_state): Defined here.
19149         (graphite_initialize): Call cloog_state_malloc.
19150         (graphite_finalize): Call cloog_state_free.
19152 2011-03-11  Jason Merrill  <jason@redhat.com>
19154         * attribs.c (lookup_attribute_spec): Take const_tree.
19155         * tree.h: Adjust.
19157 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
19159         * config/sparc/sparc.c (sparc_option_override): Use
19160         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
19162 2011-03-11  Richard Guenther  <rguenther@suse.de>
19164         PR tree-optimization/48067
19165         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
19166         multiplication result will be only used once on the target
19167         stmt.
19169 2011-03-11  Richard Guenther  <rguenther@suse.de>
19171         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
19173 2011-03-11  Richard Guenther  <rguenther@suse.de>
19175         PR lto/48073
19176         * tree.c (find_decls_types_r): Do not walk types only reachable
19177         from IDENTIFIER_NODEs.
19179 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
19181         PR middle-end/48044
19182         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
19183         all vnode->force_output nodes as needed.
19185 2011-03-11  Jason Merrill  <jason@redhat.com>
19187         PR c++/48069
19188         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
19189         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
19191 2011-03-11  Martin Jambor  <mjambor@suse.cz>
19193         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
19194         cgraph_node.
19196 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
19198         PR tree-optimization/48063
19199         * ipa-inline.c (cgraph_decide_inlining): Don't try to
19200         inline functions called once if !tree_can_inline_p (node->callers).
19202 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
19204         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
19205         extra_objs.
19206         * config/score/score3.c: Delete.
19207         * config/score/score3.h: Delete.
19208         * config/score/mul-div.S: Delete.
19209         * config/score/sfp-machine.h: Add new file.
19210         * config/score/constraints.md: Add new file.
19211         * config/score/t-score-softfp: Add new file.
19212         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
19213         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
19214         (score7_extra_constraint): Delete.
19215         (score7_option_override): Remove unused code.
19216         * config/score/score.c: Remove score3 and score5 define and code.
19217         * config/score/score.h: Remove score3 and score5 define and code.
19218         * config/score/score.md: Remove score3 template and unusual insn.
19219         * config/score/score.opt: Remove score3 and score5 options.
19221 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19223         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
19224         when _HPUX_SOURCE is defined.
19225         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
19227 2011-03-10  Jason Merrill  <jason@redhat.com>
19229         PR c++/48029
19230         * stor-layout.c (layout_type): Don't set structural equality
19231         on arrays of incomplete type.
19232         * tree.c (type_hash_eq): Handle comparing them properly.
19234 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19236         PR debug/48043
19237         * config/s390/s390.c (s390_delegitimize_address): Make sure the
19238         result mode matches original rtl mode.
19240 2011-03-10  Nick Clifton  <nickc@redhat.com>
19242         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
19243         (andsi3, andsi3_flags): Fix timings for three operand alternative.
19245 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
19247         PR rtl-optimization/47866
19248         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
19249         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
19250         if target wasn't scalar.
19251         * function.c (assign_stack_temp_for_type): Assert that neither
19252         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
19253         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
19254         macro.
19255         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
19257 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19259         * config/s390/s390-protos.h (s390_label_align): New prototype.
19260         * config/s390/s390.c (s390_label_align): New function.
19261         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
19263 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
19265         PR target/47755
19266         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
19267         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
19268         (output_vec_const_move): Ditto.
19270 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
19272         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
19273         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
19274         * config/mips/mips.c (mips_preferred_reload_class): Make static.
19275         Change 'rclass' argument and result type to reg_class_t.
19276         (TARGET_PREFERRED_RELOAD_CLASS): Define.
19278 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
19280         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
19281         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
19282         (TARGET_MEMORY_MOVE_COST): Define.
19283         (avr_register_move_cost, avr_memory_move_cost): New Functions.
19285 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
19287         PR debug/47881
19288         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
19289         removed anything.
19291         PR tree-optimization/48022
19292         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
19293         for EQ/NE_EXPR.
19295 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
19297         PR debug/47991
19298         * var-tracking.c (find_use_val): Return NULL for
19299         cui->sets && cui->store_p BLKmode MEMs.
19301 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
19303         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
19304         Remove.
19305         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
19306         xstormy16_print_operand_address): Remove.
19307         * config/stormy16/stormy16.c (xstormy16_print_operand,
19308         xstormy16_print_operand_address): Make static.
19309         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19311 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
19313         PR target/47862
19314         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
19315         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
19316         before definition.
19318 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
19320         PR bootstrap/48000
19321         * cfgloopmanip.c (fix_bb_placements): Return immediately
19322         if FROM is BASE_LOOP's header.
19324 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
19326         * gimplify.c (gimplify_function_tree): Fix building calls
19327         to __builtin_return_address.
19329 2011-03-07  Alan Modra  <amodra@gmail.com>
19331         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
19332         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
19333         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
19334         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
19335         return_mode args.
19336         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
19337         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
19338         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
19339         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
19340         * config/rs6000/rs6000.c
19341         (rs6000_elf_end_indicate_exec_stack): Rename to..
19342         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
19343         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
19344         (rs6000_file_start): ..here.
19345         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
19346         file scope variables.
19347         (call_ABI_of_interest): New function.
19348         (init_cumulative_args): Set above vars when function return value
19349         is a float, vector, or small struct.
19350         (rs6000_function_arg_advance_1): Likewise for function args.
19351         (rs6000_va_start): Set rs6000_passes_float if variable arg function
19352         references float args.
19354 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
19356         * doc/cfg.texi: Remove "See" before @ref.
19357         * doc/invoke.texi: Likewise.
19359 2011-03-05  Jason Merrill  <jason@redhat.com>
19361         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
19363 2011-03-05  Anthony Green  <green@moxielogic.com>
19365         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
19367 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
19369         PR rtl-optimization/47899
19370         * cfgloopmanip.c (fix_bb_placements): Fix first argument
19371         to flow_loop_nested_p when moving the loop upward.
19373 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
19375         PR target/47719
19376         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
19378 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
19380         PR tree-optimization/47967
19381         * ipa-cp.c (build_const_val): Return NULL instead of creating
19382         VIEW_CONVERT_EXPR for mismatching sizes.
19383         (ipcp_create_replace_map): Return NULL if build_const_val failed.
19384         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
19385         give up on versioning.
19387 2011-03-05  Alan Modra  <amodra@gmail.com>
19389         PR target/47986
19390         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19391         full cmodel medium/large lo_sum + high addresses.
19393 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19395         * config/s390/s390.c (s390_decompose_address): Reject non-literal
19396         pool references in UNSPEC_LTREL_OFFSET.
19398 2011-03-04  Jan Hubicka  <jh@suse.cz>
19400         PR lto/47497
19401         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
19402         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
19403         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
19404         Add node pointers.
19405         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
19406         cgraph_add_thunk): Add node pointers.
19407         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
19408         associated to right node.
19409         (input_node): Update use of cgraph_same_body_alias
19410         and cgraph_add_thunk.
19412 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
19414         * config/i386/i386.opt (mprefer-avx128): New flag.
19415         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
19416         modes when the flag -mprefer-avx128 is on.
19418 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
19420         * dwarf2out.c (compare_loc_operands): Fix address handling.
19422 2011-03-04  Alan Modra  <amodra@gmail.com>
19424         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
19426 2011-03-04  Richard Guenther  <rguenther@suse.de>
19428         PR middle-end/47968
19429         * expmed.c (extract_bit_field_1): Prefer vector modes that
19430         vec_extract patterns can handle.
19432 2011-03-04  Richard Guenther  <rguenther@suse.de>
19434         PR middle-end/47975
19435         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
19437 2011-03-04  Richard Henderson  <rth@redhat.com>
19439         * explow.c (emit_stack_save): Remove 'after' parameter.
19440         (emit_stack_restore): Likewise.
19441         * expr.h: Update to match.
19442         * builtins.c, calls.c, stmt.c: Likewise.
19443         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
19444         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
19445         * function.c (expand_function_end): Insert the emit_stack_save
19446         sequence before parm_birth_insn instead of after.
19448 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
19450         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
19451         (ssse3_pmaddubsw128): Ditto.
19452         (ssse3_pmaddubsw): Ditto.
19454 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
19456         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
19458 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
19460         PR c/47963
19461         * gimplify.c (omp_add_variable): Only call omp_notice_variable
19462         on TYPE_SIZE_UNIT if it is a DECL.
19464         PR debug/47283
19465         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
19466         first operand is not is_gimple_mem_ref_addr, try to fold it.
19467         If the operand still isn't is_gimple_mem_ref_addr, clear
19468         MEM_EXPR on op0.
19470 2011-03-03  Richard Guenther  <rguenther@suse.de>
19472         PR middle-end/47283
19473         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
19474         match comment.
19475         (refs_may_alias_p_1): For release branches return true if
19476         we are confused by our input.
19478 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19480         * config/s390/s390.c (s390_function_value): Rename to ...
19481         (s390_function_and_libcall_value): ... this.
19482         (s390_function_value): New function.
19483         (s390_libcall_value): New function.
19484         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
19485         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
19486         target macro definitions.
19487         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
19489 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
19491         * config/i386/freebsd64.h (CC1_SPEC): Define.
19492         * config/i386/linux64.h (CC1_SPEC): Define.
19493         * config/i386/x86-64.h (CC1_SPEC): Don't define.
19495 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
19497         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19498         Remove.
19499         * config/stormy16/stormy16.c: Include reload.h.
19500         (xstormy16_memory_move_cost): New function.
19501         (TARGET_MEMORY_MOVE_COST): Define.
19503 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
19505         PR rtl-optimization/47925
19506         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
19507         with side effects.  Remove the more-specific check for volatile asms.
19509 2011-03-02  Alan Modra  <amodra@gmail.com>
19511         PR target/47935
19512         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
19513         toc relative addresses for valid offsets.
19515 2011-03-01  Richard Guenther  <rguenther@suse.de>
19517         PR tree-optimization/47890
19518         * tree-vect-loop.c (get_initial_def_for_induction): Set
19519         related stmt properly.
19521 2011-03-01  Richard Guenther  <rguenther@suse.de>
19523         PR lto/47924
19524         * lto-streamer.c (lto_record_common_node): Also register
19525         the canonical type.
19527 2011-03-01  Richard Guenther  <rguenther@suse.de>
19529         PR lto/46911
19530         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
19531         Do not stream DECL_ABSTRACT_ORIGIN.
19532         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
19533         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
19534         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
19535         Do not stream DECL_ABSTRACT_ORIGIN.
19536         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
19537         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
19539 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
19541         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
19542         FUNCTION_VALUE_REGNO_P): Remove.
19543         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
19544         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
19545         Add 'outgoing' argument.
19546         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
19547         function.
19548         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19549         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19551 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
19553         PR debug/28047
19554         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
19555         (lookup_filename): Likewise.
19556         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
19558 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
19559             Jakub Jelinek  <jakub@redhat.com>
19561         PR middle-end/47893
19562         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
19563         (assign_stack_local_1): Change last argument type to int.
19564         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
19565         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
19566         don't record padding space into frame_space_list nor use those areas.
19567         (assign_stack_local): Adjust caller.
19568         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
19569         of assign_stack_local, pass 0 as last argument.
19570         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
19571         callers.
19573 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
19575         PR debug/47283
19576         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
19577         Use target address_mode and pointer_mode hooks instead of hardcoded
19578         Pmode and ptr_mode.  Handle some simple cases of extending if
19579         POINTERS_EXTEND_UNSIGNED < 0.
19580         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
19581         Call convert_debug_memory_address.
19582         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
19583         convert_debug_memory_address.
19585         PR middle-end/46790
19586         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
19587         * configure: Regenerated.
19588         * config.in: Regenerated.
19589         * varasm.c (default_function_section): Return NULL
19590         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
19592 2011-02-28  Martin Jambor  <mjambor@suse.cz>
19594         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
19595         the description to match the printed values.
19597 2011-02-28  Richard Guenther  <rguenther@suse.de>
19599         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
19600         of the copied scope tree.
19602 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19604         * doc/extend.texi (Function Attributes): Avoid deeply (and
19605         wrongly) nested tables.
19607 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
19609         PR middle-end/47903
19610         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
19611         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
19612         r isn't op0 nor op1.
19614 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
19616         * config/avr/avr.md: Remove magic comment for emacs.
19618 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
19620         PR target/45261
19621         * config/avr/avr.c (avr_option_override): Use error on bad options.
19622         (avr_help): New function.
19623         (TARGET_HELP): Define.
19625 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
19627         PR target/42240
19628         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
19629         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
19631 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
19633         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
19634         (ARM Options): Ditto.
19635         (i386 and x86-64 Options): Ditto.
19636         (RX Options): Ditto.
19637         (SPARC Options): Ditto.
19639 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
19641         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
19642         FreeBSD 6 and later.  Generally use cpu generic.
19644 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
19646         * doc/cpp.texi: Update copyright years.
19648 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
19650         PR target/46898
19651         * config/lm32/lm32.md (ashrsi3): Added needed variable.
19653 2011-02-25  Jon Beniston  <jon@beniston.com>
19655         PR target/46898
19656         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
19657         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
19658         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
19659         (lm32_block_move_inline): Add type cast to remove warning.
19660         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
19661         (gen_int_relational): Move declarations to start of function.
19663 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
19665         PR tree-optimization/45470
19666         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
19667         can throw internally only.
19668         * tree-vect-stmts.c (vectorizable_call): Likewise.
19670 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
19672         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
19673         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19674         * config/stormy16/stormy16-protos.h
19675         (xstormy16_preferred_reload_class): Remove.
19676         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
19677         static. Change 'rclass' argument and return type to reg_class_t.
19678         (TARGET_PREFERRED_RELOAD_CLASS,
19679         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19681 2011-02-24  Richard Guenther  <rguenther@suse.de>
19683         * lto-streamer-in.c (input_bb): Do not find referenced vars
19684         in debug statements.
19686 2011-02-23  Jason Merrill  <jason@redhat.com>
19688         * common.opt (fabi-version): Document v5 and v6.
19690 2011-02-23  Richard Guenther  <rguenther@suse.de>
19692         PR tree-optimization/47849
19693         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
19695 2011-02-23  Jie Zhang  <jie@codesourcery.com>
19697         * opts-common.c (decode_cmdline_option): Print empty string
19698         argument as "" in decoded->orig_option_with_args_text.
19699         * gcc.c (execute): Print empty string argument as ""
19700         in the verbose output.
19701         (do_spec_1): Keep empty string argument.
19703 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
19705         * config.gcc: Declare score-* and crx-* obsolete.
19707 2011-02-23  Jie Zhang  <jie@codesourcery.com>
19709         PR rtl-optimization/47763
19710         * web.c (web_main): Ignore naked clobber when replacing register.
19712 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
19714         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19715         Remove.
19717 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
19719         PR doc/47848
19720         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
19722 2011-02-22  Mike Stump  <mikestump@comcast.net>
19724         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
19725         assembler.
19726         * configure: Regenerate.
19728 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
19730         PR rtl-optimization/46002
19731         * ira-color.c (update_copy_costs): Change class intersection
19732         test to reg_class_contents[] test of 'hard_regno'.
19734 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
19736         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
19737         than Driver option.
19738         * config/hpux11.opt (mt): Likewise.
19739         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
19740         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
19741         * config/vax/elf.opt (mno-asm-pic): Likewise.
19742         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
19744 2011-02-21  Mike Stump  <mikestump@comcast.net>
19746         PR target/47822
19747         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
19748         tree so we can get save the type.
19749         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
19750         for CFString instead of trying to use past the end of the builtins.
19751         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
19752         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
19753         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
19754         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
19755         Rename to darwin_builtin_cfstring.
19756         (darwin_init_cfstring_builtins): Return the built type.
19758 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
19760         PR target/47840
19761         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
19762         (_mm256_insert_epi64): Use _mm_insert_epi64.
19764 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
19766         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19767         * config/stormy16/stormy16-protos.h
19768         (xstormy16_mode_dependent_address_p): Remove.
19769         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
19770         Make static. Change return type to bool. Change argument type to
19771         const_rtx. Remove dead code.
19772         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19774 2011-02-21  Richard Guenther  <rguenther@suse.de>
19776         PR lto/47820
19777         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
19778         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
19779         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
19780         TUs context.
19781         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
19782         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
19784 2011-02-20  Richard Guenther  <rguenther@suse.de>
19786         PR lto/47822
19787         * tree.c (free_lang_data_in_decl): Clean builtins from
19788         the TU decl BLOCK_VARS.
19790 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
19792         PR debug/47620
19793         PR debug/47630
19794         * haifa-sched.c (fix_tick_ready): Skip tick computation
19795         for debug insns.
19797 2011-02-19  Richard Guenther  <rguenther@suse.de>
19799         PR lto/47647
19800         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
19801         Remove lazy BLOCK_VARS streaming.
19802         (lto_input_ts_block_tree_pointers): Likewise.
19803         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
19805 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
19807         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
19809 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
19811         * config/i386/biarch32.h, config/i386/mach.h,
19812         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
19814 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
19816         PR target/47800
19817         * config/i386/i386.md (peephole2 for shift and plus): Use
19818         operands[1] original mode in the first insn.
19820 2011-02-18  Mike Stump  <mikestump@comcast.net>
19822         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
19824 2011-02-18  Jan Hubicka  <jh@suse.cz>
19826         PR middle-end/47788
19827         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
19828         to zero when the function is not inlinable at all.
19830 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19832         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
19833         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19834         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
19835         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
19836         * config/pa/t-pa64: Likewise.
19837         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
19839 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
19841         PR driver/47787
19842         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
19844 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19846         PR target/47792
19847         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
19849 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
19851         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19852         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
19853         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
19854         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19855         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
19856         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
19857         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
19858         m32r_load_postinc_p, m32r_store_preinc_predec_p,
19859         m32r_legitimate_address_p): New functions.
19860         * config/m32r/constraints.md (constraint "S"): Don't use
19861         STORE_PREINC_PREDEC_P.
19862         (constraint "U"): Don't use LOAD_POSTINC_P.
19864 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
19866         PR rtl-optimization/46178
19867         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
19868         compute ira_hard_regno_cover_class[].
19870 2011-02-18  Richard Guenther  <rguenther@suse.de>
19872         PR lto/47798
19873         * lto-streamer.h (lto_global_var_decls): Declare.
19874         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
19875         statics for global var processing.
19877 2011-02-18  Richard Guenther  <rguenther@suse.de>
19879         PR tree-optimization/47737
19880         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
19881         edge dominance check.
19883 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
19885         PR debug/47780
19886         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
19887         avoid invalid rtx sharing.
19889 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
19891         * doc/cpp.texi (Obsolete Features): Add background on the
19892         origin of assertions.
19894 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
19896         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
19897         objc_abi == 2.
19898         * config/darwin.c (output_objc_section_asm_op): Added support for
19899         ABI v1 and v2.
19900         (is_objc_metadata): New.
19901         (darwin_objc2_section): New.
19902         (darwin_objc1_section): New.
19903         (machopic_select_section): Added support for ABI v1 and v2.
19904         (darwin_emit_objc_zeroed): New.
19905         (darwin_output_aligned_bss): Detect objc metadata and treat it
19906         appropriately.
19907         (darwin_asm_output_aligned_decl_common): Same.
19908         (darwin_asm_output_aligned_decl_local): Same.
19909         * config/darwin-sections.def: Updated for ABI v1 and v2.
19910         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
19911         compiling Objective-C code for the NeXT runtime, default to using
19912         ABI version 0 for 32-bit, and version 2 for 64-bit.
19914 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19916         * common.opt (optimize_fast): New Variable.
19917         * opts.c (default_options_optimization): Use opts->x_optimize_fast
19918         instead of local variable ofast.
19920 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
19922         * doc/invoke.texi (fobjc-abi-version): Documented.
19923         (fobjc-nilcheck): Documented.
19924         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
19925         version.
19927 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19929         PR driver/47390
19930         * common.opt (export-dynamic): New Driver option.
19931         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
19933 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19935         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
19937 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
19938             Jan Hubicka  <jh@suse.cz>
19940         PR debug/47106
19941         PR debug/47402
19942         * cfgexpand.c (account_used_vars_for_block): Remove.
19943         (estimated_stack_frame_size): Use referenced vars.
19944         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
19945         that were referenced in the original function.  Test src_fn
19946         rather than cfun.  Drop redundant get_var_ann.
19947         (setup_one_parameter): Drop redundant get_var_ann.
19948         (declare_return_variable): Likewise.
19949         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
19950         (copy_arguments_for_versioning): Drop redundant get_var_ann.
19951         * ipa-inline.c (compute_inline_parameters): Do not compute
19952         disregard_inline_limits here.
19953         (compute_inlinable_for_current, pass_inlinable): New.
19954         (pass_inline_parameters): Require PROP_referenced_vars.
19955         * cgraphunit.c (cgraph_process_new_functions): Don't run
19956         compute_inline_parameters explicitly unless function is in SSA form.
19957         (cgraph_analyze_function): Set .disregard_inline_limits.
19958         * tree-sra.c (convert_callers): Compute inliner parameters
19959         only for functions already in SSA form.
19961 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19963         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
19964         -mlittle-endian-data.
19966 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19968         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
19969         -mno-fpu, not -fpu and -no-fpu.
19970         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
19971         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
19973 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
19975         PR target/43653
19976         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
19977         input reload with PLUS RTX.
19979 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19981         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
19982         of InverseVar(MDMX).
19984 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19986         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
19987         --m4-340.
19989 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19991         * config/mn10300/mn10300.opt (mno-crt0): New.
19993 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19995         * config/m68k/uclinux.opt (static-libc): New Driver option.
19997 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19999         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
20001 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
20003         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
20004         %{muser-extend-enabled}.
20006 2011-02-16  Richard Guenther  <rguenther@suse.de>
20008         PR tree-optimization/47738
20009         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
20010         the TODO from tree_predictive_commoning.
20012 2011-02-15  Jeff Law  <law@redhat.com>
20014         Revert
20015         2011-01-25  Jeff Law  <law@redhat.com>
20017         PR rtl-optimization/37273
20018         * ira-costs.c (scan_one_insn): Detect constants living in memory and
20019         handle them like argument loads from stack slots.  Do not double
20020         count memory for memory constants and argument loads from stack slots.
20022 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
20024         PR target/47755
20025         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
20026         mode for vector constants.  Remove code that checks for TImode.
20028 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20030         PR debug/47106
20031         PR debug/47402
20032         * cgraph.h (compute_inline_parameters): Return void.
20033         * ipa-inline.c (compute_inline_parameters): Adjust.
20035 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20037         PR debug/47106
20038         PR debug/47402
20039         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
20040         rather than decl.
20041         * cfgexpand.c (estimated_stack_frame_size): Likewise.
20042         * ipa-inline.c (compute_inline_parameters): Adjust.
20044 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20046         PR debug/47106
20047         PR debug/47402
20048         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
20049         Adjust all users.  Pass FN to...
20050         * tree-flow-inline.h (first_referenced_var): ... this.  Add
20051         fn argument.
20052         * ipa-struct-reorg.c: Adjust.
20053         * tree-dfa.c: Adjust.
20054         * tree-into-ssa.c: Adjust.
20055         * tree-sra.c: Adjust.
20056         * tree-ssa-alias.c: Adjust.
20057         * tree-ssa-live.c: Adjust.
20058         * tree-ssa.c: Adjust.
20059         * tree-ssanames.c: Adjust.
20060         * tree-tailcall.c: Adjust.
20062 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20064         PR debug/47106
20065         PR debug/47402
20066         * tree-flow.h (referenced_var_lookup): Add fn parameter.
20067         Adjust all callers.
20068         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
20069         * tree-flow-inline.h: Adjust.
20070         * gimple-pretty-print.c: Adjust.
20071         * tree-into-ssa.c: Adjust.
20072         * tree-ssa.c: Adjust.
20073         * cfgexpand.c: Adjust.
20075 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
20077         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
20078         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20079         (EXTRA_CONSTRAINT): Delete.
20080         * config/iq2000/constraints.md: New file.
20081         * config/iq2000/iq2000.md: Include it.
20082         (define_insn ""): Delete.
20083         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
20084         unsupported constraint letters from patterns.
20085         (call_value, call_value_internal1): Likewise.
20086         (call_value_multiple_internal1): Likewise.
20088 2011-02-15  Nick Clifton  <nickc@redhat.com>
20090         * config/mn10300/mn10300.c: Include tm-constrs.h.
20091         (struct liw_data): New data structure describing an LIW candidate
20092         instruction.
20093         (extract_bundle): Use struct liw_data.  Allow small integer
20094         operands for some instructions.
20095         (check_liw_constraints): Use struct liw_data.  Remove swapped
20096         parameter.  Add comments describing the checks.  Fix bug when
20097         assigning the source of liw1 to the source of liw2.
20098         (liw_candidate): Delete.  Code moved into extract_bundle.
20099         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
20100         before swapping.
20101         * config/mn10300/predicates.md (liw_operand): New predicate.
20102         Allows registers and small integer constants.
20103         * config/mn10300/constraints.md (O): New constraint.  Accetps
20104         integers in the range -8 to +7 inclusive.
20105         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
20106         for moving a small integer into a register.  Give this alternative
20107         LIW attributes.
20108         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
20109         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
20110         using the J,K,L and M constraints,
20111         (liw): Remove SI mode on second operands to allow for HI and QI
20112         mode values.
20113         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
20114         instruction.
20116 2011-02-15  Richard Guenther  <rguenther@suse.de>
20118         PR tree-optimization/47743
20119         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
20120         for a non-type-compatible VN lookup bail out.
20122 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
20124         * config/fr30/constraints.md: New file.
20125         * config/fr30/fr30.md: Include it.
20126         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
20127         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20128         (EXTRA_CONSTRAINT): Delete.
20130 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
20132         * config/frv/constraints.md: New file.
20133         * config/frv/predicates.md: Include it.
20134         * config/frv/frv.c (reg_class_from_letter): Delete.
20135         (frv_option_override): Don't initialize it.
20136         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
20137         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
20138         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
20139         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
20140         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
20141         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20142         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
20143         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
20144         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
20145         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
20146         (REG_CLASS_FROM_CONSTRAINT): Delete.
20148 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
20150         PR middle-end/47581
20151         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
20152         if frame size is 0 in a leaf function.
20154 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20156         PR pch/14940
20157         * config/alpha/host-osf.c: New file.
20158         * config/alpha/x-osf: New file.
20159         * config.host (alpha*-dec-osf*): Use it.
20161 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
20163         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20164         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
20165         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
20166         (rx_mode_dependent_address_p): ...this. Make static. Change argument
20167         type to const_rtx.
20168         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20170 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
20172         * config/stormy16/constraints.md: New file.
20173         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
20174         Use satisfies_constraint_Q and satisfies_constraint_R.
20175         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
20176         Delete.
20177         (xstormy16_legitiamte_address_p): Declare.
20178         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
20179         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20180         (EXTRA_CONSTRAINT): Delete.
20181         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
20182         Un-staticize.
20183         (xstormy16_extra_constraint_p): Delete.
20185 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
20187         PR tree-optimization/46494
20188         * loop-unroll.c (split_edge_and_insert): Adjust comment.
20189         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
20190         (pass_rtl_loop_done): Add TODO_verify_flow.
20191         * fwprop.c (pass_rtl_fwprop): Likewise.
20192         * modulo-sched.c (pass_sms): Likewise.
20193         * tree-ssa-dom.c (pass_dominator): Likewise.
20194         * tree-ssa-loop-ch.c (pass_ch): Likewise.
20195         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
20196         (pass_tree_loop_done): Likewise.
20197         * tree-ssa-pre.c (execute_pre): Likewise.
20198         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
20199         * tree-ssa-sink.c (pass_sink_code): Likewise.
20200         * tree-vrp.c (pass_vrp): Likewise.
20202 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
20204         * config/v850/constraints.md: New file.
20205         * config/v850/v850.md: Include it.
20206         * config/v850/predicates.md (reg_or_0_operand): Use
20207         satisfies_constraint_G.
20208         (special_symbolref_operand): Use satisfies_constraint_K.
20209         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
20210         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
20211         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
20212         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
20213         (EXTRA_CONSTRAINT): Delete.
20214         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
20215         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
20216         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
20218 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
20220         PR target/47696
20221         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
20222         description.
20224 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
20226         * config/mcore/constraints.md: New file.
20227         * config/mcore/mcore.md: Include it.
20228         * config/mcore/mcore.c (reg_class_from_letter): Delete.
20229         * config/mcore/mcore.h (reg_class_from_letter): Delete.
20230         (REG_CLASS_FROM_LETTER): Delete.
20231         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
20232         insn_const_int_ok_for_constraint.
20233         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
20234         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
20235         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20236         (EXTRA_CONSTRAINT): Delete.
20238 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20240         PR ada/41929
20241         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
20242         (IS_SIGHANDLER): Define.
20243         (sparc64_is_sighandler): New function, split off from
20244         sparc64_fallback_frame_state.
20245         (sparc_is_sighandler): New function, split off from
20246         sparc_fallback_frame_state.
20247         (sparc64_fallback_frame_state): Merge with ...
20248         (sparc_fallback_frame_state): ... this into ...
20249         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
20250         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
20251         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
20252         stack instead of hardcoded offsets.
20254 2011-02-14  Andriy Gapon  <avg@freebsd.org>
20256         PR target/45808
20257         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
20259 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20261         * configure: Regenerate.
20263 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
20265         PR driver/45731
20266         * gcc.c (asm_options): Correct spec matching --target-help.
20268 2011-02-12  Martin Jambor  <mjambor@suse.cz>
20270         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
20271         to gimple call error.
20273 2011-02-12  Mike Stump  <mikestump@comcast.net>
20275         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
20276         comments in backslash regions.
20278 2011-02-12  Mike Stump  <mikestump@comcast.net>
20279             Jakub Jelinek  <jakub@redhat.com>
20280             Iain Sandoe  <iains@gcc.gnu.org>
20282         PR target/47324
20283         * dwarf2out.c (output_cfa_loc): When required, apply the
20284         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
20285         (output_loc_sequence): Likewise.
20286         (output_loc_operands_raw): Likewise.
20287         (output_loc_sequence_raw): Likewise.
20288         (output_cfa_loc): Likewise.
20289         (output_loc_list): Suppress register number adjustment when
20290         calling output_loc_sequence()
20291         (output_die): Likewise.
20293 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
20295         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20296         Remove macros.
20297         * config/xtensa/xtensa.c (xtensa_register_move_cost,
20298         xtensa_memory_move_cost): New functions.
20299         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
20301 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
20303         PR lto/47225
20304         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
20305         in the current directory.
20306         * configure: Rebuilt.
20308 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
20310         * config/darwin.c (darwin_override_options): Add a hunk missed
20311         from the commit of r168571.  Trim comment line lengths and
20312         correct indents of the preceding block.
20314 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
20316         * gcc.c (driver_handle_option): Concatenate the argument to -F with
20317         the switch.
20319 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
20321         * common.opt (nostartfiles): New Driver option.
20323 2011-02-11  Xinliang David Li  <davidxl@google.com>
20325         PR tree-optimization/47707
20326         * tree-chrec.c (convert_affine_scev): Keep type precision.
20328 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
20330         PR tree-optimization/47420
20331         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
20333 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
20335         PR rtl-optimization/47614
20336         * rtl.h (check_for_inc_dec): Declare.
20337         * dse.c (check_for_inc_dec): Externalize...
20338         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
20339         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
20341 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
20343         PR driver/47678
20344         * gcc.c (main): Do not compile inputs if there were errors in
20345         option handling.
20346         * opts-common.c (read_cmdline_option): Check for wrong language
20347         after other error checks.
20349 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
20351         * cgraph.c: Fix comment typos.
20352         * cgraph.h: Likewise.
20353         * cgraphunit.c: Likewise.
20354         * ipa-cp.c: Likewise.
20355         * ipa-inline.c: Likewise.
20356         * ipa-prop.c: Likewise.
20357         * ipa-pure-const.c: Likewise.
20358         * ipa-ref.c: Likewise.
20359         * ipa-reference.c: Likewise.
20361 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20363         PR debug/47684
20364         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
20366 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20368         PR testsuite/47400
20369         * doc/sourcebuild.texi (Require Support): Document
20370         dg-require-ascii-locale.
20372 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
20374         * doc/lto.texi (Write summary): Fix missing parentheses.
20376 2011-02-10  DJ Delorie  <dj@redhat.com>
20378         * config/m32c/m32c.c (m32c_option_override): Disable
20379         -fcombine-stack-adjustments until flag value tracking and compare
20380         optimization can be rewritten.
20382 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
20384         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
20385         PROCESSOR_POWER7.
20386         (PROCESSOR_DEFAULT64): Likewise.
20388 2011-02-10  Richard Henderson  <rth@redhat.com>
20390         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
20391         change from 2011-02-03.
20392         * config/rx/rx.c (flags_from_code): Likewise.
20393         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
20394         is valid, n/pz otherwise.
20395         (rx_select_cc_mode): Return CCmode if Y is not zero.
20397 2011-02-10  Richard Guenther  <rguenther@suse.de>
20399         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
20401 2011-02-10  Richard Guenther  <rguenther@suse.de>
20403         PR tree-optimization/47677
20404         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
20406 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
20408         PR target/47665
20409         * combine.c (make_compound_operation): Only change shifts into
20410         multiplication for SCALAR_INT_MODE_P.
20412 2011-02-10  Jie Zhang  <jie@codesourcery.com>
20414         PR testsuite/47622
20415         Revert
20416         2011-02-05  Jie Zhang  <jie@codesourcery.com>
20417         PR debug/42631
20418         * web.c (entry_register): Don't clobber the number of the
20419         first uninitialized reference in used[].
20421 2011-02-09  Richard Guenther  <rguenther@suse.de>
20423         PR tree-optimization/47664
20424         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
20425         all edges again.
20427 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
20429         PR target/46481
20430         PR target/47032
20431         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
20432         PROCESSOR_POWER7.
20433         (PROCESSOR_DEFAULT64): Same.
20434         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
20436 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20438         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
20440 2011-02-09  Martin Jambor  <mjambor@suse.cz>
20442         PR middle-end/45505
20443         * tree-sra.c (struct access): New flags grp_scalar_read and
20444         grp_scalar_write.  Changed description of assignment read and write
20445         flags.
20446         (dump_access): Dump new flags, reorder all of them.
20447         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
20448         to detect multiple scalar reads.
20449         (analyze_access_subtree): Use the new scalar read write flags instead
20450         of the old flags.  Adjusted comments.
20452 2011-02-08  DJ Delorie  <dj@redhat.com>
20454         PR target/47548
20455         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
20456         patterns.
20458 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20460         * config/m68k/uclinux.opt: New.
20461         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
20463 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20465         * config/cris/elf.opt (sim): New Driver option.
20467 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20469         * config/xtensa/elf.opt: New.
20470         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
20472 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20474         * config/vax/elf.opt: New.
20475         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
20477 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20479         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
20481 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20483         * config/gnu-user.opt: New.
20484         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
20485         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
20486         *-*-uclinux*): Use gnu-user.opt.
20488 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
20490         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
20491         * config/i386/gnu.h (CPP_SPEC): Likewise.
20493 2011-02-08  Ian Lance Taylor  <iant@google.com>
20495         * common.opt (fcx-limited-range): Add SetByCombined flag.
20496         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
20497         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
20498         (fassociative-math, freciprocal-math): Likewise.
20499         (funsafe-math-optimizations): Likewise.
20500         * opth-gen.awk: Handle SetByCombined.
20501         * optc-gen.awk: Likewise.
20502         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
20503         (set_unsafe_math_optimizations_flags): Likewise.
20504         * doc/options.texi (Option properties): Document SetByCombined.
20506 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20508         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
20509         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
20510         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
20511         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
20512         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
20514 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
20516         PR tree-optimization/46834
20517         PR tree-optimization/46994
20518         PR tree-optimization/46995
20519         * graphite-sese-to-poly.c (used_outside_reduction): New.
20520         (detect_commutative_reduction): Call used_outside_reduction.
20521         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
20522         translate_scalar_reduction_to_array only when at least one
20523         loop-phi/close-phi tuple has been detected.
20525 2011-02-08  Richard Guenther  <rguenther@suse.de>
20527         PR middle-end/47639
20528         * tree-vect-generic.c (expand_vector_operations_1): Update
20529         stmts here ...
20530         (expand_vector_operations): ... not here.  Cleanup EH info
20531         and the CFG if required.
20533 2011-02-08  Richard Guenther  <rguenther@suse.de>
20535         PR tree-optimization/47641
20536         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
20537         require type compatibility.
20539 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20541         * gimple-low.c (lower_function_body): Don't remove the location of
20542         the return statement here.
20543         (lower_gimple_return): Do it here instead but only if the return
20544         statement is actually used twice.
20546 2011-02-08  Richard Guenther  <rguenther@suse.de>
20548         PR tree-optimization/47632
20549         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
20550         unused up_to_stmt parameter, return whether cfg-cleanup is
20551         necessary, remove EH info properly.
20552         (forward_propagate_into_gimple_cond): Adjust caller.
20553         (forward_propagate_into_cond): Likewise.
20554         (forward_propagate_comparison): Likewise.
20555         (tree_ssa_forward_propagate_single_use_vars): Make
20556         forward_propagate_comparison case similar to the two others.
20558 2011-02-08  Nick Clifton  <nickc@redhat.com>
20560         * config/mn10300/mn10300.opt (mliw): New command line option.
20561         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
20562         (liw_bundling): New automaton.
20563         (liw): New attribute.
20564         (liw_op): New attribute.
20565         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
20566         (movsi_internal): Add LIW attributes.
20567         (andsi3): Likewise.
20568         (iorsi3): Likewise.
20569         (xorsi3): Likewise.
20570         (addsi3): Separate register and immediate alternatives.
20571         Add LIW attributes.
20572         (subsi3): Likewise.
20573         (cmpsi): Likewise.
20574         (aslsi3): Likewise.
20575         (lshrsi3): Likewise.
20576         (ashrsi3): Likewise.
20577         (liw): New pattern.
20578         * config/mn10300/mn10300.c (liw_op_names): New
20579         (mn10300_print_operand): Handle 'W' operand descriptor.
20580         (extract_bundle): New function.
20581         (check_liw_constraints): New function.
20582         (liw_candidate): New function.
20583         (mn10300_bundle_liw): New function.
20584         (mn10300_reorg): New function.
20585         (TARGET_MACHINE_DEPENDENT_REORG): Define.
20586         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
20587         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
20588         __LIW__ or __NO_LIW__.
20589         * doc/invoke.texi: Describe the -mliw command line option.
20591 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20593         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
20594         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
20595         pthread_mutex_unlock): Remove.
20596         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
20597         * config/pa/t-pa64: Likewise.
20598         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
20599         shared libc if not linking against libpthread.
20600         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20602 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
20604         PR target/47558
20605         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
20606         on 10.6 and later to ensure that we always use the unwinder from
20607         the system.  Only add -no_compact_unwind when tarteting darwin
20608         10.6 or later.
20610 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
20612         PR target/46997
20613         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
20614         (vec_interleave_lowv2sf): Ditto.
20615         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
20616         (vec_extract_oddv2sf): Ditto.
20618 2011-02-07  Mike Stump  <mikestump@comcast.net>
20620         PR target/42333
20621         Add __ieee_divdc3 entry point.
20622         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
20623         entry point.
20624         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
20625         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
20626         * config/darwin.c (darwin_rename_builtins): Add.
20627         * config/darwin-protos.h (darwin_rename_builtins): Add.
20629 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
20631         PR target/47636
20632         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
20633         for the condition.
20635 2011-02-07  Mike Stump  <mikestump@comcast.net>
20637         * config/darwin.opt (mmacosx-version-min): Update default OS version.
20639 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
20641         PR target/47534
20642         * config/avr/libgcc.S (exit): Move .endfunc
20644 2011-02-07  Richard Guenther  <rguenther@suse.de>
20646         PR tree-optimization/47615
20647         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
20648         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
20649         (run_scc_vn): Initialize it.
20650         (visit_reference_op_load): Use it.
20651         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
20653 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20655         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
20656         DImode trapping arithmetic libfuncs.
20658 2011-02-07  Richard Guenther  <rguenther@suse.de>
20660         PR tree-optimization/47621
20661         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
20662         two duplicates ...
20663         (execute_update_addresses_taken): ... here.  Make it more
20664         conservative in what we accept.
20666 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
20668         * config/sparc/freebsd.h (ASM_SPEC): Define.
20669         * config/sparc/vxworks.h (ASM_SPEC): Define.
20671 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
20673         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
20675 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
20677         * doc/invoke.texi: Remove reference to compiler internals from
20678         user documentation.
20680         * reg-notes.def: Remove REG_VALUE_PROFILE.
20681         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
20683 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
20685         PR middle-end/47610
20686         * varasm.c (default_section_type_flags): If decl is NULL,
20687         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
20689 2011-02-05  Jie Zhang  <jie@codesourcery.com>
20691         PR debug/42631
20692         * web.c (entry_register): Don't clobber the number of the
20693         first uninitialized reference in used[].
20695 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
20697         PR tree-optimization/46194
20698         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
20699         (build_classic_dist_vector_1): Do not represent classic distance
20700         vectors when the access functions are variating in different loops.
20702 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
20704         * config/mips/iris6.opt: New.
20705         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
20707 2011-02-04  Richard Henderson  <rth@redhat.com>
20708             Steve Ellcey  <sje@cup.hp.com>
20710         PR target/46997
20711         * config/ia64/predicates.md (mux1_brcst_element): New.
20712         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
20713         * config/ia64/ia64.c (ia64_unpack_assemble): New.
20714         (ia64_unpack_sign): New.
20715         (ia64_expand_unpack): Rewrite using new routines.
20716         (ia64_expand_widen_sum): Ditto.
20717         (ia64_expand_dot_prod_v8qi): Ditto.
20718         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
20719         routines, add endian check.
20720         (pmpy2_even): Rename from pmpy2_r, add endian check.
20721         (pmpy2_odd): Rename from pmpy2_l, add endian check.
20722         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
20723         (vec_widen_smult_hi_v4hi): Ditto.
20724         (vec_widen_umult_lo_v4hi): Ditto.
20725         (vec_widen_umult_hi_v4hi): Ditto.
20726         (mulv2si3): Change endian checks.
20727         (sdot_prodv4hi): Rewrite with new calls.
20728         (udot_prodv4hi): New.
20729         (vec_pack_ssat_v4hi): Add endian check.
20730         (vec_pack_usat_v4hi): Ditto.
20731         (vec_pack_ssat_v2si): Ditto.
20732         (max1_even): Rename from max1_r, add endian check.
20733         (max1_odd): Rename from max1_l, add endian check.
20734         (*mux1_rev): Format change.
20735         (*mux1_mix): Ditto.
20736         (*mux1_shuf): Ditto.
20737         (*mux1_alt): Ditto.
20738         (*mux1_brcst_v8qi): Use new predicate.
20739         (vec_extract_evenv8qi): Remove endian check.
20740         (vec_extract_oddv8qi): Ditto.
20741         (vec_interleave_lowv4hi): Format change.
20742         (vec_interleave_highv4hi): Ditto.
20743         (mix2_even): Rename from mix2_r, add endian check.
20744         (mix2_odd): Rename from mux2_l, add endian check.
20745         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
20746         (vec_extract_evenodd_helper): Format change.
20747         (vec_extract_evenv4hi): Remove endian check.
20748         (vec_extract_oddv4hi): Remove endian check.
20749         (vec_interleave_lowv2si): Format change.
20750         (vec_interleave_highv2si): Format change.
20751         (vec_initv2si): Remove endian check.
20752         (vecinit_v2si): Add endian check.
20753         (reduc_splus_v2sf): Add endian check.
20754         (reduc_smax_v2sf): Ditto.
20755         (reduc_smin_v2sf): Ditto.
20756         (vec_initv2sf): Remove endian check.
20757         (fpack): Add endian check.
20758         (fswap): Add endian check.
20759         (vec_interleave_highv2sf): Add endian check.
20760         (vec_interleave_lowv2sf): Add endian check.
20761         (fmix_lr): Add endian check.
20762         (vec_setv2sf): Format change.
20763         (*vec_extractv2sf_0_be): Use shift to extract operand.
20764         (*vec_extractv2sf_1_be): New.
20765         (vec_pack_trunc_v4hi): Add endian check.
20766         (vec_pack_trunc_v2si): Format change.
20768 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
20770         PR inline-asm/23200
20771         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
20772         do bb, locus and block comparison and disallow loads if it is not set.
20773         (stmt_is_replaceable_p): New function.
20774         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
20775         callers.
20776         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
20777         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
20778         SSA_NAME_DEF_STMT.
20779         * tree-flow.h (stmt_is_replaceable_p): New prototype.
20781 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
20783         * config/rs6000/xilinx.opt: New.
20784         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
20786 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
20788         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
20790 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
20792         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
20793         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
20794         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
20795         secondary_reload_info, xtensa_secondary_reload): Remove.
20796         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
20797         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
20798         (xtensa_preferred_reload_class): Make static. Change return and
20799         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
20800         Use CONST_DOUBLE_P predicate.
20801         (xtensa_preferred_output_reload_class): New function.
20802         (xtensa_secondary_reload): Make static.
20804 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
20806         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
20807         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
20808         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
20810 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
20812         PR middle-end/31490
20813         * output.h (SECTION_RELRO): Define.
20814         (SECTION_MACH_DEP): Adjust.
20815         (get_variable_section): New prototype.
20816         * varpool.c (varpool_finalize_named_section_flags): New function.
20817         (varpool_assemble_pending_decls): Call it.
20818         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
20819         * cgraphunit.c (cgraph_output_in_order): Call
20820         varpool_finalize_named_section_flags.
20821         * varasm.c (get_section): Allow section flags conflicts between
20822         relro and read-only sections if the section hasn't been declared yet.
20823         Set SECTION_OVERRIDE after diagnosing section type conflict.
20824         (get_variable_section): No longer static.
20825         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
20826         readonly sections that need relocations.
20827         (decl_readonly_section_1): New function.
20828         (decl_readonly_section): Use it.
20830         Revert:
20831         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
20832                     Steve Ellcey  <sje@cup.hp.com>
20834         PR middle-end/31490
20835         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
20836         if section attribute used.
20838 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
20840         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
20841         * config/darwin.c (SECTION_NO_ANCHOR): Define.
20842         (darwin_init_sections): Remove assertion.
20844 2011-02-03  Nick Clifton  <nickc@redhat.com>
20846         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
20847         lt and ge.
20848         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
20849         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
20850         instead of "n" and "pz".
20851         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
20852         CC_FLAG_S.
20854 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
20856         PR target/47312
20857         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
20858         fma, expand FMA_EXPR as fma{,f,l} call.
20860         PR lto/47274
20861         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
20862         copy them into a unsigned char variable and pass address of it to
20863         lto_output_data_stream.
20865         PR target/47564
20866         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
20867         around backend_init_target and lang_dependent_init_target calls.
20868         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
20869         (verify_cgraph_node): Don't call set_cfun here.  Use
20870         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
20871         Set error_found for incorrectly represented calls to thunks.
20873 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
20875         PR debug/43092
20876         PR rtl-optimization/43494
20877         * rtl.h (for_each_inc_dec_fn): New type.
20878         (for_each_inc_dec): Declare.
20879         * rtlanal.c (struct for_each_inc_dec_ops): New type.
20880         (for_each_inc_dec_find_inc_dec): New fn.
20881         (for_each_inc_dec_find_mem): New fn.
20882         (for_each_inc_dec): New fn.
20883         * dse.c (struct insn_size): Remove.
20884         (replace_inc_dec, replace_inc_dec_mem): Remove.
20885         (emit_inc_dec_insn_before): New fn.
20886         (check_for_inc_dec): Use it, along with for_each_inc_dec.
20887         (canon_address): Pass mem modes to cselib_lookup.
20888         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
20889         (cselib_lookup_from_insn): Likewise.
20890         (cselib_subst_to_values): Likewise.
20891         * cselib.c (find_slot_memmode): New var.
20892         (cselib_find_slot): New fn.  Use it instead of
20893         htab_find_slot_with_hash everywhere.
20894         (entry_and_rtx_equal_p): Use find_slot_memmode.
20895         (autoinc_split): New fn.
20896         (rtx_equal_for_cselib_p): Rename and implement in terms of...
20897         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
20898         Deal with autoinc.  Special-case recursion into MEMs.
20899         (cselib_hash_rtx): Likewise.
20900         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
20901         address and MEM modes.
20902         (cselib_subst_to_values): Add memmode, pass it on.
20903         Deal with autoinc.
20904         (cselib_lookup): Add memmode argument, pass it on.
20905         (cselib_lookup_from_insn): Add memmode.
20906         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
20907         (struct cselib_record_autoinc_data): New.
20908         (cselib_record_autoinc_cb): New fn.
20909         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
20910         mode to cselib_lookup.  Reset autoinced REGs here instead of...
20911         (cselib_process_insn): ... here.
20912         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
20913         to cselib_lookup.
20914         (add_uses): Likewise, also to cselib_subst_to_values.
20915         (add_stores): Likewise.
20916         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
20917         cselib_subst_to_values.
20918         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
20919         * gcse.c (do_local_cprop): Adjusted.
20920         * postreload.c (reload_cse_simplify_set): Adjusted.
20921         (reload_cse_simplify_operands): Adjusted.
20922         * sel-sched-dump (debug_mem_addr_value): Pass mode.
20924 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
20926         PR tree-optimization/45122
20927         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
20928         unsafe assumptions when there's more than one loop exit.
20930 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
20932         PR target/47272
20933         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20934         Document using vector double with the load/store builtins, and
20935         that the load/store builtins always use Altivec instructions.
20937         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
20938         to use altivec memory instructions, even on VSX.
20939         (vector_altivec_store_<mode>): Ditto.
20941         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
20942         function.
20944         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20945         V2DF, V2DI support to load/store overloaded builtins.
20947         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
20948         altivec load/store builtins for V2DF/V2DI types.
20950         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20951         set avoid indexed addresses on power6 if -maltivec.
20952         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
20953         vector_altivec_load/vector_altivec_store builtins.
20954         (altivec_expand_st_builtin): Ditto.
20955         (altivec_expand_builtin): Add VSX memory builtins.
20956         (rs6000_init_builtins): Add V2DI types to internal types.
20957         (altivec_init_builtins): Add support for V2DF/V2DI altivec
20958         load/store builtins.
20959         (rs6000_address_for_altivec): Insure memory address is appropriate
20960         for Altivec.
20962         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
20963         vec_vsx_ld and vec_vsx_st.
20964         (vsx_store_<mode>): Ditto.
20966         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
20967         variables to hold long long types for VSX vector memory builtins.
20968         (RS6000_BTI_unsigned_long_long): Ditto.
20969         (long_long_integer_type_internal_node): Ditti.
20970         (long_long_unsigned_type_internal_node): Ditti.
20972         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
20973         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
20974         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
20976         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
20977         short cuts.
20978         (vec_vsx_st): Ditto.
20980 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
20982         * config/pa/pa-hpux10.opt: New.
20983         * config/hpux11.opt (pthread): New Driver option.
20984         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
20985         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
20987 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
20989         * config/ia64/vms.opt: New.
20990         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
20992 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
20994         PR target/47580
20995         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
20996         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
20997         generator functions.
20998         (vsx_floatuns<VSi><mode>2): Ditto.
20999         (vsx_fix_trunc<mode><VSi>2): Ditto.
21000         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
21002 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
21004         * config/i386/djgpp.opt (posix): New Driver option.
21006 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
21008         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
21009         Move to the unsupported targets list.
21011 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
21013         PR rtl-optimization/47525
21014         * df-scan.c: Update copyright years.
21015         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
21016         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
21018 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21020         * config/i386/sysv4.h (TARGET_VERSION): Remove.
21021         (SUBTARGET_RETURN_IN_MEMORY): Remove.
21022         (ASM_OUTPUT_ASCII): Remove.
21023         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
21025 2011-02-02  Jeff Law  <law@redhat.com>
21027         PR middle-end/47543
21028         * reload.c (find_reloads_address): Handle reg+d address where both
21029         components are invalid by reloading the entire address.
21031 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
21032             Richard Guenther  <rguenther@suse.de>
21034         PR tree-optimization/40979
21035         PR bootstrap/47044
21036         * passes.c (init_optimization_passes): After LIM call copy_prop
21037         and DCE to clean up.
21038         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
21040 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
21042         PR tree-optimization/47576
21043         PR tree-optimization/47555
21044         * doc/invoke.texi (scev-max-expr-complexity): Documented.
21045         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
21046         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
21047         * tree-scalar-evolution.c (follow_ssa_edge): Use
21048         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
21050 2011-02-02  Richard Guenther  <rguenther@suse.de>
21052         PR tree-optimization/47566
21053         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
21055 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
21057         PR debug/47106
21058         PR debug/47402
21059         * tree-inline.c (declare_return_variable): Remove unused caller
21060         variable.
21062         PR debug/47106
21063         PR debug/47402
21064         * tree-flow-inline.h (clear_is_used, is_used_p): New.
21065         * cfgexpand.c (account_used_vars_for_block): Use them.
21066         * tree-nrv.c (tree_nrv): Likewise.
21067         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
21068         (dump_scope_block): Likewise.
21069         (remove_unused_locals): Likewise.
21071         PR debug/47106
21072         PR debug/47402
21073         * tree-inline.c (declare_return_variable): Add result decl to
21074         local decls only once.
21075         * gimple-low.c (record_vars_into): Mark newly-created variables
21076         as referenced.
21078 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
21080         PR debug/47498
21081         PR debug/47501
21082         PR debug/45136
21083         PR debug/45130
21084         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21085         debug insns.
21086         (no_real_insns_p, schedule_block, set_priorities): Drop special
21087         treatment of boundary debug insns.
21088         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
21089         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
21090         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21091         (BOUNDARY_DEBUG_INSN_P): Likewise.
21092         (SCHEDULE_DEBUG_INSN_P): Likewise.
21093         * sched-rgn.c (init_ready_list): Drop special treatment of
21094         boundary debug insns.
21095         * final.c (rest_of_clean_state): Clear notes' BB.
21097 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21099         * config/openbsd.opt (assert=): New Driver option.
21101 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21103         * config/i386/nto.opt: New.
21104         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
21106 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21108         * config/i386/netware.opt: New.
21109         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
21111 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21113         * config/interix.opt (posix): New Driver option.
21115 2011-02-01  DJ Delorie  <dj@redhat.com>
21117         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
21119         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
21120         class for A0/A1.
21122 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
21124         PR tree-optimization/47561
21125         * toplev.c (process_options): Print the Graphite flags.  Add
21126         flag_loop_flatten to the list of options requiring Graphite.
21128 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21130         * config/i386/cygming.opt (posix): New Driver option.
21132 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21134         * config/arm/vxworks.opt: New.
21135         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
21137 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21139         * config/alpha/elf.opt: New.
21140         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
21141         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
21143 2011-02-01  Richard Guenther  <rguenther@suse.de>
21145         PR tree-optimization/47559
21146         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
21147         store-motion on references that can throw.
21149 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
21151         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
21152         * tree-pass.h (TDF_CSELIB): New macro.
21153         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
21154         cselib_lookup): Check for it rather than for TDF_DETAILS.
21156 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
21158         PR driver/47547
21159         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
21160         is HOST_BIT_BUCKET.
21162         * opts.c (finish_options): Don't add x_aux_base_name if it is
21163         HOST_BIT_BUCKET.
21165 2011-02-01  Richard Guenther  <rguenther@suse.de>
21167         PR tree-optimization/47555
21168         Revert
21169         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
21171         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
21173 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
21175         PR gcc/46692
21176         * config/lm32/t-lm32: Add multilib for all CPU options.
21178 2011-02-01  Richard Guenther  <rguenther@suse.de>
21180         PR tree-optimization/47541
21181         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
21182         sure to have a field at offset zero.
21184 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
21186         * config/arc/arc.opt (EB, EL): New Driver options.
21188 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
21190         * config/alpha/osf5.opt: New.
21191         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
21193 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
21195         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
21197 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
21199         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
21200         -floop-interchange.
21201         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
21202         is an alias of -floop-interchange and that it requires the
21203         Graphite infrastructure.
21204         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
21205         flag_loop_interchange based on the value of flag_tree_loop_linear.
21207 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
21208             Richard Guenther  <rguenther@suse.de>
21210         PR tree-optimization/47538
21211         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
21212         type instead of r1type, except for comparisons.  For right
21213         shifts and comparisons punt if there are mismatches in
21214         sizetype vs. non-sizetype types.
21216 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21218         * doc/sourcebuild.texi (Effective-Target Keywords): Document
21219         avx_runtime.
21221 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21223         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
21224         version number.
21225         * configure: Regenerate.
21227 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21229         * configure.ac (gcc_cv_ld_static_option): Define.
21230         (gcc_cv_ld_dynamic_option): Define.
21231         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
21232         instead.
21233         (HAVE_LD_STATIC_DYNAMIC): Update message.
21234         (LD_STATIC_OPTION): Define.
21235         (LD_DYNAMIC_OPTION): Define.
21236         * configure: Regenerate.
21237         * config.in: Regenerate.
21238         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
21239         HAVE_LD_STATIC_DYNAMIC]: Use them.
21241 2011-01-31  Nick Clifton  <nickc@redhat.com>
21243         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
21244         registers inside interrupt handlers if the handler is not a leaf
21245         function.
21247 2011-01-31  Nick Clifton  <nickc@redhat.com>
21249         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
21250         reg_renumber returning an INVALID_REGNUM.
21252 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
21254         PR libgcj/44341
21255         * doc/install.texi: Document host options discarded when cross
21256         configuring target libraries.
21258 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
21260         Reverted:
21261         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
21262         PR debug/45136
21263         PR debug/45130
21264         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21265         debug insns.
21266         (no_real_insns_p, schedule_block, set_priorities): Drop special
21267         treatment of boundary debug insns.
21268         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
21269         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
21270         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21271         (BOUNDARY_DEBUG_INSN_P): Likewise.
21272         (SCHEDULE_DEBUG_INSN_P): Likewise.
21273         * sched-rgn.c (init_ready_list): Drop special treatment of
21274         boundary debug insns.
21275         * final.c (rest_of_clean-state): Clear notes' BB.
21277 2011-01-31  Alan Modra  <amodra@gmail.com>
21279         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
21280         toc relative expressions as we do in print_operand_address.
21282 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
21284         * doc/extend.texi: Follow spelling conventions.
21285         * doc/invoke.texi: Fix a typo.
21287 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
21289         * config/hpux11.opt: New.
21290         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
21291         ia64*-*-hpux*): Use hpux11.opt.
21293 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
21295         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
21296         to tmake_file.
21298 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
21300         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
21301         support sites.
21303 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
21305         * doc/install.texi (Binaries): Remove outdated reference for
21306         Motorola 68HC11/68HC12 downloads.
21308 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
21310         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
21311         Drepper's paper.
21313 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
21315         PR bootstrap/47147
21316         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
21317         used by NetBSD.
21319 2011-01-28  Ahmad Sharif  <asharif@google.com>
21321         * value-prof.c (check_counter): Corrected error message.
21323 2011-01-29  Jie Zhang  <jie@codesourcery.com>
21325         * config/arm/arm.c (arm_legitimize_reload_address): New.
21326         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21327         arm_legitimize_reload_address.
21328         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
21330 2011-01-28  Ian Lance Taylor  <iant@google.com>
21332         * godump.c (go_define): Ignore macros whose definitions include
21333         two adjacent operands.
21335 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
21337         PR target/42894
21338         * varasm.c (force_const_mem): Store copy of x in desc->constant
21339         instead of x itself.
21340         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
21341         itself into REG_EQUAL note.
21343 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
21345         * config/freebsd.opt (posix, rdynamic): New Driver options.
21347 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21349         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
21350         -Bstatic/-Bdynamic.
21351         * configure: Regenerate.
21353 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
21355         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
21356         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
21358 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
21360         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
21361         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
21362         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21363         (s390_preferred_reload_class): Make static. Change return and
21364         'rclass' argument type to reg_class_t.
21366 2011-01-27  Jan Hubicka  <jh@suse.cz>
21368         PR middle-end/46949
21369         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
21370         (process_function_and_variable_attributes): Check defined weakrefs.
21372 2011-01-27  Martin Jambor  <mjambor@suse.cz>
21374         PR tree-optimization/47228
21375         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
21376         build_ref_for_offset.
21378 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21380         * config/spu/spu-elf.h (ASM_SPEC): Remove.
21382 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
21384         PR rtl-optimization/46856
21385         * postreload.c (reload_combine_recognize_const_pattern): Do not
21386         separate cc0 setter and user on cc0 targets.
21388 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
21390         PR c/43082
21391         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
21392         passed a VOID_TYPE expression, immediately emit an error and
21393         return error_mark_node.
21395 2011-01-26  Jeff Law  <law@redhat.com>
21397         PR rtl-optimization/47464
21398         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
21399         rather than may_trap_p as needed.
21401 2011-01-26  DJ Delorie  <dj@redhat.com>
21403         PR rtl-optimization/46878
21404         * combine.c (insn_a_feeds_b): Check for the implicit cc0
21405         setter/user dependency as well.
21407 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
21409         PR rtl-optimization/44469
21410         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
21411         after removing trivially dead basic blocks.
21413 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
21415         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
21416         * config/frv/frv.h (LINK_SPEC): Likewise.
21417         * config/i386/netware.h (LINK_SPEC): Likewise.
21418         * config/m68k/linux.h (ASM_SPEC): Likewise.
21419         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
21420         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
21421         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21422         * config/sparc/linux.h (ASM_SPEC): Likewise.
21423         * config/sparc/linux64.h (ASM_SPEC): Likewise.
21424         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21426 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
21428         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
21429         * config/frv/frv.h (ASM_SPEC): Likewise.
21430         * config/m68k/linux.h (ASM_SPEC): Likewise.
21431         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
21432         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
21433         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21434         * config/sparc/linux.h (ASM_SPEC): Likewise.
21435         * config/sparc/linux64.h (ASM_SPEC): Likewise.
21436         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21438 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
21440         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
21441         * config/frv/frv.h (LINK_SPEC): Likewise.
21442         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
21444 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
21446         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
21447         * config/frv/frv.h (ASM_SPEC): Likewise.
21448         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
21449         * config/m68k/linux.h (ASM_SPEC): Likewise.
21450         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
21451         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
21452         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21453         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
21454         * config/sparc/linux.h (ASM_SPEC): Likewise.
21455         * config/sparc/linux64.h (ASM_SPEC): Likewise.
21456         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21457         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
21459 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
21461         PR target/46997
21462         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
21463         (*mux2): Ditto.
21464         (vec_extract_evenodd_help): Ditto.
21465         (vec_extract_evenv4hi): Ditto.
21466         (vec_extract_oddv4hi): Ditto.
21467         (vec_interleave_lowv2si): Ditto.
21468         (vec_interleave_highv2si): Ditto.
21469         (vec_extract_evenv2si): Ditto.
21470         (vec_extract_oddv2si: Ditto.
21471         (vec_pack_trunc_v2si): Ditto.
21473 2011-01-22  Jan Hubicka  <jh@suse.cz>
21475         PR target/47237
21476         * cgraph.h (cgraph_local_info): New field can_change_signature.
21477         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
21478         signature can change.
21479         (ipcp_estimate_growth): Call sequence simplify only if calle signature
21480         can change.
21481         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
21482         (cgraph_function_versioning): We can not change signature of functions
21483         that don't allow that.
21484         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
21485         (lto_input_node): Likewise.
21486         * ipa-inline.c (compute_inline_parameters): Compute
21487         local.can_change_signature.
21488         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
21489         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
21490         functions that can not change signature.
21491         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
21492         init_cumulative_args): Do not use local calling conventions
21493         for functions that can not change signature.
21495 2011-01-22  Jan Hubicka  <jh@suse.cz>
21497         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
21499 2011-01-26  Richard Guenther  <rguenther@suse.de>
21501         PR tree-optimization/47190
21502         * cgraphunit.c (process_common_attributes): New function.
21503         (process_function_and_variable_attributes): Use it.
21505 2011-01-26  Richard Guenther  <rguenther@suse.de>
21507         PR lto/47423
21508         * cgraphbuild.c (record_eh_tables): Record reference to personality
21509         function.
21511 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
21513         PR debug/45454
21514         * sel-sched.c (moveup_expr): Don't let debug insns prevent
21515         non-debug insns from moving up.
21517 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
21519         PR target/40125
21520         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
21521         t-dlldir{,-x} fragment for build and add it to tmake_file.
21522         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
21523         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
21524         * config/i386/t-dlldir: New file.
21525         (SHLIB_DLLDIR): Define.
21526         * config/i386/t-dlldir-x: New file.
21527         (SHLIB_DLLDIR): Define.
21528         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
21529         (SHLIB_INSTALL): Use it.
21531 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
21533         PR target/47246
21534         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
21535         lower bound of the allowed Thumb-2 coprocessor load/store
21536         index range to -256. Add explaining comment.
21538 2011-01-25  Ian Lance Taylor  <iant@google.com>
21540         * godump.c (go_define): Improve lexing of macro expansion to only
21541         accept expressions which match Go spec.
21543 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
21545         PR c++/43601
21546         * tree.c (handle_dll_attribute): Handle it.
21547         * doc/extend.texi (@item dllexport): Mention it.
21548         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
21550 2011-01-25  Ian Lance Taylor  <iant@google.com>
21552         PR tree-optimization/26854
21553         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
21554         (decl_jump_unsafe): Move higher in file, with no other change.
21555         (bind): Set has_jump_unsafe_decl if appropriate.
21556         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
21557         (check_earlier_gotos): Likewise.
21558         (c_check_switch_jump_warnings): Likewise.
21560 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
21562         * doc/invoke.texi (Warning Options): Add missing hyphen.
21563         (-fprofile-dir): Minor grammatical fixes.
21564         (-fbranch-probabilities): Likewise.
21566 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
21568         PR debug/45136
21569         PR debug/45130
21570         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21571         debug insns.
21572         (no_real_insns_p, schedule_block, set_priorities): Drop special
21573         treatment of boundary debug insns.
21574         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
21575         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
21576         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21577         (BOUNDARY_DEBUG_INSN_P): Likewise.
21578         (SCHEDULE_DEBUG_INSN_P): Likewise.
21579         * sched-rgn.c (init_ready_list): Drop special treatment of
21580         boundary debug insns.
21581         * final.c (rest_of_clean-state): Clear notes' BB.
21583 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21585         * Makefile.in (LAMBDA_H): Removed.
21586         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
21587         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
21588         lambda-trans.o, and tree-loop-linear.o.
21589         (lto-symtab.o): Remove dependence on LAMBDA_H.
21590         (tree-loop-linear.o): Remove rule.
21591         (lambda-mat.o): Same.
21592         (lambda-trans.o): Same.
21593         (lambda-code.o): Same.
21594         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
21595         (tree-vect-slp.o): Same.
21596         * hwint.h (gcd): Moved here.
21597         (least_common_multiple): Same.
21598         * lambda-code.c: Removed.
21599         * lambda-mat.c: Removed.
21600         * lambda-trans.c: Removed.
21601         * lambda.h: Removed.
21602         * tree-loop-linear.c: Removed.
21603         * lto-symtab.c: Do not include lambda.h.
21604         * omega.c (gcd): Removed.
21605         * passes.c (init_optimization_passes): Remove pass_linear_transform.
21606         * tree-data-ref.c (print_lambda_vector): Moved here.
21607         (lambda_vector_copy): Same.
21608         (lambda_matrix_copy): Same.
21609         (lambda_matrix_id): Same.
21610         (lambda_vector_first_nz): Same.
21611         (lambda_matrix_row_add): Same.
21612         (lambda_matrix_row_exchange): Same.
21613         (lambda_vector_mult_const): Same.
21614         (lambda_vector_negate): Same.
21615         (lambda_matrix_row_negate): Same.
21616         (lambda_vector_equal): Same.
21617         (lambda_matrix_right_hermite): Same.
21618         * tree-data-ref.h: Do not include lambda.h.
21619         (lambda_vector): Moved here.
21620         (lambda_matrix): Same.
21621         (dependence_level): Same.
21622         (lambda_transform_legal_p): Removed declaration.
21623         (lambda_collect_parameters): Same.
21624         (lambda_compute_access_matrices): Same.
21625         (lambda_vector_gcd): Same.
21626         (lambda_vector_new): Same.
21627         (lambda_vector_clear): Same.
21628         (lambda_vector_lexico_pos): Same.
21629         (lambda_vector_zerop): Same.
21630         (lambda_matrix_new): Same.
21631         * tree-flow.h (least_common_multiple): Removed declaration.
21632         * tree-parloops.c (lambda_trans_matrix): Moved here.
21633         (LTM_MATRIX): Same.
21634         (LTM_ROWSIZE): Same.
21635         (LTM_COLSIZE): Same.
21636         (LTM_DENOMINATOR): Same.
21637         (lambda_trans_matrix_new): Same.
21638         (lambda_matrix_vector_mult): Same.
21639         (lambda_transform_legal_p): Same.
21640         * tree-pass.h (pass_linear_transform): Removed declaration.
21641         * tree-ssa-loop.c (tree_linear_transform): Removed.
21642         (gate_tree_linear_transform): Removed.
21643         (pass_linear_transform): Removed.
21644         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
21645         flag_loop_interchange.
21647 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
21649         PR tree-optimization/47265
21650         PR tree-optimization/47443
21651         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
21652         if name still has some uses.
21654 2011-01-25  Martin Jambor  <mjambor@suse.cz>
21656         PR tree-optimization/47382
21657         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
21658         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
21660 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
21662         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
21663         sjlj_except_unwind_info.
21665 2011-01-25  Richard Guenther  <rguenther@suse.de>
21667         PR tree-optimization/47426
21668         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
21669         visible functions results escape.
21671 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
21673         PR target/45701
21674         * config/arm/arm.c (any_sibcall_uses_r3): New function.
21675         (arm_get_frame_offsets): Use it.
21677 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21678             Jakub Jelinek  <jakub@redhat.com>
21680         PR tree-optimization/47271
21681         * tree-if-conv.c (bb_postdominates_preds): New.
21682         (if_convertible_bb_p): Call bb_postdominates_preds.
21683         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
21684         (predicate_scalar_phi): Call bb_postdominates_preds.
21686 2011-01-25  Nick Clifton  <nickc@redhat.com>
21688         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
21689         * config/rx/rx.c (rx_function_value): Likewise.
21690         (rx_promote_function_mode): Likewise.
21691         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
21692         in order to make it legitimate.
21693         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
21694         make sure that the first operand is the same as the result register.
21695         (addsi3_unspec): Delete.
21696         (subdi3): Do not accept immediate operands.
21697         (subdi3_internal): Likewise.
21699 2011-01-25  Jeff Law  <law@redhat.com>
21701         PR rtl-optimization/37273
21702         * ira-costs.c (scan_one_insn): Detect constants living in memory and
21703         handle them like argument loads from stack slots.  Do not double
21704         count memory for memory constants and argument loads from stack slots.
21706 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
21708         PR tree-optimization/47427
21709         PR tree-optimization/47428
21710         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21711         coalesce if the new root var would be TREE_READONLY.
21713 2011-01-25  Richard Guenther  <rguenther@suse.de>
21715         PR middle-end/47414
21716         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
21717         correct type for TBAA.
21719 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21721         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
21722         (close_phi_written_to_memory): Call for_each_index with
21723         dr_indices_valid_in_loop.
21725 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21727         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
21728         when it is initialized.
21730 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21732         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
21733         call to graphite_find_data_references_in_stmt.
21734         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
21735         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
21736         call to graphite_find_data_references_in_stmt.
21737         (analyze_drs_in_stmts): Same.
21738         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
21739         in which the scalar analysis of indices is performed.
21740         (create_data_ref): Same.  Update call to dr_analyze_indices.
21741         (find_data_references_in_stmt): Update call to create_data_ref.
21742         (graphite_find_data_references_in_stmt): Same.
21743         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
21744         declaration.
21745         (create_data_ref): Same.
21746         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
21747         call to create_data_ref.
21749 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21751         * graphite-sese-to-poly.c (build_poly_scop): Move
21752         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
21754 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21756         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
21757         VAR_DECL, PARM_DECL, and RESULT_DECL.
21759 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21761         * graphite-dependences.c (reduction_dr_1): Allow several reductions
21762         in a reduction PBB.
21763         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
21764         that have already been marked as PBB_IS_REDUCTION.
21766 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21768         * graphite-scop-detection.c (same_close_phi_node): New.
21769         (remove_duplicate_close_phi): New.
21770         (make_close_phi_nodes_unique): New.
21771         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
21773 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21775         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
21776         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
21777         of both data references to be the same.
21779 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21781         * graphite-dependences.c (build_lexicographical_constraint): Remove
21782         the gdim parameter.
21783         (build_lexicographical_constraint): Adjust call to
21784         ppl_powerset_is_empty.
21785         (dependence_polyhedron): Same.
21786         (graphite_legal_transform_dr): Same.
21787         (graphite_carried_dependence_level_k): Same.
21788         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
21789         parameter.
21790         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
21792 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21794         * graphite-sese-to-poly.c
21795         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
21796         (close_phi_written_to_memory): New.
21797         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
21798         and unshare_expr.
21800 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21802         * doc/install.texi: Update the expected version number of PPL to 0.11.
21803         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
21804         #if PPL_VERSION_MINOR < 11.
21806 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21808         * graphite-dependences.c: Include graphite-cloog-util.h.
21809         (new_poly_ddr): Inlined into dependence_polyhedron.
21810         (free_poly_ddr): Moved close by new_poly_ddr.
21811         (dependence_polyhedron_1): Renamed dependence_polyhedron.
21812         Early return NULL when ppl_powerset_is_empty returns true.
21813         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
21814         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
21815         (graphite_legal_transform_dr): Call new_poly_ddr.
21816         (graphite_carried_dependence_level_k): Same.
21817         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
21818         (dot_transformed_deps_stmt_1): Removed.
21819         (dot_deps_stmt_1): Call dot_deps_stmt_2.
21820         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
21821         (dot_deps_1): Call dot_deps_2.
21822         * Makefile.in (graphite-dependences.o): Add missing dependence on
21823         graphite-cloog-util.h.
21825 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21827         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
21828         (build_lexicographical_constraint): Same.
21829         (dependence_polyhedron_1): Same.
21830         (graphite_legal_transform_dr): Same.
21831         (graphite_carried_dependence_level_k): Same.
21832         * graphite-ppl.c (ppl_powerset_is_empty): New.
21833         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
21834         * tree-data-ref.c (dump_data_reference): Print the basic block index.
21836 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21838         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
21839         the "a followed by b" relation and document it.
21841 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21843         * graphite-dependences.c (build_lexicographical_constraint): Stop the
21844         iteration when the bag of constraints is empty.
21846 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21848         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
21850 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21852         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
21853         nest and two loop depths as parameters.
21854         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
21855         lst_perfect_nestify.
21857 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21859         * graphite-dependences.c (print_pddr): Call
21860         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
21862 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21864         * graphite-ppl.c (debug_gmp_value): New.
21865         * graphite-ppl.h (debug_gmp_value): Declared.
21867 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
21869         * doc/install.texi: Document availability of cloog-0.16.
21871 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
21873         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
21874         invalid postdominance info.
21876 2011-01-24  Jan Hubicka  <jh@suse.cz>
21878         PR c/21659
21879         * doc/extend.texi (weak pragma): Drop claim that it must
21880         appear before definition.
21881         * varasm.c (merge_weak, declare_weak): Only sanity check
21882         that DECL is not output at a time it is declared weak.
21884 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
21886         * machmode.def: Fixed comments.
21888 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
21890         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
21892 2011-01-24  Paul Koning  <ni1d@arrl.net>
21894         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
21895         WORDS_BIG_ENDIAN.
21897 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21899         PR target/46519
21900         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
21901         (block_info): Add scanned and prev.
21902         (move_or_delete_vzeroupper_2): Return if the basic block
21903         has been scanned and the upper 128bit state is unchanged
21904         from the last scan.
21905         (move_or_delete_vzeroupper_1): Return true if the exit
21906         state is changed.
21907         (move_or_delete_vzeroupper): Visit basic blocks using the
21908         work-list based algorithm based on vt_find_locations in
21909         var-tracking.c.
21911         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
21913 2011-01-24  Nick Clifton  <nickc@redhat.com>
21915         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
21916         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
21917         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
21918         then define __v850e1__.
21919         * doc/invoke.texi: Document -mv850es.
21921 2011-01-24  Richard Henderson  <rth@redhat.com>
21923         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
21924         compound unordered comparisons.
21925         * config/rx/rx.c (rx_split_fp_compare): Remove.
21926         * config/rx/rx-protos.h: Update.
21927         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
21928         (cbranchsf4): Don't call rx_split_fp_compare.
21929         (*cbranchsf4): Use rx_split_cbranch.
21930         (*cmpsf): Don't accept "i" constraint.
21931         (*conditional_branch): Only valid after reload.
21932         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
21934 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
21936         PR target/47385
21937         * config/rs6000/altivec.md (vector constant splitters): Add
21938         support for creating vector single precision constants if -mvsx is
21939         used and we would create the constant using Altivec primitives.
21941 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
21942             Richard Sandiford  <rdsandiford@googlemail.com>
21944         PR rtl-optimization/47166
21945         * reload1.c (emit_reload_insns): Disable the spill_reg_store
21946         mechanism for PRE_MODIFY and POST_MODIFY.
21947         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
21948         reloadreg.
21950 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
21952         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
21954 2011-01-22  Jan Hubicka  <jh@suse.cz>
21956         PR lto/47333
21957         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
21959 2011-01-22  Jan Hubicka  <jh@suse.cz>
21961         PR tree-optimization/43884
21962         PR lto/44334
21963         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
21964         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
21966 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
21968         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21969         * config/s390/s390.c (s390_register_move_cost,
21970         s390_memory_move_cost): New.
21971         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
21973 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21975         PR middle-end/47401
21976         * except.c (sjlj_assign_call_site_values): Move setting the
21977         crtl->uses_eh_lsda flag to ...
21978         (sjlj_mark_call_sites): ... here.
21979         (sjlj_emit_function_enter): Support NULL dispatch label.
21980         (sjlj_build_landing_pads): In a function with no landing pads
21981         that still has must-not-throw regions, generate code to register
21982         a personality function with empty LSDA.
21984 2011-01-21  Richard Henderson  <rth@redhat.com>
21986         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
21988         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
21990         * compare-elim.c: New file.
21991         * Makefile.in (OBJS-common): Add it.
21992         (compare-elim.o): New.
21993         * common.opt (fcompare-elim): New.
21994         * opts.c (default_options_table): Add OPT_fcompare_elim.
21995         * tree-pass.h (pass_compare_elim_after_reload): New.
21996         * passes.c (init_optimization_passes): Add it.
21997         * recog.h: Protect against re-inclusion.
21998         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
21999         * doc/invoke.texi (-fcompare-elim): Document it.
22000         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
22001         * doc/tm.texi: Rebuild.
22003 2011-01-22  Nick Clifton  <nickc@redhat.com>
22005         * config/rx/rx.md (cstoresf4): Pass comparison operator to
22006         rx_split_fp_compare.
22008 2011-01-22  Nick Clifton  <nickc@redhat.com>
22010         * config/rx/rx.md (UNSPEC_CONST): New.
22011         (deallocate_and_return): Wrap the amount popped off the stack in
22012         an UNSPEC_CONST in order to stop it being rejected by
22013         -mmax-constant-size.
22014         (pop_and_return): Add a "(return)" rtx.
22015         (call): Drop the immediate operand.
22016         (call_internal): Likewise.
22017         (call_value): Likewise.
22018         (call_value_internal): Likewise.
22019         (sibcall_internal): Likewise.
22020         (sibcall_value_internal): Likewise.
22021         (sibcall): Likewise.  Generate an explicit call using
22022         sibcall_internal.
22023         (sibcall_value): Likewise.
22024         (mov<>): FAIL if a constant operand is not legitimate.
22025         (addsi3_unpsec): New pattern.
22027         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
22028         (ok_for_max_constant): New function.
22029         (gen_safe_add): New function.
22030         (rx_expand_prologue): Use gen_safe_add.
22031         (rx_expand_epilogue): Likewise.
22032         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
22033         UNSPEC CONSTs.
22035 2011-01-21  Jeff Law  <law@redhat.com>
22037         PR tree-optimization/47053
22038         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
22039         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
22040         statements are deleted.
22041         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
22042         is nonempty, then purge dead edges and cleanup the CFG.
22044 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
22046         PR debug/47402
22047         Temporarily revert:
22048         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
22049         PR debug/47106
22050         * tree-dfa.c (create_var_ann): Mark variable as used.
22052 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
22054         PR middle-end/45566
22055         * except.c (convert_to_eh_region_ranges): Emit queued no-region
22056         notes from other section in hot/cold partitioning even if
22057         last_action is -3.  Increment call_site_base.
22059         PR rtl-optimization/47366
22060         * fwprop.c (forward_propagate_into): Return bool.  If
22061         any changes are made, -fnon-call-exceptions is used and
22062         REG_EH_REGION note is present, call purge_dead_edges
22063         and return true if it purged anything.
22064         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
22065         any EH edges were purged.
22067 2011-01-21  Jeff Law  <law@redhat.com>
22069         PR rtl-optimization/41619
22070         * caller-save.c (setup_save_areas): Break out code to determine
22071         which hard regs are live across calls by examining the reload chains
22072         so that it is always used.
22073         Eliminate code which checked REG_N_CALLS_CROSSED.
22075 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
22077         PR tree-optimization/47355
22078         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
22079         NOP has non-debug uses beyond PHIs in new_bb.
22081 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
22083         PR debug/47106
22084         * cfgexpand.c (account_used_vars_for_block): Only account vars
22085         that are annotated as used.
22086         (estimated_stack_frame_size): Don't set TREE_USED.
22087         * tree-dfa.c (create_var_ann): Mark variable as used.
22089 2011-01-21  Richard Guenther  <rguenther@suse.de>
22091         PR middle-end/47395
22092         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
22094 2011-01-21  Richard Guenther  <rguenther@suse.de>
22096         PR tree-optimization/47365
22097         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
22098         (vn_reference_lookup_pieces): Adjust.
22099         (vn_reference_lookup): Likewise.
22100         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
22101         (vn_reference_lookup_3): Only look through kills if in
22102         VN_WALKREWRITE mode.
22103         (vn_reference_lookup_pieces): Adjust.
22104         (vn_reference_lookup): Likewise.
22105         (visit_reference_op_load): Likewise.
22106         (visit_reference_op_store): Likewise.
22107         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
22108         (compute_avail): Likewise.
22109         (eliminate): Likewise.
22111 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
22113         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
22114         DECL_IGNORED_P non-reg vars if they are used.
22116         PR tree-optimization/47391
22117         * varpool.c (const_value_known_p): Return false if
22118         decl is volatile.
22120 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
22122         PR bootstrap/47215
22123         * config/i386/i386.c (ix86_local_alignment): Handle
22124         case for va_list_type_node is nil.
22125         (ix86_canonical_va_list_type): Likewise.
22127 2011-01-21  Alan Modra  <amodra@gmail.com>
22129         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
22130         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
22132 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22134         * config/arm/arm.md (define_attr type): Rename f_load
22135         and f_store to f_fpa_load and f_fpa_store. Update.
22136         (write_conflict): Deal with rename fallout.
22137         (*push_fp_multi): Likewise.
22138         * config/arm/fpa.md (f_load): Use f_fpa_load.
22139         (f_store): Use f_fpa_store.
22140         (*movsf_fpa): Likewise.
22141         (*movdf_fpa): Likewise.
22142         (*movxf_fpa): Likewise.
22143         (*thumb2_movsf_fpa): Likewise.
22144         (*thumb2_movdf_fpa): Likewise.
22145         (*thumb2_movxf_fpa): Likewise.
22146         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
22147         f_loadd and f_stored.
22148         (*thumb2_movdi_vfp): Likewise.
22149         (*thumb2_movsf_vfp): Fix attribute to f_loads.
22150         (*thumb2_movsi_vfp): Likewise.
22151         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
22152         Use f_loads instead of f_load.
22153         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
22155 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
22157         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22158         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
22159         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22160         (xtensa_mode_dependent_address_p): New function.
22161         (constantpool_address_p): Make static. Change return type to bool.
22162         Change argument type to const_rtx. Use CONST_INT_P predicate.
22164 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
22166         PR debug/46583
22167         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
22169 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
22171         PR debug/47283
22172         * cfgexpand.c (expand_debug_expr): Instead of generating
22173         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
22174         etc. handling.
22176 2011-01-20  Richard Guenther  <rguenther@suse.de>
22178         PR middle-end/47370
22179         * tree-inline.c (remap_gimple_op_r): Recurse manually for
22180         the pointer operand of MEM_REFs.
22182 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
22184         PR tree-optimization/46130
22185         * ipa-split.c (consider_split): If return_bb contains non-virtual
22186         PHIs other than for retval or if split_function would not adjust it,
22187         refuse to split.
22189 2011-01-20  Richard Guenther  <rguenther@suse.de>
22191         PR tree-optimization/47167
22192         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
22193         Revert previous change, only avoid enumeral type changes.
22195 2011-01-19  Mike Stump  <mikestump@comcast.net>
22197         * doc/tm.texi.in (BRANCH_COST): Englishify.
22198         * doc/tm.texi (BRANCH_COST): Likewise.
22200 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
22202         PR c++/47291
22203         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
22204         (gen_scheduled_generic_parms_dies): New functions.
22205         (gen_struct_or_union_type_die): Schedule template parameters DIEs
22206         generation for the end of CU compilation.
22207         (dwarf2out_finish): Generate template parameters DIEs here.
22209 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
22211         PR debug/46240
22212         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
22213         debug bind stmt on merge edges.
22215 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
22217         PR debug/47079
22218         PR debug/46724
22219         * function.c (instantiate_expr): Instantiate incoming rtl of
22220         implicit arguments, and recurse on VALUE_EXPRs.
22221         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
22222         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
22224 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
22226         * c-parser.c (c_parser_for_statement): Initialize
22227         collection_expression.
22229 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22231         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
22233 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22235         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
22236         (LINK_SHLIB_SPEC): Don't use %(link_path).
22237         (SUBTARGET_EXTRA_SPECS): Remove link_path.
22239 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22241         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
22242         (NO_SHARED_LIB_SUPPORT): Remove.
22243         (LINK_SHLIB_SPEC): Remove one conditional definition.
22245 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22247         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
22248         %{call_shared}.
22249         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
22250         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
22251         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
22252         %{call_shared} and conditionals on these options not being passed.
22253         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
22254         %{call_shared}.
22256 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
22258         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
22259         simplify.
22261         * ipa-split.c: Spelling fixes.
22263 2011-01-19  Richard Henderson  <rth@redhat.com>
22265         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
22266         (*mulsi3): Likewise.
22268         * longlong.h [__mn10300__] (count_leading_zeros): New.
22269         [__mn10300__] (umul_ppmm, smul_ppmm): New.
22270         [__mn10300__] (add_ssaaaa, subddmmss): New.
22271         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
22272         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
22274 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22276         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
22278 2011-01-19  Richard Henderson  <rth@redhat.com>
22280         * config/mn10300/mn10300.md (addsi3_flags): New.
22281         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
22282         (subsi3_flags, subc_internal, subdi3): New.
22283         (subdi3_internal, *subdi3_degenerate): New.
22284         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
22286         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
22287         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
22288         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
22289         * config/mn10300/mn10300-protos.h: Update.
22290         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
22291         (return_ret): Likewise.  Rename from return_internal_regs.
22292         (return_internal): Remove.
22294         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
22295         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
22296         (mn10300_legitimate_constant_p): Likewise.
22297         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
22298         (mn10300_frame_size): New.
22299         (mn10300_expand_prologue): Use it.
22300         (mn10300_expand_epilogue): Likewise.
22301         (mn10300_initial_offset): Likewise.
22302         * config/mn10300/mn10300-protos.h: Update.
22303         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
22304         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
22305         (prologue, epilogue, return_internal): Tidy output code.
22306         (mn10300_store_multiple_operation, return): Likewise.
22307         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
22308         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
22309         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
22310         (load_pic, am33_load_pic): New.
22311         (mn10300_load_pic0, mn10300_load_pic1): New.
22313         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
22314         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
22315         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
22316         (cc_flags_for_mode, cc_flags_for_code): New.
22317         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
22318         overflow flag is not valid.  Validate that the flags we need
22319         for the comparison are valid.
22320         (mn10300_output_cmp): Remove.
22321         (mn10300_output_add): New.
22322         (mn10300_select_cc_mode): Use cc_flags_for_code.
22323         (mn10300_split_cbranch): New.
22324         (mn10300_match_ccmode): New.
22325         (mn10300_split_and_operand_count): New.
22326         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
22327         to the function.
22328         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
22329         (addsi3): ... here.  Use mn10300_output_add.
22330         (*addsi3_flags): New.
22331         (*am33_subsi3, *mn10300_subsi3): Merge...
22332         (subsi3): ... here.  Use attribute isa.
22333         (*subsi3_flags): New.
22334         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
22335         when possible.
22336         (*am33_andsi3, *mn10300_andsi3): Merge...
22337         (andsi3): ... here.
22338         (*andsi3_flags): New.
22339         (andsi3 splitters): New.
22340         (*am33_iorsi3, *mn10300_iorsi3): Merge...
22341         (iorsi3): ... here.
22342         (*iorsi3_flags): New.
22343         (*am33_xorsi3, *mn10300_xorsi3): Merge...
22344         (xorsi3): ... here.
22345         (*xorsi3_flags): New.
22346         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
22347         (one_cmplsi2): ... here.
22348         (*one_cmplsi2_flags): New.
22349         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
22350         instead of "dax" in constraints.  Use mn10300_split_cbranch.
22351         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
22352         use matching constraints to eliminate a self-comparison.
22353         (*integer_conditional_branch): Rename from integer_conditional_branch.
22354         Use int_mode_flags to match CC_REG.
22355         (*cbranchsi4_btst, *btstsi): New.
22356         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
22357         mn10300_split_cbranch.
22358         (*am33_cmpsf): Rename from am33_cmpsf.
22359         (*float_conditional_branch): Rename from float_conditional_branch.
22360         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
22361         (zero_extendqisi2): ... here.
22362         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
22363         (zero_extendhisi2): ... here.
22364         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
22365         (extendqisi2): ... here.
22366         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
22367         (extendhisi2): ... here.
22368         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
22369         (ashlsi3): ... here.
22370         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
22371         (lshrsi3): ... here.
22372         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
22373         (ashrsi3): ... here.
22374         (consecutive add peephole): Remove.
22375         * config/mn10300/predicates.md (label_ref_operand): New.
22376         (int_mode_flags): New.
22377         (CCZN_comparison_operator): New.
22379         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
22380         (throughput_42_latency_43): New reservation.
22381         (mulsidi3, umulsidi3): New expanders.
22382         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
22383         the MDR register to allocation; separately allocate the low and
22384         high parts of the DImode result.
22385         (umulsidi3_internal): Similarly.
22386         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
22387         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
22388         (udivsi3, umodsi3): Remove.
22389         (udivmodsi4, divmodsi4): New expanders.
22390         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
22391         (*divmodsi4): Simiarly.
22392         (ext_internal): New.
22394         * config/mn10300/constraints.md ("z"): New constraint.
22395         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
22396         (FIXED_REGISTERS): Don't fix MDR.
22397         (CALL_USED_REGSITERS): Reformat nicely.
22398         (REG_ALLOC_ORDER): Add MDR.
22399         (enum regclass): Add MDR_REGS.
22400         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
22401         (IRA_COVER_CLASSES): Add MDR_REGS.
22402         (REGNO_REG_CLASS): Handle MDR_REG.
22403         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
22404         (mn10300_register_move_cost): Likewise.
22405         * config/mn10300/mn10300.md (MDR_REG): New.
22406         (*movsi_internal): Handle moves to/from MDR_REGS.
22408         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
22409         POST_MODIFY.
22410         (mn10300_secondary_reload): Tidy combination reload classes.
22411         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
22412         addresses for AM33.  Allow symbolic offsets for reg+imm.
22413         (mn10300_regno_in_class_p): New.
22414         (mn10300_legitimize_reload_address): New.
22415         * config/mn10300/mn10300.h (enum reg_class): Remove
22416         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
22417         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
22418         SP_OR_GENERAL_REGS.
22419         (REG_CLASS_NAMES): Update to match.
22420         (REG_CLASS_CONTENTS): Likewise.
22421         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
22422         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
22423         (REGNO_IN_RANGE_P): Remove.
22424         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
22425         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
22426         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
22427         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
22428         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
22429         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
22430         (REGNO_GENERAL_P): New.
22431         (HAVE_POST_MODIFY_DISP): New.
22432         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
22433         (LEGITIMIZE_RELOAD_ADDRESS): New.
22434         * config/mn10300/mn10300-protos.h: Update.
22436         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
22437         DATA_REGS for AM33 stack-pointer destination.
22438         (mn10300_preferred_output_reload_class): Likewise.
22439         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
22440         into a form appropriate for ...
22441         (TARGET_SECONDARY_RELOAD): New.
22442         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
22443         * config/mn10300/mn10300-protos.h: Update.
22444         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
22445         reload_insi; use the "A" constraint for the scratch; handle AM33
22446         moves of sp to non-address registers.
22448         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
22449         (*movqi_internal): ... here.
22450         (*am33_movhi, *mn10300_movhi): Merge into...
22451         (*movhi_internal): ... here.
22452         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
22453         as the source/destination of moves from/to SP.
22454         (movsf): Only allow for AM33-2.
22455         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
22456         any integer constant constraint.  Only allow for AM33-2.  Tidy
22457         all of the alternative outputs.
22458         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
22459         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
22460         for MN103.
22461         (udivsi3, umodsi3): New patterns for MN103 only.
22463 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
22465         * doc/tm.texi.in: Spell out that a lack of register class unions
22466         can lead to ICEs.
22467         * doc/tm.texi: Regenerate.
22469 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
22471         PR rtl-optimization/47337
22472         * dce.c (check_argument_store): New function.
22473         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
22475         PR tree-optimization/47290
22476         * tree-eh.c (infinite_empty_loop_p): New function.
22477         (cleanup_empty_eh): Use it.
22479 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
22481         PR target/46997
22482         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
22483         (a64_expand_widen_sum): Ditto.
22484         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
22485         (vec_extract_evenodd_help): Ditto.
22486         (vec_extract_evenv4hi): Ditto.
22487         (vec_extract_oddv4hi): Ditto.
22488         (vec_extract_evenv2si): Ditto.
22489         (vec_extract_oddv2si): Ditto.
22490         (vec_extract_evenv2sf): Ditto.
22491         (vec_extract_oddv2sf): Ditto.
22492         (vec_pack_trunc_v4hi: Ditto.
22493         (vec_pack_trunc_v2si): Ditto.
22494         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
22495         (vec_interleave_highv8qi): Ditto.
22496         (mix1_r): Ditto.
22497         (vec_extract_oddv8qi): Ditto.
22498         (vec_interleave_lowv4hi): Ditto.
22499         (vec_interleave_highv4hi): Ditto.
22500         (vec_interleave_lowv2si): Ditto.
22501         (vec_interleave_highv2si): Ditto.
22503 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22505         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
22506         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
22507         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
22508         (pa_c_mode_for_suffix): New.
22509         (TARGET_EXPAND_BUILTIN): Define.
22510         (TARGET_C_MODE_FOR_SUFFIX): Define.
22511         (pa_builtins): Define.
22512         (pa_init_builtins): Register __float128 type and init new support
22513         builtins.
22514         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
22515         * config/pa/quadlib.c (_U_Qfcopysign): New.
22517 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
22519         PR middle-end/46894
22520         * explow.c (allocate_dynamic_stack_space): Do not assume more than
22521         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
22522         are defined.
22524 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22526         PR tree-optimization/47179
22527         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
22528         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
22530 2011-01-18  Richard Guenther  <rguenther@suse.de>
22532         PR rtl-optimization/47216
22533         * emit-rtl.c: Include tree-flow.h.
22534         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
22535         of replicating it with different semantics.
22536         * Makefile.in (emit-rtl.o): Adjust.
22538 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22540         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
22541         (cortex_a9_dp): Handle neon types correctly.
22543 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
22545         PR rtl-optimization/47299
22546         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
22547         subtarget.  Use normal multiplication if both operands are constants.
22548         * expmed.c (expand_widening_mult): Don't try to optimize constant
22549         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
22550         before using it.
22552 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22554         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
22555         spacing after 'e.g.', typos, comma, hyphenation.
22557 2011-01-17  Richard Henderson  <rth@redhat.com>
22559         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
22560         (rx_restricted_mem_operand): New.
22561         (rx_shift_operand): Use register_operand.
22562         (rx_source_operand, rx_compare_operand): Likewise.
22563         * config/rx/rx.md (addsi3_flags): New expander.
22564         (adddi3): Rewrite as expander.
22565         (adc_internal, *adc_flags, adddi3_internal): New patterns.
22566         (subsi3_flags): New expander.
22567         (subdi3): Rewrite as expander.
22568         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
22570         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
22571         (rx_init_builtins): Remove sat builtin.
22572         (rx_expand_builtin): Likewise.
22573         * config/rx/rx.md (ssaddsi3): New.
22574         (*sat): Rename from sat.  Represent the CC_REG input.
22576         * config/rx/predicates.md (rshift_operator): New.
22577         * config/rx/rx.c (rx_expand_insv): Remove.
22578         * config/rx/rx-protos.h: Update.
22579         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
22580         operand to the canonical position.
22581         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
22582         (*bitclr, *bitclr_in_memory): Similarly.
22583         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
22584         (insv): Retain the zero_extract in the expansion.
22586         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
22587         (bswaphi2, bitinvert, revw): Likewise.
22589         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
22590         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
22591         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
22592         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
22593         (bitset, bitset_in_memory): Likewise.
22594         (bitinvert, bitinvert_in_memory): Likewise.
22595         (bitclr, bitclr_in_memory): Likewise.
22596         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
22597         (rx_strend, rx_cmpstrn): Likewise.
22598         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
22599         (bitop peep2 patterns): Remove.
22601         * config/rx/rx.c (rx_match_ccmode): New.
22602         * config/rx/rx-protos.h: Update.
22603         * config/rx/rx.md (abssi2): Clobber, don't set flags.
22604         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
22605         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
22606         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
22607         (fix_truncsfsi2, floatsisf2): Likewise.
22608         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
22609         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
22610         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
22611         (*subsi3_flags, *xorsi3_flags): New.
22613         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
22615         * config/rx/rx.c (rx_print_operand): Remove workaround for
22616         unsplit comparison operations.
22618         * config/rx/rx.md (movsicc): Split after reload.
22619         (*movsicc): Merge *movsieq and *movsine via match_operator.
22620         (*stcc): New pattern.
22622         * config/rx/rx.c (rx_float_compare_mode): Remove.
22623         * config/rx/rx.h (rx_float_compare_mode): Remove.
22624         * config/rx/rx.md (cstoresi4): Split after reload.
22625         (*sccc): New pattern.
22627         * config/rx/predicates.md (label_ref_operand): New.
22628         (rx_z_comparison_operator): New.
22629         (rx_zs_comparison_operator): New.
22630         (rx_fp_comparison_operator): New.
22631         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
22632         Validate that the flags are set properly for the comparison.
22633         (rx_gen_cond_branch_template): Remove.
22634         (rx_cc_modes_compatible): Remove.
22635         (mode_from_flags): New.
22636         (flags_from_code): Rename from flags_needed_for_conditional.
22637         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
22638         (rx_select_cc_mode): Likewise.
22639         (rx_split_fp_compare): New.
22640         (rx_split_cbranch): New.
22641         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
22642         (*cbranchsi4): Use match_operator and rx_split_cbranch.
22643         (*cbranchsf4): Similarly.
22644         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
22645         match_operator and rx_split_cbranch.
22646         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
22647         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
22648         (*cmpsi): Rename from cmpsi.
22649         (*tstsi): Rename from tstsi.
22650         (*cmpsf): Rename from cmpsf; use CC_Fmode.
22651         (*conditional_branch): Rename from conditional_branch.
22652         (*reveresed_conditional_branch): Remove.
22653         (b<code>): Remove expander.
22654         * config/rx/rx-protos.h: Update.
22656         * config/rx/rx.c (rx_compare_redundant): Remove.
22657         * config/rx/rx.md (cmpsi): Don't use it.
22658         * config/rx/rx-protos.h: Update.
22660         * config/rx/rx-modes.def (CC_F): New mode.
22661         * config/rx/rx.c (rx_select_cc_mode): New.
22662         * config/rx/rx.h (SELECT_CC_MODE): Use it.
22663         * config/rx/rx-protos.h: Update.
22665 2011-01-17  Richard Henderson  <rth@redhat.com>
22667         * except.c (dump_eh_tree): Fix stray ; after for statement.
22669 2011-01-17  Richard Guenther  <rguenther@suse.de>
22671         PR tree-optimization/47313
22672         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
22673         handling before copying the body.  Properly deal with
22674         by-reference result in SSA form.
22676 2011-01-17  Ian Lance Taylor  <iant@google.com>
22678         PR target/47219
22679         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
22680         (struct_value_alias_set): Don't define.
22681         (sparc_option_override): Don't set sparc_sr_alias_set and
22682         struct_value_alias_set.
22683         (save_or_restore_regs): Use gen_frame_mem rather than calling
22684         set_mem_alias_set.
22685         (sparc_struct_value_rtx): Likewise.
22687 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22689         PR target/47318
22690         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
22691         (_mm_maskstore_pd): Likewise.
22692         (_mm_maskload_ps): Likewise.
22693         (_mm_maskstore_ps): Likewise.
22694         (_mm256_maskload_pd): Change mask to __m256i.
22695         (_mm256_maskstore_pd): Likewise.
22696         (_mm256_maskload_ps): Likewise.
22697         (_mm256_maskstore_ps): Likewise.
22699         * config/i386/i386-builtin-types.def: Updated.
22700         (ix86_expand_special_args_builtin): Likewise.
22702         * config/i386/i386.c (bdesc_special_args): Update
22703         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
22704         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
22705         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
22706         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
22708         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
22709         Use <avxpermvecmode> on mask register.
22710         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
22712 2011-01-17  Olivier Hainque  <hainque@adacore.com>
22713             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22714             Eric Botcazou  <ebotcazou@adacore.com>
22716         PR target/46655
22717         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
22718         if <= USHRT_MAX in 32-bit mode.
22720 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22722         * doc/install.texi (Configuration, Specific): Wrap long
22723         lines in examples.  Allow line wrapping in long options
22724         and URLs where beneficial for PDF output.
22726 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
22728         * config/mips/mips.c (mips_classify_symbol): Don't return
22729         SYMBOL_PC_RELATIVE for nonlocal labels.
22731 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
22733         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
22735 2011-01-15  Jan Hubicka  <jh@suse.cz>
22737         PR tree-optimization/47276
22738         * ipa.c (function_and_variable_visibility): Do not try to mark alias
22739         declarations as needed.
22741 2011-01-15  Martin Jambor  <mjambor@suse.cz>
22743         * common.opt (fdevirtualize): New flag.
22744         * doc/invoke.texi (Option Summary): Document it.
22745         * opts.c (default_options_table): Add devirtualize flag.
22746         * ipa-prop.c (detect_type_change): Return immediately if
22747         devirtualize flag is not set.
22748         (detect_type_change_ssa): Likewise.
22749         (compute_known_type_jump_func): Likewise.
22750         (ipa_analyze_virtual_call_uses): Likewise.
22752 2011-01-14  Martin Jambor  <mjambor@suse.cz>
22754         PR tree-optimization/45934
22755         PR tree-optimization/46302
22756         * ipa-prop.c (type_change_info): New type.
22757         (stmt_may_be_vtbl_ptr_store): New function.
22758         (check_stmt_for_type_change): Likewise.
22759         (detect_type_change): Likewise.
22760         (detect_type_change_ssa): Likewise.
22761         (compute_complex_assign_jump_func): Check for dynamic type change.
22762         (compute_complex_ancestor_jump_func): Likewise.
22763         (compute_known_type_jump_func): Likewise.
22764         (compute_scalar_jump_functions): Likewise.
22765         (ipa_analyze_virtual_call_uses): Likewise.
22766         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
22768 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22770         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
22771         * config/i386/i386.opt (msse5): New Alias.
22773 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22775         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
22776         * config/sparc/linux64.h (CC1_SPEC): Likewise.
22777         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
22778         * config/sparc/sparc.h (CC1_SPEC): Likewise.
22780 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22782         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
22783         -mcpu options.
22784         * config/sparc/linux64.h (CC1_SPEC): Likewise.
22785         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
22786         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
22787         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
22788         Likewise.
22789         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
22791 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22793         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
22795 2011-01-14  Mike Stump  <mikestump@comcast.net>
22797         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
22798         * config/fr30/fr30.md: Likweise
22799         (movsi_push): Likewise.
22800         (movsi_pop): Likewise.
22801         (enter_func): Likewise.
22802         * config/moxie/moxie.md (movsi_push): Likewise.
22803         (movsi_pop): Likewise.
22805 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22807         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
22808         %{no_archive} %{exact_version}.
22809         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
22810         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
22811         %{no_archive} %{exact_version}.
22812         * config/mips/openbsd.h (LINK_SPEC): Likewise.
22813         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
22814         * config/mips/vxworks.h: Likewise.
22816 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22818         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
22820 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22822         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
22823         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
22825 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22827         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
22828         -nodefaultlib.
22830 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22832         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
22833         for mcpu not cpu.
22834         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
22835         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
22836         not cpu.
22837         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
22838         Don't handle -shlib.
22840 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22842         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
22843         (CC1_SPEC): Don't handle -profile.
22845 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22847         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
22848         * config/mips/mips.h (CC1_SPEC): Likewise.
22850 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22852         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
22853         * config/mips/mips.h (CC1_SPEC): Likewise.
22855 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22857         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
22858         * config/m32r/linux.h (LINK_SPEC): Likewise.
22859         * config/mips/linux.h (LINK_SPEC): Likewise.
22860         * config/mips/linux64.h (LINK_SPEC): Likewise.
22861         * config/sparc/linux.h (LINK_SPEC): Likewise.
22862         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
22863         LINK_SPEC): Likewise.
22864         * config/xtensa/linux.h (LINK_SPEC): Likewise.
22866 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22868         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
22869         %{version:-v}.
22870         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
22872 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22874         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
22875         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22877 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22879         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
22881 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22883         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
22884         supports -Bstatic/-Bdynamic.
22885         * configure: Regenerate.
22887 2011-01-14  Jan Hubicka  <jh@suse.cz>
22888             Jack Howarth  <howarth@bromo.med.uc.edu>
22890         PR target/46037
22891         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
22892         when checking debug_info_level. Test write_symbols instead of
22893         debug_hooks->var_location when setting flag_var_tracking_uninit.
22895 2011-01-14  Richard Guenther  <rguenther@suse.de>
22897         PR tree-optimization/47179
22898         * target.def (ref_may_alias_errno): New target hook.
22899         * targhooks.h (default_ref_may_alias_errno): Declare.
22900         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
22901         (default_ref_may_alias_errno): New function.
22902         * target.h (struct ao_ref_s): Declare.
22903         * tree-ssa-alias.c: Include target.h.
22904         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
22905         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
22906         (targhooks.o): Likewise.
22907         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
22908         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
22910 2011-01-14  Richard Guenther  <rguenther@suse.de>
22912         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
22914 2011-01-14  Richard Guenther  <rguenther@suse.de>
22916         PR tree-optimization/47280
22917         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
22918         return CFG changes.
22919         (tree_ssa_forward_propagate_single_use_vars): Deal with
22920         CFG changes from associate_plusminus.
22922 2011-01-14  Richard Guenther  <rguenther@suse.de>
22924         PR middle-end/47281
22925         Revert
22926         2011-01-11  Richard Guenther  <rguenther@suse.de>
22928         PR tree-optimization/46076
22929         * tree-ssa.c (useless_type_conversion_p): Conversions from
22930         unprototyped to empty argument list function types are useless.
22932 2011-01-14  Richard Guenther  <rguenther@suse.de>
22934         PR tree-optimization/47286
22935         * tree-ssa-structalias.c (new_var_info): Register variables are global.
22937 2011-01-14  Martin Jambor  <mjambor@suse.cz>
22939         PR middle-end/46823
22940         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
22942 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
22944         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
22945         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22946         * config/xtensa/xtensa.c (xtensa_libcall_value,
22947         xtensa_function_value_regno_p): New functions.
22948         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22950 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
22952         PR c++/47213
22953         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
22954         PE specific hook.
22955         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
22956         New function prototype.
22957         * config/i386/winnt.c (i386_pe_assemble_visibility):
22958         Warn only if attribute was specified by user.
22960 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
22962         PR target/47251
22963         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
22964         floating point.
22965         (floatunsdidf2_fcfidu): Ditto.
22967 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22969         * config/s390/s390.c (print_operand_address): Replace 'error' with
22970         'output_operand_lossage'.
22971         (print_operand): Likewise.
22973 2011-01-13  Jeff Law  <law@redhat.com>
22975         PR rtl-optimization/39077
22976         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
22977         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
22978         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
22979         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
22980         * gcse.c (prune_insertions_deletions): New function.
22981         (compute_pre_data): Use it.
22983 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
22985         PR debug/PR46973
22986         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
22987         static function.
22988         (prune_unused_types_mark): Use it.
22990 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
22992         PR rtl-optimization/45352
22993         * sel-sched.c: Update copyright years.
22994         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
22995         in the advancing loop when we have issued issue_rate insns.
22997 2011-01-12  Richard Henderson  <rth@redhat.com>
22999         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
23000         (TARGET_MD_ASM_CLOBBERS): New.
23002         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
23003         (TARGET_DELEGITIMIZE_ADDRESS): New.
23005         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
23006         (clzsi2, *bsch): New patterns.
23008         * config/mn10300/mn10300.md (INT): New mode iterator.
23009         (*mov<INT>_clr): New pattern, and peep2 to generate it.
23011         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
23012         flag_split_wide_types.
23014         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
23015         (mn10300_trampoline_init): Rewrite without a template, an immediate
23016         load and a direct branch.
23017         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
23019 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
23021         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23022         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
23023         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
23024         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23026 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
23028         PR debug/47209
23029         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
23030         of type.
23032 2011-01-12  Jan Hubicka  <jh@suse.cz>
23034         PR driver/47244
23035         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
23036         (PLUGIN_COND_CLOSE): New macro.
23037         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
23039 2011-01-12  Richard Guenther  <rguenther@suse.de>
23041         PR lto/47259
23042         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
23043         register variables in a MEM_REF.
23045 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
23047         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
23048         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
23049         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
23050         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
23051         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
23052         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
23053         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
23054         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
23055         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
23056         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
23057         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
23058         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
23059         * config/gnu-user.h: New.  Copied from linux.h.
23060         (LINUX_TARGET_STARTFILE_SPEC): Rename to
23061         GNU_USER_TARGET_STARTFILE_SPEC.
23062         (LINUX_TARGET_ENDFILE_SPEC): Rename to
23063         GNU_USER_TARGET_ENDFILE_SPEC.
23064         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
23065         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
23066         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
23067         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
23068         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
23069         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
23070         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
23071         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
23072         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
23073         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
23074         * config/arm/linux-eabi.h (CC1_SPEC): Use
23075         GNU_USER_TARGET_CC1_SPEC.
23076         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
23077         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
23078         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
23079         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
23080         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
23081         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
23082         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
23083         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
23085 2011-01-12  Richard Guenther  <rguenther@suse.de>
23087         PR other/46946
23088         * doc/invoke.texi (ffast-math): Document it is turned on
23089         with -Ofast.
23091 2011-01-12  Jan Hubicka  <jh@suse.cz>
23093         PR tree-optimization/47233
23094         * opts.c (common_handle_option): Disable ipa-reference with profile
23095         feedback.
23097 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
23099         * c-parser.c (c_parser_objc_at_property_declaration): Improved
23100         error message.
23102 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
23104         * c-parser.c (c_lex_one_token): Updated and reindented some
23105         comments.  No changes in code.
23107 2011-01-11  Ian Lance Taylor  <iant@google.com>
23109         * godump.c (go_output_var): Don't output the variable if there is
23110         already a type with the same name.
23112 2011-01-11  Ian Lance Taylor  <iant@google.com>
23114         * godump.c (go_format_type): Don't generate float80.
23116 2011-01-11  Richard Henderson  <rth@redhat.com>
23118         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
23119         declaration.  Rewrite for both speed and size.
23120         (mn10300_address_cost_1): Remove.
23121         (mn10300_register_move_cost): New.
23122         (mn10300_memory_move_cost): New.
23123         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
23124         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
23125         extensions, shifts, BSWAP, CLZ.
23126         (mn10300_wide_const_load_uses_clr): Remove.
23127         (TARGET_REGISTER_MOVE_COST): New.
23128         (TARGET_MEMORY_MOVE_COST): New.
23129         * config/mn10300/mn10300-protos.h: Update.
23130         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
23132         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
23133         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
23134         * config/mn10300/mn10300-protos.h: Update.
23135         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
23136         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
23137         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
23138         (*test_int_bitfield, *test_byte_bitfield): Remove.
23139         (*bit_test, *subreg_bit_test): Remove.
23140         * config/mn10300/predicates.md (const_8bit_operand): Remove.
23142         * config/mn10300/constraints.md ("c"): Rename from "A".
23143         ("A", "D"): New constraint letters.
23144         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
23145         (fmssf4, fnmasf4, fnmssf4): Likewise.
23147         * config/mn10300/mn10300.md (isa): New attribute.
23148         (enabled): New attribute.
23150         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
23151         (abssf2, negsf2): Define only for hardware fp.
23152         (sqrtsf2): Reformat.
23153         (addsf3, subsf3, mulsf3): Merge expander and insn.
23155         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
23156         (DEBUGGER_AUTO_OFFSET): Remove.
23157         (DEBUGGER_ARG_OFFSET): Remove.
23159         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
23160         Emit register stores with the same offsets as the hardware.
23161         (mn10300_store_multiple_operation): Don't check that the register
23162         save offsets are monotonic.
23163         * config/mn10300/mn10300-protos.h: Update.
23165         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
23167         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
23168         in terms of the value on the stack, not the MDR register.
23170 2011-01-11  Jan Hubicka  <jh@suse.cz>
23172         PR lto/45721
23173         PR lto/45375
23174         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
23175         (symbol_alias_set_destroy, symbol_alias_set_contains,
23176         propagate_aliases_backward): Declare.
23177         * lto-streamer-out.c (struct sets): New sturcture.
23178         (trivally_defined_alias): New function.
23179         (output_alias_pair_p): Rewrite.
23180         (output_unreferenced_globals): Fix output of alias pairs.
23181         (produce_symtab): Likewise.
23182         * ipa.c (function_and_variable_visibility): Set weak alias destination
23183         as needed in lto.
23184         * varasm.c (symbol_alias_set_t): Remove.
23185         (symbol_alias_set_destroy): Export.
23186         (propagate_aliases_forward, propagate_aliases_backward): New functions
23187         based on ...
23188         (compute_visible_aliases): ... this one; remove.
23189         (trivially_visible_alias): New
23190         (trivially_defined_alias): New.
23191         (remove_unreachable_alias_pairs): Rewrite.
23192         (finish_aliases_1): Reorganize code checking if alias is defined.
23193         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
23194         in LTO mode.
23196 2011-01-11  Richard Guenther  <rguenther@suse.de>
23198         PR tree-optimization/46076
23199         * tree-ssa.c (useless_type_conversion_p): Conversions from
23200         unprototyped to empty argument list function types are useless.
23202 2011-01-11  Richard Guenther  <rguenther@suse.de>
23204         PR middle-end/45235
23205         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
23206         volatile MEMs as MEM_READONLY_P.
23208 2011-01-11  Richard Guenther  <rguenther@suse.de>
23210         PR tree-optimization/47239
23211         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
23213 2011-01-11  Jeff Law  <law@redhat.com>
23215         PR tree-optimization/47086
23216         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
23217         IVs from statements that might throw.
23219 2011-01-10  Jan Hubicka  <jh@suse.cz>
23221         PR lto/45375
23222         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
23224 2011-01-10  Jan Hubicka  <jh@suse.cz>
23226         PR lto/45375
23227         * profile.c (read_profile_edge_counts): Ignore profile inconistency
23228         when correcting profile.
23230 2011-01-10  Jan Hubicka  <jh@suse.cz>
23232         PR lto/46083
23233         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
23234         DECL_FINI_PRIORITY.
23235         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
23236         Restore DECL_FINI_PRIORITY.
23238 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23240         * doc/gimple.texi: Fix quoting of multi-word return values in
23241         @deftypefn statements.  Ensure presence of return value.  Wrap
23242         overlong @deftypefn lines.
23243         (is_gimple_operand, is_gimple_min_invariant_address): Remove
23244         descriptions of removed functions.
23245         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
23246         of multi-word return value in @deftypefn statement.
23248 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23250         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
23251         (Conditional Expressions, Logical Operators)
23252         (Statement and operand traversals): Do not indent smallexample
23253         code.  Fix duplicate function argument in example.
23255 2011-01-10  Jeff Law  <law@redhat.com>
23257         PR tree-optimization/47141
23258         * ipa-split.c (split_function): Handle case where we are
23259         returning a value and the return block has a virtual operand phi.
23261 2011-01-10  Jan Hubicka  <jh@suse.cz>
23263         PR tree-optimization/47234
23264         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
23265         (pass_feedback_split_functions): Declare.
23266         * passes.c (init_optimization_passes): Add ipa-split as subpass of
23267         tree-profile.
23268         * ipa-split.c (gate_split_functions): Update comments; disable
23269         split-functions for profile_arc_flag and branch_probabilities.
23270         (gate_feedback_split_functions): New function.
23271         (execute_feedback_split_functions): New function.
23272         (pass_feedback_split_functions): New global var.
23274 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23276         PR lto/46760
23277         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
23278         calling gimple_call_set_cannot_inline.
23280 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
23282         * config/darwin-sections.def: Remove unused section.
23284 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
23286         PR c++/47218
23287         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
23289 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
23291         PR objc/47232
23292         * c-parser.c (c_parser_declaration_or_fndef): Improved
23293         error message.
23295 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
23297         * config/i386/winnt.c (i386_pe_start_function): Make sure
23298         to switch back to function's section.
23300 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
23302         PR gcc/46902
23303         PR testsuite/46912
23304         * plugin.c: Move include of dlfcn.h from here...
23305         * system.h: ... to here.
23307 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23309         * doc/cpp.texi (C++ Named Operators): Fix markup for header
23310         file name.
23311         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
23312         two extra empty pages in PDF output.
23314 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
23316         PR objc/47078
23317         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
23318         for error recovery purposes behave as if it was not specified so
23319         that the default type is usd.
23321 2011-01-07  Jan Hubicka  <jh@suse.cz>
23323         PR tree-optmization/46469
23324         * ipa.c (function_and_variable_visibility): Clear needed flags on
23325         nodes with external decls; handle weakrefs merging correctly.
23327 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
23329         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
23330         not false.
23332 2011-01-07  Jan Hubicka  <jh@suse.cz>
23334         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
23335         and no longer claim that gold is required for linker plugin.
23336         * configure: Regenerate.
23337         * gcc.c (PLUGIN_COND): New macro.
23338         (LINK_COMMAND_SPEC): Use it.
23339         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
23340         * config.in (HAVE_LTO_PLUGIN): New.
23341         * configure.ac (--with-lto-plugin): New parameter; autodetect
23342         HAVE_LTO_PLUGIN.
23344 2011-01-07  Jan Hubicka  <jh@suse.cz>
23346         PR tree-optimization/46367
23347         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
23348         when we can update original.
23349         (cgraph_mark_inline_edge): Sanity check.
23350         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
23352 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23354         * config/spu/spu.h (ASM_COMMENT_START): Define.
23356 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
23358         PR driver/42445
23359         * gcc.c (%>S): New.
23360         (SWITCH_KEEP_FOR_GCC): Likewise.
23361         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
23362         (do_spec_1): Handle "%>".
23364         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
23366 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
23368         PR target/47201
23369         * config/i386/i386.c (ix86_delegitimize_address): If
23370         simplify_gen_subreg fails, return orig_x.
23372         PR bootstrap/47187
23373         * value-prof.c (gimple_stringop_fixed_value): Handle
23374         lhs of the call properly.
23376 2011-01-07  Jan Hubicka  <jh@suse.cz>
23378         PR lto/45375
23379         * lto-opt.c (lto_reissue_options): Set flag_shlib.
23381 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
23383         * target.def (function_switched_text_sections): New hook.
23384         * doc/tm.texi: Regenerated.
23385         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
23386         * final.c (default_function_switched_text_sections): New.
23387         (final_scan_insn): Call function_switched_text_sections when a
23388         mid-function section change occurs.
23389         * output.h (default_function_switched_text_sections): Declare.
23390         * config/darwin-protos.h (darwin_function_switched_text_sections):
23391         Likewise.
23392         * config/darwin.c (darwin_function_switched_text_sections): New.
23393         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
23395 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
23397         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
23398         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
23399         the secondary code fragment when outputting for DWARF == 2.
23401 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
23403         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23404         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
23405         Remove.
23406         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
23407         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23409 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
23411         PR debug/46704
23412         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
23413         when it is not empty.
23415 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
23417         Bobcat Enablement
23418         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
23419         (case ${target}): Add btver1.
23420         * config/i386/driver-i386.c (host_detect_local_cpu): Let
23421         -march=native recognize btver1 processors.
23422         * config/i386/i386-c.c (ix86_target_macros_internal): Add
23423         btver1 def_and_undef
23424         * config/i386/i386.c (struct processor_costs btver1_cost): New
23425         btver1 cost table.
23426         (m_BTVER1): New definition.
23427         (m_AMD_MULTIPLE): Includes m_BTVER1.
23428         (initial_ix86_tune_features): Add btver1 tune.
23429         (processor_target_table): Add btver1 entry.
23430         (static const char *const cpu_names): Add btver1 entry.
23431         (software_prefetching_beneficial_p): Add btver1.
23432         (ix86_option_override_internal): Add btver1 instruction sets.
23433         (ix86_issue_rate): Add btver1.
23434         (ix86_adjust_cost): Add btver1.
23435         * config/i386/i386.h (TARGET_BTVER1): New definition.
23436         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
23437         (enum processor_type): Add PROCESSOR_BTVER1.
23438         * config/i386/i386.md (define_attr "cpu"): Add btver1.
23440 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23442         PR target/43309
23443         * config/i386/i386.c (legitimize_tls_address)
23444         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
23445         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
23446         (tls_initial_exec_64_sun): New pattern.
23448 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
23450         * doc/invoke.texi (Overall Options): Improve wording and markup
23451         of the description of -wrapper.
23453 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
23455         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
23456         rdynamic, threads): New Driver options.
23458 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23460         PR target/38118
23461         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
23462         if coming from .tdata.
23463         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
23465 2011-01-06  Jan Hubicka  <jh@suse.cz>
23467         PR lto/47188
23468         * collect2.c (main): Do not enable LTOmode when plugin is active.
23470 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23472         PR other/45915
23473         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
23474         --version output if supported.
23475         * configure: Regenerate.
23477 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
23479         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
23480         Driver options.
23482 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
23484         PR c/47150
23485         * c-convert.c (convert): When converting a complex expression
23486         other than COMPLEX_EXPR to a different complex type, ensure
23487         c_save_expr is called instead of save_expr, unless in_late_binary_op.
23488         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
23489         when converting COMPLEX_TYPE.
23491 2011-01-06  Ira Rosen  <irar@il.ibm.com>
23493         PR tree-optimization/47139
23494         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
23495         only the last reduction value is used outside the loop.  Update
23496         documentation.
23498 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
23500         * config/rtems.opt: New.
23501         * config.gcc (*-*-rtems*): Use rtems.opt.
23503 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
23505         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
23506         processors do not support 3DNow instructions.
23508 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23510         * config/spu/spu.c (spu_option_override): Set parameter
23511         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
23513 2011-01-05  Jan Hubicka  <jh@suse.cz>
23515         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
23516         at the command line.
23518 2011-01-05  Martin Jambor  <mjambor@suse.cz>
23520         PR lto/47162
23521         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
23522         deltas on streamed outgoing edges.
23523         (output_node_opt_summary): Output info for outgoing edges only when
23524         the node is in new parameter set.
23525         (output_cgraph_opt_summary): New parameter set, passed to the two
23526         aforementioned functions.  Update its forward declaration and its
23527         callee too.
23529 2011-01-05  Tom Tromey  <tromey@redhat.com>
23531         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
23532         operator to c_finish_omp_atomic.
23533         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
23534         (build_unary_op): Update.
23535         (build_modify_expr): Update.
23536         (build_asm_expr): Update.
23538 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23540         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
23541         newly inserted insns.
23542         (pad_bb): Likewise.
23543         (spu_emit_branch_hint): Likewise.
23544         (insert_hbrp_for_ilb_runout): Likewise.
23545         (spu_machine_dependent_reorg): Call df_finish_pass after
23546         schedule_insns returns.
23548 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23550         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
23552 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
23554         PR tree-optimization/47005
23555         * tree-sra.c (struct access): Add 'non_addressable' bit.
23556         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
23557         (decide_one_param_reduction): Return 0 if the parameter is passed by
23558         reference and one of the accesses in the group is non_addressable.
23560 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
23562         PR tree-optimization/47056
23563         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
23564         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
23565         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
23567 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
23569         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
23570         initializer.  Skip view conversions from aggregate types.
23572 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
23574         PR bootstrap/47055
23575         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
23577 2011-01-04  Philipp Thomas  <pth@suse.de>
23579         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
23580         obvious typo.
23582 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23584         * function.c (thread_prologue_and_epilogue_insns): Do not crash
23585         on empty epilogue sequences.
23587 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
23589         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
23590         non-static): New Driver options.
23592 2011-01-04  Jie Zhang  <jie@codesourcery.com>
23594         PR driver/47137
23595         * gcc.c (default_compilers[]): Set combinable field to 0
23596         for all assembly languages.
23598 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
23600         * config/mips/loongson3a.md: New file.
23601         * config/mips/mips.md: Include loongson3a.md.
23602         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
23603         TUNE_LOONGSON_3A.
23605 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
23607         PR middle-end/47017
23608         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
23609         instead of convert_memory_address_addr_space on the base expression.
23611 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23613         * config/spu/spu.c (spu_option_override): Update error text
23614         for bad -march= / -mtune= values.
23616 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23618         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
23619         if branch-hint optimization will be performed.
23621 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
23623         PR tree-optimization/47148
23624         * ipa-split.c (split_function): Convert arguments to
23625         DECL_ARG_TYPE if possible.
23627         PR tree-optimization/47155
23628         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
23629         when computing uns.
23631         PR rtl-optimization/47157
23632         * combine.c (try_combine): If undobuf.other_insn becomes
23633         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
23634         and set *new_direct_jump_p too.
23636 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
23638         PR tree-optimization/47021
23639         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
23641 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
23643         * gcc.c (process_command): Update copyright notice dates.
23644         * gcov.c (print_version): Likewise.
23645         * gcov-dump.c (print_version): Likewise.
23646         * mips-tfile.c (main): Likewise.
23647         * mips-tdump.c (main): Likewise.
23649 2011-01-03  Martin Jambor  <mjambor@suse.cz>
23651         PR tree-optimization/46801
23652         * tree-sra.c (type_internals_preclude_sra_p): Check whether
23653         aggregate fields start at byte boundary instead of the bit-field flag.
23655 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23657         PR driver/47137
23658         * gcc.c (main): Revert revision 168407.
23660 2011-01-03  Martin Jambor  <mjambor@suse.cz>
23662         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
23664 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23666         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
23667         vector optab to expand vector/scalar shift, update gimple to vector.
23669 2011-01-03  Martin Jambor  <mjambor@suse.cz>
23671         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
23672         a thunk.
23674 2011-01-03  Martin Jambor  <mjambor@suse.cz>
23676         PR tree-optimization/46984
23677         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
23678         HOST_WIDE_INT.
23679         (cgraph_create_indirect_edge): Fixed line length.
23680         (cgraph_indirect_call_info): Declare.
23681         (cgraph_make_edge_direct) Update declaration.
23682         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
23683         (cgraph_create_indirect_edge): Use it.
23684         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
23685         callees.
23686         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
23687         the new thunk_delta representation.
23688         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
23689         HOST_WIDE_INT.
23690         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
23691         (ipa_read_indirect_edge_info): Likewise.
23692         * lto-cgraph.c (output_edge_opt_summary): New function.
23693         (output_node_opt_summary): Call it on all outgoing edges.
23694         (input_edge_opt_summary): New function.
23695         (input_node_opt_summary): Call it on all outgoing edges.
23697 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
23699         PR driver/47137
23700         * gcc.c (main): Don't check have_o when settting combine_inputs.
23702 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
23704         * regrename.c: Add general comment describing the pass.
23705         (struct du_head): Remove 'length' field.
23706         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
23707         (regrename_optimize): Do not sort chains.  Rework comments, add others.
23708         Force renaming to the preferred class (if any) in the first pass and do
23709         not consider registers that belong to it in the second pass.
23710         (create_new_chain): Do not set 'length' field.
23711         (scan_rtx_reg): Likewise.
23713 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
23715         PR tree-optimization/47140
23716         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
23717         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
23718         to bit_value_binop.
23720         PR rtl-optimization/47028
23721         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
23722         parm_birth_insn instead of at the beginning of first bb.
23724 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
23726         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
23727         Remove the word "see" before "@pxref".
23728         * doc/rtl.texi: Remove the word "see" before "@pxref".
23730 2011-01-01  Jan Hubicka  <jh@suse.cz>
23732         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
23733         memory.
23735 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
23737         PR target/38662
23738         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
23741 Copyright (C) 2011 Free Software Foundation, Inc.
23743 Copying and distribution of this file, with or without modification,
23744 are permitted in any medium without royalty provided the copyright
23745 notice and this notice are preserved.