OSDN Git Service

Check TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4         of TARGET_64BIT.
5         (PTRDIFF_TYPE): Likewise.
6
7 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
8
9         PR target/49920
10         * config/i386/i386.md (strset): Do not expand strset_singleop
11         when %eax or $edi are fixed.
12         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
13         (*strsetsi_1): Ditto.
14         (*strsethi_1): Ditto.
15         (*strsetqi_1): Ditto.
16         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
17         (*rep_stossi): Ditto.
18         (*rep_stosqi): Ditto.
19         (cmpstrnsi): Also fail when %ecx is fixed.
20         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
21         (*cmpstrnqi_1): Ditto.
22         (*strlenqi_1): Ditto.
23         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
24         (*strmovsi_1): Ditto.
25         (*strmovhi_1): Ditto.
26         (*strmovqi_1): Ditto.
27         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
28         (*rep_movsi): Ditto.
29         (*rep_movqi): Ditto.
30
31 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
32
33         PR target/47908
34         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
35         Disable instruction scheduling for non-ColdFire targets.
36         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
37
38 2011-07-31  Revital Eres  <revital.eres@linaro.org>
39
40         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
41         of anti-dep edge from a branch.
42         (add_cross_iteration_register_deps): Create anti-dep edge from
43         a branch.
44
45 2011-07-31  Revital Eres  <revital.eres@linaro.org>
46
47         * modulo-sched.c: Change comment.
48         (reset_sched_times): Fix print message.
49         (print_partial_schedule): Add print info.
50
51 2011-07-31  Tom de Vries  <tom@codesourcery.com>
52
53         PR middle-end/43513
54         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
55         get_object_alignment and TYPE_ALIGN.
56
57 2011-07-30  Tom de Vries  <tom@codesourcery.com>
58
59         PR middle-end/43513
60         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
61         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
62
63 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
64
65         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
66         <sys/sbd.h>.
67         (cpu_types): New array.
68         (cputype): New function.
69         (host_detect_local_cpu): Only define buf, f if !__sgi__.
70         Use scaninvent instead of /proc/cpuinfo if __sgi__.
71         * config.host: Also use driver-native.o, mips/x-native on
72         mips-sgi-irix*.
73         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
74         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
75         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
76
77 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
78
79         PR middle-end/49897
80         PR middle-end/49898
81         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
82         in nested parallel and outer is a gimple_reg, mark it as addressable
83         and set its bit in task_shared_vars bitmap too.
84
85 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
86
87         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
88
89 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
90
91         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
92         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
93         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
94         AMASK_LOCKPFTCHOK): Define.
95         (host_detect_local_cpu): Remove buf, f, cpu_names.
96         Define cpu_types, implver, amask.
97         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
98         native CPU.
99         * config.host: Also use driver-alpha.o, alpha/x-alpha on
100         alpha*-dec-osf*.
101         * config/alpha/osf5.h [__alpha__ || __alpha]
102         (host_detect_local_cpu): Declare.
103         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
104         (DRIVER_SELF_SPECS): Define.
105
106 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
107
108         PR target/47715
109         * config/i386/i386.md (*load_tp_x32): New.
110         (*load_tp_x32_zext): Ditto.
111         (*add_tp_x32): Ditto.
112         (*add_tp_x32_zext): Ditto.
113         (*load_tp_<mode>): Disable for TARGET_X32 targets.
114         (*add_tp_<mode>): Ditto.
115         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
116         ptr_mode and convert to Pmode if needed.
117
118 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
119
120         PR target/49687
121         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
122         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
123         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
124         Add X to register footprint: Clobber r26/r27.
125
126 2011-07-29  Richard Guenther  <rguenther@suse.de>
127
128         * builtins.c (fold_builtin_signbit): Build the comparison
129         with a proper type.
130
131 2011-07-29  Richard Guenther  <rguenther@suse.de>
132
133         PR tree-optimization/49893
134         * tree-predcom.c (suitable_reference_p): Volatile references
135         are not suitable.
136
137 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
138
139         PR target/49313
140         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
141         (__ctzsi2): Result for 0 may be undefined.
142         (__ctzhi2): Result for 0 may be undefined.
143         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
144         (__popcountsi2): Ditto. And don't clobber r26.
145         (__popcountdi2): Ditto. And don't clobber r27.
146         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
147         (parityhi2): New expand.
148         (paritysi2): New expand.
149         (popcounthi2): New expand.
150         (popcountsi2): New expand.
151         (clzhi2): New expand.
152         (clzsi2): New expand.
153         (ctzhi2): New expand.
154         (ctzsi2): New expand.
155         (ffshi2): New expand.
156         (ffssi2): New expand.
157         (copysignsf3): New insn.
158         (bswapsi2): New expand.
159         (*parityhi2.libgcc): New insn.
160         (*parityqihi2.libgcc): New insn.
161         (*paritysihi2.libgcc): New insn.
162         (*popcounthi2.libgcc): New insn.
163         (*popcountsi2.libgcc): New insn.
164         (*popcountqi2.libgcc): New insn.
165         (*popcountqihi2.libgcc): New insn-and-split.
166         (*clzhi2.libgcc): New insn.
167         (*clzsihi2.libgcc): New insn.
168         (*ctzhi2.libgcc): New insn.
169         (*ctzsihi2.libgcc): New insn.
170         (*ffshi2.libgcc): New insn.
171         (*ffssihi2.libgcc): New insn.
172         (*bswapsi2.libgcc): New insn.
173
174 2011-07-29  Richard Guenther  <rguenther@suse.de>
175
176         * tree-vrp.c (get_value_range): Only set parameter default
177         definitions to varying, leave others at undefined.
178         (extract_range_from_binary_expr): Fix undefined handling.
179         (vrp_visit_phi_node): Handle merged undefined state.
180
181 2011-07-29  Wei Guozhi  <carrot@google.com>
182
183         PR rtl-optimization/49799
184         * combine.c (make_compound_operation): Check if the bit field is valid
185         before change it to bit field extraction.
186
187 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
188
189         PR rtl-optimization/49891
190         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
191         newly created returnjumps.
192
193 2011-07-28  DJ Delorie  <dj@redhat.com>
194
195         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
196         local frame in a naked function, and produce a suitable error for
197         that specific case.
198
199         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
200         registers to be reloaded in HI classes when the target is HI.
201
202 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
203
204         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
205         bound_one, bound_two.
206
207 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
208
209         PR middle-end/48648
210         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
211         CLAST assignments.
212         (translate_clast): Same.
213         (translate_clast_assignment): New.
214
215 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
216
217         PR tree-optimization/49876
218         * sese.c (rename_uses): Do not return false on gloog_error: set
219         the new_expr to integer_zero_node and continue code generation.
220         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
221
222 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
223
224         PR debug/49846
225         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
226         arguments also check if they aren't initialized with a MODE_INT
227         mode of the same size.
228
229 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
230
231         * expr.c (get_bit_range): Handle *MEM_REF's.
232
233 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
234
235         * rtlanal.c (tablejump_p): False for returns.
236         * reorg.c (first_active_target_insn): New static function.
237         (find_end_label): Set JUMP_LABEL for a new returnjump.
238         (optimize_skip, get_jump_flags, rare_destination,
239         mostly_true_jump, get_branch_condition,
240         steal_delay_list_from_target, own_thread_p,
241         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
242         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
243         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
244         * jump.c (delete_related_insns): Likewise.
245         (jump_to_label_p): New function.
246         (redirect_target): New static function.
247         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
248         (redirect_jump_1): Assert that the new label is nonnull.
249         (redirect_jump): Likewise.
250         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
251         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
252         exit block.
253         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
254         changed.  Ensure that the right label is passed to redirect_jump.
255         * function.c (emit_return_into_block,
256         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
257         ret_rtx in their JUMP_LABEL.
258         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
259         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
260         pass ret_rtx as label.
261         * cfglayout.c (fixup_reorder_chain): Use
262         force_nonfallthru_and_redirect rather than force_nonfallthru.
263         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
264         * rtl.h (ANY_RETURN_P): New macro.
265         (jump_to_label_p): Declare.
266         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
267         JUMP_LABELs.
268         (mark_target_live_regs): Likewise.
269         * basic-block.h (force_nonfallthru_and_redirect): Declare.
270         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
271         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
272         alpha_tablejump_best_label): Remove functions.
273         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
274         alpha_tablejump_best_label): Remove declarations.
275         * config/sh/sh.c (barrier_align, split_branches): Adjust for
276         ret_rtx in JUMP_LABELs.
277         * config/arm/arm.c (is_jump_table): Likewise.
278
279 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
280
281         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
282         special predicate.  Remove explicit mode checks.
283
284 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
285
286         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
287         DW_AT_data_member_location containing just DW_OP_plus_uconst.
288
289         PR debug/49871
290         * dwarf2out.c (size_of_die, value_format, output_die): Use
291         DW_FORM_udata instead of DW_FORM_data[48] for
292         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
293
294 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
295
296         * config/i386/i386.md (*tls_global_dynamic_64): Update
297         length attribute.
298
299 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
300
301         PR target/47715
302         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
303         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
304         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
305         (tls_dynamic_gnu2_64): Ditto.
306         (*tls_dynamic_gnu2_lea_64): Ditto.
307         (*tls_dynamic_gnu2_call_64): Ditto.
308         (*tls_dynamic_gnu2_combine_64): Ditto.
309
310 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
311
312         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
313
314 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
315
316         PR target/47364
317         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
318
319 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
320
321         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
322         before the core constraints. Adjust attributes.
323         ("*thumb2_movdf_vfp"): Likewise.
324
325 2011-07-28  Kai Tietz  <ktietz@redhat.com>
326
327         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
328         (simplify_truth_ops_using_ranges): Likewise.
329         (build_assert_expr_for): Likewise.
330         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
331         and handle BIT_NOT_EXPR for truth-operation.
332
333 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
334
335         PR target/49313
336         Undo r176835 from trunk
337         2011-07-27  Georg-Johann Lay
338
339 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
340
341         PR target/49687
342         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
343         Add _muluhisi3, _mulshisi3, _usmulhisi3.
344         * config/avr/libgcc.S (__mulsi3): Rewrite.
345         (__mulhisi3): Rewrite.
346         (__umulhisi3): Rewrite.
347         (__usmulhisi3): New.
348         (__muluhisi3): New.
349         (__mulshisi3): New.
350         (__mulohisi3): New.
351         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
352         declare.
353         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
354         (pseudo_register_or_const_int_operand): New.
355         (combine_pseudo_register_operand): New.
356         (u16_operand): New.
357         (s16_operand): New.
358         (o16_operand): New.
359         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
360         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
361         (any_extend, any_extend2): New code iterators.
362         (extend_prefix): New code attribute.
363         (mulsi3): Rewrite. Turn insn to expander.
364         (mulhisi3): Ditto.
365         (umulhisi3): Ditto.
366         (usmulhisi3): New expander.
367         (*mulsi3): New insn-and-split.
368         (mulu<mode>si3): New insn-and-split.
369         (muls<mode>si3): New insn-and-split.
370         (mulohisi3): New insn-and-split.
371         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
372         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
373         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
374         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
375         insn-and-split.
376         (*mulsi3_call): Rewrite.
377         (*mulhisi3_call): Rewrite.
378         (*umulhisi3_call): Rewrite.
379         (*usmulhisi3_call): New insn.
380         (*muluhisi3_call): New insn.
381         (*mulshisi3_call): New insn.
382         (*mulohisi3_call): New insn.
383         (extendqihi2): Use combine_pseudo_register_operand as predicate
384         for operand 1.
385         (extendqisi2): Ditto.
386         (zero_extendqihi2): Ditto.
387         (zero_extendqisi2): Ditto.
388         (zero_extendhisi2): Ditto.
389         (extendhisi2): Ditto. Don't early-clobber operand 0.
390
391 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
392
393         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
394
395 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
396
397         PR tree-optimization/49471
398         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
399         iv only when the largest type is unsigned.  Do not call
400         lang_hooks.types.type_for_size.
401
402 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
403
404         PR middle-end/45450
405         * graphite-poly.c (apply_poly_transforms): Disable legality check
406         after an openscop read.
407
408 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
409
410         PR middle-end/47691
411         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
412         copy_bb_and_scalar_dependences.
413         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
414         (graphite_copy_stmts_from_block): Update call to rename_uses.
415         (copy_bb_and_scalar_dependences): Update call to
416         graphite_copy_stmts_from_block.
417         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
418
419 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
420
421         PR target/49313
422         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
423         (__ctzsi2): Result for 0 may be undefined.
424         (__ctzhi2): Result for 0 may be undefined.
425         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
426         (__popcountsi2): Ditto. And don't clobber r26.
427         (__popcountdi2): Ditto. And don't clobber r27.
428         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
429         (parityhi2): New expand.
430         (paritysi2): New expand.
431         (popcounthi2): New expand.
432         (popcountsi2): New expand.
433         (clzhi2): New expand.
434         (clzsi2): New expand.
435         (ctzhi2): New expand.
436         (ctzsi2): New expand.
437         (ffshi2): New expand.
438         (ffssi2): New expand.
439         (copysignsf3): New insn.
440         (bswapsi2): New expand.
441         (*parityhi2.libgcc): New insn.
442         (*parityqihi2.libgcc): New insn.
443         (*paritysihi2.libgcc): New insn.
444         (*popcounthi2.libgcc): New insn.
445         (*popcountsi2.libgcc): New insn.
446         (*popcountqi2.libgcc): New insn.
447         (*popcountqihi2.libgcc): New insn-and-split.
448         (*clzhi2.libgcc): New insn.
449         (*clzsihi2.libgcc): New insn.
450         (*ctzhi2.libgcc): New insn.
451         (*ctzsihi2.libgcc): New insn.
452         (*ffshi2.libgcc): New insn.
453         (*ffssihi2.libgcc): New insn.
454         (*bswapsi2.libgcc): New insn.
455
456 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
457
458         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
459         the mode of symbolic_opreand RTXes.
460
461 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
462
463         * config/i386/predicates.md (x86_64_movabs_operand): Return false
464         for pic_32bit_operand RTXes.
465         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
466         in DImode.
467
468 2011-07-27  Kai Tietz  <ktietz@redhat.com>
469
470         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
471         for 32-bit, too.
472         (ix86_handle_abi_attribute): Allow function attributes
473         ms_abi/sysv_abi in 32-bit mode, too.
474         * doc/extend.texi: Adjust attribute documentation.
475
476         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
477         expression handling.
478         (and_var_with_comparison_1): Likewise.
479
480 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
481
482         * params.h (ALLOW_STORE_DATA_RACES): New.
483         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
484         * Makefile.in (expr.o): Depend on PARAMS_H.
485         * machmode.h (get_best_mode): Add argument.
486         * fold-const.c (optimize_bit_field_compare): Add argument to
487         get_best_mode.
488         (fold_truthop): Same.
489         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
490         * expr.c (emit_group_store): Same.
491         (copy_blkmode_from_reg): Same.
492         (write_complex_part): Same.
493         (optimize_bitfield_assignment_op): Add argument.
494         Add argument to get_best_mode.
495         (get_bit_range): New.
496         (expand_assignment): Calculate maxbits and pass it down accordingly.
497         (store_field): New argument.
498         (expand_expr_real_2): New argument to store_field.  Include params.h.
499         * expr.h (store_bit_field): New argument.
500         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
501         into account maxbits.
502         * calls.c (store_unaligned_arguments_into_pseudos): New argument
503         to store_bit_field.
504         * expmed.c (store_bit_field_1): New argument.  Use it.
505         (store_bit_field): Same.
506         (store_fixed_bit_field): Same.
507         (store_split_bit_field): Same.
508         (extract_bit_field_1): Pass new argument to get_best_mode.
509         (extract_bit_field): Same.
510         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
511         * doc/invoke.texi: Document parameter allow-store-data-races.
512
513 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
514
515         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
516
517 2011-07-27  Kai Tietz  <ktietz@redhat.com>
518
519         * tree-vrp.c (extract_range_from_binary_expr): Remove
520         TRUTH-binary cases and add new bitwise-cases.
521         (extract_range_from_assignment): Likewise.
522         (register_edge_assert_for_1): Likeiwise.
523         (register_edge_assert_for): Likewise.
524         (simplify_truth_ops_using_ranges): Likewise.
525         (simplify_stmt_using_ranges): Likewise.
526
527 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
528
529         PR target/47372
530         * config/i386/i386.c (ix86_delegitimize_address): Call
531         simplify_gen_subreg for PIC with mode of x only if modes of
532         x and orig_x are different.
533
534 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
535
536         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
537         to GC allocated copy of the string.
538         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
539         before .debug_line, not after it.
540
541 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
542
543         PR middle-end/47046
544         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
545         evolution_function_is_affine_p on CHREC_RIGHT.
546
547 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
548
549         * tree-data-ref.c (max_stmt_executions_tree): Do not call
550         lang_hooks.types.type_for_size.
551
552 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
553
554         PR middle-end/47653
555         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
556         loops using wrapping semantics.
557
558 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
559
560         PR middle-end/48805
561         * tree-scalar-evolution.c (instantiate_scev_r): Return
562         chrec_dont_know for ADDR_EXPR.
563
564 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
565             H.J. Lu  <hongjiu.lu@intel.com>
566
567         PR target/47369
568         PR target/49853
569         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
570         if legitimize_tls_address returned operand in wrong mode. Allow
571         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
572         if legitimize_pic_address returned operand in wrong mode.
573
574 2011-07-26  Martin Jambor  <mjambor@suse.cz>
575
576         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
577         return false for invariants.
578
579 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
580
581         * config/i386/i386.md (add->lea splitter): Implement using SWI
582         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
583         (add->lea zext splitter): Change operand 2 predicate to
584         x86_64_nonmemory_operand.
585
586 2011-07-26  Richard Guenther  <rguenther@suse.de>
587
588         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
589         frequency makes everything hot.
590
591 2011-07-26  Richard Guenther  <rguenther@suse.de>
592
593         PR tree-optimization/49840
594         * tree-vrp.c (range_fits_type_p): Properly handle full
595         double-int precision.
596
597 2011-07-26  Martin Jambor  <mjambor@suse.cz>
598
599         PR bootstrap/49786
600         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
601         counts.
602         (update_specialized_profile): Likewise.
603
604 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
605             H.J. Lu  <hongjiu.lu@intel.com>
606
607         PR target/47381
608         PR target/49832
609         PR target/49833
610         * config/i386/i386.md (i): Change SImode attribute to "e".
611         (g): Change SImode attribute to "rme".
612         (di): Change SImode attribute to "nF".
613         (general_operand): Change SImode attribute to x86_64_general_operand.
614         (general_szext_operand): Change SImode attribute to
615         x86_64_szext_general_operand.
616         (immediate_operand): Change SImode attribute to
617         x86_64_immediate_operand.
618         (nonmemory_operand): Change SImode attribute to
619         x86_64_nonmemory_operand.
620         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
621         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
622         (*lea_1): Use SWI48 mode iterator.
623         (*lea_1_zext): New insn pattern.
624         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
625         (*bt<mode>): Ditto.
626         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
627         Update operand constraints.
628         (addsi_1_zext): Ditto.
629         (*add<mode>2): Ditto.
630         (*addsi_3_zext): Ditto.
631         (*subsi_1_zext): Ditto.
632         (*subsi_2_zext): Ditto.
633         (*subsi_3_zext): Ditto.
634         (*addsi3_carry_zext): Ditto.
635         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
636         (*mulsi3_1_zext): Ditto.
637         (*andsi_1): Ditto.
638         (*andsi_1_zext): Ditto.
639         (*andsi_2_zext): Ditto.
640         (*<any_or:code>si_1_zext): Ditto.
641         (*<any_or:code>si_2_zext): Ditto.
642         (*test<mode>_1): Use <general_operand> predicate for operand 1.
643         (*and<mode>_2): Ditto.
644         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
645         (add->lea splitter): Check operand modes in insn constraint.  Extend
646         operands less than SImode wide to SImode.
647         (add->lea zext splitter): Do not extend input operands to DImode.
648         (*lea_general_1): Handle only QImode and HImode operands.
649         (*lea_general_2): Ditto.
650         (*lea_general_3): Ditto.
651         (*lea_general_1_zext): Remove.
652         (*lea_general_2_zext): Ditto.
653         (*lea_general_3_zext): Ditto.
654         (*lea_general_4): Check operand modes in insn constraint.  Extend
655         operands less than SImode wide to SImode.
656         (ashift->lea splitter): Ditto.
657         * config/i386/i386.c (ix86_print_operand_address): Print address
658         registers with 'q' modifier on 64bit targets.
659         * config/i386/predicates.md (pic_32bit_opreand): Define as special
660         predicate.  Reject non-SI and non-DI modes.
661
662 2011-07-25  Andrew Pinski  <apinski@cavium.com>
663
664         PR tree-opt/49671
665         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
666         TREE_THIS_NOTRAP into the inner most MEM_REF.
667         Always copy TREE_THIS_VOLATILE.
668         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
669         arguments are not volatile references.
670
671 2011-07-25  Richard Henderson  <rth@redhat.com>
672
673         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
674         * final.c (final_scan_insn): Don't test for it.
675         (rest_of_clean_state): Likewise.
676
677 2011-07-25  Richard Henderson  <rth@redhat.com>
678
679         PR debug/49841
680         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
681         (emit_frame_save): Likewise.
682         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
683         insn onto a dummy blockage insn after the join label.
684
685 2011-07-25  Richard Henderson  <rth@redhat.com>
686
687         * dwarf2cfi.c (dw_trace_info): Add ID member.
688         (get_trace_index): Remove.  Change users to use ID member.
689         (before_next_cfi_note): New.
690         (connect_traces): Remove unreachable traces before the main loop.
691         Look across one trace and generate remember/restore_state if needed.
692
693 2011-07-25  Richard Henderson  <rth@redhat.com>
694
695         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
696
697 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
698
699         * genattr.c (write_upcase, gen_attr <enum definition writing>):
700         Move to ...
701         * genattr-common.c ... here.
702         (main): Call gen_attr.
703         * optc-gen.awk: Make generated program include insn-attr-common.h .
704         * Makefile.in (oprions.o): Depend on insn-attr-common.h
705
706 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
707
708         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
709         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
710         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
711         m32c_print_operand, m32c_print_operand_address): Remove.
712         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
713         Change return type to bool. Change argument type to bool.
714         (m32c_print_operand, m32c_print_operand_address): Make static.
715         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
716         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
717
718 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
719
720         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
721         attributes): Document mmap.
722
723 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
724
725         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
726         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
727         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
728         mmix_print_operand, mmix_print_operand_address): Remove.
729         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
730         Change return type to bool. Change argument type to bool.
731         (mmix_print_operand, mmix_print_operand_address): Make static.
732         (mmix_intval, mmix_output_condition): Change 'x' argument type
733         to const_rtx.
734         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
735         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
736
737 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
738
739         PR target/39386
740         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
741         shift counter for x << x and x >> x shifts.
742
743 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
744
745         PR target/47124
746         * config.gcc: Reject *-*-solaris2 configuration.
747
748 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
749
750         PR tree-optimization/49809
751         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
752         gimple_get_lhs instead of gimple_assign_lhs.
753
754 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
755
756         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
757
758 2011-07-25  Richard Guenther  <rguenther@suse.de>
759
760         PR tree-optimization/49822
761         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
762         more.  Make sure to preserve stmts with side-effects.  Properly
763         handle virtual defs, follow a longer def chain.
764
765 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
766
767         PR plugins/45348
768         PR plugins/48425
769         PR plugins/46577
770         * Makefile.in: Do not flatten c-family directory when installing
771         plugin headers.
772
773 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
774
775         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
776         original nodes if we are dealing with virtual clones.
777
778 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
779
780         * common/config/c6x/c6x-common.c: New file.
781
782 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
783
784         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
785
786 2011-07-25  Richard Guenther  <rguenther@suse.de>
787
788         PR tree-optimization/49715
789         * tree-vrp.c: Include expr.h and optabs.h.
790         (range_fits_type_): New function.
791         (simplify_float_conversion_using_ranges): Likewise.
792         (simplify_stmt_using_ranges): Call it.
793         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
794         * optabs.c (can_float_p): Export.
795         * optabs.h (can_float_p): Declare.
796
797 2011-07-25  Richard Guenther  <rguenther@suse.de>
798
799         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
800         (get_value_range): For out-of-range SSA names or names created
801         after propagation return a read-only varying range.
802         (dump_all_value_ranges): Adjust.
803         (vrp_initialize): Likewise.
804         (vrp_finalize): Likewise.
805
806 2011-07-24  Richard Henderson  <rth@redhat.com>
807
808         PR debug/49831
809         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
810         them entirely.
811
812 2011-07-24  Richard Henderson  <rth@redhat.com>
813
814         PR debug/49825
815         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
816         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
817
818 2011-07-24  Richard Henderson  <rth@redhat.com>
819
820         PR debug/49827
821         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
822
823 2011-07-24  Richard Henderson  <rth@redhat.com>
824
825         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
826         Zero args_size for abnormal edges.  Adjust all callers.
827
828 2011-07-24  Richard Henderson  <rth@redhat.com>
829
830         PR debug/49825
831         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
832
833 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
834
835         PR bootstrap/49835
836         * collect2.c (demangle_flag): Removed.
837
838 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
839
840         * configure.ac (demangler_in_ld): Default to yes.
841         * configure: Regenerated.
842         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
843         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
844         --no-demangle options straight through to ld.  When
845         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
846         way that has the intended effect on Windows.
847
848 2011-07-23  Richard Henderson  <rth@redhat.com>
849
850         * dwarf2cfi.c: Include basic-block.h.
851         (dw_label_info): Remove.
852         (trace_work_list, trace_index): New.
853         (remember_row, emit_cfa_remember): Remove.
854         (dw_trace_info_hash, dw_trace_info_eq): New.
855         (get_trace_index, get_trace_info): New.
856         (save_point_p): New.
857         (free_cfi_row): Remove.
858         (add_cfi): Do not emit DW_CFA_remember_state.
859         (cfa_row_equal_p): New.
860         (barrier_args_size): Remove.
861         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
862         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
863         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
864         (dwarf2out_cfi_begin_epilogue): Remove.
865         (dwarf2out_frame_debug_restore_state): Remove.
866         (connect_traces, create_pseudo_cfg): New.
867         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
868         * Makefile.in (dwarf2cfi.o): Update.
869
870 2011-07-23  Richard Henderson  <rth@redhat.com>
871
872         * dwarf2cfi.c (dw_trace_info): New.
873         (dw_label_info): New.
874         (cie_return_save): New.
875         (cur_trace): New.
876         (queued_args_size): Rename from args_size.  Update all users.
877         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
878         (def_cfa_1): Use cur_trace instead of cfa_*.
879         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
880         (clobbers_queued_reg_save, reg_saved_in): Likewise.
881         (dwarf2out_frame_debug_expr): Likewise.
882         (create_cie_data): Split out from ...
883         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
884
885 2011-07-23  Richard Henderson  <rth@redhat.com>
886
887         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
888         Update all users to match.
889         (execute_dwarf2_frame): Free reg_saved_in_data.
890
891 2011-07-23  Richard Henderson  <rth@redhat.com>
892
893         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
894         (queued_reg_saves): Don't GTY.  Change to a VEC.
895         (queue_reg_save): Update to match.
896         (dwarf2out_flush_queued_reg_saves): Likewise.
897         (clobbers_queued_reg_save): Likewise.
898         (reg_saved_in): Likewise.
899         (execute_dwarf2_frame): Free queued_reg_saves.
900
901 2011-07-23  Richard Henderson  <rth@redhat.com>
902
903         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
904
905 2011-07-23  Richard Henderson  <rth@redhat.com>
906
907         * dwarf2cfi.c (add_cfi_args_size): Split out from...
908         (dwarf2out_args_size): ... here.
909         (add_cfi_restore): Split out from ...
910         (dwarf2out_frame_debug_cfa_restore): ... here.
911         (def_cfa_0): Split out from ...
912         (def_cfa_1): ... here.
913         (cfi_oprnd_equal_p, cfi_equal_p): New.
914         (change_cfi_row): New.
915         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
916         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
917         (output_cfis): Remove.
918         * dwarf2out.c (output_fde): Simplify output_cfi loop.
919         (dwarf2out_switch_text_section): Don't call output_cfis.
920         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
921         * dwarf2out.h: Update decls.
922         (enum dw_val_class): Add dw_val_class_none.
923
924 2011-07-23  Richard Henderson  <rth@redhat.com>
925
926         * dwarf2cfi.c (update_row_reg_save): New.
927         (dwarf2out_frame_debug_cfa_expression): Use it.
928         (dwarf2out_frame_debug_cfa_restore): Likewise.
929         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
930
931 2011-07-23  Richard Henderson  <rth@redhat.com>
932
933         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
934
935 2011-07-23  Richard Henderson  <rth@redhat.com>
936
937         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
938         (cie_cfi_row): New.
939         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
940         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
941         (cur_row, remember_row): New.
942         (def_cfa_1): Use cur_row instead of the old_* variables.
943         (dwarf2out_frame_debug_restore_state): Similarly.
944         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
945         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
946         (dwarf2out_frame_debug_adjust_cfa): Likewise.
947         (dwarf2out_frame_debug_cfa_offset): Likewise.
948         (dwarf2out_frame_debug_expr): Likewise.
949         (execute_dwarf2_frame): Set up cur_row.
950         * dwarf2out.h (struct cfa_loc): Mark for GTY.
951
952 2011-07-23  Richard Henderson  <rth@redhat.com>
953
954         * basic-block.h (EDGE_PRESERVE): New.
955         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
956         * bb-reorder.c: Include except.h.
957         (fix_up_crossing_landing_pad): New.
958         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
959         landing pads in the right partition.  Duplicate as necessary.
960         (partition_hot_cold_basic_blocks): Fix up DF info after
961         duplicating landing pads.
962         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
963         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
964         is set properly.  Validate that EH edges are not CROSSING.
965         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
966         (dw2_build_landing_pads): ... here.
967         (convert_to_eh_region_ranges): Remove code to fixup crossing
968         landing pads.
969         * except.h (expand_dw2_landing_pad_for_region): Declare.
970         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
971
972 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
973
974         PR target/49816
975         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
976
977 2011-07-22  Jason Merrill  <jason@redhat.com>
978
979         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
980
981 2011-07-22  Richard Henderson  <rth@redhat.com>
982
983         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
984
985 2011-07-22  Richard Henderson  <rth@redhat.com>
986
987         * jump.c (maybe_propagate_label_ref): Split out of...
988         (mark_all_labels): ... here.  Do not attempt label_ref
989         propagation while in cfglayout mode.
990
991 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
992
993         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
994         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
995         (dwarf_attr_name): Handle DW_AT_GNU_macros.
996         (dwarf2out_define): If the vector is empty and
997         lineno is 0, emit a dummy entry first.
998         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
999         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
1000         optimize_macinfo_range): New functions.
1001         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
1002         mergeable, optimize longer strings using
1003         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
1004         optimize longer sequences of define/undef ops from headers
1005         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
1006         emit a section headers.
1007         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
1008         and macinfo_section_label to DEBUG_MACRO_SECTION
1009         resp. DEBUG_MACRO_SECTION_LABEL.
1010         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
1011         instead of DW_AT_macro_info.
1012
1013         PR other/32998
1014         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
1015         options.
1016         * dwarf2out.c: Include opts.h.
1017         (dchar_p): New typedef.  Define heap VEC for it.
1018         (producer_string): New variable.
1019         (gen_producer_string): New function.
1020         (gen_compile_unit_die): Use it.
1021         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
1022         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
1023         * doc/invoke.texi: Document -grecord-gcc-switches and
1024         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
1025         to -frecord-gcc-switches description.
1026
1027 2011-07-22  Jason Merrill  <jason@redhat.com>
1028
1029         PR c++/30112
1030         * c-decl.c (c_linkage_bindings): Define.
1031
1032 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
1033
1034         PR debug/49815
1035         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
1036
1037 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
1038
1039         * config/i386/i386.c (ix86_option_override_internal): Disallow
1040         MS ABI in x32 mode.
1041         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
1042         only for TARGET_LP64.
1043         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
1044
1045 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1046
1047         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
1048         avoid warnings when GCC is built with a C++ compiler.
1049
1050 2011-07-22  Martin Jambor  <mjambor@suse.cz>
1051
1052         PR lto/49796
1053         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
1054         if decl node is in another partition, call cgraph_get_node only once.
1055
1056 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
1057
1058         * config.gcc (x86_64-*-linux*): Set
1059         default_gnu_indirect_function to yes.
1060
1061 2011-07-22  Richard Guenther  <rguenther@suse.de>
1062
1063         PR tree-optimization/45819
1064         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
1065         preserve volatile and notrap flags.
1066
1067 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1068             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1069
1070         PR bootstrap/49794
1071         * configure.ac: Test AM_ICONV with CXX.
1072         * configure: Regenerate.
1073         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
1074
1075 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1076
1077         PR bootstrap/49797
1078         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
1079         (set_cloog_options): Use it.
1080
1081 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
1082
1083         PR c++/49756
1084         * gcc.c (main): Call stack_limit_increase (64MB).
1085         * toplev.c (toplev_main): Likewise.
1086
1087 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1088
1089         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
1090         instead of force_reg.
1091
1092 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1093
1094         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
1095         needed and use force_reg after convert.
1096         (ix86_expand_call): Likewise.
1097         (ix86_expand_special_args_builtin): Likewise.
1098         (ix86_expand_builtin): Likewise.
1099
1100 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1101
1102         PR middle-end/47654
1103         PR middle-end/49649
1104         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
1105         in parameter.  Initialize v1 and v2 based on the values returned
1106         by clast_name_to_lb_ub.
1107         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
1108         values.
1109         (type_for_clast_bin): Same.
1110         (type_for_clast_expr): Same.
1111         (type_for_clast_eq): Update calls to type_for_clast_expr.
1112         (type_for_clast_for): Same.
1113         (build_iv_mapping): Same.
1114         * graphite-ppl.h (value_min): New.
1115
1116 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1117
1118         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
1119         types whenever possible.
1120
1121 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1122
1123         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
1124         and ub fields.
1125         (new_clast_name_index): Add lb and ub parameters.
1126         (free_clast_name_index): New.
1127         (clast_name_to_lb_ub): New.
1128         (save_clast_name_index): Add lb and ub parameters.
1129         (compute_bounds_for_param): New.
1130         (type_for_level): Removed.
1131         (type_for_clast_for): Removed level parameter.  Do not call
1132         type_for_level.
1133         (graphite_create_new_loop): Store the lb and ub for the clast_name
1134         of the iterator of the loop that has been generated.
1135         (graphite_create_new_loop_guard): Remove parameter level.
1136         (create_params_index): Store the lb and ub of each parameter.
1137         (gloog): Use free_clast_name_index.  Pass to create_params_index
1138         the current scop.
1139
1140 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1141
1142         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
1143         (max_precision_type): Inline max_signed_precision_type.
1144         (type_for_clast_red): Use max_precision_type.
1145         (type_for_clast_bin): Same.
1146         (type_for_clast_for): Same.
1147
1148 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1149
1150         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
1151         type_for_interval.
1152         (gcc_type_for_value): Renamed type_for_value.
1153         (gcc_type_for_clast_term): Renamed type_for_clast_term.
1154         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
1155         (gcc_type_for_clast_red): Renamed type_for_clast_red.
1156         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
1157         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
1158         (graphite_translate_clast_equation): Update calls.
1159         (compute_type_for_level): Renamed type_for_level.
1160         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
1161         (build_iv_mapping): Update calls.
1162         (graphite_create_new_loop_guard): Same.
1163
1164 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1165
1166         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
1167         comment.
1168
1169 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1170
1171         * graphite-clast-to-gimple.c (struct ivs_params): New.
1172         (clast_name_to_gcc): Use ivs_params to pass around parameters.
1173         (clast_to_gcc_expression): Same.
1174         (clast_to_gcc_expression_red): Same.
1175         (gcc_type_for_clast_term): Same.
1176         (gcc_type_for_clast_expr): Same.
1177         (gcc_type_for_clast_red): Same.
1178         (gcc_type_for_clast_bin): Same.
1179         (gcc_type_for_clast_eq): Same.
1180         (graphite_translate_clast_equation): Same.
1181         (graphite_create_guard_cond_expr): Same.
1182         (graphite_create_new_guard): Same.
1183         (graphite_create_new_loop): Same.
1184         (build_iv_mapping): Same.
1185         (translate_clast_user): Same.
1186         (graphite_create_new_loop_guard): Same.
1187         (translate_clast): Same.
1188         (translate_clast_for_loop): Same.
1189         (translate_clast_for): Same.
1190         (translate_clast_guard): Same.
1191         (initialize_cloog_names): Fix typo.
1192         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
1193
1194 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1195
1196         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
1197         (new_clast_name_index): Add level parameter.
1198         (clast_name_to_level): New.
1199         (save_clast_name_index): Add level parameter.
1200         (newivs_to_depth_to_newiv): Removed.
1201         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
1202         (graphite_create_new_loop): Add level parameter.  Pass level to
1203         save_clast_name_index.
1204         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
1205         (create_params_index): Pass level to save_clast_name_index.
1206
1207 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1208
1209         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
1210         recompute type, lb, and ub.  Get them from...
1211         (graphite_create_new_loop_guard): ...here.  Pass in parameter
1212         pointers to type, lb, and ub.
1213         (translate_clast_for_loop): Update function calls.
1214         (translate_clast_for): Same.
1215
1216 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1217
1218         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
1219         psct_dynamic_dim.
1220         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
1221         (gcc_type_for_iv_of_clast_loop): Update use of level.
1222         (gloog): Start counting nesting level from 0.
1223         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
1224         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
1225         psct_dynamic_dim on level.
1226
1227 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1228
1229         * config/i386/i386.c (ix86_legitimize_address): Convert to
1230         Pmode if needed.
1231
1232 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1233
1234         * config/i386/i386.c (function_value_64): Always return pointers
1235         in Pmode.
1236         (ix86_promote_function_mode): New.
1237         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
1238
1239 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1240
1241         PR tree-optimization/49749
1242         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
1243         remove no-longer-used maxrank variable.
1244
1245 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
1246
1247         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
1248
1249 2011-07-21  Jason Merrill  <jason@redhat.com>
1250
1251         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
1252         * recog.h (struct insn_data_d): Check it instead of
1253         HAVE_DESIGNATED_INITIALIZERS.
1254         * genoutput.c (output_insn_data): Likewise.
1255
1256 2011-07-21  Richard Guenther  <rguenther@suse.de>
1257
1258         PR tree-optimization/49770
1259         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
1260         valueized any operand.  Renamed from ...
1261         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
1262         (valueize_shared_reference_ops_from_ref): Return whether we
1263         valueized any operand.
1264         (vn_reference_lookup): Only when we valueized any operand
1265         use the valueized reference for alias analysis.  Do not preserve
1266         the original reference tree in this case.
1267
1268 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
1269
1270         * config/i386/i386.c (ix86_decompose_address): Reject all but
1271         register operands and subregs of DImode hard registers in index.
1272
1273 2011-07-21  Kai Tietz  <ktietz@redhat.com>
1274
1275         * fold-const.c (fold_unary_loc): Preserve indirect
1276         comparison cast to none-boolean type.
1277         * tree-ssa.c (useless_type_conversion_p): Preserve cast
1278         from/to boolean-type.
1279         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
1280         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
1281         * tree-cfg.c (verify_gimple_comparison): Check result
1282         type of comparison expression.
1283         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
1284         of condition result and disallow type-cast sinking into comparison.
1285
1286 2011-07-21  Richard Guenther  <rguenther@suse.de>
1287
1288         * tree-ssa-forwprop.c (combine_conversions): Return whether
1289         we have to run cfg-cleanup.  Properly remove dead stmts.
1290         (ssa_forward_propagate_and_combine): Adjust.
1291
1292 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
1293
1294         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
1295
1296 2011-07-21  Kai Tietz  <ktietz@redhat.com>
1297
1298         * tree-ssa-propagate.c (substitute_and_fold): Use
1299         do_dce flag to deside, if BB's statements are scanned
1300         in last to first, or first to last order.
1301
1302 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
1303
1304         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
1305
1306 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1307             Uros Bizjak  <ubizjak@gmail.com>
1308             Richard Henderson  <rth@redhat.com>
1309
1310         * config/i386/constraints.md (w): New.
1311
1312         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
1313         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
1314
1315         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
1316         instead of TARGET_64BIT.
1317
1318         * config/i386/i386.md (indirect_jump): Replace
1319         nonimmediate_operand with indirect_branch_operand.
1320         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
1321         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
1322         Convert operand 0 to Pmode for x32 if not PIC.
1323         (*tablejump_1): Replace nonimmediate_operand with
1324         indirect_branch_operand.  Replace constraint "m" with "w".
1325         (*call_vzeroupper): Replace constraint "m" with "w".
1326         (*call): Likewise.
1327         (*call_rex64_ms_sysv_vzeroupper): Likewise.
1328         (*call_rex64_ms_sysv): Likewise.
1329         (*call_value_vzeroupper): Likewise.
1330         (*call_value): Likewise.
1331         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
1332         (*call_value_rex64_ms_sysv): Likewise.
1333         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
1334
1335         * config/i386/predicates.md (indirect_branch_operand): New.
1336         (call_insn_operand): Support x32.
1337
1338 2011-07-20  Michael Eager  <eager@eagercon.com>
1339
1340         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
1341
1342 2011-07-20  Richard Henderson  <rth@redhat.com>
1343
1344         * cfg.c (dump_bb_info): Dump basic_block->flags.
1345         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
1346
1347 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
1348
1349         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1350         of DImode hard registers in index.
1351         (ix86_legitimate_address_p): Allow subregs of base and index to span
1352         more than a word.  Assert that subregs of base and index satisfy
1353         register_no_elim_operand predicates.  Reject addresses where
1354         base and index have different modes.
1355
1356 2011-07-20  Robert Millan  <rmh@gnu.org>
1357
1358         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
1359
1360 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1361
1362         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
1363         removing now-unnecessary assignment.
1364
1365 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1366
1367         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
1368         memory address space to the type's address space.
1369
1370 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
1371
1372         PR target/36467
1373         PR target/49687
1374         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
1375         and expand appropriately if there is a CONST_INT in operand2.
1376         (usmulqihi3): New insn.
1377         (*sumulqihi3): New insn.
1378         (*osmulqihi3): New insn.
1379         (*oumulqihi3): New insn.
1380         (*muluqihi3.uconst): New insn_and_split.
1381         (*muluqihi3.sconst): New insn_and_split.
1382         (*mulsqihi3.sconst): New insn_and_split.
1383         (*mulsqihi3.uconst): New insn_and_split.
1384         (*mulsqihi3.oconst): New insn_and_split.
1385         (*ashifthi3.signx.const): New insn_and_split.
1386         (*ashifthi3.signx.const7): New insn_and_split.
1387         (*ashifthi3.zerox.const): New insn_and_split.
1388         (mulsqihi3): New insn.
1389         (muluqihi3): New insn.
1390         (muloqihi3): New insn.
1391         * config/avr/predicates.md (const_2_to_7_operand): New.
1392         (const_2_to_6_operand): New.
1393         (u8_operand): New.
1394         (s8_operand): New.
1395         (o8_operand): New.
1396         (s9_operand): New.
1397         (register_or_s9_operand): New.
1398
1399 2011-07-20  Kai Tietz  <ktietz@redhat.com>
1400
1401         * builtins.c (fold_builtin_expect): See through the cast
1402         from truthvalue_type_node to long.
1403
1404 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
1405
1406         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
1407         where we can use them from the standard and altivec instruction
1408         sets, instead of always using the 3 operand VSX forms that require
1409         the destination to overlap one of the inputs.
1410         (vsx_fms*): Ditto.
1411         (vsx_fnma*): Ditto.
1412         (vsx_fnms*): Ditto.
1413
1414         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
1415         for DF types.
1416         (fmsdf4_fpr): Ditto.
1417         (nfmadf4_fpr): Ditto.
1418         (nfmsdf4_fpr): Ditto.
1419
1420 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
1421
1422         * genrecog.c (make_insn_sequence): Correct position numbering
1423         when filtering out match_scratch and match_dup.
1424
1425 2011-07-20  Richard Guenther  <rguenther@suse.de>
1426
1427         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
1428         against already removed statements.
1429         (forward_propagate_into_comparison): Remove dead defining stmts.
1430         (forward_propagate_into_gimple_cond): Likewise.
1431         (forward_propagate_into_cond): Simplify.
1432         (ssa_forward_propagate_and_combine): Handle changed cfg from
1433         forward_propagate_into_comparison.
1434         * tree-ssa-phiopt.c (conditional_replacement): Use proper
1435         locations for newly built statements.
1436
1437 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
1438
1439         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
1440
1441 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1442
1443         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
1444         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
1445
1446 2011-07-20  Richard Guenther  <rguenther@suse.de>
1447
1448         PR middle-end/18908
1449         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
1450         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
1451         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
1452
1453 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
1454
1455         * config/frv/frv.c (frv_register_move_cost): Define explicitly
1456         costs for subclasses of GR_REGS.
1457
1458 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
1459
1460         PR target/49780
1461         * config/i386/predicates.md (no_seg_addres_operand): No more special.
1462         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1463         of DImode hard registers in base.
1464         (ix86_legitimate_address_p): Allow SImode and DImode base and index
1465         registers.
1466
1467 2011-07-20  Richard Guenther  <rguenther@suse.de>
1468
1469         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
1470         (unify_nodes): Deal with that.
1471         (solve_graph): Likewise.
1472
1473 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
1474
1475         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
1476         canonicalize left operand from ZERO_EXTEND to AND.
1477
1478 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
1479
1480         * target.def (class_max_nregs): New hook.
1481         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
1482         * doc/tm.texi: Regenerate.
1483         * targhooks.c (default_class_max_nregs): New function.
1484         * targhooks.h (default_class_max_nregs): Declare.
1485         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
1486         x_ira_reg_class_min_nregs arrays to unsigned char.
1487         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
1488         hook instead of CLASS_MAX_NREGS macro.
1489         * reginfo.c (restore_register_info): Ditto.
1490         * ira-conflicts.c (process_regs_for_copy): Use
1491         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
1492         Change type rclass and aclass vars to reg_class_t.
1493         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
1494         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
1495         reg_class_t.
1496         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
1497         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
1498
1499         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
1500         * config/i386/i386.c (ix86_class_max_nregs): New function.
1501         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
1502         instead of CLASS_MAX_NREGS macro.
1503         (TARGET_CLASS_MAX_NREGS): Define.
1504         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
1505         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
1506         * config/avr/avr.c (class_max_nregs): Remove function.
1507         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
1508         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
1509         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
1510         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
1511         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
1512         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
1513         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
1514         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
1515         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
1516         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
1517         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
1518         * config/score/score.h (CLASS_MAX_NREGS): Remove.
1519         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
1520         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
1521         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
1522
1523 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
1524
1525         * cif-code.def (OVERWRITABLE): Fix typo and move around.
1526         (TARGET_OPTIMIZATION_MISMATCH): Delete.
1527         (EH_PERSONALITY): Fix typo.
1528         (NON_CALL_EXCEPTIONS): Fix message.
1529         (OPTIMIZATION_MISMATCH): Adjust message.
1530         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
1531
1532 2011-07-19  Ian Lance Taylor  <iant@google.com>
1533
1534         * doc/install.texi (Configuration): Document
1535         --enable-build-poststage1-with-cxx.
1536
1537 2011-07-19  Robert Millan  <rmh@gnu.org>
1538
1539         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
1540         (GLIBC_DYNAMIC_LINKER): Remove.
1541
1542         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
1543         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
1544         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
1545         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
1546         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
1547         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
1548
1549         * config/mips/linux.h: Remove everything except for ...
1550         (GLIBC_DYNAMIC_LINKER): ... this macro.
1551
1552         * config/mips/linux64.h: Remove everything except for ...
1553         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
1554         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
1555         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
1556         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
1557         (GNU_USER_LINK_EMULATIONN32): New macros.
1558
1559         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
1560         Use the new headers.
1561
1562 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1563
1564         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
1565         Add offset_known_p and size_known_p fields.
1566         (MEM_OFFSET_KNOWN_P): Update accordingly.
1567         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
1568         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
1569         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
1570         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
1571         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
1572         (init_emit_regs): Likewise.
1573
1574 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1575
1576         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
1577         (MEM_OFFSET): Change from returning an rtx to returning a
1578         HOST_WIDE_INT.
1579         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
1580         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
1581         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
1582         (clear_mem_offset): Declare.
1583         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
1584         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
1585         MEM_OFFSET to get a HOST_WIDE_INT offset.
1586         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
1587         (adjust_offset_for_component_ref): Take a bool "known_p"
1588         parameter and a HOST_WIDE_INT "offset" parameter.
1589         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
1590         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
1591         than an rtx.  Use clear_mem_offset to clear the offset.
1592         * cfgcleanup.c (merge_memattrs): Likewise.
1593         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
1594         * function.c (assign_parm_find_stack_rtl): Likewise.
1595         (assign_parm_setup_stack): Likewise.
1596         * print-rtl.c (print_rtx): Likewise.
1597         * reload.c (find_reloads_subreg_address): Likewise.
1598         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1599         * var-tracking.c (INT_MEM_OFFSET): Likewise.
1600         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
1601         (get_mem_align_offset): Likewise.
1602         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
1603         (clear_mem_offset): New function.
1604         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
1605         offset rather than an rtx.  Assume both the expressio and offset
1606         are available.
1607         (r10k_needs_protection_p_1): Update accordingly, checking the
1608         expression and offset availability here instead.
1609
1610 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1611
1612         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
1613         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
1614         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
1615         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
1616         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
1617         (clear_mem_size): Declare.
1618         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
1619         (clear_mem_size): New function.
1620         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
1621         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
1622         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
1623         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
1624         to clear the size.
1625         (nonoverlapping_memrefs_p): Likewise.
1626         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
1627         (expand_builtin_init_trampoline): Likewise.
1628         * calls.c (compute_argument_addresses): Likewise.
1629         * cfgcleanup.c (merge_memattrs): Likewise.
1630         * dce.c (find_call_stack_args): Likewise.
1631         * dse.c (record_store, scan_insn): Likewise.
1632         * dwarf2out.c (dw_sra_loc_expr): Likewise.
1633         * expr.c (emit_block_move_hints): Likewise.
1634         * function.c (assign_parm_find_stack_rtl): Likewise.
1635         * print-rtl.c (print_rtx): Likewise.
1636         * reload.c (find_reloads_subreg_address): Likewise.
1637         * rtlanal.c (may_trap_p_1): Likewise.
1638         * var-tracking.c (track_expr_p): Likewise.
1639         * varasm.c (assemble_trampoline_template): Likewise.
1640         * config/arm/arm.c (arm_print_operand): Likewise.
1641         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
1642         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
1643         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
1644         (expand_constant_setmem_prologue): Likewise.
1645         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
1646         * config/rs6000/rs6000.c (expand_block_move): Likewise.
1647         (adjacent_mem_locations): Likewise.
1648         * config/s390/s390.c (s390_expand_setmem): Likewise.
1649         (s390_expand_insv): Likewise.
1650         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
1651         (*extendqi<mode>2_short_displ): Likewise.
1652         * config/sh/sh.c (expand_block_move): Likewise.
1653         * config/sh/sh.md (extv, extzv): Likewise.
1654
1655 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1656
1657         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
1658         (mem_attrs_htab_eq): ...here.
1659         (find_mem_attrs): Replace with...
1660         (set_mem_attrs): ...this function.  Take a mem_attrs structure
1661         rather than individual fields.
1662         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
1663         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
1664         (set_mem_size, change_address, adjust_address_1, offset_address)
1665         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
1666         Update accordingly.
1667
1668 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1669
1670         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
1671         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
1672         Provide a dummy definition of MEM_ADDR_SPACE for generators.
1673         (target_rtl): Add x_mode_mem_attrs.
1674         (mode_mem_attrs): New macro.
1675         (get_mem_attrs): New function.
1676         * emit-rtl.c (get_mem_attrs): Rename to...
1677         (find_mem_attrs): ...this.
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.
1683         (init_emit_regs): Initialize mode_mem_attrs.
1684
1685 2011-07-19  Richard Guenther  <rguenther@suse.de>
1686
1687         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
1688         TRUTH_*_EXPR handling.
1689         * tree-ssa-operands.c (get_expr_operands): Likewise.
1690         * tree-ssa-pre.c (fully_constant_expression): Likewise.
1691         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
1692         Likewise.
1693         (is_and_or_or): Likewise.
1694         (is_norm_cond_subset_of): Likewise.
1695
1696 2011-07-19  Richard Guenther  <rguenther@suse.de>
1697
1698         * tree.h (fold_build_pointer_plus_loc): New helper function.
1699         (fold_build_pointer_plus_hwi_loc): Likewise.
1700         (fold_build_pointer_plus): Define.
1701         (fold_build_pointer_plus_hwi): Likewise.
1702         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
1703         (fold_builtin_memory_op): Likewise.
1704         (fold_builtin_stpcpy): Likewise.
1705         (fold_builtin_memchr): Likewise.
1706         (fold_builtin_strstr): Likewise.
1707         (fold_builtin_strchr): Likewise.
1708         (fold_builtin_strrchr): Likewise.
1709         (fold_builtin_strpbrk): Likewise.
1710         (fold_builtin_strcat): Likewise.
1711         (expand_builtin_memory_chk): Likewise.
1712         (fold_builtin_memory_chk): Likewise.
1713         * c-typeck.c (build_unary_op): Likewise.
1714         * cgraphunit.c (thunk_adjust): Likewise.
1715         * fold-const.c (build_range_check): Likewise.
1716         (fold_binary_loc): Likewise.
1717         * omp-low.c (extract_omp_for_data): Likewise.
1718         (expand_omp_for_generic): Likewise.
1719         (expand_omp_for_static_nochunk): Likewise.
1720         (expand_omp_for_static_chunk): Likewise.
1721         * tree-affine.c (add_elt_to_tree): Likewise.
1722         * tree-data-ref.c (split_constant_offset_1): Likewise.
1723         * tree-loop-distribution.c (generate_memset_zero): Likewise.
1724         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
1725         * tree-predcom.c (ref_at_iteration): Likewise.
1726         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
1727         (add_to_parts): Likewise.
1728         (create_mem_ref): Likewise.
1729         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
1730         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
1731         (number_of_iterations_le): Likewise.
1732         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
1733         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
1734         (vect_create_addr_base_for_vector_ref): Likewise.
1735         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
1736         (vect_create_cond_for_alias_checks): Likewise.
1737         * tree-vrp.c (extract_range_from_assert): Likewise.
1738         * config/alpha/alpha.c (alpha_va_start): Likewise.
1739         (alpha_gimplify_va_arg_1): Likewise.
1740         * config/i386/i386.c (ix86_va_start): Likewise.
1741         (ix86_gimplify_va_arg): Likewise.
1742         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1743         * config/mep/mep.c (mep_expand_va_start): Likewise.
1744         (mep_gimplify_va_arg_expr): Likewise.
1745         * config/mips/mips.c (mips_va_start): Likewise.
1746         (mips_gimplify_va_arg_expr): Likewise.
1747         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1748         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
1749         (rs6000_gimplify_va_arg): Likewise.
1750         * config/s390/s390.c (s390_va_start): Likewise.
1751         (s390_gimplify_va_arg): Likewise.
1752         * config/sh/sh.c (sh_va_start): Likewise.
1753         (sh_gimplify_va_arg_expr): Likewise.
1754         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1755         * config/spu/spu.c (spu_va_start): Likewise.
1756         (spu_gimplify_va_arg_expr): Likewise.
1757         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1758         Likewise.
1759         (xstormy16_gimplify_va_arg_expr): Likewise.
1760         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
1761         (xtensa_gimplify_va_arg_expr): Likewise.
1762
1763 2011-07-19  Richard Guenther  <rguenther@suse.de>
1764
1765         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
1766         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
1767         handling.
1768
1769         PR middle-end/18908
1770         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
1771         result of BIT_*_EXPR to bitfield precision.
1772
1773 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
1774
1775         PR tree-optimization/49742
1776         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
1777         as a potential write.
1778
1779 2011-07-19  Richard Guenther  <rguenther@suse.de>
1780
1781         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
1782         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
1783         (forward_propagate_comparison): Simplify, remove obsolete code.
1784
1785 2011-07-19  Richard Guenther  <rguenther@suse.de>
1786
1787         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
1788         BIT_XOR_EXPR, same as the RTL expander does.
1789         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
1790         (verify_gimple_assign_unary): Likewise.
1791         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
1792         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
1793         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
1794
1795 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
1796
1797         PR tree-optimization/49768
1798         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
1799         if offset is smaller than bitoffset, but offset+size is bigger
1800         than bitoffset.
1801
1802 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
1803
1804         PR tree-optimization/49771
1805         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
1806         zero step, set segment length to the size of the data-ref's type.
1807
1808 2011-07-18  Martin Jambor  <mjambor@suse.cz>
1809
1810         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
1811         comments.
1812         (ipcp_values_pool): Declare.
1813         (ipcp_sources_pool): Likewise.
1814         (ipcp_lattice): Changed to forward declaration.
1815         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
1816         cannot_devirtualize.
1817         (ipa_node_params): New fields descriptors, lattices, known_vals,
1818         clone_for_all_contexts and node dead, removed fields params and
1819         count_scale.
1820         (ipa_set_param_count): Removed.
1821         (ipa_get_param_count): Made to work with descriptors vector.
1822         (ipa_get_param): Updated.
1823         (ipa_param_cannot_devirtualize_p): Removed.
1824         (ipa_param_types_vec_empty): Likewise.
1825         (ipa_set_param_used): New function.
1826         (ipa_get_param_used): Updated to use descriptors vector.
1827         (ipa_func_list): Removed.
1828         (ipa_init_func_list): Removed declaration.
1829         (ipa_push_func_to_list_1): Likewise.
1830         (ipa_pop_func_from_list): Likewise.
1831         (ipa_push_func_to_list): Removed.
1832         (ipa_lattice_from_jfunc): Remove declaration.
1833         (ipa_get_jf_pass_through_result): Declare.
1834         (ipa_get_jf_ancestor_result): Likewise.
1835         (ipa_value_from_jfunc): Likewise.
1836         (ipa_get_lattice): Update.
1837         (ipa_lat_is_single_const): New function.
1838         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
1839         (ipa_init_func_list): Likewise.
1840         (ipa_pop_func_from_list): Likewise.
1841         (ipa_get_param_decl_index): Fix coding style.
1842         (count_formal_params): Removed.
1843         (count_formal_params_1): Renamed to count_formal_params.
1844         (ipa_populate_param_decls): Update to use descriptors vector.
1845         (ipa_initialize_node_params): Likewise.
1846         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
1847         (ipa_analyze_params_uses): Likewise.
1848         (ipa_free_node_params_substructures): Likewise and free also lattices
1849         and known values.
1850         (duplicate_array): Removed.
1851         (ipa_edge_duplication_hook): Add the new edge to the list of edge
1852         clones.
1853         (ipa_node_duplication_hook): Update to use new lattices.
1854         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
1855         (ipa_free_all_structures_after_iinln): Likewise.
1856         (ipa_write_node_info): Update to use new lattices.
1857         (ipa_read_node_info): Likewise.
1858         (ipa_get_jf_pass_through_result): New function.
1859         (ipa_get_jf_ancestor_result): Likewise.
1860         (ipa_value_from_jfunc): Likewise.
1861         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
1862         * ipa-cp.c: Reimplemented.
1863         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
1864         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
1865         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
1866         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
1867         * doc/invoke.texi (devirt-type-list-size): Removed description.
1868         (ipa-cp-value-list-size): Added description.
1869
1870 2011-07-18  Richard Henderson  <rth@redhat.com>
1871
1872         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
1873         before calling create_basic_block.
1874
1875 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
1876
1877         PR middle-end/49675
1878         * tree.c (build_common_builtin_nodes): Register
1879         __builtin_return_address, __cyg_profile_func_enter
1880         and __cyg_profile_func_exit.
1881
1882 2011-07-18  Richard Henderson  <rth@redhat.com>
1883
1884         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
1885         (add_labels_and_missing_jumps): ... here.
1886         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
1887
1888 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
1889
1890         PR target/47744
1891         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1892         of DImode hard registers in PLUS address chains.
1893
1894 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1895
1896         PR bootstrap/49769
1897         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
1898         (alpha*-*-freebsd*): Likewise.
1899         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1900         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1901         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
1902         crtprec80.o, crtfastmath.o to extra_parts for all targets.
1903         (ia64*-*-elf*): Remove extra_parts.
1904         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
1905         (sparc64-*-linux*): Likewise.
1906         (sparc64-*-freebsd*): Likewise.
1907
1908         Revert:
1909         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
1910         (ia64*-*-linux*): Likewise.
1911         (mips64*-*-linux*): Likewise.
1912         (mips*-*-linux*): Likewise.
1913
1914 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
1915
1916         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
1917
1918 2011-07-18  Richard Guenther  <rguenther@suse.de>
1919
1920         * gimplify.c (gimplify_expr): Use input_location, not saved_location
1921         when building new trees.
1922
1923 2011-07-18  Richard Guenther  <rguenther@suse.de>
1924
1925         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
1926         expansion result to bitfield precision if required.
1927
1928 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1929
1930         * config.gcc (i[3456x]86-*-netware*): Remove.
1931
1932         * gthr-nks.h: Remove.
1933         * configure.ac (enable_threads): Remove nks.
1934         * configure: Regenerate.
1935
1936         * config/i386/i386.c (ix86_encode_section_info): Remove netware
1937         reference.
1938         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
1939         <netware.h> reference.
1940
1941         * config/i386/netware-libgcc.c,
1942         gcc/config/i386/netware-libgcc.def,
1943         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
1944         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
1945         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
1946         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
1947
1948         * doc/extend.texi (Function Attributes,
1949         callee_pop_aggregate_return): Remove i?86-netware reference.
1950         * doc/install.texi (Configuration, --enable-threads): Remove nks.
1951
1952 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1953
1954         PR target/49746
1955         Revert:
1956         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1957
1958         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
1959         patterns.
1960
1961 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
1962
1963         PR middle-end/49732
1964         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
1965
1966 2011-07-16  Matthias Klose  <doko@ubuntu.com>
1967
1968         * doc/install.texi: Document --enable-static-libjava.
1969
1970 2011-07-15  Richard Henderson  <rth@redhat.com>
1971
1972         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1973         Replace all three arguments by returning a VEC of edges.
1974         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
1975         pointers and counts.
1976         (fix_edges_for_rarely_executed_code): Merge ...
1977         (rest_of_handle_partition_blocks): ... into...
1978         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
1979         any work was performed.
1980         (pass_partition_blocks): Clear todo_flags_finish.
1981
1982 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
1983             Jakub Jelinek  <jakub@redhat.com>
1984             Jonathan Wakely  <jwakely.gcc@gmail.com>
1985
1986         PR libstdc++/49745
1987         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
1988         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
1989
1990 2011-07-15  Jason Merrill  <jason@redhat.com>
1991
1992         PR testsuite/49741
1993         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
1994         rather than --tool_opts.
1995
1996 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
1997
1998         * doc/plugins.texi (Building GCC plugins): gengtype needs its
1999         corresponding gtype.state.
2000
2001 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2002
2003         PR target/49723
2004         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
2005
2006 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
2007
2008         PR target/48220
2009         * doc/md.texi (Standard Names): Document window_save.
2010         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
2011         expand_debug_expr and expand_debug_source_expr.  If the target has
2012         a window_save instruction, adjust the ENTRY_VALUE_EXP.
2013         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
2014         SSA_NAME_VAR is a parameter.
2015         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
2016         * var-tracking.c (parm_reg_t): New type and associated vector type.
2017         (windowed_parm_regs): New variable.
2018         (adjust_insn): If the target has a window_save instruction and this
2019         is the instruction, make its effect on parameter registers explicit.
2020         (next_non_note_insn_var_location): New function.
2021         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
2022         (vt_add_function_parameter): If the target has a window_save insn,
2023         adjust the incoming RTL and record that in windowed_parm_regs.
2024         (vt_finalize): Free windowed_parm_regs.
2025
2026 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
2027
2028         * doc/invoke.texi (C6X Options): New section.
2029         * doc/md.texi (TI C6X family): New section.
2030         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
2031         tic6x-*-uclinux.
2032         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
2033         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
2034         Provide C6X definitions.
2035         * config/c6x/c6x.md: New file.
2036         * config/c6x/constraints.md: New file.
2037         * config/c6x/predicates.md: New file.
2038         * config/c6x/c6x-sched.md.in: New file.
2039         * config/c6x/c6x-sched.md: New file.
2040         * config/c6x/gensched.sh: New file.
2041         * config/c6x/c6x-mult.md.in: New file.
2042         * config/c6x/genmult.sh: New file.
2043         * config/c6x/c6x-mult.md: New file.
2044         * config/c6x/sync.md: New file.
2045         * config/c6x/c6x-protos.h: New file.
2046         * config/c6x/sfp-machine.h: New file.
2047         * config/c6x/c6x.c: New file.
2048         * config/c6x/c6x.h: New file.
2049         * config/c6x/crti.s: New file.
2050         * config/c6x/crtn.s: New file.
2051         * config/c6x/lib1funcs.asm: New file.
2052         * config/c6x/c6x-modes.def: New file.
2053         * config/c6x/genopt.sh: New file.
2054         * config/c6x/c6x.opt: New file.
2055         * config/c6x/c6x-tables.opt: New file.
2056         * config/c6x/c6x-opts.h: New file.
2057         * config/c6x/c6x-isas.def: New file.
2058         * config/c6x/elf.h: New file.
2059         * config/c6x/elf-common.h: New file.
2060         * config/c6x/uclinux-elf.h: New file.
2061         * config/c6x/t-c6x: New file.
2062         * config/c6x/t-c6x-elf: New file.
2063         * config/c6x/t-c6x-uclinux: New file.
2064         * config/c6x/t-c6x-softfp: New file.
2065         * config/c6x/gtd.c: New file.
2066         * config/c6x/gtf.c: New file.
2067         * config/c6x/ltd.c: New file.
2068         * config/c6x/ltf.c: New file.
2069         * config/c6x/ged.c: New file.
2070         * config/c6x/gef.c: New file.
2071         * config/c6x/led.c: New file.
2072         * config/c6x/lef.c: New file.
2073         * config/c6x/eqd.c: New file.
2074         * config/c6x/eqf.c: New file.
2075         * config/c6x/libgcc-c6xeabi.ver: New file.
2076
2077         Revert
2078         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2079         PR rtl-optimization/11320
2080         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2081         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2082         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2083         current_sched_info->compute_jump_reg_dependencies. Record which
2084         registers are used and which registers are set by the jump.
2085         Clear deps->reg_conditional_sets after a barrier.
2086         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2087         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2088         (init_deps): Initialize reg_conditional_sets.
2089         (free_deps): Clear reg_conditional_sets.
2090         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2091         Mark registers live on entry of the fallthrough block and conditionally
2092         set as set by the jump. Mark registers live on entry of non-fallthrough
2093         blocks as used by the jump.
2094         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2095         Mark new parameters as unused.
2096
2097 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
2098
2099         PR tree-opt/49309
2100         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
2101         Use fold_build2_loc instead of build2.
2102         Use the correct type for the new tree.
2103
2104 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2105
2106         PR rtl-optimization/11320
2107         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
2108         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
2109
2110 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
2111
2112         PR target/49487
2113         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
2114         of REG.
2115         (*rotw<mode>): Use const_int_operand for operand2.
2116         Use match_scatch for operand3.
2117         (*rotb<mode>): Ditto
2118         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
2119
2120 2011-07-14  Richard Guenther  <rguenther@suse.de>
2121
2122         PR tree-optimization/49651
2123         * tree-ssa-structalias.c (get_constraint_for_1): Properly
2124         handle dereferences with subvariables.
2125
2126 2011-07-14  Richard Guenther  <rguenther@suse.de>
2127
2128         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
2129         (fold_stmt_1): Do it here directly on gimple and as a first thing.
2130
2131 2011-07-14  Richard Guenther  <rguenther@suse.de>
2132
2133         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
2134         not bool_var when folding bool_var != 1 or bool_var == 0.
2135
2136 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2137
2138         * haifa-sched.c (schedule_insns): Remove outdated comment.
2139         (schedule_block): When computing a known value for TODO_SPEC,
2140         just set it rather than using logical operations.
2141         (try_ready): Likewise.  Use a local variable rather than a
2142         pointer to TODO_SPEC.  Reorder an if statement to move the
2143         easy case to the then block.
2144         * sched-deps.c (dep_spec_p): New static function.
2145         (update_dep): Use it to decide whether to call
2146         change_spec_dep_to_hard.
2147         (get_back_and_forw_lists): Use it.
2148         (sd_resolve_dep): Likewise.
2149         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
2150         (haifa_note_mem_dep): Likewise.
2151         (check_dep): Likewise.
2152         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
2153         (sched_free_deps): Free in two passes.
2154
2155 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
2156
2157         PR middle-end/49736
2158         * expr.c (all_zeros_p): Undo bogus part of last change.
2159
2160 2011-07-14  Matthias Klose <doko@ubuntu.com>
2161
2162         * doc/extend.texi (optimize attribute): Fix typo.
2163
2164 2011-07-14  Richard Guenther  <rguenther@suse.de>
2165
2166         * gimplify.c (gimplify_expr): Only do required conversions.
2167
2168 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
2169
2170         PR target/43746
2171         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
2172         i.e. use default_elf_select_section.
2173         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
2174         (READONLY_DATA_SECTION_ASM_OP): Remove.
2175         (TARGET_ASM_NAMED_SECTION): Move from here...
2176         * config/avr/avr.c: ...to here.
2177         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
2178         (avr_asm_named_section): Make static.
2179
2180 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2181
2182         PR bootstrap/49739
2183         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
2184         and crtfastmath.o for Linux/x86.
2185
2186 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2187
2188         * haifa-sched.c: Include "hashtab.h"
2189         (sched_no_dce): New global variable.
2190         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
2191         SHADOW_P): New macros.
2192         (last_clock_var, cycle_issued_insns): Move declarations.
2193         (must_backtrack): New static variable.
2194         (struct delay_pair): New structure.
2195         (delay_htab, delay_htab_i2): New static variables.
2196         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
2197         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
2198         functions.
2199         (dep_cost_1): If delay pairs exist, try to look up the insns and
2200         use the correct pair delay if we find them.
2201         (rank-for_schedule): Tweak priority for insns that must be scheduled
2202         soon to avoid backtracking.
2203         (queue_insn): Detect conditions which force backtracking.
2204         (ready_add): Likewise.
2205         (struct sched_block_state): Add member shadows_only_p.
2206         (struct haifa_save_data): New structure.
2207         (backtrack_queue): New static variable.
2208         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
2209         unschedule_insns_until, restore_last_backtrack_point,
2210         free_topmost_backtrack_point, free_backtrack_queue,
2211         estimate_insn_tick, estimate_shadow_tick): New functions.
2212         (prune_ready_list): New arg shadows_only_p.  All callers changed.
2213         If true, remove everything that isn't SHADOW_P.  Look up delay
2214         pairs and estimate ticks to avoid scheduling the first insn too early.
2215         (verify_shadows): New function.
2216         (schedule_block): Add machinery to enable backtracking.
2217         (sched_init): Take sched_no_dce into account when setting
2218         DF_LR_RUN_DCE.
2219         (free_delay_pairs): New function.
2220         (init_h_i_d): Initialize INSN_EXACT_TICK.
2221         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
2222         * sched-deps.c (sd_unresolve_dep): New function.
2223         * sched-int. (struct haifa_sched_info): New fields save_state
2224         and restore_state.
2225         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
2226         feeds_backtrack_insn and shadow_p.
2227         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
2228         (sched_no_dce): Declare variable.
2229         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
2230         sd_unresolve_dep): Declare functions.
2231         * modulo-sched.c (sms_sched_info): Clear the two new fields.
2232         * sched-rgn.c (rgn_const_sched_info): Likewise.
2233         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2234         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
2235         (ebb_sched_info): Add them for the two new fields.
2236         (add_deps_for_risky_insns): Call add_delay_dependencies.
2237
2238 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2239
2240         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
2241         Rename -mr11.
2242         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
2243         (rs6000_call_indirect_aix): Ditto.
2244         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
2245         (call_indirect_aix<ptrsize>_internal): Ditto.
2246         (call_indirect_aix<ptrsize>_nor11): Ditto.
2247         (call_indirect_aix<ptrsize>_internal2): Ditto.
2248         (call_value_indirect_aix<ptrsize>): Ditto.
2249         (call_value_indirect_aix<ptrsize>_internal): Ditto.
2250         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2251         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2252         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
2253
2254 2011-07-13  Jason Merrill  <jason@redhat.com>
2255
2256         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
2257
2258 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2259
2260         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
2261         * config/spu/spu.md ("clrsb<mode>2"): New expander.
2262
2263 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
2264
2265         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
2266         * configure: Regenerate.
2267
2268 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2269
2270         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
2271         (asm_file_start): Remove.
2272         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
2273         free_bb_for_insn around code that modifies insns before
2274         restarting df analysis.
2275
2276 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2277
2278         PR target/49541
2279         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
2280         (LINK_SPEC): ... here.
2281
2282 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
2283
2284         * haifa-sched.c (struct sched_block_state): New.
2285         (schedule_block): Move some local variables into such a structure.
2286
2287 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2288
2289         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
2290         * config/i386/t-crtpc: Remove.
2291         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
2292         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
2293         tmake_file.
2294         (x86_64-*-darwin*): Likewise.
2295         (i[34567]86-*-linux*): Likewise.
2296         (x86_64-*-linux*): Likewise.
2297
2298         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
2299         Handle -mpc32, -mpc64, -mpc80.
2300
2301 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2302
2303         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
2304         * config/alpha/t-crtfm: Remove.
2305         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
2306         * config/i386/t-crtfm: Remove.
2307         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
2308         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
2309         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
2310         * config/sparc/t-crtfm: Remove.
2311
2312         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
2313         (alpha*-*-freebsd*): Likewise.
2314         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
2315         (x86_64-*-darwin*): Likewise.
2316         (i[34567]86-*-linux*): Likewise.
2317         (x86_64-*-linux*): Likewise.
2318         (x86_64-*-mingw*): Likewise.
2319         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
2320         (ia64*-*-freebsd*): Likewise.
2321         (ia64*-*-linux*): Likewise.
2322         (mips64*-*-linux*): Likewise.
2323         (mips*-*-linux*): Likewise.
2324         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
2325         (sparc64-*-linux*): Likewise.
2326         (sparc64-*-freebsd*): Likewise.
2327
2328 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2329
2330         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
2331         * config/darwin-crt3.c: Move to ../libgcc/config.
2332         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
2333         ($(T)crt3$(objext)): Remove.
2334         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
2335         ($(T)crt2$(objext)): Remove.
2336         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
2337         (powerpc64-*-darwin*): Likewise.
2338
2339 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2340
2341         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
2342
2343         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
2344         (addsi_1_zext): This.
2345
2346 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
2347
2348         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
2349         * doc/tm.texi: Regenerate.
2350         * target.def (mergeable_rodata_prefix): New defhookpod.
2351         * varasm.c (mergeable_string_section, mergeable_constant_section):
2352         Use it. Allocate name with alloca.
2353
2354 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2355
2356         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
2357
2358 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
2359
2360         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
2361         overlap check.
2362
2363 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
2364
2365         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
2366         (count_type_elements): Delete.
2367         (complete_ctor_at_level_p): Declare.
2368         * expr.c (flexible_array_member_p): New function, split out from...
2369         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
2370         parameter with for_ctor_p.  When for_ctor_p is true, return the
2371         number of elements that should appear in the top-level constructor,
2372         otherwise return an estimate of the number of scalars.
2373         (categorize_ctor_elements): Replace p_must_clear with p_complete.
2374         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
2375         (complete_ctor_at_level_p): New function, borrowing union logic
2376         from old categorize_ctor_elements_1.
2377         (mostly_zeros_p): Return true if the constructor is not complete.
2378         (all_zeros_p): Update call to categorize_ctor_elements.
2379         * gimplify.c (gimplify_init_constructor): Update call to
2380         categorize_ctor_elements.  Don't call count_type_elements.
2381         Unconditionally prevent clearing for variable-sized types,
2382         otherwise rely on categorize_ctor_elements to detect
2383         incomplete initializers.
2384
2385 2011-07-13  Richard Guenther  <rguenther@suse.de>
2386
2387         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
2388         the final type is integral.
2389
2390 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
2391
2392         * sched-int.h (struct _dep): Add member cost.
2393         (DEP_COST, UNKNOWN_DEP_COST): New macros.
2394         * sched-deps.c (init_dep_1): Initialize DEP_COST.
2395         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
2396         (sched_change_pattern): Reset it for dependent insns.
2397
2398 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2399
2400         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
2401         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
2402         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
2403         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
2404         (CRT0_S, MCRT0_S): Remove.
2405         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
2406         Remove.
2407         (s-crt0): Remove.
2408         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
2409
2410 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
2411
2412         * cse.c (insert_with_costs): Put semi-colon after empty loop body
2413         on the next line.
2414         * emit-rtl.c (push_to_sequence): Likewise.
2415         * haifa-sched.c (max_issue): Likewise.
2416         * matrix-reorg.c (add_allocation_site): Likewise.
2417         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2418         * reload.c (alternative_allows_const_pool_ref): Likewise.
2419         * sched-rgn.c (rgn_add_block): Likewise.
2420         (rgn_fix_recovery_cfg): Likewise.
2421         * tree.c (attribute_list_contained): Likewise.
2422
2423 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
2424
2425         * config/i386/i386.c: Tidy processor feature bitmasks.
2426         (m_P4_NOCONA): New.
2427
2428 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
2429
2430         PR rtl-opt/49474
2431         * cprop.c (find_implicit_sets): Correct the condition.
2432
2433 2011-07-12  Richard Henderson  <rth@redhat.com>
2434
2435         PR target/49713
2436         * dwarf2out.h (dwarf_frame_regnum): Remove.
2437         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
2438         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
2439         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
2440         (execute_dwarf2_frame): Initialize them.
2441         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
2442         users of the macros with the variables.
2443         (expand_builtin_dwarf_sp_column): Revert last change.
2444         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
2445         result of DWARF_FRAME_REGNUM into a local variable.
2446
2447 2011-07-12  Richard Henderson  <rth@redhat.com>
2448
2449         PR target/49714
2450         * config/i386/i386.c (x86_output_mi_thunk): Use
2451         machopic_indirect_call_target instead of machopic_indirection_name
2452         directly.
2453
2454 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
2455             Eric Botcazou  <ebotcazou@adacore.com>
2456
2457         * prefix.h: Wrap up in extern "C" block.
2458
2459 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
2460
2461         AMD bdver2 Enablement
2462         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
2463         (case ${target}): Add bdver2.
2464         * config/i386/driver-i386.c (host_detect_local_cpu): Let
2465         -march=native recognize bdver2 processors.
2466         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2467         bdver2 def_and_undef
2468         * config/i386/i386.c (struct processor_costs bdver2_cost): New
2469         bdver2 cost table.
2470         (m_BDVER2): New definition.
2471         (m_AMD_MULTIPLE): Includes m_BDVER2.
2472         (initial_ix86_tune_features): Add bdver2 tuning.
2473         (processor_target_table): Add bdver2 entry.
2474         (static const char *const cpu_names): Add bdver2 entry.
2475         (ix86_option_override_internal): Add bdver2 instruction sets.
2476         (ix86_issue_rate): Add bdver2.
2477         (ix86_adjust_cost): Add bdver2.
2478         (has_dispatch): Add bdver2.
2479         * config/i386/i386.h (TARGET_BDVER2): New definition.
2480         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
2481         (enum processor_type): Add PROCESSOR_BDVER2.
2482         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
2483         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
2484         description.
2485
2486 2011-07-12  Richard Henderson  <rth@redhat.com>
2487
2488         PR target/49714
2489         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
2490         destination address in memory on some paths.
2491
2492 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
2493
2494         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
2495         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
2496         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
2497         * function.c (locate_and_pad_parm): Take it into account.
2498         * target.def (function_arg_round_boundary): New hook.
2499         * targhooks.c (default_function_arg_round_boundary): New function.
2500         * targhooks.h (default_function_arg_round_boundary): Declare.
2501         * doc/tm.texi: Regenerate.
2502
2503 2011-07-12  Richard Guenther  <rguenther@suse.de>
2504
2505         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
2506         Do not perform no-op changes.
2507
2508 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
2509
2510         * config/arm/predicates.md (neon_struct_operand): Make a normal
2511         predicate.
2512         (neon_struct_or_register_operand): New predicate.
2513         * config/arm/neon.md (movmisalign<mode>): Replace predicates
2514         with neon_struct_or_register_operand.
2515         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
2516         neon_struct_operand instead of memory_operand.
2517
2518 2011-07-12  Martin Jambor  <mjambor@suse.cz>
2519
2520         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
2521         * cgraph.c (cgraph_get_node_or_alias): Removed.
2522         (change_decl_assembler_name): Changed all calls to
2523         cgraph_get_node_or_alias to a call to cgraph_get_node.
2524         (cgraph_make_decl_local): Likewise.
2525         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
2526         * varasm.c (default_binds_local_p_1): Likewise.
2527         (decl_binds_to_current_def_p): Likewise.
2528
2529 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
2530
2531         PR tree-optimization/49712
2532         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
2533
2534 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
2535
2536         * genautomata.c (add_arc): Return void.  All callers changed.
2537         (make_automaton): Remove dead code.
2538
2539 2011-07-11  Richard Henderson  <rth@redhat.com>
2540
2541         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
2542         (DW_FRAME_POINTER_REGNUM): New.
2543         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
2544         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
2545         (dwf_regno): New.
2546         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
2547         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
2548         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
2549         Use it.
2550         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
2551         * dwarf2out.h (dwarf_frame_regnum): New.
2552         (struct cfa_loc): Document the domain of the reg member.
2553
2554 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
2555
2556         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
2557         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
2558
2559 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
2560
2561         PR debug/49676
2562         * dwarf2out.c (int_shift_loc_descriptor): New function.
2563         (int_loc_descriptor): If shorter, emit i as
2564         (i >> shift), shift, DW_OP_shl for suitable shift value.
2565         Similarly, try to optimize large negative values using
2566         DW_OP_neg of a positive value if shorter.
2567         (size_of_int_shift_loc_descriptor): New function.
2568         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
2569         changes.
2570         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
2571         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
2572         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
2573         is shorter.
2574         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
2575         addend as added DW_OP_plus if it is shorter.
2576
2577 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2578
2579         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
2580         (DTORS_SECTION_ASM_OP): Define.
2581
2582 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2583
2584         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
2585         * config/t-dfprules: Move to ../libgcc/config.
2586         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2587         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
2588         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
2589         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
2590         Likewise.
2591         (i[34567]86-*-cygwin*): Likewise.
2592         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
2593         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
2594         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
2595         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
2596         D64PBIT_FUNCS, D128PBIT_FUNCS.
2597
2598 2011-07-11  Richard Guenther  <rguenther@suse.de>
2599
2600         * tree-vrp.c (simplify_conversion_using_ranges): Manually
2601         translate the source value-range through the conversion chain.
2602
2603 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
2604
2605         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
2606
2607 2011-07-11  Arthur Loiret  <aloiret@debian.org>
2608
2609         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
2610         a bi-arch compiler defaulting to 31-bit. In this case:
2611         (tmake_file): Add s390/t-linux64.
2612         * doc/install.texi: Add s390-linux to the list of targets supporting
2613         --enable-targets=all.
2614
2615 2011-07-11  Arthur Loiret  <aloiret@debian.org>
2616             Matthias Klose <doko@debian.org>
2617
2618         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
2619         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
2620         (tm_file): Add mips/linux64.h.
2621         (tmake_file): Add mips/t-linux64.
2622         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2623         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
2624         instead of hardcoded mabi=n32.
2625         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2626         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2627         convention.
2628
2629 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2630
2631         * passes.c (init_optimization_passes): Add invariant motion pass
2632         after induction variable optimization.
2633
2634 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
2635
2636         PR target/39633
2637         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
2638         offsets 1..5 set cc0 in a usable way.
2639
2640 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
2641
2642         * tree.h (call_expr_arg): Remove.
2643         (call_expr_argp): Likewise.
2644
2645 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2646
2647         * config/sparc/sparc.md (save_register_window_1): Rename to...
2648         (window_save): ...this.
2649         * config/sparc/sparc.c (emit_save_register_window): Rename to...
2650         (emit_window_save): ...this.
2651         (sparc_expand_prologue): Adjust to above renaming.
2652
2653 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
2654
2655         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
2656         of movabs for x32.
2657
2658 2011-07-10  Richard Henderson  <rth@redhat.com>
2659
2660         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
2661         run final, instead of emitting text directly.
2662
2663 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
2664
2665         * config/i386/i386.c (ix86_option_override_internal): Turn on
2666         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
2667         small PIC models for TARGET_X32.
2668
2669 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
2670
2671         PR target/49684
2672         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
2673         $(LIBGCC2_CFLAGS).
2674
2675         PR bootstrap/49680
2676         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
2677         stray notes and debug insns by using prev_nonnote_nondebug_insn
2678         instead of PREV_INSN.
2679
2680 2011-07-09  Richard Henderson  <rth@redhat.com>
2681
2682         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
2683         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
2684         * dwarf2out.c: ... here.
2685         (output_all_cfis): Remove.
2686         (dwarf2out_switch_text_section): Use output_cfis directly.
2687         (size_of_locs): Export.
2688         (output_loc_sequence, output_loc_sequence_raw): Export.
2689         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
2690         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
2691         output_cfa_loc_raw): Move to ...
2692         * dwarfcfi.c: ... here.
2693         * dwarf2out.h: Update decls.
2694
2695 2011-07-09  Richard Henderson  <rth@redhat.com>
2696
2697         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
2698         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
2699         * dwarf2cfi.c: ... here.
2700         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
2701         (DWARF_ROUND, DWARF_CIE_ID): Remove.
2702         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
2703         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
2704         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
2705
2706 2011-07-09  Richard Henderson  <rth@redhat.com>
2707
2708         * dwarf2cfi.c (cie_return_save): New.
2709         (queue_reg_save): Use compare_reg_or_pc.
2710         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
2711         (dwarf2out_frame_debug_expr): Likewise.
2712         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
2713         (initial_return_save): Likewise.
2714         (execute_dwarf2_frame): Save and restore initial return save from
2715         the cie to the fde.
2716         * config/mips/mips.c (mips_frame_set): Remove special case for
2717         DWARF_FRAME_RETURN_COLUMN.
2718
2719 2011-07-09  Richard Henderson  <rth@redhat.com>
2720
2721         * dwarf2cfi.c (lookup_cfa): Remove.
2722         (execute_dwarf2_frame): Assert queues are empty on entry.
2723         Setup initial cfa directly, not via lookup_cfa.
2724         Don't clear args_size state here.
2725
2726 2011-07-09  Richard Henderson  <rth@redhat.com>
2727
2728         * dwarf2cfi.c (add_cfi_vec): New.
2729         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
2730         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
2731         (execute_dwarf2_frame): Set add_cfi_vec.
2732
2733 2011-07-09  Richard Henderson  <rth@redhat.com>
2734
2735         * defaults.h (ASM_COMMENT_START): Move here...
2736         * dwarf2asm.c: ... from here.
2737         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
2738         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
2739         * varasm.c: Likewise.
2740
2741 2011-07-09  Richard Henderson  <rth@redhat.com>
2742
2743         PR debug/49686
2744         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
2745         (create_cfi_notes): ... do it here instead.
2746
2747 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
2748
2749         PR debug/49676
2750         * dwarf2out.c (size_of_int_loc_descriptor): New function.
2751         (address_of_int_loc_descriptor): Use it.
2752         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
2753
2754 2011-07-09  Richard Henderson  <rth@redhat.com>
2755
2756         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
2757         (prologue, epilogue): New.
2758         (return, *rts): New.
2759         (blockage, setd, seti): New.
2760         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2761         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2762         (pdp11_saved_regno): New.
2763         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
2764         generate rtl instead of text.
2765         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
2766         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
2767         * config/pdp11/pdp11-protos.h: Update.
2768
2769 2011-07-09  Richard Henderson  <rth@redhat.com>
2770
2771         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2772         try to insert an rtl prologue here.
2773         (rs6000_output_function_epilogue): Similarly.
2774         * config/rs6000/rs6000.md (prologue): Emit a barrier to
2775         satisfy !TARGET_SCHED_PROLOG.
2776         (epilogue, sibcall_epilogue): Likewise.
2777
2778 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
2779
2780         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
2781         (FP_REG_P): Delete.
2782         (IN_OR_GLOBAL_P): Likewise.
2783
2784 2011-07-08  Jason Merrill  <jason@redhat.com>
2785
2786         PR c++/45437
2787         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
2788         compound assignment.
2789
2790         * cgraph.c (cgraph_add_to_same_comdat_group): New.
2791         * cgraph.h: Declare it.
2792         * ipa.c (function_and_variable_visibility): Make sure thunks
2793         have the right visibility.
2794
2795 2011-07-08  Richard Henderson  <rth@redhat.com>
2796
2797         PR bootstrap/49680
2798         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
2799         any tablejump vector.
2800
2801         PR bootstrap/49680
2802         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
2803         end of the prologue.
2804
2805 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
2806
2807         PR target/49621
2808         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
2809         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
2810         * config/rs6000/vector.md (vector_select_<mode>,
2811         vector_select_<mode>_uns): Change second operand of NE to
2812         CONST0_RTX (<MODE>mode) instead of const0_rtx.
2813         * config/rs6000/altivec.md (*altivec_vsel<mode>,
2814         *altivec_vsel<mode>_uns): Expect second operand of NE to be
2815         zero_constant of the corresponding vector mode.
2816         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
2817         Likewise.
2818
2819 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
2820
2821         * graphite-dependences.c (build_alias_set_powerset): Remove
2822         continue from loop, add one more assert.
2823
2824 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
2825
2826         PR target/46779
2827         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
2828         In particular, allow 8-bit values in r28 and r29.
2829         (avr_hard_regno_scratch_ok): Disallow any register that might be
2830         part of the frame pointer.
2831         (avr_hard_regno_rename_ok): Same.
2832         (avr_legitimate_address_p): Don't allow SUBREGs.
2833
2834 2011-07-08  Julian Brown  <julian@codesourcery.com>
2835
2836         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
2837         big-endian mode.
2838         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
2839         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
2840         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
2841         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
2842         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
2843         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
2844         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
2845         registers in big-endian mode.
2846
2847 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
2848
2849         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
2850         in terms of another.
2851         (write_attr_value): Write a cast if necessary.
2852
2853         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
2854         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
2855         (REG_WORDS_BIG_ENDIAN): Document.
2856         * doc/tm.texi: Regenerate.
2857         * reload.c (operands_match_p): Take it into account.
2858         (reload_adjust_reg_for_mode): Likewise.
2859         * rtlanal.c (subreg_get_info): Likewise.
2860
2861 2011-07-08  Richard Guenther  <rguenther@suse.de>
2862
2863         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
2864         folding.
2865
2866 2011-07-08  Kai Tietz  <ktietz@redhat.com>
2867
2868         * fold-const.c (fold_truth_andor): Factored out truth_andor
2869         label from fold_binary as function.
2870         (fold_binary_loc): Replace truth_andor lable
2871         by function fold_truth_andor.
2872
2873 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
2874
2875         PR middle-end/49519
2876         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
2877         check if address is stored in register. If so - give up.
2878         (check_sibcall_argument_overlap_1): Do not perform check of
2879         overlapping when it is call to address.
2880
2881 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
2882
2883         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
2884         of magic '31'.
2885
2886 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
2887
2888         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
2889         GET_MODE_BITSIZE where appropriate.
2890         (widen_leading, expand_parity, expand_ctz, expand_ffs,
2891         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
2892         expand_float, expand_fix): Likewise.
2893         * expr.c (convert_move, convert_modes, expand_expr_real_2,
2894         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2895         * stor-layout.c (get_mode_bounds): Likewise.
2896         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
2897         Likewise.
2898         * convert.c (convert_to_integer): Likewise.
2899         * expmed.c (expand_shift_1): Likewise.
2900
2901         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
2902         a bitsize.
2903
2904         * optabs.c (expand_binop): Tighten conditions for doubleword
2905         expansions.
2906         (widen_bswap): Assert that mode bitsize and precision are the same.
2907         * stor-layout.c (get_best_mode): Skip modes that have lower
2908         precision than bitsize.
2909         * recog.c (simplify_while_replacing): Assert that bitsize and
2910         precision are the same.
2911
2912 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2913
2914         * Makefile.in (LIBGCOV): Remove.
2915         (libgcc.mvars): Remove LIBGCOV.
2916         * libgov.c: Move to ../libgcc.
2917
2918 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2919
2920         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
2921
2922 2011-07-08  Martin Jambor  <mjambor@suse.cz>
2923
2924         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
2925         is too big for total scalarization.
2926
2927 2011-07-07  Richard Henderson  <rth@redhat.com>
2928
2929         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
2930         (DBX_DEBUGGING_INFO): Undef.
2931
2932 2011-07-07  Richard Henderson  <rth@redhat.com>
2933
2934         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
2935         Handle some opcodes specially for debugging.
2936         * print-rtl.c: Include dwarf2out.h
2937         (print_rtx): Handle NOTE_INSN_CFI.
2938         * Makefile.in (print-rtl.o): Update.
2939
2940 2011-07-07  Richard Henderson  <rth@redhat.com>
2941
2942         * tree-pass.h (pass_dwarf2_frame): Declare.
2943         * passes.c (init_optimization_passes): Add it.
2944         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
2945         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
2946         make static, do not call add_cfis_to_fde.
2947         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
2948         dwarf2out_frame_init): Merge into...
2949         (execute_dwarf2_frame): ... here.  New function.
2950         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
2951         saved_do_cfi_asm to a tri-state variable.
2952         (gate_dwarf2_frame, pass_dwarf2_frame): New.
2953         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
2954         if it has yet to be done.  Don't call dwarf2cfi_function_init.
2955         * dwarf2out.h, debug.h: Update decls.
2956         * final.c (final_start_function): Don't call
2957         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
2958         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
2959         * toplev.c (lang_dependent_init): Likewise.
2960
2961 2011-07-07  Richard Henderson  <rth@redhat.com>
2962
2963         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
2964         FDE_TABLE_INCREMENT): Replace with...
2965         (fde_vec): ... this, a new vector.
2966         (current_fde): Remove.  Replace all users with cfun->fde.
2967         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
2968         (size_of_aranges, dwarf2out_finish): Likewise.
2969         (dwarf2out_alloc_current_fde): Break out from ...
2970         (dwarf2out_begin_prologue): ... here.
2971         (dwarf2out_frame_init): Remove.
2972         * dwarf2cfi.c: Update all users of current_fde.
2973         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
2974         * dwarf2out.h: Update decls.
2975         (dw_fde_node): Add fde_index member.
2976         * function.h (struct function): Add fde member.
2977
2978 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2979             Richard Henderson  <rth@redhat.com>
2980
2981         * dwarf2cfi.c (add_cfi): Remove.
2982         (dwarf2out_cfi_label): Remove force argument.  Only generate the
2983         label name.
2984         (add_fde_cfi): Simplify the different code paths.
2985         (add_cie_cfi): New.
2986         (old_cfa, old_cfa_remember): New.
2987         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
2988         (last_reg_save_label): Remove.
2989         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
2990         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
2991         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
2992         dwarf2out_frame_debug_cfa_expression,
2993         dwarf2out_frame_debug_cfa_restore,
2994         dwarf2out_frame_debug_cfa_window_save,
2995         dwarf2out_frame_debug_expr): Remove label parameter.
2996         (cfi_label_required_p, add_cfis_to_fde): New.
2997         (dwarf2out_frame_debug_after_prologue): New.
2998         (dwarf2cfi_frame_init): Initialize old_cfa.
2999         (dwarf2out_frame_debug_restore_state): Likewise.
3000         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
3001         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
3002         * final.c (final_start_function): Call
3003         dwarf2out_frame_debug_after_prologue.
3004
3005 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3006             Richard Henderson  <rth@redhat.com>
3007
3008         * dwarf2cfi.c (cfi_insn): New.
3009         (dwarf2out_cfi_label): Don't emit cfi label here.
3010         (add_fde_cfi): Create a NOTE_INSN_CFI.
3011         (dwarf2out_frame_debug): Setup cfi_insn.
3012         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
3013         (dwarf2out_cfi_begin_epilogue): Make static.
3014         (dwarf2out_frame_debug_restore_state): Make static.
3015         * dwarf2out.c (output_cfi_directive): Make static.
3016         (dwarf2out_emit_cfi): New.
3017         * dwarf2out.h: Update.
3018         * final.c (final): Remove CFI notes.
3019         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
3020         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
3021         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
3022         * insn-notes.def (NOTE_INSN_CFI): New.
3023         (NOTE_INSN_CFI_LABEL): New.
3024         * rtl.h (union rtunion_def): Add rt_cfi member.
3025         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
3026
3027 2011-07-07  Richard Henderson  <rth@redhat.com>
3028
3029         * dwarf2cfi.c: New file.
3030         * Makefile.in (OBJS): Add it.
3031         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
3032         * gengtype.c (open_base_files): Include dwarf2out.h.
3033         * coretypes.h (enum var_init_status): Move from ...
3034         * rtl.h: ... here.
3035         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
3036         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
3037         expand_builtin_dwarf_sp_column, init_return_column_size,
3038         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
3039         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
3040         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
3041         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
3042         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
3043         compute_barrier_args_size, dwarf2out_args_size,
3044         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
3045         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
3046         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
3047         queue_reg_save, dwarf2out_flush_queued_reg_saves,
3048         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
3049         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
3050         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
3051         dwarf2out_frame_debug_cfa_expression,
3052         dwarf2out_frame_debug_cfa_restore,
3053         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
3054         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
3055         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
3056         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
3057         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
3058         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
3059         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
3060         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
3061         dw_loc_descr_node): Move to dwarf2out.h.
3062         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
3063         mem_loc_descriptor): Export.
3064         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
3065         (dwarf2out_frame_init): Extract CIE generation code to
3066         dwarf2cfi_frame_init.
3067
3068 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3069
3070         PR target/49660
3071         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
3072         MASK_V8PLUS, remove commented out flag and reorder.
3073
3074 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
3075
3076         PR c/49644
3077         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
3078         one non-complex and one complex argument, call c_save_expr on both
3079         operands.
3080
3081 2011-07-07  Martin Jambor  <mjambor@suse.cz>
3082
3083         PR middle-end/49495
3084         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
3085         (verify_cgraph_node): Some functinality moved to
3086         verify_edge_corresponds_to_fndecl, call it.
3087
3088 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3089
3090         * config.gcc (*local*): Remove.
3091         * doc/install-old.texi: Don't mention local configurations.
3092
3093 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
3094
3095         PR debug/49522
3096         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
3097         referencing debug insns that have been reset.
3098         (dead_debug_insert_before): Don't assert reg is non-NULL,
3099         instead return immediately if it is NULL.
3100
3101 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3102
3103         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
3104
3105 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3106
3107         * hw-doloop.c: New file.
3108         * hw-doloop.h: New file.
3109         * Makefile.in (OBJS): Add hw-doloop.o.
3110         (hw-doloop.o): New rule.
3111         ($(obj_out_file)): Add hw-doloop.h dependency.
3112         * config/bfin/bfin.c: Include "hw-doloop.h".
3113         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
3114         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
3115         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
3116         type changed to hwloop_info.  Return bool, true if the loop was
3117         successfully optimized.  Remove code that was moved to
3118         hw-doloop.c, and adjust other parts.
3119         (hwloop_fail): New static function, containing parts that used
3120         to be in bfin_optimize_loop.
3121         (bfin_discover_loop, bfin_discover_loops, free_loops,
3122         bfin_reorder_loops): Remove.
3123         (hwloop_pattern_reg): New static function.
3124         (bfin_doloop_hooks): New variable.
3125         (bfin_reorg_loops): Remove most code, call reorg_loops.
3126         * config/bfin/bfin.md (doloop_end splitter): Also enable if
3127         loop counter is a memory_operand.
3128
3129 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
3130
3131         * config.gcc: Support --with-multilib-list for x86 Linux targets.
3132
3133         * configure.ac: Mention x86-64 for --with-multilib-list.
3134         * configure: Regenerated.
3135
3136         * config/i386/gnu-user64.h (SPEC_64): Support x32.
3137         (SPEC_32): Likewise.
3138         (ASM_SPEC): Likewise.
3139         (LINK_SPEC): Likewise.
3140         (TARGET_THREAD_SSP_OFFSET): Likewise.
3141         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
3142         (SPEC_X32): New.
3143
3144         * config/i386/i386.h (TARGET_X32): New.
3145         (TARGET_LP64): New.
3146         (LONG_TYPE_SIZE): Likewise.
3147         (POINTER_SIZE): Likewise.
3148         (POINTERS_EXTEND_UNSIGNED): Likewise.
3149         (OPT_ARCH64): Support x32.
3150         (OPT_ARCH32): Likewise.
3151
3152         * config/i386/i386.opt (mx32): New.
3153
3154         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
3155         (GLIBC_DYNAMIC_LINKERX32): Likewise.
3156         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
3157         (GLIBC_DYNAMIC_LINKERX32): Likewise.
3158
3159         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
3160         (BIONIC_DYNAMIC_LINKERX32): Likewise.
3161         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
3162
3163         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
3164
3165         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
3166
3167         * doc/invoke.texi: Document -mx32.
3168
3169 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
3170
3171         * doc/invoke.texi (mwords-little-endian): Deprecate.
3172         * config/arm/arm.opt (mwords-little-endian): Likewise.
3173         * config/arm/arm.c (arm_option_override): Warn about the deprecation
3174         of -mwords-little-endian.
3175
3176 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
3177
3178         * reload1.c (choose_reload_regs): Use mode sizes to check whether
3179         an old reload register completely defines the required value.
3180
3181 2011-07-07  Richard Guenther  <rguenther@suse.de>
3182
3183         * fold-const.c (fold_unary_loc): Do not strip sign-changes
3184         for NEGATE_EXPR.
3185
3186 2011-07-07  Richard Guenther  <rguenther@suse.de>
3187
3188         * tree-vrp.c (simplify_conversion_using_ranges): New function.
3189         (simplify_stmt_using_ranges): Call it.
3190
3191 2011-07-07  Kai Tietz  <ktietz@redhat.com>
3192
3193         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
3194         (lookup_logical_inverted_value): Likewise.
3195         (simplify_bitwise_binary_1): Likewise.
3196         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
3197
3198 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3199
3200         * gcc.c (%[Spec]): Don't document.
3201         (struct spec_list): Update comment.
3202         (do_spec_1): Don't handle %[Spec].
3203         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
3204
3205 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3206
3207         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
3208         default based on TARGET_ASM_NAMED_SECTION.
3209         * common/common-target.def (have_named_sections): Default to true.
3210         * common/config/default-common.c: Don't include tm.h.
3211         * common/config/picochip/picochip-common.c
3212         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
3213         * common/config/m32c/m32c-common.c: Remove.
3214         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
3215         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3216         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3217         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3218         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3219         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3220         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3221
3222 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
3223
3224         PR middle-end/49640
3225         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
3226         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
3227
3228 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3229
3230         PR libmudflap/49550
3231         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
3232
3233 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3234
3235         PR target/39150
3236         * configure.ac (gcc_cv_as_hidden): Also accept
3237         x86_64-*-solaris2.1[0-9]*.
3238         (gcc_cv_as_cfi_directive): Likewise.
3239         (gcc_cv_as_comdat_group_group): Likewise.
3240         (set_have_as_tls): Likewise.
3241         * configure: Regenerate.
3242         * config.gcc (i[34567]86-*-solaris2*): Also handle
3243         x86_64-*-solaris2.1[0-9]*.
3244         * config.host (i[34567]86-*-solaris2*): Likewise.
3245         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
3246         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
3247         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
3248         (TARGET_LD_EMULATION): Use it.
3249         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
3250         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
3251         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
3252         (ASM_CPU64_DEFAULT_SPEC): Define.
3253         (ASM_CPU_SPEC): Use %(asm_cpu_default).
3254         (ASM_SPEC): Redefine.
3255         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
3256         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
3257         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
3258         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
3259         configuration.
3260         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
3261
3262 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3263
3264         * config/sol2.h (ASM_SPEC): Split into ...
3265         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
3266         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
3267         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
3268         (ASM_SPEC): Use ASM_SPEC_BASE.
3269         * config/sparc/sol2.h (ASM_SPEC): Redefine.
3270
3271 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
3272
3273         * config/avr/avr.md (*reload_insi): Change predicate #1 to
3274         const_int_operand.  Ditto for peep2 producing this insn.
3275         Add argument to output_reload_insisf call.
3276         (*movsi,*movsf): Add argument to output_movsisf call.
3277         (*reload_insf): New insn and new peep2 to produce it.
3278         * config/avr/avr-protos.h (output_movsisf): Change prototype.
3279         (output_reload_insisf): Change prototype.
3280         * config/avr/avr.c (avr_asm_len): New function.
3281         (output_reload_insisf): Rewrite.
3282         (output_movsisf): Change prototype.  output_reload_insisf for
3283         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
3284         (adjust_insn_length): Add argument to output_movsisf and
3285         output_reload_insisf call.
3286
3287 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3288
3289         * emit-rtl.c (paradoxical_subreg_p): New function.
3290         * rtl.h (paradoxical_subreg_p): Declare.
3291         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
3292         apply_distributive_law, simplify_comparison, simplify_set): Use it.
3293         * cse.c (record_jump_cond, cse_insn): Likewise.
3294         * expr.c (force_operand): Likewise.
3295         * rtlanal.c (num_sign_bit_copies1): Likewise.
3296         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
3297         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
3298         (push_reload): Use precision to check for paradoxical subregs.
3299         * expmed.c (extract_bit_field_1): Likewise.
3300
3301         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
3302         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
3303         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
3304         simplify_set, simplify_logical, expand_compound_operation,
3305         make_extraction, force_to_mode, if_then_else_cond, extended_count,
3306         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
3307         record_value_for_reg): Likewise.
3308         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
3309         * simplify-rtx. c (simplify_unary_operation_1,
3310         simplify_binary_operation_1, simplify_const_relational_operation):
3311         Likewise.
3312
3313         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
3314         instead of GET_MODE_BITSIZE where appropriate.
3315         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
3316         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
3317         init_num_sign_bit_copies_in_rep): Likewise.
3318         * cse.c (fold_rtx, cse_insn): Likewise.
3319         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
3320         * simplify-rtx.c (simplify_unary_operation_1,
3321         simplify_const_unary_operation, simplify_binary_operation_1,
3322         simplify_const_binary_operation, simplify_ternary_operation,
3323         simplify_const_relational_operation, simplify_subreg): Likewise.
3324         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
3325         simplify_if_then_else, simplify_set, expand_compound_operation,
3326         expand_field_assignment, make_extraction, if_then_else_cond,
3327         make_compound_operation, force_to_mode, make_field_assignment,
3328         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
3329         extended_count, try_widen_shift_mode, simplify_shift_const_1,
3330         simplify_comparison, record_promoted_value, simplify_compare_const,
3331         record_dead_and_set_regs_1): Likewise.
3332
3333         Revert:
3334         * simplify-rtx.c (simplify_const_binary_operation): Use the
3335         shift_truncation_mask hook instead of performing modulo by width.
3336         Compare against mode precision, not bitsize.
3337         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
3338         Use shift_truncation_mask instead of constructing the value manually.
3339
3340 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
3341
3342         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
3343         declaration.
3344         (rs6000_save_toc_in_prologue_p): Ditto.
3345
3346         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
3347         up the static chain (r11) during indirect function calls.
3348         (-msave-toc-indirect): New undocumented debug switch.
3349
3350         * config/rs6000/rs6000.c (struct machine_function): Add
3351         save_toc_in_prologue field to note whether the prologue needs to
3352         save the TOC value in the reserved stack location.
3353         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
3354         to save the TOC in the prologue, do so.
3355         (rs6000_trampoline_init): Don't allow creating AIX style
3356         trampolines if -mno-r11 is in effect.
3357         (rs6000_call_indirect_aix): New function to create AIX style
3358         indirect calls, adding support for -mno-r11 to suppress loading
3359         the static chain, and saving the TOC in the prologue instead of
3360         the call body.
3361         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
3362         TOC in the prologue.
3363
3364         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
3365         register numbers.
3366         (TOC_REGNUM): Ditto.
3367         (STATIC_CHAIN_REGNUM): Ditto.
3368         (ARG_POINTER_REGNUM): Ditto.
3369         (SFP_REGNO): Delete, unused.
3370         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
3371         function descriptor offsets.
3372         (TOC_SAVE_OFFSET_64BIT): Ditto.
3373         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
3374         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
3375         (AIX_FUNC_DESC_SC_32BIT): Ditto.
3376         (AIX_FUNC_DESC_SC_64BIT): Ditto.
3377         (ptrload): New mode attribute for the appropriate load of a pointer.
3378         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
3379         (call_indirect_aix64): Ditto.
3380         (call_value_indirect_aix32): Ditto.
3381         (call_value_indirect_aix64): Ditto.
3382         (call_indirect_nonlocal_aix32_internal): Ditto.
3383         (call_indirect_nonlocal_aix32): Ditto.
3384         (call_indirect_nonlocal_aix64_internal): Ditto.
3385         (call_indirect_nonlocal_aix64): Ditto.
3386         (call): Rewrite AIX indirect function calls.  Add support for
3387         eliminating the static chain, and for moving the save of the TOC
3388         to the function prologue.
3389         (call_value): Ditto.
3390         (call_indirect_aix<ptrsize>): Ditto.
3391         (call_indirect_aix<ptrsize>_internal): Ditto.
3392         (call_indirect_aix<ptrsize>_internal2): Ditto.
3393         (call_indirect_aix<ptrsize>_nor11): Ditto.
3394         (call_value_indirect_aix<ptrsize>): Ditto.
3395         (call_value_indirect_aix<ptrsize>_internal): Ditto.
3396         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3397         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3398         (call_nonlocal_aix32): Relocate in the rs6000.md file.
3399         (call_nonlocal_aix64): Ditto.
3400
3401         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
3402         -mno-r11 documentation.
3403
3404 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
3405
3406         PR other/49658
3407         * doc/extend.texi (Compound Literals): Fix typo.
3408
3409 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
3410
3411         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
3412
3413 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
3414
3415         * configure.ac (plugin-version.h): Generate
3416         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
3417         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
3418         macros.
3419
3420         * configure: Regenerate.
3421
3422         * doc/plugins.texi (Building GCC plugins): Mention
3423         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
3424
3425 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
3426
3427         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
3428         * combine.c (make_extraction, gen_lowpart_or_truncate,
3429         apply_distributive_law, simplify_comparison,
3430         reg_truncated_to_mode, record_truncated_value): Use it.
3431         * cse.c (notreg_cost): Likewise.
3432         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
3433         * expr.c (convert_move, convert_modes): Likewise.
3434         * optabs.c (expand_binop, expand_unop): Likewise.
3435         * postreload.c (move2add_last_label): Likewise.
3436         * regmove.c (optimize_reg_copy_3): Likewise.
3437         * rtlhooks.c (gen_lowpart_general): Likewise.
3438         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3439
3440 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
3441
3442         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
3443
3444 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
3445
3446         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
3447         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
3448         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
3449         (simplify_const_unary_operation, simplify_binary_operation_1,
3450         simplify_const_binary_operation, simplify_const_relational_operation):
3451         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
3452         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
3453         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
3454         simplify_shift_const_1, simplify_comparison): Likewise.
3455         * expr.c (convert_modes): Likewise.
3456         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
3457         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
3458         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
3459
3460         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
3461
3462 2011-07-06  Richard Guenther  <rguenther@suse.de>
3463
3464         PR tree-optimization/49645
3465         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
3466         register variables.
3467         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
3468         in type qualification here ...
3469         (copy_reference_ops_from_ref): ... not here.
3470         (vn_reference_lookup_3): ... or here.
3471         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
3472         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
3473
3474 2011-07-06  Ian Lance Taylor  <iant@google.com>
3475
3476         * doc/install.texi (Configuration): It's
3477         --enable-gnu-indirect-function, not --enable-indirect-function.
3478
3479 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
3480
3481         * simplify-rtx.c (simplify_const_binary_operation): Use the
3482         shift_truncation_mask hook instead of performing modulo by width.
3483         Compare against mode precision, not bitsize.
3484         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
3485         Use shift_truncation_mask instead of constructing the value manually.
3486
3487 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
3488
3489         PR middle-end/47383
3490         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
3491         address computation and convert to address_mode if needed.
3492
3493 2011-07-06  Richard Guenther  <rguenther@suse.de>
3494
3495         * tree.c (build_common_tree_nodes_2): Merge with
3496         build_common_tree_nodes.
3497         * tree.h (build_common_tree_nodes): Adjust prototype.
3498         (build_common_tree_nodes_2): Remove.
3499         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
3500         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
3501
3502 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
3503
3504         PR tree-optimization/49618
3505         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
3506         t recurse on the decl.
3507         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
3508         return true if expr isn't known to be defined in current
3509         TU or some other LTO partition.
3510
3511 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
3512
3513         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
3514         override CASE_VALUES_THRESHOLD.
3515
3516         * stmt.c (toplevel): Include params.h.
3517         (case_values_threshold): Use the --param case-values-threshold
3518         value if non-zero, otherwise use machine dependent value.
3519         (expand_case): Use case_values_threshold.
3520
3521         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
3522
3523         * doc/invoke.texi (--param case-values-threshold): Document.
3524
3525 2011-07-05  Richard Henderson  <rth@redhat.com>
3526
3527         * dwarf2out.c (dwarf2out_cfi_label): Make static.
3528         (dwarf2out_flush_queued_reg_saves): Make static.
3529         (dwarf2out_reg_save): Remove.
3530         (dwarf2out_return_save): Remove.
3531         (dwarf2out_return_reg): Remove.
3532         (dwarf2out_reg_save_reg): Remove.
3533         (dwarf2out_def_cfa): Merge into ...
3534         (dwarf2out_frame_init): ... here.
3535         * dwarf2out.h, tree.h: Remove declarations as necessary.
3536
3537 2011-07-05  Richard Henderson  <rth@redhat.com>
3538
3539         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
3540         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3541         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
3542         the alloc insn.
3543
3544         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
3545         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
3546         (process_epilogue): Don't call dwarf2out_def_cfa.
3547
3548         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
3549         indicate the return address save.
3550         (process_cfa_register): Likewise.
3551
3552         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
3553         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
3554
3555         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
3556         for ar.pfs save at alloc insn.
3557
3558 2011-07-05  Richard Henderson  <rth@redhat.com>
3559
3560         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
3561         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3562         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
3563         stack pointer save.
3564         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
3565         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
3566         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
3567         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
3568
3569 2011-07-05  Richard Henderson  <rth@redhat.com>
3570
3571         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
3572         VUNSPEC_* constants here instead of via define_constants.
3573         (VUNSPEC_PEM): New constant.
3574         (procedure_entry_mask): New insn.
3575         (prologue): New expander.
3576         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
3577         (vax_expand_prologue): Rename from vax_output_function_prologue;
3578         emit rtl instead of text.
3579         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
3580         (print_operand): Add 'x' prefix.
3581
3582 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3583
3584         PR middle-end/47715
3585         * calls.c (precompute_register_parameters): Promote the function
3586         argument before checking non-legitimate constant.
3587
3588 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
3589
3590         PR tree-optimization/47654
3591         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
3592         (lst_do_strip_mine_loop): Return an int.
3593         (lst_do_strip_mine): Same.
3594         (scop_do_strip_mine): Same.
3595         (scop_do_block): Loop blocking should strip-mine at least two loops.
3596         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
3597         (scop_do_interchange): Same.
3598         * graphite-poly.h (scop_do_interchange): Update declaration.
3599         (scop_do_strip_mine): Same.
3600
3601 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
3602
3603         * graphite-clast-to-gimple.c (precision_for_value): Removed.
3604         (precision_for_interval): Removed.
3605         (gcc_type_for_interval): Use mpz_sizeinbase.
3606
3607 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
3608
3609         * graphite-ppl.h (value_max): Correct computation of max.
3610
3611 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
3612
3613         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
3614
3615 2011-07-05  Richard Guenther  <rguenther@suse.de>
3616
3617         * c-decl.c (c_init_decl_processing): Defer building common
3618         tree nodes to c_common_nodes_and_builtins.
3619
3620 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
3621
3622         PR tree-optimization/49580
3623         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
3624         the loop's number of iterations.
3625         * tree-parloops.c (transform_to_exit_first_loop): Add the
3626         handling of the loop's number of iterations before the call
3627         to gimple_duplicate_sese_tail.
3628         Insert the stmt caclculating the new rhs of the loop's
3629         condition stmt to the preheader instead of iters_bb.
3630
3631 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3632
3633         PR rtl-optimization/47449
3634         * fwprop.c (forward_propagate_subreg): Don't propagate hard
3635         register nor zero/sign extended hard register.
3636
3637 2011-07-05  Richard Guenther  <rguenther@suse.de>
3638
3639         PR tree-optimization/49518
3640         PR tree-optimization/49628
3641         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
3642         irrelevant and invariant data-references.
3643         (vect_analyze_data_ref_access): For invariant loads clear the
3644         group association.
3645
3646 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
3647
3648         PR rtl-optimization/49619
3649         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
3650         pass VOIDmode as op0_mode to recursive call, and return temp even
3651         when different from tor, just if it is not IOR of the original
3652         PLUS arguments.
3653
3654         PR rtl-optimization/49472
3655         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
3656         negating MULT, negate the second operand instead of first.
3657         (simplify_binary_operation_1) <case MULT>: If one operand is
3658         a NEG and the other is MULT, don't attempt to optimize by negation
3659         of the MULT operand if it only moves the NEG operation around.
3660
3661         PR debug/49602
3662         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
3663         get_current_def return value if it can't be trusted to be
3664         the current value of the variable in the current bb.
3665
3666 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
3667
3668         PR target/49600
3669         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
3670         general register to memory for !TARGET_INTER_UNIT_MOVES.
3671
3672 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
3673
3674         PR target/44643
3675         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
3676         instead of TREE_READONLY.
3677
3678 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
3679
3680         * doc/extend.texi (AVR Built-in Functions): Update documentation
3681         of __builtin_avr_fmul*.
3682         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
3683         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
3684         * config/avr/avr.md (fmul): Rename to fmul_insn.
3685         (fmuls): Rename to fmuls_insn.
3686         (fmulsu): Rename to fmulsu_insn.
3687         (fmul,fmuls,fmulsu): New expander.
3688         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
3689         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
3690         * config/avr/libgcc.S (__fmul): New function.
3691         (__fmuls): New function.
3692         (__fmulsu,__fmulsu_exit): New function.
3693
3694 2011-07-04  Richard Guenther  <rguenther@suse.de>
3695
3696         PR tree-optimization/49615
3697         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
3698         basic-block index check.
3699
3700 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
3701
3702         * longlong.h (count_leading_zeros, count_trailing_zeros,
3703         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
3704         resp. 64.
3705
3706 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
3707
3708         PR tree-optimization/49610
3709         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
3710         a basic block.
3711
3712 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
3713             Olivier Hainque  <hainque@adacore.com>
3714             Nicolas Setton  <setton@adacore.com>
3715
3716         * tree.h (TYPE_ARTIFICIAL): New flag.
3717         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
3718         the DIE of the type if it is artificial.
3719         (gen_array_type_die): Likewise.
3720         (gen_enumeration_type_die): Likewise.
3721         (gen_struct_or_union_type_die): Likewise.
3722         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
3723         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
3724
3725 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
3726
3727         * tree-object-size.c (pass_through_call): Handle
3728         BUILT_IN_ASSUME_ALIGNED.
3729
3730 2011-07-01  Martin Jambor  <mjambor@suse.cz>
3731
3732         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
3733
3734 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
3735
3736         PR middle-end/48016
3737         * explow.c (update_nonlocal_goto_save_area): Use proper mode
3738         for stack save area.
3739         * function.c (expand_function_start): Likewise.
3740
3741 2011-07-01  Richard Guenther  <rguenther@suse.de>
3742
3743         PR middle-end/49596
3744         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
3745         may have unknown refs.
3746
3747 2011-07-01  Kai Tietz  <ktietz@redhat.com>
3748
3749         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
3750
3751 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3752
3753         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
3754         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
3755         (Specific, mips-sgi-irix6): Likewise.
3756
3757 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3758
3759         PR libmudflap/49549
3760         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
3761
3762 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
3763
3764         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
3765         [idx]= and [idx1 ... idx2]= before initializers if needed for
3766         array initializers.
3767
3768 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
3769
3770         * config.gcc (score-*-elf): Remove score7.o.
3771         * config/score/t-score-elf: Likewise.
3772         * config/score/score.c: Merge score7 to score.c and
3773         remove forwarding functions.
3774         * config/score/score7.c: Deleted.
3775         * config/score/score7.h: Deleted.
3776
3777 2011-07-01  Richard Guenther  <rguenther@suse.de>
3778
3779         PR tree-optimization/49603
3780         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
3781
3782 2011-06-30  Martin Jambor  <mjambor@suse.cz>
3783
3784         * tree-sra.c (struct access): Rename total_scalarization to
3785         grp_total_scalarization
3786         (completely_scalarize_var): New function.
3787         (sort_and_splice_var_accesses): Set total_scalarization in the
3788         representative access.
3789         (analyze_access_subtree): Propagate total scalarization accross the
3790         tree, no holes in totally scalarized trees, simplify coverage
3791         computation.
3792         (analyze_all_variable_accesses): Call completely_scalarize_var instead
3793         of completely_scalarize_record.
3794
3795 2011-06-30  Richard Henderson  <rth@redhat.com>
3796
3797         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
3798         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
3799         * config/i386/i386.c: Don't include dwarf2out.h.
3800         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
3801         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
3802         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
3803         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
3804         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
3805
3806 2011-06-30  Richard Henderson  <rth@redhat.com>
3807
3808         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
3809         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3810         * final.c (final_scan_insn): Look for it, and invoke
3811         dwarf2out_frame_debug before the insn if found.
3812
3813 2011-06-30  Richard Henderson  <rth@redhat.com>
3814
3815         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
3816         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
3817
3818 2011-06-30  Richard Henderson  <rth@redhat.com>
3819
3820         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
3821         Define a vector of this type.
3822         (regs_saved_in_regs): Use a VEC.
3823         (num_regs_saved_in_regs): Remove.
3824         (compare_reg_or_pc): New.
3825         (record_reg_saved_in_reg): Split out from...
3826         (dwarf2out_flush_queued_reg_saves): ... here.
3827         (clobbers_queued_reg_save): Update for VEC.
3828         (reg_saved_in): Likewise.
3829         (dwarf2out_frame_debug_init): Likewise.
3830         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
3831         (dwarf2out_frame_debug_cfa_register): Likewise.
3832
3833 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3834
3835         PR tree-optimization/49572
3836         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
3837         type of the RHS instead of that of the LHS for the expression type.
3838
3839 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3840
3841         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
3842         unconditionally.
3843
3844 2011-06-30  Richard Guenther  <rguenther@suse.de>
3845
3846         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
3847         * tree-ssa-structalias.c (create_variable_info_for): Do not
3848         add initial constraints for non-var-decls.  Properly handle
3849         globals in other ltrans partitions.
3850         (intra_create_variable_infos): Manually create constraints for
3851         the fake no-alias parameter.
3852         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
3853         and assert there are no clones.
3854
3855 2011-06-30  Richard Guenther  <rguenther@suse.de>
3856
3857         PR tree-optimization/46787
3858         * tree-data-ref.c (dr_address_invariant_p): Remove.
3859         (find_data_references_in_stmt): Invariant accesses are ok now.
3860         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
3861         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
3862         invariant loads.
3863
3864 2011-06-30  Martin Jambor  <mjambor@suse.cz>
3865
3866         PR tree-optimization/49094
3867         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
3868         (build_accesses_from_assign): Use it.
3869
3870 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
3871
3872         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
3873         handling of BUILT_IN_ASSUME_ALIGNED.
3874
3875         PR debug/49364
3876         * dwarf2out.c (output_abbrev_section): Don't return early
3877         if abbrev_die_table_in_use is 1.
3878         (dwarf2out_finish): Instead don't call output_abbrev_section
3879         nor emit abbrev_section_label in that case.
3880
3881 2011-06-30  Nick Clifton  <nickc@redhat.com>
3882
3883         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
3884         for the V850E.
3885
3886 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
3887
3888         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
3889         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
3890
3891 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
3892
3893         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3894         both pattern and original statements if necessary.
3895         (vect_transform_loop): Likewise.
3896         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
3897         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
3898         Mark the pattern statement only if the original statement doesn't
3899         have its own uses.
3900         (process_use): Call vect_mark_relevant with additional parameter.
3901         (vect_mark_stmts_to_be_vectorized): Likewise.
3902         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
3903         (vect_analyze_stmt): Handle both pattern and original statements
3904         if necessary.
3905         (vect_transform_stmt): Don't store vectorized pattern statement
3906         in the original statement.
3907         (vect_is_simple_use_1): Use related pattern statement only if the
3908         original statement is irrelevant.
3909         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3910
3911 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
3912
3913         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
3914         option.
3915         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
3916         entry.
3917         (TARGET_AVX128_OPTIMAL): New definition.
3918         * config/i386/i386.c (initial_ix86_tune_features): Initialize
3919         X86_TUNE_AVX128_OPTIMAL entry.
3920         (ix86_option_override_internal): Enable the generation
3921         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
3922         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
3923         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
3924
3925 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3926
3927         PR tree-optimization/49539
3928         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
3929         names by means of stmt_references_abnormal_ssa_name.
3930         (associate_plusminus): Call can_propagate_from before propagating
3931         from definition statements.
3932         (ssa_forward_propagate_and_combine): Remove superfluous newline.
3933
3934 2011-06-29  Richard Guenther  <rguenther@suse.de>
3935
3936         * doc/invoke.texi: Document -scev dump modifier.
3937         * tree-pass.h (TDF_SCEV): New dump flag.
3938         * tree-dump.c (dump_option_value_in): Add scev.
3939         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
3940         * tree-scalar-evolution.c: Likewise.
3941
3942 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
3943
3944         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
3945         (cxa_type_match): Correct declaration.
3946         (__gnu_unwind_pr_common): Reconstruct additional indirection
3947         when __cxa_type_match returns succeeded_with_ptr_to_base.
3948
3949 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3950
3951         PR rtl-optimization/49114
3952         * reload.c (struct replacement): Remove SUBREG_LOC member.
3953         (push_reload): Do not set it.
3954         (push_replacement): Likewise.
3955         (subst_reload): Remove dead code.
3956         (copy_replacements): Remove assertion.
3957         (copy_replacements_1): Do not handle SUBREG_LOC.
3958         (move_replacements): Likewise.
3959         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
3960         Detect subregs via recursive descent instead of via SUBREG_LOC.
3961
3962 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
3963
3964         * config/avr/avr.c (avr_encode_section_info): Dispatch to
3965         default_encode_section_info.
3966
3967 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
3968
3969         PR tree-optimization/49545
3970         * builtins.c (get_object_alignment_1): Update function comment.
3971         Do not use DECL_ALIGN for functions, but test
3972         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
3973         * fold-const.c (get_pointer_modulus_and_residue): Don't check
3974         for functions here.
3975         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3976
3977 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
3978
3979         PR debug/49567
3980         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
3981         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
3982
3983 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
3984
3985         PR target/34734
3986         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
3987         about uninitialized data attributed 'progmem' from here...
3988         (avr_encode_section_info): ...to this new function.
3989         (TARGET_ENCODE_SECTION_INFO): New define.
3990         (avr_section_type_flags): For data in ".progmem.data", remove
3991         section flag SECTION_WRITE.
3992
3993 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
3994
3995         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
3996         _xmulhisi3_exit.
3997         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
3998         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
3999         (__umulhisi3): Ditto.
4000         * config/avr/avr.md (mulhisi3): New insn expender.
4001         (umulhisi3): New insn expender.
4002         (*mulhisi3_call): New insn.
4003         (*umulhisi3_call): New insn.
4004
4005 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
4006
4007         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
4008
4009 2011-06-28  Richard Henderson  <rth@redhat.com>
4010
4011         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
4012         all code and arguments that handled pushes.  Update all callers.
4013
4014 2011-06-28  Richard Henderson  <rth@redhat.com>
4015
4016         * config/arm/arm.c (arm_output_function_prologue): Don't call
4017         thumb1_output_function_prologue.
4018         (arm_expand_prologue): Avoid dead store.
4019         (number_of_first_bit_set): Use ctz_hwi.
4020         (thumb1_emit_multi_reg_push): New.
4021         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
4022         to emit the entire prologue as rtl.
4023         (thumb1_output_interwork): Split out from
4024         thumb1_output_function_prologue.
4025         (thumb1_output_function_prologue): Remove.
4026         (arm_attr_length_push_multi): Handle thumb1.
4027         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
4028         (prologue_thumb1_interwork): New.
4029         (*push_multi): Allow thumb1; use push_mult_memory_operand.
4030         * config/arm/predicates.md (push_mult_memory_operand): New.
4031
4032 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
4033
4034         * config/sparc/sync.md (*stbar): Delete.
4035         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
4036
4037 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
4038
4039         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
4040
4041 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4042
4043         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
4044         (TARGET_64BIT_DEFAULT): Define.
4045         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
4046         of tm_file.
4047         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
4048
4049 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
4050
4051         * common.opt (in_lto_p): New Variable entry.
4052         * flags.h (in_lto_p): Move to common.opt.
4053         * gcc.c: Include params.h.
4054         (set_option_handlers): Also use common_handle_option and
4055         target_handle_option.
4056         (main): Call global_init_params, finish_params and init_options_struct.
4057         * opts.c (debug_type_names): Move from toplev.c.
4058         (print_filtered_help): Access quiet_flag through opts pointer.
4059         (common_handle_option): Return early in the driver for some options.
4060         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
4061         opts pointer.
4062         * toplev.c (in_lto_p): Move to common.opt.
4063         (debug_type_names): Move to opts.c.
4064         * Makefile.in (OBJS): Remove opts.o.
4065         (OBJS-libcommon-target): Add opts.o.
4066         (gcc.o): Update dependencies.
4067
4068 2011-06-28  Kai Tietz  <ktietz@redhat.com>
4069
4070         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
4071
4072 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4073
4074         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
4075         with '=' constraint modifier.
4076         (*divdf3_vfp): Likewise.
4077         ("*mulsf3_vfp"): Likewise.
4078         ("*muldf3_vfp"): Likewise.
4079         ("*mulsf3negsf_vfp"): Likewise.
4080         ("*muldf3negdf_vfp"): Likewise.
4081
4082 2011-06-28  Nick Clifton  <nickc@redhat.com>
4083
4084         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
4085         relaxation when performing an incremental link.
4086
4087 2011-06-28  Kai Tietz  <ktietz@redhat.com>
4088
4089         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
4090         within BB from last to first.
4091
4092 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
4093
4094         * genattr-common.c: New.  Based on genattr.c.
4095         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
4096         (MOSTLYCLEANFILES): Add insn-attr-common.h.
4097         (opts.o): Update dependencies.
4098         (.PRECIOUS): Add insn-attr-common.h.
4099         (simple_rtl_generated_h): Add insn-attr-common.h.
4100         (build/genattr-common.o): New.
4101         (genprogrtl): Add attr-common.
4102         * genattr.c (main): Include insn-attr-common.h.  Don't generate
4103         definitions of DELAY_SLOTS or INSN_SCHEDULING.
4104         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
4105
4106 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
4107
4108         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
4109         avr-*-* and avr-*-rtems* targets.
4110
4111         * config/avr/elf.h: New file.
4112         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
4113         (TARGET_ASM_SELECT_SECTION): Define.
4114         (INIT_SECTION_ASM_OP): Undefine.
4115         (FINI_SECTION_ASM_OP): Undefine.
4116         (READONLY_DATA_SECTION_ASM_OP): Undefine.
4117         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
4118         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
4119         * config/avr/avr.h:
4120         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
4121         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
4122         (MAX_OFILE_ALIGNMENT): Move to elf.h.
4123         (STRING_LIMIT): Move to elf.h.
4124         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
4125         (ASM_DECLARE_OBJECT_NAME): Remove.
4126         (ESCAPES): Remove.
4127         (ASM_OUTPUT_SKIP): Remove.
4128         (DWARF2_DEBUGGING_INFO): Remove.
4129         (OBJECT_FORMAT_ELF): Remove.
4130         (USER_LABEL_PREFIX): Remove.
4131         (ASM_OUTPUT_EXTERNAL): Remove.
4132         (ASM_OUTPUT_ASCII): Remove.
4133         (TYPE_ASM_OP): Remove.
4134         (SIZE_ASM_OP): Remove.
4135         (WEAK_ASM_OP): Remove.
4136         (STRING_ASM_OP): Remove.
4137         (SET_ASM_OP): Remove.
4138         (ASM_WEAKEN_LABEL): Remove.
4139         (TYPE_OPERAND_FMT): Remove.
4140         (ASM_DECLARE_FUNCTION_SIZE): Remove.
4141         (ASM_FINISH_DECLARE_OBJECT): Remove.
4142         (NO_DOLLAR_IN_LABEL): Remove.
4143         (ASM_GENERATE_INTERNAL_LABEL): Remove.
4144         (ASM_OUTPUT_CASE_LABEL): Remove.
4145         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
4146         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
4147         (gas_output_ascii): Remove.
4148         (gas_output_limited_string): Remove.
4149         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
4150         * config/avr/avr-protos.h
4151         (gas_output_ascii): Remove prototye.
4152         (gas_output_limited_string): Remove prototype.
4153
4154 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
4155
4156         PR target/48637
4157         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
4158         asm operands.
4159
4160 2011-06-27  Jan Hubicka  <jh@suse.cz>
4161
4162         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
4163         node instead of references in node.
4164
4165 2011-06-27  Richard Henderson  <rth@redhat.com>
4166
4167         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
4168         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
4169         inside ifdef.
4170
4171 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
4172
4173         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
4174
4175         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
4176         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
4177         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
4178         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
4179         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
4180         (evaluate_stmt, execute_fold_all_builtins): Handle
4181         BUILT_IN_ASSUME_ALIGNED.
4182         * tree-ssa-dce.c (propagate_necessity): Likewise.
4183         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4184         call_may_clobber_ref_p_1): Likewise.
4185         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
4186         (expand_builtin_assume_aligned): New function.
4187         * doc/extend.texi (__builtin_assume_aligned): Document.
4188
4189         PR debug/49544
4190         * cselib.c (promote_debug_loc): If cselib_preserve_constants
4191         and l has two DEBUG_INSN owned locs instead of just one, adjust
4192         the second location's setting_insn too.
4193
4194 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4195
4196         PR libmudflap/38738
4197         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
4198
4199 2011-06-27  Nick Clifton  <nickc@redhat.com>
4200
4201         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
4202         bit position of highest bit set into a count of the high zero bits.
4203
4204 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4205
4206         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
4207
4208 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4209
4210         PR lto/48492
4211         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
4212         to a NULL parent.
4213
4214 2011-06-27  Richard Guenther  <rguenther@suse.de>
4215
4216         PR tree-optimization/49394
4217         * passes.c (execute_one_pass): Restore current_pass after
4218         applying IPA transforms.
4219
4220 2011-06-27  Kai Tietz  <ktietz@redhat.com>
4221
4222         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
4223         out of type precision after operation.
4224         (find_bswap): Take for limit value the integer auto-promotion
4225         into account.
4226
4227 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4228
4229         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
4230         forward scan as well.
4231
4232 2011-06-27  Tristan Gingold  <gingold@adacore.com>
4233
4234         PR target/44241
4235         * config/vms/vms-protos.h: New file.
4236         * config/vms/vms-crtlmap.map: New file.
4237         * config/vms/vms.c: New file.
4238         * config/vms/make-crtlmap.awk: New file.
4239         * config/vms/vms-crtl.h: File removed.
4240         * config/vms/vms-crtl-64.h: File removed.
4241         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
4242         * config/alpha/vms64.h: Do not include vms-crtl-64.h
4243         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
4244         clear some builtins on VMS.  Calls vms_patch_builtins.
4245         (avms_asm_output_external): Remove.
4246         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
4247         (struct crtl_name_spec): Remove
4248         (DO_CTRL_NAMES): Remove.
4249         * config/ia64/vms.h (struct crtl_name_spec): Remove
4250         (DO_CTRL_NAMES): Remove.
4251         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
4252         clear some builtins on VMS.  Calls vms_patch_builtins.
4253         (ia64_asm_output_external): Remove DO_CRTL_NAME.
4254         * config/ia64/vms64.h: Do not include vms-crtl-64.h
4255         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
4256
4257 2011-06-27  Tristan Gingold  <gingold@adacore.com>
4258
4259         * config/alpha/alpha.c (alpha_end_function): Always generate .end
4260         directive on VMS.
4261
4262 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4263
4264         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
4265         the function receives nonlocal gotos.
4266
4267 2011-06-27  Richard Guenther  <rguenther@suse.de>
4268
4269         PR tree-optimization/49536
4270         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
4271         For non-scalar inner types use a scalar type according to
4272         the scalar inner mode.
4273
4274 2011-06-27  Richard Guenther  <rguenther@suse.de>
4275
4276         PR tree-optimization/49365
4277         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
4278
4279 2011-06-27  Richard Guenther  <rguenther@suse.de>
4280
4281         PR tree-optimization/49169
4282         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
4283         the alignment of function decls.
4284
4285 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
4286
4287         PR target/47997
4288         * config/darwin.c (darwin_mergeable_string_section): Place string
4289         constants in '.cstring' rather than '.const' when CF/NSStrings are
4290         active.
4291
4292 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4293
4294         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
4295         (emit_save_register_window): Likewise.
4296         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
4297         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
4298         Swap back %o7/%i7 in register naming.
4299
4300 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
4301
4302         PR driver/49371
4303         * config/darwin.c (darwin_override_options): Improve warning when
4304         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
4305         is given with fpie/fPIE.
4306         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
4307         * config/darwin9.h (PIE_SPEC): New.
4308
4309 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
4310
4311         * timevar.c (timevar_print): Increase width for display of timevar
4312         name.
4313
4314 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
4315
4316         PR c++/46400
4317         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
4318         instead of TYPE_CHAIN for chain_next for types.
4319
4320 2011-06-24  Richard Henderson  <rth@redhat.com>
4321
4322         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
4323         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
4324         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
4325         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
4326         (sparc_flat_expand_prologue): Emit individual instructions
4327         instead of one of the above.
4328
4329 2011-06-24  Easwaran Raman  <eraman@google.com>
4330
4331         PR rtl-optimization/49429
4332         PR target/49454
4333         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
4334         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
4335         used to copy y into x.
4336         * calls.c (initialize_argument_information): Mark
4337         an argument addressable if it is passed by invisible reference.
4338         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
4339         if it is passed by reference.
4340
4341 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
4342
4343         PR rtl-optimization/49504
4344         * rtlanal.c (nonzero_bits1): Properly handle addition or
4345         subtraction of a pointer in Pmode if pointers extend unsigned.
4346         (num_sign_bit_copies1): Likewise.
4347
4348 2011-06-24  Martin Jambor  <mjambor@suse.cz>
4349
4350         PR tree-optimizations/49516
4351         * tree-sra.c (sra_modify_assign): Choose the safe path for
4352         aggregate copies if we also did scalar replacements.
4353
4354 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4355
4356         PR target/49335
4357         * config/arm/predicates.md (add_operator): New.
4358         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
4359
4360 2011-06-24  Andi Kleen  <ak@linux.intel.com>
4361
4362         * tree-sra.c (type_internals_preclude_sra_p): Add msg
4363         parameter. Split up ifs and report reason in *msg.
4364         (reject): Add.
4365         (find_var_candiate): Add msg variable.
4366         Split up ifs and report reason to reject.
4367         (find_param_candidates): Add msg variable.
4368         Pass msg to type_internals_preclude_sra_p.
4369
4370 2011-06-23  Jeff Law  <law@redhat.com>
4371
4372         PR middle-end/48770
4373         * reload.h (reload): Change to return a bool.
4374         * ira.c (ira): If requested by reload, run a fast DCE pass after
4375         reload has completed.  Fix comment typo.
4376         * reload1.c (need_dce): New file scoped static.
4377         (reload): Set reload_completed here.  Return whether or not a DCE
4378         pass after reload is needed.
4379         (delete_dead_insn): Set need_dce as needed.
4380
4381         PR middle-end/49465
4382         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
4383         to detect threading through joiner block.  If there was already
4384         an edge to the new target, then do not change the PHI nodes.
4385
4386 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
4387
4388         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
4389         get_pointer_alignment to see if base isn't sufficiently aligned.
4390
4391 2011-06-23  Jan Hubicka  <jh@suse.cz>
4392
4393         PR tree-optimize/49373
4394         * tree-pass.h (all_late_ipa_passes): Declare.
4395         * cgraphunit.c (init_lowered_empty_function): Fix properties.
4396         (cgraph_optimize): Execute late passes; remove unreachable funcions
4397         after materialization.
4398         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
4399         LTOing.
4400         * passes.c (all_late_ipa_passes): Declare.
4401         (dump_passes, register_pass): Handle late ipa passes.
4402         (init_optimization_passes): Move ipa_pta to late passes; schedule
4403         fixup_cfg at beggining of all_passes.
4404         (apply_ipa_transforms): New function.
4405         (execute_one_pass): When doing simple ipa pass, apply all transforms.
4406
4407 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
4408
4409         * params.c: Include common/common-target.h.  Don't include tm.h.
4410         (lang_independent_params): Move from toplev.c.
4411         (global_init_params): New.
4412         * params.h (global_init_params): Declare.
4413         * target.def (default_params): Move to common-target.def.
4414         * toplev.c (lang_independent_options): Remove.
4415         (lang_independent_params): Move to params.c.
4416         (general_init): Use global_init_params.
4417         * common/common-target.def (option_default_params): Move from
4418         target.def.
4419         * common/config/ia64/ia64-common.c: Include params.h.
4420         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4421         from ia64.c.
4422         * common/config/rs6000/rs6000-common.c: Include params.h.
4423         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4424         from rs6000.c.
4425         * common/config/sh/sh-common.c: Include params.h.
4426         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4427         from sh.c.
4428         * common/config/spu/spu-common.c: Include params.h.
4429         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4430         from spu.c.
4431         * config/ia64/ia64.c (ia64_option_default_params,
4432         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
4433         * config/rs6000/rs6000.c (rs6000_option_default_params,
4434         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
4435         * config/sh/sh.c (sh_option_default_params,
4436         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
4437         * config/spu/spu.c (spu_option_default_params,
4438         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
4439         * Makefile.in (OBJS): Remove params.o.
4440         (OBJS-libcommon-target): Add params.o.
4441         (params.o, $(common_out_object_file)): Update dependencies.
4442         * doc/tm.texi: Regenerate.
4443
4444 2011-06-23  Alan Modra  <amodra@gmail.com>
4445
4446         PR bootstrap/49383
4447         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
4448         invocation for 2011-06-09 changes.
4449
4450 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
4451
4452         PR libgomp/49490
4453         * omp-low.c (expand_omp_for_static_nochunk): Only
4454         use n ceil/ nthreads size for the first n % nthreads threads in the
4455         team instead of all threads except for the last few ones which
4456         get less work or none at all.
4457
4458         PR debug/49496
4459         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
4460         uses.
4461
4462 2011-06-22  Richard Guenther  <rguenther@suse.de>
4463
4464         PR tree-optimization/49493
4465         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
4466         Refer to the alias target of variables.
4467         (associate_varinfo_to_alias_1): Remove.
4468         (ipa_pta_execute): Do not associate aliases with anything.
4469         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
4470         (cgraph_function_node): Likewise.
4471         (cgraph_function_or_thunk_node): Likewise.
4472         (varpool_variable_node): Likewise.
4473
4474 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
4475
4476         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
4477         * config.gcc (arm*-*-linux*): Default to gnu tls.
4478         (arm*-*-*): Add --with-tls option.
4479         (all_defaults): Add 'tls'.
4480
4481 2011-06-22  Richard Henderson  <rth@redhat.com>
4482
4483         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
4484         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
4485         (dwarf2out_frame_debug_cfa_window_save): Rename from
4486         dwarf2out_window_save; make static.
4487         * tree.h (dwarf2out_window_save): Don't declare.
4488
4489         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
4490         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
4491         (emit_save_register_window): Rename from gen_save_register_window;
4492         emit the insn and add REG_CFA_* notes.
4493         (sparc_expand_prologue): Update to match.
4494         * config/sparc/sparc.md (save_register_window_1): Simplify from
4495         save_register_window<P:mode>.
4496
4497 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
4498
4499         PR target/49497
4500         * config/i386/i386.md (*lea_general_2): Always allow SImode.
4501         (*lea_general_2_zext): Likewise.
4502         (imul to lea peepholes): Use const359_operand and check
4503         TARGET_PARTIAL_REG_STALL.
4504
4505         * config/i386/predicates.md (const359_operand): New.
4506
4507 2011-06-22  Michael Matz  <matz@suse.de>
4508
4509         * cgraphunit.c (assemble_thunk): Use correct return type.
4510
4511 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
4512             Dmitry Melnik  <dm@ispras.ru>
4513
4514         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
4515         (neon_output_shift_immediate): Ditto.
4516         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
4517         prototype.
4518         (neon_output_shift_immediate): Ditto.
4519         * config/arm/neon.md (vashl<mode>3): Modified constraint.
4520         (vashr<mode>3_imm): New insn pattern.
4521         (vlshr<mode>3_imm): Ditto.
4522         (vashr<mode>3): Modified constraint.
4523         (vlshr<mode>3): Ditto.
4524         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
4525         predicate.
4526         (imm_for_neon_rshift_operand): Ditto.
4527         (imm_lshift_or_reg_neon): Ditto.
4528         (imm_rshift_or_reg_neon): Ditto.
4529
4530         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
4531
4532 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
4533
4534         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
4535         builtin calls even if likelyvalue is not CONSTANT.
4536         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
4537         Return get_value_for_expr of first operand
4538         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
4539         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4540         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
4541         their non-checking counterparts.
4542         (call_may_clobber_ref_p_1): Likewise.
4543         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
4544         like their non-checking counterparts.
4545         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4546         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
4547         like their non-checking counterparts.
4548         (find_func_clobbers): Likewise.
4549         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
4550         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
4551
4552         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
4553         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
4554         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
4555         of base type reference as argument.
4556         (resolve_addr_in_expr): Likewise.  Fix keep computation.
4557         (convert_descriptor_to_signed): Renamed to...
4558         (convert_descriptor_to_mode): ... this.  For wider types convert to
4559         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
4560         (typed_binop): New function.
4561         (scompare_loc_descriptor, ucompare_loc_descriptor,
4562         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
4563         default to unsigned type instead of signed.
4564
4565         PR debug/47858
4566         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
4567         (gimple_build_debug_source_bind_stat): New prototype.
4568         (gimple_build_debug_source_bind): Define.
4569         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
4570         gimple_debug_source_bind_get_value,
4571         gimple_debug_source_bind_get_value_ptr,
4572         gimple_debug_source_bind_set_var,
4573         gimple_debug_source_bind_set_value): New inlines.
4574         * gimple.c (gimple_build_debug_source_bind_stat): New function.
4575         * gimple-pretty-print.c (dump_gimple_debug): Handle
4576         GIMPLE_DEBUG_SOURCE_BIND.
4577         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
4578         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4579         * tree-parloops.c (eliminate_local_variables,
4580         separate_decls_in_region): Likewise.
4581         (separate_decls_in_region_debug): Renamed from
4582         separate_decls_in_region_debug_bind.  Handle
4583         gimple_debug_source_bind_p.
4584         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
4585         prototypes.
4586         (DECL_HAS_DEBUG_ARGS_P): Define.
4587         (struct tree_function_decl): Add has_debug_args_flag field.
4588         * tree.c (debug_args_for_decl): New variable.
4589         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
4590         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
4591         (rewrite_debug_stmt_uses): New function.
4592         (rewrite_stmt): Use it to rewrite debug stmt uses.
4593         * rtl.def (DEBUG_PARAMETER_REF): New.
4594         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
4595         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
4596         DEBUG_PARAMETER_REF.
4597         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
4598         * print-rtl.c (print_rtx): Likewise.
4599         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
4600         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
4601         debug stmts in the first bb.
4602         * tree-inline.c (remap_ssa_name): If remapping default def
4603         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
4604         a source bind debug stmt.
4605         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
4606         (maybe_move_debug_stmts_to_successors): Likewise.
4607         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
4608         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
4609         debug args vector from old_decl to new_decl.
4610         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
4611         or modified parameters, add debug bind stmts before call
4612         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
4613         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
4614         on DECL_DEBUG_EXPRs from debug args vector.
4615         (expand_debug_source_expr): New function.
4616         (expand_debug_locations): Use it for source bind insns.
4617         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
4618         * var-tracking.c (prepare_call_arguments): Add debug args
4619         to call_arguments if any.
4620         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
4621         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
4622         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
4623         (get_ref_die_offset, parameter_ref_descriptor): New functions.
4624         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
4625         (gen_subprogram_die): Handle parameters identified by
4626         DEBUG_PARAMETER_REF.
4627
4628 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
4629
4630         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
4631         * doc/install.texi (Configuration): Document --with-tls.
4632         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
4633         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
4634         (arm_tls_descseq_addr): New.
4635         (legitimize_tls_address): Add tlsdesc support.
4636         (arm_cannot_copy_insn_p): Check for tlscall.
4637         (arm_emit_tls_decoration): Likewise.
4638         * config/arm/arm.h (TARGET_GNU2_TLS): New.
4639         (OPTION_DEFAULT_SPECS): Add with-tls support.
4640         * config/arm/arm.md (R1_REGNUM): Define.
4641         (tlscall): New.
4642         * config/arm/arm.opt (tls_type): New enumeration type and values.
4643         (mtls-dialect): New switch.
4644         * config/arm/arm-opts.h (enum tls_type): New.
4645
4646 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4647
4648         * attribs.c (register_attribute): Added assert to check that all
4649         attribute specs are registered with a name that is not empty and
4650         does not start with '_'.
4651         (decl_attributes): Avoid the lookup of the "naked" attribute spec
4652         if the function has no attributes.
4653         * tree.c (is_attribute_with_length_p): Removed.
4654         (is_attribute_p): Removed.
4655         (private_is_attribute_p): New.
4656         (private_lookup_attribute): New.
4657         (lookup_attribute): Removed.
4658         (lookup_ident_attribute): New.
4659         (remove_attribute): Require the first argument to be in the form
4660         'text', not '__text__'.  Updated asserts.
4661         (merge_attributes): Use lookup_ident_attributes instead of
4662         lookup_attribute.
4663         (merge_dllimport_decl_attributes): Use remove_attribute.
4664         (attribute_list_contained): Likewise.
4665         (attribute_list_equal): Immediately return 1 if the arguments are
4666         identical pointers.
4667         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
4668         'int'.  Require the first argument to be in the form 'text', not
4669         '__text__'.  Require the second argument to be an identifier.
4670         (lookup_attribute): Made inline.  Require the first argument to be
4671         in the form 'text', not '__text__'.
4672         (private_is_attribute_p, private_lookup_attribute): New.
4673         Updated comments.
4674
4675 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
4676
4677         * builtins.c: Add sync_ or SYNC__ to builtin names.
4678         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
4679         * omp-low.c: Add sync_ or SYNC__ to builtin names.
4680
4681 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
4682
4683         PR target/33049
4684         * config/avr/avr.md (extzv): New expander.
4685         (*extzv): New insn.
4686         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
4687         * config/avr/constraints.md (C04): New constraint.
4688         * doc/md.texi (Machine Constraints): Document it.
4689
4690 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
4691
4692         PR middle-end/49489
4693         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
4694         unsignedp argument instead of 1 for clrsb_optab.
4695         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
4696         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
4697         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
4698         * optabs.c (widen_leading): Call widen_operand and expand_unop
4699         with 0 as unsignedp argument instead of 1 for clrsb_optab.
4700         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
4701
4702 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
4703
4704         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
4705
4706 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
4707
4708         * gensupport.c (add_define_attr): New static function.
4709         (is_predicable): Allow multi-alternative lists for the "predicable"
4710         attribute.
4711         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
4712         (process_one_cond_exec): Call alter_attrs_for_insn.
4713         * doc/md.texi (Defining Attributes): Mention some standard names.
4714         (Conditional Execution): Update documentation for "predicable".
4715
4716         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
4717         __builtin_clrsbll): Document.
4718         * doc/rtl.texi (clrsb): New entry.
4719         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
4720         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
4721         (expand_unop): Handle clrsb_optab.
4722         (init_optabs): Initialize it.
4723         * optabs.h (enum optab_index): New entry OTI_clrsb.
4724         (clrsb_optab): Define.
4725         * genopinit.c (optabs): Add an entry for it.
4726         * builtins.c (expand_builtin): Handle clrsb builtin functions.
4727         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
4728         BUILT_IN_CLRSBLL): New.
4729         * rtl.def (CLRSB): New code.
4730         * dwarf2out.c (mem_loc_descriptor): Handle it.
4731         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4732         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
4733         and popcount.
4734         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
4735         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
4736         (__ctzDI2): Move declaration.
4737         * config/bfin/bfin.md (clrsbsi2): New expander.
4738         (signbitssi2): Use the CLRSB rtx.
4739         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
4740         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
4741
4742 2011-06-21  Richard Guenther  <rguenther@suse.de>
4743
4744         * ipa-inline-transform.c (inline_transform): Fix previous change.
4745
4746 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
4747
4748         PR tree-optimization/49478
4749         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
4750         with constant operand.
4751
4752 2011-06-21  Richard Guenther  <rguenther@suse.de>
4753
4754         * ipa-inline-transform.c (inline_transform): Fix typo.
4755
4756 2011-06-21  Richard Guenther  <rguenther@suse.de>
4757
4758         PR tree-optimization/49483
4759         * tree-vect-stmts.c (vectorizable_assignment): Also handle
4760         VIEW_CONVERT_EXPR conversions.
4761
4762 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
4763
4764         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
4765         * config/avr/avr-tables.opt: New file (generated).
4766         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
4767         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
4768         avr-mcus.def.
4769         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
4770         (avr_option_override): Don't process -mmcu= argument here.  Set
4771         avr_current_device using avr_mcu_index.
4772         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
4773         * config/avr/avr.opt (mmcu=): Use Enum.
4774         * config/avr/t-avr (avr-devices.o): Update dependencies.
4775         ($(srcdir)/config/avr/avr-tables.opt): New.
4776         * target.def (help): Remove.
4777         * doc/tm.texi.in (TARGET_HELP): Remove.
4778         * doc/tm.texi: Regenerate.
4779         * opts.c: Don't include target.h.
4780         (common_handle_option): Don't call targetm.help.
4781         * system.h (TARGET_HELP): Poison.
4782         * Makefile.in (opts.o): Update dependencies.
4783
4784 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4785
4786         * config/usegld.h: New file.
4787         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
4788         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
4789         (LIB_SPEC): Likewise.  Search /lib.
4790         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
4791         (RDYNAMIC_SPEC): Handle GNU ld.
4792         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
4793         Define.
4794         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
4795         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
4796         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
4797         (STACK_CHECK_STATIC_BUILTIN): Define.
4798         * config/sol2.opt (compat-bsd): Remove.
4799         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
4800         * config/sol2-bi.h: New file.
4801         * config/sol2-gld.h: Remove.
4802         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
4803         (NO_DBX_BNSYM_ENSYM): Remove.
4804         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
4805         (STACK_CHECK_STATIC_BUILTIN): Remove.
4806         Test USE_GLD instead of TARGET_GNU_LD.
4807         * config/i386/sol2-10.h: Rename to ...
4808         * config/i386/sol2-bi.h .. this.
4809         (SUBTARGET_EXTRA_SPECS): Redefine.
4810         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
4811         (MULTILIB_DEFAULTS): Remove.
4812         (DEFAULT_ARCH32_P): Define.
4813         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
4814         (ARCH64_SUBDIR): Define.
4815         Test USE_GLD instead of TARGET_GNU_LD.
4816         (I386_EMULATION): Rename to ...
4817         (ARCH32_EMULATION): ... this.
4818         (X86_64_EMULATION): Rename to ...
4819         (ARCH64_EMULATION): ... this.
4820         (TARGET_LD_EMULATION): Remove.
4821         (LINK_ARCH_SPEC): Remove.
4822         * config/i386/sol2-gas.h: Remove.
4823         * config/i386/t-sol2-10: Rename to ...
4824         * config/i386/t-sol2-64: ... this.
4825         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
4826         (AS_SPARC64_FLAG): Define.
4827         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
4828         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
4829         depending on TARGET_CPU_DEFAULT.
4830         (CPP_CPU_SPEC): Redefine.
4831         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
4832         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
4833         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
4834         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
4835         ASM_ARCH_DEFAULT_SPEC): Redefine.
4836         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4837         LINK_ARCH_DEFAULT_SPEC.
4838         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
4839         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
4840         (ARCH64_SUBDIR): Define.
4841         (LINK_ARCH64_SPEC): Redefine.
4842         (CC1_SPEC): Redefine.
4843         (OPTION_DEFAULT_SPECS): Redefine.
4844         (MULTILIB_DEFAULTS): Define.
4845         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
4846         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
4847         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
4848         (NO_DBX_BNSYM_ENSYM): Remove.
4849         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
4850         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
4851         (TARGET_ASM_NAMED_SECTION): Likewise.
4852         (STACK_CHECK_STATIC_BUILTIN): Remove.
4853         * config/sparc/sol2-bi.h: Remove.
4854         * config/sparc/sol2-gas-bi.h: Remove.
4855         * config/sparc/sol2-gas.h: Remove.
4856         * config/sparc/sol2-gld-bi.h: Remove.
4857         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
4858         common parts ...
4859         (*-*-solaris2*): ... here.
4860
4861 2011-06-21  Christian Bruel  <christian.bruel@st.com>
4862
4863         PR other/43564
4864         * ipa-inline.c (can_inline_edge_p): Check
4865         !DECL_DISREGARD_INLINE_LIMITS.
4866
4867 2011-06-21  Christian Bruel  <christian.bruel@st.com>
4868
4869         PR middle-end/49139
4870         * cgraphunit.c (process_function_and_variable_attributes): warn when
4871         always_inline functions that are not inline.
4872         * ipa-inline-transform.c (inline_transform): Always call
4873         optimize_inline.
4874         * tree-inline.c (tree_inlinable_function_p): Use error instead
4875         of sorry.
4876         (expand_call_inline): Likewise.
4877
4878 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
4879
4880         * Makefile.in (dg_target_exps): Set.
4881         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
4882         instead of 7, try to divide it more evenly.
4883
4884 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
4885
4886         PR target/49089
4887         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
4888         (avx256_split_unaligned_store): New definition.
4889         (ix86_option_override_internal): Enable avx256 unaligned load/store
4890         splitting only when avx256_split_unaligned_load/store is set.
4891
4892 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
4893
4894         * regrename.c (scan_rtx_reg): Handle the case where we write to an
4895         open chain in a smaller mode without failing the entire block.
4896
4897 2011-06-21  Alan Modra  <amodra@gmail.com>
4898
4899         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
4900         CONST high part large-toc address.
4901         (rs6000_tls_referenced_p): Make static.
4902         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
4903
4904 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4905
4906         PR target/49385
4907         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
4908         one of the operands is a register.
4909
4910 2011-06-20  Kai Tietz  <ktietz@redhat.com>
4911
4912         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
4913         operations in combination with binary and.
4914
4915 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
4916
4917         * regrename.c (do_replace): Don't update notes.
4918
4919 2011-06-20  Alan Modra  <amodra@gmail.com>
4920
4921         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
4922         of toc-relative address in CONST.
4923         (rs6000_delegitimize_address): Recognize changed address.
4924         (rs6000_legitimize_reload_address): Likewise.
4925         (rs6000_emit_move): Don't force these constants to memory.
4926         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
4927         toc-relative address in CONST.
4928         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
4929         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
4930
4931 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4932
4933         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
4934         (count_trailing_zeros): Likewise.
4935
4936 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4937
4938         PR other/49325
4939         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
4940         .init_array can be used with .ctors on targets.
4941         * configure: Regenerated.
4942
4943 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
4944
4945         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
4946         if the element type is volatile.
4947
4948 2011-06-18  Jan Hubicka  <jh@suse.cz>
4949
4950         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
4951         extra name aliases.
4952         (lto_symtab_resolve_can_prevail_p): Likewise.
4953         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
4954         * cgraphbuild.c (record_reference): Remove extra body alias code.
4955         (mark_load): Likewise.
4956         (mark_store): Likewise.
4957         * cgraph.h (varpool_node): Remove extra_name filed;
4958         add alias_of and extraname_alias.
4959         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
4960         (varpool_alias_aliased_node): New inline function.
4961         (varpool_variable_node): New function.
4962         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
4963         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
4964         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
4965         (input_varpool_node): Likewise.
4966         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
4967         (varpool_externally_visible_p): Remove extra body alias code.
4968         (function_and_variable_visibility): Likewise.
4969         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
4970         (ipa_pta_execute): Use it.
4971         * varpool.c (varpool_remove_node): Remove extra name alias code.
4972         (varpool_mark_needed_node): Likewise.
4973         (varpool_analyze_pending_decls): Analyze aliases.
4974         (assemble_aliases): New functoin.
4975         (varpool_assemble_decl): Use it.
4976         (varpool_create_variable_alias): New function.
4977         (varpool_extra_name_alias): Rewrite.
4978         (varpool_for_node_and_aliases): New function.
4979
4980 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
4981
4982         PR target/49411
4983         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
4984         last_arg_constant and last argument doesn't match its predicate,
4985         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
4986         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
4987         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
4988         spelling of error message.
4989         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
4990         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
4991         const_0_to_255_operand instead of const_int_operand.
4992
4993         Revert:
4994         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
4995
4996         * config/i386/sse.md (blendbits): Remove mode attribute.
4997         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4998         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4999         Check integer value of operand 3 in insn constraint.
5000
5001 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
5002
5003         PR rtl-optimization/48542
5004         * reload.c (find_equiv_reg): Stop looking when finding a
5005         setjmp-type call.
5006         * reload1.c (reload_as_needed): Invalidate all reload
5007         registers when crossing a setjmp-type call.
5008
5009 2011-06-16  Jeff Law  <law@redhat.com>
5010
5011         * tree-ssa-threadupdate.c (struct redirection_data): New field
5012         intermediate_edge.
5013         (THREAD_TARGET2): Define.
5014         (redirection_data_eq): Also check that the intermediate edge is equal.
5015         (lookup_redirection_data): Drop useless argument.  Extract the
5016         outgoing_edge and intermediate edge from E.  Callers updated.
5017         (copy_phi_args, update_destination_phis): New functions.
5018         (fix_duplicate_block_edges): Likewise.
5019         (create_edge_and_update_destination_phis): Duplicate all the edges
5020         hung off e->aux.  Use copy_phi_args.
5021         (create_duplicates): Use fix_duplicate_block_edges.
5022         (fixup_template_block): Likewise.
5023         (redirect_edges): If necessary, redirect the joiner block's incoming
5024         edge to the duplicate of the joiner block.
5025         (thread_block): Don't muck up loops when threading through a joiner
5026         block.
5027         (thread_through_loop_header): Handle threading through a joiner block.
5028         (mark_threaded_blocks, register_jump_thread): Likewise.
5029         * tree-flow.h (register_jump_thread): Add new argument.  Callers
5030         updated.
5031         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
5032         (thread_across_edge): Handle threading through a joiner block.
5033
5034 2011-06-16  Martin Jambor  <mjambor@suse.cz>
5035
5036         PR tree-optimization/49343
5037         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
5038         calculate offset, provide 2nd operand for the new COMPONENT_REF.
5039
5040 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
5041
5042         * config/darwin-protos.h (machopic_select_rtx_section): Move to
5043         inside RTX_CODE ifdef.
5044
5045 2011-06-16  Tom de Vries  <tom@codesourcery.com>
5046
5047         PR target/45098
5048         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
5049         Disallow NULL pointer for pointer arithmetic.
5050
5051 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5052
5053         PR target/49398
5054         Revert.
5055         2011-06-10  Wei Guozhi  <carrot@google.com>
5056
5057         PR target/45335
5058         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
5059         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
5060         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
5061         related peephole2.
5062         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
5063         related peephole2.
5064         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
5065         (arm_legitimate_ldrd_p): New prototype.
5066         (arm_output_ldrd): New prototype.
5067         * config/arm/arm.c (arm_check_ldrd_operands): New function.
5068         (arm_legitimate_ldrd_p): New function.
5069         (arm_output_ldrd): New function.
5070
5071 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
5072
5073         PR middle-end/46500
5074         * doc/tm.texi.in: Update Copyright date.
5075         * doc/tm.texi: Regenerate.
5076         * targhooks.c (default_setup_incoming_varargs): Replace
5077         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5078         (default_pretend_outgoing_varargs_named): Likewise.
5079         (hook_pass_by_reference_must_pass_in_stack): Likewise.
5080         (hook_callee_copies_named): Likewise.
5081         (default_function_arg_advance): Likewise.
5082         (default_function_arg): Likewise.
5083         (default_function_incoming_arg): Likewise.
5084         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
5085         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
5086         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
5087         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5088         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
5089         * targhooks.h (default_setup_incoming_varargs): Likewise.
5090         (default_pretend_outgoing_varargs_named): Likewise.
5091         (hook_pass_by_reference_must_pass_in_stack): Likewise.
5092         (hook_callee_copies_named): Likewise.
5093         (default_function_arg_advance): Likewise.
5094         (default_function_arg): Likewise.
5095         (default_function_incoming_arg): Likewise.
5096         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
5097         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
5098         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
5099         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5100         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
5101         * target.def (pass_by_reference): Likewise.
5102         (setup_incoming_varargs, strict_argument_naming): Likewise.
5103         (pretend_outgoing_varargs_named, callee_copies): Likewise.
5104         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
5105         (function_incoming_arg): Likewise.
5106         * target.h: Don't include "tm.h" .
5107         (cumulative_args_t): New typedef.
5108         [GCC_TM_H] (get_cumulative_args): New static inline function.
5109         [GCC_TM_H] (pack_cumulative_args): Likewise.
5110         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
5111         argument type with cumulative_args_t.
5112         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
5113         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
5114         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
5115         (frv_arg_partial_bytes, frv_function_arg): Likewise.
5116         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
5117         (frv_function_arg_1): Likewise.
5118         * config/s390/s390.c (s390_pass_by_reference): Likewise.
5119         (s390_function_arg_advance, s390_function_arg): Likewise.
5120         * config/m32c/m32c.c (m32c_function_arg): Likewise.
5121         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
5122         (m32c_strict_argument_naming): Likewise.
5123         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
5124         (spu_function_arg_advance): Likewise.
5125         (spu_setup_incoming_varargs): Likewise.  Make static.
5126         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
5127         Remove prototype.
5128         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
5129         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5130         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
5131         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
5132         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
5133         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
5134         (mep_pass_by_reference, mep_function_arg): Likewise.
5135         (mep_function_arg_advance): Likewise.
5136         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
5137         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
5138         (m32r_function_arg, m32r_function_arg_advance): Likewise.
5139         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
5140         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
5141         (ix86_function_arg, ix86_pass_by_reference): Likewise.
5142         (ix86_setup_incoming_varargs): Likewise.
5143         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
5144         (sh_strict_argument_naming): Likewise.
5145         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
5146         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
5147         (sh_function_arg_advance, sh_function_arg): Likewise.
5148         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
5149         (pdp11_function_arg_advance): Likewise.
5150         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
5151         Likewise.
5152         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
5153         * config/avr/avr.c (avr_function_arg): Likewise.
5154         (avr_function_arg_advance): Likewise.
5155         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
5156         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
5157         (xtensa_function_arg_1): Likewise.
5158         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
5159         Likewise.
5160         (xstormy16_function_arg): Likewise.
5161         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
5162         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
5163         (fr30_function_arg_advance): Likewise.
5164         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
5165         (lm32_function_arg, lm32_function_arg_advance): Likewise.
5166         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
5167         (moxie_function_arg, moxie_function_arg_advance): Likewise.
5168         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
5169         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
5170         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
5171         (cris_function_arg, cris_function_incoming_arg): Likewise.
5172         (cris_function_arg_advance, cris_function_arg_1): Likewise.
5173         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
5174         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
5175         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
5176         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
5177         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
5178         (mn10300_arg_partial_bytes): Likewise.
5179         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
5180         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
5181         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
5182         (ia64_function_arg_1): Likewise.
5183         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
5184         (m68k_function_arg): Likewise.
5185         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
5186         (rs6000_function_arg, setup_incoming_varargs): Likewise.
5187         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
5188         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
5189         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
5190         (picochip_arg_advance): Likewise.
5191         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
5192         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
5193         (mcore_function_arg_advance): Likewise.
5194         * config/score/score.c (score_pass_by_reference): Likewise.
5195         (score_function_arg_advance): Likewise.
5196         (score_arg_partial_bytes): Likewise.  Make static.
5197         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
5198         * config/arm/arm.c (arm_arg_partial_bytes): Replace
5199         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5200         (arm_function_arg, arm_function_arg_advance): Likewise.
5201         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
5202         * config/pa/pa.c (pa_pass_by_reference): Likewise.
5203         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
5204         (pa_function_arg): Likewise.
5205         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
5206         (mips_function_arg, mips_function_arg_advance): Likewise.
5207         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
5208         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
5209         * config/vax/vax.c (vax_function_arg): Likewise.
5210         (vax_function_arg_advance): Likewise.
5211         * config/h8300/h8300.c (h8300_function_arg): Likewise.
5212         (h8300_function_arg_advance): Likewise.
5213         * config/v850/v850.c (v850_pass_by_reference): Likewise.
5214         (v850_strict_argument_naming, v850_function_arg): Likewise.
5215         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
5216         (v850_setup_incoming_varargs): Likewise.
5217         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
5218         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
5219         (mmix_function_arg, mmix_pass_by_reference): Likewise.
5220         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
5221         with const void *.
5222         * config/bfin/bfin.c (setup_incoming_varargs): Replace
5223         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5224         (bfin_function_arg_advance, bfin_function_arg): Likewise.
5225         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
5226         * calls.c (emit_call_1): Change type of args_so_far to
5227         cumulative_args_t.  Changed all callers.
5228         (initialize_argument_information): Likewise.
5229         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
5230         * dse.c (get_call_args): Likewise.
5231         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5232         * function.c (pass_by_reference, reference_callee_copied): Likewise.
5233         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
5234         New member args_so_far_v.  Changed all users.
5235         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
5236         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5237         * config/mips/mips.c (mips_output_args_xfer): Likewise.
5238         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5239         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5240         * config/microblaze/microblaze.c (microblaze_expand_prologue):
5241         Likewise.
5242         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
5243         m32r_pass_by_reference.
5244
5245 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
5246
5247         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
5248         argument to be a VEC of statements.
5249         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
5250         assert that pattern statements have to have their vector type set.
5251         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
5252         Change the first argument to be a VEC of statements.  Update
5253         documentation.
5254         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
5255         (vect_handle_widen_mult_by_const): New function.
5256         (vect_recog_widen_mult_pattern):  Change the first argument to be a
5257         VEC of statements.  Update documentation.  Check that the constant is
5258         INTEGER_CST.  Support multiplication by a constant that fits an
5259         intermediate type - call vect_handle_widen_mult_by_const.
5260         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
5261         call.  Handle additional pattern statements if necessary.
5262
5263 2011-06-16  Nick Clifton  <nickc@redhat.com>
5264
5265         PR target/49427
5266         * config.gcc: Set cpu_type to v850 for any V850 architecture.
5267         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
5268         md_file, extra_modes, out_file and extra_options are these are all
5269         deduced from cpu_type.
5270
5271 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
5272
5273         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
5274         truncation mask to 63.
5275
5276 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
5277
5278         PR target/49313
5279         PR target/29524
5280         * longlong.h: Add AVR support:
5281         (count_leading_zeros): New macro.
5282         (count_trailing_zeros): New macro.
5283         (COUNT_LEADING_ZEROS_0): New macro.
5284         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
5285         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
5286         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
5287         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
5288         (LIB2FUNCS_EXCLUDE): Add _clz.
5289         * config/avr/libgcc.S (XCALL): Move up in file.
5290         (XJMP): New C Macro.
5291         (DEFUN): New asm macro.
5292         (ENDF): New asm macro.
5293         (__ffssi2): New function.
5294         (__ffshi2): New function.
5295         (__loop_ffsqi2): New function.
5296         (__ctzsi2): New function.
5297         (__ctzhi2): New function.
5298         (__clzdi2): New function.
5299         (__clzsi2): New function.
5300         (__clzhi2): New function.
5301         (__paritydi2): New function.
5302         (__paritysi2): New function.
5303         (__parityhi2): New function.
5304         (__parityqi2): New function.
5305         (__popcounthi2): New function.
5306         (__popcountsi2): New function.
5307         (__popcountdi2): New function.
5308         (__popcountqi2): New function.
5309         (__bswapsi2): New function.
5310         (__bswapdi2): New function.
5311         (__ashldi3): New function.
5312         (__ashrdi3): New function.
5313         (__lshrdi3): New function.
5314         Fix suspicous lines.
5315
5316 2011-06-16  Richard Guenther  <rguenther@suse.de>
5317
5318         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
5319         the same as x != 0.
5320         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
5321         to (bool) X & 1.
5322         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
5323         equality compares against zero for the lower bit.
5324
5325 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
5326
5327         PR tree-optimization/49419
5328         * tree-vrp.c (execute_vrp): Call init_range_assertions
5329         before estimate_numbers_of_iterations, call
5330         free_number_of_iterations_estimates before calling
5331         remove_range_assertions.
5332
5333 2011-06-16  Revital Eres  <revital.eres@linaro.org>
5334
5335         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
5336         (struct partial_schedule): Add rows_length field.
5337         (verify_partial_schedule): Check rows_length.
5338         (ps_insert_empty_row): Handle rows_length.
5339         (create_partial_schedule): Likewise.
5340         (free_partial_schedule): Likewise.
5341         (reset_partial_schedule): Likewise.
5342         (create_ps_insn): Remove rest_count argument.
5343         (remove_node_from_ps): Update rows_length.
5344         (add_node_to_ps): Update rows_length and call create_ps_insn
5345         without passing row_rest_count.
5346         (rotate_partial_schedule): Update rows_length.
5347
5348 2011-06-16  Revital Eres  <revital.eres@linaro.org>
5349
5350         * ddg.c (add_intra_loop_mem_dep): New function.
5351         (build_intra_loop_deps): Call it.
5352
5353 2011-06-13  Jeff Law  <law@redhat.com>
5354
5355         * df-problems.c (df_lr_local_compute): Manually CSE
5356         PIC_OFFSET_TABLE_REGNUM.
5357         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
5358         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
5359
5360 2011-06-13  Jan Hubicka  <jh@suse.cz>
5361
5362         * cgraphunit.c (handle_alias_pairs): New function.
5363         (cgraph_finalize_compilation_unit): Use it.
5364         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
5365         as externally visible.
5366
5367 2011-06-15  Richard Guenther  <rguenther@suse.de>
5368
5369         * expr.c (expand_expr_real_2): Reduce all integral types to
5370         bitfield precision.
5371         (expand_expr_real_1): Likewise.
5372
5373 2011-06-15  Martin Jambor  <mjambor@suse.cz>
5374
5375         PR tree-optimization/48613
5376         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
5377         ipa_node_params_vector is NULL.
5378
5379 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
5380
5381         PR debug/49382
5382         * dwarf2out.c (dw_loc_list_node): Add force field.
5383         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
5384         location in the list, even if it is modified before first real insn.
5385         (output_loc_list): Emit empty ranges with force flag set.
5386         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
5387
5388 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
5389
5390         PR target/49349
5391         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
5392         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
5393         above a fence.  Update comments.
5394         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
5395         placed just above it.  Do not allow NULL place_to_insert.
5396
5397 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
5398
5399         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
5400         (slpeel_tree_peel_loop_to_edge): Don't call
5401         remove_dead_stmts_from_loop.
5402         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
5403         remove irrelevant pattern statements.  For irrelevant statements
5404         check if it is the last statement of a detected pattern, use
5405         corresponding pattern statement instead.
5406         (destroy_loop_vec_info): No need to remove pattern statements,
5407         only free stmt_vec_info.
5408         (vect_transform_loop): For irrelevant statements check if it is
5409         the last statement of a detected pattern, use corresponding
5410         pattern statement instead.
5411         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
5412         pattern statements.  Set basic block for the new statement.
5413         (vect_pattern_recog): Update documentation.
5414         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
5415         operands of pattern statements.
5416         (vectorizable_call): Fix printing.  In case of a pattern statement
5417         use the lhs of the original statement when creating a dummy
5418         statement to replace the original call.
5419         (vect_analyze_stmt): For irrelevant statements check if it is
5420         the last statement of a detected pattern, use corresponding
5421         pattern statement instead.
5422         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
5423         statements use gsi of the original statement.
5424
5425 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
5426
5427         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
5428         common/common-target-def.h.
5429         * target.def (default_target_flags, handle_option,
5430         supports_split_stack, optimization_table, init_struct,
5431         except_unwind_info, unwind_tables_default, have_named_sections):
5432         Move to common/common-target.def.
5433         * target.h (enum opt_levels, struct default_options): Move to
5434         common/common-target.h.
5435         * targhooks.c (default_except_unwind_info,
5436         dwarf2_except_unwind_info, sjlj_except_unwind_info,
5437         default_target_handle_option, empty_optimization_table): Move to
5438         common/common-targhooks.c.
5439         * targhooks.h (default_except_unwind_info,
5440         dwarf2_except_unwind_info, sjlj_except_unwind_info,
5441         default_target_handle_option, empty_optimization_table): Move to
5442         common/common-targhooks.h.
5443         * common/common-target-def.h: Include common/common-targhooks.h.
5444         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
5445         defined.
5446         * common/common-target.def (handle_option, option_init_struct,
5447         option_optimization_table, default_target_flags,
5448         except_unwind_info, supports_split_stack, unwind_tables_default,
5449         have_named_sections): Move from target.def.
5450         (HOOK_PREFIX): Undefine at end of file.
5451         * common/common-target.h: Include input.h.
5452         (enum opt_levels, struct default_options): Move from target.h.
5453         * common/common-targhooks.c, common/common-targhooks.h: New.
5454         * config.gcc (target_has_targetm_common): Default to yes.
5455         (moxie*): Set target_has_targetm_common=no.
5456         (hppa*-*-*): Don't set target_has_targetm_common=yes.
5457         * doc/tm.texi: Regenerate.
5458         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
5459         (C_TARGET_DEF_H): Add common/common-targhooks.h.
5460         (GCC_OBJS): Remove vec.o.
5461         (OBJS): Remove hooks.o and vec.o.
5462         (OBJS-libcommon-target): Add vec.o, hooks.o and
5463         common/common-targhooks.o.
5464         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
5465         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
5466         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
5467         cfglayout.o, $(out_object_file), $(common_out_object_file)):
5468         Update dependencies.
5469         (common/common-targhooks.o): New.
5470         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
5471         * common/config/pa/pa-common.c: Include more headers.  Take
5472         copyright dates from pa.c.
5473         (pa_option_optimization_table, pa_handle_option,
5474         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
5475         TARGET_HANDLE_OPTION): Move from pa.c.
5476         * common/config/alpha/alpha-common.c,
5477         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
5478         common/config/bfin/bfin-common.c,
5479         common/config/cris/cris-common.c,
5480         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
5481         common/config/h8300/h8300-common.c,
5482         common/config/i386/i386-common.c,
5483         common/config/ia64/ia64-common.c,
5484         common/config/iq2000/iq2000-common.c,
5485         common/config/lm32/lm32-common.c,
5486         common/config/m32c/m32c-common.c,
5487         common/config/m32r/m32r-common.c,
5488         common/config/m68k/m68k-common.c,
5489         common/config/mcore/mcore-common.c,
5490         common/config/mep/mep-common.c,
5491         common/config/microblaze/microblaze-common.c,
5492         common/config/mips/mips-common.c,
5493         common/config/mmix/mmix-common.c,
5494         common/config/mn10300/mn10300-common.c,
5495         common/config/pdp11/pdp11-common.c,
5496         common/config/picochip/picochip-common.c,
5497         common/config/rs6000/rs6000-common.c,
5498         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
5499         common/config/score/score-common.c, common/config/sh/sh-common.c,
5500         common/config/sparc/sparc-common.c,
5501         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
5502         common/config/vax/vax-common.c,
5503         common/config/xstormy16/xstormy16-common.c,
5504         common/config/xtensa/xtensa-common.c: New.
5505         * config/alpha/alpha.c: Include common/common-target.h.
5506         (alpha_option_optimization_table, alpha_handle_option,
5507         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5508         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
5509         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
5510         * config/arm/arm.c (arm_option_optimization_table,
5511         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5512         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
5513         arm-common.c.
5514         * config/avr/avr.c (avr_option_optimization_table,
5515         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
5516         to avr-common.c.
5517         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
5518         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
5519         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
5520         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
5521         * config/cris/cris.c (cris_option_optimization_table,
5522         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5523         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
5524         cris-common.c.
5525         * config/fr30/fr30.c (fr30_option_optimization_table,
5526         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
5527         to fr30-common.c.
5528         * config/frv/frv.c (frv_option_optimization_table,
5529         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
5530         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
5531         * config/h8300/h8300.c (h8300_option_optimization_table,
5532         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5533         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
5534         * config/i386/i386-protos.h (ix86_handle_option): Declare.
5535         * config/i386/i386.c: Include common/common-target.h.
5536         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
5537         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
5538         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
5539         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
5540         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
5541         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
5542         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
5543         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
5544         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
5545         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
5546         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
5547         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
5548         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
5549         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
5550         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
5551         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
5552         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
5553         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
5554         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
5555         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
5556         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
5557         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
5558         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
5559         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
5560         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
5561         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
5562         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
5563         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
5564         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
5565         ix86_option_optimization_table, ix86_option_init_struct,
5566         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
5567         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
5568         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
5569         i386-common.c.
5570         * config/i386/t-i386 (i386.o): Update dependencies.
5571         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
5572         * config/ia64/ia64.c (ia64_option_optimization_table,
5573         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
5574         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5575         ia64_handle_option): Move to ia64-common.c.
5576         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
5577         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
5578         * config/lm32/lm32.c (lm32_option_optimization_table,
5579         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
5580         to lm32-common.c.
5581         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
5582         m32c-common.c.
5583         * config/m32r/m32r.c (m32r_option_optimization_table,
5584         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5585         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
5586         m32r_handle_option): Move to m32r-common.c.
5587         (m32r_memory_move_cost): Remove comment referring to
5588         TARGET_HANDLE_OPTION.
5589         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
5590         Move to m68k-common.c.
5591         * config/mcore/mcore.c (mcore_option_optimization_table,
5592         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5593         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
5594         * config/mep/mep.c (mep_option_optimization_table,
5595         mep_handle_option, TARGET_HANDLE_OPTION,
5596         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
5597         Move to mep-common.c.
5598         * config/microblaze/microblaze.c
5599         (microblaze_option_optimization_table,
5600         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5601         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
5602         * config/mips/mips.c (mips_handle_option,
5603         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
5604         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
5605         mips-common.c.
5606         * config/mmix/mmix.c (mmix_option_optimization_table,
5607         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
5608         Move to mmix-common.c.
5609         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
5610         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
5611         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5612         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
5613         * config/pa/pa.c: Include common/common-target.h.
5614         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
5615         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5616         pa_handle_option): Move to pa-common.c.
5617         (pa_option_override): Use targetm_common.except_unwind_info.
5618         (pa_asm_output_mi_thunk, pa_function_section): Use
5619         targetm_common.have_named_sections.
5620         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
5621         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5622         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
5623         pdp11_handle_option, pdp11_option_init_struct): Move to
5624         pdp11-common.c.
5625         * config/picochip/picochip.c (picochip_option_optimization_table,
5626         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
5627         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
5628         * config/rs6000/rs6000.c: Include common/common-target.h.
5629         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
5630         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
5631         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
5632         rs6000_handle_option): Move to rs6000-common.c.
5633         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5634         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
5635         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
5636         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
5637         * config/s390/s390.c (processor_flags_table,
5638         s390_option_optimization_table, s390_option_init_struct,
5639         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
5640         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
5641         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
5642         * config/s390/s390.h (processor_flags_table): Declare.
5643         * config/score/score.c (score_option_optimization_table,
5644         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5645         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
5646         score_handle_option): Move to score-common.c.
5647         * config/sh/sh.c (sh_option_optimization_table,
5648         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
5649         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5650         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
5651         * config/sparc/sparc.c: Include common/common-target.h.
5652         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
5653         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
5654         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
5655         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
5656         spu_option_init_struct): Move to spu-common.c.
5657         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
5658         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
5659         * config/v850/v850.c (small_memory_physical_max,
5660         v850_handle_memory_optionn v850_handle_option,
5661         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
5662         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
5663         v850-common.c.
5664         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
5665         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
5666         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
5667         Move to xtensa-common.c.
5668         * cfglayout.c: Include common/common-target.h.
5669         (fixup_reorder_chain): Use targetm_common.have_named_sections.
5670         * cfgrtl.c: Include common/common-target.h.
5671         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
5672         targetm_common.have_named_sections.
5673         * dbxout.c: Include common/common-target.h.
5674         (dbxout_function_end): Use targetm_common.have_named_sections.
5675         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
5676         targetm_common.except_unwind_info.
5677         * dwarf2out.c: Include common/common-target.h.
5678         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
5679         dwarf2out_begin_prologue, dwarf2out_frame_init,
5680         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
5681         targetm_common.except_unwind_info.
5682         * except.c: Include common/common-target.h.
5683         (init_eh, finish_eh_generation,
5684         output_one_function_exception_table): Use
5685         targetm_common.except_unwind_info.
5686         (switch_to_exception_section): Use targetm_common.have_named_sections.
5687         * explow.c: Include common/common-target.h.
5688         * expr.c: Include common/common-target.h.
5689         (build_personality_function): Use targetm_common.except_unwind_info.
5690         * function.c: Include common/common-target.h.
5691         (expand_function_end): Use targetm_common.except_unwind_info.
5692         * haifa-sched.c: Include common/common-target.h.
5693         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
5694         * lto-opts.c: Include common/common-target.h instead of target.h.
5695         (lto_reissue_options): Use targetm_common.handle_option.
5696         * opts.c: Include common/common-target.h.
5697         (target_handle_option): Use targetm_common.handle_option.
5698         (init_options_struct): Update comment referring to
5699         targetm.target_option.optimization.  Use
5700         targetm_common.default_target_flags,
5701         targetm_common.unwind_tables_default and
5702         targetm_common.option_init_struct.
5703         (default_options_optimization): Use
5704         targetm_common.option_optimization_table.
5705         (finish_options): Use targetm_common.except_unwind_info,
5706         targetm_common.unwind_tables_default,
5707         targetm_common.have_named_sections and
5708         targetm_common.supports_split_stack.
5709         * toplev.c: Include common/common-target.h.
5710         (process_options): Use targetm_common.have_named_sections.
5711         * tree-tailcall.c: Include common/common-target.h.
5712         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
5713         * tree.c: Include common/common-target.h.
5714         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
5715         * varasm.c: Include common/common-target.h.
5716         (resolve_unique_section, hot_function_section,
5717         default_function_section): Use targetm_common.have_named_sections.
5718
5719 2011-06-14  Easwaran Raman  <eraman@google.com>
5720
5721         PR rtl-optimization/44194
5722         * dse.c: Include tree-flow.h
5723         (insn_info): Add new field non_frame_wild_read.
5724         (group_info): Add new fields escaped_n and escaped_p.
5725         (kill_on_calls): New variable.
5726         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
5727         (dse_step0): Initialize kill_on_calls.
5728         (can_escape): New function.
5729         (set_usage_bits): Add additional parameter; record information
5730         about escaped locations.
5731         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
5732         (dse_step2_nospill): Set kill_on_calls based on
5733         group->escaped_n and group->escaped_n.
5734         (add_wild_read): Refactor into...
5735         (reset_active_stores): ... New function, and
5736         (free_read_records): ... New function.
5737         (add_non_frame_wild_read): New function.
5738         (scan_insn): Call add_non_frame_wild_read on non-const calls.
5739         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
5740         (dse_step5_nospill): Call scan_reads_nospill for instructions
5741         marked as non_frame_wild_read.
5742         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
5743
5744 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
5745
5746         * common/common-target-def.h, common/common-target.def,
5747         common/common-target.h, common/config/default-common.c,
5748         common/config/pa/pa-common.c: New files.
5749         * Makefile.in (common_out_file, common_out_object_file,
5750         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
5751         (OBJS-libcommon-target): Include $(common_out_object_file).
5752         (prefix.o): Update dependencies.
5753         ($(common_out_object_file), common/common-target-hooks-def.h,
5754         s-common-target-hooks-def-h): New.
5755         (s-tm-texi): Also check timestamp on common-target.def.
5756         (build/genhooks.o): Update dependencies.
5757         * config.gcc (common_out_file, target_has_targetm_common): Define.
5758         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
5759         TARGET_ALWAYS_STRIP_DOTDOT.
5760         * configure.ac (common_out_object_file): Define.
5761         (common_out_file, common_out_object_file): Substitute.
5762         (common): Create directory.
5763         * configure: Regenerate.
5764         * doc/tm.texi.in (targetm_common): Document.
5765         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
5766         * doc/tm.texi: Regenerate.
5767         * genhooks.c (hook_array): Also include common/common-target.def.
5768         * prefix.c (tm.h): Don't include.
5769         (common/common-target.h): Include.
5770         (ALWAYS_STRIP_DOTDOT): Don't define.
5771         (update_path): Use targetm_common.always_strip_dotdot instead of
5772         ALWAYS_STRIP_DOTDOT.
5773         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
5774
5775 2011-06-14  David Li  <davidxl@google.com>
5776
5777         * passes.c (execute_function_todo): Remove TODO_dump_func.
5778         (execute_one_pass): Remove TODO_dump_func.
5779         (execute_function_dump): New function.
5780         * tree-vrp.c: Remove TODO_dump_func.
5781         * regrename.c: Remove TODO_dump_func.
5782         * fwprop.c: Remove TODO_dump_func.
5783         * tree-into-ssa.c: Remove TODO_dump_func.
5784         * tree-complex.c: Remove TODO_dump_func.
5785         * tracer.c: Remove TODO_dump_func.
5786         * tree-loop-distribution.c: Remove TODO_dump_func.
5787         * postreload-gcse.c: Remove TODO_dump_func.
5788         * postreload.c: Remove TODO_dump_func.
5789         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
5790         * tree-tailcall.c: Remove TODO_dump_func.
5791         * ipa-cp.c: Remove TODO_dump_func.
5792         * final.c: Remove TODO_dump_func.
5793         * tree-emutls.c: Remove TODO_dump_func.
5794         * omp-low.c: Remove TODO_dump_func.
5795         * tree-ssa-dse.c: Remove TODO_dump_func.
5796         * tree-ssa-uncprop.c: Remove TODO_dump_func.
5797         * auto-inc-dec.c: Remove TODO_dump_func.
5798         * reorg.c: Remove TODO_dump_func.
5799         * tree-ssa-copyrename.c: Remove TODO_dump_func.
5800         * tree-ssa-ccp.c: Remove TODO_dump_func.
5801         * compare-elim.c: Remove TODO_dump_func.
5802         * mode-switching.c: Remove TODO_dump_func.
5803         * modulo-sched.c: Remove TODO_dump_func.
5804         * tree-call-cdce.c: Remove TODO_dump_func.
5805         * cse.c: Remove TODO_dump_func.
5806         * web.c: Remove TODO_dump_func.
5807         * tree-stdarg.c: Remove TODO_dump_func.
5808         * lto-streamer-out.c: Remove TODO_dump_func.
5809         * tree-ssa-math-opts.c: Remove TODO_dump_func.
5810         * tree-ssa-dom.c: Remove TODO_dump_func.
5811         * tree-nrv.c: Remove TODO_dump_func.
5812         * loop-init.c: Remove TODO_dump_func.
5813         * gimple-low.c: Remove TODO_dump_func.
5814         * ipa-inline.c: Remove TODO_dump_func.
5815         * tree-ssa-sink.c: Remove TODO_dump_func.
5816         * jump.c: Remove TODO_dump_func.
5817         * ifcvt.c: Remove TODO_dump_func.
5818         * tree-ssa-loop.c: Remove TODO_dump_func.
5819         * recog.c: Remove TODO_dump_func.
5820         * dse.c: Remove TODO_dump_func.
5821         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
5822         * matrix-reorg.c: Remove TODO_dump_func.
5823         * tree-eh.c: Remove TODO_dump_func.
5824         * regmove.c: Remove TODO_dump_func.
5825         * function.c: Remove TODO_dump_func.
5826         * tree-vectorizer.c: Remove TODO_dump_func.
5827         * ipa-split.c: Remove TODO_dump_func.
5828         * gcse.c: Remove TODO_dump_func.
5829         * tree-if-conv.c: Remove TODO_dump_func.
5830         * init-regs.c: Remove TODO_dump_func.
5831         * tree-ssa-phiopt.c: Remove TODO_dump_func.
5832         * implicit-zee.c: Remove TODO_dump_func.
5833         * lower-subreg.c: Remove TODO_dump_func.
5834         * bt-load.c: Remove TODO_dump_func.
5835         * tree-dfa.c: Remove TODO_dump_func.
5836         * except.c: Remove TODO_dump_func.
5837         * emit-rtl.c: Remove TODO_dump_func.
5838         * store-motion.c: Remove TODO_dump_func.
5839         * cfgexpand.c: Remove TODO_dump_func.
5840         * tree-cfgcleanup.c: Remove TODO_dump_func.
5841         * cfgcleanup.c: Remove TODO_dump_func.
5842         * tree-ssa-pre.c: Remove TODO_dump_func.
5843         * tree-sra.c: Remove TODO_dump_func.
5844         * tree-mudflap.c: Remove TODO_dump_func.
5845         * tree-ssa-copy.c: Remove TODO_dump_func.
5846         * cfglayout.c: Remove TODO_dump_func.
5847         * tree-ssa-forwprop.c: Remove TODO_dump_func.
5848         * tree-ssa-dce.c: Remove TODO_dump_func.
5849         * ira.c: Remove TODO_dump_func.
5850         * tree-ssa.c: Remove TODO_dump_func.
5851         * integrate.c: Remove TODO_dump_func.
5852         * tree-optimize.c: Remove TODO_dump_func.
5853         * tree-ssa-phiprop.c: Remove TODO_dump_func.
5854         * tree-object-size.c: Remove TODO_dump_func.
5855         * combine.c: Remove TODO_dump_func.
5856         * bb-reorder.c: Remove TODO_dump_func.
5857         * cprop.c: Remove TODO_dump_func.
5858         * var-tracking.c: Remove TODO_dump_func.
5859         * tree-profile.c: Remove TODO_dump_func.
5860         * tree-vect-generic.c: Remove TODO_dump_func.
5861         * reg-stack.c: Remove TODO_dump_func.
5862         * sched-rgn.c: Remove TODO_dump_func.
5863         * tree-ssa-structalias.c: Remove TODO_dump_func.
5864         * tree-switch-conversion.c: Remove TODO_dump_func.
5865         * tree-cfg.c: Remove TODO_dump_func.
5866         * tree-ssa-reassoc.c: Remove TODO_dump_func.
5867         * combine-stack-adj.c: Remove TODO_dump_func.
5868         * dce.c: Remove TODO_dump_func.
5869         * tree-ssanames.c: Remove TODO_dump_func.
5870         * regcprop.c: Remove TODO_dump_func.
5871
5872 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5873
5874         PR middle-end/47364
5875         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
5876         and properly handle result not in Pmode.
5877
5878 2011-06-14  Robert Millan  <rmh@gnu.org>
5879
5880         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
5881         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
5882         `config/linux.h'.
5883
5884         * config/i386/kfreebsd-gnu64.h: New file.
5885         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
5886         with `i386/kfreebsd-gnu64.h'.
5887
5888         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
5889         (GNU_USER_LINK_EMULATION64): New macros.
5890         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
5891         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
5892         of hardcoding `elf_i386' and `elf_x86_64'.
5893
5894 2011-06-14  Nick Clifton  <nickc@redhat.com>
5895
5896         PR target/49403
5897         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
5898
5899         PR target/49402
5900         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
5901
5902 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
5903
5904         PR fortran/49103
5905         * tree.h (DECL_NONSHAREABLE): Define.
5906         (struct tree_decl_common): Change decl_common_unused to
5907         decl_nonshareable_flag.
5908         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
5909         Ignore vars with DECL_NONSHAREABLE bit set.
5910         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
5911         on stores to automatic aggregate vars.
5912
5913         PR rtl-optimization/49390
5914         Revert:
5915         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
5916
5917         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
5918         MEM_ALIAS_SET.
5919
5920 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
5921             Tom de Vries  <tom@codesourcery.com>
5922
5923         PR target/45098
5924         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
5925         Document changed semantics.
5926         (max_stmt_executions, max_stmt_executions_int): Declare.
5927         * tree-data-ref.c (estimated_loop_iterations)
5928         (estimated_loop_iterations_int): Move functions...
5929         * tree-ssa-loop-niter.c (estimated_loop_iterations)
5930         (estimated_loop_iterations_int): here.
5931         (record_estimate): Change nb_iterations_upper_bound and
5932         nb_iterations_estimate semantics.
5933         (max_stmt_executions, max_stmt_executions_int): New function.
5934         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
5935         (max_stmt_executions_tree): this.
5936         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
5937         estimated_loop_iterations_tree.
5938         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
5939         max_stmt_executions_int instead of estimated_loop_iterations_int.
5940         * predict.c (predict_loops): Idem.
5941         * tree-parloops.c (parallelize_loops): Idem.
5942         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
5943         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
5944         (init_omega_for_ddr_1): Idem.
5945         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
5946         (loop_prefetch_arrays): Idem
5947         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
5948         max_stmt_executions instead of estimated_loop_iterations.
5949         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
5950         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
5951         instead of nb_iterations_upper_bound.
5952
5953 2011-06-13  Jan Hubicka  <jh@suse.cz>
5954
5955         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
5956
5957 2011-06-14  Richard Henderson  <rth@redhat.com>
5958
5959         PR debug/48459
5960         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
5961         (based_loc_descr): Assert it's true.
5962         (compute_frame_pointer_to_fb_displacement): Set it, rather than
5963         aborting immediately.
5964
5965 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
5966             Mingfeng Wu  <mingfeng@faraday-tech.com>
5967
5968         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
5969
5970 2011-06-13  Jan Hubicka  <jh@suse.cz>
5971
5972         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
5973
5974 2011-06-13  Jan Hubicka  <jh@suse.cz>
5975
5976         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
5977         similarly to DECL_COMDAT.
5978         * cgraphunit.c (cgraph_analyze_function): Likewise.
5979         * ipa.c (function_and_variable_visibility): Likewise.
5980
5981 2011-06-13  Jan Hubicka  <jh@suse.cz>
5982
5983         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
5984         BINFO_VIRTUALS when streaming for ltrans unit.
5985
5986 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
5987
5988         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
5989         (movdi_internal64): Same.
5990
5991 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
5992
5993         PR target/44618
5994         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
5995         a set of similar patterns, where the MATCH_OPERAND for the function
5996         argument is replaced with individual references to hardware registers.
5997         (save_fpregs_<mode>): Ditto
5998         (restore_gpregs_<mode>): Ditto
5999         (return_and_restore_gpregs_<mode>): Ditto
6000         (return_and_restore_fpregs_<mode>): Ditto
6001         (return_and_restore_fpregs_aix_<mode>): Ditto
6002
6003 2011-06-13  Jan Hubicka  <jh@suse.cz>
6004
6005         * ipa-utils.c (postorder_stack): New structure.
6006         (ipa_reverse_postorder): Handle aliases.
6007
6008 2011-06-13  Jan Hubicka  <jh@suse.cz>
6009
6010         * ipa-inline.c (reset_edge_caches): Walk aliases.
6011         (update_caller_keys): Do not test inlinability of aliases.
6012         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
6013         (do_estimate_growth): Fix typo.
6014
6015 2011-06-13  Jan Hubicka  <jh@suse.cz>
6016
6017         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
6018         (can_remove_node_now_p): ... here; handle same comdat groups.
6019         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
6020         (inline_call): Update use of can_remove_node_now_p.
6021
6022 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
6023
6024         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
6025         condition to disallow non-identical memory locations.
6026         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
6027         preference to bit manipulation instructions.
6028
6029 2011-06-13  Jan Hubicka  <jh@suse.cz>
6030
6031         * cgraph.c (cgraph_for_node_thunks_and_aliases,
6032         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
6033         (nonremovable_p): New function.
6034         (cgraph_can_remove_if_no_direct_calls_p): New function.
6035         (used_from_object_file_p): New functoin.
6036         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
6037         references from aliases.
6038         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
6039         * ipa-inline.c (check_caller_edge): New function.
6040         (want_inline_function_called_once_p): Use it; accept aliases called
6041         once, too.
6042         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
6043
6044 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6045
6046         PR target/48454
6047         * config/arm/neon.md (vec_pack_trunc): Set the lengths
6048         correctly for the case with Quad vectors.
6049
6050 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
6051            Ira Rosen  <ira.rosen@linaro.org>
6052
6053         PR tree-optimization/49352
6054         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
6055         all, make sure loop_use_stmt after the loop is a def stmt of a used
6056         SSA_NAME that is the only one defined inside of the loop.  Don't
6057         check for COND_EXPR and GIMPLE_BINARY_RHS.
6058         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
6059         check_reduction is true.
6060
6061 2011-06-11  Jan Hubicka  <jh@suse.cz>
6062
6063         PR middle-end/49373
6064         * ipa.c (cgraph_externally_visible_p): Check resolution info.
6065
6066 2011-06-11  Jan Hubicka  <jh@suse.cz>
6067
6068         PR middle-end/48836
6069         * ipa-inline-transform.c: Include tree-pass.h
6070         (inline_transform): Set TODO_update_ssa_only_virtuals.
6071         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
6072
6073 2011-06-11  Jan Hubicka  <jh@suse.cz>
6074
6075         PR middle-end/49378
6076         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
6077         aliases and thunks.
6078
6079 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
6080
6081         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
6082         Take number of iterations to peel into account for equally frequent
6083         misalignment values.
6084
6085 2011-06-11  Jan Hubicka  <jh@suse.cz>
6086
6087         * lto-streamer-out.c (produce_symtab): Stream out the newly
6088         represented aliases.
6089
6090 2011-06-11  Jan Hubicka  <jh@suse.cz>
6091
6092         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
6093         varying args.
6094         (ipa_update_after_lto_read): Likewise.
6095         (ipa_write_node_info): Do not sream call_with_var_arguments.
6096         (ipa_read_node_info): Likewise.
6097
6098 2011-06-11  Jan Hubicka  <jh@suse.cz>
6099
6100         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
6101
6102 2011-06-11  Jan Hubicka  <jh@suse.cz>
6103
6104         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
6105         (lto_symtab_resolve_can_prevail_p): Likewise.
6106         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
6107         * cgraph.c (same_body_aliases_done): New global var.
6108         (cgraph_same_body_alias_1): Rename to ...
6109         (cgraph_create_function_alias): ... this one; reorg to new
6110         representation.
6111         (cgraph_same_body_alias): Use cgraph_create_function_alias;
6112         record references when asked to.
6113         (cgraph_add_thunk): Fix formating.
6114         (cgraph_get_node): Kill same body alias code.
6115         (cgraph_node_for_asm): Likewise.
6116         (cgraph_remove_same_body_alias): Remove.
6117         (cgraph_remove_node): Kill same body alias code.
6118         (cgraph_mark_address_taken_node): Mark also the aliased function
6119         as having address taken.
6120         (dump_cgraph_node): Dump same body aliases.
6121         (cgraph_for_node_thunks_and_aliases): Update for new alias
6122         representation.
6123         (cgraph_for_node_and_aliases): Likewise.
6124         * cgraph.h (same_body): Kll pointer.
6125         (same_body_alias): Update comment.
6126         (same_body_aliases_done): Declare.
6127         (cgraph_remove_same_body_alias): Remove declaration.
6128         (cgraph_create_function_alias): Declare.
6129         (cgraph_process_same_body_aliases): Declare.
6130         (cgraph_function_with_gimple_body_p): Check for alias.
6131         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
6132         (cgraph_alias_aliased_node): New function.
6133         (cgraph_function_node): Update for new aliases.
6134         (cgraph_function_or_thunk_node): Likewise.
6135         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
6136         (inline_call): Remove dead aliases.
6137         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
6138         name hack for same body aliases.
6139         (clone_of_p): Look through aliases.
6140         (verify_cgraph_node): Verify aliases.
6141         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
6142         (cgraph_process_same_body_aliases): New function.
6143         (process_function_and_variable_attributes): Disable weakref warning on
6144         alias.
6145         (cgraph_analyze_functions): Handle aliases.
6146         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
6147         (assemble_thunks): Rename to ...
6148         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
6149         (cgraph_expand_function): Remove alias output code.
6150         (cgraph_output_in_order): Skip aliases.
6151         (cgraph_preserve_function_body_p): Aliases don't need preserving.
6152         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
6153         (ipa_record_reference): Do not assert on alias references.
6154         (ipa_ref_has_aliases_p): New function.
6155         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
6156         (ipa_ref_has_aliases_p): Declare.
6157         * lto-cgraph.c (lto_output_node): Handle aliases.
6158         (input_node): Likewise.
6159         * lto-streamer-out.c (lto_output): Skip aliases.
6160         (produce_symtab): Kill same_body_alias code.
6161         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
6162         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
6163         * ipa-inline.c (update_caller_keys): Walk aliases.
6164         (inline_small_functions): Fix thinko in previous patch.
6165         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
6166         (function_and_variable_visibility): Do not walk same body aliases.
6167         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
6168         (ipa_pta_execute): Use it.
6169
6170 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
6171
6172         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
6173         (*vec_dupv2df): Rename from vec_dupv2df.
6174         (vec_dupv2df): New expander.
6175
6176 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
6177
6178         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
6179
6180 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
6181
6182         * config/i386/i386.md: Use default value in "isa" attribute.
6183         * config/i386/sse.md: Ditto.
6184         * config/i386/mmx.md: Ditto.
6185
6186 2011-06-10  Wei Guozhi  <carrot@google.com>
6187
6188         PR target/45335
6189         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
6190         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
6191         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
6192         related peephole2.
6193         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
6194         related peephole2.
6195         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
6196         (arm_legitimate_ldrd_p): New prototype.
6197         (arm_output_ldrd): New prototype.
6198         * config/arm/arm.c (arm_check_ldrd_operands): New function.
6199         (arm_legitimate_ldrd_p): New function.
6200         (arm_output_ldrd): New function.
6201
6202 2011-06-10  David Li  <davidxl@google.com>
6203
6204         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
6205         * passes.c (passr_eq): New function.
6206         (create_pass_tab): New function.
6207         (pass_traverse): New function.
6208         (dump_one_pass): New function.
6209         (dump_pass_list): New function.
6210         (dump_passes): New function.
6211
6212 2011-06-10  Jan Hubicka  <jh@suse.cz>
6213
6214         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
6215         setting the nothrow flag.
6216         * ipa-reference.c (propagate): Skip aliases.
6217         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
6218         (propagate_nothrow): Skip aliases; do not update cgraph.
6219         (local_pure_const): Do not update cgraph.
6220         * tree-profile.c (tree_profiling): Do fixup_cfg.
6221
6222 2011-06-10  Jan Hubicka  <jh@suse.cz>
6223
6224         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
6225         (cgraph_local_node_p): ... here; handle aliases.
6226         (has_addr_references_p): Break out from ...;
6227         (cgraph_remove_unreachable_nodes) ... here.
6228
6229 2011-06-10  Jan Hubicka  <jh@suse.cz>
6230
6231         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
6232         * common.opt (flag_inline_functions_called_once): Do not
6233         initialize to 1.
6234
6235 2011-06-10  Jan Hubicka  <jh@suse.cz>
6236
6237         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
6238         (ipcp_initialize_node_lattices): Do not deal with aliases;
6239         Do not try to propagate through thunks.
6240         (ipcp_change_tops_to_bottom): Do not deal with aliases.
6241
6242 2011-06-10  Jan Hubicka  <jh@suse.cz>
6243
6244         * ipa-prop.c (ipa_write_node_info): Stream jump functions
6245         for indirect calls.
6246         (ipa_read_node_info): Likewise.
6247
6248 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6249
6250         PR lto/49302
6251         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
6252         (build_and_insert_call): Likewise.
6253         (build_and_insert_ref): New.
6254         (gimple_expand_builtin_pow): Minor cleanup.
6255         (gimple_expand_builtin_cabs): New.
6256         (execute_cse_sincos): Add case for BUILT_IN_CABS.
6257
6258 2011-06-10  Jan Hubicka  <jh@suse.cz>
6259
6260         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
6261         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
6262         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
6263         (ipcp_propagate_stage): Skip aliases when propagating.
6264         (ipcp_need_redirect_p): Skip aliases.
6265         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
6266         collect_callers_of_node.
6267         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
6268         for aliases.
6269         (ipa_compute_jump_functions): Look through aliases.
6270
6271 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6272
6273         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
6274
6275 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
6276
6277         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
6278         Adjust comments.
6279         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
6280
6281 2011-06-10  Jan Hubicka  <jh@suse.cz>
6282
6283         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
6284         Update call of gimple_get_virt_method_for_binfo.
6285         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
6286         refuse_thunks parameter.
6287         (gimple_fold_call): Update.
6288         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
6289
6290 2011-06-10  Jan Hubicka  <jh@suse.cz>
6291
6292         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
6293         (not_all_callers_have_enough_arguments_p): ... this one; turn into
6294         worker for cgraph_for_node_and_aliases.
6295         (convert_callers_for_node): Break out from ...
6296         (convert_callers): ... here.
6297         (modify_function): Use collect_callers_of_node.
6298         (ipa_early_sra): Use cgraph_for_node_and_aliases.
6299
6300 2011-06-10  Richard Guenther  <rguenther@suse.de>
6301
6302         PR tree-optimization/49361
6303         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
6304         when not already in gimple form.
6305
6306 2011-06-10  Richard Guenther  <rguenther@suse.de>
6307
6308         PR bootstrap/49344
6309         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
6310         FOR_EACH_PHI_OR_STMT_USE.
6311
6312 2011-06-10  Jan Hubicka  <jh@suse.cz>
6313
6314         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
6315         (clone_inlined_nodes): ... here.
6316         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
6317         to real destination prior inlining.
6318         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
6319         can_early_inline_edge_p, want_early_inline_function_p,
6320         want_early_inline_function_p, want_inline_small_function_p,
6321         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
6322         edge_badness, update_all_callee_keys, lookup_recursive_calls,
6323         add_new_edges_to_heap, inline_small_functions, flatten_function,
6324         inline_always_inline_functions, early_inline_small_functions): Use
6325         cgraph_function_or_thunk_node.
6326         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
6327         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
6328         (do_estimate_edge_growth_1): Break out from ...
6329         (do_estimate_growth) ... here; walk aliases.
6330         (inline_generate_summary): Skip aliases.
6331
6332 2011-06-10  Richard Guenther  <rguenther@suse.de>
6333
6334         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
6335         forward when combining, visit inserted stmts when a stmt was changed.
6336
6337 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
6338
6339         * tree.h (error_operand_p): Add.
6340         * dbxout.c (dbxout_type_fields): Use the latter.
6341         * c-decl.c (add_stmt): Likewise.
6342         * gimplify.c (omp_add_variable, omp_notice_variable,
6343         gimplify_scan_omp_clauses): Likewise.
6344
6345 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
6346
6347         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
6348         when a value is actually passed in regs.
6349
6350 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
6351             Laurent Rougé  <laurent.rouge@menta.fr>
6352
6353         * doc/invoke.texi (SPARC options): Add -mflat.
6354         * config/sparc/sparc.opt: Likewise.
6355         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
6356         (sparc_flat_expand_prologue): Declare.
6357         (sparc_flat_expand_epilogue): Likewise.
6358         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
6359         (CPP_ENDIAN_SPEC): Replace with...
6360         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
6361         (CPP_SPEC): Adjust to above change.
6362         (EXTRA_SPECS): Likewise.
6363         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
6364         (INCOMING_REGNO): Likewise.
6365         (OUTGOING_REGNO): Likewise.
6366         (LOCAL_REGNO): Likewise.
6367         (SETUP_FRAME_ADDRESSES): Likewise.
6368         (FIXED_REGISTERS): Set 0 for %fp.
6369         (CALL_USED_REGISTERS): Likewise.
6370         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
6371         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
6372         (RETURN_ADDR_REGNUM): Define.
6373         (RETURN_ADDR_RTX): Use it.
6374         (INCOMING_RETURN_ADDR_REGNUM): Define.
6375         (INCOMING_RETURN_ADDR_RTX): Use it.
6376         (DWARF_FRAME_RETURN_COLUMN): Likewise.
6377         (EH_RETURN_REGNUM): Define.
6378         (EH_RETURN_STACKADJ_RTX): Use it.
6379         (EH_RETURN_HANDLER_RTX): Delete.
6380         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
6381         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
6382         Delete.
6383         (struct machine_function): Add frame_size, apparent_frame_size,
6384         frame_base_reg, frame_base_offset, n_global_fp_regs and
6385         save_local_in_regs_p fields.
6386         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
6387         sparc_frame_base_offset, sparc_n_global_fp_regs,
6388         sparc_save_local_in_regs_p): New macros.
6389         (sparc_option_override): Error out if -fcall-saved-REG is specified
6390         for Out registers.
6391         (eligible_for_restore_insn): Fix formatting.
6392         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
6393         (eligible_for_sibcall_delay): Likewise.
6394         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
6395         (sparc_legitimate_address_p): Adjust to above change.
6396         (save_global_or_fp_reg_p): New predicate.
6397         (return_addr_reg_needed_p): Likewise.
6398         (save_local_or_in_reg_p): Likewise.
6399         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
6400         (SORR_SAVE, SORR_RESTORE): Delete.
6401         (sorr_pred_t): New typedef.
6402         (sorr_act_t): New enum.
6403         (save_or_restore_regs): Rename to...
6404         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
6405         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
6406         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
6407         mechanism.  Add CFI information for double-word saves in 32-bit mode.
6408         (emit_adjust_base_to_offset): New function extracted from...
6409         (emit_save_or_restore_regs): ...this.  Rename the rest to...
6410         (emit_save_or_restore_regs_global_fp_regs): ...this.
6411         (emit_save_or_restore_regs_local_in_regs): New function.
6412         (gen_create_flat_frame_[123]): New functions.
6413         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
6414         (sparc_flat_expand_prologue): New function.
6415         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
6416         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
6417         (sparc_flat_expand_epilogue): New function.
6418         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
6419         (output_return): Likewise.
6420         (output_sibcall): Likewise.
6421         (sparc_output_mi_thunk): Likewise.
6422         (sparc_frame_pointer_required): Likewise.
6423         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
6424         function optimization.
6425         * config/sparc/sparc.md (flat): New attribute.
6426         (prologue): Add TARGET_FLAT handling.
6427         (save_register_window): Disable if TARGET_FLAT.
6428         (create_flat_frame_[123]): New patterns.
6429         (epilogue): Add TARGET_FLAT handling.
6430         (sibcall_epilogue): Likewise.
6431         (eh_return): New expander.
6432         (eh_return_internal): New insn and splitter.
6433         (return_internal): Add TARGET_FLAT handling.
6434         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
6435         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
6436         (nonlocal_goto): Add TARGET_FLAT handling.
6437         * config/sparc/t-elf: Add -mflat multilib.
6438         * config/sparc/t-leon: Likewise.
6439
6440 2011-06-10  Jan Hubicka  <jh@suse.cz>
6441
6442         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
6443         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
6444         (self_recursive_p): Use cgraph_function_node.
6445         (propagate_pure_const): Likewise.
6446         (propagate_nothrow): Likewise.
6447         * ipa-reference.c (ipa_reference_get_not_read_global): Use
6448         cgraph_function_node.
6449         (propagate_bits): Likewise.
6450         (propagate): Likewise.
6451
6452 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6453             Richard Earnshaw  <rearnsha@arm.com>
6454
6455         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
6456         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
6457         (*thumb2_movdi_vfp): Delete.
6458         (*arm_movdi_vfp_cortexa8): Delete.
6459         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
6460         (*movdi_vfp_cortexa8): Likewise.
6461
6462 2011-06-10  Richard Guenther  <rguenther@suse.de>
6463
6464         * stor-layout.c (initialize_sizetypes): Give names to all
6465         sizetype kinds.
6466
6467 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
6468
6469         PR tree-optimization/49318
6470         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
6471         irrelevant pattern statements.
6472
6473 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
6474
6475         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
6476
6477         PR bootstrap/49354
6478         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
6479         to last assignment.
6480
6481 2011-06-09  Jan Hubicka  <jh@suse.cz>
6482
6483         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
6484         do not recompute reachable flag.
6485         (cgraph_finalize_function, cgraph_analyze_functions): Set
6486         redefined_extern_inline here.
6487
6488 2011-06-09  Jan Hubicka  <jh@suse.cz>
6489
6490         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
6491         (cgraph_only_called_directly_p): ... this one; bring offline.
6492         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
6493         varpool_used_from_object_file_p): Drop names from the declaratoin.
6494         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
6495         collect_callers_of_node): New.
6496         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
6497         (cgraph_edge_recursive_p): Use cgraph_function_node.
6498         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
6499         (cgraph_node_cannot_be_local_p_1): Break out from ...
6500         (cgraph_node_can_be_local_p): ... here; walk aliases.
6501         (cgraph_for_node_thunks_and_aliases): New function.
6502         (cgraph_for_node_and_aliases): New function.
6503         (cgraph_make_node_local_1): Break out from ...
6504         (cgraph_make_node_local) ... here; use
6505         cgraph_for_node_thunks_and_aliases.
6506         (cgraph_set_nothrow_flag_1): Break out from ...
6507         (cgraph_set_nothrow_flag) ... here;
6508         use cgraph_for_node_thunks_and_aliases.
6509         (cgraph_set_const_flag_1): Break out from ...
6510         (cgraph_set_const_flag) ... here;
6511         use cgraph_for_node_thunks_and_aliases.
6512         (cgraph_set_pure_flag_1): Break out from ...
6513         (cgraph_set_pure_flag) ... here;
6514         use cgraph_for_node_thunks_and_aliases.
6515         (cgraph_propagate_frequency_1): Break out from ...
6516         (cgraph_propagate_frequency) ... here; use
6517         cgraph_for_node_thunks_and_aliases.
6518         (cgraph_used_from_object_file_p): Do not care about aliases.
6519         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
6520         New functions.
6521         (collect_callers_of_node_1, collect_callers_of_node): New functions.
6522
6523 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
6524
6525         PR rtl-optimization/49154
6526         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
6527         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
6528         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
6529         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
6530         * config/cris/cris.h (cris_register_move_cost): Remove
6531         !TARGET_V32 code.  Tweak comments.
6532
6533 2011-06-09  Jan Hubicka  <jh@suse.cz>
6534
6535         * cgraphbuild.c (record_eh_tables): Mark personality function as having
6536         address taken.
6537
6538 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
6539
6540         PR rtl-optimization/49154
6541         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
6542         is a matching slot in the hashtable, assign it to classes_ptr.
6543
6544         PR rtl-optimization/49154
6545         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
6546         register classes.
6547         * doc/tm.texi: Regenerate.
6548
6549 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
6550
6551         PR target/49307
6552         * config/sh/sh.md (UNSPEC_CHKADD): New.
6553         (chk_guard_add): New define_insn_and_split.
6554         (symGOT_load): Use chk_guard_add instead of blockage.
6555
6556 2011-06-09  Kai Tietz  <ktietz@redhat.com>
6557
6558         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
6559
6560 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
6561
6562         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
6563
6564 2011-06-09  Wei Guozhi  <carrot@google.com>
6565
6566         PR target/46975
6567         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
6568         (peephole2 for conditional move): Generate 16 bit instructions.
6569
6570 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
6571
6572         * config/i386/i386.md (*movdi_internal_rex64): Merge
6573         alternatives 6 and 8.
6574
6575 2011-06-09  David Li  <davidxl@google.com>
6576
6577         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
6578         * passes.c (passr_eq): New function.
6579         (create_pass_tab): New function.
6580         (pass_traverse): New function.
6581         (dump_one_pass): New function.
6582         (dump_pass_list): New function.
6583         (dump_passes): New function.
6584
6585 2011-06-09  David Li  <davidxl@google.com>
6586
6587         * tree-complex.c (tree_lower_complex): Gate cleanup.
6588         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
6589         (execute_optimize_stdarg): Ditto.
6590         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
6591         (execute_cleanup_eh_1): Ditto.
6592         (execute_cleanup_eh): Ditto.
6593         * gcse.c (gate_rtl_pre): Ditto.
6594         (execute_rtl_pre): Ditto.
6595         * except.c (finish_eh_generation): Ditto.
6596         (convert_to_eh_region_ranges): Ditto.
6597         * cprop.c (one_cprop_pass): Ditto.
6598
6599 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
6600
6601         PR target/48673
6602         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
6603         in all basic blocks.
6604
6605 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6606
6607         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
6608         (HAVE_ENABLE_EXECUTE_STACK): Define.
6609         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
6610         (HAVE_ENABLE_EXECUTE_STACK): Define.
6611         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
6612         (HAVE_ENABLE_EXECUTE_STACK): Define.
6613         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
6614         (ENABLE_EXECUTE_STACK): Remove.
6615         (HAVE_ENABLE_EXECUTE_STACK): Define.
6616         [IN_LIBGCC2]: Don't include <windows.h>.
6617         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
6618         (HAVE_ENABLE_EXECUTE_STACK): Define.
6619         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
6620         (HAVE_ENABLE_EXECUTE_STACK): Define.
6621         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
6622         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
6623         (HAVE_ENABLE_EXECUTE_STACK): Define.
6624         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
6625         (HAVE_ENABLE_EXECUTE_STACK): Define.
6626         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
6627         (HAVE_ENABLE_EXECUTE_STACK): Define.
6628         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
6629         (HAVE_ENABLE_EXECUTE_STACK): Define.
6630         * config/alpha/alpha.c (alpha_trampoline_init): Test
6631         HAVE_ENABLE_EXECUTE_STACK.
6632         * config/i386/i386.c (ix86_trampoline_init): Likewise.
6633         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6634         (sparc64_initialize_trampoline): Likewise.
6635         * libgcc2.c [L_enable_execute_stack]: Remove.
6636         * system.h (ENABLE_EXECUTE_STACK): Poison.
6637         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
6638         * doc/tm.texi: Regenerate.
6639         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
6640
6641 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
6642
6643         PR middle-end/49308
6644         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
6645         variable.  After resetting and rescanning insn continue with previous
6646         statement.
6647
6648 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6649
6650         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
6651         (gcc_cv_ld_hidden): Likewise.
6652         * configure: Regenerate.
6653         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
6654         (ix86_stack_protect_fail): Mark unused.
6655         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
6656         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
6657         [TARGET_MACHO]: Don't define.
6658         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
6659         (TARGET_STACK_PROTECT_FAIL): Likewise.
6660         (rs6000_stack_protect_fail): Mark unused.
6661         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
6662         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
6663
6664 2011-06-08  Andi Kleen  <ak@linux.intel.com>
6665
6666         * varasm.c (get_section): Print location of other conflict
6667         for section conflicts.
6668
6669 2011-06-08  Andi Kleen  <ak@linux.intel.com>
6670
6671         * config/i386/driver-i386.c (host_detect_local_cpu):
6672         Add model 0x2d Intel CPU.
6673
6674 2011-06-08  Andi Kleen  <ak@linux.intel.com>
6675
6676         * reginfo.c (global_regs_decl): Add.
6677         (globalize_reg): Add decl parameter. Compute location.  Pass location
6678         to warnings and add inform. Store decl in global_regs_decl.
6679         * rtl.h (globalize_reg): Update prototype.
6680         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
6681
6682 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
6683
6684         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
6685
6686 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
6687
6688         PR target/49305
6689         * config/sh/predicates.md (general_movsrc_operand): Check
6690         mode for memory with indexed address for QI and HImode.
6691         (general_movdst_operand): Likewise.
6692
6693 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
6694
6695         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
6696
6697 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
6698
6699         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
6700         (num_ssa_operands): Likewise.
6701         (op_iter_init_phiuse): Forward-declare.
6702         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
6703
6704 2011-06-08  Nick Clifton  <nickc@redhat.com>
6705
6706         * doc/invoke.texi (ARM Options): Update description of
6707         -mthumb-interwork.
6708
6709 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
6710
6711         * config/i386/driver-i386.c (host_detect_local_cpu): Support
6712         unknown Intel family 0x6 CPUs.
6713
6714 2011-06-08  Martin Jambor  <mjambor@suse.cz>
6715
6716         * tree-sra.c (mark_rw_status): Removed.
6717         (analyze_access_subtree): New parameter parent instead of
6718         mark_read and mark_write, propagate from that.
6719
6720 2011-06-08  Julian Brown  <julian@codesourcery.com>
6721
6722         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
6723         for double-precision helper functions in hard-float mode if only
6724         single-precision arithmetic is supported in hardware.
6725
6726 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
6727
6728         PR rtl-optimization/49303
6729         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
6730         code_motion_path_driver returned 0 or 1.
6731         (sel_region_finish): Clear h_d_i_d.
6732
6733 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
6734
6735         * config/sh/sh.c (prepare_move_operands): Set pic register
6736         appropriately for global and local dynamic tls models even
6737         if flag_pic is unset.
6738
6739 2011-06-07  Jason Merrill  <jason@redhat.com>
6740
6741         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
6742
6743 2011-06-07  Xinliang David Li  <davidxl@google.com>
6744         * passes.c (enable_disable_pass): Handle assembler name.
6745         (is_pass_explicitly_enabled_or_disabled): Ditto.
6746
6747 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6748
6749         PR tree-optimization/48497
6750         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
6751
6752 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6753
6754         PR tree-optimization/46728
6755         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
6756         to use gimple_val_nonnegative_real_p.
6757         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
6758         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
6759
6760 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
6761
6762         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
6763
6764 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
6765
6766         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
6767         constant vectors.
6768
6769 2011-06-07  Richard Guenther  <rguenther@suse.de>
6770
6771         * stor-layout.c (initialize_sizetypes): Initialize all
6772         sizetypes based on target definitions.
6773         (set_sizetype): Remove.
6774         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
6775         * tree.h (set_sizetype): Remove.
6776
6777 2011-06-07  Nick Clifton  <nickc@redhat.com>
6778
6779         * config.gcc: Unify V850 architecture options and add support for
6780         newer V850 architectures.
6781         * config/v850/t-v850e: Delete.
6782
6783 2011-06-07  Richard Guenther  <rguenther@suse.de>
6784
6785         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
6786         Call set_sizetype from here.
6787
6788 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
6789
6790         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
6791         (*maddhisi4tb, *maddhisi4tt): New define_insns.
6792
6793 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
6794             Andrew Stubbs  <ams@codesourcery.com>
6795
6796         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
6797         multiplies.
6798         * doc/md.texi (Canonicalization of Instructions): Document widening
6799         multiply canonicalization.
6800
6801 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
6802
6803         PR gcov-profile/49299
6804         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
6805
6806 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
6807
6808         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
6809         a pointer.
6810         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
6811         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
6812         vect_recog_pow_pattern): Likewise.
6813         (vect_pattern_recog_1): Remove declaration.
6814         (widened_name_p): Remove declaration.  Add new argument to specify
6815         whether to check that both types are either signed or unsigned.
6816         (vect_recog_widen_mult_pattern): Update documentation.  Handle
6817         unsigned patterns and multiplication by constants.
6818         (vect_pattern_recog_1): Update vect_recog_func references.  Use
6819         statement information from the statement returned from pattern
6820         detection functions.
6821         (vect_pattern_recog): Update vect_recog_func reference.
6822         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
6823         multiplication by a constant use the type of the other operand.
6824
6825 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
6826
6827         PR rtl-optimization/49145
6828         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
6829
6830 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
6831
6832         PR debug/49262
6833         * dwarf2out.c (native_encode_initializer): Decrement count in each
6834         iteration.
6835
6836         PR debug/49294
6837         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
6838         non-MODE_INT modes.
6839
6840         PR c++/49264
6841         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
6842         if stmt folded into nothing.
6843         * tree-inline.c (fold_marked_statements): If a builtin at the end of
6844         a bb folded into nothing, just update cgraph edges and move to next bb.
6845         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
6846         to be NULL.  Don't compute count and frequency if new_call is NULL.
6847
6848 2011-06-04  Diego Novillo  <dnovillo@google.com>
6849
6850         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
6851         (cgraph.o): Likewise.
6852         (cgraphunit.o): Likewise.
6853         * cgraphunit.c: Include lto-streamer.h
6854         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
6855         if LTO is enabled.
6856         * lto-streamer-in.c (unpack_value_fields): Call
6857         streamer_hooks.unpack_value_fields if set.
6858         (lto_materialize_tree): For unhandled nodes, first try to
6859         call lto_streamer_hooks.alloc_tree, if it exists.
6860         (lto_input_ts_decl_common_tree_pointers): Move reading of
6861         DECL_INITIAL to lto_streamer_read_tree.
6862         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
6863         (lto_streamer_read_tree): New.
6864         (lto_reader_init): Rename from lto_init_reader.
6865         Move initialization code to lto/lto.c.
6866         * lto-streamer-out.c (pack_value_fields): Call
6867         streamer_hooks.pack_value_fields if set.
6868         (lto_output_tree_ref): For tree nodes that are not normally indexable,
6869         call streamer_hooks.indexable_with_decls_p before giving up.
6870         (lto_output_ts_decl_common_tree_pointers): Move handling
6871         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
6872         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
6873         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
6874         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
6875         (lto_streamer_write_tree): New.
6876         (lto_output): Call lto_streamer_init directly.
6877         (lto_writer_init): Remove.
6878         * lto-streamer.c (streamer_hooks): New.
6879         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
6880         instead of lto_preload_common_nodes.
6881         (lto_is_streamable): Move from lto-streamer.h
6882         (lto_streamer_hooks_init): New.
6883         (streamer_hooks): New.
6884         (streamer_hooks_init): New.
6885         * lto-streamer.h (struct output_block): Forward declare.
6886         (struct lto_input_block): Likewise.
6887         (struct data_in): Likewise.
6888         (struct bitpack_d): Likewise.
6889         (struct streamer_hooks): Declare.
6890         (streamer_hooks): Declare.
6891         (lto_streamer_hooks_init): Declare.
6892         (lto_streamer_write_tree): Declare.
6893         (lto_streamer_read_tree): Declare.
6894         (streamer_hooks_init): Declare.
6895         (lto_is_streamable): Move to lto-streamer.c
6896
6897 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6898
6899         * longlong.h (smul_ppmm): The resulting register pair contains the
6900         higher order word first.
6901
6902 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6903
6904         PR tree-optimization/46728
6905         * builtins.c (powi_table): Remove.
6906         (powi_lookup_cost): Remove.
6907         (powi_cost): Remove.
6908         (expand_powi_1): Remove.
6909         (expand_powi): Remove.
6910         (expand_builtin_pow_root): Remove.
6911         (expand_builtin_pow): Remove.
6912         (expand_builtin_powi): Eliminate handling of constant exponent.
6913         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
6914
6915 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6916
6917         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
6918
6919 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6920
6921         * dce.c (reset_unmarked_insns_debug_uses): New.
6922         (delete_unmarked_insns): Skip debug insns.
6923         (prescan_insns_for_dce): Likewise.
6924         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
6925         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
6926         active reg can be found.
6927         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
6928         (convert_regs_1): Use it.
6929
6930 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6931
6932         * tree-pretty-print.c (dump_function_header): Add flags.
6933         Don't dump decl_uid with nouid.
6934         * tree-pretty-print.h (dump_function_header): Adjust.
6935         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
6936         * passes.c (pass_init_dump_file): Pass dump_flags on.
6937         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
6938
6939 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6940
6941         PR bootstrap/49270
6942         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
6943
6944 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
6945
6946         PR tree-optimization/49243
6947         * calls.c (setjmp_call_p): Also check if fndecl has the
6948         returns_twice attribute.
6949
6950 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6951
6952         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
6953         -ffast-math etc.
6954
6955 2011-06-06  Richard Henderson  <rth@redhat.com>
6956             Georg-Johann Lay  <avr@gjlay.de>
6957
6958         PR target/42210
6959         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
6960         New predicates.
6961         * config/avr/avr.md ("insv"): New insn expander.
6962         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
6963         "*insv.not.io", "*insv.reg"): New insns.
6964
6965 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
6966
6967         PR target/49285
6968         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
6969         to nonimmediate_operand from memory_operand for the operand that is to
6970         be forced to memory by the expander.  Lose the constraints.
6971
6972 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
6973
6974         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
6975         EH return when delayed branches are disabled.
6976
6977 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
6978
6979         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
6980         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
6981         calculation.
6982         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
6983         Simplify MODE_V1DF and MODE_V2SF handling.
6984         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
6985         Simplify MODE_SF handling.
6986
6987 2011-06-04  Jan Hubicka  <jh@suse.cz>
6988
6989         PR tree-optimization/48893
6990         PR tree-optimization/49091
6991         PR tree-optimization/49179
6992         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
6993         Bounds check.
6994
6995 2011-06-04  Jan Hubicka  <jh@suse.cz>
6996
6997         PR lto/48954
6998         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
6999         bitmaps.
7000
7001 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
7002
7003         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
7004
7005 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
7006
7007         PR target/49281
7008         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
7009         to be strictly smaller than 1 << shiftcount.
7010
7011 2011-06-04  Jan Hubicka  <jh@suse.cz>
7012
7013         PR tree-optimize/48929
7014         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
7015         of empty predicate.
7016
7017 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
7018
7019         PR debug/48333
7020         * calls.c (emit_call_1): Prefer the __builtin declaration of
7021         builtin functions.
7022
7023 2011-06-03   Diego Novillo  <dnovillo@google.com>
7024
7025         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
7026         (lto_input_tree_pointers): Likewise.
7027         * lto-streamer-out.c (pack_value_fields): Likewise.
7028         (lto_output_tree_pointers): Likewise.
7029         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
7030         and OPTIMIZATION_NODE.
7031
7032 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7033
7034         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
7035         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
7036         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
7037         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
7038         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
7039         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
7040         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
7041         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
7042         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
7043         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
7044         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
7045         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
7046         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
7047         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
7048         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
7049         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
7050         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
7051         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
7052         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
7053         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
7054         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
7055         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
7056         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
7057         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
7058         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
7059         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
7060         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
7061         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
7062         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
7063         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
7064         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
7065         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
7066         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
7067         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
7068         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
7069         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
7070         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
7071         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
7072         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
7073         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
7074         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
7075         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
7076         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
7077         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
7078         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
7079         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
7080         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
7081         * system.h (MD_UNWIND_SUPPORT): Poison.
7082         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
7083         * doc/tm.texi: Regenerate.
7084         * unwind-dw2.c: Include md-unwind-support.h instead of
7085         MD_UNWIND_SUPPORT.
7086         * config/ia64/unwind-ia64.c: Likewise.
7087         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
7088
7089 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
7090
7091         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
7092
7093 2011-06-03  Richard Henderson  <rth@redhat.com>
7094             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7095
7096         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
7097         (sigill_hdlr): Correct insn, insn size.
7098         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
7099
7100 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7101
7102         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
7103         t-slibgcc-dummy.
7104         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
7105         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
7106         * config/mips/t-iris: Remove.
7107         * config/mips/t-irix6: New file.
7108         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
7109
7110 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7111
7112         * Makefile.in (LIB2ADDEHDEP): Remove.
7113         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
7114         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
7115         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
7116         * config/t-darwin (LIB2ADDEHDEP): Remove.
7117         * config/t-freebsd (LIB2ADDEHDEP): Remove.
7118         * config/t-linux (LIB2ADDEHDEP): Remove.
7119
7120 2011-06-03  Diego Novillo  <dnovillo@google.com>
7121
7122         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
7123         (lto_register_var_decl_in_symtab): Likewise.
7124         (lto_register_function_decl_in_symtab): Likewise.
7125         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
7126         logic to uniquify_nodes.
7127
7128 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7129
7130         * config/alpha/t-osf5: Remove.
7131         * config/alpha/t-osf-pthread: Remove.
7132         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
7133         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
7134
7135 2011-06-03  Julian Brown  <julian@codesourcery.com>
7136
7137         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
7138         (strongarm1110): Use strongarm tuning.
7139         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
7140         * config/arm/arm.c (arm_strongarm_tune): New.
7141         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
7142         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
7143         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
7144         setting, using previous defaults or 1 for Cortex-A5.
7145         (arm_option_override): Set max_insns_skipped from current tuning.
7146
7147 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
7148
7149         * doc/install.texi (Options specification): Document --with-specs.
7150
7151 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7152
7153         * config/arm/neon.md (orndi3_neon): Actually split it.
7154
7155 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
7156
7157         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
7158         * var-tracking.c (reverse_op): Limite recurse depth to 5.
7159
7160 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
7161
7162         PR debug/47590
7163         * target.def (delay_sched2, delay_vartrack): New.
7164         * doc/tm.texi.in: Update.
7165         * doc/tm.texi: Rebuild.
7166         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
7167         * var-tracking.c (gate_handle_var_tracking): Likewise.
7168         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
7169         (bfin_flag_var_tracking): Drop.
7170         (output_file_start): Don't save and override flag_var_tracking.
7171         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
7172         (bfin_reorg): Test original variables.
7173         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7174         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
7175         (ia64_flag_var_tracking): Drop.
7176         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7177         (ia64_file_start): Don't save and override flag_var_tracking.
7178         (ia64_override_options_after_change): Ditto
7179         flag_schedule_insns_after_reload.
7180         (ia64_reorg): Test original variables.
7181         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
7182         (picochip_flag_var_tracking): Drop.
7183         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7184         (picochip_option_override): Don't save and override
7185         flag_schedule_insns_after_reload.
7186         (picochip_asm_file_start): Ditto flag_var_tracking.
7187         (picochip_reorg): Test original variables.
7188         * config/spu/spu.c (spu_flag_var_tracking): Drop.
7189         (TARGET_DELAY_VARTRACK): Define.
7190         (spu_var_tracking): New.
7191         (spu_machine_dependent_reorg): Call it.
7192         (asm_file_start): Don't save and override flag_var_tracking.
7193
7194 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
7195
7196         PR target/49163
7197         * config/sh/predicates.md (general_movsrc_operand): Return 0
7198         for memory and memory subreg of which address is an invalid
7199         indexed address for QI and HImode.
7200         (general_movdst_operand): Likewise.
7201
7202 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
7203
7204         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
7205         edges only, when there is a non-local label in the function.
7206         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
7207
7208 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
7209
7210         * config/i386/constraints.md (Y3): New register constraint.
7211         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
7212         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
7213         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
7214         *sse2_interleave_lowv2df.
7215
7216 2011-06-02  Julian Brown  <julian@codesourcery.com>
7217
7218         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
7219         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
7220         (arm_cortex_a5_tune): New.
7221
7222 2011-06-02  Julian Brown  <julian@codesourcery.com>
7223
7224         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
7225         * config/arm/arm.c (arm_default_branch_cost): New.
7226         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
7227         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
7228         (arm_fa726_tune): Set branch_cost field using
7229         arm_default_branch_cost.
7230         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
7231         current_tune structure.
7232         * dojump.c (tm_p.h): Include file.
7233
7234 2011-06-02  Julian Brown  <julian@codesourcery.com>
7235
7236         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
7237         tuning.
7238         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
7239         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
7240         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
7241         field.
7242         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
7243         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
7244         (arm_fa726te_tune): Add prefer_constant_pool setting.
7245         (arm_v6t2_tune, arm_cortex_tune): New.
7246         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
7247         prefer_constant_pool setting.
7248
7249 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
7250
7251         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
7252         switch statement.
7253         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
7254         (*movdf_internal) <case 6,7,8>: Ditto.
7255
7256         * config/i386/constraints.md (Y4): New register constraint.
7257         * config/i386/sse.md (vec_set<mode>_0): Merge with
7258         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
7259         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
7260         *vec_extractv2di_1_sse.
7261         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
7262         and *vec_concatv2di_rex64_sse.
7263
7264 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
7265
7266         PR target/48807
7267         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
7268         of cgraph_local_info for null before attempting to use it.
7269
7270 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
7271
7272         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
7273         (current_function_dynamic_alloc_count): Delete.
7274         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
7275         (expand_builtin_nonlocal_goto): Remove obsolete comment.
7276         (expand_builtin_update_setjmp_buf): Remove dead code.
7277         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
7278         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
7279         support.
7280         * function.c (instantiate_virtual_regs): Likewise.
7281         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
7282         for a block with a single abnormal incoming edge.
7283         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
7284         (SETJMP_VIA_SAVE_AREA): Delete.
7285         * config/sparc/sparc-protos.h (load_got_register): Declare.
7286         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
7287         (load_got_register): Make global.
7288         (sparc_frame_pointer_required): Add 'static'.
7289         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
7290         (sparc_builtin_setjmp_frame_value): New function.
7291         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
7292         (save_stack_nonlocal): New expander.
7293         (restore_stack_nonlocal): Likewise.
7294         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
7295         (nonlocal_goto_internal): New insn.
7296         (goto_handler_and_restore): Delete.
7297         (builtin_setjmp_setup): Likewise.
7298         (do_builtin_setjmp_setup): Likewise.
7299         (setjmp): Likewise.
7300         (builtin_setjmp_receiver): New expander.
7301
7302 2011-06-01  David Li  <davidxl@google.com>
7303
7304         PR middle-end/49261
7305         * tree-pretty-print.c (dump_function_header): Format cleanup.
7306
7307 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
7308
7309         PR target/49238
7310         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
7311         needed when original operands are used for msw_skip comparison.
7312
7313 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
7314
7315         PR debug/49250
7316         * var-tracking.c (add_uses, add_stores): Don't call
7317         cselib_subst_to_values on ENTRY_VALUE.
7318
7319 2011-06-01  Diego Novillo  <dnovillo@google.com>
7320
7321         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
7322         output_record_start with LTO_null instead of output_zero.
7323         (lto_output_ts_binfo_tree_pointers): Likewise.
7324         (lto_output_tree): Likewise.
7325         (output_eh_try_list): Likewise.
7326         (output_eh_region): Likewise.
7327         (output_eh_lp): Likewise.
7328         (output_eh_regions): Likewise.
7329         (output_bb): Likewise.
7330         (output_function): Likewise.
7331         (output_unreferenced_globals): Likewise.
7332         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
7333         instead of NUM_TREE_CODES.
7334         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
7335         (lto_output_int_in_range): Change << to >> when shifting VAL.
7336
7337 2011-06-01  Diego Novillo  <dnovillo@google.com>
7338
7339         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
7340         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
7341
7342 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7343
7344         PR target/45074
7345         * optabs.h (valid_multiword_target_p): Declare.
7346         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
7347         doing multi-word operations.
7348         * optabs.c (expand_binop): Likewise.
7349         (expand_doubleword_bswap): Likewise.
7350         (expand_absneg_bit): Likewise.
7351         (expand_unop): Likewise.
7352         (expand_copysign_bit): Likewise.
7353         (multiword_target_p): New function.
7354
7355 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7356
7357         PR rtl-optimization/48830
7358         PR rtl-optimization/48808
7359         PR rtl-optimization/48792
7360         * reload.c (push_reload): Check contains_reg_of_mode.
7361         * reload1.c (strip_paradoxical_subreg): New function.
7362         (gen_reload_chain_without_interm_reg_p): Use it to handle
7363         paradoxical subregs.
7364         (emit_output_reload_insns, gen_reload): Likewise.
7365
7366 2011-06-01  David Li  <davidxl@google.com>
7367
7368         * predict.c : Change pass name
7369         * ipa.c: Ditto.
7370         * dce.c: Ditto.
7371         * tree-profile.c: Ditto.
7372         * except.c: Ditto.
7373
7374 2011-06-01  David Li  <davidxl@google.com>
7375
7376         * tree-pretty-print.c (dump_function_header): New function.
7377         * final.c (rest_of_clean_state): Use header dumper.
7378         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
7379         * passes.c (pass_init_dump_file): Use header dumper.
7380
7381 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
7382
7383         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
7384         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
7385         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
7386         New functions.
7387         (mem_loc_descriptor): Use them.
7388
7389         * var-tracking.c (create_entry_value): New function.
7390         (vt_add_function_parameter): Use it.
7391
7392 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7393
7394         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
7395         Include <signal.h>, <ucontext.h>.
7396         (sigill_caught): Define.
7397         (sigill_hdlr): New function.
7398         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
7399         insns can be executed.
7400         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
7401         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
7402
7403 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7404
7405         * config/t-slibgcc-darwin: Move to ...
7406         * config/t-slibgcc-dummy: ... this.  Clarify comments.
7407         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
7408         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
7409         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
7410         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
7411         Remove i386/t-crtstuff from tmake_file.
7412         (i[34567]86-*-solaris2*): Remove t-svr4,
7413         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
7414         t-slibgcc-dummy.
7415         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
7416         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
7417         sparc/t-crtfm from tmake_file.
7418         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
7419         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
7420         Remove extra_parts.
7421         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
7422         * config/i386/t-nwld (SHLIB_LINK): Remove.
7423         * config/i386/t-rtems-i386: Rename to ...
7424         * config/i386/t-rtems: ... this.
7425         ($(T)crti.o, $(T)crtn.o): Remove.
7426         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
7427         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
7428         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
7429         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
7430         EXTRA_MULTILIB_PARTS): Remove.
7431         * config/sparc/t-sol2-64: Likewise.
7432         * config/sparc/t-sol2: Remove.
7433         * config/sparc/t-crtin: Remove.
7434         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
7435         * config/i386/gmon-sol2.c: Remove.
7436         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
7437         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
7438         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
7439         * config/i386/sol2-gc1.asm: Remove.
7440         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
7441         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
7442         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
7443         * config/t-slibgcc-sld: Remove.
7444
7445 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
7446
7447         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
7448         base_type_for_mode with op_mode instead of mode.
7449
7450 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
7451
7452         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
7453         Cortex-A15.
7454         * config/arm/arm-tune.md: Regenerate.
7455         * config/arm/arm-tables.opt: Regenerate.
7456         * config/arm/arm.c (FL_DIV): Rename...
7457         (FL_THUMB_DIV): ... to this.
7458         (FL_ARM_DIV): Define.
7459         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
7460         (arm_arch_hwdiv): Remove.
7461         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
7462         (arm_issue_rate): Add cortexr5.
7463         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
7464         __ARM_ARCH_EXT_IDIV__.
7465         (TARGET_IDIV): Define.
7466         (arm_arch_hwdiv): Remove.
7467         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
7468         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
7469         (divsi3, udivsi3): New patterns.
7470         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
7471         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
7472
7473 2011-06-01  Martin Jambor  <mjambor@suse.cz>
7474
7475         * ipa-utils.c (ipa_dfs_info): New field scc_no.
7476         * ipa-utils.c (searchc): Set scc_no.
7477
7478 2011-06-01  Martin Jambor  <mjambor@suse.cz>
7479
7480         * ipa-utils.c (searchc_env): New field allow_overwritable.
7481         (searchc): do not ignore edges to overwritable nodes if indicated
7482         by env->allow_overwritable.
7483         (ipa_reduced_postorder): Set env.allow_overwritable.
7484
7485 2011-06-01  Richard Guenther  <rguenther@suse.de>
7486
7487         * tree.c (free_lang_data): Do not reset boolean_type_node nor
7488         char_type_node.
7489         * lto-streamer.c (lto_record_common_node): Take node pointer,
7490         do not register types.
7491         (lto_preload_common_nodes): Explicitly skip preloading nodes
7492         that differ between frontends.
7493
7494 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
7495
7496         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
7497         NON_FLOAT_REGS.
7498
7499 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
7500
7501         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
7502         parameter value for dump. Dump cost on outermost call only.
7503         (rs6000_memory_move_cost): Dump cost on outermost call only.
7504
7505 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
7506
7507         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
7508         DW_OP_GNU_convert ops.
7509
7510         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
7511         cselib_preserve_constants.
7512         (cselib_lookup_1): If cselib_preserve_constants,
7513         a new VALUE is being created for REG and there is a VALUE for the
7514         same register in wider mode, add another loc with lowpart SUBREG of
7515         the wider VALUE.
7516         (cselib_subst_to_values): Handle ENTRY_VALUE.
7517         * var-tracking.c  (replace_expr_with_values): Return NULL for
7518         ENTRY_VALUE too.
7519         * dwarf2out.c (convert_descriptor_to_signed): New function.
7520         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
7521         instead of two shifts.
7522         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
7523         the right mode if needed.
7524         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
7525         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
7526         convert_descriptor_to_signed.
7527         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
7528         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
7529
7530         PR target/48688
7531         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
7532
7533 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
7534
7535         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
7536         of X87MODEI12 and SWI48x instead of SSEMODEI24.
7537         (SWI248x): New mode iterator, rename from X87MODEI.
7538         (X87MODEI): Remove mode iterator.
7539         (X87MODEI12): Ditto.
7540         (SSEMODEI24): Ditto.
7541
7542 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
7543
7544         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
7545         * doc/invoke.texi: Document max-vartrack-expr-depth.
7546         * var-tracking.c (EXPR_DEPTH): New.
7547         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
7548
7549 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
7550
7551         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
7552         * config/i386/sse.md: Add n to negated FMA pattern names.
7553
7554 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
7555
7556         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
7557
7558 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
7559
7560         * gengtype-state.c (read_state_params_structs): Initialize previous.
7561
7562 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
7563
7564         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
7565         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
7566
7567 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
7568
7569         * config/i386/i386.md (*movtf_internal): Avoid allocating general
7570         registers.  Penalize F*r->o alternative to prevent partial memory
7571         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
7572         CONST_DOUBLE immediates when optimizing function for size.  Do not move
7573         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
7574         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
7575         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
7576         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
7577         alternatives.
7578         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
7579
7580         (fp_register_operand splitters): Use fp_register_operand
7581         constraint.  Do not use FP_REG_P in insn condition.
7582         (any_fp_register_operand splitters): Use any_fp_register_operand
7583         constraint.  Do not use ANY_FP_REG_P in insn condition.
7584
7585 2011-05-31  Jan Hubicka  <jh@suse.cz>
7586
7587         * cgraph.h (cgraph_inline_failed_t): Give enum a name
7588         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
7589         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
7590         (lto_output_edge): Use output_enum and var_len_unsigned.
7591         (lto_output_varpool_node): Likewise.
7592         (input_overwrite_node): Do not take resolution parameter;
7593         extract it from a bitpack.
7594         (input_node): Do not read resolution; use input_enum and
7595         var_len_unsigned.
7596         (input_varpool_node): Likewise.
7597         (input_edge): Likewise.
7598         (input_cgraph_1): Likewise.
7599
7600 2011-05-31  Richard Guenther  <rguenther@suse.de>
7601
7602         * gimple.c (gimple_register_canonical_type): Do not register
7603         any types via gimple_register_type.
7604
7605 2011-05-31  Jan Hubicka  <jh@suse.cz>
7606
7607         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
7608         of thunks.
7609
7610 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
7611
7612         PR rtl-optimization/49235
7613         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
7614         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
7615
7616 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
7617
7618         PR tree-optimization/49093
7619         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
7620         data references.
7621
7622 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
7623
7624         PR debug/49047
7625         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
7626         for concrete functions containing the code of cloned functions.
7627
7628 2011-05-31  Richard Guenther  <rguenther@suse.de>
7629
7630         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
7631         to ...
7632         (forward_propagate_into_comparison_1): ... this.
7633         (forward_propagate_comparison): Rename to ...
7634         (forward_propagate_into_comparison): ... this.  Split out
7635         real forward propagation code to ...
7636         (forward_propagate_comparison): ... this.
7637         (forward_propagate_into_gimple_cond): Remove looping.
7638         (forward_propagate_into_cond): Likewise.
7639         (simplify_not_neg_expr): Return whether we have done something.
7640         (simplify_gimple_switch): Likewise.
7641         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
7642         (ssa_forward_propagate_and_combine): ... this.  Re-structure
7643         to do a forward forward-propagation walk on BBs and a backward
7644         stmt combining walk on BBs.  Consistently re-scan changed statements.
7645         (pass_forwprop): Adjust.
7646
7647 2011-05-30  Ian Lance Taylor  <iant@google.com>
7648
7649         * godump.c (go_format_type): Correct length of name added to
7650         obstack for anonymous field.
7651
7652 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
7653
7654         PR target/49186
7655         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
7656         part of the second operand is 0.
7657
7658 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
7659
7660         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
7661         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
7662         to memory for !TARGET_MEMORY_MISMATCH_STALL.
7663         (*movdf_internal_rex64): Do not penalize F->r alternative.
7664         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
7665         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
7666         when optimizing function for size.  Do not move CONST_DOUBLEs
7667         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
7668         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
7669         SUBREGs.  Do not check for MEM_P operands in the insn condition,
7670         check for ANY_FP_REGNO_P instead.
7671         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
7672         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
7673         function for speed.
7674         * config/i386/i386.c (ix86_option_override_internal): Do not
7675         set TARGET_INTEGER_DFMODE_MOVES here.
7676
7677 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
7678
7679         PR target/49168
7680         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
7681
7682 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
7683
7684         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
7685         DW_TAG_rvalue_reference_type even for
7686         -gdwarf-4 -fno-debug-types-section.
7687
7688 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7689
7690         PR tree-optimization/46728
7691         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
7692         (build_and_insert_binop): New.
7693         (gimple_expand_builtin_pow): Reorder args for
7694         build_and_insert_call; use build_and_insert_binop; add more
7695         optimizations for fractional exponents.
7696
7697 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
7698
7699         PR bootstrap/49190
7700
7701         Revert:
7702         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7703
7704         * tree.h (struct tree_identifier): Inherit from tree_typed, not
7705         tree_common.
7706         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
7707         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
7708         TS_BASE instead of TS_COMMON.
7709         * varasm.c (assemble_name): Remove assert.
7710
7711 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
7712
7713         * config.gcc: Keep obselete list sorted.
7714
7715 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
7716             Eric Botcazou  <ebotcazou@adacore.com>
7717
7718         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
7719         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
7720         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
7721         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
7722         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
7723
7724 2011-05-30  Richard Guenther  <rguenther@suse.de>
7725
7726         * gimple.c (gimple_types_compatible_p_1): Compare record
7727         and union type members properly.
7728
7729 2011-05-30  Richard Guenther  <rguenther@suse.de>
7730
7731         PR tree-optimization/49210
7732         * ipa-split.c (split_function): Care for the case where the call
7733         result is not trivially convertible to the result holding variable.
7734
7735 2011-05-30  Richard Guenther  <rguenther@suse.de>
7736
7737         PR tree-optimization/49218
7738         * tree-vrp.c (adjust_range_with_scev): Properly check whether
7739         overflow occured.
7740
7741 2011-05-30  Richard Guenther  <rguenther@suse.de>
7742
7743         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
7744         New function split out from ...
7745         (forward_propagate_into_gimple_cond): ... here.  Adjust.
7746         (forward_propagate_into_cond): Likewise.
7747         (forward_propagate_comparison): Also propagate into
7748         comparisons on assignment RHS.  Change return value to
7749         behave similar to forward_propagate_into_cond.
7750         (tree_ssa_forward_propagate_single_use_vars): Handle
7751         strict-overflow warnings properly for forward_propagate_comparison.
7752
7753 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7754
7755         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
7756         from plugin linker.
7757         * configure: Regenerate.
7758
7759 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
7760
7761         PR tree-optimization/49199
7762         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
7763         non-reduction operands are either defined in the loop or by induction.
7764
7765 2011-05-29  Xinliang David Li  <davidxl@google.com>
7766
7767         * opts-global.c (handle_common_deferred_options): Handle new options.
7768         * passes.c (register_one_dump_file): Call register_pass_name.
7769         (execute_one_pass): Check explicit enable/disable flag.
7770         (passr_hash): New function.
7771         (passr_eq): Ditto.
7772         (register_pass_name): Ditto.
7773         (get_pass_by_name): Ditto.
7774         (pass_hash): Ditto.
7775         (pass_eq): Ditto.
7776         (enable_pass): Ditto.
7777         (disable_pass): Ditto.
7778         (is_pass_explicitly_enabled_or_disabled): Ditto.
7779
7780 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
7781
7782         * config/i386/i386.md (*movoi_internal_avx): Use
7783         standard_sse_constant_opcode for alternative 0.
7784         (*movti_internal_sse): Ditto.
7785         (*movti_internal_rex64): Use standard_sse_constant_opcode for
7786         alternative 2.
7787         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
7788         sselog1 type moves.
7789         (*movsi_internal): Ditto.
7790         (*movdi_internal): Ditto.  Add ssecvt type moves.
7791
7792 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
7793
7794         PR target/48830
7795         * rtlanal.c (simplify_subreg_regno): Adjust comment.
7796
7797 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
7798
7799         PR rtl-optimization/49095
7800         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
7801         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
7802
7803 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
7804
7805         PR target/43995
7806         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
7807         recurse_p argument.  Only follow register copies if it is set,
7808         and prevent mips_find_pic_call_symbol from recursing.
7809         (mips_find_pic_call_symbol): Add a recurse_p argument.
7810         Pass it to mips_pic_call_symbol_from_set.
7811         (mips_annotate_pic_calls): Update accordingly.
7812
7813 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
7814
7815         * emit-rtl.c (try_split): Use a loop to search for
7816         NOTE_INSN_CALL_ARG_LOCATIONs.
7817
7818 2011-05-29  Richard Guenther  <rguenther@suse.de>
7819
7820         PR tree-optimization/49217
7821         * ipa-pure-const.c (propagate_pure_const): Fix typos.
7822
7823 2011-05-28  Jan Hubicka  <jh@suse.cz>
7824
7825         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
7826         length.
7827         (string_slot_free): Remove
7828         (create_output_block): Initialize obstack.
7829         (destroy_output_block): Free obstack.
7830         (lto_string_index): Add PERSISTENT parameter; do not duplicate
7831         the string unless it needs to be added into the hash.
7832         (lto_output_string_with_length): Add persistent attribute;
7833         handle NULL strings.
7834         (lto_output_string): Add PERSISTENT parameter.
7835         (output_string_cst, output_identifier): Simplify.
7836         (lto_output_location_bitpack): Update.
7837         (lto_output_builtin_tree): Update.
7838         * lto-streamer.h (struct output_block): Add obstack.
7839         (lto_output_string, lto_output_string_with_length): Remove
7840         declarations; functions are static now.
7841
7842 2011-05-28  Jan Hubicka  <jh@suse.cz>
7843
7844         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
7845         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
7846         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
7847         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
7848         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
7849         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
7850         unpack_ts_decl_with_vis_value_fields,
7851         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
7852         lto_get_builtin_tree): Use enum and variable length i/o.
7853         * basic-block.h (profile_status_d): Add PROFILE_LAST.
7854         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
7855         New functions.
7856         (bp_pack_enum, bp_unpack_enum): New macros.
7857
7858 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7859
7860         * genrecog.c: Remove redundant forward declarations.
7861
7862 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7863
7864         * config.gcc: Deprecate mips*-*-openbsd*.
7865
7866 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7867
7868         PR bootstrap/49195
7869         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
7870         for match_op_dup.
7871
7872 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
7873
7874         PR middle-end/48981
7875         * gengtype.c (vec_prefix_type): New function.
7876         (note_def_vec): Use vec_prefix_type and change the length
7877         attribute to be based on the prefix.
7878         * vec.c: Include coretypes.h before vec.h.
7879         (struct vec_prefix): Remove.
7880         (vec_gc_p_reserve): Change the offsetof to sizeof.
7881         (vec_gc_p_reserve_exact): Likewise.
7882         (vec_heap_p_reserve): Likewise.
7883         (vec_heap_p_reserve_exact): Likewise.
7884         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
7885         (vec_stack_p_reserve): Change the offsetof to sizeof.
7886         (vec_stack_p_reserve_exact): Likewise.
7887         * vec.h (struct vec_prefix): New struct definition.
7888         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
7889         (VEC_T_GTY(T,B)): Likewise.
7890         (DEF_VEC_FUNC_P(T)): Use prefix field.
7891         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
7892         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
7893
7894 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7895
7896         PR tree-optimization/46728
7897         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
7898         (powi_as_mults): Add gimple_set_location.
7899         (build_and_insert_call): New.
7900         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
7901         0.5, 0.25, 0.75, 1./3., or 1./6.
7902
7903 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
7904
7905         * doc/contrib.texi: Update copyright years.
7906         (Contributors): Add Zdenek Sojka.
7907
7908 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
7909
7910         * c-decl.c (c_push_function_context): Copy the current statement
7911         list stack.
7912         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
7913         (finish_struct): Call building_stmt_list_p instead of checking
7914         cur_stmt_list.
7915         * c-parser.c (c_parser_postfix_expression): Likewise.
7916         * c-typeck.c (c_end_compound_stmt): Likewise.
7917         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
7918         * tree-iterator.c (stmt_list_cache): Change to a VEC.
7919         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
7920         (free_stmt_list): Likewise.
7921         * tree.h (struct tree_statement_list): Include typed_tree instead
7922         of tree_common.
7923         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
7924         as TS_TYPED instead of TS_COMMON.
7925
7926 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7927             Uros Bizjak  <ubizjak@gmail.com>
7928
7929         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
7930         (HAVE_AS_IX86_TLSGDPTL): Define.
7931         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
7932         (HAVE_AS_IX86_TLSLDMPLT): Define.
7933         * configure: Regenerate.
7934         * config.in: Regenerate.
7935         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
7936         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
7937         TARGET_SUN_TLS, use @tlsgdplt or @plt.
7938         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
7939         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
7940         @tlsldmplt or @plt.
7941         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
7942
7943 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
7944
7945         * sched-int.h (struct _haifa_deps_insn_data): New members cond
7946         and reverse_cond.
7947         (INSN_COND, INSN_REVERSE_COND): New macros.
7948         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
7949         once.
7950         (sched_get_condition_with_rev): Cache the results, and look them up
7951         if possible.
7952         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
7953         are clobbered by the current insn.
7954         * target.def (exposed_pipline): New sched data hook.
7955         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
7956         * doc/tm.texi: Regenerate.
7957
7958 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7959
7960         PR tree-optimization/49170
7961         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
7962         sincos or cexp.
7963
7964 2011-05-27  Richard Guenther  <rguenther@suse.de>
7965
7966         PR middle-end/49189
7967         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
7968         of comparisons.
7969
7970 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
7971
7972         * haifa-sched.c (sched_scan_info): Remove.
7973         (schedule_block): Call sched_extend_luids rather than sched_init_luids
7974         with NULL args.
7975         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
7976         Remove functions.
7977         (sched_scan): Remove.
7978         (sched_extend_luids): Renamed from luids_extend_insn and no longer
7979         static.  All callers changed.
7980         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
7981         static.  All callers changed.
7982         (sched_init_luids): Remove all arguments except the first.  All
7983         callers changed.  Don't use sched_scan.
7984         (haifa_init_h_i_d): Likewise.
7985         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
7986         manually rather than using sched_init_luids.  Likewise with
7987         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
7988         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
7989         rather than sched_init_luids with NULL args.
7990         * sel-sched-ir.c (new_insns): Remove variable.
7991         (sched_scan): New static function, previously in haifa-sched.c.  Remove
7992         all arguments but the first two; all callers changed.
7993         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
7994         rather than sched_init_luids.
7995         (sel_init_bbs): Remove second argument.  All callers changed.
7996         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
7997         with NULL arguments.
7998         (create_insn_rtx_from_pattern): Likewise.
7999         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
8000         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
8001         (sched_init_insn_luid, sched_extend_luids): Declare.
8002         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
8003         declarations.
8004
8005 2011-05-27  Richard Guenther  <rguenther@suse.de>
8006
8007         PR middle-end/49177
8008         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
8009         A CMP B ? (T) true : (T) false for non-integral types T again.
8010
8011 2011-05-27  Jan Hubicka  <jh@suse.cz>
8012
8013         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
8014         so 0 means NULL string.
8015         (lto_output_string_with_length): ... here.
8016         (lto_output_string, output_string_cst, output_identifier): Update
8017         handling of NULL strings.
8018         (lto_output_location_bitpack): New function.
8019         (lto_output_location): Use it.
8020         (lto_output_tree_ref): Use output_record_start.
8021         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
8022         len values.
8023         * lto-streamer-in.c (string_for_index): Break out from ...; offset
8024         values by 1.
8025         (input_string_internal): ... here;
8026         (input_string_cst, input_identifier, lto_input_string): Update handling
8027         of NULL strings.
8028         (lto_input_location_bitpack): New function
8029         (lto_input_location): Use it.
8030         (unpack_ts_type_common_value_fields): Pack align & alias in var len
8031         values.
8032         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
8033         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
8034         (bp_pack_value): Sanity check the value range.
8035         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
8036         New functions.
8037         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
8038         New functions.
8039
8040 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
8041
8042         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
8043         call_arg_location instructions down the floor.
8044
8045 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
8046
8047         PR rtl-optimization/49154
8048         * ira.c (setup_pressure_classes): Process class without sublcasses
8049         as a candidate for pressure classes.
8050
8051 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
8052
8053         PR rtl-optimization/48575
8054         * genrecog.c (position_type): New enum.
8055         (position): New structure.
8056         (decision): Use position structure instead of a string.
8057         (root_pos, peep2_insn_pos_list): New variables.
8058         (next_position, compare_positions): New functions.
8059         (new_decision): Use position structures instead of strings.
8060         (maybe_both_true): Likewise.
8061         (change_state): Likewise.
8062         (write_tree): Likewise.
8063         (make_insn_sequence): Likewise.
8064
8065 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
8066
8067         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
8068         TS_BASE instead of TS_COMMON.
8069         (find_decls_types_r): Check for TS_TYPED structure before looking at
8070         TREE_TYPE.
8071         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
8072         Add chain field.
8073         (BLOCK_CHAIN): Use new chain field.
8074
8075 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
8076
8077         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
8078         moves expensive on Power7 also.
8079
8080 2011-05-26  Richard Guenther  <rguenther@suse.de>
8081
8082         * fold-const.c (fold_unary_loc): Remove bogus code.
8083
8084 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
8085
8086         * tree.h (struct tree_identifier): Inherit from tree_typed, not
8087         tree_common.
8088         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
8089         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
8090         TS_BASE instead of TS_COMMON.
8091         * varasm.c (assemble_name): Remove assert.
8092
8093 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
8094
8095         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
8096         substituted first.
8097         * libgcc-std.ver: Delete file.
8098
8099 2011-05-26  Richard Guenther  <rguenther@suse.de>
8100
8101         PR tree-optimization/48702
8102         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
8103         only when we know the base address is within bounds.
8104         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
8105         assume the base address of TARGET_MEM_REFs is in bounds.
8106
8107 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8108
8109         PR target/49099
8110         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
8111         declaration in TARGET_SOLARIS.
8112
8113 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
8114
8115         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
8116         The instruction is then expanded explicitly.
8117         (supported_compare): Callable instruction.
8118         (compare): Likewise.
8119
8120 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
8121
8122         PR c++/49165
8123         * gimplify.c (shortcut_cond_r): Don't special case
8124         COND_EXPRs if they have void type on one of their arms.
8125
8126 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
8127
8128         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
8129         to reduce duplication, and to achieve a slightly more logical order
8130         of operations.
8131
8132 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
8133
8134         PR tree-optimization/49161
8135         * tree-vrp.c (struct case_info): New type.
8136         (compare_case_labels): Sort case_info structs instead of
8137         trees, and not primarily by CASE_LABEL uids but by
8138         label_for_block indexes.
8139         (find_switch_asserts): Put case labels into struct case_info
8140         array instead of TREE_VEC, adjust sorting, compare label_for_block
8141         values instead of CASE_LABELs.
8142
8143 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8144
8145         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
8146         ("orndi3_neon"): Likewise.
8147         ("bic<mode>3_neon"): Likewise.
8148
8149 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
8150
8151         PR tree-optimization/49038
8152         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
8153         Ensure at least one epilogue iteration if required by data
8154         accesses with gaps.
8155         * tree-vectorizer.h (struct _loop_vec_info): Add new field
8156         to mark loops that require peeling for gaps.
8157         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
8158         (vect_get_known_peeling_cost): Take peeling for gaps into
8159         account.
8160         (vect_transform_loop): Generate epilogue if required by data
8161         access with gaps.
8162         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
8163         loop as requiring an epilogue if there are gaps in the end of
8164         the strided group.
8165
8166 2011-05-25  Ian Lance Taylor  <iant@google.com>
8167
8168         * godump.c (go_format_type): Output the first field with a usable
8169         Go type, if any.
8170
8171 2011-05-25  Ian Lance Taylor  <iant@google.com>
8172
8173         * godump.c (go_format_type): Check for invalid type names, pointer
8174         target types, and struct field types.
8175
8176 2011-05-25  Jason Merrill  <jason@redhat.com>
8177
8178         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
8179
8180 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
8181
8182         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
8183
8184 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8185
8186         * config/i386/i386.md (*movqi_extv_1)): Put back
8187         "register_operand" check in "type" calculation.
8188         (*movqi_extzv_2): Likewise.
8189
8190 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8191
8192         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
8193
8194 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
8195
8196         PR bootstrap/49160
8197         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
8198         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
8199         __divxc3, __divtc3): Wrap definitions in #ifndef.
8200
8201 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8202
8203         PR target/49142
8204         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
8205         "register_operand" check and replace q_regs_operand with
8206         QIreg_operand in "type" calculation.
8207         (*movqi_extv_1): Likewise.
8208         (*movqi_extzv_2_rex64): Likewise.
8209         (*movqi_extzv_2): Likewise.
8210
8211         * config/i386/predicates.md (QIreg_operand): New.
8212
8213 2011-05-25  Richard Guenther  <rguenther@suse.de>
8214
8215         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
8216         type-based offset disambiguation, streamline MEM_REF and
8217         TARGET_MEM_REF handling.
8218
8219 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8220
8221         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
8222         (bdesc_special_args): Add pause intrinsic.
8223
8224         * config/i386/i386.md (UNSPEC_PAUSE): New.
8225         (pause): Likewise.
8226         (*pause): Likewise.
8227         * config/i386/ia32intrin.h (__pause): Likewise.
8228
8229         * doc/extend.texi (X86 Built-in Functions): Add documentation for
8230         pause intrinsic.
8231
8232 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8233
8234         PR tree-optimization/46728
8235         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
8236         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
8237
8238 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
8239
8240         * tree.h (struct tree_exp): Inherit from struct tree_typed.
8241         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
8242         instead of TS_COMMON.
8243
8244 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
8245
8246         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
8247         LIBGCC2_GNU_PREFIX is defined.
8248         (__N): New macro.
8249         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
8250         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
8251         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
8252         __clz_tab): Define using __N.
8253         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
8254         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
8255         * target.def (libfunc_gnu_prefix): New hook.
8256         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
8257         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
8258         * doc/tm.texi: Regenerate.
8259         * system.h (LIBGCC2_GNU_PREFIX): Poison.
8260         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
8261         account.
8262         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
8263         (init_optabs): Likewise for the bswap libfuncs.
8264         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
8265         and divide.
8266         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
8267         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
8268         * libgcc-std.ver: Remove.
8269         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
8270         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
8271         libgcc-std.ver.
8272         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8273         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
8274         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
8275         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
8276         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
8277         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8278         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8279         * config/fixed-bit.h (FIXED_OP): Define differently depending on
8280         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
8281         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
8282
8283 2011-05-25  Jan Hubicka  <jh@suse.cz>
8284
8285         * lto-streamer-out.c (output_record_start): Use lto_output_enum
8286         (lto_output_tree): Use output_record_start.
8287         * lto-streamer-in.c (input_record_start): Use lto_input_enum
8288         (lto_get_pickled_tree): Use input_record_start.
8289         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
8290         (lto_value_range_error): New function.
8291         * lto-streamer.h (lto_value_range_error): Declare.
8292         (lto_output_int_in_range, lto_input_int_in_range): New functions.
8293         (lto_output_enum, lto_input_enum): New macros.
8294
8295 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8296
8297         * common.opt (flag_stack_usage_info): New variable.
8298         (-Wstack-usage): New option.
8299         * doc/invoke.texi (Warning options): Document -Wstack-usage.
8300         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
8301         <OPT_fstack_usage>: Likewise.
8302         * toplev.c (output_stack_usage): Handle -Wstack-usage.
8303         * calls.c (expand_call): Test flag_stack_usage_info variable instead
8304         of flag_stack_usage.
8305         (emit_library_call_value_1): Likewise.
8306         * explow.c (allocate_dynamic_stack_space): Likewise.
8307         * function.c (instantiate_virtual_regs ): Likewise.
8308         (prepare_function_start): Likewise.
8309         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
8310         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
8311         * config/arm/arm.c (arm_expand_prologue): Likewise.
8312         (thumb1_expand_prologue): Likewise.
8313         * config/avr/avr.c (expand_prologue): Likewise.
8314         * config/i386/i386.c (ix86_expand_prologue): Likewise.
8315         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
8316         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
8317         * config/mips/mips.c (mips_expand_prologue): Likewise.
8318         * config/pa/pa.c (hppa_expand_prologue): Likewise.
8319         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8320         * config/s390/s390.c (s390_emit_prologue): Likewise.
8321         * config/sh/sh.c (sh_expand_prologue): Likewise.
8322         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8323         * config/spu/spu.c (spu_expand_prologue): Likewise.
8324
8325 2011-05-25  Richard Guenther  <rguenther@suse.de>
8326
8327         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
8328         (gimple_canonical_types_compatible_p): Likewise.
8329
8330 2011-05-25  Jan Hubicka  <jh@suse.cz>
8331
8332         PR middle-end/49062
8333         * ipa.c (function_and_variable_visibility): Only add to same
8334         comdat group list if DECL_ONE_ONLY.
8335
8336 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
8337
8338         PR rtl-optimization/49014
8339         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
8340
8341 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
8342
8343         PR target/49128
8344         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8345
8346 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
8347
8348         PR rtl-optimization/48757
8349         * ira-build.c (loop_with_eh_edge_p): Rename to
8350         loop_with_complex_edge_p, check edges on complexity, make function
8351         conditional.
8352         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
8353         conditional.
8354
8355 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
8356
8357         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
8358         force flag_ira_share_save_slots to 0.
8359
8360 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
8361
8362         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
8363         (vt_initialize): Set PROLOGUE_BB unconditionally.
8364         Add block comment about CFA_BASE_RTX machinery.
8365         Reset FP_CFA_OFFSET to -1 on all invalid paths.
8366         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
8367
8368 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
8369
8370         PR objc/48187
8371         * c-parser.c (c_parser_objc_class_instance_variables): More robust
8372         parsing of syntax error in ObjC instance variable lists.  In
8373         particular, avoid an infinite loop if there is a stray ']'.
8374         Updated error message.
8375
8376 2011-05-24  Ian Lance Taylor  <iant@google.com>
8377
8378         * godump.c (go_define): Don't accept a string immediately after
8379         another operand.
8380
8381 2011-05-24  Ian Lance Taylor  <iant@google.com>
8382
8383         * godump.c (struct godump_container): Add invalid_hash field.
8384         (go_format_type): Return false if type is found in invalid_hash.
8385         (go_output_typedef): Add invalid type to invalid_hash.
8386         (go_finish): Create and delete invalid_hash.
8387
8388 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8389
8390         PR tree-optimization/46728
8391         * tree-ssa-math-opts.c (powi_table): New.
8392         (powi_lookup_cost): New.
8393         (powi_cost): New.
8394         (powi_as_mults_1): New.
8395         (powi_as_mults): New.
8396         (gimple_expand_builtin_powi): New.
8397         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
8398         (gate_cse_sincos): Remove sincos/cexp restriction.
8399
8400 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8401
8402         PR target/3746
8403         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
8404         mips-tdump native.
8405         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
8406         * mips-tdump.c: Likewise.
8407
8408 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8409
8410         PR target/49128
8411         * config/i386/driver-i386.c (host_detect_local_cpu): Always
8412         add -mno-XXX.  Handle FMA.
8413
8414 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
8415
8416         PR rtl-optimization/48633
8417         * ira-build.c (loop_with_eh_edge_p): New function.
8418         (mark_loops_for_removal): Use it.
8419
8420 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
8421
8422         PR rtl-optimization/48971
8423         * ira.c (setup_pressure_classes): Don't check register move cost
8424         for classes with one registers.  Don't add pressure class if there
8425         is a pressure class with the same available hard registers.
8426         Check contains_reg_of_mode.  Fix a typo in collecting
8427         temp_hard_regset.  Ignore hard registers not belonging to a class.
8428
8429 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
8430
8431         PR target/49133
8432         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
8433
8434 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
8435             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8436
8437         PR gcov-profile/48845
8438         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
8439
8440 2011-05-24  Richard Guenther  <rguenther@suse.de>
8441
8442         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
8443         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
8444         (gimple_types_compatible_p_1): Adjust.
8445         (iterative_hash_canonical_type): Do not bother about complete vs.
8446         incomplete types.
8447         (gimple_canonical_types_compatible_p): Likewise.
8448
8449 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8450
8451         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
8452
8453 2011-05-24  Richard Guenther  <rguenther@suse.de>
8454
8455         PR bootstrap/49078
8456         * gimple.c (gimple_register_canonical_type): Revert
8457         previous change.
8458         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
8459         does not for a tree for the case where it matters.  Cache
8460         pointer-type alias-sets.
8461
8462 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
8463
8464         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
8465         (OBJS): Remove options.o, opts-common.o and prefix.o.
8466         (OBJS-libcommon-target): New.
8467         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
8468         (BACKEND): Include libcommon-target.a.
8469         (MOSTLYCLEANFILES): Include libcommon-target.a.
8470         (libcommon-target.a): New.
8471         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
8472         prefix.o.
8473
8474 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
8475
8476         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
8477         parts of output shared with the driver.
8478         * optc-gen.awk: Don't generate parts of output not shared with the
8479         driver.
8480         * opth-gen.awk: Remove GCC_DRIVER conditionals.
8481         * doc/options.texi (SourcerInclude): Mention options-save.c.
8482         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
8483         (OBJS): Add options-save.o.
8484         (options-save.c, options-save.o): New.
8485         (options.o): Update dependencies.
8486         (gcc-options.o): Remove.
8487         (mostlyclean): Remove options-save.c.
8488
8489 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
8490
8491         PR debug/49032
8492         * dbxout.c: Include cgraph.h.
8493         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
8494         and without value expr, return NULL if no varpool node exists for
8495         it or if it is not needed.
8496         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
8497
8498         PR c/49120
8499         * c-decl.c (start_decl): Convert expr to void_type_node.
8500
8501 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
8502
8503         PR rtl-optimization/48826
8504         * emit-rtl.c (try_split): When splitting a call that is followed
8505         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
8506
8507 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
8508
8509         * cfgexpand.c (expand_debug_expr): For unused non-addressable
8510         parameters passed in memory prefer using DECL_INCOMING_RTL over
8511         the pseudos it will be copied into.
8512
8513 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
8514
8515         PR target/47315
8516         * config/i386/i386.c (ix86_option_override_internal): Save the
8517         initial options after checking vzeroupper.
8518
8519 2011-05-23  David Li  <davidxl@google.com>
8520
8521         PR tree-optimization/48988
8522         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
8523         Initialize has_valid_pred for each pred chain.
8524
8525 2011-05-23  Richard Guenther  <rguenther@suse.de>
8526
8527         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
8528         (iterative_hash_gimple_type): Always hash type names.
8529
8530 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
8531
8532         * c-typeck.c (build_function_call_vec): Tweak call to
8533         check_function_arguments.
8534
8535 2011-05-23  Richard Guenther  <rguenther@suse.de>
8536
8537         PR tree-optimization/49115
8538         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
8539         is not necessarily carried out, do not claim it kills the ref.
8540         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
8541
8542 2011-05-23  Richard Guenther  <rguenther@suse.de>
8543
8544         PR middle-end/15419
8545         * builtins.c (fold_builtin_memory_op): Be less restrictive about
8546         what pointer types we accept for folding.
8547
8548 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8549
8550         * gthr-gnat.c: Remove.
8551         * gthr-gnat.h: Remove.
8552         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
8553         * config/t-freebsd (LIB2ADDEH): Likewise.
8554         * config/t-linux (LIB2ADDEH): Likewise.
8555         * config/t-sol2 (LIB2ADDEH): Likewise.
8556         * config/ia64/t-vms (LIB2ADDEH): Likewise.
8557         * configure.ac (target_thread_file): Remove gnat handling.
8558         * configure: Regenerate.
8559         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
8560
8561 2011-05-23  Tristan Gingold  <gingold@adacore.com>
8562             Eric Botcazou  <ebotcazou@adacore.com>
8563
8564         * gcov.c (create_file_names): If no object directory is specified,
8565         keep the directory of the file.
8566
8567 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8568
8569         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
8570         * configure: Regenerate.
8571
8572 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
8573
8574         PR middle-end/48973
8575         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
8576         failed and the comparison has a single bit signed type, use
8577         constm1_rtx instead of const1_rtx for true value.
8578         (do_store_flag): If ops->type is single bit signed type, disable
8579         signel bit test optimization and pass -1 instead of 1 as last
8580         parameter to emit_store_flag_force.
8581
8582 2011-05-23  Tom de Vries  <tom@codesourcery.com>
8583
8584         PR target/45098
8585         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
8586         function.
8587         (infer_loop_bounds_from_undefined): Use new function.
8588
8589 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
8590
8591         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
8592         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
8593         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
8594         and -O0 otherwise.
8595         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
8596
8597 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
8598
8599         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
8600         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
8601         returns true.
8602
8603 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
8604
8605         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
8606
8607 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
8608
8609         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
8610         UNSPEC_MOVE_PIC pattern.
8611
8612 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
8613
8614         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
8615         (sparc-*-rtems*): Likewise.
8616         (sparc64-*-elf*): Likewise.
8617         (sparc64-*-rtems*): Likewise.
8618         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
8619         * config/sparc/t-crtin: New file.
8620         * config/sparc/t-sol2 (crti.o): Delete rule.
8621         (crtn.o): Likewise.
8622         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
8623         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
8624         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
8625         (ENDFILE_SPEC): Add crtn.o.
8626
8627 2011-05-22  Tom de Vries  <tom@codesourcery.com>
8628
8629         PR middle-end/48689
8630         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
8631         CODE_CONTAINS_STRUCT (TS_COMMON).
8632
8633 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
8634
8635         PR middle-end/49029
8636         * expmed.c (extract_fixed_bit_field): Test whether target can be used
8637         only after deciding which mode to use.
8638
8639 2011-05-22  Tom de Vries  <tom@codesourcery.com>
8640
8641         PR target/45098
8642         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
8643         for call to get_shiftadd_cost.
8644
8645 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
8646
8647         PR target/49104
8648         * config/i386/cpuid.h (bit_MMXEXT): New define.
8649
8650 2011-05-22  Nick Clifton  <nickc@redhat.com>
8651
8652         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
8653         initialisation of non-existant args[2] element.  Use args[] array
8654         not arg[] array to pass arguments to build_function_type_list.
8655
8656 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
8657
8658         PR tree-optimization/49087
8659         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
8660
8661 2011-05-21  Jason Merrill  <jason@redhat.com>
8662
8663         PR c++/49092
8664         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
8665         static storage duration.
8666
8667 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8668
8669         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
8670         frame pointer.
8671
8672 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8673
8674         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
8675         false if there are call-saved registers here...
8676         (sparc_can_use_return_insn_p): ...but here instead.
8677         (save_or_restore_regs): Fix thinko.
8678         (sparc_expand_prologue): Use current_function_is_leaf.
8679         (sparc_frame_pointer_required): Likewise.
8680
8681 2011-05-21  Nick Clifton  <nickc@redhat.com>
8682
8683         PR target/49098
8684         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
8685
8686 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8687
8688         * gengtype.c (walk_type): Implemented "atomic" GTY option.
8689         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
8690
8691 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
8692
8693         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
8694         * optc-gen.awk: Move common code to opt-read.awk.
8695         * opth-gen.awk: Likewise.
8696         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
8697
8698 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
8699
8700         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
8701
8702 2011-05-20  Tom de Vries  <tom@codesourcery.com>
8703
8704         PR target/45098
8705         * tree-ssa-loop-ivopts.c: Include expmed.h.
8706         (get_shiftadd_cost): New function.
8707         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
8708
8709 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
8710
8711         PR bootstrap/49086
8712         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
8713         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
8714
8715 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
8716
8717         * Makefile.in: Update comment referring to $(OBJS-common).
8718
8719 2011-05-20  Ian Lance Taylor  <iant@google.com>
8720
8721         * godump.c (go_output_typedef): Put enum constants in the macro
8722         hash table to avoid duplicate Go const definitions.
8723
8724 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
8725
8726         * Makefile.in (LIBDEPS): Add libcommon.a.
8727         (LIBS): Likewise.
8728         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
8729         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
8730         pretty-print.o and version.o.
8731         (OBJS-libcommon): New.
8732         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
8733         (BACKEND): Add libcommon.a.
8734         (MOSTLYCLEANFILES): Likewise.
8735         (libcommon.a): New.
8736         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
8737         (cpp$(exeext)): Likewise.
8738         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
8739         pretty-print.o and input.o.
8740         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
8741         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
8742         (errors.o): Remove.
8743         (mips-tfile): Don't explicitly use version.o.
8744         (mips-tdump): Likewise.
8745         (gcov.o): Depend on $(DIAGNOSTIC_H).
8746         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
8747         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
8748         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
8749         * gcov-dump.c: Include intl.h and diagnostic.h.
8750         (main): Initialize diagnostics.
8751         * gcov.c: Include diagnostic.h.
8752         (fnotice): Remove.
8753         (main): Initialize diagnostics.
8754         * lto-wrapper.c: Include diagnostic.h.
8755         (main): Initialize diagnostics.
8756
8757 2011-05-20  Michael Matz  <matz@suse.de>
8758
8759         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
8760
8761 2011-05-20  Michael Matz  <matz@suse.de>
8762             Richard Guenther  <rguenther@suse.de>
8763
8764         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
8765         use lto_streamer_cache_append directly instead of returning a VEC.
8766         (preload_common_node): Remove.
8767         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
8768         track seen nodes.
8769         (lto_streamer_cache_create): Call lto_preload_common_nodes.
8770
8771 2011-05-20  Richard Guenther  <rguenther@suse.de>
8772
8773         PR tree-optimization/49079
8774         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
8775         MEM_REFs correctly for the trailing array access detection.
8776         Special case constants the same way as decls for overall size
8777         constraining.
8778
8779 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
8780
8781         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
8782         argument expansion.
8783
8784 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
8785
8786         PR tree-optimization/49073
8787         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
8788         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
8789         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
8790
8791 2011-05-20  Richard Guenther  <rguenther@suse.de>
8792
8793         PR middle-end/48849
8794         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
8795         of pointer types the same way the middle-end does.
8796
8797 2011-05-20  Richard Guenther  <rguenther@suse.de>
8798
8799         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
8800         or pointer-to chains.  Delay all fixup to uniquify_nodes.
8801
8802 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
8803
8804         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
8805         (fma4_fmaddsub): Likewise
8806
8807 2011-05-19  Jan Hubicka  <jh@suse.cz>
8808
8809         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
8810         (GIMPLE_TYPE_PAIR_SIZE): New macro.
8811         (type_pair_cache): New static var.
8812         (lookup_type_pair): Use fixed sized custom hash; make inline.
8813         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
8814         calls of lookup_type_pair.
8815         (print_gimple_types_stats): Remove cache stats.
8816         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
8817         and gtc_ob.
8818
8819 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
8820
8821         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
8822         when TARGET_RDRND is active.
8823         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
8824         Generate dummy SImode target register when target is NULL.
8825
8826 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
8827
8828         * config/arm/arm-fpus.def: New.
8829         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
8830         arm-fpus.def.
8831         * config/arm/arm-tables.opt: Regenerate.
8832         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
8833         (arm_option_override): Don't decode FPU name to string here.
8834         * config/arm/arm.opt (mfpu=): Use Enum.
8835         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
8836         Update dependencies.
8837
8838 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
8839
8840         * collect2.c: Include diagnostic.h.
8841         (fatal_perror, fatal, error, fancy_abort): Remove.
8842         (main): Set progname.  Call xmalloc_set_program_name and
8843         diagnostic_initialize.
8844         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
8845         scan_libraries, resolve_lib_name): Call fatal_error instead of
8846         fatal and fatal_perror.
8847         * collect2.h (error, fatal, fatal_perror): Don't declare.
8848         * tlink.c: Include diagnostic-core.h.
8849         (recompile_files): Call fatal_error instead of fatal_perror.
8850         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
8851         pretty-print.o and input.o.
8852         (collect2.o, tlink.o): Update dependencies.
8853
8854 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8855
8856         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
8857
8858 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8859
8860         PR target/40483
8861         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
8862         COMDAT group syntax, both SPARC and x86 variants.
8863         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
8864         * configure: Regenerate.
8865         * config/sol2.h (TARGET_SOLARIS): Define.
8866         (PUSHSECTION_FORMAT): Remove.
8867         (SECTION_NAME_FORMAT): Define.
8868         * config/sol2.c: Include hashtab.h.
8869         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
8870         expansion, using SECTION_NAME_FORMAT.
8871         (solaris_comdat_htab): New variable.
8872         (struct comdat_entry): Define.
8873         (comdat_hash): New function.
8874         (comdat_eq): New function.
8875         (solaris_elf_asm_comdat_section): New function.
8876         (solaris_define_comdat_signature): New function.
8877         (solaris_code_end): New function.
8878         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
8879         (solaris_code_end): Declare.
8880         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
8881         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
8882         solaris_code_end.
8883         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
8884         Remove ATTRIBUTE_UNUSED.
8885         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
8886         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
8887         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
8888         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
8889         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
8890         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
8891         (PUSHSECTION_FORMAT): Remove.
8892         (SECTION_NAME_FORMAT): Redefine.
8893
8894 2011-05-19  Kai Tietz  <ktietz@redhat.com>
8895
8896         * tree-cfg.c (verify_gimple_assign_binary): Barf on
8897         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
8898         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
8899
8900 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
8901             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8902
8903         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
8904
8905 2011-05-19  Richard Guenther  <rguenther@suse.de>
8906
8907         PR middle-end/48985
8908         * tree-object-size.c (addr_object_size): If the pointed-to
8909         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
8910
8911 2011-05-19  Richard Guenther  <rguenther@suse.de>
8912
8913         * gimple.c (gimple_types_compatible_p_1): Compare names of
8914         the types themselves.
8915         (iterative_hash_gimple_type): And hash them that way.
8916         (gimple_register_type_1): If we register a main variant properly
8917         initialize the leader to ourselves.
8918
8919 2011-05-19  Tom de Vries  <tom@codesourcery.com>
8920
8921         PR target/45098
8922         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
8923         get_loop_invariant_expr_id.
8924         (get_loop_invariant_expr_id): Use get_expr_id.
8925         (parm_decl_cost): New function.
8926         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
8927         Improve bound cost estimation.  Use different inv_expr_id for elim and
8928         express cases.
8929
8930 2011-05-19  Tom de Vries  <tom@codesourcery.com>
8931
8932         PR target/45098
8933         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
8934         cost_base.cost == 0.
8935
8936 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8937
8938         PR target/49002
8939         * config/i386/sse.md
8940         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
8941         load cast.
8942
8943 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
8944
8945         PR tree-optimization/49039
8946         * tree-vrp.c (extract_range_from_binary_expr): For
8947         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
8948         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
8949
8950 2011-05-18  Tom de Vries  <tom@codesourcery.com>
8951
8952         PR target/45098
8953         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
8954
8955 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
8956
8957         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
8958         (*tls_global_dynamic_64): Ditto.
8959         (*tls_local_dynamic_base_32_gnu): Ditto.
8960         (*tls_local_dynamic_base_64): Ditto.
8961         (tls_initial_exec_64_sun): Ditto.
8962
8963 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
8964
8965         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
8966         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
8967         bf592-none.
8968         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
8969         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
8970         * config/bfin/bfin.c (bfin_cpus): Add bf592.
8971         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8972         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
8973         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
8974         * config/bfin/elf.h (LIB_SPEC): Add bf592.
8975
8976 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
8977
8978         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
8979         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
8980         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
8981         target_thread_pointer, arm_structure_size_boundary, struct
8982         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
8983         struct abi_name, arm_all_abis): Remove.
8984         (arm_option_override) Don't process most enumerated option values here.
8985         Don't process target_fpe_name here.  Work with integer not string for
8986         structure size boundary; use separate diagnostics for each case.
8987         * config/arm/arm.h (enum float_abi_type, enum
8988         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
8989         to arm-opts.h.
8990         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
8991         arm_structure_size_boundary): Remove.
8992         * config/arm/arm.opt (mabi=): Use Enum and Init.
8993         (arm_abi_type): New Enum and EnumValue entries.
8994         (mfloat-abi=): Use Enum and Init.
8995         (float_abi_type): New Enum and EnumValue entries.
8996         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
8997         (mfp16-format=): Use Enum and Init.
8998         (arm_fp16_format_type): New Enum and EnumValue entries.
8999         (mstructure-size-boundary=): Use UInteger and Init.
9000         (mtp=): Use Enum and Init.
9001         (arm_tp_type): New Enum and EnumValue entries.
9002
9003 2011-05-18  Richard Guenther  <rguenther@suse.de>
9004
9005         PR tree-optimization/49018
9006         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
9007         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
9008         gimple_has_side_effects.
9009
9010 2011-05-18  Richard Guenther  <rguenther@suse.de>
9011
9012         * gimple.c (gimple_register_type_1): New function, split out from ...
9013         (gimple_register_type): ... here.  Avoid infinite recursion.
9014
9015 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
9016
9017         PR tree-optimization/41881
9018         * tree-vectorizer.h (struct _loop_vec_info): Add new field
9019         reduction_chains along with a macro for its access.
9020         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
9021         (destroy_loop_vec_info): Free reduction chains.
9022         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
9023         (vect_is_slp_reduction): New function.
9024         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
9025         (vect_create_epilog_for_reduction): Support SLP reduction chains.
9026         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
9027         definition types for reduction chains.
9028         (vect_supported_load_permutation_p): Don't allow permutations for
9029         reduction chains.
9030         (vect_analyze_slp_instance): Support reduction chains.
9031         (vect_analyze_slp): Try to build SLP instance from reduction chains.
9032         (vect_get_constant_vectors):  Handle reduction chains.
9033         (vect_schedule_slp_instance): Mark the first statement of the
9034         reduction chain as reduction.
9035
9036 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
9037
9038         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
9039         names for group elements access.
9040         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
9041         reduction chains as well.  Remove data reference and interleaving
9042         related words from the fields names.
9043         * tree-vect-loop.c (vect_transform_loop): Use new names for group
9044         elements access.
9045         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
9046         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
9047         vect_update_interleaving_chain, vect_same_range_drs,
9048         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
9049         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
9050         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
9051         vect_analyze_group_access, vect_analyze_data_ref_access,
9052         vect_create_data_ref_ptr, vect_transform_strided_load,
9053         vect_record_strided_load_vectors): Likewise.
9054         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
9055         vect_model_load_cost, vectorizable_store, vectorizable_load,
9056         vect_remove_stores, new_stmt_vec_info): Likewise.
9057         * tree-vect-slp.c (vect_build_slp_tree,
9058         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
9059
9060 2011-05-18  Richard Guenther  <rguenther@suse.de>
9061
9062         PR middle-end/48989
9063         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
9064         operand verification.
9065         (verify_gimple_assign_binary): Likewise.
9066         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
9067         to non-1-precision BOOLEAN_TYPEs.
9068
9069 2011-05-18  Tom de Vries  <tom@codesourcery.com>
9070
9071         PR target/45098
9072         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
9073
9074 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
9075
9076         PR tree-optimization/49000
9077         * tree-ssa.c (execute_update_addresses_taken): Call
9078         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
9079         be rewritten and decl has been marked for renaming, reset
9080         the debug stmt.
9081
9082 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
9083
9084         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
9085         enum_opts_set when testing if attributes have set -mfpmath=.
9086
9087 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
9088
9089         * config/mips/mips.c (mips_handle_option): Remove unused variable.
9090
9091 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
9092
9093         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
9094         info->entry with 0
9095         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
9096         id.transform_lang_insert_block with NULL.
9097
9098 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
9099
9100         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
9101         (output_fp_compare): Change args 3 and 4 to bool.
9102         (ix86_expand_call): Change arg 6 to bool.
9103         (ix86_attr_length_immediate_default): Change arg 2 to bool.
9104         (ix86_attr_length_vex_default): Change arg 3 to bool.
9105         * config/i386/i386.md: Update all uses.
9106         * config/i386/i386.c: Ditto.
9107         (ix86_flags_dependent): Change return type to bool.
9108
9109 2011-05-17  Richard Guenther  <rguenther@suse.de>
9110
9111         * gimple.c (type_hash_pair_compare): Fix comparison.
9112
9113 2011-05-17  Richard Guenther  <rguenther@suse.de>
9114
9115         * gimple.c (iterative_hash_gimple_type): Simplify singleton
9116         case some more, fix final hash value of the non-singleton case.
9117
9118 2011-05-17  Richard Guenther  <rguenther@suse.de>
9119
9120         PR bootstrap/49013
9121         Revert
9122         2011-05-16  Richard Guenther  <rguenther@suse.de>
9123
9124         * gimple.c (gimple_types_compatible_p_1): Use names of the
9125         type itself, not its main variant.
9126         (iterative_hash_gimple_type): Likewise.
9127
9128 2011-05-17  Richard Guenther  <rguenther@suse.de>
9129
9130         * gimple.c (gimple_register_canonical_type): Use the main-variant
9131         leader for computing the canonical type.
9132
9133 2011-05-17  Nick Clifton  <nickc@redhat.com>
9134
9135         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
9136         moves.
9137
9138         * config/rx/rx.md: Add peephole to remove redundant extensions
9139         after loads.
9140         (bitset_in_memory): Use rx_restricted_mem_operand.
9141         (bitinvert_in_memory): Likewise.
9142         (bitclr_in_memory): Likewise.
9143
9144 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
9145             Nick Clifton  <nickc@redhat.com>
9146
9147         * config/rx/rx.md: Add peepholes to match a register move followed
9148         by a comparison of the moved register.  Replace these with an
9149         addition of zero that does both actions in one instruction.
9150
9151 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
9152
9153         PR target/48986
9154         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
9155         predicate to allow CONST_INT.
9156         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
9157
9158 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
9159
9160         * opts-common.c (opt_enum_arg_to_value): New.
9161         * opts.h (opt_enum_arg_to_value): Declare.
9162         * config/i386/i386.opt (fpmath): Remove.
9163         (mfpmath=): Use Enum, Init and Save.
9164         (fpmath_unit): New Enum and EnumValue entries.
9165         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
9166         name for function fpmath state.
9167         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
9168         * config/i386/i386.c: Include diagnostic.h.
9169         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
9170         (ix86_target_string): Take enum fpmath_unit value instead of string.
9171         (ix86_debug_options): Update call to ix86_target_string.
9172         (ix86_option_override_internal): Don't process fpmath strings here.
9173         (x86_function_specific_save, ix86_function_specific_restore):
9174         Don't handle fpmath state specially.
9175         (ix86_function_specific_print): Pass fpmath state to
9176         ix86_target_string instead of printing in this function.
9177         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
9178         Handle enum attributes.
9179         (IX86_ATTR_ENUM, ix86_opt_enum): New.
9180         (ix86_valid_target_attribute_tree): Update option_strings
9181         handling.  Handle fpmath as enum option.
9182         (ix86_can_inline_p): Update field names for function fpmath state.
9183         (ix86_expand_builtin): Update call to ix86_target_string.
9184         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
9185         (ix86_fpmath): Remove.
9186         * config/i386/t-i386 (i386.o): Update dependencies.
9187
9188 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
9189
9190         PR preprocessor/48677
9191         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
9192         from decoded_options[0], not from itself.
9193
9194 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
9195
9196         * config/i386/constraints.md (z): New constraint.
9197         * config/i386/i386.c (c): New mode attribute.
9198         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
9199         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
9200         constraint for operand 0.
9201         (*call_vzeroupper): Ditto.
9202         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
9203         (*call_rex64_ms_sysv_vzeroupper): Ditto.
9204         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
9205         Use "lzm" constraint for operand 0.
9206         (*call_pop_vzeroupper): Ditto.
9207         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
9208         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
9209         constraint for operand 0.
9210         (*sibcall_vzeroupper): Ditto.
9211         (*sibcall_rex64_ms_sysv): Ditto.
9212         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
9213         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
9214         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
9215         (*sibcall_pop_vzeroupper): Ditto.
9216         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
9217         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
9218         mode iterator.  Use "<c>zm" constraint for operand 1.
9219         (*call_value_vzeroupper): Ditto.
9220         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
9221         for operand 1.
9222         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
9223         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
9224         *call_value_pop_1.  Use "lzm" constraint for operand 1.
9225         (*call_value_pop_vzeroupper): Ditto.
9226         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
9227         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
9228         mode iterator.  Use "Uz" constraint for operand 1.
9229         (*sibcall_value_vzeroupper): Ditto.
9230         (*sibcall_value_rex64_ms_sysv): Ditto.
9231         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
9232         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
9233         constraint for operand 1.
9234         (*sibcall_value_pop_vzeroupper): Ditto.
9235         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
9236         and "z" constraint for operand 2.
9237         (*tls_global_dynamic_32_gnu): Ditto.
9238         (*tls_local_dynamic_base_32_gnu): Ditto.
9239         (*tls_local_dynamic_base_64): Ditto.
9240         (*tls_local_dynamic_32_once): Ditto.
9241         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
9242         Update all callers.
9243         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
9244
9245 2011-05-16  Richard Guenther  <rguenther@suse.de>
9246
9247         * gimple.c (gimple_types_compatible_p_1): Use names of the
9248         type itself, not its main variant.
9249         (iterative_hash_gimple_type): Likewise.
9250
9251 2011-05-16  Richard Guenther  <rguenther@suse.de>
9252
9253         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
9254         always visit pointer target and function result and argument types.
9255
9256 2011-05-16  Jason Merrill  <jason@redhat.com>
9257
9258         PR c++/48999
9259         * tree-inline.c (copy_statement_list): Put back recursion.
9260
9261 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
9262
9263         PR target/27663
9264         PR target/41076
9265         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
9266         * config/avr/avr.md ("*ior<mode>qi.byte0",
9267         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
9268
9269 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
9270
9271         PR target/45099
9272         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
9273         register is needed for a function argument.
9274
9275 2011-05-16  Richard Guenther  <rguenther@suse.de>
9276
9277         * gimple.c (struct type_hash_pair): New type.
9278         (type_hash_pair_compare): New function.
9279         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
9280
9281 2011-05-16  Revital Eres  <revital.eres@linaro.org>
9282
9283         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
9284
9285 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
9286
9287         * config/i386/i386.md (floating point move splitters): Fix
9288         usage of standard_80387_constant_p.
9289         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
9290
9291 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
9292
9293         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
9294
9295 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9296
9297         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
9298         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
9299         (tree_ssa_lim_finalize): Likewise.
9300
9301 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
9302
9303         * config/i386/constraint.md (Yd, Yx): New register constraints.
9304         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
9305         Yd conditional register constraint.
9306         (*movtf_internal): Use standard_sse_constant_opcode.
9307         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
9308         Yx conditional register constraint.
9309         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
9310         Yd conditional register constraint.  Use standard_sse_constant_p to
9311         check for valid SSE constants and call standard_sse_constant_opcode to
9312         output SSE insn.
9313         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
9314         constants and call standard_sse_constant_opcode to output SSE insn.
9315         * config/i386/i386.c (ix86_option_ovverride_internal): Set
9316         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
9317         optimize_size is set.
9318         (standard_sse_constant_opcode): Output conditional AVX insn templates.
9319
9320 2011-05-14  Tobias Burnus  <burnus@net-b.de>
9321
9322         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
9323
9324 2011-05-13  Martin Jambor  <mjambor@suse.cz>
9325
9326         * ipa-prop.c (ipa_cst_from_jfunc): New function.
9327         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
9328         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
9329         (evaluate_conditions_for_ipcp_clone): Removed.
9330         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
9331         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
9332         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
9333
9334 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
9335
9336         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
9337         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
9338         lieu of MAY_HAVE_DEBUG_STMTS.
9339         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
9340         debug statements if !MAY_HAVE_DEBUG_STMTS.
9341
9342 2011-05-13  Martin Thuresson  <martint@google.com>
9343
9344         PR gcov-profile/47793
9345         * libgcov.c (gcov_exit): Support relative profile paths.
9346         * doc/invoke.texi (-fprofile-dir): Update for above change.
9347
9348 2011-05-13  Richard Guenther  <rguenther@suse.de>
9349
9350         * gimple.c (gimple_canonical_types_compatible_p): Do not use
9351         type-pair caching, do not compare hashes.
9352
9353 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
9354
9355         PR middle-end/48965
9356         * tree-cfg.c (edge_to_cases_cleanup): Return true.
9357         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
9358
9359 2011-05-13  Kai Tietz  <ktietz@redhat.com>
9360
9361         * gimplify.c (gimplify_expr): Make sure operand is boolified.
9362         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
9363         compatible type for TRUTH_NOT_EXPR.
9364
9365 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
9366
9367         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
9368         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
9369         can_create_pseudo_p ().
9370
9371 2011-05-13  Richard Guenther  <rguenther@suse.de>
9372
9373         PR lto/48978
9374         * gimple.c (iterative_hash_gimple_type): Revert change in
9375         pointer target and function result and argument hashing.
9376
9377 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
9378
9379         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
9380         (*movxf_internal_nointeger): Ditto.
9381         (*movdf_internal_rex64): Ditto.
9382         (*movdf_internal): Ditto.
9383         (*movdf_internal_nointeger): Ditto.
9384         (*movsf_internal): Ditto.
9385         (sincos splitters): Use can_create_pseudo ().
9386
9387 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
9388
9389         * config/i386/i386-opts.h: New.
9390         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
9391         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
9392         ix86_section_threshold): Remove.
9393         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
9394         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
9395         OPT_mbranch_cost_.
9396         (ix86_option_override_internal): Don't decode strings for options
9397         other than -march=, -mtune= and -mfpmath=.  Don't allow for
9398         __attribute__ uses in remaining diagnostics for options with
9399         string arguments.  Don't check for integer arguments being negative.
9400         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
9401         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
9402         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
9403         ix86_branch_cost, ix86_section_threshold): Remove.
9404         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
9405         HeaderInclude.
9406         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
9407         but not Var.
9408         (masm=): Use Enum and Init.
9409         (asm_dialect): New Enum and EnumValue entries.
9410         (mbranch-cost=): Use UInteger.
9411         (mlarge-data-threshold=): Use UInteger and Init.
9412         (mcmodel=): Use Enum and Init.
9413         (cmodel): New Enum and EnumValue entries.
9414         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
9415         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
9416         mregparm=): Use UInteger.
9417         (mstringop-strategy=): Use Enum and Init.
9418         (stringop_alg): New Enum and EnumValue entries.
9419         (mtls-dialect=): Use Enum and Init.
9420         (tls_dialect): New Enum and EnumValue entries.
9421         (mabi=): Use Enum and Init.
9422         (calling_abi): New Enum and EnumValue entries.
9423         (mveclibabi=): Use Enum and Init.
9424         (ix86_veclibabi): New Enum and EnumValue entries.
9425
9426 2011-05-13  Nick Clifton  <nickc@redhat.com>
9427
9428         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
9429         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
9430
9431 2011-05-13  Kai Tietz  <ktietz@redhat.com>
9432
9433         PR middle-end/48984
9434         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
9435         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
9436         (gimple_boolify): Check for cast for boolean_type_node instead for
9437         BOOLEAN_TYPE.
9438
9439 2011-05-13  Richard Guenther  <rguenther@suse.de>
9440
9441         PR tree-optimization/48172
9442         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
9443         multiplying by number of iterations for equal step.
9444         (vect_create_cond_for_alias_checks): Likewise.
9445
9446 2011-05-13  Andreas Schwab  <schwab@redhat.com>
9447
9448         * configure.ac: Use AS_HELP_STRING throughout.
9449         * configure: Regenerate.
9450
9451 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
9452
9453         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
9454         (ix86_emit_restore_regs_using_mov): Likewise.
9455         (ix86_emit_restore_sse_regs_using_mov): Likewise.
9456
9457 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
9458
9459         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
9460         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
9461         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
9462         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
9463         RTX_OK_FOR_OLO10_P): ...here.
9464         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
9465         SYMBOLIC_CONST.
9466
9467 2011-05-12  Kai Tietz  <ktietz@redhat.com>
9468
9469         * gimplify.c (gimple_boolify): Re-boolify expression
9470         arguments even if expression type is of kind BOOLEAN_TYPE.
9471         (gimplify_boolean_expr): Removed.
9472         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
9473         and XOR. Additional take care that we keep expression's type.
9474         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
9475         of TRUTH_AND|OR|XOR_EXPR.
9476
9477 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
9478
9479         PR tree-optimization/48975
9480         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
9481         on all bbs here and free and clear ifc_bbs at the end.
9482
9483 2011-05-12  Richard Guenther  <rguenther@suse.de>
9484
9485         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
9486         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
9487         until after simple checks.
9488         (gimple_types_compatible_p): Likewise.
9489         (iterative_hash_gimple_type): Always hash pointer targets
9490         and function return and argument types.
9491         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
9492         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
9493         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
9494         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
9495         completely in the simple compare section.
9496         (gimple_register_canonical_type): Query the cache again after
9497         registering.
9498
9499 2011-05-12  Richard Guenther  <rguenther@suse.de>
9500
9501         PR tree-optimization/48172
9502         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
9503         the number of iterations from the segment size calculation.
9504         (vect_create_cond_for_alias_checks): Adjust.
9505
9506 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
9507
9508         PR debug/48967
9509         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
9510         if validate_subreg fails.
9511
9512 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
9513
9514         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
9515         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
9516         early.
9517
9518 2011-05-12  DJ Delorie  <dj@redhat.com>
9519
9520         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
9521         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
9522         created builtin into rx_builtins array.
9523         (rx_builtin_decl): New function.
9524         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
9525
9526 2011-05-12  DJ Delorie  <dj@redhat.com>
9527             Nick Clifton  <nickc@redhat.com>
9528
9529         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
9530         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
9531         (rx_is_legitimate_address): Add pre-decrement and post-increment
9532         addressing in HImode and QImode.  Fix test for out of range
9533         REG+INT addressing.
9534         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
9535         (rx_align_for_label): Test label before extracting its usage count.
9536         (rx_adjust_insn_lengths): Fix selection of insn codes.
9537         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
9538
9539 2011-05-11  Jason Merrill  <jason@redhat.com>
9540
9541         * tree.c (type_hash_canon): Use struct tree_type_non_common.
9542
9543 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
9544
9545         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
9546         reindent the subsequent block.
9547
9548 2011-05-11  Satoru Takabayashi  <satorux@google.com>
9549             Paul Pluzhnikov  <ppluzhnikov@google.com>
9550
9551         * doc/install.texi (Configuration): Document --with-linker-hash-style.
9552         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
9553         * config.in: Add LINKER_HASH_STYLE.
9554         * configure.ac: Add --with-linker-hash-style.
9555         * configure: Regenerate.
9556
9557 2011-05-11  Richard Guenther  <rguenther@suse.de>
9558
9559         PR middle-end/48964
9560         * gimple.c (iterative_hash_canonical_type): Fix typo.
9561
9562 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
9563
9564         * config/i386/i386.c (legitimize_tls_address)
9565         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
9566         expanders directly for TARGET_GNU2_TLS.  Determine pic and
9567         __tls_get_addr symbol reference here.  Update call to
9568         gen_tls_global_dynamic_{32,64} for added arguments.
9569         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
9570         expanders directly for TARGET_GNU2_TLS.  Determine
9571         __tls_get_addr symbol reference here.  Update call to
9572         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
9573         unique UNSPEC REG_EQUIV to libcall block.
9574         (ix86_tls_get_addr): Declare static.
9575         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
9576         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
9577         Do not determine pic and __tls_get_addr symbol reference here. Do not
9578         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
9579         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
9580         (tls_global_dynamic_64): Add operand 2.  Do not determine
9581         __tls_get_addr symbol reference here.  Do not call
9582         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
9583         (tls_local_dynamic_base64): Ditto for operand 1.
9584
9585 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
9586
9587         * function.c (expand_function_start): Initialize stack_check_probe_note
9588         only if the generic stack checking mechanism is used.
9589
9590 2011-05-11  Richard Guenther  <rguenther@suse.de>
9591
9592         PR tree-optimization/15256
9593         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
9594         (A & B) | C, combine (A op CST1) op CST2.
9595         (tree_ssa_forward_propagate_single_use_vars): Only bother to
9596         visit assigns that have uses.
9597
9598 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
9599
9600         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
9601         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
9602         (unpack_ts_type_common_value_fields): ...this.  Update comment.
9603         (unpack_value_fields): Adjust for renaming.
9604         (lto_input_ts_type_tree_pointers): Split into...
9605         (lto_input_ts_type_common_tree_pointer): ...this and...
9606         (lto_input_ts_type_non_common_tree_pointers): ...this.
9607         (lto_input_tree_pointers): Adjust for above split.
9608         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
9609         (pack_ts_type_common_value_fields): ...this.  Update comment.
9610         (lto_output_ts_type_tree_pointers): Split into...
9611         (lto_output_ts_type_common_tree_pointers): ...this and...
9612         (lto_output_ts_type_non_common_tree_pointers): ...this.
9613         (lto_output_tree_pointers): Adjust for above split.
9614         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
9615         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
9616         * stor-layout.c (vector_type_mode): Adjust location of mode field.
9617         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
9618         Define.
9619         (struct tree_type): Split into...
9620         (struct tree_type_common: ...this and...
9621         (struct tree_type_with_lang_specific): ...this and...
9622         (struct tree_type_non_common): ...this.  Adjust accessor macros
9623         accordingly.
9624         (TYPE_VALUES_RAW): Define.
9625         (union tree_node): Update for above changes.
9626         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
9627         TS_TYPE_NON_COMMON.
9628         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
9629         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
9630         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
9631         * treestructu.def (TS_TYPE): Remove.
9632         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
9633         Define.
9634
9635 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
9636
9637         PR debug/48159
9638         * tree-ssa.c (reset_debug_uses): New function.
9639         * tree-flow.h (reset_debug_uses): New prototype.
9640         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
9641         * tree-loop-distribution.c (generate_loops_for_partition): Call
9642         reset_debug_uses on the stmts that will be removed.  Keep around
9643         all debug stmts, don't count them as bits in partition bitmap.
9644         (generate_builtin): Don't count debug stmts or labels as bits in
9645         partition bitmap.
9646
9647 2011-05-11  Richard Guenther  <rguenther@suse.de>
9648
9649         * gimple.c (gimple_type_hash_1): Merge with ...
9650         (gimple_type_hash): ... this.
9651         (gtc_visit): Remove mode parameter and simplify accordingly.
9652         (gimple_types_compatible_p_1): Likewise.
9653         (gimple_types_compatible_p): Likewise.
9654         (iterative_hash_gimple_type): Likewise.
9655         (visit): Likewise.
9656         (gimple_type_eq): Adjust.
9657
9658 2011-05-11  Revital Eres  <revital.eres@linaro.org>
9659
9660         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
9661         enters the branch create an anti edge in the opposite direction
9662         to prevent the creation of reg-moves.
9663         * modulo-sched.c: Adjust comment to reflect the fact we are
9664         scheduling closing branch.
9665         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
9666         (stage_count): New field in struct partial_schedule.
9667         (calculate_stage_count): New function.
9668         (normalize_sched_times): Rename to reset_sched_times and handle
9669         incrementing the sched time of the nodes by a constant value
9670         passed as parameter.
9671         (duplicate_insns_of_cycles): Skip closing branch.
9672         (sms_schedule_by_order): Schedule closing branch.
9673         (ps_insn_find_column): Handle closing branch.
9674         (sms_schedule): Call reset_sched_times and adjust the code to
9675         support scheduling of the closing branch.
9676         (ps_insert_empty_row): Update calls to normalize_sched_times
9677         and rotate_partial_schedule functions.
9678
9679 2011-05-11  Richard Guenther  <rguenther@suse.de>
9680
9681         PR middle-end/48953
9682         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
9683
9684 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
9685
9686         * opts.c (finish_options): Move warning settings from process_options.
9687         * toplev.c (process_options): Move warning settings to finish_options.
9688
9689 2011-05-11  Richard Guenther  <rguenther@suse.de>
9690
9691         PR tree-optimization/18041
9692         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
9693         (simplify_bitwise_binary): ... this.  Handle operand conversions
9694         by applying them to the result instead.
9695         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
9696
9697 2011-05-11  Richard Guenther  <rguenther@suse.de>
9698
9699         * gimple.c (gimple_canonical_types_compatible_p): Split out
9700         from gimple_types_compatible_p and friends.  Do not recurse
9701         to pointed-to types.
9702         (gimple_canonical_type_eq): Use it.
9703         (iterative_hash_canonical_type): Split out from
9704         iterative_hash_gimple_type and friends.  Do not recurse
9705         to pointed-to types.
9706         (gimple_canonical_type_hash): Use it, allocate the hash here.
9707
9708 2011-05-11  Revital Eres  <revital.eres@linaro.org>
9709
9710         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
9711         recognizing doloop.
9712
9713 2011-05-11  Revital Eres  <revital.eres@linaro.org>
9714
9715         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
9716         instead of PREV_INSN.
9717
9718 2011-05-11  Revital Eres  <revital.eres@linaro.org>
9719
9720         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
9721         * loop-doloop.c (doloop_condition_get): Likewise.
9722         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
9723         (doloop_end): New.
9724         * config/arm/arm.md (*addsi3_compare0): Remove "*".
9725
9726 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
9727
9728         * tree.def (CASE_LABEL_EXPR): Add an operand.
9729         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
9730
9731 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9732
9733         * c-decl.c (c_override_global_bindings_to_false): Remove.
9734         (global_bindings_p): Don't check
9735         c_override_global_bindings_to_false.
9736         * c-tree.h (c_override_global_bindings_to_false): Remove.
9737         * c-typeck.c (composite_type): Don't set
9738         c_override_global_bindings_to_false.
9739
9740 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
9741
9742         PR target/48857, 48495
9743         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
9744         (VSX_MODE): Ditto.
9745         (VSX_MOVE_MODE): Ditto.
9746         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
9747         VSX vector types.  Add V2DImode.
9748         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
9749         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
9750         (MODES_TIEABLE_P): Ditto.
9751
9752         * config/rs6000/rs6000.c (rs6000_emit_move): Use
9753         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
9754         VSX_VECTOR_MODE.
9755         (init_cumulative_args): Ditto.
9756         (rs6000_function_arg_boundary): Ditto.
9757         (rs6000_function_arg_advance_1): Ditto.
9758         (rs6000_function_arg): Ditto.
9759         (rs6000_function_ok_for_sibcall): Ditto.
9760         (emit_frame_save): Ditto.
9761         (rs6000_function_value): Ditto.
9762         (rs6000_libcall_value): Ditto.
9763
9764 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9765
9766         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9767         i386/darwin-lib.h to $libgcc_tm_file.
9768         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
9769
9770 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9771
9772         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
9773
9774 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9775
9776         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
9777         * config/rs6000/rs6000-tables.opt: New file (generated).
9778         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
9779         rs6000/rs6000-tables.opt to extra_options.
9780         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
9781         * config/rs6000/rs6000.c (rs6000_select): Remove.
9782         (processor_target_table): Move contents to rs6000-cpus.def.
9783         (darwin_rs6000_override_options): Check
9784         global_options_set.x_rs6000_cpu_index instead of
9785         rs6000_select[1].string.
9786         (rs6000_option_override_internal): Likewise.
9787         (rs6000_handle_option): Don't assert that global structures are in
9788         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
9789         (rs6000_default_cpu): New variable.
9790         (rs6000_file_start): Set it instead of local default_cpu.  Check
9791         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
9792         global_options_set.x_rs6000_tune_index instead of rs6000_select.
9793         (rs6000_darwin_file_start): Check rs6000_default_cpu and
9794         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
9795         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
9796         rs6000_select): Remove.
9797         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
9798         Remove.
9799         (mcpu=, mtune=): Use Var, Init, Enum and Save.
9800         * config/rs6000/t-rs6000
9801         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
9802         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9803         global_options_set.x_rs6000_cpu_index instead of
9804         rs6000_select[1].string.
9805         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9806         global_options_set.x_rs6000_cpu_index instead of
9807         rs6000_select[1].string.
9808
9809 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9810
9811         * config.gcc (libgcc_tm_file): Define instead of including files
9812         from ../../libgcc/config/ in tm_file.
9813         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
9814         * configure: Regenerate.
9815         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
9816         libgcc_tm.h, cs-libgcc_tm.h): New.
9817         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
9818         (clean): Remove libgcc_tm.h.
9819         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
9820         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
9821         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
9822
9823 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
9824
9825         PR target/48896
9826         * config/avr/avr.c (avr_ret_register): Return unsigned int
9827         instead of int.
9828         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
9829         it to avr_libcall_value.
9830         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
9831         expand_expr.
9832         (avr_expand_binop_builtin): Ditto.
9833         (avr_expand_unop_builtin): Ditto.
9834
9835 2011-05-10  DJ Delorie  <dj@redhat.com>
9836
9837         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
9838         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
9839         * config/rx/rx.c (rx_align_for_label): Add label and
9840         uses_threshold parameters.  Do not align when the label is not
9841         used enough.
9842         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
9843
9844 2011-05-10  Richard Guenther  <rguenther@suse.de>
9845
9846         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
9847         a series of conversions and apply foldings similar to what
9848         fold-const does.
9849         (tree_ssa_forward_propagate_single_use_vars): Call it.
9850
9851 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
9852
9853         PR tree-optimization/48611
9854         PR tree-optimization/48794
9855         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
9856         referenced from RESX or EH_DISPATCH arguments.
9857
9858         PR debug/48928
9859         * dfp.c (decimal_to_decnumber): Handle conversion from
9860         dconst{1,2,m1,half}.
9861
9862 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9863
9864         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
9865         for !flag_prefer_avx128.
9866         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
9867
9868 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
9869
9870         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
9871         (fold_ternary_loc): Use expr_location_or.
9872
9873 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9874
9875         PR debug/48853
9876         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
9877         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
9878         Pmode and mem_mode is not VOIDmode.
9879
9880 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
9881
9882         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
9883         TYPE_QUAL_RESTRICT): Convert to enum.
9884
9885 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9886
9887         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
9888         (const_pow2_1_to_8_operand): Ditto.
9889         (const_pow2_1_to_128_operand): Ditto.
9890         (const_pow2_1_to_32768_operand): Ditto.
9891         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
9892         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
9893         in insn constraint to check integer value of operand 3.
9894         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
9895
9896         (PINSR_MODE): New mode iterator.
9897         (sse2p4_1): New mode attribute.
9898         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
9899         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
9900         iterator.  Use const_int_operand instead of
9901         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
9902         exact_log2 in insn constraint to check integer value of operand 3.
9903
9904 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9905
9906         * config/i386/sse.md (blendbits): Remove mode attribute.
9907         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9908         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9909         Check integer value of operand 3 in insn constraint.
9910
9911 2011-05-09  Richard Guenther  <rguenther@suse.de>
9912
9913         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
9914         for diagnostics.
9915         (lto_symtab_merge): Likewise.  Do not register types here.
9916         (lto_symtab_merge_decls_2): Likewise.
9917         (lto_symtab_merge_decls_1): Likewise.
9918         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
9919         * gimple.c (enum gtc_mode): Declare.
9920         (gimple_types_compatible_p): Make static.
9921
9922 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9923
9924         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
9925         temporary register to match Pmode.
9926
9927 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9928
9929         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
9930         and *vec_concatv4si_1_avx.
9931
9932 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9933
9934         PR rtl-optimization/48927
9935         * ira-conflicts.c (commutative_constraint_p): Use
9936         recog_data.alternative_enabled_p to disable alternatives where
9937         "enabled" attribute is false.
9938         (get_dup_num): Ditto.
9939         * ira-lives.c (single_reg_class): Ditto.
9940         (ira_implicitly_set_insn_hard_regs): Ditto.
9941
9942 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
9943
9944         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
9945         (dataflow_set_preserve_mem_locs): Likewise.
9946
9947 2011-05-09  Philipp Thomas  <pth@suse.de>
9948
9949         * config/mep/mep.c (mep_validate_vliw): Syntax description
9950         should not be translated.
9951
9952 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
9953
9954         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
9955         * config/mips/mips-tables.opt: New file (generated).
9956         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
9957         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
9958         MIPS_ARCH_OPTION_NATIVE): Define.
9959         * config/mips/mips.c (mips_cpu_info_table): Move contents to
9960         mips-cpus.def.
9961         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
9962         mips_parse_cpu): Remove.
9963         (mips_cpu_info_from_opt, mips_default_arch): New.
9964         (mips_handle_option): Don't assert that global structures are in
9965         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
9966         (mips_option_override): Use new variables and functions to set
9967         state of these options.  Use strcmp to check for individual CPU names.
9968         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
9969         definition.
9970         * config/mips/mips.opt (march=): Use ToLower and Enum.
9971         (mips): Use ToLower, Enum and Var.
9972         (mtune=): Use ToLower and Enum.
9973         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
9974
9975 2011-05-08  Jan Hubicka  <jh@suse.cz>
9976
9977         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
9978         Arrange type pairs to be UID ordered.
9979         (gimple_lookup_type_leader): Make inline.
9980
9981 2011-05-09  Nick Clifton  <nickc@redhat.com>
9982
9983         PR target/48899
9984         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
9985         PROCESSOR_DEFAULT.
9986
9987         PR target/48897
9988         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
9989         variable 's'.
9990
9991 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
9992
9993         * combine.c (simplify_comparison): Abstract out parts into...
9994         (simplify_compare_const): ... new function.
9995         (try_combine): Generalize parallel arithmetic/compare combining
9996         to call simplify_compare_const() and CANONICALIZE_COMPARE().
9997
9998 2011-05-08  Jan Hubicka  <jh@suse.cz>
9999
10000         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
10001         (cgraph_create_virtual_clone): Call hooks once virtual clone
10002         is finished.
10003         * cgraph.h (cgraph_clone_node): Update prototype.
10004         * ipa-cp.c (ipcp_estimate_growth): Use
10005         estimate_ipcp_clone_size_and_time.
10006         * ipa-inline-transform.c (clone_inlined_nodes): Update.
10007         * lto-cgraph.c (input_node): Update.
10008         * ipa-inline.c (recursive_inlining): Update.
10009         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
10010         (evaluate_conditions_for_known_args): Break out from ...
10011         (evaluate_conditions_for_edge): ... here.
10012         (evaluate_conditions_for_ipcp_clone): New function.
10013         (inline_node_duplication_hook): Update clone summary based
10014         on parameter map.
10015         (estimate_callee_size_and_time): Rename to ...
10016         (estimate_node_size_and_time): take NODE instead of EDGE;
10017         take POSSIBLE_TRUTHS as argument.
10018         (estimate_callee_size_and_time): Update.
10019         (estimate_ipcp_clone_size_and_time): New function.
10020         (do_estimate_edge_time): Update.
10021
10022 2011-05-08  Richard Guenther  <rguenther@suse.de>
10023
10024         PR middle-end/48908
10025         PR middle-end/48905
10026         * expmed.c (expand_shift_1): Compute adjusted constant shift
10027         amount manually.
10028
10029 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
10030
10031         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
10032
10033 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
10034
10035         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
10036
10037 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
10038
10039         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
10040
10041 2011-05-07  Jan Hubicka  <jh@suse.cz>
10042
10043         * ipa-inline-transform.c (inline_call): Account when program size
10044         decreases.
10045         * ipa-inline.c (relative_time_benefit): New function.
10046         (edge_badness): Reorganize to be power 2 based; fix thinko when
10047         computing badness for negative growth; update comments to match
10048         reality; better dumps.
10049
10050 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
10051
10052         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
10053         type to bool and adjust comment.
10054         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
10055         (fold_mathfn_compare): Remove calls to global_bindings_p.
10056         (fold_inf_compare): Likewise.
10057         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
10058         * c-tree.h (global_bindings_p): Adjust prototype.
10059         * c-decl.c (global_bindings_p): Return bool and simplify.
10060
10061 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
10062
10063         PR tree-optimization/48837
10064         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
10065         when accumulator transformation is performed.
10066
10067 2011-05-06  Jan Hubicka  <jh@suse.cz>
10068
10069         * i386.h (ix86_tune_indices): Add
10070         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
10071         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
10072         * i386.c (initial_ix86_tune_features): Add
10073         X86_SOFTARE_PREFETCHING_BENEFICIAL.
10074         (software_prefetching_beneficial_p): Remove predicate.
10075         (ix86_option_override_internal): Use new macro.
10076
10077 2011-05-06  Jan Hubicka  <jh@suse.cz>
10078
10079         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
10080
10081 2011-05-06  Jan Hubicka  <jh@suse.cz>
10082
10083         * cgraph.c (cgraph_add_thunk): Create real function node instead
10084         of alias node; finalize it and mark needed/reachale; arrange visibility
10085         to be right and add it into the corresponding same comdat group list.
10086         (dump_cgraph_node): Dump thunks.
10087         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
10088         cgraph_function_with_gimple_body_p,
10089         cgraph_first_function_with_gimple_body,
10090         cgraph_next_function_with_gimple_body): New functions.
10091         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
10092         New macros.
10093         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
10094         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
10095         * cgraphunit.c (cgraph_finalize_function): Only look into possible
10096         devirtualization when optimizing.
10097         (verify_cgraph_node): Verify thunks.
10098         (cgraph_analyze_function): Analyze thunks.
10099         (cgraph_mark_functions_to_output): Output thunks only in combination
10100         with function they are assigned to.
10101         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
10102         alias into normal node.
10103         (assemble_thunks): New functoin.
10104         (cgraph_expand_function): Use it.
10105         * lto-cgraph.c (lto_output_node): Stream thunks.
10106         (input_overwrite_node): Stream in thunks.
10107         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
10108         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
10109         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
10110         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
10111         (inline_analyze_function): Do not care about thunk jump functions.
10112         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
10113         * ipa-prop.c (ipa_prop_write_jump_functions): Use
10114         cgraph_function_with_gimple_body_p.
10115         * passes.c (do_per_function_toporder): Use
10116         cgraph_function_with_gimple_body_p.
10117         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
10118         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
10119         (function_called_by_processed_nodes_p): Likewise.
10120
10121 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
10122
10123         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
10124         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
10125         entries.
10126         (mabi=): Replace with separate entries for mabi=altivec,
10127         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
10128         mabi=ieeelongdouble and mabi=ibmlongdouble.
10129         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
10130         check for -mabi=spe without SPE ABI support here.
10131         (rs6000_handle_option): Replace OPT_mabi_ handling with
10132         OPT_mabi_altivec and OPT_mabi_spe handling.
10133
10134 2011-05-06  Cary Coutant  <ccoutant@google.com>
10135
10136         * dwarf2out.c (contains_subprogram_definition): New function.
10137         (should_move_die_to_comdat): Call it.
10138
10139 2011-05-06  Jeff Law  <law@redhat.com>
10140
10141         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
10142         remove_ctrl_stmt_and_useless_edges.
10143         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
10144         (fixup_template_block, thread_single_edge): Likewise.
10145         (mark_threaded_blocks): Use THREAD_TARGET.
10146
10147 2011-05-06  Alan Modra  <amodra@gmail.com>
10148
10149         PR target/48900
10150         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
10151         const0_rtx as the arg to the dummy __tls_get_addr libcall.
10152
10153 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
10154
10155         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
10156         constraint modifier to "r".
10157
10158 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
10159
10160         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
10161         fall through for OPT_mcmodel_.
10162
10163 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10164
10165         * config/s390/s390.c (s390_asm_trampoline_template): Comment
10166         instruction sizes.
10167         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
10168
10169 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10170
10171         PR target/47930
10172         * config/arm/arm.opt (marm): Document it.
10173         (mthumb): Reject negative variant.
10174
10175 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
10176
10177         PR target/48898
10178         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10179         Fix typo in "ccvt" variable name.
10180
10181 2011-05-06  Tristan Gingold  <gingold@adacore.com>
10182
10183         PR target/48895
10184         * config/vms/vms-ar.c (main): Remove cwd variable.
10185
10186 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
10187
10188         PR debug/48902
10189         * var-tracking.c (prepare_call_arguments): Move else before #endif.
10190
10191 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
10192
10193         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
10194         * gimplify.c (gimplify_switch_expr): Likewise.
10195         * omp-low.c (expand_omp_sections): Likewise.
10196         * tree-eh.c (lower_try_finally_switch): Likewise.
10197         (lower_eh_dispatch): Likewise.
10198         * tree.h (build_case_label): Declare.
10199         * tree.c (build_case_label): Define.
10200
10201 2011-05-05  Jason Merrill  <jason@redhat.com>
10202
10203         PR c++/40975
10204         * tree-inline.c (copy_tree_r): Use copy_statement_list.
10205         (copy_statement_list): Don't recurse.
10206         * stor-layout.c (copy_self_referential_tree_r): Don't allow
10207         STATEMENT_LIST.
10208
10209 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
10210
10211         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
10212         through from -mfpu= handling.
10213         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
10214
10215 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
10216
10217         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
10218         POST_MODIFY.
10219
10220 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
10221
10222         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
10223         for 11.31.
10224         (hppa[12]*-*-hpux11*): Ditto.
10225         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
10226         * config/ia64/hpux-unix2003.h: New.
10227         * config/pa/pa-hpux1131.opt: New.
10228         * config/pa/pa-hpux1131.h: New.
10229         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
10230         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
10231         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
10232
10233 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
10234
10235         PR debug/48853
10236         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
10237         instead of mode as 3rd argument to recursive call.
10238         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
10239         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
10240         VOIDmode.
10241         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
10242         don't give up if mode is Pmode and mem_mode is not VOIDmode.
10243         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
10244         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
10245
10246 2011-05-05  Julian Brown  <julian@codesourcery.com>
10247
10248         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
10249         parenthesis in D-register case.
10250
10251 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
10252
10253         * opt-functions.awk (var_type_struct): Handle Enum options.
10254         * optc-gen.awk: Don't check range of variables of character type.
10255         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
10256         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
10257         rs6000_sdata_name, rs6000_explicit_options): Remove.
10258         (rs6000_option_override_internal): Check for -malign-power here.
10259         Use global_options_set instead of rs6000_explicit_options.
10260         (rs6000_parse_fpu_option): Remove.
10261         (rs6000_handle_option): Access variables via opts and opts_set
10262         pointers.  Use error_at and warning_at.  Add fall-through
10263         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
10264         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
10265         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
10266         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
10267         here.  Don't use rs6000_parse_fpu_option.
10268         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
10269         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
10270         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
10271         (mrecip=): Use Var.
10272         (mspe): Use Var and Save.
10273         (mtraceback=): Use Enum and Var.
10274         (rs6000_traceback_type): New Enum and EnumValue entries.
10275         (mfloat-gprs=): Use Enum, Var and Save.
10276         (rs6000_float_gprs): New Enum and EnumValue entries.
10277         (mlong-double-): use Var and Save.
10278         (msched-costly-dep=, minsert-sched-nops=): Use Var.
10279         (malign-): Use Enum and Var.
10280         (rs6000_alignment_flags): New Enum and EnumValue entries.
10281         (mfpu=): Use Enum.
10282         (fpu_type_t): New Enum and EnumValue entries.
10283         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10284         global_options_set instead of rs6000_explicit_options.
10285         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10286         global_options_set instead of rs6000_explicit_options.
10287         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10288         global_options_set instead of rs6000_explicit_options.
10289         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10290         global_options_set instead of rs6000_explicit_options.
10291         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
10292         global_options_set instead of rs6000_explicit_options.
10293         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10294         global_options_set instead of rs6000_explicit_options.
10295         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
10296         definition.
10297         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10298         global_options_set instead of rs6000_explicit_options.
10299         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
10300         (rs6000_cmodel): New Enum and EnumValue entries.
10301         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10302         global_options_set instead of rs6000_explicit_options.
10303         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
10304         (mtls-size=): Use Enum and Var.
10305         (rs6000_tls_size): New Enum and EnumValue entries.
10306
10307 2011-05-05  Michael Matz  <matz@suse.de>
10308
10309         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
10310         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
10311         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
10312         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
10313         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
10314         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
10315         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
10316         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
10317         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
10318         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
10319         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
10320         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
10321         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
10322         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
10323         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
10324         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
10325
10326 2011-05-05  Richard Guenther  <rguenther@suse.de>
10327
10328         * expmed.c (expand_variable_shift): Rename to ...
10329         (expand_shift_1): ... this.  Take an expanded shift amount.
10330         For rotates recurse directly not building trees for the shift amount.
10331         (expand_variable_shift): Wrap around expand_shift_1.
10332         (expand_shift): Adjust.
10333
10334 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
10335
10336         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
10337
10338 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
10339
10340         * tree.h (get_pending_sizes): Remove prototype.
10341         (put_pending_size): Likewise.
10342         (put_pending_sizes): Likewise.
10343         * stor-layout.c (pending_sizes): Delete.
10344         (get_pending_sizes): Likewise.
10345         (put_pending_size): Likewise.
10346         (put_pending_sizes): Likewise.
10347         (variable_size): Do not call put_pending_size and tidy up.
10348         * function.h (struct function): Remove dont_save_pending_sizes_p.
10349         * lto-streamer-in.c (input_function): Do not stream it.
10350         * lto-streamer-out.c (output_function): Likewise.
10351         * tree-inline.c (initialize_cfun): Do not copy it.
10352         * c-decl.c (store_parm_decls): Do not set it.
10353         * omp-low.c (create_task_copyfn): Likewise.
10354         * tree-optimize.c (tree_rest_of_compilation): Likewise.
10355
10356 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
10357
10358         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
10359         conditions.
10360         (*movdf_internal): Ditto.
10361         (*movdf_internal_nointeger): Ditto.
10362         (*movsf_internal): Ditto.
10363
10364 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
10365
10366         * c-decl.c (finish_decl): Don't call get_pending_sizes.
10367         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
10368         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
10369         (c_variable_size): Remove.
10370         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
10371         call put_pending_sizes.
10372         (get_parm_info): Add parameter expr.  Use it to set
10373         arg_info->pending_sizes.
10374         (store_parm_decls): Use arg_info->pending_sizes instead or calling
10375         get_pending_sizes.
10376         * c-parser.c (c_parser_parms_declarator): Update call to
10377         c_parser_parms_list_declarator.
10378         (c_parser_parms_list_declarator): Take parameter expr.  Update
10379         call to push_parm_decl.  Update recursive call.  Don't call
10380         get_pending_sizes.  Update calls to get_parm_info.
10381         (c_parser_objc_method_definition): Update calls to
10382         c_parser_objc_method_decl and objc_start_method_definition.
10383         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
10384         (c_parser_objc_method_decl): Add parameter expr.  Update call to
10385         grokparm.
10386         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
10387         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
10388         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
10389
10390 2011-05-05  Michael Hope  <michael.hope@linaro.org>
10391
10392         PR pch/45979
10393         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
10394         __ARM_EABI__ hosts.
10395
10396 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10397
10398         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10399         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
10400         (spu_output_mi_thunk): New function.
10401
10402 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10403
10404         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
10405         targetm.asm_out.print_operand.
10406         * config/sol2.c: Include target.h.
10407
10408 2011-05-04  Jan Hubicka  <jh@suse.cz>
10409
10410         * ipa-inline.c (reset_edge_caches): New function.
10411         (update_caller_keys): Add check_inlinablity_for; do not
10412         reset edge caches; remove now unnecesary loop.
10413         (update_callee_keys): Add comments; reset node_growth_cache of callee.
10414         (update_all_callee_keys): Likewise.
10415         (inline_small_functions): Sanity check cache; update code
10416         recomputing it.
10417
10418 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
10419
10420         PR rtl-optimization/47612
10421         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
10422         as the last insn of the sequence to be moved.
10423
10424 2011-05-04  Tobias Burnus  <burnus@net-b.de>
10425
10426         PR fortran/48864
10427         * doc/invoke.texi (Ofast): Document that it
10428         enables Fortran's -fno-protect-parens.
10429
10430 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
10431
10432         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
10433
10434 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
10435
10436         * stor-layout.c (variable_size): Do not issue errors.
10437
10438 2011-05-04  Richard Guenther  <rguenther@suse.de>
10439
10440         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
10441         for array-ref indices.
10442         (tree_coverage_counter_addr): Likewise.
10443         (build_fn_info_type): Use size_int for index types.
10444         (build_gcov_info): Likewise.
10445
10446 2011-05-04  Richard Guenther  <rguenther@suse.de>
10447
10448         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
10449         to build_int_cst.
10450         * c-typeck.c (really_start_incremental_init): Use bitsize_int
10451         for constructor indices.
10452         (push_init_level): Likewise.
10453
10454 2011-05-04  Richard Guenther  <rguenther@suse.de>
10455
10456         * explow.c (promote_mode): Move variable declarations before code.
10457
10458 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
10459
10460         * tree.h (build_function_type_array): Declare.
10461         (build_varargs_function_type_array): Declare.
10462         (build_function_type_vec, build_varargs_function_type_vec): Define.
10463         * tree.c (build_function_type_array_1): New function.
10464         (build_function_type_array): New function.
10465         (build_varargs_function_type_array): New function.
10466
10467 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
10468
10469         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
10470         before setting STMT_VINFO_TYPE.
10471
10472 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10473
10474         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
10475         instead of spu_pass_by_reference.
10476
10477 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10478
10479         * calls.c (emit_library_call_value_1): Invoke
10480         promote_function_mode hook on libcall arguments.
10481         * explow.c (promote_function_mode, promote_mode): Handle TYPE
10482         argument being NULL.
10483         * targhooks.c (default_promote_function_mode): Lisewise.
10484         * config/s390/s390.c (s390_promote_function_mode): Likewise.
10485         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
10486
10487         * doc/tm.texi: Document that TYPE argument might be NULL.
10488
10489 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
10490
10491         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
10492
10493 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
10494
10495         From Bernd Schmidt
10496         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
10497
10498 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10499
10500         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
10501         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
10502         Move ...
10503         * mips-tfile.c: ... here.
10504         Don't include coretypes.h, tm.h, filenames.h.
10505         (saber_stop): Remove definition and all calls.
10506         [__SABER__]: Remove.
10507         (__LINE__): Remove default.
10508         (Size_t, Ptrdiff_t): Remove definitions.
10509         Replace by size_t, ptrdiff_t.
10510         [!MIPS_DEBUGGING_INFO]: Remove.
10511         (SHASH_SIZE, THASH_SIZE): Remove defaults.
10512         (progname): Add const.
10513         (STATIC): Remove.
10514         Replace all uses by static.
10515         (ALIGN_SYMTABLE_OFFSET): Remove default.
10516         * mips-tdump.c: Don't include coretypes.h, tm.h.
10517         Remove !MIPS_IS_STAB guard.
10518         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
10519         $(TM_H), filenames.h dependencies.
10520         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
10521
10522 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
10523
10524         From Jie Zhang
10525         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
10526         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
10527
10528 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
10529
10530         From Bernd Schmidt
10531         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
10532         account and save/restore RETS.
10533         (PROFILE_BEFORE_PROLOGUE): Define.
10534         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
10535         the push insn to use predecrement.
10536
10537 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
10538
10539         From Jie Zhang
10540         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
10541
10542 2011-05-04  Nick Clifton  <nickc@redhat.com>
10543
10544         * config/mn10300/mn10300.c: Include cfgloop.h.
10545         (DUMP): New macro.
10546         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
10547         Lcc or a FLcc insn into the instruction stream.
10548         (mn10300_block_contains_call): New function.  Returns true if the
10549         given basic block contains a CALL insn.
10550         (mn10300_loop_contains_call_insn): New function.  Returns true if
10551         the given loop contains a CALL insn.
10552         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
10553         to use the SETLB and Lcc or FLcc insns.
10554         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
10555         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
10556         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
10557         disable the SETLB optimization.
10558         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
10559         __SETLB__ or __NO_SETLB__.
10560         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
10561         (movsf_internal): Handle MDR register.
10562         (cmpsi): Make visible.
10563         (setlb): New pattern.
10564         (Lcc): New pattern.
10565         (FLcc): New pattern.
10566
10567 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
10568
10569         PR target/48860
10570         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
10571         for reg<->xmm moves.
10572         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
10573         (vec_concatv2di_rex64_sse): Ditto.
10574         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
10575         (*vec_extractv2di_1_rex64): Ditto.
10576
10577         Revert:
10578         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
10579
10580         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
10581         reg<->xmm moves.
10582         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
10583
10584 2011-05-04  Richard Guenther  <rguenther@suse.de>
10585
10586         * tree.h (int_const_binop): Remove notrunc argument.
10587         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
10588         create integer constants that are properly truncated.
10589         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
10590         (const_binop): Remove zero notrunc argument to int_const_binop.
10591         (size_binop_loc): Likewise.
10592         (fold_div_compare): Likewise.
10593         (maybe_canonicalize_comparison_1): Likewise.
10594         (fold_comparison): Likewise.
10595         (fold_binary_loc): Likewise.
10596         (multiple_of_p): Likewise.
10597         * expr.c (store_constructor): Likewise.
10598         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
10599         (maybe_fold_stmt_addition): Likewise.
10600         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
10601         * stor-layout.c (layout_type): Likewise.
10602         * tree-data-ref.c (tree_fold_divides_p): Likewise.
10603         * tree-sra.c (build_ref_for_offset): Likewise.
10604         (build_user_friendly_ref_for_offset): Likewise.
10605         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
10606         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
10607         * tree-ssa-loop-niter.c (inverse): Likewise.
10608         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10609         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
10610         * tree-switch-conversion.c (check_range): Likewise.
10611         (build_constructors): Likewise.
10612         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
10613         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
10614         (extract_range_from_assert): Likewise.
10615         (vrp_int_const_binop): Likewise.
10616         (extract_range_from_binary_expr): Likewise.
10617         (extract_range_from_unary_expr): Likewise.
10618         (check_array_ref): Likewise.
10619         (find_case_label_range): Likewise.
10620         (simplify_div_or_mod_using_ranges): Likewise.
10621         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
10622         comparing case labels for merging.
10623
10624 2011-05-03  Mark Wielaard  <mjw@redhat.com>
10625
10626         * dwarf2out.c (debug_str_hash_forced): Removed.
10627         (gen_label_for_indirect_string): Removed.
10628         (get_debug_string_label): Removed.
10629         (AT_string_form): Generate label directly.
10630         (output_indirect_string): Test indirect_string_node for
10631         DW_FORM_strp instead of checking label and refcount.
10632         (prune_indirect_string): Removed.
10633         (prune_unused_types): Don't check debug_str_hash_forced or
10634         call prune_indirect_string.
10635
10636 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
10637
10638         PR other/48093
10639         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
10640
10641 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
10642
10643         PR debug/47994
10644         PR debug/47919
10645         * combine.c (try_combine): Skip debug insns at m_split tests.
10646
10647 2011-04-26  Mark Wielaard  <mjw@redhat.com>
10648
10649         PR42288
10650         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
10651         when info_section_emitted.
10652
10653 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
10654
10655         * config/mips/mips-opts.h: New.
10656         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
10657         to mips-opts.h.
10658         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
10659         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
10660         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
10661         via opts pointer.
10662         * config/mips/mips.h (enum mips_code_readable_setting): Move to
10663         mips-opts.h.
10664         (mips_abi, mips_code_readable): Don't declare.
10665         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
10666         (mabi=): Use Enum and Var.
10667         (mips_abi): New Enum and EnumValue entries.
10668         (mcode-readable=): Use Enum and Var.
10669         (mips_code_readable_setting): New Enum and EnumValue entries.
10670         (mr10k-cache-barrier=): Use Enum and Var.
10671         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
10672
10673 2011-05-03  Jan Hubicka  <jh@suse.cz>
10674
10675         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
10676         replace hash by pointer map.
10677         (cgraph_node_set_element_def, cgraph_node_set_element,
10678         const_cgraph_node_set_element, varpool_node_set_element_def,
10679         varpool_node_set_element, const_varpool_node_set_element): Remove.
10680         (free_cgraph_node_set, free_varpool_node_set): New function.
10681         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
10682         * tree-emutls.c: Free varpool node set.
10683         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
10684         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
10685         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
10686         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
10687         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
10688         Move here from ipa.c; implement using pointer_map
10689         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
10690         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
10691         debug_cgraph_node_set, varpool_node_set_new,
10692         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
10693         dump_varpool_node_set, debug_varpool_node_set):
10694         Move to ipa-uitls.c.
10695         * passes.c (ipa_write_summaries): Update.
10696
10697 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10698
10699         From Mike Frysinger:
10700         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
10701         bf542/bf544/bf547/bf548/bf549.
10702
10703 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
10704
10705         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
10706
10707 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10708
10709         From Bernd Schmidt:
10710         * config/bfin/bfin.md (MOVCC): New mode_macro.
10711         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
10712         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
10713         comments from generated assembly.
10714
10715 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10716
10717         From Bernd Schmidt
10718         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
10719         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
10720         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
10721         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
10722         * config/bfin/lib1funcs.asm (___muldi3): New function.
10723
10724 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10725
10726         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
10727         build_function_type_list instead of build_function_type.
10728         Rearrange initialization of `args' to do so.
10729
10730 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10731
10732         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
10733         instead of build_function_type.
10734
10735 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10736
10737         * config/rs6000/rs6000.c (spe_init_builtins): Call
10738         build_function_type_list instead of build_function_type.
10739         (paired_init_builtins, altivec_init_builtins): Likewise.
10740         (builtin_function_type): Likewise.
10741
10742 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10743
10744         * config/sh/sh.c (sh_media_init_builtins): Call
10745         build_function_type_list instead of build_function_type.
10746
10747 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10748
10749         * config/sparc/sparc.c (sparc_file_end): Call
10750         build_function_type_list instead of build_function_type.
10751
10752 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10753
10754         * config/alpha/alpha.c (alpha_init_builtins): Call
10755         build_function_type_list instead of build_function_type.
10756
10757 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10758
10759         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
10760         build_function_type_list instead of build_function_type.
10761
10762 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10763
10764         * config/iq2000/i2000.c (iq2000_init_builtins): Call
10765         build_function_type_list instead of build_function_type.
10766         Delete `endlink' variable.
10767
10768 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10769
10770         * config/avr/avr.c (avr_init_builtins): Call
10771         build_function_type_list instead of build_function_type.
10772
10773 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10774
10775         * config/picochip/picochip.c (picochip_init_builtins): Call
10776         build_function_type_list instead of build_function_type.
10777         Delete `endlink' variable.
10778
10779 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10780
10781         * config/bfin/bfin.c (bfin_init_builtins): Call
10782         build_function_type_list instead of build_function_type.
10783
10784 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10785
10786         From Bernd Schmidt
10787         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
10788         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
10789
10790 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10791
10792         From Jie Zhang:
10793         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
10794         libbffastfp overrides libgcc when -mfast-fp.
10795
10796 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10797
10798         Originally from Bernd Schmidt
10799         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
10800         * config/bfin/bfin.c (override_options): Test it and error if
10801         TARGET_FDPIC.
10802
10803 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10804
10805         Originally From Bernd Schmidt
10806         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
10807         FD-PIC.
10808
10809 2011-05-03  Jeff Law  <law@redhat.com>
10810
10811         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
10812         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
10813         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
10814         than accessing AUX field directly.  Free the AUX field before
10815         clearing it.
10816         (thread_block, thread_through_loop_header): Likewise.
10817         (thread_single_edge, mark_threaded_blocks): Likewise.
10818         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
10819         (register_jump_thread): Do not attempt to thread to a NULL edge.
10820
10821 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
10822
10823         * function.c (init_function_start): Call decide_function_section.
10824         * varasm.c (decide_function_section): New function.
10825         (assemble_start_function): When not using
10826         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
10827         or first_function_block_is_cold.
10828         * rtl.h (decide_function_section): Declare.
10829
10830 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
10831             Jakub Jelinek  <jakub@redhat.com>
10832
10833         PR target/48774
10834         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
10835         only succeed if req_mode is the same as set_mode.
10836
10837 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
10838
10839         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
10840         * genemit.c (gen_exp): Handle RETURN.
10841         * emit-rtl.c (verify_rtx_sharing): Likewise.
10842         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
10843         * rtl.c (copy_rtx): RETURN is shared.
10844         * rtl.h (enum global_rtl_index): Add GR_RETURN.
10845         (ret_rtx): New.
10846         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
10847         * config/s390/s390.c (s390_emit_epilogue): Likewise.
10848         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
10849         * config/cris/cris.c (cris_expand_return): Likewise.
10850         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
10851         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
10852         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
10853         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
10854         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
10855         Likewise.
10856         * config/v850/v850.c (expand_epilogue): Likewise.
10857         * config/bfin/bfin.c (bfin_expand_call): Likewise.
10858         * config/arm/arm.md (epilogue): Likewise.
10859         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
10860         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
10861         variable to ret_reg.
10862
10863 2011-05-03  Richard Guenther  <rguenther@suse.de>
10864
10865         PR lto/48846
10866         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
10867         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
10868         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10869
10870 2011-05-03  Richard Guenther  <rguenther@suse.de>
10871
10872         * c-decl.c (grokdeclarator): Instead of looking at
10873         TREE_OVERFLOW check if the constant fits in the index type.
10874
10875 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10876
10877         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
10878         (vec_store_lanes<mode><mode>): Likewise.
10879
10880 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10881
10882         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
10883         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
10884         convert_optab_index values.
10885         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
10886         * genopinit.c (optabs): Initialize the new optabs.
10887         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
10888         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
10889         (expand_STORE_LANES): New functions.
10890         * tree.h (build_array_type_nelts): Declare.
10891         * tree.c (build_array_type_nelts): New function.
10892         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
10893         (vect_model_load_cost): Likewise.
10894         (vect_store_lanes_supported, vect_load_lanes_supported)
10895         (vect_record_strided_load_vectors): Declare.
10896         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
10897         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
10898         (vect_transform_strided_load): Split out statement recording into...
10899         (vect_record_strided_load_vectors): ...this new function.
10900         * tree-vect-stmts.c (create_vector_array, read_vector_array)
10901         (write_vector_array, create_array_ref): New functions.
10902         (vect_model_store_cost): Add store_lanes_p argument.
10903         (vect_model_load_cost): Add load_lanes_p argument.
10904         (vectorizable_store): Try to use store-lanes functions for
10905         interleaved stores.
10906         (vectorizable_load): Likewise load-lanes and loads.
10907         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
10908         to vect_model_store_cost.
10909         (vect_build_slp_tree): Likewise vect_model_load_cost.
10910
10911 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10912
10913         * hooks.h (hook_bool_mode_uhwi_false): Declare.
10914         * hooks.c (hook_bool_mode_uhwi_false): New function.
10915         * target.def (array_mode_supported_p): New hook.
10916         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
10917         * doc/tm.texi: Regenerate.
10918         * stor-layout.c (mode_for_array): New function.
10919         (layout_type): Use it.
10920         * config/arm/arm.c (arm_array_mode_supported_p): New function.
10921         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
10922
10923 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
10924
10925         PR target/48723
10926         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
10927         for -fstack-check if the size to allocate is negative.
10928
10929 2011-05-02  Lawrence Crowl  <crowl@google.com>
10930
10931         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
10932         (timevar_cond_start): New for starting a timer only when it is not
10933         already running.
10934         (timevar_cond_stop): New for stopping a timer when it was not already
10935         running.
10936
10937         * timevar.c (timevar_stop): Enable start/stop timers to start again.
10938         (timevar_cond_start): New as above.
10939         (timevar_cond_stop): New as above.
10940
10941         * timevar.def: Add start/stop timers for compiler phases,
10942         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
10943         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
10944         and TV_PHASE_FINALIZE.
10945         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
10946         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
10947         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
10948         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
10949         Make unused TV_OVERLOAD into a start/stop timer.
10950
10951         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
10952         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
10953         to indicate that they are start/stop timers.
10954
10955         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
10956         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
10957         Move initialization to do_compile.
10958         (do_compile): Add initialization from above.
10959         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
10960
10961         * c-decl.c (c_write_global_declarations): Add start/stop of
10962         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
10963
10964         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
10965         or TV_PARSE_INLINE, as appropriate.
10966         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
10967         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
10968
10969 2011-05-02  Jason Merrill  <jason@redhat.com>
10970
10971         PR c++/40975
10972         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
10973
10974 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
10975
10976         PR c/35445
10977         * c-decl.c (finish_decl): Only create a composite if the types are
10978         compatible.
10979
10980 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
10981
10982         * config/fr30/fr30-protos.h (Mmode): Don't define.
10983         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
10984         definition where used.
10985         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
10986         define.  Expand definitions where used.
10987         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
10988         Expand definitions where used.
10989         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
10990         rx_function_arg, rx_function_arg_advance,
10991         rx_function_arg_boundary): Expand definitions of those macros.
10992         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
10993         definition where used.
10994
10995 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
10996
10997         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
10998         reg<->xmm moves.
10999         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
11000         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
11001         with *movv2sf_internal_rex64_avx.
11002         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
11003         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
11004         Use %v prefix in insn mnemonic to handle TARGET_AVX.
11005         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
11006         "vex" in "prefix" attribute calculation.
11007         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
11008
11009 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
11010
11011         PR target/47951
11012         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
11013         inputs match the output.
11014
11015 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
11016
11017         PR target/47955
11018         * config/m68k/m68k.c (m68k_expand_prologue): Set
11019         current_function_static_stack_size.
11020
11021 2011-05-02   Jan Hubicka  <jh@suse.cz>
11022
11023         * lto-streamer.c (lto_streamer_cache_insert_1,
11024         lto_streamer_cache_lookup, lto_streamer_cache_create,
11025         lto_streamer_cache_delete): Use pointer map instead of hashtable.
11026         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
11027
11028 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
11029
11030         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
11031         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
11032         config/m68k/t-opts: New files.
11033         * config/m68k/m68k-tables.opt: New file (generated).
11034         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
11035         extra_options and m68k/t-opts to tmake_file.
11036         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
11037         (all_isas): Initialize using m68k-isas.def.
11038         (all_microarchs): Initialize using m68k-microarchs.def.
11039         (m68k_find_selection): Remove.
11040         (m68k_handle_option): Don't assert that global structures are in
11041         use.  Use error_at.  Access variables via opts pointer.  Don't
11042         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
11043         directly for -m68020-40 and -m68020-60.
11044         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
11045         m68k_tune_entry here.
11046         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
11047         to m68k-opts.h.
11048         (m68k_library_id_string): Remove declaration.
11049         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
11050         (m68k_library_id_string): New Variable.
11051         (march=, mcpu=, mtune=): Use Enum and Var.
11052
11053 2011-05-02  Richard Guenther  <rguenther@suse.de>
11054
11055         * varasm.c (output_constructor_regular_field): Compute zero-based
11056         index with double-ints.  Make sure to ICE instead of producing
11057         wrong code.
11058         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
11059         in asserts.  Properly use a signed type.
11060
11061 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
11062
11063         * config/i386/sse.md (V): New mode iterator.
11064         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
11065         TARGET_SSE2.
11066         (V_256): Rename from AVX256MODE.
11067         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
11068         condition to all users.
11069         (VF1): Ditto.
11070         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
11071         condition to all users.
11072         (VF_128): Make V4SF mode unconditional.
11073         (VF_256): Rename from AVX256MODEF2P.
11074         (VI4F_128): Rename from SSEMODE4S.
11075         (VI8F_128): Rename from SSEMODE2D.
11076         (VI4F_256): Rename from AVX256MODE8P.
11077         (VI8F_256): Rename from AVX256MODE4P.
11078         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
11079         (ssescalarmodesuffix): Remove SF and DF modes.
11080         (SSEMODE124): Remove.
11081         (SSEMODE1248): Ditto.
11082         (SSEMODEF2P): Ditto.
11083         (AVXMODEF2P): Ditto.
11084         (AVXMODEFDP): Ditto.
11085         (AVXMODEFSP): Ditto.
11086         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
11087         unconditional.
11088         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
11089         unconditional.
11090         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
11091         xop_pcmov_<mode>256.  Use V mode iterator.
11092
11093         Adjust RTX patterns globally for renamed mode attributes.
11094
11095 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11096
11097         * haifa-sched.c (sched_emit_insn): Emit insn before first
11098         non-scheduled insn.  Inform back-end about new insn.  Add
11099         new insn to scheduled_insns list.
11100
11101 2011-05-02  Richard Guenther  <rguenther@suse.de>
11102
11103         PR tree-optimization/48822
11104         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
11105         (process_scc): Indicate which iteration we start.
11106
11107 2011-05-02  Jan Hubicka  <jh@suse.cz>
11108
11109         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
11110         (lto_section_overrun): New.
11111         * lto-section-out.c (append_block): Rename to ...
11112         (lto_append_block): ... this one; export.
11113         (lto_output_1_stream): Move lto lto-streamer.h
11114         (lto_output_data_stream): Update.
11115         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
11116         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
11117         functions.
11118
11119 2011-05-02  Richard Guenther  <rguenther@suse.de>
11120
11121         * tree.c (tree_code_counts): New global array.
11122         (record_node_allocation_statistics): Count individual tree codes.
11123         (dump_tree_statistics): Dump individual code stats.
11124
11125 2011-05-01  Jan Hubicka  <jh@suse.cz>
11126
11127         * ipa-inline.c (caller_growth_limits): Fix thinko when
11128         looking for largest stack frame.
11129         * ipa-inline.h (dump_inline_summary): Declare.
11130         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
11131         on stack usage.
11132         (dump_inline_summary): Export.
11133         (debug_inline_summary): Declare as DEBUG_FUNCTION.
11134
11135 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
11136
11137         * reginfo.c (memory_move_cost): Change rclass argument type form
11138         'enum reg_class' to reg_class_t.
11139         * reload.h (memory_move_cost): Update prototype.
11140         * postreload.c reload_cse_simplify_set): Change type dclass var to
11141         reg_class_t.
11142         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
11143         Update prototype.
11144         (ira_allocate_and_set_costs): Change aclass argument type form
11145         'enum reg_class' to reg_class_t.
11146         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
11147         Change aclass argument type to reg_class_t.
11148         (update_conflict_hard_reg_costs): Change type aclass and pref vars
11149         to reg_class_t.
11150         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
11151         memory_move_cost call.
11152
11153         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
11154         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
11155         Change type tmp var to reg_class_t.
11156
11157 2011-04-30  Jan Hubicka  <jh@suse.cz>
11158
11159         * ipa-inline.c (can_inline_edge_p): Disregard limits when
11160         inlining into function with flatten attribute.
11161         (want_inline_small_function_p): Be more realistic about inlining
11162         cold calls where callee size grows.
11163
11164 2011-04-30  Jan Hubicka  <jh@suse.cz>
11165
11166         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
11167         flags.
11168
11169 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
11170
11171         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
11172         PRINT_OPERAND_PUNCT_VALID_P): Remove.
11173         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
11174         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
11175         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11176         (print_operand): Rename to...
11177         (sparc_print_operand): ...this. Make static. Adjust
11178         sparc_print_operand function call.
11179         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
11180         functions.
11181
11182 2011-04-30  Jan Hubicka  <jh@suse.cz>
11183
11184         PR middle-end/48752
11185         * ipa-inline.c (early_inliner): Disable when doing late
11186         addition of function.
11187
11188 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
11189
11190         * dwarf2out.c (get_address_mode): New inline.
11191         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
11192         if not dwarf_strict emit
11193         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
11194         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
11195         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
11196         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
11197         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
11198         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
11199         mem_loc_descriptor callers.
11200         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11201         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
11202         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
11203         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
11204         (base_types): New variable.
11205         (get_base_type_offset, calc_base_type_die_sizes,
11206         base_type_for_mode, mark_base_types, base_type_cmp,
11207         move_marked_base_types): New functions.
11208         (calc_die_sizes): Assert that die_offset is 0 or equal to
11209         next_die_offset.
11210         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
11211         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
11212         callers.  If not dwarf_strict, call mem_loc_descriptor even for
11213         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
11214         (gen_subprogram_die): Don't give up on call site parameters
11215         with non-integral or large integral modes.  Adjust
11216         mem_loc_descriptor callers.
11217         (prune_unused_types): Call prune_unused_types_mark on base_types
11218         vector entries.
11219         (resolve_addr): Call mark_base_types.
11220         (dwarf2out_finish): Call move_marked_base_types.
11221
11222         PR tree-optimization/48809
11223         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
11224         type.
11225         (gen_inbound_check): Don't compute index_expr - range_min in utype
11226         again, instead reuse SSA_NAME initialized in build_arrays.
11227         Remove two useless gsi_for_stmt calls.
11228
11229 2011-04-29  Jeff Law  <law@redhat.com>
11230
11231         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
11232
11233 2011-04-29  Martin Jambor  <mjambor@suse.cz>
11234
11235         * cgraph.h (cgraph_postorder): Remove declaration.
11236         * ipa-utils.h (ipa_free_postorder_info): Declare.
11237         (ipa_reverse_postorder): Likewise.
11238         * cgraphunit.c: Include ipa-utils.h.
11239         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
11240         * ipa-inline.c: Include ipa-utils.h.
11241         (ipa_inline): Update call to ipa_reverse_postorder.
11242         * ipa-pure-const.c (propagate_pure_const): Update call to
11243         ipa_reduced_postorder and ipa_print_order.  Call
11244         ipa_free_postorder_info to clean up.
11245         (propagate_nothrow): Likewise.
11246         * ipa-reference.c (propagate): Removed a useless call to
11247         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
11248         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
11249         * ipa.c: Include ipa-utils.h.
11250         (ipa_profile): Update call to ipa_reverse_postorder.
11251         (cgraph_postorder): Moved to...
11252         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
11253         (ipa_utils_print_order): Renamed to ipa_print_order.
11254         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
11255         comments.
11256         (ipa_free_postorder_info): New function.
11257         * passes.c: Include ipa-utils.h.
11258         (do_per_function_toporder): Update call to ipa_reverse_postorder.
11259         (ipa_write_summaries): Likewise.
11260         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
11261         (cgraphunit.o): Likewise.
11262         (ipa.o): Likewise.
11263         (ipa-inline.o): Likewise.
11264
11265 2011-04-29  Jan Hubicka  <jh@suse.cz>
11266
11267         * gcc.dg/tree-ssa/inline-10.c: New testcase.
11268         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
11269         * ipa-inline.h (clause_t): Turn into unsigned int.
11270         * ipa-inline-analysis.c (add_clause): Do more simplification.
11271         (and_predicates): Shortcut more cases.
11272         (predicates_equal_p): Move forward; check that clauses are properly
11273         ordered.
11274         (or_predicates): Shortcut more cases.
11275         (edge_execution_predicate): Rewrite as...
11276         (set_cond_stmt_execution_predicate): ... this function; handle
11277         __builtin_constant_p.
11278         (set_switch_stmt_execution_predicate): New .
11279         (compute_bb_predicates): New.
11280         (will_be_nonconstant_predicate): Update TODO.
11281         (estimate_function_body_sizes): Use compute_bb_predicates
11282         and free them later, always try to estimate if stmt is constant.
11283         (estimate_time_after_inlining, estimate_size_after_inlining):
11284         Gracefully handle optimized out edges.
11285         (read_predicate): Fix off by one error.
11286
11287 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
11288
11289         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
11290
11291 2011-04-27  Xinliang David Li  <davidxl@google.com>
11292
11293         * tree-profile.c (init_ic_make_global_vars): Set
11294         tls attribute on ic vars.
11295         * coverage.c (coverage_end_function): Initialize
11296         function_list with zero.
11297
11298 2011-04-29  Richard Guenther  <rguenther@suse.de>
11299
11300         * builtins.c (fold_builtin_classify_type): Use integer_type_node
11301         for the type of the result.
11302         (fold_builtin_isascii): Likewise.
11303         (fold_builtin_toascii): Use integer_type_node where appropriate.
11304         (fold_builtin_logb): Likewise.
11305         (fold_builtin_frexp): Likewise.
11306         (fold_builtin_strstr): Likewise.
11307         (fold_builtin_strpbrk): Likewise.
11308         (fold_builtin_fputs): Likewise.
11309         (fold_builtin_sprintf): Likewise.
11310         (fold_builtin_snprintf): Likewise.
11311         (fold_builtin_printf): Likewise.
11312         (do_mpfr_remquo): Use a proper type for the assigned constant.
11313         (do_mpfr_lgamma_r): Likewise.
11314         * dwarf2out.c (resolve_one_addr): Use size_int.
11315         * except.c (init_eh): Likewise.
11316         (assign_filter_values): Use integer_type_node for filter values.
11317         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
11318         indices.
11319         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
11320         for EH region numbers.
11321         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
11322         for the shift amount.
11323
11324 2011-04-29  Richard Guenther  <rguenther@suse.de>
11325
11326         * expr.h (expand_shift): Rename to ...
11327         (expand_variable_shift): ... this.
11328         (expand_shift): Take a constant shift amount.
11329         * expmed.c (expand_shift): Rename to ...
11330         (expand_variable_shift): ... this.
11331         (expand_shift): New wrapper around expand_variable_shift.
11332         * expr.c (convert_move, emit_group_load_1, emit_group_store,
11333         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
11334         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
11335         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
11336         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
11337         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
11338         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
11339         emit_store_flag_1, emit_store_flag): Likewise.
11340         * builtins.c (expand_builtin_signbit): Likewise.
11341         * calls.c (load_register_parameters): Likewise.
11342         * function.c (assign_parm_setup_block): Likewise.
11343         * lower-subreg.c (resolve_shift_zext): Likewise.
11344         * optabs.c (widen_bswap, expand_abs_nojump,
11345         expand_one_cmpl_abs_nojump, expand_float): Likewise.
11346         * spu/spu.c (spu_expand_extv): Likewise.
11347         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11348
11349 2011-04-29  Richard Guenther  <rguenther@suse.de>
11350
11351         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
11352         for the remapped region number.
11353         * predict.c (build_predict_expr): Use integer_type_node for the
11354         predict kind.
11355         * fold-const.c (fold_binary_loc): Use integer_type_node for
11356         the shift amount.  Use a proper type for the PLUS_EXPR operand.
11357
11358 2011-04-29  Michael Matz  <matz@suse.de>
11359
11360         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
11361         other trees that just builtins.
11362         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
11363
11364 2011-04-29  Richard Guenther  <rguenther@suse.de>
11365
11366         * tree-nested.c (get_trampoline_type): Use size_int.
11367         (get_nl_goto_field): Likewise.
11368         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
11369         for all indexes.
11370         (lower_eh_constructs_2): Likewise.
11371         (lower_resx): Likewise.
11372         (lower_eh_dispatch): Likewise.
11373         * tree-mudflap.c (mf_build_string): Use size_int.
11374         (mudflap_register_call): Use integer_type_node for the flag.
11375         (mudflap_enqueue_constant): Use size_int.
11376         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
11377         instead of rebuilding it.
11378
11379 2011-04-29  Richard Guenther  <rguenther@suse.de>
11380
11381         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
11382         Handle OBJ_TYPE_REF.
11383         (find_func_aliases_for_call): Use it more consistently.
11384
11385 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
11386
11387         * haifa-sched.c (last_nondebug_scheduled_insn): New.
11388         (rank_for_schedule): Use it.
11389         (schedule_block): Set it.
11390
11391 2011-04-28  David Li  <davidxl@google.com>
11392
11393         * tree.c (crc32_string): Use crc32_byte.
11394         (crc32_byte): New function.
11395         * tree.h (crc32_byte): New function.
11396         * gcov.c (read_graph_file): Handle new cfg_cksum.
11397         (read_count_file): Ditto.
11398         * profile.c (instrument_values): Ditto.
11399         (get_exec_counts): Ditto.
11400         (read_profile_edge_counts): Ditto.
11401         (compute_branch_probabilities): Ditto.
11402         (compute_value_histograms): Ditto.
11403         (branch_prob): Ditto.
11404         (end_branch_prob): Ditto.
11405         * coverage.c (read_counts_file): Ditto.
11406         (get_coverage_counts): Ditto.
11407         (tree_coverage_counter_addr): Ditto.
11408         (coverage_checksum_string): Ditto.
11409         (coverage_begin_output): Ditto.
11410         (coverage_end_function): Ditto.
11411         (build_fn_info_type): Ditto.
11412         (build_fn_info_value): Ditto.
11413         * libgcov.c (gcov_exit): Ditto.
11414         * gcov-dump.c (tag_function): Ditto.
11415         (compute_checksum): Remove.
11416
11417 2011-04-29  Alan Modra  <amodra@gmail.com>
11418
11419         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11420         unspec plus offset.  Tidy macho code.
11421
11422 2011-04-29  Martin Jambor  <mjambor@suse.cz>
11423
11424         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
11425         node instead of a decl.  Update all callers.
11426         * cgraph.h: Update declaration.
11427
11428 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
11429
11430         PR tree-optimization/48765
11431         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
11432         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
11433         to indicate if loop aware SLP is being used.  Scan the statements
11434         and update the vectorization factor according to the type of
11435         vectorization before statement analysis.
11436         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
11437         pass it to vect_analyze_loop_operations.
11438         (vectorizable_reduction): Set number of copies to 1 in case of pure
11439         SLP statement.
11440         * tree-vect-stmts.c (vectorizable_conversion,
11441         vectorizable_assignment, vectorizable_shift,
11442         vectorizable_operation, vectorizable_type_demotion,
11443         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
11444         Likewise.
11445         (vectorizable_condition): Move the check that it is not SLP
11446         vectorization before the number of copies check.
11447         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
11448         to vectorize the loop using SLP.
11449
11450 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
11451
11452         PR middle-end/48597
11453         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
11454         inline asm.
11455
11456 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
11457
11458         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
11459         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
11460         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11461         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11462         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
11463         linux*.h headers.
11464         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
11465         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11466         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11467         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11468         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11469         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
11470         REG_NAME.
11471         * config/i386/linux.h (REG_NAME): Don't define.
11472         * config/i386/linux64.h (REG_NAME): Don't define.
11473         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
11474         Undefine before defining.
11475
11476 2011-04-28  Jan Hubicka  <jh@suse.cz>
11477
11478         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
11479         nonconstant_names array.
11480         (estimate_function_body_sizes): Build nonconstant_names array; handle
11481         BUILT_IN_CONSTANT_P.
11482
11483 2011-04-28  Richard Guenther  <rguenther@suse.de>
11484
11485         PR bootstrap/48804
11486         Revert
11487         2011-04-28  Richard Guenther  <rguenther@suse.de>
11488
11489         * tree-ssa-structalias.c (solve_constraints): Build succ graph
11490         as late as possible.
11491
11492 2011-04-28  Richard Guenther  <rguenther@suse.de>
11493
11494         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
11495         (debug_constraint): Do it here.
11496         (dump_constraints): And here.
11497         (rewrite_constraints): And here.
11498         (dump_constraint_edge): Remove.
11499         (dump_constraint_graph): Rewrite to produce DOT output.
11500         (solve_constraints): Build succ graph as late as possible.
11501         Dump constraint graphs before and after solving.
11502
11503 2011-04-28  Richard Guenther  <rguenther@suse.de>
11504
11505         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11506         New function split out from ...
11507         (find_func_aliases): ... here.  Call it.
11508         (find_func_aliases_for_call): Likewise.
11509
11510 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11511
11512         * internal-fn.h (internal_fn_name_array): Declare.
11513         (internal_fn_flags_array): Likewise.
11514
11515 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
11516
11517         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
11518         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
11519         Move from sse.md.
11520         (ssemodefsuffix): Remove.
11521         (ssevecmodesuffix): New mode attribute.
11522         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
11523         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
11524         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
11525         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
11526         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
11527         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
11528         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
11529         ssemodesuffix mode attribute.
11530         (float splitters): Use ssevecmodesuffix mode attribute.
11531         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
11532         (sseinsmode): Rename from avxvecmode.
11533         (avxsizesuffix): Rename from avxmodesuffix.
11534         (sseintvecmode): Rename from avxpermvecmode.
11535         (ssedoublevecmode): Rename from ssedoublesizemode.
11536         (ssehalfvecmode): Rename from avxhalfvecmode.
11537         (ssescalarmode): Rename from avxscalarmode.
11538         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
11539         templates for ssemodesuffix mode attribute.
11540         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
11541         mode attribute.
11542
11543         Adjust RTX patterns globally for renamed mode attributes.
11544
11545 2011-04-27  Jan Hubcika  <jh@suse.cz>
11546
11547         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
11548         * ipa-inline-analysis.c: Include alloc-pool.h.
11549         (edge_predicate_pool): New.
11550         (trye_predicate_p): New function
11551         (false_predicate_p): New function.
11552         (add_clause): Sanity check that false clauses are "optimized";
11553         never add clauses to predicate that is already known to be false.
11554         (and_predicate): Use flase_predicate_p.
11555         (evaulate_predicate): Rename to ...
11556         (evaluate_predicate): ... this one; update all callers; assert
11557         that false is not listed among possible truths.
11558         (dump_predicate): Use true_predicate_p.
11559         (account_size_time): Use false_predicate_p.
11560         (evaulate_conditions_for_edge): Rename to ...
11561         (evaluate_conditions_for_edge) ... this one.
11562         (edge_set_predicate): New function.
11563         (inline_edge_duplication_hook): Duplicate edge predicates.
11564         (inline_edge_removal_hook): Free edge predicates.
11565         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
11566         (dump_inline_summary): Update.
11567         (estimate_function_body_sizes): Set edge predicates.
11568         (estimate_calls_size_and_time): Handle predicates.
11569         (estimate_callee_size_and_time): Update.
11570         (remap_predicate): Add toplev_predicate; update comment.
11571         (remap_edge_predicates): New function.
11572         (inline_merge_summary): Compute toplev predicate; update.
11573         (read_predicate): New function.
11574         (read_inline_edge_summary): Use it.
11575         (inline_read_section): Likewise.
11576         (write_predicate): New function.
11577         (write_inline_edge_summary): Use it.
11578         (inline_write_summary): Likewise.
11579         (inline_free_summary): Free alloc pool and edge summary vec.
11580
11581 2011-04-27  Richard Guenther  <rguenther@suse.de>
11582
11583         * tree-ssa-structalias.c (changed_count): Remove.
11584         (changed): Use a bitmap.
11585         (unify_nodes): Adjust.
11586         (do_sd_constraint): Likewise.
11587         (do_ds_constraint): Likewise.
11588         (do_complex_constraint): Likewise.
11589         (solve_graph): Likewise.
11590
11591 2011-04-27  Jan Hubicka  <jh@suse.cz>
11592
11593         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
11594
11595 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
11596
11597         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
11598         (avx_vperm2f128_*_operand): Ditto.
11599         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
11600         Use avx_vpermilp_parallel in insn condition.
11601         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
11602         Use avx_vperm2f128_parallel in insn condition.
11603
11604 2011-04-27  Richard Guenther  <rguenther@suse.de>
11605
11606         * Makefile.in (tree-ssa-structalias.o): Remove
11607         gt-tree-ssa-structalias.h dependency.
11608         (GTFILES): Remove tree-ssa-structalias.c.
11609         * tree.c (allocate_decl_uid): New function.
11610         (make_node_stat): Use it.
11611         (copy_node_stat): Likewise.
11612         * tree.h (allocate_decl_uid): Declare.
11613         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
11614         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
11615         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
11616         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
11617         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
11618         (struct heapvar_map): Likewise.
11619         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
11620         heapvar_insert): Likewise.
11621         (make_heapvar_for): Rename to ...
11622         (make_heapvar): ... this.  Simplify.
11623         (fake_var_decl_obstack): New global var.
11624         (build_fake_var_decl): New function.
11625         (make_constraint_from_heapvar): Adjust.
11626         (handle_lhs_call): Likewise.
11627         (create_function_info_for): Likewise.
11628         (intra_create_variable_infos): Likewise.
11629         (init_alias_vars): Allocate fake_var_decl_obstack.
11630         (init_alias_heapvars, delete_alias_heapvars): Remove.
11631         (compute_points_to_sets): Do not call init_alias_heapvars.
11632         (ipa_pta_execute): Likewise.
11633         (delete_points_to_sets): Free fake_var_decl_obstack.
11634
11635 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11636
11637         * config/spu/divmovti4.c (union qword_UTItype): New data type.
11638         (si_from_UTItype, si_to_UTItype): New functions.
11639         (__udivmodti4): Use them to implement type-punning.
11640         * config/spu/multi3.c (union qword_TItype): New data type.
11641         (si_from_TItype, si_to_TItype): New functions.
11642         (__multi3): Use them to implement type-punning.
11643
11644 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11645
11646         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
11647
11648 2011-04-27  Jan Hubicka  <jh@suse.cz>
11649
11650         * ipa-prop.c (function_insertion_hook_holder): New holder.
11651         (ipa_add_new_function): New function.
11652         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
11653         Register/deregister holder.
11654
11655 2011-04-27  Richard Guenther  <rguenther@suse.de>
11656
11657         PR tree-optimization/48772
11658         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
11659
11660 2011-04-27  Richard Guenther  <rguenther@suse.de>
11661
11662         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
11663         TARGET_MEM_REF handling.
11664
11665 2011-04-27  Nick Clifton  <nickc@redhat.com>
11666
11667         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
11668         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
11669         (REG_CLASS_NAMES): Likewise.
11670         (REG_CLASS_CONTENTS): Likewise.
11671         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
11672         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
11673         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
11674         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
11675         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
11676         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
11677         duplicate register classes.
11678         (frv_class_likely_spilled_p): Likewise.
11679         (frv_register_move_cost): Likewise.
11680
11681         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
11682         end of the regno_reg_class array.
11683
11684 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
11685
11686         PR c/48742
11687         * c-typeck.c (build_binary_op): Don't wrap arguments if
11688         int_operands is true.
11689
11690 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
11691
11692         PR target/48767
11693         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
11694         targetm.calls.must_pass_in_stack for void type.
11695
11696 2011-04-26  Jan Hubicka  <jh@suse.cz>
11697
11698         * cgraphbuild.c (build_cgraph_edges): Update call
11699         of cgraph_create_edge and cgraph_create_indirect_edge.
11700         * cgraph.c (cgraph_create_edge_including_clones,
11701         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
11702         cgraph_update_edges_for_call_stmt_node): Do not take nest
11703         argument; do not initialize call_stmt_size/time.
11704         (dump_cgraph_node): Do not dump nest.
11705         (cgraph_clone_edge): Do not take loop_nest argument;
11706         do not propagate it; do not clone call_stmt_size/time.
11707         (cgraph_clone_node): Likewise.
11708         (cgraph_create_virtual_clone): Update.
11709         * cgraph.h (struct cgraph_edge): Remove
11710         call_stmt_size/call_stmt_time/loop_nest.
11711         (cgraph_create_edge, cgraph_create_indirect_edge,
11712         cgraph_create_edge_including_clones, cgraph_clone_node): Update
11713         prototype.
11714         * tree-emutls.c (gen_emutls_addr): Update.
11715         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
11716         loop_nest; handle indirect calls, too.
11717         (clone_inlined_nodes): Do not care about updating inline summaries.
11718         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
11719         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
11720         stream call_stmt_size/call_stmt_time/loop_nest.
11721         * ipa-inline.c (edge_badness): Update.
11722         (ipa_inline): dump summaries after inlining.
11723         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
11724         New.
11725         (inline_edge_summary): New function.
11726         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
11727         (inline_edge_removal_hook): Handle edge summaries.
11728         (inline_edge_duplication_hook): New hook.
11729         (inline_summary_alloc): Alloc hooks.
11730         (initialize_growth_caches): Do not register removal hooks.
11731         (free_growth_caches); Do not free removal hook.
11732         (dump_inline_edge_summary): New function.
11733         (dump_inline_summary): Use it.
11734         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
11735         (inline_update_callee_summaries): New function.
11736         (inline_merge_summary): Use it.
11737         (do_estimate_edge_time, do_estimate_edge_growth): Update.
11738         (read_inline_edge_summary): New function.
11739         (inline_read_section): Use it.
11740         (write_inline_edge_summary): New function.
11741         (inline_write_summary): Use it.
11742         (inline_free_summary): Free edge new holders.
11743         * tree-inline.c (copy_bb): Update.
11744
11745 2011-04-26  Jason Merrill  <jason@redhat.com>
11746
11747         * tree-eh.c (lower_try_finally_switch): Create the label along with
11748         the CASE_LABEL_EXPR.
11749
11750 2011-04-26  David S. Miller  <davem@davemloft.net>
11751             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11752
11753         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
11754         * configure: Regenerate.
11755
11756 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11757
11758         PR target/48258
11759         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
11760         reduction.
11761         (VEC_reduc): New code iterator and splitters for vector reduction.
11762         (VEC_reduc_name): Ditto.
11763         (VEC_reduc_rtx): Ditto.
11764         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
11765         (reduc_<VEC_reduc_name>_v4sf): Ditto.
11766
11767         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11768         support for extracting SF on VSX.
11769
11770         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
11771         generating xscvspdp.
11772         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
11773         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
11774         double add, minimum, maximum vector reduction.
11775         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
11776         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
11777         optimize double vector reduction.
11778         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
11779
11780 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
11781
11782         * config/fr30/fr30.h (inhibit_libc): Don't define.
11783         * config/m32r/m32r-protos.h: Correct comment.
11784         * config/v850/v850.h (GHS_default_section_names,
11785         GHS_current_section_names): Use tree, not union tree_node *.
11786
11787 2011-04-26  Xinliang David Li  <davidxl@google.com>
11788
11789         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
11790         * c-family/c-opts.c (c_common_handle_option): Set
11791         warn_maybe_uninitialized.
11792         * opts.c (common_handle_option): Ditto.
11793         * common.opt:  New option.
11794         * tree-ssa.c (warn_uninit): Add one more parameter.
11795         (warn_uninitialized_var): Pass warning code.
11796         * tree-flow.h: Interface change.
11797
11798 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11799
11800         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
11801         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
11802         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
11803
11804 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11805
11806         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
11807         * config/mips/mips.opt (mmips-tfile): Remove.
11808
11809         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
11810         mips-tdump reference to ...
11811         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
11812         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
11813         reference by Tru64 UNIX.
11814
11815 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
11816
11817         PR debug/48768
11818         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
11819         is error_mark_node, set value to NULL.
11820
11821         PR tree-optimization/48734
11822         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
11823         if return value from maybe_fold_*_comparsions isn't something
11824         the code is prepared to handle.
11825
11826 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
11827
11828         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
11829         mode check.
11830         (ext_QIreg_nomode_operands): Remove.
11831         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
11832         (*andsi_1): Ditto.
11833         (*andhi_1): Ditto.
11834
11835 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
11836
11837         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
11838
11839 2011-04-26  Richard Guenther  <rguenther@suse.de>
11840
11841         * c-typeck.c (build_unary_op): Do not expand array-refs via
11842         pointer arithmetic.  Only adjust qualifiers for function types.
11843
11844 2011-04-26  Richard Guenther  <rguenther@suse.de>
11845
11846         PR middle-end/48694
11847         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
11848         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
11849         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
11850         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
11851
11852 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
11853
11854         * doc/extend.texi: Document __underlying_type.
11855
11856 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
11857
11858         * config/rs6000/titan.md (automata_option "progress"): Remove.
11859
11860 2011-04-25  Jeff Law  <law@redhat.com>
11861
11862         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
11863
11864 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11865
11866         * system.h (ENUM_BITFIELD): Remove.
11867
11868 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
11869             Eric Botcazou  <ebotcazou@adacore.com>
11870
11871         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
11872         for STORE_FLAG_VALUE==-1 case.
11873
11874 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
11875
11876         PR target/43804
11877         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
11878         LEGITIMATE_PIC_OPERAND_P.
11879
11880 2011-04-24  Jan Hubicka  <jh@suse.cz>
11881
11882         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
11883         WPA hack.
11884         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
11885         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
11886         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
11887         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
11888         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
11889         Sanity check predicate length.
11890         (remap_predicate): Likewise; sanity check jump functions.
11891         (inline_read_section, inline_write_summary): Sanity check
11892         predicate length.
11893
11894 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
11895
11896         PR other/48748
11897         * doc/extend.texi (Type Traits): Document __is_standard_layout,
11898         __is_literal_type, and __is_trivial; update throughout about
11899         possibly cv-qualified void types.
11900
11901 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
11902
11903         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
11904         testsuite and make it version agnostic.
11905
11906 2011-04-22  Jan Hubicka  <jh@suse.cz>
11907
11908         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
11909
11910 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
11911
11912         PR c/48685
11913         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
11914         to VOID_TYPE even around MODIFY_EXPR.
11915
11916 2011-04-22  Mike Stump  <mikestump@comcast.net>
11917
11918         * gensupport.c (read_md_rtx): Fix typo in comment.
11919         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
11920         comment.
11921
11922 2011-04-22  Jan Hubicka  <jh@suse.cz>
11923
11924         * gengtype.c (open_base_files): Add ipa-inline.h include.
11925         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
11926         ipa-prop.c; update all uses.
11927         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
11928         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
11929         merge summary of inlined function into former caller.
11930         * ipa-inline.c (max_benefit): Remove.
11931         (edge_badness): Compensate for removal of benefits.
11932         (update_caller_keys): Use
11933         reset_node_growth_cache/reset_edge_growth_cache.
11934         (update_callee_keys): Likewise.
11935         (update_all_callee_keys): Likewise.
11936         (inline_small_functions): Do not collect max_benefit; do not reset
11937         estimated_growth; call free_growth_caches and initialize_growth_caches.
11938         * ipa-inline.h (struct condition, type clause_t, struct predicate,
11939         struct size_time_entry): New structures.
11940         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
11941         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
11942         and estimated_growth.
11943         (edge_growth_cache_entry): New structure.
11944         (node_growth_cache, edge_growth_cache): New global vars.
11945         (estimate_growth): Turn into inline.
11946         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
11947         initialize_growth_caches, free_growth_caches): Declare.
11948         (estimate_edge_growth): Rewrite.
11949         (estimate_edge_time): Implement as inline cache lookup.
11950         (reset_node_growth_cache, reset_edge_growth_cache): New inline
11951         functions.
11952         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
11953         (NUM_CONDITIONS): New constant.
11954         (predicate_conditions): New enum.
11955         (IS_NOT_CONSTANT): New constant.
11956         (edge_removal_hook_holder): New var.
11957         (node_growth_cache, edge_growth_cache): New global vars.
11958         (true_predicate, single_cond_predicate, false_predicate,
11959         not_inlined_predicate, add_condition, add_clause, and_predicates,
11960         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
11961         dump_clause, dump_predicate, account_size_time,
11962         evaulate_conditions_for_edge): New functions.
11963         (inline_summary_alloc): Move to heap.
11964         (inline_node_removal_hook): Clear condition and entry vectors.
11965         (inline_edge_removal_hook): New function.
11966         (initialize_growth_caches, free_growth_caches): New function.
11967         (dump_inline_summary): Update.
11968         (edge_execution_predicate): New function.
11969         (will_be_nonconstant_predicate): New function.
11970         (estimate_function_body_sizes): Compute BB and constantness predicates.
11971         (compute_inline_parameters): Do not clear estimated_growth.
11972         (estimate_edge_size_and_time): New function.
11973         (estimate_calls_size_and_time): New function.
11974         (estimate_callee_size_and_time): New function.
11975         (remap_predicate): New function.
11976         (inline_merge_summary): New function.
11977         (do_estimate_edge_time): New function based on...
11978         (estimate_edge_time): ... this one.
11979         (do_estimate_edge_growth): New function.
11980         (do_estimate_growth): New function based on....
11981         (estimate_growth): ... this one.
11982         (inline_analyze_function): Analyze after deciding on jump functions.
11983         (inline_read_section): New function.
11984         (inline_read_summary): Use it.
11985         (inline_write_summary): Write all the new data.
11986         * ipa-prop.c (ipa_get_param_decl_index): Export.
11987         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
11988         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
11989         Declare.
11990         (ipa_get_lattice): Move here from ipa-cp.c
11991         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
11992         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
11993         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
11994         cgraph_edge_inlinable_p): Remove.
11995         * cgraphunit.c: Include ipainline.h
11996         (cgraph_process_new_functions): Update call of
11997         compute_inline_parameters.
11998
11999 2011-04-22  Richard Guenther  <rguenther@suse.de>
12000
12001         * tree.c (build_int_cst): Properly create canonicalized integer
12002         constants.
12003         (build_int_cst_type): Remove scary comments.
12004
12005 2011-04-22  Xinliang David Li  <davidxl@google.com>
12006
12007         * toplev.c (process_options): Enable -Werror=coverage-mismatch
12008         by default when -Wno-error is not specified.
12009         * opts-global.c (decode_options): Remove call to
12010         control_warning_options.
12011
12012 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
12013
12014         PR tree-optimization/48717
12015         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
12016         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
12017
12018 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
12019
12020         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
12021         definition where used.
12022
12023 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
12024
12025         PR c/48716
12026         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
12027         TREE_STATIC variables declared inside of some OpenMP construct.
12028
12029 2011-04-22  Martin Jambor  <mjambor@suse.cz>
12030
12031         PR middle-end/48585
12032         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
12033
12034 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
12035
12036         PR c/36750
12037         * c-typeck.c (pop_init_level): Do not warn about initializing
12038         with ` = {0}'.
12039
12040 2011-04-22  Alan Modra  <amodra@gmail.com>
12041
12042         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
12043         when returning call_cookie.
12044         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
12045         pointers, to functions with no more vector args than the current
12046         function, and some non-local calls for ABI_V4.
12047         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
12048         sibcall_nonlocal_aix64): Combine to ..
12049         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
12050         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
12051         (sibcall_value_nonlocal_aix<mode>): ..likewise.
12052         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
12053         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
12054         operand.
12055         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
12056         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
12057         sibcall_value_symbolic_64): Delete.
12058
12059 2011-04-21  Xinliang David Li  <davidxl@google.com>
12060
12061         * cgraph.h: Remove pid.
12062         * cgraph.c: Remove pid.
12063         * value-prof.c (init_node_map): New function.
12064         (del_node_map): New function.
12065         (find_func_by_funcdef_no): New function.
12066         (gimple_ic_transform): Call new function.
12067         * cgraphunit.c (cgraph_finalize_function): Remove pid.
12068         * function.c (get_last_funcdef_no): New function.
12069         * function.h (get_last_funcdef_no): New function.
12070         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
12071         to libgcov function.
12072         (tree-profiling): Call node map init and delete function.
12073
12074 2011-04-21  Ian Lance Taylor  <iant@google.com>
12075
12076         * godump.c (go_format_type): Use exported Go name for anonymous
12077         field name.
12078
12079 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12080
12081         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
12082         Call builtin_function_type_list instead of builtin_function_type.
12083         (UNARY, BINARY, TRINARY, QUAD): Likewise.
12084
12085 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12086
12087         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
12088         build_function_type_list instead of build_function_type.
12089         Delete variable `endlink'.
12090
12091 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12092
12093         * config/s390/s390.c (s390_init_builtins): Call
12094         build_function_type_list instead of build_function_type.
12095
12096 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12097
12098         * config/ia64/ia64.c (ia64_init_builtins): Call
12099         build_function_type_list instead of builtin_function_type.
12100
12101 2011-04-21  Easwaran Raman  <eraman@google.com>
12102
12103         * cfgexpand.c (stack_var): Remove OFFSET...
12104         (add_stack_var): ...and its reference here...
12105         (expand_stack_vars): ...and here.
12106         (stack_var_cmp): Sort by descending order of size.
12107         (partition_stack_vars): Change heuristic.
12108         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
12109         (dump_stack_var_partition): Add newline after each partition.
12110
12111 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
12112             Jeff Law  <law@redhat.com>
12113
12114         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
12115         * gengtype.c (matching_file_name_substitute): Likewise.
12116
12117 2011-04-21  Richard Guenther  <rguenther@suse.de>
12118
12119         PR lto/48703
12120         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
12121
12122 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
12123
12124         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
12125
12126 2011-04-21  Richard Guenther  <rguenther@suse.de>
12127
12128         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
12129         file name.
12130
12131 2011-04-21  Richard Guenther  <rguenther@suse.de>
12132
12133         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12134         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
12135         Use DECL_P, not SSA_VAR_P.
12136         (ptr_derefs_may_alias_p): Likewise.
12137         (ptr_deref_may_alias_ref_p_1): Likewise.
12138         (decl_refs_may_alias_p): Likewise.
12139         (refs_may_alias_p_1): Likewise.
12140         (ref_maybe_used_by_call_p_1): Likewise.
12141         (call_may_clobber_ref_p_1): Likewise.
12142         (indirect_ref_may_alias_decl_p): Assume indirect refrences
12143         are either MEM_REF or TARGET_MEM_REF.
12144         (indirect_refs_may_alias_p): Likewise.
12145         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
12146         for MEM_EXPR of indirect calls.
12147
12148 2011-04-21  Tristan Gingold  <gingold@adacore.com>
12149
12150         * vmsdbgout.c (write_srccorr): Compute file length from the string.
12151         (dst_file_info_struct): Remove flen field.
12152         (lookup_filename): Remove code that set flen field.
12153
12154 2011-04-21  Tristan Gingold  <gingold@adacore.com>
12155
12156         * config/ia64/ia64.c (ia64_start_function): Add a guard.
12157
12158 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
12159
12160         PR target/48708
12161         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
12162         vec_extract and vec_concat for non-SSE4_1 targets.
12163
12164 2011-04-21  Richard Guenther  <rguenther@suse.de>
12165
12166         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
12167         return statements.
12168
12169 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
12170
12171         * config/i386/cygming.h (union tree_node, TREE): Don't define or
12172         undefine.
12173         (FILE): Don't undefine.
12174
12175 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
12176
12177         * config/alpha/alpha.c (struct machine_function): Use rtx, not
12178         struct rtx_def *.
12179         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
12180         struct rtx_def *.
12181         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
12182         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
12183         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
12184         rtx_def *.
12185         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
12186         definitions where used.
12187         * config/microblaze/microblaze.h (struct microblaze_args): Use
12188         rtx, not struct rtx_def *.
12189         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
12190         rtx_def *.
12191         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
12192         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
12193         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
12194         not struct rtx_def *.
12195         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
12196         struct rtx_def *.
12197         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
12198         rtx_def *.
12199         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
12200
12201 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
12202
12203         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
12204         operand_equal_p to compare DR_BASE_ADDRESSes.
12205         (vect_check_interleaving): Likewise.
12206
12207 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
12208
12209         PR target/46329
12210         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
12211         for all Neon struct constants.
12212
12213 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
12214
12215         * target.def (legitimate_constant_p): New hook.
12216         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
12217         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
12218         * doc/tm.texi: Regenerate.
12219         * hooks.h (hook_bool_mode_rtx_true): Declare.
12220         * hooks.c (hook_bool_mode_rtx_true): Define.
12221         * system.h (LEGITIMATE_CONSTANT_P): Poison.
12222         * calls.c (precompute_register_parameters): Replace uses of
12223         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
12224         (emit_library_call_value_1): Likewise.
12225         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
12226         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
12227         * ira-costs.c (scan_one_insn): Likewise.
12228         * recog.c (general_operand, immediate_operand): Likewise.
12229         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
12230         * reload1.c (init_eliminable_invariants): Likewise.
12231
12232         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
12233         mode argument.
12234         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
12235         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
12236         argument.
12237         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12238         * config/alpha/predicates.md (input_operand): Update call to
12239         alpha_legitimate_constant_p.
12240
12241         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
12242         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
12243         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
12244         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12245         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
12246         (arm_legitimate_constant_p): New functions.
12247         (arm_cannot_force_const_mem): Make static.
12248
12249         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
12250
12251         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
12252         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
12253         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
12254         instead of bfin_legitimate_constant_p.
12255         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
12256         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12257
12258         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
12259
12260         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
12261
12262         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
12263         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
12264         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12265         (frv_legitimate_constant_p): Make static.  Add a mode argument.
12266
12267         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
12268         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
12269         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
12270
12271         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
12272         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
12273         * config/i386/i386.c (legitimate_constant_p): Rename to...
12274         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
12275         argument.
12276         (ix86_cannot_force_const_mem): Update accordingly.
12277         (ix86_legitimate_address_p): Likewise.
12278         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12279         * config/i386/i386.md: Update commentary.
12280
12281         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
12282         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
12283         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12284         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
12285
12286         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
12287
12288         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
12289         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
12290         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12291         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
12292
12293         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
12294         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
12295         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
12296
12297         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
12298         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12299         (m32r_legitimate_constant_p): New function.
12300
12301         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
12302         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
12303         LEGITIMATE_CONSTANT_P.
12304         (LEGITIMATE_CONSTANT_P): Delete.
12305         * config/m68k/m68k.c (m68k_expand_prologue): Call
12306         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
12307         (m68k_legitimate_constant_p): New function.
12308         * config/m68k/m68k.md: Update comments.
12309
12310         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
12311         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12312         (mcore_legitimate_constant_p): New function.
12313
12314         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
12315         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
12316         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
12317         Add a mode argument.
12318         (mep_legitimate_address): Update accordingly.
12319         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12320
12321         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
12322         Delete.
12323         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
12324         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
12325         static.  Check OP's mode for VOIDmode.
12326         (microblaze_legitimate_constant_p): New function.
12327         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12328
12329         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
12330         * config/mips/mips.c (mips_legitimate_constant_p): New function.
12331         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
12332         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12333         * config/mips/predicates.md: Update comments.
12334
12335         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
12336         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
12337         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12338         (mmix_legitimate_constant_p): Make static, return a bool, and take
12339         a mode argument.
12340         (mmix_print_operand_address): Update accordingly.
12341
12342         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
12343         Delete.
12344         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
12345         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
12346         static.  Add a mode argument.
12347         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12348
12349         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
12350
12351         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
12352         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12353         (pa_legitimate_constant_p): New function.
12354
12355         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
12356
12357         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
12358         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12359         (pdp11_legitimate_constant_p): New function.
12360
12361         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
12362         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12363         (rs6000_legitimate_constant_p): New function.
12364
12365         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
12366         (rx_legitimate_constant_p): ...this.
12367         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
12368         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
12369         (rx_legitimate_constant_p): ...this.
12370         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12371         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
12372
12373         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
12374         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
12375         * config/s390/s390.c (legitimate_constant_p): Rename to...
12376         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
12377         and add a mode argument.
12378         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12379
12380         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
12381
12382         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
12383         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12384         (sh_legitimate_constant_p): New function.
12385
12386         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
12387         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
12388         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12389         (legitimate_constant_p): Rename to...
12390         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
12391         argument.
12392         (constant_address_p): Update accordingly.
12393
12394         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
12395         argument and return a bool.
12396         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
12397         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12398         (spu_legitimate_constant_p): Add a mode argument and return a bool.
12399         (spu_rtx_costs): Update accordingly.
12400         * config/spu/predicates.md (vec_imm_operand): Likewise.
12401
12402         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
12403
12404         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
12405         * config/v850/v850.c (v850_legitimate_constant_p): New function.
12406         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12407
12408         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
12409         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
12410         * config/vax/vax.c (legitimate_constant_p): Likewise.
12411
12412         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
12413         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12414         (xtensa_legitimate_constant_p): New function.
12415
12416 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
12417
12418         * target.def (cannot_force_const_mem): Add a mode argument.
12419         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
12420         * doc/tm.texi: Regenerate.
12421         * hooks.h (hook_bool_mode_rtx_false): Declare.
12422         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
12423         (hook_bool_mode_const_rtx_true): Likewise.
12424         (hook_bool_mode_rtx_false): New function.
12425         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
12426         to be non-VOID.  Update call to cannot_force_const_mem.
12427         (find_reloads): Update accordingly.
12428         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
12429         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
12430         argument.
12431         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
12432         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
12433         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
12434         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
12435         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
12436         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
12437         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
12438         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
12439         (m68k_cannot_force_const_mem): ...this new function.
12440         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
12441         argument.
12442         (mips_const_insns, mips_legitimize_const_move): Update calls.
12443         (mips_secondary_reload_class): Likewise.
12444         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
12445         (pa_cannot_force_const_mem): ...this new function.
12446         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
12447         (rs6000_cannot_force_const_mem): ...this new function.
12448         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
12449         argument.
12450         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
12451         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
12452         to...
12453         (xtensa_cannot_force_const_mem): ...this new function.
12454
12455 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
12456
12457         * config/mips/mips.c (mips16_build_function_stub): Call
12458         build_function_type_list instead of build_function_type.
12459         (mips16_build_call_stub): Likewise.
12460
12461 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
12462
12463         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
12464         instead of build_function_type.
12465
12466 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
12467
12468         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
12469         instead of build_function_type.
12470
12471 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
12472
12473         PR target/48678
12474         * config/i386/i386.md (insv): Change operand 0 constraint to
12475         "register_operand".  Change operand 1 and 2 constraint to
12476         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
12477         * config/i386/sse.md (sse4_1_pinsrb): Export.
12478         (sse2_pinsrw): Ditto.
12479         (sse4_1_pinsrd): Ditto.
12480         (sse4_1_pinsrq): Ditto.
12481         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
12482         * config/i386/i386.c (ix86_expand_pinsr): New.
12483
12484 2011-04-20  Easwaran Raman  <eraman@google.com>
12485
12486         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
12487         containing union type only with -fstrict-aliasing.
12488
12489 2011-04-20  Jim Meyering  <meyering@redhat.com>
12490
12491         Remove useless if-before-free tests.
12492         * calls.c (expand_call, save_area): Likewise.
12493         * cfgcleanup.c (try_forward_edges): Likewise.
12494         * collect2.c (collect_execute): Likewise.
12495         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
12496         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
12497         * coverage.c (coverage_checksum_string): Likewise.
12498         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
12499         * cselib.c (cselib_init): Likewise.
12500         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
12501         (df_set_clean_cfg): Likewise.
12502         * function.c (free_after_compilation): Likewise.
12503         * gcc.c (do_spec_1, main): Likewise.
12504         * gcov.c (create_file_names): Likewise.
12505         * gensupport.c (identify_predicable_attribute): Likewise.
12506         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
12507         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
12508         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
12509         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
12510         * ipa-pure-const.c (local_pure_const): Likewise.
12511         * ipa-reference.c (propagate): Likewise.
12512         * ira-costs.c (free_ira_costs): Likewise.
12513         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
12514         * matrix-reorg.c (mat_free): Likewise.
12515         * prefix.c (get_key_value): Likewise.
12516         * profile.c (compute_value_histograms): Likewise.
12517         * reload1.c (free_reg_equiv): Likewise.
12518         * sched-deps.c (free_deps): Likewise.
12519         * sel-sched-ir.c (fence_clear): Likewise.
12520         * sese.c (set_rename, if_region_set_false_region): Likewise.
12521         * tree-data-ref.c (free_rdg): Likewise.
12522         * tree-eh.c (lower_try_finally): Likewise.
12523         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
12524         * tree-ssa-live.c (delete_var_map): Likewise.
12525         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
12526         * tree-ssa-pre.c (phi_trans_add): Likewise.
12527
12528 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
12529
12530         PR tree-optimization/48611
12531         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
12532         beyond ERT_MUST_NOT_THROW region.
12533
12534 2011-04-20  Catherine Moore  <clm@codesourcery.com>
12535
12536         * config/mips/mips.opt (mfix-24k): New.
12537         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
12538         * config/mips/mips.md (length): Increase by 4 for stores if
12539         fixing 24K errata.
12540         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
12541         all noreorder if fixing 24K errata.
12542         * doc/invoke.texi: Document mfix-24k.
12543
12544 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
12545
12546         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
12547         quad-word modes, reduce to 9-bit index range when above 1016 limit.
12548
12549 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
12550
12551         * config/arm/arm.c (arm_gen_constant): Move movw support ....
12552         (const_ok_for_op): ... to here.
12553
12554 2011-04-20  Kai Tietz  <ktietz@redhat.com>
12555
12556         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
12557         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
12558
12559 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
12560
12561         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
12562
12563 2011-04-20  Richard Guenther  <rguenther@suse.de>
12564
12565         PR tree-optimization/47892
12566         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
12567         are if-convertible.
12568
12569 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
12570
12571         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
12572
12573 2011-04-20  Tristan Gingold  <gingold@adacore.com>
12574
12575         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
12576
12577 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
12578
12579         PR target/18145
12580
12581         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
12582         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
12583         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12584         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
12585         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
12586
12587         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
12588         New prototype.
12589
12590         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
12591         (avr_asm_named_section, avr_asm_output_aligned_common,
12592         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
12593         New functions to update...
12594         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
12595         (avr_asm_init_sections): Overwrite section callbacks for
12596         data_section, bss_section.
12597         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
12598         from here to...
12599         (avr_file_end): ...here.
12600
12601 2011-04-20  Richard Guenther  <rguenther@suse.de>
12602
12603         PR middle-end/48695
12604         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
12605         objects and types here.  Adjust for their offset before comparing.
12606
12607 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
12608
12609         * tree-vect-stmts.c (vectorizable_store): Only chain one related
12610         statement per copy.
12611
12612 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
12613
12614         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
12615         (GIMPLE_H): Include $(INTERNAL_FN_H).
12616         (OBJS-common): Add internal-fn.o.
12617         (internal-fn.o): New rule.
12618         * internal-fn.def: New file.
12619         * internal-fn.h: Likewise.
12620         * internal-fn.c: Likewise.
12621         * gimple.h: Include internal-fn.h.
12622         (GF_CALL_INTERNAL): New gf_mask.
12623         (gimple_statement_call): Put fntype into a union with a new
12624         internal_fn field.
12625         (gimple_build_call_internal): Declare.
12626         (gimple_build_call_internal_vec): Likewise.
12627         (gimple_call_same_target_p): Likewise.
12628         (gimple_call_internal_p): New function.
12629         (gimple_call_internal_fn): Likewise.
12630         (gimple_call_fntype): Return null for internal calls.
12631         (gimple_call_set_fntype): Assert that the function is not internal.
12632         (gimple_call_set_fn): Likewise.
12633         (gimple_call_set_fndecl): Likewise.
12634         (gimple_call_set_internal_fn): New function.
12635         (gimple_call_addr_fndecl): Handle null functions.
12636         (gimple_call_return_type): Likewise null types.
12637         * gimple.c (gimple_build_call_internal_1): New function.
12638         (gimple_build_call_internal): Likewise.
12639         (gimple_build_call_internal_vec): Likewise.
12640         (gimple_call_same_target_p): Likewise.
12641         (gimple_call_flags): Handle calls to internal functions.
12642         (gimple_call_fnspec): New function.
12643         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
12644         (gimple_has_side_effects): Handle null functions.
12645         (gimple_rhs_has_side_effects): Likewise.
12646         (gimple_call_copy_skip_args): Handle calls to internal functions.
12647         * cfgexpand.c (expand_call_stmt): Likewise.
12648         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
12649         * gimple-fold.c (gimple_fold_call): Handle null functions.
12650         (gimple_fold_stmt_to_constant_1): Don't fold
12651         calls to internal functions.
12652         * gimple-low.c (gimple_check_call_args): Handle calls to internal
12653         functions.
12654         * gimple-pretty-print.c (dump_gimple_call): Likewise.
12655         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
12656         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
12657         (do_warn_unused_result): Likewise.
12658         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
12659         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
12660         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
12661         the target of a call.
12662         (initialize_hash_element): Update accordingly.
12663         (hashable_expr_equal_p): Use gimple_call_same_target_p.
12664         (iterative_hash_hashable_expr): Handle calls to internal functions.
12665         (print_expr_hash_elt): Likewise.
12666         * tree-ssa-pre.c (can_value_number_call): Likewise.
12667         (eliminate): Handle null functions.
12668         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
12669         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
12670         (find_func_aliases): Likewise.
12671         * value-prof.c (gimple_ic_transform): Likewise.
12672         (gimple_indirect_call_to_profile): Likewise.
12673         * lto-streamer-in.c (input_gimple_stmt): Likewise.
12674         * lto-streamer-out.c (output_gimple_stmt): Likewise.
12675
12676 2011-04-19  Jan Hubicka  <jh@suse.cz>
12677
12678         * ipa-inline-transform.c (save_inline_function_body): Add comments.
12679         * ipa-inline.c (inline_small_functions): Compute summaries first,
12680         populate heap later.
12681
12682 2011-04-19  Jan Hubicka  <jh@suse.cz>
12683
12684         * cgraph.h (save_inline_function_body): Remove.
12685         * ipa-inline-transform.c: New file, broke out of...
12686         * ipa-inline.c: ... this one; Update toplevel comment.
12687         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
12688         make global.
12689         (update_noncloned_frequencies): Move to ipa-inline-transform.c
12690         (cgraph_mark_inline_edge): Rename to inline_call; move to
12691         ipa-inline-transform.c.
12692         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
12693         move to ipa-inline-transform.c
12694         (recursive_inlining, inline_small_functions, flatten_function,
12695         ipa_inline, inline_always_inline_functions,
12696         early_inline_small_functions): Update.
12697         (inline_transform): Move to ipa-inline-transform.c.
12698         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
12699         Declare.
12700         * Makefile.in (ipa-inline-transform.o): New file.
12701         * cgraphunit.c (save_inline_function_body): Move to
12702         ipa-inline-transform.c
12703
12704 2011-04-19  DJ Delorie  <dj@redhat.com>
12705
12706         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
12707         registers if we already know there aren't any.
12708         (m32c_emit_epilogue): Don't emit a barrier here.
12709         (m32c_emit_eh_epilogue): Likewise.
12710         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
12711         operands at expand time.
12712         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
12713         int" wchar type.
12714         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
12715         duplicates.  Provide aliases instead.
12716         * config/m32c/prologue.md (eh_return): Emit a barrier here.
12717         (eh_epilogue): Add a "(return)" here as a hint to other parts of
12718         the compiler.
12719
12720 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
12721
12722         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
12723         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
12724         (general_or_i64_p, sparc_register_move_cost): New function.
12725
12726 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12727
12728         * doc/install.texi (Configuration, --enable-threads): Remove mach.
12729         Add lynx, mipssde.  Sort table.
12730
12731 2011-04-19  Xinliang David Li  <davidxl@google.com>
12732
12733         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
12734         not negative.
12735
12736 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
12737
12738         PR target/48678
12739         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
12740         is a SUBREG with non-MODE_INT mode inside of it.
12741
12742 2011-04-19  Martin Jambor  <mjambor@suse.cz>
12743
12744         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
12745         also according to actual contants.
12746         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
12747         (gimple_fold_call): Use it.
12748         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
12749
12750 2011-04-19  Martin Jambor  <mjambor@suse.cz>
12751
12752         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
12753         non-pointer assignments.
12754
12755 2011-04-19  Martin Jambor  <mjambor@suse.cz>
12756
12757         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
12758         account anc_offset and otr_type from the indirect edge info.
12759         * ipa-prop.c (get_ancestor_addr_info): New function.
12760         (compute_complex_ancestor_jump_func): Assignment analysis moved to
12761         get_ancestor_addr_info, call it.
12762         (ipa_note_param_call): Do not initialize information about polymorphic
12763         calls, return the indirect call graph edge.  Remove the last
12764         parameter, adjust all callers.
12765         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
12766         parameters.  Initialize polymorphic information in the indirect edge.
12767
12768 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12769
12770         PR lto/48148
12771         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
12772         the types if they have different enumeration identifiers.
12773
12774 2011-04-19  Jan Hubicka  <jh@suse.cz>
12775
12776         * cgraph.h (cgraph_optimize_for_size_p): Declare.
12777         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
12778         * predict.c (cgraph_optimize_for_size_p): Break out from ...
12779         (optimize_function_for_size_p) ... here.
12780
12781 2011-04-19  Richard Guenther  <rguenther@suse.de>
12782
12783         PR lto/48207
12784         * tree.c (free_lang_data): Do not reset the decl-assembler-name
12785         langhook.
12786
12787 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12788
12789         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
12790         if DECL_NO_INLINE_WARNING_P is set on the function.
12791
12792 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
12793
12794         PR fortran/47976
12795         * reload1.c (inc_for_reload): Return void. All callers changed.
12796         (emit_input_reload_insns): Don't try to delete previous output
12797         reloads to a register, or record spill_reg_store for autoincs.
12798
12799 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
12800
12801         * gengtype.h: Updated copyright year.
12802         (struct input_file_st): Add inpisplugin field.
12803         (type_fileloc): New function.
12804         * gengtype.c
12805         (write_typed_struct_alloc_def): Add gcc_assert.
12806         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
12807         (write_typed_alloc_defns): Don't output for plugin files.
12808         (input_file_by_name): Clear inpisplugin field.
12809         (main): Set inpisplugin field for plugin files.
12810
12811 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
12812
12813         * gengtype-state.c (string_eq): New.
12814         (read_state): Use string_eq instead of strcmp when creating the
12815         state_ident_tab.
12816
12817 2011-04-19  Wei Guozhi  <carrot@google.com>
12818
12819         PR target/47855
12820         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
12821         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
12822         linkage.
12823         * config/arm/constraints.md (Uu): New constraint.
12824         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
12825
12826 2011-04-19  Tristan Gingold  <gingold@adacore.com>
12827
12828         * config.gcc (-*-*-*vms): Added.
12829         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
12830         definitions moved.
12831         * config/vms/vms-ld.c: New file.
12832         * config/vms/vms-ar.c: New file.
12833         * config/vms/t-vmsnative: New file.
12834
12835 2011-04-18  Xinliang David Li  <davidxl@google.com>
12836
12837         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
12838
12839 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
12840
12841         PR middle-end/48661
12842         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
12843         if TREE_TYPE (v) is non-NULL.
12844
12845         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
12846         gimple_get_virt_mehtod_for_binfo.
12847         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
12848         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
12849         callers.
12850         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
12851
12852 2011-04-18  Michael Matz  <matz@suse.de>
12853             Steve Ellcey  <sje@cup.hp.com>
12854
12855         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
12856         use its mode as source mode if it isn't VOIDmode.
12857
12858 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
12859
12860         * doc/passes.texi: Fill crossref nodes.
12861
12862 2011-04-18  Jim Meyering  <meyering@redhat.com>
12863
12864         Fix doubled-word typos in comments and strings
12865         * config/alpha/vms-unwind.h: s/for for/for/
12866         * config/arm/unwind-arm.h: Likewise.
12867         * config/microblaze/microblaze.c: Likewise.
12868         * config/sh/constraints.md: s/in in/in/
12869         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
12870
12871 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
12872
12873         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
12874         (AVX_FLOAT_MODE_P): Ditto.
12875         (AVX128_VEC_FLOAT_MODE_P): Ditto.
12876         (AVX256_VEC_FLOAT_MODE_P): Ditto.
12877         (AVX_VEC_FLOAT_MODE_P): Ditto.
12878         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
12879         (UNSPEC_MASKSTORE): Ditto.
12880         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
12881         Merge from <sse>_movmsk<ssemodesuffix> and
12882         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
12883         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
12884         iterator.
12885         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
12886         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
12887         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
12888
12889 2011-04-18  Jan Hubicka  <jh@suse.cz>
12890
12891         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
12892
12893         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
12894         (want_inline_function_called_once_p): Break out the logic from
12895         ipa_inline.
12896         (edge_badness): Ensure that profile is not misupdated.
12897         (lookup_recursive_calls): Prioritize by call frequencies.
12898         (inline_small_functions): Move program size estimates here;
12899         actually process whole queue even when unit growth has been
12900         met. (to properly compute inline_failed reasons and for the
12901         case unit size decrease.) Revisit comments on recursive inlining.
12902         (ipa_inline): Remove unit summary code; first inline hot calls
12903         of functions called once, cold calls next.
12904         (order, nnodes): Remove unused variables.
12905         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
12906         (GTFILES): Remove ipa-inline.c
12907         * sel-sched.c (fill_insns): Silence uninitialized var warning.
12908
12909 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12910
12911         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
12912
12913 2011-04-18  Jie Zhang  <jie@codesourcery.com>
12914             Richard Earnshaw  <rearnsha@arm.com>
12915
12916         * arm.c (neon_builtin_type_bits): Remove.
12917         (typedef enum neon_builtin_mode): New.
12918         (T_MAX): Don't define.
12919         (typedef enum neon_builtin_datum): Remove bits, codes[],
12920         num_vars and base_fcode.  Add mode, code and fcode.
12921         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
12922         VAR10): Change accordingly.
12923         (neon_builtin_data[]): Change accordingly
12924         (arm_init_neon_builtins): Change accordingly.
12925         (neon_builtin_compare): Remove.
12926         (locate_neon_builtin_icode): Remove.
12927         (arm_expand_neon_builtin): Change accordingly.
12928
12929         * arm.h (enum arm_builtins): Move to ...
12930         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
12931
12932         * arm.c (arm_builtin_decl): Declare.
12933         (TARGET_BUILTIN_DECL): Define.
12934         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
12935         (arm_builtin_decls[]): New.
12936         (arm_init_neon_builtins): Store builtin declarations in
12937         arm_builtin_decls[].
12938         (arm_init_tls_builtins): Likewise.
12939         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
12940         (arm_builtin_decl): New.
12941
12942 2011-04-18  Richard Guenther  <rguenther@suse.de>
12943
12944         * tree.c (upper_bound_in_type): Build properly canonicalized
12945         INTEGER_CSTs.
12946         (lower_bound_in_type): Likewise.
12947
12948 2011-04-18  Richard Guenther  <rguenther@suse.de>
12949
12950         * gimple.h (gimple_call_addr_fndecl): New function.
12951         (gimple_call_fndecl): Use it.
12952         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
12953         for direct calls.
12954         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
12955         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
12956
12957 2011-04-18  Richard Guenther  <rguenther@suse.de>
12958
12959         PR middle-end/48650
12960         * tree.c (build_string): STRING_CST is now derived from tree_typed.
12961
12962 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12963
12964         PR lto/48492
12965         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
12966         DECL_IN_CONSTANT_POOL without RTL.
12967
12968 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
12969             Ira Rosen  <ira.rosen@linaro.org>
12970
12971         PR target/48252
12972         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
12973         to match neon_vzip/vuzp/vtrn_internal.
12974         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
12975         outputs explicitly dependent on both inputs.
12976         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
12977
12978 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
12979
12980         PR tree-optimization/48616
12981         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
12982         whether the shift is by scalar or vector based on whether all SLP
12983         scalar stmts have the same rhs.
12984
12985 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
12986
12987         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
12988         memory operands.
12989
12990 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
12991
12992         PR target/43700
12993         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
12994         registers.
12995
12996 2011-04-17  Jan Hubicka  <jh@suse.cz>
12997
12998         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
12999         * cgrpahunit.c (cgraph_finalize_function): Do not set
13000         finalized_by_frontend.
13001         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
13002         finalized_by_frontend.
13003
13004 2011-04-17  Jan Hubicka  <jh@suse.cz>
13005
13006         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
13007         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
13008         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
13009         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
13010         method.
13011         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
13012         gimple-fold.c
13013         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
13014
13015 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
13016
13017         PR lto/48538
13018         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
13019         is non-null before accessing it.
13020         (input_cgraph): Remove trailing spaces.
13021
13022 2011-04-17  Revital Eres  <revital.eres@linaro.org>
13023
13024         * params.def (sms-min-sc): New param flag.
13025         * modulo-sched.c (sms_schedule): Use it.
13026         * doc/invoke.texi (sms-min-sc): Document it.
13027
13028 2011-04-17  Jan Hubicka  <jh@suse.cz>
13029
13030         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
13031         present, also set gimple_call_set_cannot_inline.
13032         * ipa-inline.c: Update toplevel comment.
13033         (MAX_TIME): Remove.
13034         (cgraph_clone_inlined_nodes): Fix linebreaks.
13035         (cgraph_check_inline_limits): Restructure to ...
13036         (caller_growth_limits): ... this one; be more tolerant
13037         on growth in nested inline chains; add explanatory comment;
13038         fix stack accounting thinko introduced by previous patch.
13039         (cgraph_default_inline_p): Remove.
13040         (report_inline_failed_reason): New function.
13041         (can_inline_edge_p): New function.
13042         (can_early_inline_edge_p): New function.
13043         (leaf_node_p): Move upwards in file.
13044         (want_early_inline_function_p): New function.
13045         (want_inline_small_function_p): New function.
13046         (want_inline_self_recursive_call_p): New function.
13047         (cgraph_edge_badness): Rename to ...
13048         (edge_badness) ... this one; fix linebreaks.
13049         (update_edge_key): Update call of edge_baddness; add
13050         detailed dump about queue updates.
13051         (update_caller_keys): Use can_inline_edge_p and
13052         want_inline_small_function_p.
13053         (cgraph_decide_recursive_inlining): Rename to...
13054         (recursive_inlining): Use can_inline_edge_p and
13055         want_inline_self_recursive_call_p; simplify and remove no longer
13056         valid FIXME.
13057         (cgraph_set_inline_failed): Remove.
13058         (add_new_edges_to_heap): Use can_inline_edge_p and
13059         want_inline_small_function_p.
13060         (cgraph_decide_inlining_of_small_functions): Rename to ...
13061         (inline_small_functions): ... this one; cleanup; use
13062         can/want predicates; cleanup debug ouput; work edges till fibheap
13063         is exhausted and do not stop once unit growth is reached; remove
13064         later loop processing remaining edges.
13065         (cgraph_flatten): Rename to ...
13066         (flatten_function): ... this one; use can_inline_edge_p
13067         and can_early_inline_edge_p predicates.
13068         (cgraph_decide_inlining): Rename to ...
13069         (ipa_inline): ... this one; remove unreachable nodes before
13070         inlining functions called once; simplify the pass.
13071         (cgraph_perform_always_inlining): Rename to ...
13072         (inline_always_inline_functions): ... this one; use
13073         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
13074         (cgraph_decide_inlining_incrementally): Rename to ...
13075         (early_inline_small_functions): ... this one; simplify
13076         using new predicates; cleanup; make dumps prettier.
13077         (cgraph_early_inlining): Rename to ...
13078         (early_inliner): newer inline regular functions into always-inlines;
13079         fix updating of call stmt summaries.
13080         (pass_early_inline): Update for new names.
13081         (inline_transform): Fix formating.
13082         (gate_cgraph_decide_inlining): Rename to ...
13083         (pass_ipa_inline): ... this one.
13084         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
13085         * ipa-inline-analysis.c (dump_inline_summary): Update.
13086         (compute_inline_parameters): Do not compute disregard_inline_limits;
13087         look for mismatching arguments.
13088         (estimate_growth): Fix handlig of non-trivial self recursion.
13089         (inline_read_summary): Do not read info->disregard_inline_limits.
13090         (inline_write_summary): Do not write info->disregard_inline_limits.
13091         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
13092         and move all checks into can_inline_edge_p predicate; re-enable code
13093         comparing optimization levels.
13094         (expand_call_inline): Do not test inline_forbidden_into_p.
13095         * Makefile.in (ipa-inline.o): Update arguments.
13096
13097 2011-04-17  Revital Eres  <revital.eres@linaro.org>
13098
13099         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
13100
13101 2011-04-17  Revital Eres  <revital.eres@linaro.org>
13102
13103         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
13104
13105 2011-04-17  Michael Matz  <matz@suse.de>
13106
13107         PR tree-optimization/48622
13108         PR lto/48645
13109         * ipa-inline-analysis.c (inline_read_summary): Read size/time
13110         in same order as they're written.
13111
13112 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13113
13114         * config/pa/predicates.md: Reorganize and simplify predicates.
13115         Eliminate duplicate code checks.
13116         (arith_operand): Rename to arith14_operand
13117         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
13118         * config/pa/pa.md: Use renamed operands.
13119         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
13120         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
13121         arith11_operand, adddi3_operand, indexed_memory_operand,
13122         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
13123         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
13124         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
13125         move_dest_operand, move_src_operand, prefetch_cc_operand,
13126         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
13127         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
13128         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
13129         div_operand, int5_operand, movb_comparison_operator,
13130         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
13131         arith_double_operand, ireg_operand, lhs_lshift_operand,
13132         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
13133         integer_store_memory_operand): Likewise.
13134         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
13135         (integer_store_memory_operand, read_only_operand,
13136         function_label_operand, borx_reg_operand,
13137         non_hard_reg_operand): Likewise.
13138         (eq_neq_comparison_operator): Delete unused operator.
13139         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
13140         function_label_operand.
13141         (emit_move_sequence): Likewise.
13142
13143 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
13144
13145         * config/i386/sse.md (sseunpackmode): New mode attribute.
13146         (ssepackmode): Ditto.
13147         (vec_pack_trunc_<mode>): Macroize expander from
13148         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
13149         (vec_unpacks_lo_<mode>): Macroize expander from
13150         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13151         (vec_unpacks_hi_<mode>): Macroize expander from
13152         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13153         (vec_unpacku_lo_<mode>): Macroize expander from
13154         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13155         (vec_unpacku_hi_<mode>): Macroize expander from
13156         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13157         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
13158         ix86_expand_sse4_unpack.
13159         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
13160
13161 2011-04-16  Jan Hubicka  <jh@suse.cz>
13162
13163         * cgraphbuild.c: Include ipa-inline.h.
13164         (reset_inline_failed): Use initialize_inline_failed.
13165         * cgraph.c: Include ipa-inline.h.
13166         (cgraph_create_node_1): Do not initialize estimated_growth.
13167         (initialize_inline_failed): More to ipa-inline-analysis.c
13168         (dump_cgraph_node): Do not dump inline flags.
13169         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
13170         and disregard_inline_limits flags.
13171         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
13172         time, size, estimated_growth.
13173         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
13174         Update.
13175         * cgraphunit.c (cgraph_decide_is_function_needed): Use
13176         DECL_DISREGARD_INLINE_LIMITS.
13177         (cgraph_analyze_function): Do not initialize
13178         node->local.disregard_inline_limits.
13179         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
13180         inlinable, versionable and disregard_inline_limits.
13181         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
13182         cgraph_check_inline_limits, cgraph_default_inline_p,
13183         cgraph_edge_badness, update_caller_keys, update_callee_keys,
13184         add_new_edges_to_heap): Update.
13185         (cgraph_decide_inlining_of_small_function): Update; set
13186         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
13187         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
13188         cgraph_decide_inlining_incrementally): Update.
13189         * ipa-inline.h (inline_summary): Add inlinable, versionable,
13190         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
13191         time, size and estimated_growth parameters.
13192         (estimate_edge_growth): Update.
13193         (initialize_inline_failed): Declare.
13194         * ipa-split.c: Include ipa-inline.h
13195         (execute_split_functions): Update.
13196         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
13197         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
13198         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
13199         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
13200         estimated_growth to INT_MIN.
13201         (inline_node_duplication_hook): Likewise.
13202         (dump_inline_summary): Dump new fields.
13203         (compute_inline_parameters): Update.
13204         (estimate_edge_time, estimate_time_after_inlining,
13205         estimate_size_after_inlining, estimate_growth, inline_read_summary,
13206         inline_write_summary):
13207         (initialize_inline_failed): Move here from cgraph.c.
13208         * tree-sra.c: Include ipa-inline.h.
13209         (ipa_sra_preliminary_function_checks): Update.
13210         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
13211         ipa-inline.h.
13212
13213 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
13214
13215         * config/i386/sse.md (V16): New mode iterator.
13216         (VI1, VI8): Ditto.
13217         (AVXMODEQI, AVXMODEDI): Remove.
13218         (sse2, sse3): New mode attribute.
13219         (mov<mode>): Use V16 mode iterator.
13220         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
13221         (push<mode>1): Use V16 mode iterator.
13222         (movmisalign<mode>): Ditto.
13223         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
13224         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
13225         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
13226         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
13227         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
13228         avx_movdqu<avxmodesuffix>.
13229         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
13230         *avx_movdqu<avxmodesuffix>.
13231         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
13232         avx_lddqu<avxmodesuffix>.
13233         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
13234         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
13235         avx_movnt<AVXMODEDI:mode>.
13236         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
13237         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
13238
13239 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
13240
13241         PR target/48629
13242         * haifa-sched.c (prune_ready_list, schedule_block): Use
13243         sched_pressure_p rather than flag_sched_pressure.
13244
13245 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
13246
13247         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
13248         cgraph_get_node instead of cgraph_get_create_node.
13249
13250 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
13251
13252         * cfgexpand.c (expand_debug_expr): Use
13253         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
13254
13255 2011-04-15  Michael Matz  <matz@suse.de>
13256
13257         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
13258         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
13259         * function.c (gimplify_parameters): Ditto.
13260         * gimplify.c (gimplify_vla_decl): Ditto.
13261
13262         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
13263         (gimple_call_set_alloca_for_var): New inline function.
13264         (gimple_call_alloca_for_var_p): Ditto.
13265         * gimple.c (gimple_build_call_from_tree): Remember
13266         CALL_ALLOCA_FOR_VAR_P state.
13267         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
13268
13269         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
13270         calls if they were for VLA objects.
13271
13272 2011-04-15  Martin Jambor  <mjambor@suse.cz>
13273
13274         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
13275         of ADR_EXPRs.
13276
13277 2011-04-15  Martin Jambor  <mjambor@suse.cz>
13278
13279         PR middle-end/48601
13280         * tree-emutls.c (lower_emutls_function_body): Call
13281         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
13282         result is non-NULL.
13283
13284 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
13285
13286         * c-decl.c (detect_field_duplicates): Call
13287         objc_detect_field_duplicates instead of objc_get_interface_ivars.
13288
13289 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
13290
13291         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
13292         * gimple.c (gimple_asm_clobbers_memory_p): Define.
13293         * ipa-pure-const.c (check_stmt): Call it.
13294         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
13295
13296 2011-04-15  Richard Guenther  <rguenther@suse.de>
13297
13298         PR tree-optimization/48290
13299         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
13300         Properly decide inhibiting propagation based on the valueized
13301         operand.  Do loop-closed SSA form preserving here ...
13302         (init_copy_prop): ... not here.
13303
13304 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
13305
13306         PR target/48612
13307         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
13308         (*ieee_smax<mode>3): Likewise.
13309
13310 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13311
13312         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
13313         Replace match_operand with match_dup for the third operand in
13314         these expanders.
13315
13316 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
13317
13318         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
13319         to track processing of conditionals.  Update all callers.
13320         (try_combine, simplify_if_then_else): Update.
13321
13322 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
13323
13324         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
13325         -fsched-pressure.
13326
13327 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
13328
13329         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
13330         instead of match_operand for operand 3.
13331
13332 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
13333
13334         * recog.h (insn_operand_data): Add an "allows_mem" field.
13335         * genoutput.c (output_operand_data): Initialize it.
13336         * optabs.c (maybe_legitimize_operand_same_code): New function.
13337         (maybe_legitimize_operand): Use it when matching the original
13338         op->value.
13339
13340 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
13341
13342         * gimplify.c: Fix issues in comments throughout.
13343         (voidify_wrapper_expr): Fix long line.
13344         (build_stack_save_restore): Likewise.
13345         (gimplify_loop_expr): Likewise.
13346         (gimplify_compound_lval): Likewise.
13347         (gimplify_init_ctor_eval): Likewise.
13348         (gimplify_modify_expr_rhs): Likewise.
13349         (omp_notice_threadprivate_variable): Likewise.
13350
13351 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
13352
13353         * cfgexpand.c (expand_call_stmt): Convert the function type to the
13354         original one if this is not a builtin function.
13355
13356 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
13357
13358         PR target/48605
13359         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
13360         offset it as needed based on top 2 bits in operands[3], change
13361         MEM mode to SFmode and mask those 2 bits away from operands[3].
13362
13363 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
13364
13365         * c-parser.c (c_parser_objc_protocol_definition): Updated for
13366         change from objc_declare_protocols() to objc_declare_protocol().
13367
13368 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
13369
13370         * config/i386/sse.md (sse4_1): New mode attribute.
13371         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
13372         avx_blend<ssemodesuffix><avxmodesuffix> and
13373         sse4_1_blend<ssemodesuffix> using VF mode iterator.
13374         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
13375         avx_blendv<ssemodesuffix><avxmodesuffix> and
13376         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
13377         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
13378         avx_dp<ssemodesuffix><avxmodesuffix> and
13379         sse4_1_dp<ssemodesuffix> using VF mode iterator.
13380         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
13381         (sse4_1_packusdw): Merge with *avx_packusdw.
13382         (sse4_1_pblendvb): Merge with *avx_pblendvb.
13383         (sse4_1_pblendw): Merge with *avx_pblendw.
13384         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
13385         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
13386         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
13387         VF mode iterator.
13388         (sse4_1_round<ssescalarmodesuffix>): Merge with
13389         *avx_round<ssescalarmodesuffix>.
13390         (aesenc): Merge with *avx_aesenc.
13391         (aesenclast): Merge with *avx_aesenclast.
13392         (aesdec): Merge with *avx_aesdec.
13393         (aesdeclast): Merge with *avx_aesdeclast.
13394         (pclmulqdq): Merge with *pclmulqdq.
13395         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
13396         New predicate.
13397         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
13398
13399 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
13400
13401         PR middle-end/48608
13402         * cfgexpand.c (get_decl_align_unit): Renamed to ...
13403         (align_local_variable): This.  Update DECL_ALIGN.
13404         (add_stack_var): Updated.
13405         (expand_one_stack_var): Likewise.
13406
13407 2011-04-14  Richard Guenther  <rguenther@suse.de>
13408
13409         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
13410         Remove.
13411         (dse_initialize_block_local_data, dse_leave_block,
13412         record_voperand_set, get_stmt_uid): Likewise.
13413         (dse_possible_dead_store_p): Allow any kind of killing stmt.
13414         (dse_optimize_stmt): Remove voperand set handling code.
13415         Simplify and improve to handle any kind of killing stmt.
13416         (dse_record_phi): Remove.
13417         (dse_enter_block): Simplify.
13418         (tree_ssa_dse): Likewise.
13419         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
13420
13421 2011-04-14  Jan Hubicka  <jh@suse.cz>
13422
13423         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
13424         * cgraph.h (struct inline_summary): Move to ipa-inline.h
13425         (cgraph_local_info): Remove inline_summary.
13426         * ipa-cp.c: Include ipa-inline.h.
13427         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
13428         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
13429         accesor.
13430         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
13431         (input_overwrite_node): Do not set inline summary.
13432         (input_node): Do not stream inline summary.
13433         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
13434         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
13435         growth; we do not have inline parameters computed for that anyway.
13436         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
13437         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
13438         (inline_summary_t): New type and VECtor.
13439         (debug_inline_summary, dump_inline_summaries): Declare.
13440         (inline_summary): Use VOCtor.
13441         (estimate_edge_growth): Kill hack computing call stmt size directly.
13442         * lto-section-in.c (lto_section_name): Add inline section.
13443         * ipa-inline-analysis.c: Include lto-streamer.h
13444         (node_removal_hook_holder, node_duplication_hook_holder): New holders
13445         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
13446         (inline_summary_vec): Define.
13447         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
13448         dump_inline_summaries): New functions.
13449         (estimate_function_body_sizes): Properly compute size/time of outgoing
13450         calls.
13451         (compute_inline_parameters): Alloc inline_summary; do not compute
13452         size/time of incomming calls.
13453         (estimate_edge_time): Avoid missing time summary hack.
13454         (inline_read_summary): Read inline summary info.
13455         (inline_write_summary): Write inline summary info.
13456         (inline_free_summary): Free all hooks and inline summary vector.
13457         * lto-streamer.h: Add LTO_section_inline_summary section.
13458         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
13459         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
13460
13461 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
13462
13463         * tree-vectorizer.h (vect_strided_store_supported): Add a
13464         HOST_WIDE_INT argument.
13465         (vect_strided_load_supported): Likewise.
13466         (vect_permute_store_chain): Return void.
13467         (vect_transform_strided_load): Likewise.
13468         (vect_permute_load_chain): Delete.
13469         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
13470         count argument.  Check that the count is a power of two.
13471         (vect_strided_load_supported): Likewise.
13472         (vect_permute_store_chain): Return void.  Update after above changes.
13473         Assert that the access is supported.
13474         (vect_permute_load_chain): Likewise.
13475         (vect_transform_strided_load): Return void.
13476         * tree-vect-stmts.c (vectorizable_store): Update calls after
13477         above interface changes.
13478         (vectorizable_load): Likewise.
13479         (vect_analyze_stmt): Don't check for strided powers of two here.
13480
13481 2011-04-14  Richard Guenther  <rguenther@suse.de>
13482
13483         PR tree-optimization/48590
13484         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13485         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
13486         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
13487         BUILT_IN_STACK_SAVE.
13488         * tree-ssa-dce.c (propagate_necessity): Handle
13489         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
13490
13491 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
13492
13493         * c-parser.c (c_parser_objc_class_declaration): Updated call to
13494         objc_declare_class.
13495
13496 2011-04-14  Richard Guenther  <rguenther@suse.de>
13497
13498         * tree.h (get_object_alignment_1): Declare.
13499         * builtins.c (get_object_alignment_1): Split out worker from ...
13500         (get_object_alignment): ... here.
13501         * fold-const.c (get_pointer_modulus_and_residue): Use
13502         get_object_alignment_1.
13503
13504 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
13505
13506         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
13507         type parameter.
13508         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
13509         parameter.  Generalise code to handle arrays as well as vectors.
13510         (vect_setup_realignment): Update accordingly.
13511         * tree-vect-stmts.c (vectorizable_store): Likewise.
13512         (vectorizable_load): Likewise.
13513
13514 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
13515
13516         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
13517         within the per-copy loop.
13518
13519 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
13520
13521         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
13522         in the dump file.
13523
13524 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
13525
13526         * doc/options.texi (Negative): Explicitly mention that the
13527         Negative chain must be circular.
13528
13529 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
13530
13531         * function.h (block_chainon): Declare.
13532         * function.c (block_chainon): Define.
13533
13534 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
13535             Eric Weddington  <eric.weddington@atmel.com>
13536             Georg-Johann Lay  <avr@gjlay.de>
13537
13538         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
13539         New Includes
13540         (avr_init_builtins, avr_expand_builtin,
13541         avr_expand_delay_cycles, avr_expand_unop_builtin,
13542         avr_expand_binop_builtin ): New functions.
13543         (avr_builtin_id): New enum
13544         (struct avr_builtin_description): New struct
13545         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
13546         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
13547
13548         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
13549         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
13550         UNSPECV_DELAY_CYCLES): new enumeration values
13551         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
13552         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
13553         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
13554         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
13555         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
13556         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
13557         "fmulsu"): New insns
13558
13559         * config/avr/avr-c.c: fix line endings
13560         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
13561         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
13562         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
13563         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
13564         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
13565
13566         * doc/extend.texi (AVR Built-in Functions): New node
13567         (Target Builtins): Add documentation of AVR
13568         built-in functions.
13569
13570 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
13571
13572         PR target/44643
13573         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
13574         alone. Error if non-const data has attribute progmem.
13575
13576 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
13577
13578         * tree.h (struct tree_constructor): Include tree_typed instead of
13579         tree_common.
13580         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
13581         TS_TYPED instead of TS_COMMON.
13582
13583 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
13584
13585         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
13586         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
13587         (sse2_psadbw): Merge with *avx_psadbw.
13588         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
13589         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
13590         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
13591         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
13592         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
13593         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
13594         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
13595         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
13596         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
13597         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
13598         (ssse3_palignrti): Merge with *avx_palignrti.
13599
13600 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
13601
13602         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
13603         * tree-ssanames.c (fini_ssanames): VEC_free it.
13604         (make_ssa_name_fn): Update for VECness of free_ssanames.
13605         (release_ssa_name, release_dead_ssa_names): Likewise.
13606         * tree.h (struct tree_ssa_name): Include tree_typed instead of
13607         tree_common.
13608         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
13609         TS_TYPED instead of TS_COMMON.
13610
13611 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
13612
13613         * postreload-gcse.c (gcse_after_reload_main): Add calls to
13614         statistics_counter_event.
13615         * tree-ssa-copyrename.c (stats): Define.
13616         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
13617         statistics_counter_event.
13618         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
13619         (bswap_stats, widen_mul_stats): Define.
13620         (insert_reciprocals): Increment rdivs_inserted.
13621         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
13622         rfuncs_inserted.  Add calls to statistics_counter_event.
13623         (execute_cse_sincos_1): Increment inserted.
13624         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
13625         statistics_counter_event.
13626         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
13627         of bswap_stats.  Add calls to statistics_counter_event.
13628         (convert_mult_to_widen): Increment widen_mults_inserted.
13629         (convert_plusminus_to_widen): Increment maccs_inserted.
13630         (convert_mult_to_fma): Increment fmas_inserted.
13631         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
13632         calls to statistics_counter_event.
13633
13634 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
13635
13636         PR rtl-optimization/48455
13637         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
13638         `temp_costs->mem_cost'.
13639
13640 2011-04-13  Jan Hubicka  <jh@suse.cz>
13641
13642         * ipa-inline.h: New file.
13643         * ipa-inline-analysis.c: New file. Broken out of ...
13644         * ipa-inline.c: ... this file; update toplevel comment;
13645         include ipa-inline.h
13646         (inline_summary): Move to ipa-inline.h
13647         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
13648         ipa-inline-analysis.c.
13649         (cgraph_estimate_time_after_inlining): Rename to
13650         estiamte_time_after_inlining; move to ipa-inline-analysis.c
13651         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
13652         to estimate_edge_growth.
13653         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
13654         rename to estimate_size_after_inlining.
13655         (cgraph_mark_inline_edge): Update for new naming convention.
13656         (cgraph_check_inline_limits): Likewise.
13657         (cgraph_edge_badness): Likewise.
13658         (cgraph_decide_recursive_inlining): Likewise.
13659         (cgraph_decide_inlining_of_small_functions): Likewise.
13660         (cgraph_decide_inlining_incrementally): Likewise.
13661         (cgraph_estimate_growth): Rename to estimate_growth; move to
13662         ipa-inline-analysis.c.
13663         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
13664         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
13665         (compute_inline_parameters): Likewise.
13666         (compute_inline_parameters_for_current): Likewise.
13667         (pass_inline_parameters): Likewise.
13668         (inline_indirect_intraprocedural_analysis): Likewise.
13669         (analyze_function): Rename to inline_analyze_function; likewise.
13670         (add_new_function): Move to ipa-inline-analysis.c.
13671         (inline_generate_summary): Likewise.
13672         (inline_read_summary): Likewise.
13673         (inline_write_summary): Likewise.
13674         * Makefile.in (ipa-inline-analysis.c): New file.
13675
13676 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13677
13678         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
13679         * configure: Regenerate.
13680
13681 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
13682
13683         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
13684         instead of tree_common.
13685         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
13686         Likewise.
13687         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
13688         TS_TYPED rather than TS_COMMON.
13689         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
13690
13691 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
13692
13693         PR target/45263
13694         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
13695         r20 around calls of __tablejump_elpm__
13696
13697 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
13698
13699         PR middle-end/48591
13700         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
13701         NULL.
13702         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
13703
13704 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
13705
13706         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
13707         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
13708         (cfi_vec): New typedef.
13709         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
13710         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
13711         (cie_cfi_vec): New static variable.
13712         (cie_cfi_head): Delete.
13713         (add_cfi): Accept a cfi_vec * as first argument. All callers and
13714         declaration changed. Use vector rather than list operations.
13715         (new_cfi): Don't initialize the dw_cfi_next field.
13716         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
13717         rather than list operations.
13718         (lookup_cfa): Use vector rather than list operations.
13719         (output_cfis): New argument upto. Accept a cfi_vec rather than
13720         a dw_cfi_ref list head as argument. All callers changed.
13721         Iterate over the vector using upto as a maximum index.
13722         (output_all_cfis): New static function.
13723         (output_fde): Use vector rather than list operations. Use the
13724         new upto argument for output_cfis rather than manipulating a
13725         list.
13726         (dwarf2out_begin_prologue): Change initializations to match
13727         new struct members.
13728         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
13729         from the vector length rather than searching for the end of a list.
13730         Use output_all_cfis.
13731         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
13732
13733 2011-04-13  Nick Clifton  <nickc@redhat.com>
13734
13735         * config/rx/rx.md (movmemsi): Do not use this pattern when
13736         volatile pointers are involved.
13737
13738 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
13739
13740         * config/i386/sse.md (pinsrbits): Remove.
13741         (sse2_packsswb): Merge with *avx_packsswb.
13742         (sse2_packssdw): Merge with *avx_packssdw.
13743         (sse2_packuswb): Merge with *avx_packuswb.
13744         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
13745         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
13746         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
13747         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
13748         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
13749         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
13750         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
13751         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
13752         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
13753         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
13754         (sse2_loadld): Merge with *avx_loadld.
13755         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
13756         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
13757         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
13758         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
13759         (vec_concatv2di): Merge with *vec_concatv2di_avx.
13760
13761 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
13762
13763         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
13764         calling TREE_CHAIN.
13765         * print-tree.c (print_node): Likewise.
13766         * tree-inline.c (copy_tree_r): Likewise.
13767         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
13768         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
13769         instead of TS_COMMON.
13770         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
13771         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
13772         (copy_node_stat): Zero TREE_CHAIN only if necessary.
13773         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
13774         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
13775         ...and these...
13776         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
13777         * tree.h: ...here.
13778         (TREE_CHAIN): Check for a TS_COMMON structure.
13779         (TREE_TYPE): Check for a TS_TYPED structure.
13780
13781 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
13782
13783         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
13784         cgraph_get_create_node instead of cgraph_node.
13785
13786 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13787
13788         * c-parser.c (c_parser_initelt): Updated call to
13789         objc_build_message_expr.
13790         (c_parser_postfix_expression): Likewise.
13791
13792 2011-04-12  Kai Tietz  <ktietz@redhat.com>
13793
13794         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
13795         MASK_MS_BITFIELD_LAYOUT bit.
13796
13797 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
13798
13799         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
13800         assert it is always true.
13801         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
13802         moves.
13803
13804 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13805
13806         * c-parser.c (c_lex_one_token): Rewritten conditional used when
13807         compiling Objective-C to be more efficient.
13808
13809 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
13810
13811         * opts-common.c (decode_cmdline_options_to_array): Remove variable
13812         argv_copied.
13813
13814 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13815
13816         * recog.h, genoutput.c, optabs.c: Revert last patch.
13817
13818 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13819
13820         PR target/48090
13821         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
13822
13823 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13824
13825         * recog.h (insn_operand_data): Add an "allows_mem" field.
13826         * genoutput.c (output_operand_data): Initialize it.
13827         * optabs.c (maybe_legitimize_operand_same_code): New function.
13828         (maybe_legitimize_operand): Use it when matching the original
13829         op->value.
13830
13831 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13832
13833         * genpreds.c (process_define_predicate): Move most processing
13834         to gensupport.c.  Continue to validate the expression.
13835         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
13836         (process_define_predicate): Move processing to gensupport.c.
13837         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
13838         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
13839         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
13840         argument.
13841         (valid_predicate_name_p): New function, split out from old
13842         genpreds.c:process_define_predicate.
13843         (process_define_predicate): New function, combining code from
13844         old genpreds.c and genrecog.c functions.
13845         (process_rtx): Call it for DEFINE_PREDICATE and
13846         DEFINE_SPECIAL_PREDICATE.
13847
13848 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13849
13850         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
13851         size of a '%A' memory reference.
13852         (T_DREG, T_QREG): New neon_builtin_type_bits.
13853         (arm_init_neon_builtins): Assert that the load and store operands
13854         are neon_struct_operands.
13855         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
13856         (NEON_ARG_MEMORY): New builtin_arg.
13857         (neon_dereference_pointer): New function.
13858         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
13859         Handle NEON_ARG_MEMORY.
13860         (arm_expand_neon_builtin): Update after above interface changes.
13861         Use NEON_ARG_MEMORY for loads and stores.
13862         * config/arm/predicates.md (neon_struct_operand): New predicate.
13863         * config/arm/iterators.md (V_two_elem): Tweak formatting.
13864         (V_three_elem): Use BLKmode for accesses that have no associated mode.
13865         (V_four_elem): Tweak formatting.
13866         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
13867         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
13868         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
13869         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
13870         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
13871         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
13872         (neon_vst4<mode>): Replace pointer operand with a memory operand.
13873         Use %A in the output template.
13874         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
13875         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
13876         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
13877         the width of the memory access.  Remove post-increment.
13878         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
13879
13880 2011-04-12  Nick Clifton  <nickc@redhat.com>
13881
13882         * config/v850/v850.c (expand_prologue): Do not use the CALLT
13883         instruction for interrupt handlers if the target is the basic V850
13884         architecture.
13885         (expand_epilogue): Likewise.
13886
13887 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
13888
13889         PR rtl-optimization/48549
13890         * combine.c (propagate_for_debug): Also stop after BB_END of
13891         this_basic_block.  Process LAST and just stop processing after it.
13892         (combine_instructions): If last_combined_insn has been deleted,
13893         set last_combined_insn to its PREV_INSN.
13894
13895 2011-04-12  Richard Guenther  <rguenther@suse.de>
13896
13897         PR tree-optimization/46076
13898         * gimple.h (struct gimple_statement_call): Add fntype field.
13899         (gimple_call_fntype): Adjust.
13900         (gimple_call_set_fntype): New function.
13901         * gimple.c (gimple_build_call_1): Set the call function type.
13902         * gimplify.c (gimplify_call_expr): Preserve the function
13903         type the frontend used for the call.
13904         (gimplify_modify_expr): Likewise.
13905         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
13906         function type.
13907         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
13908         function type.
13909         * tree-ssa.c (useless_type_conversion_p): Function pointer
13910         conversions are useless.
13911
13912 2011-04-12  Martin Jambor  <mjambor@suse.cz>
13913
13914         * cgraph.h (cgraph_node): Remove function declaration.
13915         (cgraph_create_node): Declare.
13916         (cgraph_get_create_node): Likewise.
13917         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
13918         Updated all callers.
13919         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
13920         the decl does not already exist.  Call cgraph_get_create_node instead
13921         of cgraph_node.
13922         (cgraph_get_create_node): New function.
13923         (cgraph_same_body_alias): Update comment.
13924         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
13925         assert it does not return NULL.
13926         (cgraph_update_edges_for_call_stmt): Likewise.
13927         (cgraph_clone_edge): Likewise.
13928         (cgraph_create_virtual_clone): Likewise.
13929         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
13930         instead of cgraph_node.
13931         (cgraph_add_new_function): Call cgraph_create_node or
13932         cgraph_get_create_node instead of cgraph_node.
13933         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
13934         instead of cgraph_node.
13935         (record_eh_tables): Likewise.
13936         (mark_address): Likewise.
13937         (mark_load): Likewise.
13938         (build_cgraph_edges): Call cgraph_get_create_node instead
13939         of cgraph_node.
13940         (rebuild_cgraph_edges): Likewise.
13941         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
13942         instead of cgraph_node.
13943         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
13944         cgraph_node.
13945         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
13946         cgraph_create_node instead of cgraph_node.
13947         * c-decl.c (finish_function): Call cgraph_get_create_node instead
13948         of cgraph_node.
13949         * lto-cgraph.c (input_node): Likewise.
13950         * lto-streamer-in.c (input_function): Likewise.
13951         * varasm.c (mark_decl_referenced): Likewise.
13952         (assemble_alias): Likewise.
13953
13954 2011-04-12  Martin Jambor  <mjambor@suse.cz>
13955
13956         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
13957         instead of cgraph_node and assert it does not return NULL.
13958         * lto-streamer-in.c (lto_read_body): Likewise.
13959         * omp-low.c (new_omp_context): Likewise.
13960         (create_task_copyfn): Likewise.
13961         * tree-emutls.c (lower_emutls_function_body): Likewise.
13962         * matrix-reorg.c (transform_allocation_sites): Likewise.
13963
13964 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
13965
13966         PR c/48552
13967         * c-typeck.c (build_asm_expr): Error out on attempts to use
13968         void type outputs or inputs for constraints that allow reg or
13969         don't allow memory.
13970
13971 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
13972             Richard Earnshaw  <rearnsha@arm.com>
13973
13974         PR target/48250
13975         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
13976         to use sign-magnitude offsets. Reject unsupported unaligned
13977         cases. Add detailed description in comments.
13978         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
13979         condition from TARGET_32BIT to TARGET_ARM.
13980
13981 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
13982
13983         * tree.h (struct typed_tree): New.
13984         (struct tree_common): Include it instead of tree_base.
13985         (TREE_TYPE): Update for new location of type field.
13986         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
13987         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
13988         (union tree_node): Add typed field.
13989         * treestruct.def (TS_TYPED): New.
13990         * lto-streamer.c (check_handled_ts_structures): Handle it.
13991         * tree.c (MARK_TS_TYPED): New macro.
13992         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
13993
13994 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
13995
13996         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
13997         (force_nonfallthru): Do not alter the loop nest if no basic block
13998         was created.
13999
14000 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
14001
14002         * config/i386/sse.md (VI): New mode iterator.
14003         (SSEMODEI): Remove.
14004         (AVX256MODEI): Ditto.
14005         (AVXMODEF4P): Ditto.
14006         (avxvecpsmode): Ditto.
14007         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
14008         (sse2_andnot<mode>3): New expander.
14009         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
14010         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
14011         (<any_logic:code><mode>3): Use VI mode iterator.
14012         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
14013         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
14014         (*andnottf3): Handle AVX three-operand constraints.
14015         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
14016
14017 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14018             Robert Millan  <rmh@gnu.org>
14019
14020         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
14021         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
14022         GNU_USER_DYNAMIC_LINKER64): Define.
14023         (REG_NAME): Don't undefine.
14024         (MD_UNWIND_SUPPORT): Undefine.
14025         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
14026         (REG_NAME): Don't undefine.
14027         (MD_UNWIND_SUPPORT): Undefine.
14028         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
14029
14030 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14031
14032         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
14033         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
14034
14035 2011-04-11  Xinliang David Li  <davidxl@google.com>
14036
14037         * value-profile.c (check_ic_target): New function.
14038         (gimple_ic_transform): Sanity check indirect call target.
14039         * gimple-low.c (gimple_check_call_args): Interface change.
14040         (gimple_check_call_matching_types): New function.
14041         * tree-inline.c (tree_can_inline_p): Call new function.
14042
14043 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
14044
14045         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
14046         tree-pretty-print.h & realmpfr.h.
14047
14048 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
14049
14050         PR middle-end/48464
14051         * ira.c (setup_pressure_classes): Fix typo in loop condition.
14052         (setup_allocno_and_important_classes): Ditto.
14053
14054 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14055
14056         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
14057         GNU_USER_DYNAMIC_LINKER.
14058         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
14059         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14060         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
14061         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14062         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14063         GNU_USER_TARGET_OS_CPP_BUILTINS.
14064         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
14065         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14066         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14067         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14068         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
14069         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14070         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14071         GNU_USER_TARGET_OS_CPP_BUILTINS.
14072         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14073         GNU_USER_DYNAMIC_LINKER.
14074         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14075         GNU_USER_TARGET_OS_CPP_BUILTINS.
14076         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
14077         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14078         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
14079         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14080         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
14081         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
14082         GNU_USER_DYNAMIC_LINKER64): Remove.
14083         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
14084         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14085         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14086         GNU_USER_DYNAMIC_LINKER.
14087         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14088         GNU_USER_TARGET_OS_CPP_BUILTINS.
14089         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14090         GNU_USER_TARGET_OS_CPP_BUILTINS.
14091         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
14092         to GNU_USER_TARGET_OS_CPP_BUILTINS.
14093         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14094         GNU_USER_TARGET_OS_CPP_BUILTINS.
14095         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
14096         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
14097         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
14098         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
14099         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14100         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14101         GNU_USER_DYNAMIC_LINKER.
14102         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14103         GNU_USER_TARGET_OS_CPP_BUILTINS.
14104         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
14105         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14106         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14107         GNU_USER_DYNAMIC_LINKER.
14108         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14109         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14110         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
14111         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14112         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14113         GNU_USER_DYNAMIC_LINKER.
14114         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
14115         GNU_USER_DYNAMIC_LINKERN32.
14116         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
14117         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
14118         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
14119         GNU_USER_DYNAMIC_LINKER32.
14120         * config/mn10300/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/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14125         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14126         * config/pa/pa-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 GNU_USER_DYNAMIC_LINKER.
14129         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
14130         GNU_USER_DYNAMIC_LINKER32.
14131         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
14132         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
14133         GNU_USER_DYNAMIC_LINKER.
14134         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
14135         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14136         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
14137         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
14138         GNU_USER_DYNAMIC_LINKER64.
14139         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
14140         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14141         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14142         GNU_USER_DYNAMIC_LINKER.
14143         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
14144         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14145         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14146         GNU_USER_DYNAMIC_LINKER.
14147         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
14148         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14149         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
14150         GNU_USER_DYNAMIC_LINKER32.
14151         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
14152         GNU_USER_DYNAMIC_LINKER64.
14153         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
14154         GNU_USER_DYNAMIC_LINKER64.
14155         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
14156         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14157         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
14158         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14159         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14160
14161 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14162
14163         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
14164         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
14165         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
14166         GNU_USER_DYNAMIC_LINKER.
14167         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
14168         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
14169         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
14170         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
14171         GNU_USER_DYNAMIC_LINKER64.
14172         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
14173         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
14174         GNU_USER_LINK_EMULATION.
14175         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
14176         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
14177         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
14178         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
14179         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
14180         CPP_SPEC, CC1_SPEC): Remove.
14181         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
14182         (GNU_USER_DYNAMIC_LINKER): Define.
14183         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
14184         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
14185         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
14186         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
14187         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
14188         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
14189         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
14190         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
14191         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
14192         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
14193         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
14194         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
14195         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
14196         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
14197         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
14198         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
14199         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14200         GNU_USER_DYNAMIC_LINKER.
14201         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14202         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
14203         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14204         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
14205         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14206         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
14207         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
14208         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
14209         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
14210         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
14211
14212 2011-04-11  Kai Tietz  <ktietz@redhat.com>
14213
14214         PR target/9601
14215         PR target/11772
14216         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
14217         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
14218         comment.
14219         (ix86_is_msabi_thiscall): Removed.
14220         (ix86_is_type_thiscall): Likewise.
14221         (ix86_get_callcvt): New function.
14222         (ix86_comp_type_attributes): Simplify check.
14223         (ix86_function_regparm): Use ix86_get_callcvt for calling
14224         convention attribute checks.
14225         (ix86_return_pops_args): Likewise.
14226         (ix86_static_chain): Likewise.
14227         (x86_this_parameter): Likewise.
14228         (x86_output_mi_thunk): Likewise.
14229         (ix86_function_type_abi): Optimize check for types without attributes.
14230         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
14231         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
14232         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
14233         by flag-values.
14234         (IX86_BASE_CALLCVT): Helper macro.
14235         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14236         Use ix86_get_callcvt for calling convention attribute checks and avoid
14237         symbol-decoration for stdcall in TARGET_RTD case.
14238         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
14239         Likewise.
14240         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
14241         for declaration.
14242
14243 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
14244
14245         * config/i386/sse.md (VI_128): New mode iterator.
14246         (VI12_128): Rename from SSEMODE12.
14247         (VI14_128): Rename from SSEMODE14.
14248         (VI124_128): New mode iterator.
14249         (VI24_128): Rename from SSEMODE248.
14250         (VI248_128): Rename from SSEMODE248.
14251         (SSEMODE124C8): Remove.
14252         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
14253         (*sse2_<plusminus_insn><mode>3): Merge with
14254         *avx_<plusminus_insn><mode>3.
14255         (*mulv8hi3): Merge with *avx_mulv8hi3.
14256         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
14257         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
14258         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
14259         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
14260         (ashr<mode>3): Merge with *avx_ashr<mode>3.
14261         (lshr<mode>3): Merge with *avx_lshr<mode>3.
14262         (ashl<mode>3): Merge with *avx_ashl<mode>3.
14263         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
14264         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
14265         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14266         (*<smaxmin:code>v8hi3): Ditto.
14267         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
14268         (*<smaxmin:code>v16qi3): Ditto.
14269         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
14270         (*sse2_eq<mode>3): Ditto.
14271         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
14272         (*sse2_gt<mode>3): Ditto.
14273         (vcondv2di): Split out of vcond<mode>.
14274         (vconduv2di): Split out of vcondu<mode>.
14275
14276 2011-04-11  Richard Guenther  <rguenther@suse.de>
14277
14278         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
14279         before calling tree_low_cst.
14280
14281 2011-04-11  Richard Guenther  <rguenther@suse.de>
14282
14283         * stor-layout.c (layout_type): Compute all array index size operations
14284         in the original type.
14285         (initialize_sizetypes): Add comment.
14286         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
14287
14288 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14289
14290         * common.opt (Tbss=, Tdata=, Ttext=): New options.
14291
14292 2011-04-11  Martin Jambor  <mjambor@suse.cz>
14293
14294         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
14295         of cgraph_node, handle NULL return value.
14296         (cgraph_global_info): Likewise.
14297         (cgraph_rtl_info): Likewise.
14298         * tree-inline.c (estimate_num_insns): Likewise.
14299         * gimplify.c (unshare_body): Likewise.
14300         (unvisit_body): Likewise.
14301         (gimplify_body): Likewise.
14302         * predict.c (optimize_function_for_size_p): Likewise.
14303         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
14304         (call_may_clobber_ref_p_1): Likewise.
14305         * varasm.c (function_section_1): Likewise.
14306         (assemble_start_function): Likewise.
14307
14308 2011-04-11  Martin Jambor  <mjambor@suse.cz>
14309
14310         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
14311         of cgraph_node.
14312         * final.c (rest_of_clean_state): Likewise.
14313         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
14314         * passes.c (pass_init_dump_file): Likewise.
14315         (execute_all_ipa_transforms): Likewise.
14316         (function_called_by_processed_nodes_p): Likewise.
14317         * predict.c (maybe_hot_frequency_p): Likewise.
14318         (probably_never_executed_bb_p): Likewise.
14319         (compute_function_frequency): Likewise.
14320         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
14321         (unnest_nesting_tree_1): Likewise.
14322         (lower_nested_functions): Likewise.
14323         * tree-optimize.c (execute_fixup_cfg): Likewise.
14324         (tree_rest_of_compilation): Likewise.
14325         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
14326         * tree-sra.c (ipa_early_sra): Likewise.
14327         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
14328         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
14329         * ipa.c (record_cdtor_fn): Likewise.
14330         * ipa-inline.c (cgraph_early_inlining): Likewise.
14331         (compute_inline_parameters_for_current): Likewise.
14332         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14333         * ipa-pure-const.c (local_pure_const): Likewise.
14334         * ipa-split.c (split_function): Likewise.
14335         (execute_split_functions): Likewise.
14336         * cgraphbuild.c (build_cgraph_edges): Likewise.
14337         (rebuild_cgraph_edges): Likewise.
14338         (cgraph_rebuild_references): Likewise.
14339         (remove_cgraph_callee_edges): Likewise.
14340         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
14341         (verify_cgraph_node): Likewise.
14342         (cgraph_analyze_functions): Likewise.
14343         (cgraph_preserve_function_body_p): Likewise.
14344         (save_inline_function_body): Likewise.
14345         (save_inline_function_body): Likewise.
14346         * tree-inline.c (copy_bb): Likewise.
14347         (optimize_inline_calls): Likewise.
14348
14349 2011-04-11  Martin Jambor  <mjambor@suse.cz>
14350
14351         PR tree-optimization/48195
14352         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
14353         ipa_check_create_edge_args.
14354         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
14355         ipa_check_create_edge_args.
14356         * ipa-inline.c (inline_generate_summary): Do not call
14357         ipa_check_create_node_params and ipa_check_create_edge_args.
14358         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
14359         ipa_check_create_edge_args.
14360
14361 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
14362
14363         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
14364         instead of loop.
14365         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14366         * function.c (record_hard_reg_sets): Likewise.
14367         * ira.c (compute_regs_asm_clobbered): Likewise.
14368         * sched-deps.c (sched_analyze_1): Likewise.
14369         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
14370
14371 2011-04-09  Xinliang David Li  <davidxl@google.com>
14372
14373         PR tree-optimization/PR48484
14374         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
14375         has_valid_pred lazily
14376
14377 2011-04-09  Duncan Sands  <baldrick@free.fr>
14378
14379         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
14380
14381 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
14382
14383         * combine.c (combine_validate_cost): Adjust comments.  Set registered
14384         cost of I0 to zero at the end, if any.
14385
14386 2011-04-08  Xinliang David Li  <davidxl@google.com>
14387
14388         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
14389         to insane profile data.
14390
14391 2011-04-08  Xinliang David Li  <davidxl@google.com>
14392
14393         * ipa-cp.c (ipcp_update_profiling): Correct
14394          negative scale factor due to insane profile data.
14395
14396 2011-04-08  Xinliang David Li  <davidxl@google.com>
14397
14398         * final.c (dump_basic_block_info): New function.
14399         (final): Dump basic block.
14400         (final_scan_insn): Remove old dump.
14401
14402 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
14403
14404         PR target/47829
14405         * config.gcc (i386-*-freebsd): Disable unwind table generation for
14406         crtbegin/crtend.
14407
14408 2011-04-08  Michael Matz  <matz@suse.de>
14409
14410         PR middle-end/48389
14411         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
14412         functions.
14413         (rebuild_jump_labels): Call rebuild_jump_labels_1.
14414         * rtl.h (rebuild_jump_labels_chain): Declare.
14415         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
14416         insns inserted on edges.
14417
14418 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
14419
14420         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
14421         * config/arm/arm-arches.def: New.
14422         * config/arm/arm-opts.h: New.
14423         * config/arm/genopt.sh: New.
14424         * config/arm/arm-tables.opt: New (generated).
14425         * config/arm/arm.c (arm_handle_option, arm_target_help,
14426         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
14427         (all_architectures): Get most table contents from arm-arches.def.
14428         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
14429         arm_selected_tune here.
14430         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
14431         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
14432         (march=, mcpu=, mtune=): Use Enum and Var.
14433         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
14434         (arm.o): Update dependencies.
14435
14436 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
14437
14438         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
14439         of header_file.
14440         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
14441         (write_typed_alloc_defns): Likewise.
14442         (main): Calls write_typed_alloc_defns with output_header.
14443
14444 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
14445
14446         PR inline-asm/48435
14447         * ira-color.c (setup_profitable_hard_regs): Add comments.
14448         Don't take prohibited hard regs into account.
14449         (setup_conflict_profitable_regs): Rename to
14450         get_conflict_profitable_regs.
14451         (check_hard_reg_p): Check prohibited hard regs.
14452
14453 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
14454
14455         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
14456         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
14457         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
14458
14459 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14460
14461         PR target/48366
14462         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
14463         move from floating point to shift amount register.
14464         (emit_move_sequence): Remove secondary reload support for floating
14465         point to shift amount amount register copies.
14466         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
14467         amount register copies.
14468         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
14469         register, return false if mode isn't a scalar integer mode.
14470         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
14471
14472 2011-04-08  Richard Guenther  <rguenther@suse.de>
14473
14474         * gimple.c (gimple_call_flags): Remove kludge.
14475
14476 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
14477
14478         * sel-sched.c (sel_region_init): Move call to
14479         sel_setup_region_sched_flags after setup_current_loop_nest.
14480
14481 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
14482
14483         PR rtl-optimization/48272
14484         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
14485         init_insn_reg_pressure_info.  Adjust a caller.
14486         * sched-int.h (init_insn_reg_pressure_info): Declare.
14487         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
14488         when sched-pressure is enabled.
14489
14490 2011-04-08  Richard Guenther  <rguenther@suse.de>
14491
14492         * gimple.c (gimple_set_modified): Do not queue calls to
14493         MODIFIED_NORETURN_CALLS here ...
14494         * tree-ssa-operands.c (update_stmt_operands): ... but here.
14495
14496 2011-04-08  Richard Guenther  <rguenther@suse.de>
14497
14498         PR lto/48467
14499         * toplev.c (lang_dependent_init): Do not open asm_out_file
14500         in WPA mode, nor perform debug machinery initialization.
14501         (finalize): Do not unlink asm_out_file in WPA mode.
14502
14503 2011-04-08  Richard Guenther  <rguenther@suse.de>
14504
14505         * gimple.h (gimple_call_fntype): New function.
14506         (gimple_call_return_type): Use it.
14507         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
14508         * gimple-low.c (gimple_check_call_args): Likewise.
14509         * gimple.c (gimple_call_flags): Likewise.
14510         (gimple_call_arg_flags): Likewise.
14511         (gimple_call_return_flags): Likewise.
14512         * tree-cfg.c (verify_gimple_call): Likewise.
14513         (do_warn_unused_result): Likewise.
14514         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
14515         * value-prof.c (gimple_ic_transform): Fix fndecl check.
14516
14517 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
14518
14519         PR rtl-optimization/48235
14520         * sel-sched.c (code_motion_process_successors): Recompute the last
14521         insn in basic block if control flow changed.
14522         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
14523         Update condition for ilist_remove.
14524
14525 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
14526
14527         PR rtl-optimization/48302
14528         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
14529         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
14530         it to record added preheader blocks.
14531         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
14532         on to sel_add_loop_preheaders.
14533         (sel_region_init): Move call to setup_current_loop_nest after
14534         sel_init_bbs.
14535
14536 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
14537
14538         PR target/48273
14539         * cfgloop.h (loop_has_exit_edges): New helper.
14540         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
14541         non-clonable.
14542         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
14543         that have no exit edges.
14544
14545 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
14546
14547         PR rtl-optimization/48442
14548         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
14549         all callers.  Adjust assert.
14550
14551 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
14552
14553         PR tree-optimization/48377
14554         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
14555         is_packed to true even for types with smaller TYPE_ALIGN than
14556         TYPE_SIZE.
14557
14558 2011-04-08  Richard Guenther  <rguenther@suse.de>
14559
14560         PR bootstrap/48513
14561         * doc/tm.texi: Re-generate.
14562
14563 2011-04-08  Wei Guozhi  <carrot@google.com>
14564
14565         PR target/47855
14566         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
14567         * config/arm/arm.c (arm_attr_length_push_multi): New function.
14568         * config/arm/arm.md (*push_multi): Change the length computation to
14569         call a C function.
14570
14571 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
14572
14573         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
14574         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
14575         * doc/tm.texi: Regenerate.
14576         * system.h (ASM_OUTPUT_BSS): Poison.
14577         * varasm.c (asm_output_bss): Remove function.
14578         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
14579
14580         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
14581         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
14582         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
14583         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
14584         Likewise.
14585         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
14586         Likewise.
14587         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
14588         Likewise.
14589         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14590
14591 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
14592
14593         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
14594         EnumValue lines.
14595
14596 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
14597
14598         * config/m68k/m68k.c (m68k_handle_option): Don't handle
14599         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
14600         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
14601         OPT_mcpu32.
14602         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
14603         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
14604         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
14605         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
14606         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
14607         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
14608         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
14609         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
14610         options.  Don't map other m68k options manually.  Don't handle
14611         old-style options as canonical.
14612         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
14613         * doc/install.texi (m68k-*-*): Document binutils version requirement.
14614
14615 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
14616
14617         * basic-block.h (force_nonfallthru): Move to...
14618         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
14619         (force_nonfallthru): ...here.
14620         * cfghooks.c (force_nonfallthru): New function.
14621         * cfgrtl.c (force_nonfallthru): Rename into...
14622         (rtl_force_nonfallthru): ...this.
14623         (commit_one_edge_insertion): Do not set AUX field.
14624         (commit_edge_insertions): Do not discover new basic blocks.
14625         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
14626         (cfg_layout_rtl_cfg_hooks): Likewise.
14627         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
14628         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
14629         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
14630
14631 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
14632
14633         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14634         Remove macros.
14635
14636 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
14637
14638         * config/i386/sse.md: Update copyright year.
14639         (avxcvtvecmode): Remove.
14640         (sse_movhlps): Merge with *avx_movhlps.
14641         (sse_movlhps): Merge with *avx_movlhps.
14642         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
14643         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
14644         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
14645         (sse_loadhps): Merge with *avx_loadhps.
14646         (sse_storelps): Merge with *avx_storelps.
14647         (sse_loadlps): Merge with *avx_loadlps.
14648         (sse_movss): Merge with *avx_movss.
14649         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
14650         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
14651         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
14652         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
14653         (vec_set<mode>_0): Ditto.
14654         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
14655         (sse4_1_insertps): Merge with *avx_insertps.
14656         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
14657         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
14658         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
14659         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
14660         (sse2_storehpd): Merge with *avx_storehpd.
14661         (sse2_loadhpd): Merge with *avx_loadhpd.
14662         (sse2_loadlpd): Merge with *avx_loadlpd.
14663         (sse2_movsd): Merge with *avx_movsd.
14664         (*vec_concatv2df): Merge with *vec_concatv2df.
14665
14666 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
14667
14668         PR debug/48343
14669         * combine.c (combine_instructions): Add last_combined_insn,
14670         update it if insn is after it, pass it to all try_combine calls.
14671         (try_combine): Add last_combined_insn parameter, pass it instead of
14672         i3 to propagate_for_debug.
14673
14674 2011-04-07  Nick Clifton  <nickc@redhat.com>
14675
14676         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
14677         to handle MDR <-> data register transfers.
14678         (movhi_internal): Likewise.
14679
14680 2011-04-07  Alan Modra  <amodra@gmail.com>
14681
14682         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
14683         previous stack info.
14684
14685 2011-04-07  Tom de Vries  <tom@codesourcery.com>
14686
14687         PR target/43920
14688         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
14689         flow_find_cross_jump.  Swap variables to implement backward replacement.
14690         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
14691
14692 2011-04-07  Tom de Vries  <tom@codesourcery.com>
14693
14694         PR target/43920
14695         * cfgcleanup.c (walk_to_nondebug_insn): New function.
14696         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
14697         and bb2.
14698         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
14699         src1 or src2.  Redirect edges to the last basic block.  Update
14700         frequency and count on multiple basic blocks in case of fallthru.
14701
14702 2011-04-07  Tom de Vries  <tom@codesourcery.com>
14703
14704         PR target/43920
14705         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
14706         function.
14707         (old_insns_match_p): Change return type.  Replace return false/true
14708         with return dir_none/dir_both.  Use can_replace_by.
14709         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
14710         direction from dir_p.  Register replacement direction in dir, last_dir
14711         and afterlast_dir.  Handle new return type of old_insns_match_p using
14712         merge_dir.  Return replacement direction in dir_p.
14713         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
14714         return type of old_insns_match_p.
14715         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
14716         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
14717         flow_find_cross_jump.
14718         * basic-block.h (enum replace_direction): New type.
14719         (flow_find_cross_jump): Add parameter to declaration.
14720
14721 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
14722
14723         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
14724         (AVXMODEDCVTPS2DQ): Ditto.
14725         (VEC_FLOAT_MODE): Ditto.
14726         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
14727         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
14728         (<any_logic:code><mode>3): Use VF mode iterator.
14729         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
14730         Use VF mode iterator.
14731         (copysign<mode>3): Use VF mode iterator.
14732         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
14733         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
14734         (*<any_logic:code><MODEF:mode>3): Merge with
14735         *avx_<any_logic:code><MODEF:mode>3.
14736         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
14737         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
14738         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
14739         (avx_cvtdq2ps<avxmodesuffix>): Remove.
14740         (sse2_cvtdq2ps): Use %v modifier.
14741         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
14742         (avx_cvtps2dq<avxmodesuffix>): Remove.
14743         (sse2_cvtps2dq): Use %v modifier.
14744         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
14745         (avx_cvttps2dq<avxmodesuffix>): Remove.
14746         (sse2_cvttps2dq): Use %v modifier.
14747         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
14748         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
14749         (sse2_cvtsd2siq): Fix insn template.
14750         (sse2_cvtsd2siq_2): Ditto.
14751         (sse2_cvttsd2siq): Ditto.
14752         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
14753         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
14754
14755 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
14756
14757         * gcov-io.c: Use GCC Runtime Library Exception.
14758
14759 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
14760
14761         PR debug/48466
14762         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
14763         as base_reg whatever register reg has been eliminated to, instead
14764         of hardcoding STACK_POINTER_REGNUM.
14765
14766 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
14767
14768         * doc/tm.texi.in: Document C target hooks as separate from general
14769         target hooks.
14770         * doc/tm.texi: Regenerate.
14771         * genhooks.c (struct hook_desc): Add docname field.
14772         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
14773         docname field.
14774         (hook_array): Include c-target.def.
14775         (emit_documentation): Use docname field in output.
14776         (emit_init_macros): Take docname argument.  Only emit definitions
14777         for hooks matching docname.
14778         (main): Expect additional arguments in all cases.  Pass argument
14779         to emit_init_macros.
14780         * target.def: Move initial macro definitions and comments to
14781         target-hooks-macros.h.
14782         (gcc_targetcm): Move to c-family/c-target.def.
14783         * target.h (targetcm): Move declaration to c-family/c-target.h.
14784         * targhooks.c (default_handle_c_option): Move to
14785         c-family/c-opts.c.
14786         * targhooks.h (default_handle_c_option): Move declaration to
14787         c-family/c-common.h.
14788         * target-hooks-macros.h: New file.
14789         * config.gcc (target_has_targetcm): Define and use to add to
14790         c_target_objs and cxx_target_objs.
14791         * config/default-c.c: New file.
14792         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
14793         of target.h and target-def.h.
14794         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
14795         (darwin_objc_construct_string, darwin_cfstring_ref_p,
14796         darwin_check_cfstring_format_arg): Make static.
14797         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
14798         TARGET_STRING_OBJECT_REF_TYPE_P,
14799         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
14800         * config/darwin-protos.h (darwin_objc_construct_string,
14801         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
14802         declare.
14803         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
14804         TARGET_STRING_OBJECT_REF_TYPE_P,
14805         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
14806         * config/t-darwin (darwin-c.o): Update dependencies.
14807         * system.h (TARGET_HAS_TARGETCM): Poison.
14808         * Makefile.in (TARGET_H): Update.
14809         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
14810         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
14811         (default-c.o): New target.
14812         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
14813         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
14814         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
14815         c-target.def.
14816         (build/genhooks.o): Update dependencies.
14817
14818 2011-04-06  Richard Guenther  <rguenther@suse.de>
14819
14820         * ipa-inline.c (enum inlining_mode): Remove.
14821         (cgraph_flatten): Use some other token.
14822         (cgraph_edge_early_inlinable_p): New function, split out from ...
14823         (cgraph_perform_always_inlining): New function, split out from ...
14824         (cgraph_decide_inlining_incrementally): ... here.
14825         (cgraph_mark_inline_edge): Adjust.
14826         (cgraph_early_inlining): Re-structure.
14827         (pass_early_inline): Require SSA form.
14828
14829 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
14830             Julian Brown  <julian@codesourcery.com>
14831             Mark Shinwell  <shinwell@codesourcery.com>
14832
14833         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
14834         LO_REGS only for Thumb-1.
14835         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
14836         be used in short instructions when optimising for size on Thumb-2.
14837
14838 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
14839
14840         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
14841         associated with user returns to be preserved.
14842
14843 2011-04-06  Tristan Gingold  <gingold@adacore.com>
14844
14845         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
14846         symbol_queue_size, DBXOUT_DECR_NESTING,
14847         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
14848         if XCOFF_DEBUGGING_INFO.
14849
14850 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
14851
14852         * config/i386/i386.md (attribute isa): New.
14853         (attribute enabled): New.
14854         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
14855         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
14856         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
14857         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
14858         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
14859         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14860         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
14861         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
14862
14863         * config/i386/sse.md (VF): New mode iterator.
14864         (VF1): Ditto.
14865         (VF2): Ditto.
14866         (VF_128): Ditto.
14867         (SSEMODEF4): Remove.
14868         (attribute sse): Handle V8SF and V4DF modes.
14869         (<absneg:code><mode>2): Use VF mode iterator.
14870         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
14871         mode iterator.
14872         (<plusminus_insn><mode>3): Use VF mode iterator.
14873         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
14874         Use VF mode iterator.
14875         (<sse>_vm<plusminus_insn><mode>3): Merge with
14876         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
14877         (mul<mode>3): Use VF mode iterator.
14878         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
14879         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
14880         mode iterator.
14881         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
14882         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
14883         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
14884         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
14885         mode iterator.
14886         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
14887         Use VF1 mode iterator.
14888         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
14889         (sqrt<VF2:mode>2): New expander.
14890         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
14891         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
14892         and sqrtv2df2.  Use VF mode iterator.
14893         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
14894         mode iterator.
14895         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
14896         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
14897         Use VF1 mode iterator.
14898         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
14899         (<smaxmin:code><mode>3): Use VF mode iterator.
14900         (*<smaxmin:code><mode>3_finite): Merge with
14901         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
14902         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14903         (<sse>_vm<smaxmin:code><mode>2): Merge with
14904         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
14905         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
14906         mode iterator.
14907         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
14908         mode iterator.
14909         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
14910         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
14911         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
14912         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
14913         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
14914         VF mode iterator.
14915         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
14916         Use VF_128 mode iterator.
14917         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
14918         mode iterator.
14919         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
14920         VF_128 mode iterator.
14921         (vcond<mode>): Use VF mode iterator.
14922         * config/i386/predicates.md (sse_comparison_operator): Merge with
14923         avx_comparison_float_operator.  Do not declare as special_predicate.
14924         * config/i386/i386.c (struct builtin_description): Update for renamed
14925         compare patterns.
14926         (ix86_expand_args_builtin): Ditto.
14927         (ix86_expand_sse_compare_mask): Ditto.
14928
14929 2011-04-06  Richard Guenther  <rguenther@suse.de>
14930
14931         * tree-inline.c (estimate_num_insns): For calls simply account
14932         for all passed arguments and a used return value.
14933
14934 2011-04-06  Richard Guenther  <rguenther@suse.de>
14935
14936         PR tree-optimization/47663
14937         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
14938         call_stmt_time fields.
14939         (cgraph_edge_inlinable_p): Declare.
14940         (cgraph_edge_recursive_p): New inline function.
14941         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
14942         (cgraph_clone_edge): Copy it.
14943         * ipa-inline.c (cgraph_estimate_edge_time): New function.
14944         Account for call stmt time.
14945         (cgraph_estimate_time_after_inlining): Take edge argument.
14946         (cgraph_estimate_edge_growth): Account call stmt size.
14947         (cgraph_estimate_size_after_inlining): Take edge argument.
14948         (cgraph_mark_inline_edge): Adjust.
14949         (cgraph_check_inline_limits): Likewise.
14950         (cgraph_recursive_inlining_p): Remove.
14951         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
14952         (cgraph_decide_recursive_inlining): Take edge argument and
14953         adjust.
14954         (cgraph_decide_inlining_of_small_functions): Do not avoid
14955         diags for recursive inlining here.
14956         (cgraph_flatten): Adjust.
14957         (cgraph_decide_inlining_incrementally): Likewise.
14958         (estimate_function_body_sizes): Remove call cost handling.
14959         (compute_inline_parameters): Initialize caller edge call costs.
14960         (cgraph_estimate_edge_growth): New function.
14961         (cgraph_estimate_growth): Use it.
14962         (cgraph_edge_badness): Likewise.
14963         (cgraph_check_inline_limits): Take an edge argument.
14964         (cgraph_decide_inlining_of_small_functions): Adjust.
14965         (cgraph_decide_inlining): Likewise.
14966         * tree-inline.c (estimate_num_insns): Only account for call
14967         return value if it is used.
14968         (expand_call_inline): Avoid diagnostics on recursive inline
14969         functions here.
14970         * lto-cgraph.c (lto_output_edge): Output edge call costs.
14971         (input_edge): Input edge call costs.
14972
14973 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14974
14975         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
14976
14977 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
14978
14979         * doc/invoke.texi (Spec Files): Fix typo.
14980
14981 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
14982
14983         * profile.c (branch_prob): Move declaration of local variable.  Remove
14984         obsolete ??? comment.  Expand the location explicitly instead of using
14985         the LOCATION_FILE and LOCATION_LINE macros.
14986
14987 2011-04-06  Wei Guozhi  <carrot@google.com>
14988
14989         PR target/47855
14990         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
14991         (arm_cond_branch): Likewise.
14992         (arm_cond_branch_reversed): Likewise.
14993         (arm_jump): Likewise.
14994         (push_multi): Likewise.
14995         * config/arm/constraints.md (Py): New constraint.
14996
14997 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14998
14999         PR bootstrap/48471
15000         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
15001         Move these...
15002         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
15003         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
15004         #ifdef DBX_DEBUGGING_INFO.
15005
15006 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
15007
15008         PR bootstrap/48403
15009         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
15010         if old and new states differ.
15011
15012 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
15013
15014         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
15015         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
15016         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
15017         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
15018         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
15019         mcfv4e): Use Alias.
15020         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
15021         ColdFire options to -mcpu= options.
15022
15023 2011-04-05  Jeff Law  <law@redhat.com>
15024
15025         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
15026         check if BB is a successor of LOOP->header and return
15027         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
15028
15029 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
15030
15031         * cprop.c (struct reg_use): Remove.
15032         (reg_use_table): Make an array of RTX.
15033         (find_used_regs, constprop_register, local_cprop_pass,
15034         bypass_block): Simplify users of reg_use_table.
15035         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
15036         on one of the uses found by find_used_regs.
15037
15038 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15039
15040         PR bootstrap/48469
15041         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
15042         declaration.
15043
15044 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15045
15046         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
15047         as an rtx.
15048         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
15049
15050 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
15051
15052         PR middle-end/48441
15053         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
15054
15055 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15056
15057         * combine.c: Include obstack.h.
15058         (struct insn_link): Define.
15059         (uid_log_links): Adjust type.
15060         (FOR_EACH_LOG_LINK): New macro.
15061         (insn_link_obstack): Declare.
15062         (alloc_insn_link): Define.
15063         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
15064         type of link variables.
15065         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
15066         (try_combine, record_promoted_values, distribute_notes): Likewise.
15067         (distribute_links): Likewise.  Tweak prototype.
15068         (clear_log_links): Delete.
15069         (adjust_for_new_dest): Call alloc_insn_link.
15070         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
15071
15072 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15073
15074         * gcse.c (modify_mem_list): Convert to an array of VECs.
15075         (canon_modify_mem_list, compute_transp): Tweak formatting.
15076         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
15077         (load_killed_in_block_p): Likewise.
15078         (record_last_mem_set_info): Likewise.
15079         (clear_modify_mem_tables): Likewise.
15080
15081 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15082
15083         PR middle-end/48461
15084         * function.c (emit_use_return_register_into_block): Only define if
15085         HAVE_return.
15086
15087 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
15088
15089         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
15090
15091 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
15092
15093         * config/rx/rx-opts.h: New.
15094         * config/rx/rx.c (rx_cpu_type): Remove.
15095         (rx_handle_option): Don't assert that global structures are in
15096         use.  Access variables via opts pointer.  Defer most handling of
15097         OPT_mint_register_.  Use error_at.
15098         (rx_option_override): Handle deferred OPT_mint_register_ here.
15099         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
15100         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
15101         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
15102         (rx_cpu_types): New Enum and EnumValue entries.
15103         (mint-register=): Use Defer and use Var accordingly.
15104
15105 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15106
15107         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
15108         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
15109         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
15110         Move these...
15111         (debug_free_queue, debug_nesting, symbol_queue_index):
15112         ...and these...
15113         * dbxout.c: ...to here.  Make static.
15114
15115 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15116
15117         * gcse.c (modify_pair): Define.  Define a VEC of it.
15118         (canon_modify_mem_list): Convert to an array of VECs.
15119         (free_insn_expr_list_list): Delete.
15120         (clear_modify_mem_tables): Call VEC_free instead.
15121         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
15122         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
15123         (canon_list_insert, compute_transp): Likewise.
15124
15125 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15126
15127         PR target/43920
15128         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
15129         for size.
15130
15131 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15132
15133         PR target/43920
15134         * function.c (emit_use_return_register_into_block): New function.
15135         (thread_prologue_and_epilogue_insns): Use
15136         emit_use_return_register_into_block.
15137
15138 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15139
15140         PR target/43920
15141         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
15142         insn.
15143
15144 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15145
15146         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
15147
15148 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
15149
15150         * config/arm/arm.md (define_constants for unspec): Replace with
15151         define_c_enum.
15152         (define_constants for unspecv): Replace with define_c_enum.
15153         * config/arm/neon.md (define_constants for unspec): Replace with
15154         define_c_enum.
15155
15156 2011-04-04  Richard Henderson  <rth@redhat.com>
15157
15158         PR bootstrap/48400
15159         * dwarf2out.c (output_line_info): Always emit line info from
15160         at least one section.
15161         (dwarf2out_init): Create text_section_line_info here ...
15162         (set_cur_line_info_table): ... not here.
15163
15164 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
15165
15166         PR target/48380
15167         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
15168         not called.
15169
15170         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
15171
15172 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
15173
15174         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
15175         (expr_equiv_p): Remove.
15176         (insert_set_in_table): Look at <dest, src> pair instead of expr.
15177         (hash_scan_set): Update call to insert_set_in_table.
15178         (dump_hash_table): Dump <dest, src> pair.
15179         (lookup_set): Simplify.  Lookup <dest, src> pair.
15180         (compute_transp): Remove, fold heavily simplified code into...
15181         (compute_local_properties): ...here.  Expect COMP and TRANSP
15182         unconditionally.
15183         (find_avail_set): Take set directly from struct expr.
15184         (find_bypass-set): Likewise.
15185         (bypass_block): Likewise.
15186         (cprop_insn): Likewise.  Remove redundant INSN_P test.
15187
15188         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
15189         checks on form of COND from find_implicit_sets to here.
15190         (find_implicit_sets): Cleanup control flow. Split critical edges
15191         if it exposes implicit sets.  Allocate/resize implicit_sets as
15192         necessary.
15193         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
15194         changed something.  Run df_analyze after find_implicit_sets if any
15195         edges were split.  Do not allocate implicit_sets here.
15196
15197         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
15198         (gcse_obstack): Renamed to cprop_obstack.
15199         (GNEW, GNEWVEC, GNEWVAR): Remove.
15200         (gmalloc): Remove.
15201         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
15202         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
15203         (gcse_alloc): Likewise, and rename to cprop_alloc.
15204         (alloc_gcse_men, free_gcse_mem): Remove.
15205         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
15206         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
15207         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
15208
15209         * cprop.c (oprs_not_set_p): Remove.
15210         (mark_set, mark_clobber): Remove.
15211         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
15212         (reg_not_set_p): New function.
15213         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
15214         (cprop_insn): Likewise.
15215         (cprop_jump): Use FOR_EACH_EDGE.
15216
15217 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
15218
15219         PR bootstrap/48403
15220         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
15221         (rank_for_schedule): Use scheduled_insns vector instead of
15222         last_scheduled_insn.
15223         (ok_for_early_queue_removal): Likewise.
15224         (queue_to_ready): Search forward in nonscheduled_insns_begin if
15225         we have a dbg_cnt.
15226         (choose_ready): Likewise.
15227         (commit_schedule): Use VEC_iterate.
15228         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
15229         a dbg_cnt, use it and ensure the first insn is in the ready list.
15230         (haifa_sched_init): Allocate scheduled_insns.
15231         (sched_extend_ready_list): Don't allocate it; reserve space.
15232         (haifa_sched_finish): Free it.
15233
15234 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
15235
15236         * optc-gen.awk: Always remove type from Variable entry before
15237         recording in var_seen.
15238
15239 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
15240
15241         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
15242         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
15243         call to tidy_fallthru_edges.
15244
15245 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
15246
15247         * doc/options.texi (ToLower): Document.
15248         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
15249         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
15250         * opts.h (cl_option): Add cl_tolower field.
15251         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
15252         arguments with lowercase strings.
15253         * config/rx/rx.opt (mcpu=): Add ToLower.
15254         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
15255         argument.
15256
15257 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
15258
15259         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
15260
15261 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
15262
15263         * config/vax/vax.c: Include reload.h.
15264
15265 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
15266
15267         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
15268         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15269         (sparc_preferred_reload_class): New function.
15270
15271 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
15272
15273         PR debug/48401
15274         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
15275         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
15276
15277 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
15278
15279         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
15280         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
15281
15282 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
15283
15284         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
15285         (ASM_OUTPUT_ALIGNED_BSS): Define.
15286
15287 2011-04-03  Michael Matz  <matz@suse.de>
15288
15289         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
15290         and next_slot members.
15291         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
15292         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
15293         (lto_streamer_cache_append): Declare.
15294         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
15295         unsigned index, remove offset parameter, ensure that we append
15296         or update existing entries.
15297         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
15298         parameter, update next_slot for append.
15299         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
15300         parameter.
15301         (lto_streamer_cache_insert_at): Likewise.
15302         (lto_streamer_cache_append): New function.
15303         (lto_streamer_cache_lookup): Use unsigned index.
15304         (lto_streamer_cache_get): Likewise.
15305         (lto_record_common_node): Don't test tree_node_can_be_shared.
15306         (preload_common_node): Adjust call to lto_streamer_cache_insert.
15307         (lto_streamer_cache_delete): Don't free offsets member.
15308         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
15309         (lto_output_string_with_length): Use lto_output_data_stream.
15310         (lto_output_tree_header): Remove ix parameter, don't write it.
15311         (lto_output_builtin_tree): Likewise.
15312         (lto_write_tree): Adjust callers to above, don't track and write
15313         offset, write unsigned index.
15314         (output_unreferenced_globals): Don't emit all global vars.
15315         (write_global_references): Use unsigned indices.
15316         (lto_output_decl_state_refs): Likewise.
15317         (write_symbol): Likewise.
15318         * lto-streamer-in.c (lto_input_chain): Move earlier.
15319         (input_function): Use unsigned index.
15320         (input_alias_pairs): Don't read and then ignore all global vars.
15321         (lto_materialize_tree): Remove ix_p parameter, don't read index,
15322         don't pass it back, use lto_streamer_cache_append.
15323         (lto_register_var_decl_in_symtab): Use unsigned index.
15324         (lto_register_function_decl_in_symtab): Likewise.
15325         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
15326         index.
15327         (lto_get_builtin_tree): Don't read index, use
15328         lto_streamer_cache_append.
15329         (lto_read_tree): Adjust call to lto_materialize_tree.
15330
15331         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
15332         don't use function calls in arguments to MIN.
15333
15334         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
15335         twice.
15336
15337         * gimple.c (gimple_type_leader_entry): Mark deletable.
15338
15339 2011-04-03  Alan Modra  <amodra@gmail.com>
15340
15341         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
15342
15343 2011-04-03  Michael Matz  <matz@suse.de>
15344
15345         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
15346         an integer.
15347         * tree.h (tree_decl_non_common.vindex): Adjust comment.
15348
15349 2011-04-03  Michael Matz  <matz@suse.de>
15350
15351         * cgraphbuild.c (record_reference): Canonicalize constructor values.
15352         * gimple-fold.c (canonicalize_constructor_val): Accept being called
15353         without function context.
15354         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
15355         current_function_decl and cfun.
15356
15357 2011-04-03  Michael Matz  <matz@suse.de>
15358
15359         * tree.c (decl_init_priority_insert): Don't create entry for
15360         default priority.
15361         (decl_fini_priority_insert): Ditto.
15362         (fields_compatible_p, find_compatible_field): Remove.
15363         * tree.h (fields_compatible_p, find_compatible_field): Remove.
15364         * gimple.c (gimple_compare_field_offset): Adjust block comment.
15365
15366 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
15367
15368         * combine.c (try_combine): Remove useless local variable.
15369
15370 2011-04-03  Richard Guenther  <rguenther@suse.de>
15371             Ira Rosen  <ira.rosen@linaro.org>
15372
15373         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
15374         non-variable offsets and compare the remaining bases of the two
15375         accesses instead of looking for exact same data-ref.
15376
15377 2011-04-02  Kai Tietz  <ktietz@redhat.com>
15378
15379         PR target/48416
15380         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
15381
15382         * i386.c (ix86_is_msabi_thiscall): New helper function.
15383         (ix86_is_type_thiscall): New helper function.
15384         (ix86_comp_type_attributes): Handle thiscall for method-functions
15385         special.
15386         (init_cumulative_args): Likewise.
15387         (find_drap_reg): Likewise.
15388         (ix86_static_chain): Likewise.
15389         (x86_this_parameter): Likewise.
15390         (x86_output_mi_thunk): Likewise.
15391
15392 2011-04-01  Olivier Hainque  <hainque@adacore.com>
15393             Nicolas Setton  <setton@adacore.com>
15394             Eric Botcazou  <ebotcazou@adacore.com>
15395
15396         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
15397         (add_gnat_descriptive_type_attribute): New function.
15398         (gen_array_type_die): Call it.
15399         (gen_enumeration_type_die): Likewise.
15400         (gen_struct_or_union_type_die): Likewise.
15401         (modified_type_die): Likewise.
15402         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
15403         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
15404         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
15405
15406 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
15407
15408         PR bootstrap/48148
15409         * dwarf2out.c (resolve_addr): Don't call force_decl_die
15410         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
15411
15412         Revert:
15413         2011-03-17  Richard Guenther  <rguenther@suse.de>
15414
15415         PR bootstrap/48148
15416         * lto-cgraph.c (input_overwrite_node): Clear the abstract
15417         origin for decls in other ltrans units.
15418         (input_varpool_node): Likewise.
15419
15420 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
15421
15422         PR middle-end/48335
15423         * expr.c (expand_assignment): Handle all possibilities
15424         if TO_RTX is CONCAT.
15425         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
15426         (store_split_bit_field): If SUBREG_REG (op0) or
15427         op0 itself has smaller mode than word, return it
15428         for offset 0 and const0_rtx for out-of-bounds stores.
15429         If word is const0_rtx, skip it.
15430
15431 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
15432
15433         * config/h8300/h8300.c (print_operand_address): Rename to...
15434         (h8300_print_operand_address): ...this. Make static. Adjust comments.
15435         Call h8300_print_operand and h8300_print_operand_address instead of
15436         print_operand and print_operand_address. Declare.
15437         (print_operand): Renake to...
15438         (h8300_print_operand): ...this. Make static. Adjust comments.
15439         Call h8300_print_operand instead of print_operand. Declare.
15440         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
15441         (h8300_register_move_cost): Likewise.
15442         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
15443         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
15444         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
15445         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
15446         * config/h8300/h8300-protos.h (print_operand): Delete.
15447         (print_operand_address): Delete.
15448
15449 2011-04-01  Richard Henderson  <rth@redhat.com>
15450
15451         PR 48400
15452         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
15453         in strict mode before dwarf4.  Re-order tests to early out
15454         before switching sections.
15455
15456 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
15457
15458         * config/h8300/constraints.md: New file.
15459         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
15460         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
15461         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
15462         * config/h8300/predicates.md (bit_operand): Likewise.
15463         (incdec_operand): Use satisfies_constraint_M and
15464         satisfies_constraint_O.  Don't use C code block.
15465         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
15466         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
15467         (compute_mov_length): Use satisfies_constraint_G.
15468         (fix_bit_operand): Use satisfies_constraint_U.
15469         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
15470         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
15471         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
15472         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
15473         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
15474         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
15475         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15476         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
15477         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
15478         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
15479         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
15480         (EXTRA_MEMORY_CONSTRAINT): Delete.
15481
15482 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
15483             Michael Meissner  <meissner@linux.vnet.ibm.com>
15484
15485         PR target/48262
15486         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
15487         operands, as per the specifications.
15488
15489         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
15490         (vec_extract_evenv4sf): Ditto.
15491         (vec_extract_evenv8hi): Ditto.
15492         (vec_extract_evenv16qi): Ditto.
15493         (vec_extract_oddv4si): Ditto.
15494
15495 2011-03-31  Mark Wielaard  <mjw@redhat.com>
15496
15497         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
15498         high_pc attribute if the CU has no associated code. Only output
15499         DW_AT_entry_pc for CU if not generating strict dwarf and
15500         dwarf_version < 4.
15501
15502 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
15503
15504         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
15505         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
15506         out of ...
15507         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
15508         * final.c (final_start_function): Call the new function rather
15509         than using a NULL argument for dwarf2out_frame_debug.
15510
15511         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
15512         that contains the prologue.
15513
15514         * haifa-sched.c (queue_insn): New arg REASON.  All callers
15515         changed.  Print it in debugging output.
15516
15517         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
15518
15519         * sched-ebb.c (begin_schedule_ready): Remove second argument.
15520         Split most of the code into...
15521         (begin_move_insn): ... here.  New function.
15522         (ebb_sched_info): Add a pointer to it.
15523         * haifa-sched.c (scheduled_insns): New static variable.
15524         (sched_extend_ready_list): Allocate it.
15525         (schedule_block): Use it to record the order of scheduled insns.
15526         Perform RTL changes to move insns only after all scheduling
15527         decisions have been made.
15528         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
15529         begin_move_insn field.
15530         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
15531         * sched-int.h (struct haifa_sched_info): Remove second argument
15532         from begin_schedule_ready hook.  Add new member begin_move_insn.
15533         * sched-rgn.c (begin_schedule_ready): Remove second argument.
15534         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
15535
15536         * haifa-sched.c (prune_ready_list): New function, broken out of
15537         schedule_block.
15538         (schedule_block): Use it.
15539
15540 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15541
15542         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
15543
15544 2011-04-01  Kai Tietz  <ktietz@redhat.com>
15545
15546         * config.gcc (*-*-mingw*): Allow as option the
15547         posix threading model.
15548         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
15549         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
15550         definition.
15551         (CPP_SPEC): Add pthread/no-pthread handling.
15552         (LIB_SPEC): Likewise.
15553         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
15554         (LIB_SPEC): Likewise.
15555         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
15556         flag to pass -pthread option for shared libgcc build.
15557         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
15558         for shared libgcc build.
15559         * config/i386/t-mingw-pthread: New file.
15560         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
15561         New define to enable use of library pthread by default.
15562         * config/i386/mingw.opt (pthread): New driver option.
15563         (no-pthread): New driver option.
15564         * config/i386/cygming.opt: Make sure trailing empty line is retained.
15565         * config/i386/mingw-w64.opt: Likewise.
15566
15567 2011-04-01  Gary Funck  <gary@intrepid.com>
15568
15569         * c-decl.c (grokdeclarator): Fix formatting.
15570
15571 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
15572
15573         * expr.c (emit_block_move_via_movmem): Use n_generator_args
15574         instead of n_operands.
15575         (set_storage_via_setmem): Likewise.
15576         * optabs.c (maybe_gen_insn): Likewise.
15577         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
15578         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
15579         (mips_expand_builtin_direct): Likewise.
15580         * config/spu/spu.c (expand_builtin_args): Likewise.
15581
15582 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
15583
15584         * recog.h (insn_data_d): Add n_generator_args.
15585         * genoutput.c (data): Likewise.
15586         (output_insn_data): Print it.
15587         (max_opno, num_dups): Delete.
15588         (scan_operands): Just fill in "d->operand[...]".
15589         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
15590
15591 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
15592
15593         * gensupport.h (pattern_stats): New structure.
15594         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
15595         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
15596         (max_operand_1, max_operand_vec): Delete.
15597         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
15598
15599 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
15600
15601         * emit-rtl.c (emit_pattern_after_setloc): New function.
15602         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
15603         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
15604         (emit_pattern_after): New function.
15605         (emit_insn_after, emit_jump_insn_after): Call it.
15606         (emit_call_insn_after, emit_debug_insn_after): Likewise.
15607         (emit_pattern_before_setloc): New function.
15608         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
15609         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
15610         Likewise.
15611         (emit_pattern_before): New function.
15612         (emit_insn_before, emit_jump_insn_before): Call it.
15613         (emit_call_insn_before, emit_debug_insn_before): Likewise.
15614
15615 2011-03-31  Richard Henderson  <rth@redhat.com>
15616
15617         * dwarf2out.c (dw_separate_line_info_ref): Remove.
15618         (dw_separate_line_info_entry): Remove.
15619         (enum dw_line_info_opcode): New.
15620         (dw_line_info_entry): Use it.
15621         (dw_line_info_table, dw_line_info_table_p): New.
15622         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
15623         (line_info_table, line_info_label_num): Remove.
15624         (line_info_table_in_use): Remove.
15625         (separate_line_info_table): Remove.
15626         (separate_line_info_table_allocated): Remove.
15627         (separate_line_info_table_in_use): Remove.
15628         (LINE_INFO_TABLE_INCREMENT): Remove.
15629         (line_info_label_num): New.
15630         (cur_line_info_table): New.
15631         (text_section_line_info, cold_text_section_line_info): New.
15632         (separate_line_info): New.
15633         (SEPARATE_LINE_CODE_LABEL): Remove.
15634         (print_dwarf_line_table): Remove.
15635         (debug_dwarf): Don't dump it.
15636         (output_one_line_info_table): New.
15637         (output_line_info): Use it.
15638         (new_line_info_table): New.
15639         (set_cur_line_info_table): New.
15640         (dwarf2out_switch_text_section): Use it.
15641         (dwarf2out_begin_function): Likewise.
15642         (push_dw_line_info_entry): New.
15643         (dwarf2out_source_line): Rewrite for new line info tables.
15644         (dwarf2out_init): Remove dead initailizations.
15645
15646 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
15647
15648         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
15649         various flags.
15650         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
15651         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
15652         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
15653         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
15654         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
15655         * opt-functions.awk (flag_init, switch_bit_fields): New.
15656         (switch_flags): Don't handle flags moved to bit-fields.  Don't
15657         generate CL_MISSING_OK or CL_SAVE.
15658         * optc-gen.awk: Update to generate bit-field output as well as
15659         flags field.
15660         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
15661         bit-field instead of CL_REJECT_DRIVER flag.
15662         * opts-common.c (generate_canonical_option,
15663         decode_cmdline_option): Use bit-fields instead of CL_* flags.
15664         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
15665         instead of CL_REJECT_NEGATIVE flag.
15666         * toplev.c (print_switch_values): Use cl_report bit-field instead
15667         of CL_REPORT flag.
15668
15669 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
15670
15671         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
15672         a zero minimum index only if it is redundant.
15673
15674 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
15675
15676         PR rtl-optimization/48381
15677         * ira-color.c (assign_hard_reg): Use hard reg set intersection
15678         instead of ira_class_hard_reg_index for calculating conflicting
15679         hard registers.
15680
15681 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
15682
15683         * cprop.c: Clean up hash table building.
15684         (reg_avail_info): Remove.
15685         (oprs_available_p): Remove.
15686         (record_last_reg_set_info): Remove.
15687         (record_last_set_info): Remove.
15688         (reg_available_p): New function.
15689         (gcse_constant_p): Do not treat unfolded conditions as constants.
15690         (make_set_regs_unavailable): New function.
15691         (hash_scan_set): Simplify with new reg_available_p.
15692         (compute_hash_table_work): Traverse insns stream only once.
15693         Do not compute reg_avail_info. Traverse insns in reverse order.
15694         Record implicit sets after recording explicit sets from the block.
15695
15696 2011-03-31  Michael Matz  <matz@suse.de>
15697
15698         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
15699
15700 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
15701
15702         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
15703         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
15704         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15705         (h8300_mode_dependent_address_p): New function.
15706         (h8300_get_index): Make static.
15707
15708 2011-03-31  Jeff Law  <law@redhat.com>
15709
15710         * reload1.c (elimination_effects): Fix typo in recent change.
15711
15712         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
15713         typo potentially leading to null pointer dereference.
15714
15715         * caller-save.c (new_saved_hard_reg): Eliminate return value.
15716         (setup_save_areas): Corresponding changes to avoid useless
15717         assignments.
15718
15719         * jump.c (reversed_comparison_code_parts): Avoid successive return
15720         statements when REVERSE_CONDITION is defined.
15721
15722         * expr.c (expand_assignment): Avoid useless assignments.
15723         (expand_expr_real_1): Likewise.
15724         (expand_expr_real_2): Avoid useless statements.
15725
15726         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
15727
15728         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
15729
15730         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
15731         statements.
15732
15733         * stmt.c (expand_expr_stmt): Avoid useless assignment.
15734
15735 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
15736
15737         PR target/47109
15738         * doc/tm.texi.in (TARGET_VERSION): Remove.
15739         * doc/tm.texi: Regenerate.
15740         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
15741         * collect2.c (main): Don't use TARGET_VERSION.
15742         * mips-tdump.c (main): Don't use TARGET_VERSION.
15743         * mips-tfile.c (main): Don't use TARGET_VERSION.
15744         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
15745         * config/rs6000/vxworksae.h: Remove.
15746         * config/alpha/alpha.h (TARGET_VERSION): Remove.
15747         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
15748         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
15749         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
15750         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
15751         * config/arm/arm.h (TARGET_VERSION): Remove.
15752         * config/arm/coff.h (TARGET_VERSION): Remove.
15753         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
15754         * config/arm/elf.h (TARGET_VERSION): Remove.
15755         * config/arm/freebsd.h (TARGET_VERSION): Remove.
15756         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
15757         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
15758         * config/arm/pe.h (TARGET_VERSION): Remove.
15759         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
15760         * config/arm/semi.h (TARGET_VERSION): Remove.
15761         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
15762         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
15763         * config/arm/vxworks.h (TARGET_VERSION): Remove.
15764         * config/avr/avr.h (TARGET_VERSION): Remove.
15765         * config/bfin/bfin.h (TARGET_VERSION): Remove.
15766         * config/fr30/fr30.h (TARGET_VERSION): Remove.
15767         * config/frv/frv.h (TARGET_VERSION): Remove.
15768         * config/h8300/h8300.h (TARGET_VERSION): Remove.
15769         * config/i386/cygwin.h (TARGET_VERSION): Remove.
15770         * config/i386/darwin.h (TARGET_VERSION): Remove.
15771         * config/i386/darwin64.h (TARGET_VERSION): Remove.
15772         * config/i386/djgpp.h (TARGET_VERSION): Remove.
15773         * config/i386/freebsd.h (TARGET_VERSION): Remove.
15774         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
15775         * config/i386/gnu.h (TARGET_VERSION): Remove.
15776         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
15777         * config/i386/i386elf.h (TARGET_VERSION): Remove.
15778         * config/i386/linux.h (TARGET_VERSION): Remove.
15779         * config/i386/linux64.h (TARGET_VERSION): Remove.
15780         * config/i386/lynx.h (TARGET_VERSION): Remove.
15781         * config/i386/mingw32.h (TARGET_VERSION): Remove.
15782         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
15783         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
15784         * config/i386/netware.h (TARGET_VERSION): Remove.
15785         * config/i386/nto.h (TARGET_VERSION): Remove.
15786         * config/i386/openbsd.h (TARGET_VERSION): Remove.
15787         * config/i386/vxworks.h (TARGET_VERSION): Remove.
15788         * config/ia64/elf.h (TARGET_VERSION): Remove.
15789         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
15790         * config/ia64/hpux.h (TARGET_VERSION): Remove.
15791         * config/ia64/linux.h (TARGET_VERSION): Remove.
15792         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
15793         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
15794         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
15795         * config/lm32/lm32.h (TARGET_VERSION): Remove.
15796         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
15797         * config/m32c/m32c.h (TARGET_VERSION): Remove.
15798         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
15799         * config/m32r/m32r.h (TARGET_VERSION): Remove.
15800         * config/m68k/linux.h (TARGET_VERSION): Remove.
15801         * config/m68k/m68k.h (TARGET_VERSION): Remove.
15802         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
15803         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
15804         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
15805         * config/mep/mep.h (TARGET_VERSION): Remove.
15806         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
15807         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
15808         * config/mips/iris6.h (MACHINE_TYPE): Remove.
15809         * config/mips/linux.h (TARGET_VERSION): Remove.
15810         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
15811         * config/mips/vxworks.h (TARGET_VERSION): Remove.
15812         * config/mmix/mmix.h (TARGET_VERSION): Remove.
15813         * config/mn10300/linux.h (TARGET_VERSION): Remove.
15814         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
15815         * config/pa/pa.h (TARGET_VERSION): Remove.
15816         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
15817         * config/picochip/picochip.h (TARGET_VERSION): Remove.
15818         * config/rs6000/aix.h (TARGET_VERSION): Remove.
15819         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
15820         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
15821         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
15822         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
15823         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
15824         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
15825         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
15826         * config/rs6000/linux.h (TARGET_VERSION): Remove.
15827         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
15828         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
15829         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
15830         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
15831         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
15832         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
15833         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
15834         * config/s390/linux.h (TARGET_VERSION): Remove.
15835         * config/s390/s390.h (TARGET_VERSION): Remove.
15836         * config/s390/tpf.h (TARGET_VERSION): Remove.
15837         * config/score/score.h (TARGET_VERSION): Remove.
15838         * config/sh/linux.h (TARGET_VERSION): Remove.
15839         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
15840         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
15841         * config/sh/sh.h (TARGET_VERSION): Remove.
15842         * config/sh/sh64.h (TARGET_VERSION): Remove.
15843         * config/sh/superh.h (TARGET_VERSION): Remove.
15844         * config/sh/vxworks.h (TARGET_VERSION): Remove.
15845         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
15846         * config/sparc/linux.h (TARGET_VERSION): Remove.
15847         * config/sparc/linux64.h (TARGET_VERSION): Remove.
15848         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
15849         TARGET_NAME32, TARGET_NAME): Remove.
15850         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
15851         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
15852         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
15853         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
15854         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
15855         * config/spu/spu.h (TARGET_VERSION): Remove.
15856         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
15857         * config/v850/v850.h (TARGET_VERSION): Remove.
15858         * config/vax/linux.h (TARGET_VERSION): Remove.
15859         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
15860         * config/xtensa/elf.h (TARGET_VERSION): Remove.
15861         * config/xtensa/linux.h (TARGET_VERSION): Remove.
15862
15863 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
15864
15865         PR target/48142
15866         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
15867         frame-related from frame-unrelated adjustments to the stack pointer.
15868
15869 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
15870
15871         * common.opt (fdebug-types-section): Move earlier.
15872         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
15873
15874 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
15875
15876         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
15877         var.
15878
15879 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
15880
15881         * tree.h (CASE_CHAIN): Define.
15882         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
15883         (gimple_redirect_edge_and_branch): Likewise.
15884
15885 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15886
15887         PR middle-end/48367
15888         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
15889         calculation.
15890
15891 2011-03-30  Jeff Law  <law@redhat.com>
15892
15893         * PR bootstrap/48371
15894         * reload1.c (reload): Fix botch in last change.
15895
15896         * reload.h (struct reload): Fix typo introduced in last change.
15897
15898 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
15899
15900         * config/arm/arm.opt (mhard-float, msoft-float): Mark
15901         Undocumented.  Remove help text.
15902         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
15903         -mhard-float.
15904
15905 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
15906
15907         * doc/options.texi (NegativeAlias): Document.
15908         (Alias): Mention NegativeAlias.
15909         * opt-functions.awk: Handle NegativeAlias.
15910         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
15911         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
15912         * opts.h (CL_NEGATIVE_ALIAS): Define.
15913         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
15914         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
15915         OPT_mspe_.
15916         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
15917         Alias entries.
15918         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15919         mno-spe and mno-isel instead of mspe=no and -misel=no.
15920
15921 2011-03-29  Mark Wielaard  <mjw@redhat.com>
15922
15923         * common.opt (fdebug-types-section): New flag.
15924         * doc/invoke.texi: Document new -fno-debug-types-section flag.
15925         * dwarf2out.c (use_debug_types): New define.
15926         (struct die_struct): Mark die_id with GTY desc use_debug_types.
15927         (print_die): Guard output of type unit signatures using
15928         use_debug_types.
15929         (build_abbrev_table): Replace assert of dwarf_version >= 4
15930         with assert on use_debug_types.
15931         (size_of_die): Likewise.
15932         (unmark_dies): Likewise.
15933         (value_format): Decide AT_ref_external form on use_debug_types.
15934         (output_die): Replace dwarf_version version check guard with
15935         use_debug_types where appropriate.
15936         (modified_type_die): Likewise.
15937         (gen_reference_type_die): Likewise.
15938         (dwarf2out_start_source_file): Likewise.
15939         (dwarf2out_end_source_file): Likewise.
15940         (prune_unused_types_walk_attribs): Likewise.
15941         (dwarf2out_finish): Likewise.
15942
15943 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15944
15945         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
15946
15947 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
15948
15949         PR rtl-optimization/48332
15950         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
15951         mode of input operand N and modeN to its actual mode.
15952
15953 2011-03-30  Jeff Law  <law@redhat.com>
15954
15955         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
15956         define accessor macro.
15957         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
15958         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
15959         (reg_equiv_init): Likewise.
15960         (reg_equivs_size): New variable.
15961         (reg_equiv_init_size): Remove.
15962         (allocate_initial_values): Move prototype to here from....
15963         * integrate.h (allocate_initial_values): Remove prototype.
15964         * integrate.c: Include reload.h.
15965         (allocate_initial_values): Corresponding changes.
15966         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
15967         (fix_reg_equiv_init, no_equiv): Corresponding changes.
15968         (update_equiv_regs): Corresponding changes.
15969         (ira): Corresponding changes.
15970         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
15971         (push_secondary_reload): Corresponding changes.
15972         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
15973         (make_memloc, find_reloads_address): Corresponding changes.
15974         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
15975         (find_reloads_address_1): Corresponding changes.
15976         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
15977         (refers_to_regno_for_reload_p): Corresponding changes.
15978         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
15979         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
15980         * reload1.c: Include ggc.h.
15981         (grow_reg_equivs): New function.
15982         (replace_pseudos_in, reload): Corresponding changes.
15983         (calculate_needs_all_insns, alter_regs): Corresponding changes.
15984         (eliminate_regs_1, elimination_effects): Corresponding changes.
15985         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
15986         (delete_output_reload): Likewise.
15987         * caller-save.c (mark_referenced_regs): Corresponding changes.
15988         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
15989         * frv/predicates.md (frv_load_operand): Corresponding changes.
15990         * microblaze/microblaze.c (double_memory_operand): Corresponding
15991         changes.
15992         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
15993         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
15994         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
15995         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
15996         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
15997         changes.
15998         * pa/pa.c (emit_move_sequence): Corresponding changes.
15999         * vax/vax.c (nonindexed_address_p): Corresponding changes.
16000
16001 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
16002
16003         PR target/47551
16004         * config/arm/arm.c (coproc_secondary_reload_class): Handle
16005         structure modes.  Don't check neon_vector_mem_operand for
16006         vector or structure modes.
16007
16008 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
16009             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16010
16011         PR target/43590
16012         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
16013         operand 1 and reshuffle the operands to match.
16014         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
16015
16016 2011-03-30  Christian Schüler  <cschueler@gmx.de>
16017
16018         PR driver/48208
16019         * config/c.opt (F): Added 'Driver' to -F option.
16020
16021         PR driver/48260
16022         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
16023           handler function.
16024         * config/darwin.opt: Added '-arch' option.
16025
16026 2011-03-30  Nick Clifton  <nickc@redhat.com>
16027
16028         * config/rx/rx.md: Add peepholes and patterns to combine
16029         extending loads and simple arithmetic instructions.
16030         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
16031         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
16032         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
16033         modes to use pre-decrement and post-increment addressing.
16034         (rx_is_restricted_memory_address): Add range checking of REG+INT
16035         addresses.
16036         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
16037         (rx_memory_move_cost): Adjust cost of stores.
16038         (rx_adjust_insn_length): New function.
16039
16040 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
16041
16042         PR c/48305
16043         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
16044         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
16045         matching arg00/arg01 types.
16046
16047 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
16048
16049         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
16050         last_location to UNKNOWN_LOCATION.
16051
16052 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
16053
16054         PR target/48349
16055         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
16056         FLOAT_SSE_REGS.
16057
16058 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
16059             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16060
16061         PR bootstrap/48337
16062         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
16063         Init(PROCESSOR_V7).
16064         (sparc_cpu): Likewise.
16065         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
16066         PROCESSOR_V7.
16067
16068 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
16069
16070         PR target/48336
16071         PR middle-end/48342
16072         PR rtl-optimization/48345
16073         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
16074         hard regs for given mode from profitable regs when doing secondary
16075         allocation.
16076
16077 2011-03-29  Jeff Law  <law@redhat.com>
16078
16079         PR bootstrap/48327
16080         * tree-ssa-threadupdate.c (struct redirection_data): Remove
16081         do_not_duplicate field.
16082         (lookup_redirection_data): Corresponding changes.
16083         (create_duplicates): Always create a template block.
16084         (redirect_edges): Remove code which reused the original block
16085         when it was going to become unreachable code.
16086         (thread_block): Don't set do_not_duplicate field.
16087
16088 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
16089
16090         * lto-opts.c (register_user_option_p, lto_register_user_option):
16091         Make type argument unsigned.
16092         * lto-streamer.h (lto_register_user_option): Make type argument
16093         unsigned.
16094         * opth-gen.awk: Make CL_* macros unsigned.
16095         * opts-common.c (find_opt): Make lang_mask argument unsigned.
16096         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
16097         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
16098         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
16099         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
16100         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
16101         (find_opt): Make lang_mask argument unsigned.
16102
16103 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
16104
16105         PR rtl-optimization/48331
16106         PR rtl-optimization/48334
16107         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
16108         for any used algorithm.
16109
16110 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
16111
16112         * ira-conflicts.c (build_object_conflicts): Add unused attribute
16113         to parent_max.
16114
16115 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
16116
16117         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
16118         (alpha_option_override): Don't set alpha_sr_alias_set.
16119         (emit_frame_store_1): Use gen_frame_mem rather than calling
16120         set_mem_alias_set.
16121         (alpha_expand_epilogue): Ditto.
16122
16123 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
16124
16125         PR tree-optimization/48290
16126         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
16127         vectorization, check that relevant phis in the basic block after
16128         the inner loop are really inner loop's exit phis.
16129
16130 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
16131
16132         PR debug/48190
16133         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
16134         (cached_dw_loc_list_def): New structure.
16135         (cached_dw_loc_list): New typedef.
16136         (cached_dw_loc_list_table): New variable.
16137         (cached_dw_loc_list_table_hash): New function.
16138         (cached_dw_loc_list_table_eq): Likewise.
16139         (add_location_or_const_value_attribute): Take a bool cache_p.
16140         Cache the list when the parameter is true.
16141         (gen_formal_parameter_die): Update caller.
16142         (gen_variable_die): Likewise.
16143         (dwarf2out_finish): Likewise.
16144         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
16145         while generating debug info for the decl.
16146         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
16147         (dwarf2out_init): Initialize cached_dw_loc_list_table.
16148         (resolve_addr): Cache the result of resolving a chain of
16149         location lists.
16150
16151 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
16152
16153         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
16154         conflict object hard regset nodes have intersecting hard reg sets.
16155
16156         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
16157         after regstat_init_n_sets_and_refs.
16158
16159         * ira.c: Add more comments at the top.
16160         (setup_stack_reg_pressure_class, setup_pressure_classes):
16161         Add comments how we compute the register pressure classes.
16162         (setup_allocno_and_important_classes): Add more comments.
16163         (setup_class_translate_array, reorder_important_classes)
16164         (setup_reg_class_relations): Add comments.
16165
16166         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
16167         start of the file.
16168
16169         * ira-color.c: Add 2011 to the Copyright line.
16170         (assign_hard_reg):  Add more comments.
16171         (improve_allocation): Ditto.
16172
16173         * ira-costs.c: Add 2011 to the Copyright line.
16174         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
16175         comments.
16176         (setup_regno_cost_classes_by_mode): Ditto.
16177
16178         Initial patches from ira-improv branch:
16179
16180         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
16181
16182         * ira-build.c (ira_create_object): Remove initialization of
16183         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
16184         (ira_create_allocno): Remove initialization of
16185         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
16186         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
16187         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
16188         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
16189         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
16190         Initialize ALLOCNO_ADD_DATA.
16191         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
16192         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
16193         ALLOCNO_REG.
16194         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
16195         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
16196
16197         * ira.c (ira_reallocate): Remove.
16198         (setup_pressure_classes): Call
16199         ira_init_register_move_cost_if_necessary.  Use
16200         ira_register_move_cost instead of ira_get_register_move_cost.
16201         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
16202         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
16203
16204         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
16205         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
16206         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
16207         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
16208         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
16209         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
16210         Fix formatting.
16211         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
16212         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
16213         (struct allocno_color_data): New.
16214         (allocno_color_data_t): New typedef.
16215         (allocno_color_data): New definition.
16216         (ALLOCNO_COLOR_DATA): New macro.
16217         (struct object_color_data): New.
16218         (object_color_data_t): New typedef.
16219         (object_color_data): New definition.
16220         (OBJECT_COLOR_DATA): New macro.
16221         (update_copy_costs, calculate_allocno_spill_cost): Call
16222         ira_init_register_move_cost_if_necessary.  Use
16223         ira_register_move_cost instead of ira_get_register_move_cost.
16224         (move_spill_restore, update_curr_costs): Ditto.
16225         (allocno_spill_priority): Make it inline.
16226         (color_pass): Allocate and free allocno_color_dat and object_color_data.
16227         (struct coalesce_data, coalesce_data_t): New.
16228         (allocno_coalesce_data): New definition.
16229         (ALLOCNO_COALESCE_DATA): New macro.
16230         (merge_allocnos, coalesced_allocno_conflict_p): Use
16231         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
16232         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
16233         (coalesce_allocnos): Ditto.
16234         (setup_coalesced_allocno_costs_and_nums): Ditto.
16235         (collect_spilled_coalesced_allocnos): Ditto.
16236         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
16237         (setup_slot_coalesced_allocno_live_ranges): Ditto.
16238         (coalesce_spill_slots): Ditto.
16239         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
16240         free allocno_coalesce_data.
16241
16242         * ira-conflicts.c: Fix formatting.
16243         (process_regs_for_copy): Call
16244         ira_init_register_move_cost_if_necessary.  Use
16245         ira_register_move_cost instead of ira_get_register_move_cost.
16246         (build_object_conflicts): Optimize.
16247
16248         * ira-costs.c (record_reg_classes): Optimize.  Call
16249         ira_init_register_move_cost_if_necessary.  Use
16250         ira_register_move_cost, ira_may_move_in_cost, and
16251         ira_may_move_out_cost instead of ira_get_register_move_cost and
16252         ira_get_may_move_cost.
16253         (record_address_regs): Ditto.
16254         (scan_one_insn): Optimize.
16255         (find_costs_and_classes): Optimize.
16256         (process_bb_node_for_hard_reg_moves): Call
16257         ira_init_register_move_cost_if_necessary.  Use
16258         ira_register_move_cost instead of ira_get_register_move_cost.
16259
16260         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
16261         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
16262         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
16263         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
16264         definitions.
16265         (ira_initiate_emit_data, ira_finish_emit_data)
16266         (create_new_allocno): New functions.
16267         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
16268         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
16269         Use ira_register_move_cost instead of ira_get_register_move_cost.
16270
16271         * ira-int.h: Fix some comments.
16272         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
16273         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
16274         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
16275         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
16276         add_data.
16277         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
16278         bitfield after mode.  Make hard_regno a short int.  Make
16279         hard_regno short.  Remove first_coalesced_allocno and
16280         next_coalesced_allocno.  Move mem_optimized_dest_p,
16281         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
16282         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
16283         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
16284         temp, colorable_p.  Add new member add_data.
16285         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
16286         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
16287         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
16288         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
16289         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
16290         (ALLOCNO_ADD_DATA): New macro.
16291         (ira_emit_data_t): New typedef.
16292         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
16293         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
16294         from struct ira_allocno.
16295         (ALLOCNO_EMIT_DATA): New macro.
16296         (ira_allocno_emit_data, allocno_emit_reg): New.
16297         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
16298         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
16299         (OBJECT_ADD_DATA): New macro.
16300         (ira_reallocate): Remove.
16301         (ira_initiate_emit_data, ira_finish_emit_data): New.
16302         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
16303         (ira_init_register_move_cost_if_necessary): New.
16304         (ira_object_conflict_iter_next): Merge into
16305         ira_object_conflict_iter_cond.
16306         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
16307
16308         * ira-live.c (process_single_reg_class_operands): Call
16309         ira_init_register_move_cost_if_necessary.  Use
16310         ira_register_move_cost instead of ira_get_register_move_cost.
16311
16312         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
16313
16314         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
16315
16316         * ira-costs.c: Fix formatting.
16317         (cost_classes, cost_classes_num): Remove.
16318         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
16319         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
16320         (cost_classes_del, cost_classes_htab): New.
16321         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
16322         (initiate_regno_cost_classes, setup_cost_classes): New.
16323         (setup_regno_cost_classes_by_aclass): New.
16324         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
16325         (record_reg_classes): Use regno_cost_classes instead of
16326         cost_classes.  Move checking opposite operand up.
16327         (record_address_regs): Use regno_cost_classes
16328         instead of cost_classes.
16329         (scan_one_insn): Ditto.  Use always general register.
16330         (print_allocno_costs): Use regno_cost_classes instead of
16331         cost_classes.
16332         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
16333         (find_costs_and_classes): Set up cost classes for each registers.
16334         Use also their mode for this.  Use regno_cost_classes instead of
16335         cost_classes.
16336         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
16337         cost_classes.
16338         (free_ira_costs, ira_init_costs): Don't use cost_classes.
16339         (ira_costs, ira_set_pseudo_classes): Call
16340         initiate_regno_cost_classes and finish_regno_cost_classes.
16341
16342         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
16343
16344         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
16345
16346         * target.def (ira_cover_classes): Remove.
16347
16348         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
16349
16350         * doc/tm.texi.in: Ditto.
16351
16352         * ira-conflicts.c: Remove mentioning cover classes from the file.
16353         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
16354         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
16355
16356         * targhooks.c (default_ira_cover_classes): Remove.
16357
16358         * targhooks.h (default_ira_cover_classes): Ditto.
16359
16360         * haifa-sched.c: Remove mentioning cover classes from the file.
16361         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
16362         ira_pressure_classes and ira_pressure_classes_num instead of
16363         ira_reg_class_cover_size and ira_reg_class_cover.  Use
16364         sched_regno_pressure_class instead of sched_regno_cover_class.
16365         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
16366         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
16367
16368         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
16369         classes from the file.
16370         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
16371         (struct object_hard_regs, struct object_hard_regs_node): New.
16372         (struct ira_object): New members profitable_hard_regs,
16373         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
16374         (struct ira_allocno): Rename cover_class to aclass.  Rename
16375         cover_class_cost and updated_cover_class_cost to class_cost and
16376         updated_class_cost.  Remove splay_removed_p and
16377         left_conflict_size.  Add new members colorable_p.
16378         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
16379         (ALLOCNO_COLORABLE_P): New macro.
16380         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
16381         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
16382         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
16383         (OBJECT_...): Rename parameter C to O.
16384         (OBJECT_PROFITABLE_HARD_REGS): New macro.
16385         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
16386         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
16387         (struct target_ira_int): New members x_ira_max_memory_move_cost,
16388         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
16389         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
16390         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
16391         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
16392         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
16393         x_ira_reg_class_subunion.
16394         (ira_max_memory_move_cost, ira_max_register_move_cost)
16395         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
16396         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
16397         (ira_important_class_nums, ira_reg_class_superunion): New macros.
16398         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
16399         (ira_reg_class_union): Rename to ira_reg_class_subunion.
16400         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
16401         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
16402         (ira_tune_allocno_costs_and_cover_classes): Rename to
16403         ira_tune_allocno_costs.
16404         (ira_debug_hard_regs_forest): New.
16405         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
16406         (ira_object_conflict_iter_next): Fix comments.
16407         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
16408         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
16409         cover_class to aclass.
16410         (ira_allocate_and_accumulate_costs): Ditto.
16411         (ira_allocate_and_set_or_copy_costs): Ditto.
16412
16413         * opts.c (decode_options): Remove ira_cover_class check.
16414
16415         * ira-color.c: Remove mentioning cover classes from the file.  Use
16416         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
16417         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
16418         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
16419         (splay-tree.h): Remove include.
16420         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
16421         before copy_freq_compare_func.
16422         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
16423         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
16424         New definitions.
16425         (hard_regs_roots, hard_regs_node_vec): Ditto.
16426         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
16427         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
16428         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
16429         (create_new_object_hard_regs_node): Ditto.
16430         (add_new_object_hard_regs_node_to_forest): Ditto.
16431         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
16432         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
16433         Ditto.
16434         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
16435         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
16436         (remove_unused_object_hard_regs_nodes): Ditto.
16437         (enumerate_object_hard_regs_nodes): Ditto.
16438         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
16439         (object_hard_regs_subnode_t): Ditto.
16440         (struct object_hard_regs_subnode): Ditto.
16441         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
16442         (setup_object_hard_regs_subnode_index): Ditto.
16443         (get_object_hard_regs_subnodes_num): Ditto.
16444         (form_object_hard_regs_nodes_forest): Ditto.
16445         (finish_object_hard_regs_nodes_tree): Ditto.
16446         (finish_object_hard_regs_nodes_forest): Ditto.
16447         (allocnos_have_intersected_live_ranges_p): Rename to
16448         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
16449         (pseudos_have_intersected_live_ranges_p): Rename to
16450         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
16451         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
16452         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
16453         (update_copy_costs): Remove assert.  Skip cost update if the hard
16454         reg does not belong the class.
16455         (assign_hard_reg): Process only profitable hard regs.
16456         (uncolorable_allocnos_num): Make it scalar.
16457         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
16458         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
16459         and ira_reg_class_max_nregs.
16460         (bucket_allocno_compare_func): Check frequency first.
16461         (sort_bucket): Add compare function as a parameter.
16462         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
16463         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
16464         (push_allocno_to_stack): Rewrite for checking new allocno
16465         colorability.
16466         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
16467         (push_only_colorable): Pass new parameter to sort_bucket.
16468         (push_allocno_to_spill): Remove.
16469         (allocno_spill_priority_compare): Make it inline and rewrite.
16470         (splay_tree_allocate, splay_tree_free): Remove.
16471         (allocno_spill_sort_compare): New function.
16472         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
16473         build and use splay tree.  Choose first allocno in uncolorable
16474         allocno bucket to spill.  Remove setting spill cost.
16475         (all_conflicting_hard_regs): Remove.
16476         (setup_allocno_available_regs_num): Check only profitable hard
16477         regs.  Print info about hard regs nodes.
16478         (setup_allocno_left_conflicts_size): Remove.
16479         (put_allocno_into_bucket): Don't call
16480         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
16481         (improve_allocation): New.
16482         (color_allocnos): Call setup_profitable_hard_regs,
16483         form_object_hard_regs_nodes_forest, improve_allocation,
16484         finish_object_hard_regs_nodes_forest.  Setup spill cost.
16485         (print_loop_title): Use pressure classes.
16486         (color_allocnso): Ditto.
16487         (do_coloring): Remove allocation and freeing splay_tree_node_pool
16488         and allocnos_for_spilling.
16489         (ira_sort_regnos_for_alter_reg): Don't setup members
16490         {first,next}_coalesced_allocno.
16491         (color): Remove allocating and freeing removed_splay_allocno_vec.
16492         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
16493         prohibited_class_mode_regs.
16494
16495         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
16496         formatting.
16497         (update_allocno_pressure_excess_length): Use pressure classes.
16498         (inc_register_pressure, dec_register_pressure): Check for pressure
16499         class.
16500         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
16501         pressure class.  Use ira_reg_class_nregs instead of
16502         ira_reg_class_max_nregs.
16503         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
16504         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
16505         (single_reg_class): Use ira_reg_class_nregs instead of
16506         ira_reg_class_max_nregs.
16507         (process_bb_node_lives): Use pressure classes.
16508
16509         * ira-emit.c: Remove mentioning cover classes from the file.  Use
16510         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
16511         (change_loop): Use pressure classes.
16512         (modify_move_list): Call ira_set_allocno_class instead of
16513         ira_set_allocno_cover_class.
16514
16515         * ira-build.c: Remove mentioning cover classes from the file.  Use
16516         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
16517         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
16518         ALLOCNO_UPDATED_CLASS_COST instead of
16519         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
16520         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
16521         (ira_create_allocno): Remove initialization of
16522         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
16523         ALLOCNO_COLORABLE_P.
16524         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
16525         Update conflict regs for the objects.
16526         (create_cap_allocno): Remove assert.  Don't propagate
16527         ALLOCNO_AVAILABLE_REGS_NUM.
16528         (ira_free_allocno_costs): New function.
16529         (finish_allocno): Change a part of code into call of
16530         ira_free_allocno_costs.
16531         (low_pressure_loop_node_p): Use pressure classes.
16532         (object_range_compare_func): Don't compare classes.
16533         (setup_min_max_conflict_allocno_ids): Ditto.
16534
16535         * loop-invariant.c: Remove mentioning cover classes from the file.
16536         Use ira_pressure_classes and ira_pressure_classes_num instead of
16537         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
16538         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
16539         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
16540         Use reg_allocno_class instead of reg_cover_class.
16541         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
16542         STACK_REG_COVER_CLASS.
16543         (get_regno_cover_class): Rename to get_regno_pressure_class.
16544         (move_loop_invariants): Initialize and finalize regstat.
16545
16546         * ira.c: Remove mentioning cover classes from the file.  Add
16547         comments about coloring without cover classes.  Use ALLOCNO_CLASS
16548         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
16549         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
16550         setup_class_subset_and_memory_move_costs.
16551         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
16552         (setup_cover_and_important_classes): Rename to
16553         setup_allocno_and_important_classes.
16554         (setup_class_translate_array): New.
16555         (setup_class_translate): Call it for allocno and pressure classes.
16556         (cover_class_order): Rename to allocno_class_order.
16557         (comp_reg_classes_func): Use ira_allocno_class_translate instead
16558         of ira_class_translate.
16559         (reorder_important_classes): Set up ira_important_class_nums.
16560         (setup_reg_class_relations): Set up ira_reg_class_superunion.
16561         (print_class_cover): Rename to print_classes.  Add parameter.
16562         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
16563         Print pressure classes too.
16564         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
16565         setup_reg_subclasses.
16566         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
16567         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
16568         (setup_prohibited_class_mode_regs): Use
16569         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
16570         (clarify_prohibited_class_mode_regs): New function.
16571         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
16572         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
16573         (ira_init_once): Initialize them.
16574         (free_register_move_costs): Process them.
16575         (ira_init): Move calls of find_reg_classes and
16576         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
16577         Call clarify_prohibited_class_mode_regs.
16578         (ira_no_alloc_reg): Remove.
16579         (too_high_register_pressure_p): Use pressure classes.
16580
16581         * sched-deps.c: Remove mentioning cover classes from the file.
16582         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
16583         ira_pressure_classes and ira_pressure_classes_num instead of
16584         ira_reg_class_cover_size and ira_reg_class_cover.
16585         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
16586         sched_regno_pressure_class instead of sched_regno_cover_class.
16587         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
16588         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
16589
16590         * ira.h: Add 2010 to Copyright.
16591         (ira_no_alloc_reg): Remove external.
16592         (struct target_ira): Rename x_ira_hard_regno_cover_class,
16593         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
16594         x_ira_class_translate to x_ira_hard_regno_allocno_class,
16595         x_ira_allocno_classes_num, x_ira_allocno_classes, and
16596         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
16597         x_ira_pressure_classes, x_ira_pressure_class_translate, and
16598         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
16599         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
16600         x_ira_no_alloc_regs.
16601         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
16602         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
16603         ira_allocno_classes_num and ira_allocno_classes.
16604         (ira_class_translate): Rename to ira_allocno_class_translate.
16605         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
16606         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
16607         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
16608         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
16609         (ira_no_alloc_regs): New.
16610
16611         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
16612         classes from the file.  Use ALLOCNO_CLASS instead of
16613         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
16614         ALLOCNO_COVER_CLASS_COST.
16615         (regno_cover_class): Rename to regno_aclass.
16616         (record_reg_classes): Use ira_reg_class_subunion instead of
16617         ira_reg_class_union.
16618         (record_address_regs): Check overflow.
16619         (scan_one_insn): Ditto.
16620         (print_allocno_costs): Print total mem cost fore regional allocation.
16621         (print_pseudo_costs): Use REG_N_REFS.
16622         (find_costs_and_classes): Use classes intersected with them on the
16623         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
16624         ira_reg_class_union.  Use ira_allocno_class_translate and
16625         regno_aclass instead of ira_class_translate and regno_cover_class.
16626         Modify code for finding regno_aclass.  Setup preferred classes for
16627         the next pass.
16628         (setup_allocno_cover_class_and_costs): Rename to
16629         setup_allocno_class_and_costs.  Use regno_aclass instead of
16630         regno_cover_class.  Use ira_set_allocno_class instead of
16631         ira_set_allocno_cover_class.
16632         (init_costs, finish_costs): Use regno_aclass instead of
16633         regno_cover_class.
16634         (ira_costs): Use setup_allocno_class_and_costs instead of
16635         setup_allocno_cover_class_and_costs.
16636         (ira_tune_allocno_costs_and_cover_classes): Rename to
16637         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
16638         by processing objects.  Use ira_reg_class_max_nregs instead of
16639         ira_reg_class_nregs.
16640
16641         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
16642
16643         * sched-int.h: Remove mentioning cover classes from the file.
16644         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
16645
16646         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
16647         classes from the file.
16648         (struct reg_pref): Rename coverclass into allocnoclass.
16649         (reg_cover_class): Rename to reg_allocno_class.
16650
16651         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
16652
16653         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
16654
16655         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
16656
16657         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
16658
16659         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
16660
16661         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
16662
16663         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
16664
16665         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
16666
16667         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
16668
16669         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
16670
16671         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
16672         (i386_ira_cover_classes): Ditto.
16673
16674         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
16675
16676         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
16677
16678         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
16679
16680         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
16681
16682         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
16683
16684         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
16685
16686         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
16687         (mips_ira_cover_classes): Ditto.
16688
16689         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
16690
16691         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
16692
16693         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
16694
16695         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
16696
16697         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
16698
16699         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
16700         (IRA_COVER_CLASSES_VSX): Ditto.
16701
16702         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
16703         (rs6000_ira_cover_classes): Ditto.
16704
16705         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
16706
16707         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
16708
16709         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
16710
16711         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
16712
16713         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
16714
16715         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
16716
16717         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
16718
16719         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
16720
16721         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
16722
16723         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
16724
16725 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
16726
16727         PR debug/48253
16728         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
16729         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
16730         dw_fde_unlikely_section_end_label, cold_in_std_section,
16731         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
16732         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
16733         fields.
16734         (output_fde): Use dw_fde_second_{begin,end} if second is
16735         true, otherwise dw_fde_{begin,end}.
16736         (output_call_frame_info): Test dw_fde_second_begin != NULL
16737         instead of dw_fde_switched_sections.
16738         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
16739         fields, initialize new fields.  Initialize in_std_section
16740         unconditionally from the first partition.
16741         (dwarf2out_end_epilogue): Don't override dw_fde_end when
16742         dw_fde_second_begin is non-NULL.
16743         (dwarf2out_switch_text_section): Stop initializing removed
16744         dw_fde_struct fields, initialize new fields, initialize
16745         also dw_fde_end here.  Set dw_fde_switch_cfi even when
16746         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
16747         (struct var_loc_list_def): Add last_before_switch field.
16748         (arange_table, arange_table_allocated, arange_table_in_use,
16749         ARANGE_TABLE_INCREMENT, add_arange): Removed.
16750         (size_of_aranges): Count !in_std_section and !second_in_std_section
16751         hunks in fdes, instead of looking at arange_table_in_use.
16752         (output_aranges): Add aranges_length argument, don't call
16753         size_of_aranges here.  Instead of using aranges_table*
16754         emit ranges for fdes when !in_std_section resp.
16755         !second_in_std_section.
16756         (dw_loc_list): Break ranges crossing section switch.
16757         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
16758         use dw_fde_second_end instead of dw_fde_end as end of last range.
16759         (gen_subprogram_die): Don't call add_arange.  Use
16760         dw_fde_{begin,end} for first partition and if switched
16761         section dw_fde_second_{begin,end} for the second.
16762         (var_location_switch_text_section_1,
16763         var_location_switch_text_section): New functions.
16764         (dwarf2out_begin_function): Initialize cold_text_section even
16765         when function_section () isn't text_section.
16766         (prune_unused_types): Don't walk arange_table.
16767         (dwarf2out_finish): Don't needlessly test
16768         flag_reorder_blocks_and_partition when testing cold_text_section_used.
16769         If info_section_emitted, call size_of_aranges and if it indicates
16770         non-empty .debug_aranges, call output_aranges with the computed
16771         size.  Stop using removed dw_fde_struct fields, use
16772         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
16773         for second.
16774
16775         PR debug/48203
16776         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
16777         create ENTRY_VALUE if incoming or address of incoming's MEM
16778         is a hard REG.
16779         * dwarf2out.c (mem_loc_descriptor): Don't emit
16780         DW_OP_GNU_entry_value of DW_OP_fbreg.
16781         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
16782         on ENTRY_VALUE is able to find the canonical parameter VALUE.
16783         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
16784         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
16785         ENTRY_VALUE_EXPs.
16786         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
16787         is a REG_P or MEM_P with REG_P address, compute hash directly
16788         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
16789         (preserve_only_constants): Don't clear VALUES forwaring
16790         ENTRY_VALUE to some other VALUE.
16791
16792 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
16793
16794         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
16795         instead of GEN_INT.
16796
16797 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
16798
16799         * cfgexpand.c (expand_gimple_cond): Always set the source location and
16800         block before expanding the statement.
16801         (expand_gimple_stmt_1): Likewise.  Set them here...
16802         (expand_gimple_stmt): ...and not here.  Tidy.
16803         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
16804         unknown.
16805
16806 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
16807
16808         * Makefile.in: New rule for cprop.o.
16809         * gcse.c: Move constant/copy propagation to cprop.c.
16810         (compute_local_properties): Only handle expression tables.
16811         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
16812         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
16813         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
16814         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
16815         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
16816         compute_cprop_data, find_used_regs, try_replace_reg,
16817         find_avail_set, cprop_jump, constprop_register, cprop_insn,
16818         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
16819         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
16820         find_bypass_set, reg_killed_on_edge, bypass_block,
16821         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
16822         execute_rtl_cprop, pass_rtl_cprop): Move to...
16823         * cprop.c: ...here.  New file, constant/copy propagation for RTL
16824         moved from gcse.c to here with minor cleanups in duplicated code.
16825
16826 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
16827
16828         * config/i386/i386.c (flag_opts): Fix a typo in
16829         -mavx256-split-unaligned-store.
16830
16831 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
16832
16833         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
16834         LIBCALL_VALUE): Remove macros.
16835         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16836         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16837         (h8300_function_value, h8300_libcall_value,
16838         h8300_function_value_regno_p): New functions.
16839
16840 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
16841
16842         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
16843
16844 2011-03-28  Jeff Law  <law@redhat.com>
16845
16846         * tree-ssa-threadupdate.c (redirect_edges): Call
16847         create_edge_and_update_destination_phis as needed.
16848         (create_edge_and_update_destination_phis): Accept new BB argument.
16849         All callers updated.
16850         (thread_block): Do not update the profile when threading around
16851         intermediate blocks.
16852         (thread_single_edge): Likewise.
16853         (determine_bb_domination_status): If BB is not a successor of the
16854         loop header, return NONDOMINATING.
16855         (register_jump_thread): Note when we register a jump thread around
16856         an intermediate block.
16857         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
16858         (thread_across_edge): Use it.
16859
16860 2011-03-28  Tristan Gingold  <gingold@adacore.com>
16861
16862         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
16863         when for_return is 2.
16864
16865 2011-03-28  Jeff Law  <law@redhat.com>
16866
16867         * var-tracking.c (canonicalize_values_mark): Delete unused
16868         lhs assignment.
16869         (canonicalize_values_star, set_variable_part): Likewise.
16870         (clobber_variable_part, delete_variable_part): Likewise.
16871
16872 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
16873
16874         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
16875
16876 2011-03-28  Martin Jambor  <mjambor@suse.cz>
16877
16878         * tree-inline.c (expand_call_inline): Do not check that destination
16879         node is analyzed.
16880         (optimize_inline_calls): Assert that destination node is analyzed.
16881         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
16882         not call tree_lowering_passes.
16883         * cgraph.h (cgraph_analyze_function): Declare.
16884         * cgraphunit.c (cgraph_analyze_function): Make public.
16885
16886 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
16887
16888         * config/sparc/sparc-opts.h: New.
16889         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
16890         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
16891         (sparc_option_override): Store processor_type enumeration rather
16892         than string in cpu_default.  Remove name and enumeration from
16893         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
16894         without using sparc_select.  Use target_flags_explicit instead of
16895         fpu_option_set.
16896         * config/sparc/sparc.h (enum processor_type): Move to
16897         sparc-opts.h.
16898         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
16899         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
16900         HeaderInclude entry.
16901         (mcpu=, mtune=): Use Var and Enum.
16902         (sparc_processor_type): New Enum and EnumValue entries.
16903
16904 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16905             Iain Sandoe  <iains@gcc.gnu.org>
16906
16907         PR target/48245
16908         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
16909
16910 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
16911
16912         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
16913         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
16914         Insert new statements at it in lieu of STMT.
16915         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
16916         * tree-vect-stmts.c (vectorizable_store): Likewise.
16917         (vectorizable_load): Likewise.
16918
16919 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
16920
16921         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
16922         (divtf3): Ditto.
16923         (multf3): Ditto.
16924         (subtf3): Ditto.
16925
16926 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16927
16928         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
16929         unaligned 256bit load/store.
16930         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
16931         (*avx_movdqu<avxmodesuffix>): Likewise.
16932
16933 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16934
16935         PR target/48288
16936         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
16937         * config/pa/pa.md (iordi3): Use new predicate in expander.
16938         (iorsi3): Likewise.
16939
16940 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
16941
16942         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
16943         FUNCTION_VALUE_REGNO_P): Remove macros.
16944         * config/mips/mips-protos.h (mips_function_value): Remove.
16945         * config/mips/mips.c (mips_function_value): Rename to...
16946         (mips_function_value_1): ... this. Make static.  Handle receiving
16947         the function type in 'fn_decl_or_type' argument.
16948         (mips_function_value, mips_libcall_value,
16949         mips_function_value_regno_p): New function.
16950         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16951         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16952
16953 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16954
16955         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
16956         and -mavx256-split-unaligned-store.
16957         (ix86_option_override_internal): Split 32-byte AVX unaligned
16958         load/store by default.
16959         (ix86_avx256_split_vector_move_misalign): New.
16960         (ix86_expand_vector_move_misalign): Use it.
16961
16962         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
16963         -mavx256-split-unaligned-store.
16964
16965         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
16966         256bit load/store.  Generate unaligned store on misaligned memory
16967         operand.
16968         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
16969         256bit load/store.
16970         (*avx_movdqu<avxmodesuffix>): Likewise.
16971
16972         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
16973         -mavx256-split-unaligned-store.
16974
16975 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
16976
16977         PR target/38598
16978         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
16979         Update commentary.
16980
16981 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
16982
16983         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
16984         opno arguments with an expand_operand.  Use create_input_operand.
16985         (mips_prepare_builtin_target): Delete.
16986         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
16987         functions.
16988         (mips_expand_builtin_direct): Use create_output_operand and
16989         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
16990         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
16991         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
16992
16993 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
16994
16995         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
16996         function.
16997         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
16998
16999 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
17000
17001         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
17002         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
17003         basic blocks and call commit_edge_insertions directly.
17004         (fixup_abnormal_edges): Move from here to...
17005         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
17006         on the edges and return whether some have actually been inserted.
17007         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
17008         compensation code.
17009
17010 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
17011
17012         PR rtl-optimization/48144
17013         * sel-sched-ir.c (merge_history_vect): Factor out from ...
17014         (merge_expr_data): ... here.
17015         (av_set_intersect): Rename to av_set_code_motion_filter.
17016         Update all callers.  Call merge_history_vect when an expression
17017         is found in both sets.
17018         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
17019
17020 2011-03-26  Alan Modra  <amodra@gmail.com>
17021
17022         * config/rs6000/predicates.md (word_offset_memref_op): Handle
17023         cmodel medium addresses.
17024         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
17025         64-bit gpr loads and stores.
17026         (rs6000_secondary_reload_ppc64): New function.
17027         * config/rs6000/rs6000-protos.h: Declare it.
17028         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
17029
17030 2011-03-26  Alan Modra  <amodra@gmail.com>
17031
17032         PR target/47487
17033         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
17034         GNU Go in traceback table.
17035
17036 2011-03-25  Richard Henderson  <rth@redhat.com>
17037
17038         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
17039         if there are exactly 6 operands.
17040         (set_storage_via_setmem): Similarly.
17041
17042 2011-03-25  Kai Tietz  <ktietz@redhat.com>
17043
17044         * collect2.c (write_c_file_stat): Handle backslash
17045         as right-hand directory separator.
17046         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
17047         checking just for slash.
17048         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
17049         instead of checking for trailing slash.
17050         * gcc.c (record_temp_file): Use filename_cmp instead
17051         of strcmp.
17052         (do_spec_1): Likewise.
17053         (replace_outfile_spec_function): Likewise.
17054         (is_directory): Use filename_ncmp instead of strncmp.
17055         (print_multilib_info): Likewise.
17056         * gcov.c (find_source): Use filename_cmp instead
17057         instead of strcmp.
17058         (make_gcov_file_name): Fix order of slash/backslash
17059         checks.
17060         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
17061         (add_standard_paths): Likewise.
17062         * mips-tfile.c (saber_stop): Handle backslash.
17063         * prefix.c (update_path): Use filename_ncmp instead of
17064         strncmp.
17065         * profile.c (output_location): Use filename_cmp instead
17066         of strcmp.
17067         * read-md.c (handle_toplevel_file): Handle backslash.
17068         * tlink.c (frob_extension):  Likewise.
17069         * tree-cfg.c (same_line_p): Use filename_cmp instead of
17070         strcmp.
17071         * tree-dump.c (dequeue_and_dump): Handle backslash.
17072         * tree.c (get_file_function_name): Likewise.
17073         * gengtype.c (read_input_list): Likewise.
17074         (get_file_realbasename): Likewise.
17075         (get_output_file_with_visibility): Use filename_cmp
17076         instead of strcmp.
17077
17078 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
17079
17080         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
17081         case to VFPv1.
17082
17083 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
17084
17085         * fold-const.c (expr_location_or): New function.
17086         (fold_truth_not_expr): Call it.
17087
17088 2011-03-25  Jeff Law  <law@redhat.com>
17089
17090         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
17091         va_end.
17092         * c-family/c-common.c (def_fn_type): Likewise.
17093         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
17094         * emit-rtl.c (gen_rtvec): Likewise.
17095         * lto/lto-lang.c (def_fn_type): Likewise.
17096
17097 2011-03-25  Richard Guenther  <rguenther@suse.de>
17098
17099         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
17100         also generate copies.
17101         (fini_copy_prop): Handle constant values properly.
17102
17103 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
17104
17105         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
17106         mode size instead of bitsize with DWARF2_ADDR_SIZE.
17107         (hash_loc_operands, compare_loc_operands): Handle
17108         DW_OP_GNU_entry_value.
17109
17110 2011-03-25  Kai Tietz  <ktietz@redhat.com>
17111
17112         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
17113         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
17114         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
17115         comment and use macro TARGET_64BIT_MS_ABI instead.
17116         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
17117         and change default behavior for 32-bit MS_ABI.
17118         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
17119         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
17120         32-bit, too.
17121         (ix86_cfun_abi): Likewise.
17122         (ix86_maybe_switch_abi): Adjust comment.
17123         (init_cumulative_args): Check for bit-ness in MS_ABI case.
17124         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
17125         instead of checking for SYSV_ABI.
17126         (ix86_nsaved_sseregs): Likewise.
17127         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
17128         to 16 bytes.
17129         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
17130         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
17131         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
17132         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
17133         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
17134
17135 2011-03-25  Richard Guenther  <rguenther@suse.de>
17136
17137         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
17138         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
17139         (verify_gimple): Remove.
17140         * tree-cfg.c (verify_gimple_call): Merge verification
17141         from verify_stmts.
17142         (verify_gimple_phi): Merge verification from verify_stmts.
17143         (verify_gimple_label): New function.
17144         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
17145         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
17146         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
17147         (verify_stmts): Rename to verify_gimple_in_cfg.
17148         (verify_gimple_in_cfg): New function.
17149         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
17150         * tree-ssa.c (verify_ssa): Likewise.
17151         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
17152
17153 2011-03-25  Richard Guenther  <rguenther@suse.de>
17154
17155         * passes.c (init_optimization_passes): Add FRE pass after
17156         early SRA.
17157
17158 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
17159             Andrew Stubbs  <ams@codesourcery.com>
17160
17161         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
17162         for Cortex-A8.
17163         (arm_movdi_vfp_cortexa8): New pattern.
17164         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
17165         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
17166         instructions when tuning for Cortex-A8.  Set attribute "arch".
17167         * config/arm/arm.md: Move include arm-tune.md up a bit.
17168         (define_attr "arch"): Add "onlya8" and "nota8" values.
17169         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
17170
17171 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
17172
17173         PR bootstrap/48282
17174         Revert:
17175         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
17176
17177         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
17178         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
17179         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
17180         * passes.c (init_optimization_passes): Move
17181         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
17182
17183 2011-03-25  Kai Tietz  <ktietz@redhat.com>
17184
17185         * c-typeck.c (comptypes_internal): Replace target
17186         hook call of comp_type_attributes by version in tree.c file.
17187         * gimple.c (gimple_types_compatible_p_1): Likewise.
17188         * tree-ssa.c (useless_type_conversion_p): Likewise.
17189         * tree.c (build_type_attribute_qual_variant): Likewise.
17190         (attribute_value_equal): New static helper function.
17191         (comp_type_attributes): New function.
17192         (merge_attributes): Use attribute_value_equal for comparison.
17193         (attribute_list_contained): Likewise.
17194         * tree.h (comp_type_attributes): New prototype.
17195
17196 2011-03-25  Richard Guenther  <rguenther@suse.de>
17197
17198         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
17199         of complex types at -O0.
17200         (verify_gimple_assign_binary): Likewise.
17201         (verify_gimple_assign_ternary): Likewise.
17202
17203 2011-03-24  Mark Wielaard  <mjw@redhat.com>
17204
17205         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
17206         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
17207
17208 2011-03-24  Mark Wielaard  <mjw@redhat.com>
17209
17210         PR debug/48041
17211         * dwarf2out.c (output_abbrev_section): Only write table when
17212         abbrev_die_table_in_use > 1.
17213
17214 2011-02-24  Richard Henderson  <rth@redhat.com>
17215
17216         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
17217         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
17218         (alpha_expand_unaligned_load_words): Use extql.
17219         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
17220         (emit_insxl): Handle all modes for consistency.
17221
17222 2011-02-24  Richard Henderson  <rth@redhat.com>
17223
17224         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
17225         (alpha_expand_unaligned_load): Likewise.
17226         (alpha_expand_unaligned_store): Likewise.
17227         (alpha_expand_unaligned_load_words): Likewise.
17228         (alpha_expand_unaligned_store_words): Likewise.
17229         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
17230         (alpha_split_lock_test_and_set_12): Likewise.
17231         (print_operand, alpha_fold_builtin_extxx): Likewise.
17232         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
17233         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
17234         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
17235         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
17236         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
17237         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
17238         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
17239         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
17240         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
17241         (extwl, extll, extql): Similarly.
17242         (inswh, inslh, insqh): Similarly.
17243         (mskbl, mskwl, mskll, mskql): Similarly.
17244         (mskwh, msklh, mskqh): Similarly.
17245
17246 2011-02-24  Richard Henderson  <rth@redhat.com>
17247
17248         * config/alpha/alpha.md (attribute isa): Add er, ner.
17249         (attribute enabled): Handle them.
17250         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
17251
17252 2011-02-24  Richard Henderson  <rth@redhat.com>
17253
17254         * config/alpha/alpha.md (attribute isa): Add vms.
17255         (attribute enabled): Handle it.
17256         (*movsf): Merge *movsf_{nofix,fix,nofp}.
17257         (*movdf): Merge *movdf_{nofix,fix,nofp}.
17258         (*movtf): Rename from *movtf_internal for consistency.
17259         (*movsi): Merge with *movsi_nt_vms.
17260         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
17261         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
17262         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
17263         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
17264
17265 2011-02-24  Richard Henderson  <rth@redhat.com>
17266
17267         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
17268         (extendqisi2, extendhisi2): Likewise.
17269         (extendqidi2): Simplify BWX/non-BWX expansions.
17270         (extendhidi2): Similarly.
17271
17272 2011-02-24  Richard Henderson  <rth@redhat.com>
17273
17274         * config/alpha/alpha.md (attribute isa): New.
17275         (attribute enabled): New.
17276         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
17277         (zero_extendqisi2, zero_extendqidi2): Similarly.
17278         (zero_extendhisi2, zero_extendhidi2): Similarly.
17279         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
17280
17281 2011-02-24  Richard Henderson  <rth@redhat.com>
17282
17283         * config/alpha/predicates.md (input_operand): Revert last change;
17284         update comment to mention 32-bit VMS rather than Windows.
17285
17286 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
17287
17288         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
17289         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
17290         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
17291         * passes.c (init_optimization_passes): Move
17292         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
17293
17294 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
17295
17296         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
17297
17298 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
17299
17300         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
17301         correctly.
17302
17303 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
17304
17305         PR debug/48204
17306         * simplify-rtx.c (simplify_const_unary_operation): Call
17307         real_convert when changing mode class with FLOAT_EXTEND.
17308
17309 2011-03-24  Nick Clifton  <nickc@redhat.com>
17310
17311         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
17312         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17313         * config/rx/rx.c (rx_option_override): Set align_jumps,
17314         align_loops and align_labels if not set by the user.
17315         (rx_align_for_label): New function.
17316         (rx_max_skip_for_label): New function.
17317         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
17318         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
17319         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
17320         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
17321         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
17322
17323 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
17324
17325         PR rtl-optimization/48263
17326         * optabs.c (expand_binop_directly): Reinstate convert_modes code
17327         and original commutative_p handling.  Use maybe_gen_insn.
17328
17329 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17330
17331         * reload.c (find_reloads_subreg_address): Add address_reloaded
17332         parameter and return true there if the full address has been
17333         reloaded.
17334         (find_reloads_toplev): Pass address_reloaded flag.
17335         (find_reloads_address_1): Don't use address_reloaded parameter.
17336
17337 2011-03-24  Jeff Law  <law@redhat.com>
17338
17339         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
17340         unused variable "ann".
17341         (remove_unused_locals): Likewise.
17342
17343         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
17344         statement.
17345
17346         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
17347         after it is freed.
17348
17349 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17350
17351         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
17352         for invalid symbolic addresses.
17353         (s390_secondary_reload): Don't use s390_check_symref_alignment for
17354         larl operands.
17355
17356 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
17357
17358         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
17359         the argument in calls to fold_truth_not_expr.
17360
17361 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
17362
17363         * tree.c (record_node_allocation_statistics): New function.
17364         (make_node_stat, copy_node_stat, build_string): Call it.
17365         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
17366         (build1_stat, build_omp_clause): Likewise.
17367
17368 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
17369
17370         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
17371         last commit.
17372
17373 2011-03-24  Richard Guenther  <rguenther@suse.de>
17374
17375         PR tree-optimization/48271
17376         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
17377         blocks that still exist.
17378
17379 2011-03-24  Richard Guenther  <rguenther@suse.de>
17380
17381         PR tree-optimization/48270
17382         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
17383         not free datarefs before ddrs.
17384
17385 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
17386
17387         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
17388         from the address built for a reference with variable offset.
17389
17390 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
17391
17392         PR target/48237
17393         * config/i386/i386.md (*movdf_internal_rex64): Do not split
17394         alternatives that can be handled with movq or movabsq insn.
17395         (*movdf_internal): Disable for !TARGET_64BIT.
17396         (*movdf_internal_nointeger): Ditto.
17397         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
17398
17399 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
17400
17401         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
17402         (FUNCTION_ARG_ADVANCE): Likewise.
17403         * tm.texi.in: Change references to them to hook references.
17404         * tm.texi: Regenerate.
17405         * targhooks.c (default_function_arg): Eliminate check for target macro.
17406         (default_function_incoming_arg): Likewise.
17407         (default_function_arg_advance): Likewise.
17408         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
17409         (function_arg_advance): Likewise.
17410         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
17411
17412 2011-03-24  Richard Guenther  <rguenther@suse.de>
17413
17414         PR middle-end/48269
17415         * tree-object-size.c (addr_object_size): Do not double-account
17416         for MEM_REF offsets.
17417
17418 2011-03-24  Diego Novillo  <dnovillo@google.com>
17419
17420         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
17421         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
17422         (lto_input_data_block): Move from lto-opts.c.  Make extern.
17423         Update all users.
17424         (lto_input_string): Rename from input_string.  Make extern.
17425         Update all users.
17426         * lto-streamer-out.c (lto_output_string_with_length): Rename from
17427         output_string_with_length.
17428         Output 0 to indicate a non-NULL string.  Update all callers to
17429         not emit 0.
17430         (lto_output_string): Rename from output_string.  Make extern.
17431         Update all users.
17432         (lto_output_decl_state_streams): Make extern.
17433         (lto_output_decl_state_refs): Make extern.
17434         * lto-streamer.h (lto_input_string): Declare.
17435         (lto_input_data_block): Declare.
17436         (lto_output_string): Declare.
17437         (lto_output_string_with_length): Declare.
17438         (lto_output_decl_state_streams): Declare.
17439         (lto_output_decl_state_refs): Declare.
17440
17441 2011-03-24  Richard Guenther  <rguenther@suse.de>
17442
17443         PR tree-optimization/46562
17444         * tree.c (build_invariant_address): New function.
17445         * tree.h (build_invariant_address): Declare.
17446         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
17447         a renamed function moved ...
17448         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
17449         Take valueization callback parameter.
17450         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
17451         * gimple-fold.h: New file.
17452         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
17453         (ccp_fold, fold_const_aggregate_ref,
17454         fold_ctor_reference, fold_nonarray_ctor_reference,
17455         fold_array_ctor_reference, fold_string_cst_ctor_reference,
17456         get_base_constructor): Move ...
17457         * gimple-fold.c: ... here.
17458         (gimple_fold_stmt_to_constant_1): New function
17459         split out from ccp_fold.  Take a valueization callback parameter.
17460         Valueize all operands.
17461         (gimple_fold_stmt_to_constant): New wrapper function.
17462         (fold_const_aggregate_ref_1): New function split out from
17463         fold_const_aggregate_ref.  Take a valueization callback parameter.
17464         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
17465         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
17466         invariant POINTER_PLUS_EXPRs to invariant form.
17467         (vn_valueize): New function.
17468         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
17469         * tree-vrp.c (vrp_valueize): New function.
17470         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
17471         to fold statements to constants.
17472         * tree-ssa-pre.c (eliminate): Properly guard propagation of
17473         function declarations.
17474         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
17475         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
17476
17477 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
17478
17479         * config/h8300/predicates.md (jump_address_operand): Fix register
17480         mode check.
17481
17482 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
17483
17484         * doc/invoke.texi (max-stores-to-sink): Document.
17485         * params.h (MAX_STORES_TO_SINK): Define.
17486         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
17487         if either vectorization or if-conversion is disabled.
17488         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
17489         tree-vect-data-refs.c vect_equal_offsets.
17490         (dr_equal_offsets_p): New function.
17491         (find_data_references_in_bb): Remove static.
17492         * tree-data-ref.h (find_data_references_in_bb): Declare.
17493         (dr_equal_offsets_p): Likewise.
17494         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
17495         (vect_drs_dependent_in_basic_block): Update calls to
17496         vect_equal_offsets.
17497         (vect_check_interleaving): Likewise.
17498         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
17499         (cond_if_else_store_replacement): Rename to...
17500         (cond_if_else_store_replacement_1): ... this.  Change arguments and
17501         documentation.
17502         (cond_if_else_store_replacement): New function.
17503         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
17504         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
17505
17506 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
17507
17508         PR target/46934
17509         * config/arm/arm.md (casesi): Use the gen_int_mode() function
17510         to subtract lower bound instead of GEN_INT().
17511
17512 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
17513
17514         PR other/48179
17515         PR other/48221
17516         PR other/48234
17517         * doc/extend.texi (Alignment): Move section to match order in TOC.
17518         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
17519         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
17520
17521 2011-03-23  Jeff Law  <law@redhat.com>
17522
17523         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
17524         before removing the edge.
17525
17526         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
17527         it may have been freed by redirect_branch_edge or
17528         redirect_edge_succ_nodup.
17529
17530 2011-03-23  Richard Guenther  <rguenther@suse.de>
17531
17532         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
17533         (check_va_list_escapes): Likewise.
17534         (check_all_va_list_escapes): Likewise.
17535
17536 2011-03-23  Richard Guenther  <rguenther@suse.de>
17537
17538         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
17539         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
17540         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
17541         (alias.o): Likewise.
17542         (ipa-type-escape.o): Remove.
17543         (ipa-struct-reorg.o): Likewise.
17544         (GTFILES): Remove ipa-struct-reorg.c.
17545         * alias.c: Do not include ipa-type-escape.h.
17546         * tree-ssa-alias.c: Likewise.
17547         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
17548         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
17549         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
17550         and ipa-type-escape passes.
17551         * tree-pass.h (pass_ipa_type_escape): Remove.
17552         (pass_ipa_struct_reorg): Likewise.
17553         * ipa-struct-reorg.h: Remove.
17554         * ipa-struct-reorg.c: Likewise.
17555         * ipa-type-escape.h: Likewise.
17556         * ipa-type-escape.c: Likewise.
17557         * doc/invoke.texi (-fipa-struct-reorg): Remove.
17558         (--param struct-reorg-cold-struct-ratio): Likewise.
17559         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
17560         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
17561         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
17562
17563 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17564
17565         * config/s390/2084.md: Enable all insn reservations also for z9_ec
17566         cpu attribute value.
17567         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
17568         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
17569         * config/s390/s390.c (processor_flags_table): New constant array.
17570         (s390_handle_arch_option): Remove.
17571         (s390_handle_option): Remove s390_handle_arch_option invocations
17572         and OPT_mwarn_framesize_ handling.
17573         (s390_option_override): Remove s390_handle_arch_option invocation.
17574         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
17575         warnings.
17576         * config/s390/s390.md (cpu attribute): Add z9_ec value.
17577         * config/s390/s390.opt (s390_tune, s390_arch)
17578         (march=): Replace s390_arch_option enum and values with
17579         processor_type.  Set variable name to s390_arch.  Set
17580         initialization value.
17581         (mtune=): Replace s390_arch_option with processor_type.  Set
17582         variable name to s390_tune.  Set initialization value.
17583
17584 2011-03-23  Julian Brown  <julian@codesourcery.com>
17585
17586         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
17587         accesses which are not naturally aligned.
17588
17589 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
17590
17591         PR target/47553
17592         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
17593
17594 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
17595
17596         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
17597         parameter from "int" to "enum insn_code".
17598         (expand_operand_type): New enum.
17599         (expand_operand): New structure.
17600         (create_expand_operand): New function.
17601         (create_fixed_operand, create_output_operand): Likewise
17602         (create_input_operand, create_convert_operand_to): Likewise.
17603         (create_convert_operand_from, create_address_operand): Likewise.
17604         (create_integer_operand): Likewise.
17605         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
17606         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
17607         (expand_insn, expand_jump_insn): Likewise.
17608         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
17609         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
17610         (expand_movstr, expand_builtin___clear_cache): Likewise.
17611         (expand_builtin_lock_release): Likewise.
17612         * explow.c (allocate_dynamic_stack_space): Likewise.
17613         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
17614         and use the default handling in that case.
17615         * expmed.c (check_predicate_volatile_ok): Delete.
17616         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
17617         (emit_cstore): Likewise.
17618         * expr.c (emit_block_move_via_movmem): Likewise.
17619         (set_storage_via_setmem, expand_assignment): Likewise.
17620         (emit_storent_insn, try_casesi): Likewise.
17621         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
17622         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
17623         (expand_vec_shift_expr, expand_binop_directly): Likewise.
17624         (expand_twoval_unop, expand_twoval_binop): Likewise.
17625         (expand_unop_direct, emit_indirect_jump): Likewise.
17626         (emit_conditional_move, vector_compare_rtx): Likewise.
17627         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
17628         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
17629         (expand_sync_lock_test_and_set): Likewise.
17630         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
17631         (emit_unop_insn): Likewise.
17632         (expand_copysign_absneg): Change icode to an insn_code.
17633         (create_convert_operand_from_type): New function.
17634         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
17635         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
17636         (expand_insn, expand_jump_insn): Likewise.
17637         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
17638         than const_int_operand for operand 2.
17639
17640 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17641
17642         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
17643         if possible.
17644
17645 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
17646
17647         * emit-rtl.c (emit_pattern_before_noloc): New function.
17648         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
17649         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
17650         (emit_pattern_after_noloc): New function.
17651         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
17652         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
17653
17654 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
17655
17656         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
17657         (__ffsDI2): Likewise.
17658
17659 2011-03-22  Richard Henderson  <rth@redhat.com>
17660
17661         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
17662         of !TARGET_ABI_OPEN_VMS.
17663         (alpha_trampoline_init, alpha_start_function): Likewise.
17664         (alpha_expand_epilogue, alpha_file_start): Likewise.
17665         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
17666         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
17667         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
17668         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
17669         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
17670
17671 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17672
17673         * config/s390/s390-opts.h: New.
17674         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
17675         s390_arch_flags, s390_warn_framesize, s390_stack_size,
17676         s390_stack_guard): Remove.
17677         (s390_handle_arch_option): Return void.  Take enum
17678         s390_arch_option value instead of string and searching array.
17679         (s390_handle_option): Don't assert that global structures are in
17680         use.  Access variables via opts pointer.  Use error_at.  Don't use
17681         sscanf for -mstack-guard= or -mstack-size=.  Update call to
17682         s390_handle_arch_option.
17683         (s390_option_override): Update call to s390_handle_arch_option.
17684         (s390_emit_prologue): Use %d format for s390_stack_size in
17685         diagnostic.  Use %wd for HOST_WIDE_INT.
17686         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
17687         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
17688         * config/s390/s390.opt (config/s390/s390-opts.h): New
17689         HeaderInclude entry.
17690         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
17691         s390_arch_flags, s390_warn_framesize): New Variable entries.
17692         (s390_arch_option): New Enum and EnumValue entries.
17693         (march=): Use Enum instead of Var.
17694         (mstack-guard=, mstack-size=): Use UInteger and Var.
17695         (mtune=): Use Enum.
17696
17697 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17698
17699         * config/score/score.c (score_handle_option): Don't assert that
17700         global structures are in use.  Access target_flags via opts
17701         pointer.  Use value of -march= option to determine target_flags
17702         settings.
17703         * config/score/score.opt (march=): Use Enum.
17704         (score_arch): New Enum and EnumValue entries.
17705
17706 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17707
17708         * config/mep/mep.c (option_mtiny_specified): Remove.
17709         (mep_option_override): Move register handling for -mivc2 from
17710         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
17711         instead of option_mtiny_specified.
17712         (mep_handle_option): Access target_flags via opts pointer.  Don't
17713         assert that global structures are in use.  Defer part of -mivc2
17714         handling and move it to mep_option_override.
17715         * config/mep/mep.opt (IVC2): New Mask entry.
17716         (mivc2): Use Var and Defer instead of Mask.
17717
17718 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17719
17720         * config/v850/v850-opts.h: New.
17721         * config/v850/v850.c (small_memory): Replace with
17722         small_memory_physical_max array.  Make that array static const.
17723         (v850_handle_memory_option): Take integer value of argument.  Take
17724         gcc_options pointer, option text and location.  Return void.
17725         Update for changes to small memory structures.
17726         (v850_handle_option): Access target_flags via opts pointer.  Don't
17727         assert that global structures are in use.  Update calls to
17728         v850_handle_memory_option.
17729         (v850_encode_data_area): Update references to small memory settings.
17730         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
17731         (enum small_memory_type): Move to v850-opts.h.
17732         * config/v850/v850.opt (config/v850/v850-opts.h): New
17733         HeaderInclude entry.
17734         (small_memory_max): New Variable entry.
17735         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
17736         (mtda, mzda): Likewise.
17737
17738 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17739
17740         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
17741         pointer.  Don't assert that global structures are in use.
17742
17743 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17744
17745         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
17746         via opts pointer.  Don't assert that global structures are in use.
17747
17748 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17749
17750         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
17751         (munix=93): Use Var.
17752         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
17753         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
17754         * config/pa/pa-opts.h: New.
17755         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
17756         (pa_handle_option): Don't assert that global structures are in
17757         use.  Access target_flags via opts pointer.  Don't handle
17758         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
17759         OPT_munix_98 here.
17760         (pa_option_override): Handle deferred OPT_mfixed_range_.
17761
17762 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17763
17764         * config/mn10300/mn10300-opts.h: New.
17765         * config/mn10300/mn10300.c (mn10300_processor,
17766         mn10300_tune_string): Remove.
17767         (mn10300_handle_option): Don't assert that global structures are
17768         in use.  Access mn10300_processor via opts pointer.  Don't handle
17769         OPT_mtune_ here.
17770         * config/mn10300/mn10300.h (enum processor_type): Move to
17771         mn10300-opts.h.
17772         (mn10300_processor): Remove.
17773         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
17774         HeaderInclude entry.
17775         (mn10300_processor): New Variable entry.
17776         (mtune=): Use Var.
17777
17778 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17779
17780         * config/microblaze/microblaze.c: Don't include opts.h.
17781         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
17782         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
17783         (mno-clearbss): Use Var and Warn.
17784
17785 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17786
17787         * config/m32r/m32r-opts.h: New.
17788         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
17789         (m32r_handle_option): Don't assert that global structures are in
17790         use.  Access target_flags and m32r_cache_flush_func via opts
17791         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
17792         OPT_mno_flush_trap here.
17793         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
17794         include of m32r-opts.h.
17795         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
17796         HeaderInclude entry.
17797         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
17798         (mmodel=): Use Enum and Var.
17799         (m32r_model): New Enum and EnumValue entries.
17800         (mno-flush-trap): Use Var.
17801         (msdata=): Use Enum and Var.
17802         (m32r_sdata): New Enum and EnumValue entries.
17803
17804 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17805
17806         * config/m32c/m32c.c: Don't include opts.h.
17807         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
17808         m32c_handle_option): Remove.
17809         (m32c_option_override): Check global_options_set.x_target_memregs
17810         instead of target_memregs_set.
17811         * config/m32c/m32c.h (target_memregs): Remove.
17812         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
17813         variable.
17814
17815 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17816
17817         * config/iq2000/iq2000-opts.h: New.
17818         * config/iq2000/iq2000.c: Don't include opts.h.
17819         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
17820         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
17821         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
17822         HeaderInclude entry.
17823         (iq2000_tune): New Variable entry.
17824         (march=): Add comment.  Use Enum.
17825         (iq2000_arch): New Enum and EnumValue entries.
17826         (mcpu=): Use Enum and Var.
17827         (iq2000_tune): New Enum and EnumValue entries.
17828
17829 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17830
17831         * config/ia64/ia64-opts.h: New.
17832         * config/ia64/ia64.c (ia64_tune): Remove.
17833         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
17834         here.  Use error_at.
17835         (ia64_option_override): Handle deferred OPT_mfixed_range_.
17836         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
17837         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
17838         HeaderInclude entry.
17839         (ia64_tune): New Variable entry.
17840         (mfixed-range=): Use Defer and Var.
17841         (mtune=): Use Enum and Var.
17842         (ia64_tune): New Enum and EnumValue entries.
17843
17844 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17845
17846         * config/frv/frv-opts.h: New.
17847         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
17848         frv-opts.h.
17849         (frv_cpu_type): Remove.
17850         * config/frv/frv.c: Don't include opts.h.
17851         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
17852         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
17853         (frv_cpu_type): New Variable entry.
17854         (frv_cpu): New Enum and EnumValue entries.
17855
17856 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17857
17858         * config/cris/cris.c (cris_handle_option): Access target_flags via
17859         opts pointer.  Don't assert that global structures are in use.
17860         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
17861         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
17862
17863 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17864
17865         * config/bfin/bfin-opts.h: New.
17866         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
17867         bfin_si_revision, bfin_workarounds): Remove.
17868         (bfin_cpus): Make static const.
17869         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
17870         not bfin_lib_id_given.
17871         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
17872         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
17873         pointer. Use error_at.  Don't assert that global structures are in use.
17874         * config/bfin/bfin.h: Include bfin-opts.h.
17875         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
17876         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
17877         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
17878         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
17879         entries.
17880
17881 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17882
17883         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
17884         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
17885         or -msoft-float here.
17886         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
17887         -msoft-float and -mhard-float.
17888         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
17889         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17890         msoft-float.
17891         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
17892         -msoft-float.
17893         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
17894         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
17895         not mhard-float.
17896         (LIBGCC_SPEC): Don't handle -msoft-float.
17897         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
17898         -mhard-float.
17899         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17900         msoft-float.
17901         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
17902         -mfloat-abi=*, not -msoft-float and -mhard-float.
17903         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
17904         -msoft-float.
17905         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
17906         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
17907         mhard-float and msoft-float.
17908         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
17909         mfloat-abi=soft in comments, not mhard-float and msoft-float.
17910         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
17911         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
17912         mhard-float.
17913         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
17914         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
17915         msoft-float.
17916         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
17917         not mhard-float.
17918         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
17919         not msoft-float.
17920
17921 2011-03-22  Richard Henderson  <rth@redhat.com>
17922
17923         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
17924         TARGET_ABI_WINDOWS_NT.
17925         (alpha_output_function_end_prologue): Likewise.
17926         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
17927         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
17928         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
17929         (trap, *movsi_nt_vms): Likewise.
17930         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
17931         (*tablejump_osf_nt_internal): Remove.
17932         * config/alpha/predicates.md (input_operand): Only test Pmode.
17933
17934 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17935
17936         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
17937         via opts pointer.  Use error_at.  Don't assert that global
17938         structures are in use.
17939
17940 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17941
17942         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
17943         (ix86_handle_option): Access ix86_isa_flags and
17944         ix86_isa_flags_explicit via opts pointer.  Don't assert that
17945         global structures are in use.
17946         (ix86_function_specific_save, ix86_function_specific_restore):
17947         Update ix86_isa_flags_explicit field name.
17948         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
17949         (ix86_isa_flags_explicit): Rename TargetSave entry to
17950         x_ix86_isa_flags_explicit.
17951
17952 2011-03-22  Richard Henderson  <rth@redhat.com>
17953
17954         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
17955         (alpha_option_override, direct_return): Likewise.
17956         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
17957         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
17958         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
17959         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
17960         (alpha_expand_epilogue, alpha_end_function): Likewise.
17961         (alpha_init_libfuncs): Likewise.
17962         (struct machine_function): Remove unicosmk members.
17963         (print_operand) ['t']: Remove.
17964         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
17965         unicosmk_output_module_name, unicosmk_output_common,
17966         current_section_align, unicosmk_output_text_section_asm_op,
17967         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
17968         unicosmk_section_type_flags, unicosmk_unique_section,
17969         unicosmk_asm_named_section, unicosmk_insert_attributes,
17970         unicosmk_output_align, unicosmk_defer_case_vector,
17971         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
17972         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
17973         unicosmk_output_ssib, unicosmk_add_call_info_word,
17974         unicosmk_extern_head, unicosmk_output_default_externs,
17975         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
17976         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
17977         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
17978         * config/alpha/alpha-protos.h: Update.
17979         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
17980         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
17981         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
17982         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
17983         (*mulsi_se, mulvsi3): Likewise.
17984         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
17985         (*divmodsi_internal, call, call_value, realign): Likewise.
17986         (moddi3, umoddi3): Likewise; remove duplicate expander.
17987         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
17988         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
17989         (*movdi_nofix): Remove r/U alternative.
17990         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
17991         * config/alpha/constraints.md ("U"): Remove.
17992         * config/alpha/predicates.md (call_operand"): Don't test
17993         TARGET_ABI_UNICOSMK.
17994
17995 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17996
17997         * target.def (handle_option): Take gcc_options and
17998         cl_decoded_option pointers and location_t.
17999         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
18000         * doc/tm.texi: Regenerate.
18001         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
18002         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
18003         * lto-opts.c (lto_reissue_options): Generate option structure for
18004         targetm.handle_option call.
18005         * opts.c (target_handle_option): Update call to
18006         targetm.handle_option.  Remove assertions about values now passed
18007         down to hook.
18008         * targhooks.c (default_target_handle_option): New.
18009         * targhooks.h (default_target_handle_option): Declare.
18010         * config/alpha/alpha.c: Include opts.h.
18011         (alpha_handle_option): Update to new hook interface.
18012         * config/arm/arm.c: Include opts.h.
18013         (arm_handle_option): Update to new hook interface.
18014         * config/arm/t-arm (arm.o): Update dependencies.
18015         * config/bfin/bfin.c: Include opts.h.
18016         (bfin_handle_option): Update to new hook interface.
18017         * config/cris/cris.c: Include opts.h.
18018         (cris_handle_option): Update to new hook interface.
18019         * config/frv/frv.c: Include opts.h.
18020         (frv_handle_option): Update to new hook interface.
18021         * config/i386/i386.c: Include opts.h.
18022         (ix86_handle_option): Update to new hook interface.
18023         (ix86_valid_target_attribute_inner_p): Generate option structure
18024         for call to ix86_handle_option.
18025         * config/i386/t-i386 (i386.o): Update dependencies.
18026         * config/ia64/ia64.c: Include opts.h.
18027         (ia64_handle_option): Update to new hook interface.
18028         * config/ia64/t-ia64 (ia64.o): Update dependencies.
18029         * config/iq2000/iq2000.c: Include opts.h.
18030         (iq2000_handle_option): Update to new hook interface.
18031         * config/m32c/m32c.c: Include opts.h.
18032         (m32c_handle_option): Update to new hook interface.
18033         * config/m32r/m32r.c: Include opts.h.
18034         (m32r_handle_option): Update to new hook interface.
18035         * config/m68k/m68k.c: Include opts.h.
18036         (m68k_handle_option): Update to new hook interface.
18037         * config/mep/mep.c: Include opts.h.
18038         (mep_handle_option): Update to new hook interface.
18039         * config/microblaze/microblaze.c: Include opts.h.
18040         (microblaze_handle_option): Update to new hook interface.
18041         * config/mips/mips.c: Include opts.h.
18042         (mips_handle_option): Update to new hook interface.
18043         * config/mn10300/mn10300.c: Include opts.h.
18044         (mn10300_handle_option): Update to new hook interface.
18045         * config/pa/pa.c: Include opts.h.
18046         (pa_handle_option): Update to new hook interface.
18047         * config/pdp11/pdp11.c: Include opts.h.
18048         (pdp11_handle_option): Update to new hook interface.
18049         * config/rs6000/rs6000.c: Include opts.h.
18050         (rs6000_handle_option): Update to new hook interface.
18051         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
18052         * config/rx/rx.c: Include opts.h.
18053         (rx_handle_option): Update to new hook interface.
18054         * config/s390/s390.c: Include opts.h.
18055         (s390_handle_option): Update to new hook interface.
18056         * config/score/score.c: Include opts.h.
18057         (score_handle_option): Update to new hook interface.
18058         * config/sh/sh.c: Include opts.h.
18059         (sh_handle_option): Update to new hook interface.
18060         * config/sparc/sparc.c: Include opts.h.
18061         (sparc_handle_option): Update to new hook interface.
18062         * config/v850/v850.c: Include opts.h.
18063         (v850_handle_option): Update to new hook interface.
18064
18065 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18066
18067         * gcc.c (driver_unknown_option_callback): Only permit and save
18068         unknown -Wno- options.
18069         (driver_wrong_lang_callback): Save options directly instead of via
18070         driver_unknown_option_callback.
18071
18072 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
18073
18074         * combine.c (simplify_set): Try harder to find the best CC mode when
18075         simplifying a nested COMPARE on the RHS.
18076
18077 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18078
18079         * config/alpha/gnu.h: Remove.
18080         * config/arc: Remove directory.
18081         * config/arm/netbsd.h: Remove.
18082         * config/arm/t-pe: Remove.
18083         * config/crx: Remove directory.
18084         * config/i386/netbsd.h: Remove.
18085         * config/m68hc11: Remove directory.
18086         * config/m68k/uclinux-oldabi.h: Remove.
18087         * config/mcore/mcore-pe.h: Remove.
18088         * config/mcore/t-mcore-pe: Remove.
18089         * config/netbsd-aout.h: Remove.
18090         * config/rs6000/gnu.h: Remove.
18091         * config/sh/sh-symbian.h: Remove.
18092         * config/sh/symbian-base.c: Remove.
18093         * config/sh/symbian-c.c: Remove.
18094         * config/sh/symbian-cxx.c: Remove.
18095         * config/sh/symbian-post.h: Remove.
18096         * config/sh/symbian-pre.h: Remove.
18097         * config/sh/t-symbian: Remove.
18098         * config/svr3.h: Remove.
18099         * config/vax/netbsd.h: Remove.
18100         * config.build: Don't handle i[34567]86-*-pe.
18101         * config.gcc: Remove handling of deprecations for most deprecated
18102         targets.
18103         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
18104         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
18105         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
18106         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
18107         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
18108         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
18109         Remove cases.
18110         * config.host: Don't handle i[34567]86-*-pe.
18111         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
18112         (ASM_SPEC32): Don't handle -mcall-gnu.
18113         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
18114         -mcall-gnu.
18115         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
18116         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
18117         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18118         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
18119         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
18120         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
18121         conditional on SYMBIAN.
18122         * configure.ac: Don't handle powerpc*-*-gnu*.
18123         * configure: Regenerate.
18124         * doc/extend.texi (interrupt attribute): Don't mention CRX.
18125         * doc/install-old.texi (m6811, m6812): Don't mention.
18126         * doc/install.texi (arc-*-elf*): Don't document multilib option.
18127         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
18128         (m68k-uclinuxoldabi): Don't mention.
18129         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
18130         Remove.
18131         (-mcall-gnu): Remove.
18132         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
18133         families): Remove constraint documentation.
18134
18135 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
18136
18137         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
18138         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
18139         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
18140
18141 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
18142
18143         PR target/48226
18144         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
18145         vector when peeking at the next token for vector, don't expand the
18146         keywords.
18147
18148 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
18149
18150         * config/avr/avr-protos.h (expand_epilogue): Change prototype
18151         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
18152         * config/avr/avr.c (init_cumulative_args)
18153         (avr_function_arg_advance): Use it.
18154         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
18155         sibcall epilogues.
18156         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
18157         (avr_function_ok_for_sibcall): ...this new function.
18158         (avr_lookup_function_attribute1): New static Function.
18159         (avr_naked_function_p, interrupt_function_p)
18160         (signal_function_p, avr_OS_task_function_p)
18161         (avr_OS_main_function_p): Use it.
18162         * config/avr/avr.md ("sibcall", "sibcall_value")
18163         ("sibcall_epilogue"): New expander.
18164         ("*call_insn", "*call_value_insn"): New insn.
18165         ("call_insn", "call_value_insn"): Remove
18166         ("call", "call_value", "epilogue"): Change expander to handle
18167         sibling calls.
18168
18169 2011-03-21  Nick Clifton  <nickc@redhat.com>
18170
18171         * doc/invoke.texi (Overall Options): Move closing brace to end of
18172         options list.
18173         (Optimization Options): Add missing @gol.
18174         (Directory Options): Likewise.
18175         (i386 and x86-64 Options): Likewise.
18176         (RS6000 and PowerPC Options): Likewise.
18177         (i386 and x86-64 Windows Options): Likewise.
18178         (V850 Options): Add text missing from descriptions.
18179
18180 2011-03-22  Richard Henderson  <rth@redhat.com>
18181
18182         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
18183         (avr_incoming_return_addr_rtx): New.
18184         (emit_push_byte): New.
18185         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
18186         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
18187         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
18188         (emit_pop_byte): New.
18189         (expand_epilogue): Use it.  Pop frame pointer by bytes.
18190         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
18191         (INCOMING_RETURN_ADDR_RTX): New.
18192         (INCOMING_FRAME_SP_OFFSET): New.
18193         (ARG_POINTER_CFA_OFFSET): New.
18194         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
18195         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
18196         (pophi): Remove.
18197
18198         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
18199
18200 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
18201
18202         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
18203         (FUNCTION_ARG_ADVANCE): Likewise.
18204         * tm.texi.in: Change references to them to hook references.
18205         * tm.texi: Regenerate.
18206         * targhooks.c (default_function_arg): Eliminate check for target
18207         macro.
18208         (default_function_incoming_arg): Likewise.
18209         (default_function_arg_advance): Likewise.
18210         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
18211         (function_arg_advance): Likewise.
18212         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
18213
18214 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
18215
18216         * tree.c (build_call_1): New function.
18217         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
18218
18219 2011-03-22  Richard Guenther  <rguenther@suse.de>
18220
18221         PR tree-optimization/48228
18222         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
18223         for single-arg PHIs.
18224
18225 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
18226
18227         PR rtl-optimization/48143
18228         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
18229         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
18230         sse2_cvtps2pd): Likewise.
18231
18232 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18233
18234         * recog.c (canonicalize_change_group): Use validate_unshare_change.
18235
18236 2011-03-22  Richard Guenther  <rguenther@suse.de>
18237
18238         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
18239         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
18240         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
18241         and REALIGN_LOAD_EXPR.
18242         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
18243         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
18244         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
18245         DOT_PROD_EXPR case ...
18246         (expand_expr_real_2): ... here.
18247         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
18248         and REALIGN_LOAD_EXPR.
18249         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
18250         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
18251         (vect_create_epilog_for_reduction): Likewise.
18252         (vectorizable_reduction): Likewise.
18253         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
18254         * tree-vect-stmts.c (vectorizable_load): Likewise.
18255
18256 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
18257
18258         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
18259
18260 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18261
18262         * config/s390/s390.c (s390_delegitimize_address): Fix offset
18263         handling for PLTOFF/GOTOFF.
18264
18265 2011-03-22  Nick Clifton  <nickc@redhat.com>
18266
18267         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
18268         trailing backslash from the end of the macro definition.
18269
18270 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18271
18272         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
18273         and PLT unspecs.
18274
18275 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
18276
18277         * expr.h (prepare_operand): Move to...
18278         * optabs.h (prepare_operand): ...here and change the insn code
18279         parameter from "int" to "enum insn_code".
18280         (insn_operand_matches): Declare.
18281         * expr.c (init_expr_target): Use insn_operand_matches.
18282         (compress_float_constant): Likewise.
18283         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
18284         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
18285         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
18286         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
18287         Likewise.
18288         (gen_cond_trap): Likewise.
18289         (prepare_operand): Likewise.  Change icode to an insn_code.
18290         (insn_operand_matches): New function.
18291         * reload.c (find_reloads_address_1): Use insn_operand_matches.
18292         * reload1.c (gen_reload): Likewise.
18293         * targhooks.c (default_secondary_reload): Likewise.
18294
18295 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
18296
18297         * config/alpha/alpha.md (unspec): New define_c_enum.
18298         (unspecv): Ditto.
18299
18300 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
18301
18302         PR debug/48214
18303         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
18304         between a call and its CALL_ARG_LOCATION note.
18305
18306 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
18307
18308         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
18309
18310 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
18311
18312         PR c/42544
18313         PR c/48197
18314         * c-common.c (shorten_compare): If primopN is first sign-extended
18315         to opN and then zero-extended to result type, set primopN to opN.
18316
18317 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
18318
18319         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
18320         for barrier handlers.
18321
18322 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
18323
18324         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
18325         UNSPEC constants to be in the unspec enumeration, and redefine
18326         all UNSPECV constants to be in the unspecv enumeration, so that
18327         dumps print which unspec/unspec_volatile this is.
18328         * config/rs6000/vector.md (UNSPEC_*): Ditto.
18329         * config/rs6000/paired.md (UNSPEC_*): Ditto.
18330         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
18331         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
18332         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
18333
18334         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
18335         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
18336         UNSPECV_LWSYNC, since these are used as unspec_volatile.
18337         * config/rs6000/sync.md (isync, lwsync): Ditto.
18338
18339 2011-03-21  Richard Guenther  <rguenther@suse.de>
18340
18341         * params.def (lto-min-partition): Fix typo.
18342
18343 2011-03-21  Richard Guenther  <rguenther@suse.de>
18344
18345         PR c/47939
18346         * c-decl.c (grokdeclarator): Drop to the main variant only
18347         for array types.  Drop flag_gen_aux_info check.
18348
18349 2011-03-21  Richard Guenther  <rguenther@suse.de>
18350
18351         PR translation/47911
18352         * params.def (lto-partitions): Fix typo.
18353         (lto-min-partition): Fix wording.
18354
18355 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
18356
18357         * config/rs6000/t-freebsd: Remove duplication from file.
18358
18359 2011-03-21  Richard Guenther  <rguenther@suse.de>
18360
18361         PR middle-end/47661
18362         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
18363
18364 2011-03-21  Richard Guenther  <rguenther@suse.de>
18365
18366         PR lto/48210
18367         * params.def (lto-partitions): Require at least 1 partition.
18368
18369 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18370
18371         * gthr-solaris.h: Remove.
18372         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
18373         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
18374         (LIB_SPEC): Likewise.
18375         * config/sol2.opt (threads): Remove.
18376         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
18377         (sparc*-*-solaris2*): Likewise.
18378         * configure.ac (enable_threads): Enable solaris support.
18379         * configure: Regenerate.
18380         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
18381         * doc/install.texi (Configuration, --enable-threads=lib): Remove
18382         solaris.
18383
18384 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18385
18386         * config.gcc: Obsolete *-*-solaris2.8*.
18387         * doc/install.texi (Specific, *-*-solaris2*): Document it.
18388
18389 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18390
18391         PR bootstrap/48135
18392         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
18393         reference.  Solaris 8 perl works.
18394
18395 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18396
18397         PR bootstrap/48135
18398         * doc/install.texi (Prerequisites): Move jar etc. up.
18399         Explain support library version requirements.
18400
18401 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18402
18403         PR bootstrap/48135
18404         * doc/install.texi (Prerequisites): Move Perl to build
18405         requirements.  Always necessary on Solaris 2 with Sun ld.
18406
18407 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18408
18409         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
18410         binutils 2.21.
18411         (Specific, i?86-*-solaris2.[89]): Likewise.
18412         (Specific, i?86-*-solaris2.10): Likewise.
18413         (Specific, mips-sgi-irix6): Likewise.
18414         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
18415         Update for binutils 2.21.
18416
18417 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18418
18419         * configure.ac (gcc_cv_lto_plugin): Fix typo.
18420         Allow -fuse-linker-plugin for non-default plugin linker.
18421         * configure: Regenerate.
18422
18423 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
18424
18425         PR bootstrap/48167
18426         * gengtype.c (files_rules): Added rule for cp/parser.h.
18427
18428 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
18429
18430         PR target/48213
18431         * config/s390/s390.c (s390_delegitimize_address): Don't call
18432         lowpart_subreg if orig_x has BLKmode.
18433
18434 2011-03-21  Kai Tietz  <ktietz@redhat.com>
18435
18436         PR target/12171
18437         * doc/plugins.texi: Adjust documentation for plugin register_callback.
18438         * tree.h (attribute_spec): Add new member affects_type_identity.
18439         * attribs.c (empty_attribute_table): Adjust attribute_spec
18440         initializers.
18441         * config/alpha/alpha.c: Likewise.
18442         * config/arc/arc.c: Likewise.
18443         * config/arm/arm.c: Likewise.
18444         * config/avr/avr.c: Likewise.
18445         * config/bfin/bfin.c: Likewise.
18446         * config/crx/crx.c: Likewise.
18447         * config/darwin.h: Likewise.
18448         * config/h8300/h8300.c: Likewise.
18449         * config/i386/cygming.h: Likewise.
18450         * config/i386/i386.c: Likewise.
18451         * config/ia64/ia64.c: Likewise.
18452         * config/m32c/m32c.c: Likewise.
18453         * config/m32r/m32r.c: Likewise.
18454         * config/m68hc11/m68hc11.c: Likewise.
18455         * config/m68k/m68k.c: Likewise.
18456         * config/mcore/mcore.c: Likewise.
18457         * config/mep/mep.c: Likewise.
18458         * config/microblaze/microblaze.c: Likewise.
18459         * config/mips/mips.c: Likewise.
18460         * config/rs6000/rs6000.c: Likewise.
18461         * config/rx/rx.c: Likewise.
18462         * config/sh/sh.c: Likewise.
18463         * config/sol2.h: Likewise.
18464         * config/sparc/sparc.c: Likewise.
18465         * config/spu/spu.c: Likewise.
18466         * config/stormy16/stormy16.c: Likewise.
18467         * config/v850/v850.c: Likewise.
18468
18469 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
18470
18471         * simplify-rtx.c (simplify_binary_operation_1): Handle
18472         (xor (and A B) C) case when B and C are both constants.
18473
18474 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
18475
18476         * tree-dfa.c (add_referenced_var): Fix typo in comment.
18477
18478 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
18479
18480         PR bootstrap/48168
18481         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
18482
18483 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
18484
18485         PR rtl-optimization/48156
18486         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
18487         assume df and df_lr are not NULL.
18488
18489 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18490
18491         PR debug/48023
18492         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
18493         between a call and its CALL_ARG_LOCATION note.
18494
18495 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
18496
18497         PR debug/48178
18498         * config/sh/sh.c (find_barrier): Don't emit a constant pool
18499         between a call and its corresponding CALL_ARG_LOCATION note.
18500
18501 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
18502
18503         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
18504         instead of loop. Use HARD_REGISTER_NUM_P predicate.
18505         * haifa-sched.c (setup_ref_regs): Ditto.
18506         * caller-save.c (add_used_regs_1): Ditto.
18507         * dse.c (look_for_hardregs): Ditto.
18508         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
18509         * sched-rgn.c (check_live_1): Ditto.
18510
18511 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
18512
18513         * c-decl.c (diagnose_mismatched_decls): Give an error for
18514         redefining a typedef with variably modified type.
18515
18516 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
18517
18518         * c-decl.c (grokfield): Don't allow typedefs for structures or
18519         unions with no tag by default.
18520         * doc/extend.texi (Unnamed Fields): Update.
18521
18522 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
18523
18524         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
18525         Rewrite using indirect functions.
18526         (lwp_slwpcb): Ditto.
18527         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
18528         (avx_vinsertf128<mode>): Ditto.
18529
18530 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18531
18532         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
18533         unspecs.
18534
18535 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18536
18537         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
18538         splitting between a call and its corresponding CALL_ARG_LOCATION note.
18539
18540 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
18541
18542         PR rtl-optimization/48170
18543         * gcse.c (hoist_code): Remove bogus asserts.
18544
18545 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
18546
18547         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
18548         computation for prologue/epilogue.
18549
18550 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18551
18552         * Makefile.in (check-consistency): Remove.
18553
18554 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
18555
18556         PR debug/48176
18557         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
18558         arange_table_in_use is 0, but either text_section_used or
18559         cold_text_section_used is true.  Don't call it if
18560         !info_section_emitted.
18561
18562 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
18563
18564         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
18565         FUNCTION_VALUE_REGNO_P): Remove.
18566         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
18567         Remove.
18568         * config/avr/avr.c (avr_ret_register): Make static inline.
18569         (avr_function_value_regno_p): New function.
18570         (avr_libcall_value): Make static. Add 'func' argument.
18571         (avr_function_value): Make static. Rename 'func' argument to
18572         'fn_decl_or_type', forward it to avr_libcall_value. Call
18573         avr_ret_register function instead of RET_REGISTER macro.
18574         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18575
18576 2011-03-18  Jason Merrill  <jason@redhat.com>
18577
18578         PR c++/23372
18579         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
18580
18581 2011-03-18  Richard Guenther  <rguenther@suse.de>
18582
18583         * doc/install.texi (--enable-gold): Remove.
18584         (--with-plugin-ld): Document.
18585         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
18586
18587 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
18588
18589         PR middle-end/47790
18590         * expr.c (optimize_bitfield_assignment_op): Revamp to work
18591         again after expansion changes.
18592
18593 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
18594
18595         * combine.c (try_combine): Do simplification only call of
18596         subst() on i2 even when i1 is present. Update comments.
18597
18598 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18599
18600         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
18601         and UNSPEC_PCREL_SYMOFF.
18602
18603 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18604
18605         * config/s390/s390.md: Use define_c_enum for the unspec constant
18606         definitions.
18607
18608 2011-03-18  Richard Henderson  <rth@redhat.com>
18609             Jakub Jelinek  <jakub@redhat.com>
18610
18611         PR bootstrap/48161
18612         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
18613         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
18614
18615 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
18616
18617         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18618         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
18619         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
18620         Change return type to bool.
18621         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18622
18623 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
18624
18625         PR debug/48163
18626         * var-tracking.c (prepare_call_arguments): If CALL target
18627         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
18628         pc instead of looking it up using cselib_lookup and use
18629         Pmode for it if x has VOIDmode.
18630         * dwarf2out.c (gen_subprogram_die): If also both first and
18631         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
18632
18633         PR debug/48163
18634         * function.c (assign_parms): For data.passed_pointer parms
18635         use MEM of data.entry_parm instead of data.entry_parm itself
18636         as DECL_INCOMING_RTL.
18637         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
18638         also when passed and declared mode is the same, DECL_RTL
18639         is a MEM with pseudo as address and DECL_INCOMING_RTL is
18640         a MEM too.
18641
18642 2011-03-16  Jeff Law  <law@redhat.com>
18643
18644         PR rtl-optimization/37273
18645         * ira-costs.c (scan_one_insn): Detect constants living in memory and
18646         handle them like argument loads from stack slots.  Do not double
18647         count memory for memory constants and argument loads from stack slots.
18648
18649 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18650
18651         PR debug/48160
18652         * var-tracking.c (prepare_call_arguments): Check SUBREG.
18653
18654 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18655
18656         PR target/48171
18657         * config/i386/i386.opt: Add Save to -mavx and -mfma.
18658
18659 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
18660
18661         PR bootstrap/48153
18662         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
18663         if dwarf_strict.
18664         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
18665         Clear call_arg_locations and call_arg_loc_last always.
18666
18667         PR middle-end/48152
18668         * var-tracking.c (prepare_call_arguments): If argument needs to be
18669         passed by reference, adjust argtype and mode.
18670
18671 2011-03-17  Richard Guenther  <rguenther@suse.de>
18672
18673         PR middle-end/48134
18674         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
18675         a value make sure to fold the statement.
18676
18677 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
18678
18679         PR target/43872
18680         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
18681         return condition with !cfun->calls_alloca.
18682
18683 2011-03-17  Richard Guenther  <rguenther@suse.de>
18684
18685         PR bootstrap/48148
18686         * lto-cgraph.c (input_overwrite_node): Clear the abstract
18687         origin for decls in other ltrans units.
18688         (input_varpool_node): Likewise.
18689
18690 2011-03-17  Richard Guenther  <rguenther@suse.de>
18691
18692         PR middle-end/48165
18693         * tree-object-size.c (compute_object_offset): Properly return
18694         the offset operand of MEM_REFs as sizetype.
18695
18696 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
18697
18698         PR rtl-optimization/48141
18699         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
18700         * dse.c: Include params.h.
18701         (active_local_stores_len): New variable.
18702         (add_wild_read, dse_step1): Clear it when setting active_local_stores
18703         to NULL.
18704         (record_store, check_mem_read_rtx): Decrease it when removing
18705         from the chain.
18706         (scan_insn): Likewise.  Increase it when adding to chain, if it
18707         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
18708         set active_local_stores to NULL before the addition.
18709         * Makefile.in (dse.o): Depend on $(PARAMS_H).
18710
18711         PR rtl-optimization/48141
18712         * dse.c (record_store): If no positions are needed in an insn
18713         that cannot be deleted, at least unchain it from active_local_stores.
18714
18715 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
18716
18717         PR debug/47510
18718         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
18719         (lookup_type_die_strip_naming_typedef): ... here.
18720         (get_context_die): Use it.
18721         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
18722         the anonymous struct named by the naming typedef.
18723
18724 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18725
18726         PR target/48154
18727         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
18728         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
18729
18730 2011-03-16  Jeff Law  <law@redhat.com>
18731
18732         * tree-vrp.c (identify_jump_threads): Slightly simplify type
18733         check for operands of conditional.  Allow type to be a pointer.
18734
18735 2011-03-16  Richard Guenther  <rguenther@suse.de>
18736
18737         PR tree-optimization/48149
18738         * fold-const.c (fold_binary_loc): Fold
18739         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
18740
18741 2011-03-16  Richard Guenther  <rguenther@suse.de>
18742
18743         PR tree-optimization/26134
18744         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
18745         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
18746         (non_rewritable_mem_ref_base): Handle complex type component
18747         accesses, constrain offsets for vector and complex extracts
18748         more properly.
18749
18750 2011-03-16  Richard Guenther  <rguenther@suse.de>
18751
18752         PR tree-optimization/48146
18753         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
18754         operands avoiding the need for renaming.
18755
18756 2011-03-16  Richard Guenther  <rguenther@suse.de>
18757
18758         * gimple-fold.c (maybe_fold_reference): Open-code relevant
18759         constant folding.  Move MEM_REF canonicalization first.
18760         Rely on fold_const_aggregate_ref for initializer folding.
18761         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
18762
18763 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
18764
18765         PR middle-end/48136
18766         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
18767         arg0/arg1 or their arguments are always fold converted to matching
18768         types.
18769
18770         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
18771         to nargs.
18772
18773 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18774
18775         PR lto/46944
18776         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
18777         Handle in-tree gold.
18778         (ld_vers): Extract binutils version for gold.
18779         (gcc_cv_ld_hidden): Handle gold here.
18780         (gcc_cv_lto_plugin): Determine level of linker plugin support.
18781         * configure: Regenerate.
18782         * config.in: Regenerate.
18783         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
18784         -fuse-linker-plugin otherwise.
18785         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
18786         (LINK_COMMAND_SPEC): Use it.
18787         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
18788
18789 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
18790
18791         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
18792         * calls.c: Remove debug.h include.
18793         (emit_call_1): Don't call virtual_call_token debug hook.
18794         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
18795         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
18796         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
18797         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
18798         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
18799         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
18800         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
18801         dwarf2out_virtual_call): Remove.
18802         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
18803         copy_call_info and virtual_call hooks.
18804         (dwarf2out_init): Don't initialize vcall_insn_table,
18805         debug_dcall_section and debug_vcall_section.
18806         (prune_unused_types): Don't mark nodes from dcall_table.
18807         (dwarf2out_finish): Don't output dcall or vcall tables.
18808         * final.c (final_scan_insn): Don't call direct_call or
18809         virtual_call debug hooks.
18810         * debug.h (struct gcc_debug_hooks): Remove direct_call,
18811         virtual_call_token, copy_call_info and virtual_call hooks.
18812         (debug_nothing_uid): Remove prototype.
18813         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
18814         copy_call_info and virtual_call hooks.
18815         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18816         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
18817         * debug.c (do_nothing_debug_hooks): Likewise.
18818         (debug_nothing_uid): Remove.
18819         * doc/invoke.texi (-fenable-icf-debug): Remove.
18820         * common.opt (-fenable-icf-debug): Likewise.
18821
18822         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
18823         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
18824         call's MEM.  Handle functions returning aggregate through a hidden
18825         first pointer.  For virtual calls add clobbered pc to call arguments
18826         chain.
18827         * dwarf2out.c (gen_subprogram_die): Emit
18828         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
18829         can't be emitted.
18830
18831         PR debug/45882
18832         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
18833         * rtl.h (ENTRY_VALUE_EXP): Define.
18834         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
18835         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
18836         * print-rtl.c (print_rtx): Likewise.
18837         * gengtype.c (adjust_field_rtx_def): Likewise.
18838         * var-tracking.c (vt_add_function_parameter): Adjust
18839         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
18840         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
18841         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
18842         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
18843         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
18844
18845         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
18846         Call var_location debug hook even on CALL_INSNs.
18847         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
18848         * rtl.def (ENTRY_VALUE): New.
18849         * dwarf2out.c: Include cfglayout.h.
18850         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
18851         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
18852         (struct call_arg_loc_node): New type.
18853         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
18854         tail_call_site_count): New variables.
18855         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
18856         DW_TAG_GNU_call_site_parameter.
18857         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
18858         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
18859         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
18860         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
18861         and DW_AT_GNU_all_source_call_sites.
18862         (mem_loc_descriptor): Handle ENTRY_VALUE.
18863         (add_src_coords_attributes): Don't add enything if
18864         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
18865         (dwarf2out_abstract_function): Save and clear call_arg_location,
18866         call_site_count and tail_call_site_count around dwarf2out_decl call.
18867         (gen_call_site_die): New function.
18868         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
18869         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
18870         (dwarf2out_function_decl): Clear call_arg_locations,
18871         call_arg_loc_last, set call_site_count and tail_call_site_count
18872         to -1 and free block_map.
18873         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
18874         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
18875         followed by any real instructions.
18876         (dwarf2out_begin_function): Set call_site_count and
18877         tail_call_site_count to 0.
18878         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
18879         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
18880         attempt to force a DIE for it and worst case remove the attribute.
18881         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
18882         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
18883         the decl itself.
18884         * var-tracking.c: Include tm_p.h.
18885         (vt_stack_adjustments): For calls call note_register_arguments.
18886         (argument_reg_set): New variable.
18887         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
18888         ensure the VALUE is resolved.
18889         (call_arguments): New variable.
18890         (prepare_call_arguments): New function.
18891         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
18892         (struct expand_loc_callback_data): Add ignore_cur_loc field.
18893         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
18894         always use the best expression.
18895         (vt_expand_loc): Add ignore_cur_loc argument.
18896         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
18897         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
18898         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
18899         note for all calls.
18900         (vt_add_function_parameter): Use cselib_lookup_from_insn.
18901         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
18902         argument.  Don't call cselib_preserve_only_values and
18903         cselib_reset_table.
18904         (note_register_arguments): New function.
18905         (vt_initialize): Compute argument_reg_set.  Call
18906         vt_add_function_parameters before processing basic blocks instead of
18907         afterwards.  For calls call prepare_call_arguments before calling
18908         cselib_process_insn.
18909         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
18910         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
18911         (var-tracking.o): Depend on $(TM_P_H).
18912         * cfglayout.h (insn_scope): New prototype.
18913         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
18914         * cfglayout.c (insn_scope): No longer static.
18915         * insn-notes.def (CALL_ARG_LOCATION): New.
18916         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
18917         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
18918         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
18919         nothing for DECL_EXTERNAL BLOCK_VARS.
18920
18921 2011-03-16  Alan Modra  <amodra@gmail.com>
18922
18923         PR target/45844
18924         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18925         create invalid offset address for vsx splat insn.
18926         * config/rs6000/predicates.md (splat_input_operand): New.
18927         * config/rs6000/vsx.md (vsx_splat_*): Use it.
18928
18929 2011-03-15  Xinliang David Li  <davidxl@google.com>
18930
18931         PR c/47837
18932         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
18933         (normalize_preds): New function.
18934         (is_use_properly_guarded): Normalize def predicates.
18935
18936 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18937
18938         PR target/46788
18939         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
18940         in the output template.
18941
18942 2011-03-15  Richard Guenther  <rguenther@suse.de>
18943
18944         PR middle-end/47650
18945         * tree-pretty-print.c (dump_function_declaration): Properly
18946         dump unprototyped and varargs function types.
18947
18948 2011-03-15  Richard Guenther  <rguenther@suse.de>
18949
18950         PR tree-optimization/13954
18951         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
18952         and friends.
18953
18954 2011-03-15  Richard Guenther  <rguenther@suse.de>
18955
18956         PR tree-optimization/48037
18957         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
18958         selects into BIT_FIELD_REFs.
18959         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
18960         vector select.
18961
18962 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
18963
18964         PR tree-optimization/48129
18965         * builtins.c (fold_builtin_snprintf): Convert to type of
18966         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
18967         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
18968
18969 2011-03-15  Richard Guenther  <rguenther@suse.de>
18970
18971         PR tree-optimization/41490
18972         * tree-ssa-dce.c (propagate_necessity): Handle returns without
18973         value but with VUSE.
18974         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
18975         return statements.
18976         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
18977         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
18978         * tree-tailcall.c (find_tail_calls): Ignore returns.
18979
18980 2011-03-15  Richard Guenther  <rguenther@suse.de>
18981
18982         PR middle-end/48031
18983         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
18984         or variable-indexed array accesses when in gimple form.
18985
18986 2011-03-15  Richard Guenther  <rguenther@suse.de>
18987
18988         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
18989
18990 2011-03-15  Alan Modra  <amodra@gmail.com>
18991
18992         PR target/48032
18993         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
18994         presume symbol_refs without a symbol_ref_decl are suitably
18995         aligned, nor other trees we may see here.  Handle anchor symbols.
18996         (legitimate_constant_pool_address_p): Comment.  Add mode param.
18997         Check cmodel=medium addresses.  Adjust all calls.
18998         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
18999         creating cmodel=medium optimized access to locals.
19000         * config/rs6000/constraints.md (R): Pass QImode to
19001         legitimate_constant_pool_address_p.
19002         * config/rs6000/predicates.md (input_operand): Pass mode to
19003         legitimate_constant_pool_address_p.
19004         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
19005         Update prototype.
19006
19007 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
19008
19009         PR target/48053
19010         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
19011         64-bit constants being loaded into registers other than GPRs such
19012         as loading 0 into a VSX register.
19013
19014 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19015
19016         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
19017
19018 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
19019
19020         PR middle-end/47917
19021         * builtins.c (fold_builtin_snprintf): New function.
19022         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
19023         (fold_builtin_4): Likewise.
19024
19025         PR middle-end/38878
19026         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
19027         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
19028         and C - X == X also strip nops from +/-/p+ operand.
19029         When optimizing -X == C, fold C to arg0's type.
19030
19031         PR debug/47946
19032         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
19033         emit it as add_AT_int instead of add_AT_unsigned.
19034
19035 2011-03-14  Tom Tromey  <tromey@redhat.com>
19036
19037         * unwind-dw2.c: Include sys/sdt.h if it exists.
19038         (_Unwind_DebugHook): Use STAP_PROBE2.
19039         * config.in, configure: Rebuild.
19040         * configure.ac: Check for sys/sdt.h.
19041
19042 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
19043
19044         * config/i386/i386.md (ROUND_FLOOR): New constant.
19045         (ROUND_CEIL): Ditto.
19046         (ROUND_TRUNC): Ditto.
19047         (ROUND_MXCSR): Ditto.
19048         (ROUND_NO_EXC): Ditto.
19049         (rint<mode>2): Use new defines instead of numerical constants.
19050         (floor<mode>2): Ditto.
19051         (ceil<mode>2): Ditto.
19052         (btrunc<mode>2): Ditto.
19053         * config/i386/i386-builtin-types.def: Define ROUND function type
19054         aliases.
19055         * config/i386/i386.c (enum ix86_builtins): Add
19056         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
19057         (struct builtin_description): Add
19058         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
19059         (ix86_expand_sse_round): New static function.
19060         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
19061         function types.
19062         (ix86_builtin_vectorized_function): Handle
19063         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
19064
19065 2011-03-14  Tom Tromey  <tromey@redhat.com>
19066
19067         * c-parser.c (c_parser_asm_string_literal): Clear
19068         warn_overlength_strings.
19069
19070 2011-03-14  Tom Tromey  <tromey@redhat.com>
19071
19072         * c-parser.c (disable_extension_diagnostics): Save
19073         warn_overlength_strings.
19074         (restore_extension_diagnostics): Restore warn_overlength_strings.
19075
19076 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
19077
19078         * BASE-VER: Change to 4.7.0.
19079
19080 2011-03-14  Richard Guenther  <rguenther@suse.de>
19081
19082         PR middle-end/48098
19083         * tree.c (build_vector_from_val): Adjust assert to requirements
19084         and reality.
19085
19086 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
19087
19088         PR bootstrap/48102
19089         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
19090
19091 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
19092
19093         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
19094         terms of target_flags_explicit. Adjust copyright year.
19095
19096         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
19097         * config/rs6000/t-freebsd: New file. Add override for
19098         LIB2FUNCS_EXTRA.
19099
19100 2011-03-13  Chris Demetriou  <cgd@google.com>
19101
19102         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
19103         (-fno-diagnostics-show-option): this, to reflect current default.
19104         (-Werror=): Update text about -fno-diagnostics-show-option.
19105
19106 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
19107
19108         PR target/48053
19109         * config/rs6000/predicates.md (easy_vector_constant_add_self,
19110         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
19111         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
19112         mode is not V2DImode or V2DFmode.
19113         (vspltis_constant): Do not handle V2DImode and V2DFmode.
19114         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
19115         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
19116         registers to 0.
19117         (movdi_internal64): Likewise.
19118
19119 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
19120
19121         PR tree-optimization/47127
19122         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
19123         parameter.
19124         (set_cloog_options): Same.
19125         (scop_to_clast): Same.
19126         (print_clast_stmt): Do not call cloog_state_malloc and
19127         cloog_state_free.
19128         (print_generated_program): Same.
19129         (gloog): Same.
19130         * graphite-clast-to-gimple.h (cloog_state): Declared.
19131         (scop_to_clast): Adjust declaration.
19132         * graphite.c (cloog_state): Defined here.
19133         (graphite_initialize): Call cloog_state_malloc.
19134         (graphite_finalize): Call cloog_state_free.
19135
19136 2011-03-11  Jason Merrill  <jason@redhat.com>
19137
19138         * attribs.c (lookup_attribute_spec): Take const_tree.
19139         * tree.h: Adjust.
19140
19141 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
19142
19143         * config/sparc/sparc.c (sparc_option_override): Use
19144         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
19145
19146 2011-03-11  Richard Guenther  <rguenther@suse.de>
19147
19148         PR tree-optimization/48067
19149         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
19150         multiplication result will be only used once on the target
19151         stmt.
19152
19153 2011-03-11  Richard Guenther  <rguenther@suse.de>
19154
19155         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
19156
19157 2011-03-11  Richard Guenther  <rguenther@suse.de>
19158
19159         PR lto/48073
19160         * tree.c (find_decls_types_r): Do not walk types only reachable
19161         from IDENTIFIER_NODEs.
19162
19163 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
19164
19165         PR middle-end/48044
19166         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
19167         all vnode->force_output nodes as needed.
19168
19169 2011-03-11  Jason Merrill  <jason@redhat.com>
19170
19171         PR c++/48069
19172         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
19173         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
19174
19175 2011-03-11  Martin Jambor  <mjambor@suse.cz>
19176
19177         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
19178         cgraph_node.
19179
19180 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
19181
19182         PR tree-optimization/48063
19183         * ipa-inline.c (cgraph_decide_inlining): Don't try to
19184         inline functions called once if !tree_can_inline_p (node->callers).
19185
19186 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
19187
19188         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
19189         extra_objs.
19190         * config/score/score3.c: Delete.
19191         * config/score/score3.h: Delete.
19192         * config/score/mul-div.S: Delete.
19193         * config/score/sfp-machine.h: Add new file.
19194         * config/score/constraints.md: Add new file.
19195         * config/score/t-score-softfp: Add new file.
19196         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
19197         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
19198         (score7_extra_constraint): Delete.
19199         (score7_option_override): Remove unused code.
19200         * config/score/score.c: Remove score3 and score5 define and code.
19201         * config/score/score.h: Remove score3 and score5 define and code.
19202         * config/score/score.md: Remove score3 template and unusual insn.
19203         * config/score/score.opt: Remove score3 and score5 options.
19204
19205 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19206
19207         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
19208         when _HPUX_SOURCE is defined.
19209         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
19210
19211 2011-03-10  Jason Merrill  <jason@redhat.com>
19212
19213         PR c++/48029
19214         * stor-layout.c (layout_type): Don't set structural equality
19215         on arrays of incomplete type.
19216         * tree.c (type_hash_eq): Handle comparing them properly.
19217
19218 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19219
19220         PR debug/48043
19221         * config/s390/s390.c (s390_delegitimize_address): Make sure the
19222         result mode matches original rtl mode.
19223
19224 2011-03-10  Nick Clifton  <nickc@redhat.com>
19225
19226         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
19227         (andsi3, andsi3_flags): Fix timings for three operand alternative.
19228
19229 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
19230
19231         PR rtl-optimization/47866
19232         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
19233         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
19234         if target wasn't scalar.
19235         * function.c (assign_stack_temp_for_type): Assert that neither
19236         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
19237         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
19238         macro.
19239         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
19240
19241 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19242
19243         * config/s390/s390-protos.h (s390_label_align): New prototype.
19244         * config/s390/s390.c (s390_label_align): New function.
19245         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
19246
19247 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
19248
19249         PR target/47755
19250         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
19251         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
19252         (output_vec_const_move): Ditto.
19253
19254 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
19255
19256         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
19257         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
19258         * config/mips/mips.c (mips_preferred_reload_class): Make static.
19259         Change 'rclass' argument and result type to reg_class_t.
19260         (TARGET_PREFERRED_RELOAD_CLASS): Define.
19261
19262 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
19263
19264         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
19265         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
19266         (TARGET_MEMORY_MOVE_COST): Define.
19267         (avr_register_move_cost, avr_memory_move_cost): New Functions.
19268
19269 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
19270
19271         PR debug/47881
19272         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
19273         removed anything.
19274
19275         PR tree-optimization/48022
19276         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
19277         for EQ/NE_EXPR.
19278
19279 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
19280
19281         PR debug/47991
19282         * var-tracking.c (find_use_val): Return NULL for
19283         cui->sets && cui->store_p BLKmode MEMs.
19284
19285 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
19286
19287         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
19288         Remove.
19289         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
19290         xstormy16_print_operand_address): Remove.
19291         * config/stormy16/stormy16.c (xstormy16_print_operand,
19292         xstormy16_print_operand_address): Make static.
19293         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19294
19295 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
19296
19297         PR target/47862
19298         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
19299         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
19300         before definition.
19301
19302 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
19303
19304         PR bootstrap/48000
19305         * cfgloopmanip.c (fix_bb_placements): Return immediately
19306         if FROM is BASE_LOOP's header.
19307
19308 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
19309
19310         * gimplify.c (gimplify_function_tree): Fix building calls
19311         to __builtin_return_address.
19312
19313 2011-03-07  Alan Modra  <amodra@gmail.com>
19314
19315         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
19316         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
19317         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
19318         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
19319         return_mode args.
19320         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
19321         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
19322         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
19323         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
19324         * config/rs6000/rs6000.c
19325         (rs6000_elf_end_indicate_exec_stack): Rename to..
19326         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
19327         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
19328         (rs6000_file_start): ..here.
19329         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
19330         file scope variables.
19331         (call_ABI_of_interest): New function.
19332         (init_cumulative_args): Set above vars when function return value
19333         is a float, vector, or small struct.
19334         (rs6000_function_arg_advance_1): Likewise for function args.
19335         (rs6000_va_start): Set rs6000_passes_float if variable arg function
19336         references float args.
19337
19338 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
19339
19340         * doc/cfg.texi: Remove "See" before @ref.
19341         * doc/invoke.texi: Likewise.
19342
19343 2011-03-05  Jason Merrill  <jason@redhat.com>
19344
19345         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
19346
19347 2011-03-05  Anthony Green  <green@moxielogic.com>
19348
19349         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
19350
19351 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
19352
19353         PR rtl-optimization/47899
19354         * cfgloopmanip.c (fix_bb_placements): Fix first argument
19355         to flow_loop_nested_p when moving the loop upward.
19356
19357 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
19358
19359         PR target/47719
19360         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
19361
19362 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
19363
19364         PR tree-optimization/47967
19365         * ipa-cp.c (build_const_val): Return NULL instead of creating
19366         VIEW_CONVERT_EXPR for mismatching sizes.
19367         (ipcp_create_replace_map): Return NULL if build_const_val failed.
19368         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
19369         give up on versioning.
19370
19371 2011-03-05  Alan Modra  <amodra@gmail.com>
19372
19373         PR target/47986
19374         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19375         full cmodel medium/large lo_sum + high addresses.
19376
19377 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19378
19379         * config/s390/s390.c (s390_decompose_address): Reject non-literal
19380         pool references in UNSPEC_LTREL_OFFSET.
19381
19382 2011-03-04  Jan Hubicka  <jh@suse.cz>
19383
19384         PR lto/47497
19385         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
19386         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
19387         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
19388         Add node pointers.
19389         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
19390         cgraph_add_thunk): Add node pointers.
19391         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
19392         associated to right node.
19393         (input_node): Update use of cgraph_same_body_alias
19394         and cgraph_add_thunk.
19395
19396 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
19397
19398         * config/i386/i386.opt (mprefer-avx128): New flag.
19399         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
19400         modes when the flag -mprefer-avx128 is on.
19401
19402 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
19403
19404         * dwarf2out.c (compare_loc_operands): Fix address handling.
19405
19406 2011-03-04  Alan Modra  <amodra@gmail.com>
19407
19408         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
19409
19410 2011-03-04  Richard Guenther  <rguenther@suse.de>
19411
19412         PR middle-end/47968
19413         * expmed.c (extract_bit_field_1): Prefer vector modes that
19414         vec_extract patterns can handle.
19415
19416 2011-03-04  Richard Guenther  <rguenther@suse.de>
19417
19418         PR middle-end/47975
19419         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
19420
19421 2011-03-04  Richard Henderson  <rth@redhat.com>
19422
19423         * explow.c (emit_stack_save): Remove 'after' parameter.
19424         (emit_stack_restore): Likewise.
19425         * expr.h: Update to match.
19426         * builtins.c, calls.c, stmt.c: Likewise.
19427         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
19428         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
19429         * function.c (expand_function_end): Insert the emit_stack_save
19430         sequence before parm_birth_insn instead of after.
19431
19432 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
19433
19434         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
19435         (ssse3_pmaddubsw128): Ditto.
19436         (ssse3_pmaddubsw): Ditto.
19437
19438 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
19439
19440         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
19441
19442 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
19443
19444         PR c/47963
19445         * gimplify.c (omp_add_variable): Only call omp_notice_variable
19446         on TYPE_SIZE_UNIT if it is a DECL.
19447
19448         PR debug/47283
19449         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
19450         first operand is not is_gimple_mem_ref_addr, try to fold it.
19451         If the operand still isn't is_gimple_mem_ref_addr, clear
19452         MEM_EXPR on op0.
19453
19454 2011-03-03  Richard Guenther  <rguenther@suse.de>
19455
19456         PR middle-end/47283
19457         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
19458         match comment.
19459         (refs_may_alias_p_1): For release branches return true if
19460         we are confused by our input.
19461
19462 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19463
19464         * config/s390/s390.c (s390_function_value): Rename to ...
19465         (s390_function_and_libcall_value): ... this.
19466         (s390_function_value): New function.
19467         (s390_libcall_value): New function.
19468         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
19469         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
19470         target macro definitions.
19471         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
19472
19473 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
19474
19475         * config/i386/freebsd64.h (CC1_SPEC): Define.
19476         * config/i386/linux64.h (CC1_SPEC): Define.
19477         * config/i386/x86-64.h (CC1_SPEC): Don't define.
19478
19479 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
19480
19481         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19482         Remove.
19483         * config/stormy16/stormy16.c: Include reload.h.
19484         (xstormy16_memory_move_cost): New function.
19485         (TARGET_MEMORY_MOVE_COST): Define.
19486
19487 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
19488
19489         PR rtl-optimization/47925
19490         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
19491         with side effects.  Remove the more-specific check for volatile asms.
19492
19493 2011-03-02  Alan Modra  <amodra@gmail.com>
19494
19495         PR target/47935
19496         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
19497         toc relative addresses for valid offsets.
19498
19499 2011-03-01  Richard Guenther  <rguenther@suse.de>
19500
19501         PR tree-optimization/47890
19502         * tree-vect-loop.c (get_initial_def_for_induction): Set
19503         related stmt properly.
19504
19505 2011-03-01  Richard Guenther  <rguenther@suse.de>
19506
19507         PR lto/47924
19508         * lto-streamer.c (lto_record_common_node): Also register
19509         the canonical type.
19510
19511 2011-03-01  Richard Guenther  <rguenther@suse.de>
19512
19513         PR lto/46911
19514         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
19515         Do not stream DECL_ABSTRACT_ORIGIN.
19516         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
19517         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
19518         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
19519         Do not stream DECL_ABSTRACT_ORIGIN.
19520         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
19521         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
19522
19523 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
19524
19525         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
19526         FUNCTION_VALUE_REGNO_P): Remove.
19527         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
19528         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
19529         Add 'outgoing' argument.
19530         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
19531         function.
19532         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19533         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19534
19535 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
19536
19537         PR debug/28047
19538         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
19539         (lookup_filename): Likewise.
19540         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
19541
19542 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
19543             Jakub Jelinek  <jakub@redhat.com>
19544
19545         PR middle-end/47893
19546         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
19547         (assign_stack_local_1): Change last argument type to int.
19548         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
19549         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
19550         don't record padding space into frame_space_list nor use those areas.
19551         (assign_stack_local): Adjust caller.
19552         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
19553         of assign_stack_local, pass 0 as last argument.
19554         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
19555         callers.
19556
19557 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
19558
19559         PR debug/47283
19560         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
19561         Use target address_mode and pointer_mode hooks instead of hardcoded
19562         Pmode and ptr_mode.  Handle some simple cases of extending if
19563         POINTERS_EXTEND_UNSIGNED < 0.
19564         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
19565         Call convert_debug_memory_address.
19566         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
19567         convert_debug_memory_address.
19568
19569         PR middle-end/46790
19570         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
19571         * configure: Regenerated.
19572         * config.in: Regenerated.
19573         * varasm.c (default_function_section): Return NULL
19574         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
19575
19576 2011-02-28  Martin Jambor  <mjambor@suse.cz>
19577
19578         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
19579         the description to match the printed values.
19580
19581 2011-02-28  Richard Guenther  <rguenther@suse.de>
19582
19583         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
19584         of the copied scope tree.
19585
19586 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19587
19588         * doc/extend.texi (Function Attributes): Avoid deeply (and
19589         wrongly) nested tables.
19590
19591 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
19592
19593         PR middle-end/47903
19594         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
19595         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
19596         r isn't op0 nor op1.
19597
19598 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
19599
19600         * config/avr/avr.md: Remove magic comment for emacs.
19601
19602 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
19603
19604         PR target/45261
19605         * config/avr/avr.c (avr_option_override): Use error on bad options.
19606         (avr_help): New function.
19607         (TARGET_HELP): Define.
19608
19609 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
19610
19611         PR target/42240
19612         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
19613         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
19614
19615 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
19616
19617         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
19618         (ARM Options): Ditto.
19619         (i386 and x86-64 Options): Ditto.
19620         (RX Options): Ditto.
19621         (SPARC Options): Ditto.
19622
19623 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
19624
19625         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
19626         FreeBSD 6 and later.  Generally use cpu generic.
19627
19628 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
19629
19630         * doc/cpp.texi: Update copyright years.
19631
19632 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
19633
19634         PR target/46898
19635         * config/lm32/lm32.md (ashrsi3): Added needed variable.
19636
19637 2011-02-25  Jon Beniston  <jon@beniston.com>
19638
19639         PR target/46898
19640         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
19641         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
19642         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
19643         (lm32_block_move_inline): Add type cast to remove warning.
19644         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
19645         (gen_int_relational): Move declarations to start of function.
19646
19647 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
19648
19649         PR tree-optimization/45470
19650         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
19651         can throw internally only.
19652         * tree-vect-stmts.c (vectorizable_call): Likewise.
19653
19654 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
19655
19656         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
19657         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19658         * config/stormy16/stormy16-protos.h
19659         (xstormy16_preferred_reload_class): Remove.
19660         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
19661         static. Change 'rclass' argument and return type to reg_class_t.
19662         (TARGET_PREFERRED_RELOAD_CLASS,
19663         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19664
19665 2011-02-24  Richard Guenther  <rguenther@suse.de>
19666
19667         * lto-streamer-in.c (input_bb): Do not find referenced vars
19668         in debug statements.
19669
19670 2011-02-23  Jason Merrill  <jason@redhat.com>
19671
19672         * common.opt (fabi-version): Document v5 and v6.
19673
19674 2011-02-23  Richard Guenther  <rguenther@suse.de>
19675
19676         PR tree-optimization/47849
19677         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
19678
19679 2011-02-23  Jie Zhang  <jie@codesourcery.com>
19680
19681         * opts-common.c (decode_cmdline_option): Print empty string
19682         argument as "" in decoded->orig_option_with_args_text.
19683         * gcc.c (execute): Print empty string argument as ""
19684         in the verbose output.
19685         (do_spec_1): Keep empty string argument.
19686
19687 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
19688
19689         * config.gcc: Declare score-* and crx-* obsolete.
19690
19691 2011-02-23  Jie Zhang  <jie@codesourcery.com>
19692
19693         PR rtl-optimization/47763
19694         * web.c (web_main): Ignore naked clobber when replacing register.
19695
19696 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
19697
19698         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19699         Remove.
19700
19701 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
19702
19703         PR doc/47848
19704         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
19705
19706 2011-02-22  Mike Stump  <mikestump@comcast.net>
19707
19708         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
19709         assembler.
19710         * configure: Regenerate.
19711
19712 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
19713
19714         PR rtl-optimization/46002
19715         * ira-color.c (update_copy_costs): Change class intersection
19716         test to reg_class_contents[] test of 'hard_regno'.
19717
19718 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
19719
19720         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
19721         than Driver option.
19722         * config/hpux11.opt (mt): Likewise.
19723         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
19724         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
19725         * config/vax/elf.opt (mno-asm-pic): Likewise.
19726         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
19727
19728 2011-02-21  Mike Stump  <mikestump@comcast.net>
19729
19730         PR target/47822
19731         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
19732         tree so we can get save the type.
19733         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
19734         for CFString instead of trying to use past the end of the builtins.
19735         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
19736         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
19737         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
19738         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
19739         Rename to darwin_builtin_cfstring.
19740         (darwin_init_cfstring_builtins): Return the built type.
19741
19742 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
19743
19744         PR target/47840
19745         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
19746         (_mm256_insert_epi64): Use _mm_insert_epi64.
19747
19748 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
19749
19750         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19751         * config/stormy16/stormy16-protos.h
19752         (xstormy16_mode_dependent_address_p): Remove.
19753         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
19754         Make static. Change return type to bool. Change argument type to
19755         const_rtx. Remove dead code.
19756         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19757
19758 2011-02-21  Richard Guenther  <rguenther@suse.de>
19759
19760         PR lto/47820
19761         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
19762         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
19763         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
19764         TUs context.
19765         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
19766         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
19767
19768 2011-02-20  Richard Guenther  <rguenther@suse.de>
19769
19770         PR lto/47822
19771         * tree.c (free_lang_data_in_decl): Clean builtins from
19772         the TU decl BLOCK_VARS.
19773
19774 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
19775
19776         PR debug/47620
19777         PR debug/47630
19778         * haifa-sched.c (fix_tick_ready): Skip tick computation
19779         for debug insns.
19780
19781 2011-02-19  Richard Guenther  <rguenther@suse.de>
19782
19783         PR lto/47647
19784         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
19785         Remove lazy BLOCK_VARS streaming.
19786         (lto_input_ts_block_tree_pointers): Likewise.
19787         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
19788
19789 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
19790
19791         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
19792
19793 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
19794
19795         * config/i386/biarch32.h, config/i386/mach.h,
19796         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
19797
19798 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
19799
19800         PR target/47800
19801         * config/i386/i386.md (peephole2 for shift and plus): Use
19802         operands[1] original mode in the first insn.
19803
19804 2011-02-18  Mike Stump  <mikestump@comcast.net>
19805
19806         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
19807
19808 2011-02-18  Jan Hubicka  <jh@suse.cz>
19809
19810         PR middle-end/47788
19811         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
19812         to zero when the function is not inlinable at all.
19813
19814 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19815
19816         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
19817         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19818         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
19819         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
19820         * config/pa/t-pa64: Likewise.
19821         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
19822
19823 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
19824
19825         PR driver/47787
19826         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
19827
19828 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19829
19830         PR target/47792
19831         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
19832
19833 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
19834
19835         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19836         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
19837         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
19838         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19839         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
19840         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
19841         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
19842         m32r_load_postinc_p, m32r_store_preinc_predec_p,
19843         m32r_legitimate_address_p): New functions.
19844         * config/m32r/constraints.md (constraint "S"): Don't use
19845         STORE_PREINC_PREDEC_P.
19846         (constraint "U"): Don't use LOAD_POSTINC_P.
19847
19848 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
19849
19850         PR rtl-optimization/46178
19851         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
19852         compute ira_hard_regno_cover_class[].
19853
19854 2011-02-18  Richard Guenther  <rguenther@suse.de>
19855
19856         PR lto/47798
19857         * lto-streamer.h (lto_global_var_decls): Declare.
19858         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
19859         statics for global var processing.
19860
19861 2011-02-18  Richard Guenther  <rguenther@suse.de>
19862
19863         PR tree-optimization/47737
19864         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
19865         edge dominance check.
19866
19867 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
19868
19869         PR debug/47780
19870         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
19871         avoid invalid rtx sharing.
19872
19873 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
19874
19875         * doc/cpp.texi (Obsolete Features): Add background on the
19876         origin of assertions.
19877
19878 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
19879
19880         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
19881         objc_abi == 2.
19882         * config/darwin.c (output_objc_section_asm_op): Added support for
19883         ABI v1 and v2.
19884         (is_objc_metadata): New.
19885         (darwin_objc2_section): New.
19886         (darwin_objc1_section): New.
19887         (machopic_select_section): Added support for ABI v1 and v2.
19888         (darwin_emit_objc_zeroed): New.
19889         (darwin_output_aligned_bss): Detect objc metadata and treat it
19890         appropriately.
19891         (darwin_asm_output_aligned_decl_common): Same.
19892         (darwin_asm_output_aligned_decl_local): Same.
19893         * config/darwin-sections.def: Updated for ABI v1 and v2.
19894         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
19895         compiling Objective-C code for the NeXT runtime, default to using
19896         ABI version 0 for 32-bit, and version 2 for 64-bit.
19897
19898 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19899
19900         * common.opt (optimize_fast): New Variable.
19901         * opts.c (default_options_optimization): Use opts->x_optimize_fast
19902         instead of local variable ofast.
19903
19904 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
19905
19906         * doc/invoke.texi (fobjc-abi-version): Documented.
19907         (fobjc-nilcheck): Documented.
19908         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
19909         version.
19910
19911 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19912
19913         PR driver/47390
19914         * common.opt (export-dynamic): New Driver option.
19915         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
19916
19917 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19918
19919         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
19920
19921 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
19922             Jan Hubicka  <jh@suse.cz>
19923
19924         PR debug/47106
19925         PR debug/47402
19926         * cfgexpand.c (account_used_vars_for_block): Remove.
19927         (estimated_stack_frame_size): Use referenced vars.
19928         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
19929         that were referenced in the original function.  Test src_fn
19930         rather than cfun.  Drop redundant get_var_ann.
19931         (setup_one_parameter): Drop redundant get_var_ann.
19932         (declare_return_variable): Likewise.
19933         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
19934         (copy_arguments_for_versioning): Drop redundant get_var_ann.
19935         * ipa-inline.c (compute_inline_parameters): Do not compute
19936         disregard_inline_limits here.
19937         (compute_inlinable_for_current, pass_inlinable): New.
19938         (pass_inline_parameters): Require PROP_referenced_vars.
19939         * cgraphunit.c (cgraph_process_new_functions): Don't run
19940         compute_inline_parameters explicitly unless function is in SSA form.
19941         (cgraph_analyze_function): Set .disregard_inline_limits.
19942         * tree-sra.c (convert_callers): Compute inliner parameters
19943         only for functions already in SSA form.
19944
19945 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19946
19947         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
19948         -mlittle-endian-data.
19949
19950 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19951
19952         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
19953         -mno-fpu, not -fpu and -no-fpu.
19954         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
19955         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
19956
19957 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
19958
19959         PR target/43653
19960         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
19961         input reload with PLUS RTX.
19962
19963 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19964
19965         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
19966         of InverseVar(MDMX).
19967
19968 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19969
19970         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
19971         --m4-340.
19972
19973 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19974
19975         * config/mn10300/mn10300.opt (mno-crt0): New.
19976
19977 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19978
19979         * config/m68k/uclinux.opt (static-libc): New Driver option.
19980
19981 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19982
19983         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
19984
19985 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19986
19987         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
19988         %{muser-extend-enabled}.
19989
19990 2011-02-16  Richard Guenther  <rguenther@suse.de>
19991
19992         PR tree-optimization/47738
19993         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
19994         the TODO from tree_predictive_commoning.
19995
19996 2011-02-15  Jeff Law  <law@redhat.com>
19997
19998         Revert
19999         2011-01-25  Jeff Law  <law@redhat.com>
20000
20001         PR rtl-optimization/37273
20002         * ira-costs.c (scan_one_insn): Detect constants living in memory and
20003         handle them like argument loads from stack slots.  Do not double
20004         count memory for memory constants and argument loads from stack slots.
20005
20006 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
20007
20008         PR target/47755
20009         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
20010         mode for vector constants.  Remove code that checks for TImode.
20011
20012 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20013
20014         PR debug/47106
20015         PR debug/47402
20016         * cgraph.h (compute_inline_parameters): Return void.
20017         * ipa-inline.c (compute_inline_parameters): Adjust.
20018
20019 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20020
20021         PR debug/47106
20022         PR debug/47402
20023         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
20024         rather than decl.
20025         * cfgexpand.c (estimated_stack_frame_size): Likewise.
20026         * ipa-inline.c (compute_inline_parameters): Adjust.
20027
20028 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20029
20030         PR debug/47106
20031         PR debug/47402
20032         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
20033         Adjust all users.  Pass FN to...
20034         * tree-flow-inline.h (first_referenced_var): ... this.  Add
20035         fn argument.
20036         * ipa-struct-reorg.c: Adjust.
20037         * tree-dfa.c: Adjust.
20038         * tree-into-ssa.c: Adjust.
20039         * tree-sra.c: Adjust.
20040         * tree-ssa-alias.c: Adjust.
20041         * tree-ssa-live.c: Adjust.
20042         * tree-ssa.c: Adjust.
20043         * tree-ssanames.c: Adjust.
20044         * tree-tailcall.c: Adjust.
20045
20046 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20047
20048         PR debug/47106
20049         PR debug/47402
20050         * tree-flow.h (referenced_var_lookup): Add fn parameter.
20051         Adjust all callers.
20052         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
20053         * tree-flow-inline.h: Adjust.
20054         * gimple-pretty-print.c: Adjust.
20055         * tree-into-ssa.c: Adjust.
20056         * tree-ssa.c: Adjust.
20057         * cfgexpand.c: Adjust.
20058
20059 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
20060
20061         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
20062         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20063         (EXTRA_CONSTRAINT): Delete.
20064         * config/iq2000/constraints.md: New file.
20065         * config/iq2000/iq2000.md: Include it.
20066         (define_insn ""): Delete.
20067         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
20068         unsupported constraint letters from patterns.
20069         (call_value, call_value_internal1): Likewise.
20070         (call_value_multiple_internal1): Likewise.
20071
20072 2011-02-15  Nick Clifton  <nickc@redhat.com>
20073
20074         * config/mn10300/mn10300.c: Include tm-constrs.h.
20075         (struct liw_data): New data structure describing an LIW candidate
20076         instruction.
20077         (extract_bundle): Use struct liw_data.  Allow small integer
20078         operands for some instructions.
20079         (check_liw_constraints): Use struct liw_data.  Remove swapped
20080         parameter.  Add comments describing the checks.  Fix bug when
20081         assigning the source of liw1 to the source of liw2.
20082         (liw_candidate): Delete.  Code moved into extract_bundle.
20083         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
20084         before swapping.
20085         * config/mn10300/predicates.md (liw_operand): New predicate.
20086         Allows registers and small integer constants.
20087         * config/mn10300/constraints.md (O): New constraint.  Accetps
20088         integers in the range -8 to +7 inclusive.
20089         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
20090         for moving a small integer into a register.  Give this alternative
20091         LIW attributes.
20092         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
20093         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
20094         using the J,K,L and M constraints,
20095         (liw): Remove SI mode on second operands to allow for HI and QI
20096         mode values.
20097         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
20098         instruction.
20099
20100 2011-02-15  Richard Guenther  <rguenther@suse.de>
20101
20102         PR tree-optimization/47743
20103         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
20104         for a non-type-compatible VN lookup bail out.
20105
20106 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
20107
20108         * config/fr30/constraints.md: New file.
20109         * config/fr30/fr30.md: Include it.
20110         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
20111         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20112         (EXTRA_CONSTRAINT): Delete.
20113
20114 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
20115
20116         * config/frv/constraints.md: New file.
20117         * config/frv/predicates.md: Include it.
20118         * config/frv/frv.c (reg_class_from_letter): Delete.
20119         (frv_option_override): Don't initialize it.
20120         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
20121         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
20122         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
20123         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
20124         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
20125         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20126         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
20127         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
20128         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
20129         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
20130         (REG_CLASS_FROM_CONSTRAINT): Delete.
20131
20132 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
20133
20134         PR middle-end/47581
20135         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
20136         if frame size is 0 in a leaf function.
20137
20138 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20139
20140         PR pch/14940
20141         * config/alpha/host-osf.c: New file.
20142         * config/alpha/x-osf: New file.
20143         * config.host (alpha*-dec-osf*): Use it.
20144
20145 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
20146
20147         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20148         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
20149         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
20150         (rx_mode_dependent_address_p): ...this. Make static. Change argument
20151         type to const_rtx.
20152         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20153
20154 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
20155
20156         * config/stormy16/constraints.md: New file.
20157         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
20158         Use satisfies_constraint_Q and satisfies_constraint_R.
20159         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
20160         Delete.
20161         (xstormy16_legitiamte_address_p): Declare.
20162         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
20163         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20164         (EXTRA_CONSTRAINT): Delete.
20165         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
20166         Un-staticize.
20167         (xstormy16_extra_constraint_p): Delete.
20168
20169 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
20170
20171         PR tree-optimization/46494
20172         * loop-unroll.c (split_edge_and_insert): Adjust comment.
20173         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
20174         (pass_rtl_loop_done): Add TODO_verify_flow.
20175         * fwprop.c (pass_rtl_fwprop): Likewise.
20176         * modulo-sched.c (pass_sms): Likewise.
20177         * tree-ssa-dom.c (pass_dominator): Likewise.
20178         * tree-ssa-loop-ch.c (pass_ch): Likewise.
20179         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
20180         (pass_tree_loop_done): Likewise.
20181         * tree-ssa-pre.c (execute_pre): Likewise.
20182         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
20183         * tree-ssa-sink.c (pass_sink_code): Likewise.
20184         * tree-vrp.c (pass_vrp): Likewise.
20185
20186 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
20187
20188         * config/v850/constraints.md: New file.
20189         * config/v850/v850.md: Include it.
20190         * config/v850/predicates.md (reg_or_0_operand): Use
20191         satisfies_constraint_G.
20192         (special_symbolref_operand): Use satisfies_constraint_K.
20193         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
20194         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
20195         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
20196         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
20197         (EXTRA_CONSTRAINT): Delete.
20198         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
20199         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
20200         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
20201
20202 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
20203
20204         PR target/47696
20205         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
20206         description.
20207
20208 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
20209
20210         * config/mcore/constraints.md: New file.
20211         * config/mcore/mcore.md: Include it.
20212         * config/mcore/mcore.c (reg_class_from_letter): Delete.
20213         * config/mcore/mcore.h (reg_class_from_letter): Delete.
20214         (REG_CLASS_FROM_LETTER): Delete.
20215         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
20216         insn_const_int_ok_for_constraint.
20217         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
20218         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
20219         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20220         (EXTRA_CONSTRAINT): Delete.
20221
20222 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20223
20224         PR ada/41929
20225         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
20226         (IS_SIGHANDLER): Define.
20227         (sparc64_is_sighandler): New function, split off from
20228         sparc64_fallback_frame_state.
20229         (sparc_is_sighandler): New function, split off from
20230         sparc_fallback_frame_state.
20231         (sparc64_fallback_frame_state): Merge with ...
20232         (sparc_fallback_frame_state): ... this into ...
20233         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
20234         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
20235         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
20236         stack instead of hardcoded offsets.
20237
20238 2011-02-14  Andriy Gapon  <avg@freebsd.org>
20239
20240         PR target/45808
20241         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
20242
20243 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20244
20245         * configure: Regenerate.
20246
20247 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
20248
20249         PR driver/45731
20250         * gcc.c (asm_options): Correct spec matching --target-help.
20251
20252 2011-02-12  Martin Jambor  <mjambor@suse.cz>
20253
20254         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
20255         to gimple call error.
20256
20257 2011-02-12  Mike Stump  <mikestump@comcast.net>
20258
20259         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
20260         comments in backslash regions.
20261
20262 2011-02-12  Mike Stump  <mikestump@comcast.net>
20263             Jakub Jelinek  <jakub@redhat.com>
20264             Iain Sandoe  <iains@gcc.gnu.org>
20265
20266         PR target/47324
20267         * dwarf2out.c (output_cfa_loc): When required, apply the
20268         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
20269         (output_loc_sequence): Likewise.
20270         (output_loc_operands_raw): Likewise.
20271         (output_loc_sequence_raw): Likewise.
20272         (output_cfa_loc): Likewise.
20273         (output_loc_list): Suppress register number adjustment when
20274         calling output_loc_sequence()
20275         (output_die): Likewise.
20276
20277 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
20278
20279         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20280         Remove macros.
20281         * config/xtensa/xtensa.c (xtensa_register_move_cost,
20282         xtensa_memory_move_cost): New functions.
20283         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
20284
20285 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
20286
20287         PR lto/47225
20288         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
20289         in the current directory.
20290         * configure: Rebuilt.
20291
20292 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
20293
20294         * config/darwin.c (darwin_override_options): Add a hunk missed
20295         from the commit of r168571.  Trim comment line lengths and
20296         correct indents of the preceding block.
20297
20298 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
20299
20300         * gcc.c (driver_handle_option): Concatenate the argument to -F with
20301         the switch.
20302
20303 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
20304
20305         * common.opt (nostartfiles): New Driver option.
20306
20307 2011-02-11  Xinliang David Li  <davidxl@google.com>
20308
20309         PR tree-optimization/47707
20310         * tree-chrec.c (convert_affine_scev): Keep type precision.
20311
20312 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
20313
20314         PR tree-optimization/47420
20315         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
20316
20317 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
20318
20319         PR rtl-optimization/47614
20320         * rtl.h (check_for_inc_dec): Declare.
20321         * dse.c (check_for_inc_dec): Externalize...
20322         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
20323         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
20324
20325 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
20326
20327         PR driver/47678
20328         * gcc.c (main): Do not compile inputs if there were errors in
20329         option handling.
20330         * opts-common.c (read_cmdline_option): Check for wrong language
20331         after other error checks.
20332
20333 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
20334
20335         * cgraph.c: Fix comment typos.
20336         * cgraph.h: Likewise.
20337         * cgraphunit.c: Likewise.
20338         * ipa-cp.c: Likewise.
20339         * ipa-inline.c: Likewise.
20340         * ipa-prop.c: Likewise.
20341         * ipa-pure-const.c: Likewise.
20342         * ipa-ref.c: Likewise.
20343         * ipa-reference.c: Likewise.
20344
20345 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20346
20347         PR debug/47684
20348         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
20349
20350 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20351
20352         PR testsuite/47400
20353         * doc/sourcebuild.texi (Require Support): Document
20354         dg-require-ascii-locale.
20355
20356 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
20357
20358         * doc/lto.texi (Write summary): Fix missing parentheses.
20359
20360 2011-02-10  DJ Delorie  <dj@redhat.com>
20361
20362         * config/m32c/m32c.c (m32c_option_override): Disable
20363         -fcombine-stack-adjustments until flag value tracking and compare
20364         optimization can be rewritten.
20365
20366 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
20367
20368         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
20369         PROCESSOR_POWER7.
20370         (PROCESSOR_DEFAULT64): Likewise.
20371
20372 2011-02-10  Richard Henderson  <rth@redhat.com>
20373
20374         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
20375         change from 2011-02-03.
20376         * config/rx/rx.c (flags_from_code): Likewise.
20377         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
20378         is valid, n/pz otherwise.
20379         (rx_select_cc_mode): Return CCmode if Y is not zero.
20380
20381 2011-02-10  Richard Guenther  <rguenther@suse.de>
20382
20383         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
20384
20385 2011-02-10  Richard Guenther  <rguenther@suse.de>
20386
20387         PR tree-optimization/47677
20388         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
20389
20390 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
20391
20392         PR target/47665
20393         * combine.c (make_compound_operation): Only change shifts into
20394         multiplication for SCALAR_INT_MODE_P.
20395
20396 2011-02-10  Jie Zhang  <jie@codesourcery.com>
20397
20398         PR testsuite/47622
20399         Revert
20400         2011-02-05  Jie Zhang  <jie@codesourcery.com>
20401         PR debug/42631
20402         * web.c (entry_register): Don't clobber the number of the
20403         first uninitialized reference in used[].
20404
20405 2011-02-09  Richard Guenther  <rguenther@suse.de>
20406
20407         PR tree-optimization/47664
20408         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
20409         all edges again.
20410
20411 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
20412
20413         PR target/46481
20414         PR target/47032
20415         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
20416         PROCESSOR_POWER7.
20417         (PROCESSOR_DEFAULT64): Same.
20418         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
20419
20420 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20421
20422         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
20423
20424 2011-02-09  Martin Jambor  <mjambor@suse.cz>
20425
20426         PR middle-end/45505
20427         * tree-sra.c (struct access): New flags grp_scalar_read and
20428         grp_scalar_write.  Changed description of assignment read and write
20429         flags.
20430         (dump_access): Dump new flags, reorder all of them.
20431         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
20432         to detect multiple scalar reads.
20433         (analyze_access_subtree): Use the new scalar read write flags instead
20434         of the old flags.  Adjusted comments.
20435
20436 2011-02-08  DJ Delorie  <dj@redhat.com>
20437
20438         PR target/47548
20439         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
20440         patterns.
20441
20442 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20443
20444         * config/m68k/uclinux.opt: New.
20445         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
20446
20447 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20448
20449         * config/cris/elf.opt (sim): New Driver option.
20450
20451 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20452
20453         * config/xtensa/elf.opt: New.
20454         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
20455
20456 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20457
20458         * config/vax/elf.opt: New.
20459         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
20460
20461 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20462
20463         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
20464
20465 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20466
20467         * config/gnu-user.opt: New.
20468         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
20469         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
20470         *-*-uclinux*): Use gnu-user.opt.
20471
20472 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
20473
20474         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
20475         * config/i386/gnu.h (CPP_SPEC): Likewise.
20476
20477 2011-02-08  Ian Lance Taylor  <iant@google.com>
20478
20479         * common.opt (fcx-limited-range): Add SetByCombined flag.
20480         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
20481         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
20482         (fassociative-math, freciprocal-math): Likewise.
20483         (funsafe-math-optimizations): Likewise.
20484         * opth-gen.awk: Handle SetByCombined.
20485         * optc-gen.awk: Likewise.
20486         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
20487         (set_unsafe_math_optimizations_flags): Likewise.
20488         * doc/options.texi (Option properties): Document SetByCombined.
20489
20490 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
20491
20492         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
20493         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
20494         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
20495         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
20496         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
20497
20498 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
20499
20500         PR tree-optimization/46834
20501         PR tree-optimization/46994
20502         PR tree-optimization/46995
20503         * graphite-sese-to-poly.c (used_outside_reduction): New.
20504         (detect_commutative_reduction): Call used_outside_reduction.
20505         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
20506         translate_scalar_reduction_to_array only when at least one
20507         loop-phi/close-phi tuple has been detected.
20508
20509 2011-02-08  Richard Guenther  <rguenther@suse.de>
20510
20511         PR middle-end/47639
20512         * tree-vect-generic.c (expand_vector_operations_1): Update
20513         stmts here ...
20514         (expand_vector_operations): ... not here.  Cleanup EH info
20515         and the CFG if required.
20516
20517 2011-02-08  Richard Guenther  <rguenther@suse.de>
20518
20519         PR tree-optimization/47641
20520         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
20521         require type compatibility.
20522
20523 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20524
20525         * gimple-low.c (lower_function_body): Don't remove the location of
20526         the return statement here.
20527         (lower_gimple_return): Do it here instead but only if the return
20528         statement is actually used twice.
20529
20530 2011-02-08  Richard Guenther  <rguenther@suse.de>
20531
20532         PR tree-optimization/47632
20533         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
20534         unused up_to_stmt parameter, return whether cfg-cleanup is
20535         necessary, remove EH info properly.
20536         (forward_propagate_into_gimple_cond): Adjust caller.
20537         (forward_propagate_into_cond): Likewise.
20538         (forward_propagate_comparison): Likewise.
20539         (tree_ssa_forward_propagate_single_use_vars): Make
20540         forward_propagate_comparison case similar to the two others.
20541
20542 2011-02-08  Nick Clifton  <nickc@redhat.com>
20543
20544         * config/mn10300/mn10300.opt (mliw): New command line option.
20545         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
20546         (liw_bundling): New automaton.
20547         (liw): New attribute.
20548         (liw_op): New attribute.
20549         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
20550         (movsi_internal): Add LIW attributes.
20551         (andsi3): Likewise.
20552         (iorsi3): Likewise.
20553         (xorsi3): Likewise.
20554         (addsi3): Separate register and immediate alternatives.
20555         Add LIW attributes.
20556         (subsi3): Likewise.
20557         (cmpsi): Likewise.
20558         (aslsi3): Likewise.
20559         (lshrsi3): Likewise.
20560         (ashrsi3): Likewise.
20561         (liw): New pattern.
20562         * config/mn10300/mn10300.c (liw_op_names): New
20563         (mn10300_print_operand): Handle 'W' operand descriptor.
20564         (extract_bundle): New function.
20565         (check_liw_constraints): New function.
20566         (liw_candidate): New function.
20567         (mn10300_bundle_liw): New function.
20568         (mn10300_reorg): New function.
20569         (TARGET_MACHINE_DEPENDENT_REORG): Define.
20570         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
20571         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
20572         __LIW__ or __NO_LIW__.
20573         * doc/invoke.texi: Describe the -mliw command line option.
20574
20575 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20576
20577         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
20578         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
20579         pthread_mutex_unlock): Remove.
20580         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
20581         * config/pa/t-pa64: Likewise.
20582         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
20583         shared libc if not linking against libpthread.
20584         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20585
20586 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
20587
20588         PR target/47558
20589         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
20590         on 10.6 and later to ensure that we always use the unwinder from
20591         the system.  Only add -no_compact_unwind when tarteting darwin
20592         10.6 or later.
20593
20594 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
20595
20596         PR target/46997
20597         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
20598         (vec_interleave_lowv2sf): Ditto.
20599         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
20600         (vec_extract_oddv2sf): Ditto.
20601
20602 2011-02-07  Mike Stump  <mikestump@comcast.net>
20603
20604         PR target/42333
20605         Add __ieee_divdc3 entry point.
20606         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
20607         entry point.
20608         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
20609         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
20610         * config/darwin.c (darwin_rename_builtins): Add.
20611         * config/darwin-protos.h (darwin_rename_builtins): Add.
20612
20613 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
20614
20615         PR target/47636
20616         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
20617         for the condition.
20618
20619 2011-02-07  Mike Stump  <mikestump@comcast.net>
20620
20621         * config/darwin.opt (mmacosx-version-min): Update default OS version.
20622
20623 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
20624
20625         PR target/47534
20626         * config/avr/libgcc.S (exit): Move .endfunc
20627
20628 2011-02-07  Richard Guenther  <rguenther@suse.de>
20629
20630         PR tree-optimization/47615
20631         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
20632         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
20633         (run_scc_vn): Initialize it.
20634         (visit_reference_op_load): Use it.
20635         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
20636
20637 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20638
20639         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
20640         DImode trapping arithmetic libfuncs.
20641
20642 2011-02-07  Richard Guenther  <rguenther@suse.de>
20643
20644         PR tree-optimization/47621
20645         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
20646         two duplicates ...
20647         (execute_update_addresses_taken): ... here.  Make it more
20648         conservative in what we accept.
20649
20650 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
20651
20652         * config/sparc/freebsd.h (ASM_SPEC): Define.
20653         * config/sparc/vxworks.h (ASM_SPEC): Define.
20654
20655 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
20656
20657         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
20658
20659 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
20660
20661         * doc/invoke.texi: Remove reference to compiler internals from
20662         user documentation.
20663
20664         * reg-notes.def: Remove REG_VALUE_PROFILE.
20665         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
20666
20667 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
20668
20669         PR middle-end/47610
20670         * varasm.c (default_section_type_flags): If decl is NULL,
20671         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
20672
20673 2011-02-05  Jie Zhang  <jie@codesourcery.com>
20674
20675         PR debug/42631
20676         * web.c (entry_register): Don't clobber the number of the
20677         first uninitialized reference in used[].
20678
20679 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
20680
20681         PR tree-optimization/46194
20682         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
20683         (build_classic_dist_vector_1): Do not represent classic distance
20684         vectors when the access functions are variating in different loops.
20685
20686 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
20687
20688         * config/mips/iris6.opt: New.
20689         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
20690
20691 2011-02-04  Richard Henderson  <rth@redhat.com>
20692             Steve Ellcey  <sje@cup.hp.com>
20693
20694         PR target/46997
20695         * config/ia64/predicates.md (mux1_brcst_element): New.
20696         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
20697         * config/ia64/ia64.c (ia64_unpack_assemble): New.
20698         (ia64_unpack_sign): New.
20699         (ia64_expand_unpack): Rewrite using new routines.
20700         (ia64_expand_widen_sum): Ditto.
20701         (ia64_expand_dot_prod_v8qi): Ditto.
20702         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
20703         routines, add endian check.
20704         (pmpy2_even): Rename from pmpy2_r, add endian check.
20705         (pmpy2_odd): Rename from pmpy2_l, add endian check.
20706         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
20707         (vec_widen_smult_hi_v4hi): Ditto.
20708         (vec_widen_umult_lo_v4hi): Ditto.
20709         (vec_widen_umult_hi_v4hi): Ditto.
20710         (mulv2si3): Change endian checks.
20711         (sdot_prodv4hi): Rewrite with new calls.
20712         (udot_prodv4hi): New.
20713         (vec_pack_ssat_v4hi): Add endian check.
20714         (vec_pack_usat_v4hi): Ditto.
20715         (vec_pack_ssat_v2si): Ditto.
20716         (max1_even): Rename from max1_r, add endian check.
20717         (max1_odd): Rename from max1_l, add endian check.
20718         (*mux1_rev): Format change.
20719         (*mux1_mix): Ditto.
20720         (*mux1_shuf): Ditto.
20721         (*mux1_alt): Ditto.
20722         (*mux1_brcst_v8qi): Use new predicate.
20723         (vec_extract_evenv8qi): Remove endian check.
20724         (vec_extract_oddv8qi): Ditto.
20725         (vec_interleave_lowv4hi): Format change.
20726         (vec_interleave_highv4hi): Ditto.
20727         (mix2_even): Rename from mix2_r, add endian check.
20728         (mix2_odd): Rename from mux2_l, add endian check.
20729         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
20730         (vec_extract_evenodd_helper): Format change.
20731         (vec_extract_evenv4hi): Remove endian check.
20732         (vec_extract_oddv4hi): Remove endian check.
20733         (vec_interleave_lowv2si): Format change.
20734         (vec_interleave_highv2si): Format change.
20735         (vec_initv2si): Remove endian check.
20736         (vecinit_v2si): Add endian check.
20737         (reduc_splus_v2sf): Add endian check.
20738         (reduc_smax_v2sf): Ditto.
20739         (reduc_smin_v2sf): Ditto.
20740         (vec_initv2sf): Remove endian check.
20741         (fpack): Add endian check.
20742         (fswap): Add endian check.
20743         (vec_interleave_highv2sf): Add endian check.
20744         (vec_interleave_lowv2sf): Add endian check.
20745         (fmix_lr): Add endian check.
20746         (vec_setv2sf): Format change.
20747         (*vec_extractv2sf_0_be): Use shift to extract operand.
20748         (*vec_extractv2sf_1_be): New.
20749         (vec_pack_trunc_v4hi): Add endian check.
20750         (vec_pack_trunc_v2si): Format change.
20751
20752 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
20753
20754         PR inline-asm/23200
20755         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
20756         do bb, locus and block comparison and disallow loads if it is not set.
20757         (stmt_is_replaceable_p): New function.
20758         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
20759         callers.
20760         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
20761         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
20762         SSA_NAME_DEF_STMT.
20763         * tree-flow.h (stmt_is_replaceable_p): New prototype.
20764
20765 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
20766
20767         * config/rs6000/xilinx.opt: New.
20768         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
20769
20770 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
20771
20772         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
20773
20774 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
20775
20776         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
20777         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
20778         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
20779         secondary_reload_info, xtensa_secondary_reload): Remove.
20780         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
20781         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
20782         (xtensa_preferred_reload_class): Make static. Change return and
20783         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
20784         Use CONST_DOUBLE_P predicate.
20785         (xtensa_preferred_output_reload_class): New function.
20786         (xtensa_secondary_reload): Make static.
20787
20788 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
20789
20790         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
20791         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
20792         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
20793
20794 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
20795
20796         PR middle-end/31490
20797         * output.h (SECTION_RELRO): Define.
20798         (SECTION_MACH_DEP): Adjust.
20799         (get_variable_section): New prototype.
20800         * varpool.c (varpool_finalize_named_section_flags): New function.
20801         (varpool_assemble_pending_decls): Call it.
20802         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
20803         * cgraphunit.c (cgraph_output_in_order): Call
20804         varpool_finalize_named_section_flags.
20805         * varasm.c (get_section): Allow section flags conflicts between
20806         relro and read-only sections if the section hasn't been declared yet.
20807         Set SECTION_OVERRIDE after diagnosing section type conflict.
20808         (get_variable_section): No longer static.
20809         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
20810         readonly sections that need relocations.
20811         (decl_readonly_section_1): New function.
20812         (decl_readonly_section): Use it.
20813
20814         Revert:
20815         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
20816                     Steve Ellcey  <sje@cup.hp.com>
20817
20818         PR middle-end/31490
20819         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
20820         if section attribute used.
20821
20822 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
20823
20824         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
20825         * config/darwin.c (SECTION_NO_ANCHOR): Define.
20826         (darwin_init_sections): Remove assertion.
20827
20828 2011-02-03  Nick Clifton  <nickc@redhat.com>
20829
20830         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
20831         lt and ge.
20832         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
20833         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
20834         instead of "n" and "pz".
20835         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
20836         CC_FLAG_S.
20837
20838 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
20839
20840         PR target/47312
20841         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
20842         fma, expand FMA_EXPR as fma{,f,l} call.
20843
20844         PR lto/47274
20845         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
20846         copy them into a unsigned char variable and pass address of it to
20847         lto_output_data_stream.
20848
20849         PR target/47564
20850         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
20851         around backend_init_target and lang_dependent_init_target calls.
20852         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
20853         (verify_cgraph_node): Don't call set_cfun here.  Use
20854         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
20855         Set error_found for incorrectly represented calls to thunks.
20856
20857 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
20858
20859         PR debug/43092
20860         PR rtl-optimization/43494
20861         * rtl.h (for_each_inc_dec_fn): New type.
20862         (for_each_inc_dec): Declare.
20863         * rtlanal.c (struct for_each_inc_dec_ops): New type.
20864         (for_each_inc_dec_find_inc_dec): New fn.
20865         (for_each_inc_dec_find_mem): New fn.
20866         (for_each_inc_dec): New fn.
20867         * dse.c (struct insn_size): Remove.
20868         (replace_inc_dec, replace_inc_dec_mem): Remove.
20869         (emit_inc_dec_insn_before): New fn.
20870         (check_for_inc_dec): Use it, along with for_each_inc_dec.
20871         (canon_address): Pass mem modes to cselib_lookup.
20872         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
20873         (cselib_lookup_from_insn): Likewise.
20874         (cselib_subst_to_values): Likewise.
20875         * cselib.c (find_slot_memmode): New var.
20876         (cselib_find_slot): New fn.  Use it instead of
20877         htab_find_slot_with_hash everywhere.
20878         (entry_and_rtx_equal_p): Use find_slot_memmode.
20879         (autoinc_split): New fn.
20880         (rtx_equal_for_cselib_p): Rename and implement in terms of...
20881         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
20882         Deal with autoinc.  Special-case recursion into MEMs.
20883         (cselib_hash_rtx): Likewise.
20884         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
20885         address and MEM modes.
20886         (cselib_subst_to_values): Add memmode, pass it on.
20887         Deal with autoinc.
20888         (cselib_lookup): Add memmode argument, pass it on.
20889         (cselib_lookup_from_insn): Add memmode.
20890         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
20891         (struct cselib_record_autoinc_data): New.
20892         (cselib_record_autoinc_cb): New fn.
20893         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
20894         mode to cselib_lookup.  Reset autoinced REGs here instead of...
20895         (cselib_process_insn): ... here.
20896         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
20897         to cselib_lookup.
20898         (add_uses): Likewise, also to cselib_subst_to_values.
20899         (add_stores): Likewise.
20900         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
20901         cselib_subst_to_values.
20902         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
20903         * gcse.c (do_local_cprop): Adjusted.
20904         * postreload.c (reload_cse_simplify_set): Adjusted.
20905         (reload_cse_simplify_operands): Adjusted.
20906         * sel-sched-dump (debug_mem_addr_value): Pass mode.
20907
20908 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
20909
20910         PR tree-optimization/45122
20911         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
20912         unsafe assumptions when there's more than one loop exit.
20913
20914 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
20915
20916         PR target/47272
20917         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20918         Document using vector double with the load/store builtins, and
20919         that the load/store builtins always use Altivec instructions.
20920
20921         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
20922         to use altivec memory instructions, even on VSX.
20923         (vector_altivec_store_<mode>): Ditto.
20924
20925         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
20926         function.
20927
20928         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20929         V2DF, V2DI support to load/store overloaded builtins.
20930
20931         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
20932         altivec load/store builtins for V2DF/V2DI types.
20933
20934         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20935         set avoid indexed addresses on power6 if -maltivec.
20936         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
20937         vector_altivec_load/vector_altivec_store builtins.
20938         (altivec_expand_st_builtin): Ditto.
20939         (altivec_expand_builtin): Add VSX memory builtins.
20940         (rs6000_init_builtins): Add V2DI types to internal types.
20941         (altivec_init_builtins): Add support for V2DF/V2DI altivec
20942         load/store builtins.
20943         (rs6000_address_for_altivec): Insure memory address is appropriate
20944         for Altivec.
20945
20946         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
20947         vec_vsx_ld and vec_vsx_st.
20948         (vsx_store_<mode>): Ditto.
20949
20950         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
20951         variables to hold long long types for VSX vector memory builtins.
20952         (RS6000_BTI_unsigned_long_long): Ditto.
20953         (long_long_integer_type_internal_node): Ditti.
20954         (long_long_unsigned_type_internal_node): Ditti.
20955
20956         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
20957         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
20958         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
20959
20960         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
20961         short cuts.
20962         (vec_vsx_st): Ditto.
20963
20964 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
20965
20966         * config/pa/pa-hpux10.opt: New.
20967         * config/hpux11.opt (pthread): New Driver option.
20968         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
20969         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
20970
20971 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
20972
20973         * config/ia64/vms.opt: New.
20974         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
20975
20976 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
20977
20978         PR target/47580
20979         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
20980         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
20981         generator functions.
20982         (vsx_floatuns<VSi><mode>2): Ditto.
20983         (vsx_fix_trunc<mode><VSi>2): Ditto.
20984         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
20985
20986 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
20987
20988         * config/i386/djgpp.opt (posix): New Driver option.
20989
20990 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
20991
20992         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
20993         Move to the unsupported targets list.
20994
20995 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
20996
20997         PR rtl-optimization/47525
20998         * df-scan.c: Update copyright years.
20999         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
21000         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
21001
21002 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21003
21004         * config/i386/sysv4.h (TARGET_VERSION): Remove.
21005         (SUBTARGET_RETURN_IN_MEMORY): Remove.
21006         (ASM_OUTPUT_ASCII): Remove.
21007         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
21008
21009 2011-02-02  Jeff Law  <law@redhat.com>
21010
21011         PR middle-end/47543
21012         * reload.c (find_reloads_address): Handle reg+d address where both
21013         components are invalid by reloading the entire address.
21014
21015 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
21016             Richard Guenther  <rguenther@suse.de>
21017
21018         PR tree-optimization/40979
21019         PR bootstrap/47044
21020         * passes.c (init_optimization_passes): After LIM call copy_prop
21021         and DCE to clean up.
21022         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
21023
21024 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
21025
21026         PR tree-optimization/47576
21027         PR tree-optimization/47555
21028         * doc/invoke.texi (scev-max-expr-complexity): Documented.
21029         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
21030         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
21031         * tree-scalar-evolution.c (follow_ssa_edge): Use
21032         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
21033
21034 2011-02-02  Richard Guenther  <rguenther@suse.de>
21035
21036         PR tree-optimization/47566
21037         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
21038
21039 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
21040
21041         PR debug/47106
21042         PR debug/47402
21043         * tree-inline.c (declare_return_variable): Remove unused caller
21044         variable.
21045
21046         PR debug/47106
21047         PR debug/47402
21048         * tree-flow-inline.h (clear_is_used, is_used_p): New.
21049         * cfgexpand.c (account_used_vars_for_block): Use them.
21050         * tree-nrv.c (tree_nrv): Likewise.
21051         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
21052         (dump_scope_block): Likewise.
21053         (remove_unused_locals): Likewise.
21054
21055         PR debug/47106
21056         PR debug/47402
21057         * tree-inline.c (declare_return_variable): Add result decl to
21058         local decls only once.
21059         * gimple-low.c (record_vars_into): Mark newly-created variables
21060         as referenced.
21061
21062 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
21063
21064         PR debug/47498
21065         PR debug/47501
21066         PR debug/45136
21067         PR debug/45130
21068         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21069         debug insns.
21070         (no_real_insns_p, schedule_block, set_priorities): Drop special
21071         treatment of boundary debug insns.
21072         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
21073         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
21074         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21075         (BOUNDARY_DEBUG_INSN_P): Likewise.
21076         (SCHEDULE_DEBUG_INSN_P): Likewise.
21077         * sched-rgn.c (init_ready_list): Drop special treatment of
21078         boundary debug insns.
21079         * final.c (rest_of_clean_state): Clear notes' BB.
21080
21081 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21082
21083         * config/openbsd.opt (assert=): New Driver option.
21084
21085 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21086
21087         * config/i386/nto.opt: New.
21088         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
21089
21090 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21091
21092         * config/i386/netware.opt: New.
21093         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
21094
21095 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21096
21097         * config/interix.opt (posix): New Driver option.
21098
21099 2011-02-01  DJ Delorie  <dj@redhat.com>
21100
21101         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
21102
21103         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
21104         class for A0/A1.
21105
21106 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
21107
21108         PR tree-optimization/47561
21109         * toplev.c (process_options): Print the Graphite flags.  Add
21110         flag_loop_flatten to the list of options requiring Graphite.
21111
21112 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21113
21114         * config/i386/cygming.opt (posix): New Driver option.
21115
21116 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21117
21118         * config/arm/vxworks.opt: New.
21119         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
21120
21121 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21122
21123         * config/alpha/elf.opt: New.
21124         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
21125         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
21126
21127 2011-02-01  Richard Guenther  <rguenther@suse.de>
21128
21129         PR tree-optimization/47559
21130         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
21131         store-motion on references that can throw.
21132
21133 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
21134
21135         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
21136         * tree-pass.h (TDF_CSELIB): New macro.
21137         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
21138         cselib_lookup): Check for it rather than for TDF_DETAILS.
21139
21140 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
21141
21142         PR driver/47547
21143         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
21144         is HOST_BIT_BUCKET.
21145
21146         * opts.c (finish_options): Don't add x_aux_base_name if it is
21147         HOST_BIT_BUCKET.
21148
21149 2011-02-01  Richard Guenther  <rguenther@suse.de>
21150
21151         PR tree-optimization/47555
21152         Revert
21153         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
21154
21155         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
21156
21157 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
21158
21159         PR gcc/46692
21160         * config/lm32/t-lm32: Add multilib for all CPU options.
21161
21162 2011-02-01  Richard Guenther  <rguenther@suse.de>
21163
21164         PR tree-optimization/47541
21165         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
21166         sure to have a field at offset zero.
21167
21168 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
21169
21170         * config/arc/arc.opt (EB, EL): New Driver options.
21171
21172 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
21173
21174         * config/alpha/osf5.opt: New.
21175         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
21176
21177 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
21178
21179         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
21180
21181 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
21182
21183         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
21184         -floop-interchange.
21185         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
21186         is an alias of -floop-interchange and that it requires the
21187         Graphite infrastructure.
21188         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
21189         flag_loop_interchange based on the value of flag_tree_loop_linear.
21190
21191 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
21192             Richard Guenther  <rguenther@suse.de>
21193
21194         PR tree-optimization/47538
21195         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
21196         type instead of r1type, except for comparisons.  For right
21197         shifts and comparisons punt if there are mismatches in
21198         sizetype vs. non-sizetype types.
21199
21200 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21201
21202         * doc/sourcebuild.texi (Effective-Target Keywords): Document
21203         avx_runtime.
21204
21205 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21206
21207         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
21208         version number.
21209         * configure: Regenerate.
21210
21211 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21212
21213         * configure.ac (gcc_cv_ld_static_option): Define.
21214         (gcc_cv_ld_dynamic_option): Define.
21215         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
21216         instead.
21217         (HAVE_LD_STATIC_DYNAMIC): Update message.
21218         (LD_STATIC_OPTION): Define.
21219         (LD_DYNAMIC_OPTION): Define.
21220         * configure: Regenerate.
21221         * config.in: Regenerate.
21222         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
21223         HAVE_LD_STATIC_DYNAMIC]: Use them.
21224
21225 2011-01-31  Nick Clifton  <nickc@redhat.com>
21226
21227         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
21228         registers inside interrupt handlers if the handler is not a leaf
21229         function.
21230
21231 2011-01-31  Nick Clifton  <nickc@redhat.com>
21232
21233         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
21234         reg_renumber returning an INVALID_REGNUM.
21235
21236 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
21237
21238         PR libgcj/44341
21239         * doc/install.texi: Document host options discarded when cross
21240         configuring target libraries.
21241
21242 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
21243
21244         Reverted:
21245         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
21246         PR debug/45136
21247         PR debug/45130
21248         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21249         debug insns.
21250         (no_real_insns_p, schedule_block, set_priorities): Drop special
21251         treatment of boundary debug insns.
21252         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
21253         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
21254         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21255         (BOUNDARY_DEBUG_INSN_P): Likewise.
21256         (SCHEDULE_DEBUG_INSN_P): Likewise.
21257         * sched-rgn.c (init_ready_list): Drop special treatment of
21258         boundary debug insns.
21259         * final.c (rest_of_clean-state): Clear notes' BB.
21260
21261 2011-01-31  Alan Modra  <amodra@gmail.com>
21262
21263         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
21264         toc relative expressions as we do in print_operand_address.
21265
21266 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
21267
21268         * doc/extend.texi: Follow spelling conventions.
21269         * doc/invoke.texi: Fix a typo.
21270
21271 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
21272
21273         * config/hpux11.opt: New.
21274         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
21275         ia64*-*-hpux*): Use hpux11.opt.
21276
21277 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
21278
21279         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
21280         to tmake_file.
21281
21282 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
21283
21284         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
21285         support sites.
21286
21287 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
21288
21289         * doc/install.texi (Binaries): Remove outdated reference for
21290         Motorola 68HC11/68HC12 downloads.
21291
21292 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
21293
21294         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
21295         Drepper's paper.
21296
21297 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
21298
21299         PR bootstrap/47147
21300         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
21301         used by NetBSD.
21302
21303 2011-01-28  Ahmad Sharif  <asharif@google.com>
21304
21305         * value-prof.c (check_counter): Corrected error message.
21306
21307 2011-01-29  Jie Zhang  <jie@codesourcery.com>
21308
21309         * config/arm/arm.c (arm_legitimize_reload_address): New.
21310         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21311         arm_legitimize_reload_address.
21312         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
21313
21314 2011-01-28  Ian Lance Taylor  <iant@google.com>
21315
21316         * godump.c (go_define): Ignore macros whose definitions include
21317         two adjacent operands.
21318
21319 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
21320
21321         PR target/42894
21322         * varasm.c (force_const_mem): Store copy of x in desc->constant
21323         instead of x itself.
21324         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
21325         itself into REG_EQUAL note.
21326
21327 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
21328
21329         * config/freebsd.opt (posix, rdynamic): New Driver options.
21330
21331 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21332
21333         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
21334         -Bstatic/-Bdynamic.
21335         * configure: Regenerate.
21336
21337 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
21338
21339         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
21340         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
21341
21342 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
21343
21344         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
21345         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
21346         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21347         (s390_preferred_reload_class): Make static. Change return and
21348         'rclass' argument type to reg_class_t.
21349
21350 2011-01-27  Jan Hubicka  <jh@suse.cz>
21351
21352         PR middle-end/46949
21353         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
21354         (process_function_and_variable_attributes): Check defined weakrefs.
21355
21356 2011-01-27  Martin Jambor  <mjambor@suse.cz>
21357
21358         PR tree-optimization/47228
21359         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
21360         build_ref_for_offset.
21361
21362 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21363
21364         * config/spu/spu-elf.h (ASM_SPEC): Remove.
21365
21366 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
21367
21368         PR rtl-optimization/46856
21369         * postreload.c (reload_combine_recognize_const_pattern): Do not
21370         separate cc0 setter and user on cc0 targets.
21371
21372 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
21373
21374         PR c/43082
21375         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
21376         passed a VOID_TYPE expression, immediately emit an error and
21377         return error_mark_node.
21378
21379 2011-01-26  Jeff Law  <law@redhat.com>
21380
21381         PR rtl-optimization/47464
21382         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
21383         rather than may_trap_p as needed.
21384
21385 2011-01-26  DJ Delorie  <dj@redhat.com>
21386
21387         PR rtl-optimization/46878
21388         * combine.c (insn_a_feeds_b): Check for the implicit cc0
21389         setter/user dependency as well.
21390
21391 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
21392
21393         PR rtl-optimization/44469
21394         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
21395         after removing trivially dead basic blocks.
21396
21397 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
21398
21399         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
21400         * config/frv/frv.h (LINK_SPEC): Likewise.
21401         * config/i386/netware.h (LINK_SPEC): Likewise.
21402         * config/m68k/linux.h (ASM_SPEC): Likewise.
21403         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
21404         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
21405         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21406         * config/sparc/linux.h (ASM_SPEC): Likewise.
21407         * config/sparc/linux64.h (ASM_SPEC): Likewise.
21408         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21409
21410 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
21411
21412         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
21413         * config/frv/frv.h (ASM_SPEC): Likewise.
21414         * config/m68k/linux.h (ASM_SPEC): Likewise.
21415         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
21416         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
21417         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21418         * config/sparc/linux.h (ASM_SPEC): Likewise.
21419         * config/sparc/linux64.h (ASM_SPEC): Likewise.
21420         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21421
21422 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
21423
21424         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
21425         * config/frv/frv.h (LINK_SPEC): Likewise.
21426         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
21427
21428 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
21429
21430         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
21431         * config/frv/frv.h (ASM_SPEC): Likewise.
21432         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
21433         * config/m68k/linux.h (ASM_SPEC): Likewise.
21434         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
21435         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
21436         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21437         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
21438         * config/sparc/linux.h (ASM_SPEC): Likewise.
21439         * config/sparc/linux64.h (ASM_SPEC): Likewise.
21440         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21441         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
21442
21443 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
21444
21445         PR target/46997
21446         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
21447         (*mux2): Ditto.
21448         (vec_extract_evenodd_help): Ditto.
21449         (vec_extract_evenv4hi): Ditto.
21450         (vec_extract_oddv4hi): Ditto.
21451         (vec_interleave_lowv2si): Ditto.
21452         (vec_interleave_highv2si): Ditto.
21453         (vec_extract_evenv2si): Ditto.
21454         (vec_extract_oddv2si: Ditto.
21455         (vec_pack_trunc_v2si): Ditto.
21456
21457 2011-01-22  Jan Hubicka  <jh@suse.cz>
21458
21459         PR target/47237
21460         * cgraph.h (cgraph_local_info): New field can_change_signature.
21461         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
21462         signature can change.
21463         (ipcp_estimate_growth): Call sequence simplify only if calle signature
21464         can change.
21465         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
21466         (cgraph_function_versioning): We can not change signature of functions
21467         that don't allow that.
21468         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
21469         (lto_input_node): Likewise.
21470         * ipa-inline.c (compute_inline_parameters): Compute
21471         local.can_change_signature.
21472         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
21473         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
21474         functions that can not change signature.
21475         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
21476         init_cumulative_args): Do not use local calling conventions
21477         for functions that can not change signature.
21478
21479 2011-01-22  Jan Hubicka  <jh@suse.cz>
21480
21481         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
21482
21483 2011-01-26  Richard Guenther  <rguenther@suse.de>
21484
21485         PR tree-optimization/47190
21486         * cgraphunit.c (process_common_attributes): New function.
21487         (process_function_and_variable_attributes): Use it.
21488
21489 2011-01-26  Richard Guenther  <rguenther@suse.de>
21490
21491         PR lto/47423
21492         * cgraphbuild.c (record_eh_tables): Record reference to personality
21493         function.
21494
21495 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
21496
21497         PR debug/45454
21498         * sel-sched.c (moveup_expr): Don't let debug insns prevent
21499         non-debug insns from moving up.
21500
21501 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
21502
21503         PR target/40125
21504         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
21505         t-dlldir{,-x} fragment for build and add it to tmake_file.
21506         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
21507         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
21508         * config/i386/t-dlldir: New file.
21509         (SHLIB_DLLDIR): Define.
21510         * config/i386/t-dlldir-x: New file.
21511         (SHLIB_DLLDIR): Define.
21512         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
21513         (SHLIB_INSTALL): Use it.
21514
21515 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
21516
21517         PR target/47246
21518         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
21519         lower bound of the allowed Thumb-2 coprocessor load/store
21520         index range to -256. Add explaining comment.
21521
21522 2011-01-25  Ian Lance Taylor  <iant@google.com>
21523
21524         * godump.c (go_define): Improve lexing of macro expansion to only
21525         accept expressions which match Go spec.
21526
21527 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
21528
21529         PR c++/43601
21530         * tree.c (handle_dll_attribute): Handle it.
21531         * doc/extend.texi (@item dllexport): Mention it.
21532         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
21533
21534 2011-01-25  Ian Lance Taylor  <iant@google.com>
21535
21536         PR tree-optimization/26854
21537         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
21538         (decl_jump_unsafe): Move higher in file, with no other change.
21539         (bind): Set has_jump_unsafe_decl if appropriate.
21540         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
21541         (check_earlier_gotos): Likewise.
21542         (c_check_switch_jump_warnings): Likewise.
21543
21544 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
21545
21546         * doc/invoke.texi (Warning Options): Add missing hyphen.
21547         (-fprofile-dir): Minor grammatical fixes.
21548         (-fbranch-probabilities): Likewise.
21549
21550 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
21551
21552         PR debug/45136
21553         PR debug/45130
21554         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21555         debug insns.
21556         (no_real_insns_p, schedule_block, set_priorities): Drop special
21557         treatment of boundary debug insns.
21558         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
21559         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
21560         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21561         (BOUNDARY_DEBUG_INSN_P): Likewise.
21562         (SCHEDULE_DEBUG_INSN_P): Likewise.
21563         * sched-rgn.c (init_ready_list): Drop special treatment of
21564         boundary debug insns.
21565         * final.c (rest_of_clean-state): Clear notes' BB.
21566
21567 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21568
21569         * Makefile.in (LAMBDA_H): Removed.
21570         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
21571         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
21572         lambda-trans.o, and tree-loop-linear.o.
21573         (lto-symtab.o): Remove dependence on LAMBDA_H.
21574         (tree-loop-linear.o): Remove rule.
21575         (lambda-mat.o): Same.
21576         (lambda-trans.o): Same.
21577         (lambda-code.o): Same.
21578         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
21579         (tree-vect-slp.o): Same.
21580         * hwint.h (gcd): Moved here.
21581         (least_common_multiple): Same.
21582         * lambda-code.c: Removed.
21583         * lambda-mat.c: Removed.
21584         * lambda-trans.c: Removed.
21585         * lambda.h: Removed.
21586         * tree-loop-linear.c: Removed.
21587         * lto-symtab.c: Do not include lambda.h.
21588         * omega.c (gcd): Removed.
21589         * passes.c (init_optimization_passes): Remove pass_linear_transform.
21590         * tree-data-ref.c (print_lambda_vector): Moved here.
21591         (lambda_vector_copy): Same.
21592         (lambda_matrix_copy): Same.
21593         (lambda_matrix_id): Same.
21594         (lambda_vector_first_nz): Same.
21595         (lambda_matrix_row_add): Same.
21596         (lambda_matrix_row_exchange): Same.
21597         (lambda_vector_mult_const): Same.
21598         (lambda_vector_negate): Same.
21599         (lambda_matrix_row_negate): Same.
21600         (lambda_vector_equal): Same.
21601         (lambda_matrix_right_hermite): Same.
21602         * tree-data-ref.h: Do not include lambda.h.
21603         (lambda_vector): Moved here.
21604         (lambda_matrix): Same.
21605         (dependence_level): Same.
21606         (lambda_transform_legal_p): Removed declaration.
21607         (lambda_collect_parameters): Same.
21608         (lambda_compute_access_matrices): Same.
21609         (lambda_vector_gcd): Same.
21610         (lambda_vector_new): Same.
21611         (lambda_vector_clear): Same.
21612         (lambda_vector_lexico_pos): Same.
21613         (lambda_vector_zerop): Same.
21614         (lambda_matrix_new): Same.
21615         * tree-flow.h (least_common_multiple): Removed declaration.
21616         * tree-parloops.c (lambda_trans_matrix): Moved here.
21617         (LTM_MATRIX): Same.
21618         (LTM_ROWSIZE): Same.
21619         (LTM_COLSIZE): Same.
21620         (LTM_DENOMINATOR): Same.
21621         (lambda_trans_matrix_new): Same.
21622         (lambda_matrix_vector_mult): Same.
21623         (lambda_transform_legal_p): Same.
21624         * tree-pass.h (pass_linear_transform): Removed declaration.
21625         * tree-ssa-loop.c (tree_linear_transform): Removed.
21626         (gate_tree_linear_transform): Removed.
21627         (pass_linear_transform): Removed.
21628         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
21629         flag_loop_interchange.
21630
21631 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
21632
21633         PR tree-optimization/47265
21634         PR tree-optimization/47443
21635         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
21636         if name still has some uses.
21637
21638 2011-01-25  Martin Jambor  <mjambor@suse.cz>
21639
21640         PR tree-optimization/47382
21641         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
21642         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
21643
21644 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
21645
21646         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
21647         sjlj_except_unwind_info.
21648
21649 2011-01-25  Richard Guenther  <rguenther@suse.de>
21650
21651         PR tree-optimization/47426
21652         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
21653         visible functions results escape.
21654
21655 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
21656
21657         PR target/45701
21658         * config/arm/arm.c (any_sibcall_uses_r3): New function.
21659         (arm_get_frame_offsets): Use it.
21660
21661 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21662             Jakub Jelinek  <jakub@redhat.com>
21663
21664         PR tree-optimization/47271
21665         * tree-if-conv.c (bb_postdominates_preds): New.
21666         (if_convertible_bb_p): Call bb_postdominates_preds.
21667         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
21668         (predicate_scalar_phi): Call bb_postdominates_preds.
21669
21670 2011-01-25  Nick Clifton  <nickc@redhat.com>
21671
21672         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
21673         * config/rx/rx.c (rx_function_value): Likewise.
21674         (rx_promote_function_mode): Likewise.
21675         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
21676         in order to make it legitimate.
21677         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
21678         make sure that the first operand is the same as the result register.
21679         (addsi3_unspec): Delete.
21680         (subdi3): Do not accept immediate operands.
21681         (subdi3_internal): Likewise.
21682
21683 2011-01-25  Jeff Law  <law@redhat.com>
21684
21685         PR rtl-optimization/37273
21686         * ira-costs.c (scan_one_insn): Detect constants living in memory and
21687         handle them like argument loads from stack slots.  Do not double
21688         count memory for memory constants and argument loads from stack slots.
21689
21690 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
21691
21692         PR tree-optimization/47427
21693         PR tree-optimization/47428
21694         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21695         coalesce if the new root var would be TREE_READONLY.
21696
21697 2011-01-25  Richard Guenther  <rguenther@suse.de>
21698
21699         PR middle-end/47414
21700         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
21701         correct type for TBAA.
21702
21703 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21704
21705         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
21706         (close_phi_written_to_memory): Call for_each_index with
21707         dr_indices_valid_in_loop.
21708
21709 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21710
21711         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
21712         when it is initialized.
21713
21714 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21715
21716         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
21717         call to graphite_find_data_references_in_stmt.
21718         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
21719         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
21720         call to graphite_find_data_references_in_stmt.
21721         (analyze_drs_in_stmts): Same.
21722         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
21723         in which the scalar analysis of indices is performed.
21724         (create_data_ref): Same.  Update call to dr_analyze_indices.
21725         (find_data_references_in_stmt): Update call to create_data_ref.
21726         (graphite_find_data_references_in_stmt): Same.
21727         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
21728         declaration.
21729         (create_data_ref): Same.
21730         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
21731         call to create_data_ref.
21732
21733 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21734
21735         * graphite-sese-to-poly.c (build_poly_scop): Move
21736         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
21737
21738 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21739
21740         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
21741         VAR_DECL, PARM_DECL, and RESULT_DECL.
21742
21743 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21744
21745         * graphite-dependences.c (reduction_dr_1): Allow several reductions
21746         in a reduction PBB.
21747         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
21748         that have already been marked as PBB_IS_REDUCTION.
21749
21750 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21751
21752         * graphite-scop-detection.c (same_close_phi_node): New.
21753         (remove_duplicate_close_phi): New.
21754         (make_close_phi_nodes_unique): New.
21755         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
21756
21757 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21758
21759         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
21760         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
21761         of both data references to be the same.
21762
21763 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21764
21765         * graphite-dependences.c (build_lexicographical_constraint): Remove
21766         the gdim parameter.
21767         (build_lexicographical_constraint): Adjust call to
21768         ppl_powerset_is_empty.
21769         (dependence_polyhedron): Same.
21770         (graphite_legal_transform_dr): Same.
21771         (graphite_carried_dependence_level_k): Same.
21772         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
21773         parameter.
21774         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
21775
21776 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21777
21778         * graphite-sese-to-poly.c
21779         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
21780         (close_phi_written_to_memory): New.
21781         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
21782         and unshare_expr.
21783
21784 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21785
21786         * doc/install.texi: Update the expected version number of PPL to 0.11.
21787         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
21788         #if PPL_VERSION_MINOR < 11.
21789
21790 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21791
21792         * graphite-dependences.c: Include graphite-cloog-util.h.
21793         (new_poly_ddr): Inlined into dependence_polyhedron.
21794         (free_poly_ddr): Moved close by new_poly_ddr.
21795         (dependence_polyhedron_1): Renamed dependence_polyhedron.
21796         Early return NULL when ppl_powerset_is_empty returns true.
21797         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
21798         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
21799         (graphite_legal_transform_dr): Call new_poly_ddr.
21800         (graphite_carried_dependence_level_k): Same.
21801         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
21802         (dot_transformed_deps_stmt_1): Removed.
21803         (dot_deps_stmt_1): Call dot_deps_stmt_2.
21804         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
21805         (dot_deps_1): Call dot_deps_2.
21806         * Makefile.in (graphite-dependences.o): Add missing dependence on
21807         graphite-cloog-util.h.
21808
21809 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21810
21811         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
21812         (build_lexicographical_constraint): Same.
21813         (dependence_polyhedron_1): Same.
21814         (graphite_legal_transform_dr): Same.
21815         (graphite_carried_dependence_level_k): Same.
21816         * graphite-ppl.c (ppl_powerset_is_empty): New.
21817         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
21818         * tree-data-ref.c (dump_data_reference): Print the basic block index.
21819
21820 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21821
21822         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
21823         the "a followed by b" relation and document it.
21824
21825 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21826
21827         * graphite-dependences.c (build_lexicographical_constraint): Stop the
21828         iteration when the bag of constraints is empty.
21829
21830 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21831
21832         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
21833
21834 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21835
21836         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
21837         nest and two loop depths as parameters.
21838         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
21839         lst_perfect_nestify.
21840
21841 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21842
21843         * graphite-dependences.c (print_pddr): Call
21844         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
21845
21846 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21847
21848         * graphite-ppl.c (debug_gmp_value): New.
21849         * graphite-ppl.h (debug_gmp_value): Declared.
21850
21851 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
21852
21853         * doc/install.texi: Document availability of cloog-0.16.
21854
21855 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
21856
21857         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
21858         invalid postdominance info.
21859
21860 2011-01-24  Jan Hubicka  <jh@suse.cz>
21861
21862         PR c/21659
21863         * doc/extend.texi (weak pragma): Drop claim that it must
21864         appear before definition.
21865         * varasm.c (merge_weak, declare_weak): Only sanity check
21866         that DECL is not output at a time it is declared weak.
21867
21868 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
21869
21870         * machmode.def: Fixed comments.
21871
21872 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
21873
21874         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
21875
21876 2011-01-24  Paul Koning  <ni1d@arrl.net>
21877
21878         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
21879         WORDS_BIG_ENDIAN.
21880
21881 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21882
21883         PR target/46519
21884         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
21885         (block_info): Add scanned and prev.
21886         (move_or_delete_vzeroupper_2): Return if the basic block
21887         has been scanned and the upper 128bit state is unchanged
21888         from the last scan.
21889         (move_or_delete_vzeroupper_1): Return true if the exit
21890         state is changed.
21891         (move_or_delete_vzeroupper): Visit basic blocks using the
21892         work-list based algorithm based on vt_find_locations in
21893         var-tracking.c.
21894
21895         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
21896
21897 2011-01-24  Nick Clifton  <nickc@redhat.com>
21898
21899         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
21900         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
21901         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
21902         then define __v850e1__.
21903         * doc/invoke.texi: Document -mv850es.
21904
21905 2011-01-24  Richard Henderson  <rth@redhat.com>
21906
21907         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
21908         compound unordered comparisons.
21909         * config/rx/rx.c (rx_split_fp_compare): Remove.
21910         * config/rx/rx-protos.h: Update.
21911         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
21912         (cbranchsf4): Don't call rx_split_fp_compare.
21913         (*cbranchsf4): Use rx_split_cbranch.
21914         (*cmpsf): Don't accept "i" constraint.
21915         (*conditional_branch): Only valid after reload.
21916         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
21917
21918 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
21919
21920         PR target/47385
21921         * config/rs6000/altivec.md (vector constant splitters): Add
21922         support for creating vector single precision constants if -mvsx is
21923         used and we would create the constant using Altivec primitives.
21924
21925 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
21926             Richard Sandiford  <rdsandiford@googlemail.com>
21927
21928         PR rtl-optimization/47166
21929         * reload1.c (emit_reload_insns): Disable the spill_reg_store
21930         mechanism for PRE_MODIFY and POST_MODIFY.
21931         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
21932         reloadreg.
21933
21934 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
21935
21936         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
21937
21938 2011-01-22  Jan Hubicka  <jh@suse.cz>
21939
21940         PR lto/47333
21941         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
21942
21943 2011-01-22  Jan Hubicka  <jh@suse.cz>
21944
21945         PR tree-optimization/43884
21946         PR lto/44334
21947         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
21948         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
21949
21950 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
21951
21952         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21953         * config/s390/s390.c (s390_register_move_cost,
21954         s390_memory_move_cost): New.
21955         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
21956
21957 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21958
21959         PR middle-end/47401
21960         * except.c (sjlj_assign_call_site_values): Move setting the
21961         crtl->uses_eh_lsda flag to ...
21962         (sjlj_mark_call_sites): ... here.
21963         (sjlj_emit_function_enter): Support NULL dispatch label.
21964         (sjlj_build_landing_pads): In a function with no landing pads
21965         that still has must-not-throw regions, generate code to register
21966         a personality function with empty LSDA.
21967
21968 2011-01-21  Richard Henderson  <rth@redhat.com>
21969
21970         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
21971
21972         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
21973
21974         * compare-elim.c: New file.
21975         * Makefile.in (OBJS-common): Add it.
21976         (compare-elim.o): New.
21977         * common.opt (fcompare-elim): New.
21978         * opts.c (default_options_table): Add OPT_fcompare_elim.
21979         * tree-pass.h (pass_compare_elim_after_reload): New.
21980         * passes.c (init_optimization_passes): Add it.
21981         * recog.h: Protect against re-inclusion.
21982         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
21983         * doc/invoke.texi (-fcompare-elim): Document it.
21984         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
21985         * doc/tm.texi: Rebuild.
21986
21987 2011-01-22  Nick Clifton  <nickc@redhat.com>
21988
21989         * config/rx/rx.md (cstoresf4): Pass comparison operator to
21990         rx_split_fp_compare.
21991
21992 2011-01-22  Nick Clifton  <nickc@redhat.com>
21993
21994         * config/rx/rx.md (UNSPEC_CONST): New.
21995         (deallocate_and_return): Wrap the amount popped off the stack in
21996         an UNSPEC_CONST in order to stop it being rejected by
21997         -mmax-constant-size.
21998         (pop_and_return): Add a "(return)" rtx.
21999         (call): Drop the immediate operand.
22000         (call_internal): Likewise.
22001         (call_value): Likewise.
22002         (call_value_internal): Likewise.
22003         (sibcall_internal): Likewise.
22004         (sibcall_value_internal): Likewise.
22005         (sibcall): Likewise.  Generate an explicit call using
22006         sibcall_internal.
22007         (sibcall_value): Likewise.
22008         (mov<>): FAIL if a constant operand is not legitimate.
22009         (addsi3_unpsec): New pattern.
22010
22011         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
22012         (ok_for_max_constant): New function.
22013         (gen_safe_add): New function.
22014         (rx_expand_prologue): Use gen_safe_add.
22015         (rx_expand_epilogue): Likewise.
22016         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
22017         UNSPEC CONSTs.
22018
22019 2011-01-21  Jeff Law  <law@redhat.com>
22020
22021         PR tree-optimization/47053
22022         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
22023         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
22024         statements are deleted.
22025         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
22026         is nonempty, then purge dead edges and cleanup the CFG.
22027
22028 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
22029
22030         PR debug/47402
22031         Temporarily revert:
22032         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
22033         PR debug/47106
22034         * tree-dfa.c (create_var_ann): Mark variable as used.
22035
22036 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
22037
22038         PR middle-end/45566
22039         * except.c (convert_to_eh_region_ranges): Emit queued no-region
22040         notes from other section in hot/cold partitioning even if
22041         last_action is -3.  Increment call_site_base.
22042
22043         PR rtl-optimization/47366
22044         * fwprop.c (forward_propagate_into): Return bool.  If
22045         any changes are made, -fnon-call-exceptions is used and
22046         REG_EH_REGION note is present, call purge_dead_edges
22047         and return true if it purged anything.
22048         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
22049         any EH edges were purged.
22050
22051 2011-01-21  Jeff Law  <law@redhat.com>
22052
22053         PR rtl-optimization/41619
22054         * caller-save.c (setup_save_areas): Break out code to determine
22055         which hard regs are live across calls by examining the reload chains
22056         so that it is always used.
22057         Eliminate code which checked REG_N_CALLS_CROSSED.
22058
22059 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
22060
22061         PR tree-optimization/47355
22062         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
22063         NOP has non-debug uses beyond PHIs in new_bb.
22064
22065 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
22066
22067         PR debug/47106
22068         * cfgexpand.c (account_used_vars_for_block): Only account vars
22069         that are annotated as used.
22070         (estimated_stack_frame_size): Don't set TREE_USED.
22071         * tree-dfa.c (create_var_ann): Mark variable as used.
22072
22073 2011-01-21  Richard Guenther  <rguenther@suse.de>
22074
22075         PR middle-end/47395
22076         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
22077
22078 2011-01-21  Richard Guenther  <rguenther@suse.de>
22079
22080         PR tree-optimization/47365
22081         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
22082         (vn_reference_lookup_pieces): Adjust.
22083         (vn_reference_lookup): Likewise.
22084         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
22085         (vn_reference_lookup_3): Only look through kills if in
22086         VN_WALKREWRITE mode.
22087         (vn_reference_lookup_pieces): Adjust.
22088         (vn_reference_lookup): Likewise.
22089         (visit_reference_op_load): Likewise.
22090         (visit_reference_op_store): Likewise.
22091         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
22092         (compute_avail): Likewise.
22093         (eliminate): Likewise.
22094
22095 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
22096
22097         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
22098         DECL_IGNORED_P non-reg vars if they are used.
22099
22100         PR tree-optimization/47391
22101         * varpool.c (const_value_known_p): Return false if
22102         decl is volatile.
22103
22104 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
22105
22106         PR bootstrap/47215
22107         * config/i386/i386.c (ix86_local_alignment): Handle
22108         case for va_list_type_node is nil.
22109         (ix86_canonical_va_list_type): Likewise.
22110
22111 2011-01-21  Alan Modra  <amodra@gmail.com>
22112
22113         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
22114         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
22115
22116 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22117
22118         * config/arm/arm.md (define_attr type): Rename f_load
22119         and f_store to f_fpa_load and f_fpa_store. Update.
22120         (write_conflict): Deal with rename fallout.
22121         (*push_fp_multi): Likewise.
22122         * config/arm/fpa.md (f_load): Use f_fpa_load.
22123         (f_store): Use f_fpa_store.
22124         (*movsf_fpa): Likewise.
22125         (*movdf_fpa): Likewise.
22126         (*movxf_fpa): Likewise.
22127         (*thumb2_movsf_fpa): Likewise.
22128         (*thumb2_movdf_fpa): Likewise.
22129         (*thumb2_movxf_fpa): Likewise.
22130         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
22131         f_loadd and f_stored.
22132         (*thumb2_movdi_vfp): Likewise.
22133         (*thumb2_movsf_vfp): Fix attribute to f_loads.
22134         (*thumb2_movsi_vfp): Likewise.
22135         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
22136         Use f_loads instead of f_load.
22137         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
22138
22139 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
22140
22141         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22142         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
22143         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22144         (xtensa_mode_dependent_address_p): New function.
22145         (constantpool_address_p): Make static. Change return type to bool.
22146         Change argument type to const_rtx. Use CONST_INT_P predicate.
22147
22148 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
22149
22150         PR debug/46583
22151         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
22152
22153 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
22154
22155         PR debug/47283
22156         * cfgexpand.c (expand_debug_expr): Instead of generating
22157         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
22158         etc. handling.
22159
22160 2011-01-20  Richard Guenther  <rguenther@suse.de>
22161
22162         PR middle-end/47370
22163         * tree-inline.c (remap_gimple_op_r): Recurse manually for
22164         the pointer operand of MEM_REFs.
22165
22166 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
22167
22168         PR tree-optimization/46130
22169         * ipa-split.c (consider_split): If return_bb contains non-virtual
22170         PHIs other than for retval or if split_function would not adjust it,
22171         refuse to split.
22172
22173 2011-01-20  Richard Guenther  <rguenther@suse.de>
22174
22175         PR tree-optimization/47167
22176         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
22177         Revert previous change, only avoid enumeral type changes.
22178
22179 2011-01-19  Mike Stump  <mikestump@comcast.net>
22180
22181         * doc/tm.texi.in (BRANCH_COST): Englishify.
22182         * doc/tm.texi (BRANCH_COST): Likewise.
22183
22184 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
22185
22186         PR c++/47291
22187         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
22188         (gen_scheduled_generic_parms_dies): New functions.
22189         (gen_struct_or_union_type_die): Schedule template parameters DIEs
22190         generation for the end of CU compilation.
22191         (dwarf2out_finish): Generate template parameters DIEs here.
22192
22193 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
22194
22195         PR debug/46240
22196         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
22197         debug bind stmt on merge edges.
22198
22199 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
22200
22201         PR debug/47079
22202         PR debug/46724
22203         * function.c (instantiate_expr): Instantiate incoming rtl of
22204         implicit arguments, and recurse on VALUE_EXPRs.
22205         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
22206         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
22207
22208 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
22209
22210         * c-parser.c (c_parser_for_statement): Initialize
22211         collection_expression.
22212
22213 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22214
22215         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
22216
22217 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22218
22219         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
22220         (LINK_SHLIB_SPEC): Don't use %(link_path).
22221         (SUBTARGET_EXTRA_SPECS): Remove link_path.
22222
22223 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22224
22225         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
22226         (NO_SHARED_LIB_SUPPORT): Remove.
22227         (LINK_SHLIB_SPEC): Remove one conditional definition.
22228
22229 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22230
22231         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
22232         %{call_shared}.
22233         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
22234         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
22235         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
22236         %{call_shared} and conditionals on these options not being passed.
22237         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
22238         %{call_shared}.
22239
22240 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
22241
22242         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
22243         simplify.
22244
22245         * ipa-split.c: Spelling fixes.
22246
22247 2011-01-19  Richard Henderson  <rth@redhat.com>
22248
22249         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
22250         (*mulsi3): Likewise.
22251
22252         * longlong.h [__mn10300__] (count_leading_zeros): New.
22253         [__mn10300__] (umul_ppmm, smul_ppmm): New.
22254         [__mn10300__] (add_ssaaaa, subddmmss): New.
22255         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
22256         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
22257
22258 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22259
22260         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
22261
22262 2011-01-19  Richard Henderson  <rth@redhat.com>
22263
22264         * config/mn10300/mn10300.md (addsi3_flags): New.
22265         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
22266         (subsi3_flags, subc_internal, subdi3): New.
22267         (subdi3_internal, *subdi3_degenerate): New.
22268         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
22269
22270         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
22271         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
22272         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
22273         * config/mn10300/mn10300-protos.h: Update.
22274         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
22275         (return_ret): Likewise.  Rename from return_internal_regs.
22276         (return_internal): Remove.
22277
22278         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
22279         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
22280         (mn10300_legitimate_constant_p): Likewise.
22281         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
22282         (mn10300_frame_size): New.
22283         (mn10300_expand_prologue): Use it.
22284         (mn10300_expand_epilogue): Likewise.
22285         (mn10300_initial_offset): Likewise.
22286         * config/mn10300/mn10300-protos.h: Update.
22287         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
22288         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
22289         (prologue, epilogue, return_internal): Tidy output code.
22290         (mn10300_store_multiple_operation, return): Likewise.
22291         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
22292         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
22293         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
22294         (load_pic, am33_load_pic): New.
22295         (mn10300_load_pic0, mn10300_load_pic1): New.
22296
22297         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
22298         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
22299         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
22300         (cc_flags_for_mode, cc_flags_for_code): New.
22301         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
22302         overflow flag is not valid.  Validate that the flags we need
22303         for the comparison are valid.
22304         (mn10300_output_cmp): Remove.
22305         (mn10300_output_add): New.
22306         (mn10300_select_cc_mode): Use cc_flags_for_code.
22307         (mn10300_split_cbranch): New.
22308         (mn10300_match_ccmode): New.
22309         (mn10300_split_and_operand_count): New.
22310         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
22311         to the function.
22312         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
22313         (addsi3): ... here.  Use mn10300_output_add.
22314         (*addsi3_flags): New.
22315         (*am33_subsi3, *mn10300_subsi3): Merge...
22316         (subsi3): ... here.  Use attribute isa.
22317         (*subsi3_flags): New.
22318         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
22319         when possible.
22320         (*am33_andsi3, *mn10300_andsi3): Merge...
22321         (andsi3): ... here.
22322         (*andsi3_flags): New.
22323         (andsi3 splitters): New.
22324         (*am33_iorsi3, *mn10300_iorsi3): Merge...
22325         (iorsi3): ... here.
22326         (*iorsi3_flags): New.
22327         (*am33_xorsi3, *mn10300_xorsi3): Merge...
22328         (xorsi3): ... here.
22329         (*xorsi3_flags): New.
22330         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
22331         (one_cmplsi2): ... here.
22332         (*one_cmplsi2_flags): New.
22333         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
22334         instead of "dax" in constraints.  Use mn10300_split_cbranch.
22335         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
22336         use matching constraints to eliminate a self-comparison.
22337         (*integer_conditional_branch): Rename from integer_conditional_branch.
22338         Use int_mode_flags to match CC_REG.
22339         (*cbranchsi4_btst, *btstsi): New.
22340         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
22341         mn10300_split_cbranch.
22342         (*am33_cmpsf): Rename from am33_cmpsf.
22343         (*float_conditional_branch): Rename from float_conditional_branch.
22344         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
22345         (zero_extendqisi2): ... here.
22346         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
22347         (zero_extendhisi2): ... here.
22348         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
22349         (extendqisi2): ... here.
22350         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
22351         (extendhisi2): ... here.
22352         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
22353         (ashlsi3): ... here.
22354         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
22355         (lshrsi3): ... here.
22356         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
22357         (ashrsi3): ... here.
22358         (consecutive add peephole): Remove.
22359         * config/mn10300/predicates.md (label_ref_operand): New.
22360         (int_mode_flags): New.
22361         (CCZN_comparison_operator): New.
22362
22363         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
22364         (throughput_42_latency_43): New reservation.
22365         (mulsidi3, umulsidi3): New expanders.
22366         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
22367         the MDR register to allocation; separately allocate the low and
22368         high parts of the DImode result.
22369         (umulsidi3_internal): Similarly.
22370         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
22371         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
22372         (udivsi3, umodsi3): Remove.
22373         (udivmodsi4, divmodsi4): New expanders.
22374         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
22375         (*divmodsi4): Simiarly.
22376         (ext_internal): New.
22377
22378         * config/mn10300/constraints.md ("z"): New constraint.
22379         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
22380         (FIXED_REGISTERS): Don't fix MDR.
22381         (CALL_USED_REGSITERS): Reformat nicely.
22382         (REG_ALLOC_ORDER): Add MDR.
22383         (enum regclass): Add MDR_REGS.
22384         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
22385         (IRA_COVER_CLASSES): Add MDR_REGS.
22386         (REGNO_REG_CLASS): Handle MDR_REG.
22387         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
22388         (mn10300_register_move_cost): Likewise.
22389         * config/mn10300/mn10300.md (MDR_REG): New.
22390         (*movsi_internal): Handle moves to/from MDR_REGS.
22391
22392         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
22393         POST_MODIFY.
22394         (mn10300_secondary_reload): Tidy combination reload classes.
22395         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
22396         addresses for AM33.  Allow symbolic offsets for reg+imm.
22397         (mn10300_regno_in_class_p): New.
22398         (mn10300_legitimize_reload_address): New.
22399         * config/mn10300/mn10300.h (enum reg_class): Remove
22400         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
22401         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
22402         SP_OR_GENERAL_REGS.
22403         (REG_CLASS_NAMES): Update to match.
22404         (REG_CLASS_CONTENTS): Likewise.
22405         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
22406         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
22407         (REGNO_IN_RANGE_P): Remove.
22408         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
22409         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
22410         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
22411         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
22412         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
22413         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
22414         (REGNO_GENERAL_P): New.
22415         (HAVE_POST_MODIFY_DISP): New.
22416         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
22417         (LEGITIMIZE_RELOAD_ADDRESS): New.
22418         * config/mn10300/mn10300-protos.h: Update.
22419
22420         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
22421         DATA_REGS for AM33 stack-pointer destination.
22422         (mn10300_preferred_output_reload_class): Likewise.
22423         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
22424         into a form appropriate for ...
22425         (TARGET_SECONDARY_RELOAD): New.
22426         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
22427         * config/mn10300/mn10300-protos.h: Update.
22428         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
22429         reload_insi; use the "A" constraint for the scratch; handle AM33
22430         moves of sp to non-address registers.
22431
22432         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
22433         (*movqi_internal): ... here.
22434         (*am33_movhi, *mn10300_movhi): Merge into...
22435         (*movhi_internal): ... here.
22436         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
22437         as the source/destination of moves from/to SP.
22438         (movsf): Only allow for AM33-2.
22439         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
22440         any integer constant constraint.  Only allow for AM33-2.  Tidy
22441         all of the alternative outputs.
22442         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
22443         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
22444         for MN103.
22445         (udivsi3, umodsi3): New patterns for MN103 only.
22446
22447 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
22448
22449         * doc/tm.texi.in: Spell out that a lack of register class unions
22450         can lead to ICEs.
22451         * doc/tm.texi: Regenerate.
22452
22453 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
22454
22455         PR rtl-optimization/47337
22456         * dce.c (check_argument_store): New function.
22457         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
22458
22459         PR tree-optimization/47290
22460         * tree-eh.c (infinite_empty_loop_p): New function.
22461         (cleanup_empty_eh): Use it.
22462
22463 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
22464
22465         PR target/46997
22466         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
22467         (a64_expand_widen_sum): Ditto.
22468         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
22469         (vec_extract_evenodd_help): Ditto.
22470         (vec_extract_evenv4hi): Ditto.
22471         (vec_extract_oddv4hi): Ditto.
22472         (vec_extract_evenv2si): Ditto.
22473         (vec_extract_oddv2si): Ditto.
22474         (vec_extract_evenv2sf): Ditto.
22475         (vec_extract_oddv2sf): Ditto.
22476         (vec_pack_trunc_v4hi: Ditto.
22477         (vec_pack_trunc_v2si): Ditto.
22478         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
22479         (vec_interleave_highv8qi): Ditto.
22480         (mix1_r): Ditto.
22481         (vec_extract_oddv8qi): Ditto.
22482         (vec_interleave_lowv4hi): Ditto.
22483         (vec_interleave_highv4hi): Ditto.
22484         (vec_interleave_lowv2si): Ditto.
22485         (vec_interleave_highv2si): Ditto.
22486
22487 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22488
22489         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
22490         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
22491         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
22492         (pa_c_mode_for_suffix): New.
22493         (TARGET_EXPAND_BUILTIN): Define.
22494         (TARGET_C_MODE_FOR_SUFFIX): Define.
22495         (pa_builtins): Define.
22496         (pa_init_builtins): Register __float128 type and init new support
22497         builtins.
22498         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
22499         * config/pa/quadlib.c (_U_Qfcopysign): New.
22500
22501 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
22502
22503         PR middle-end/46894
22504         * explow.c (allocate_dynamic_stack_space): Do not assume more than
22505         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
22506         are defined.
22507
22508 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22509
22510         PR tree-optimization/47179
22511         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
22512         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
22513
22514 2011-01-18  Richard Guenther  <rguenther@suse.de>
22515
22516         PR rtl-optimization/47216
22517         * emit-rtl.c: Include tree-flow.h.
22518         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
22519         of replicating it with different semantics.
22520         * Makefile.in (emit-rtl.o): Adjust.
22521
22522 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22523
22524         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
22525         (cortex_a9_dp): Handle neon types correctly.
22526
22527 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
22528
22529         PR rtl-optimization/47299
22530         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
22531         subtarget.  Use normal multiplication if both operands are constants.
22532         * expmed.c (expand_widening_mult): Don't try to optimize constant
22533         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
22534         before using it.
22535
22536 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22537
22538         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
22539         spacing after 'e.g.', typos, comma, hyphenation.
22540
22541 2011-01-17  Richard Henderson  <rth@redhat.com>
22542
22543         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
22544         (rx_restricted_mem_operand): New.
22545         (rx_shift_operand): Use register_operand.
22546         (rx_source_operand, rx_compare_operand): Likewise.
22547         * config/rx/rx.md (addsi3_flags): New expander.
22548         (adddi3): Rewrite as expander.
22549         (adc_internal, *adc_flags, adddi3_internal): New patterns.
22550         (subsi3_flags): New expander.
22551         (subdi3): Rewrite as expander.
22552         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
22553
22554         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
22555         (rx_init_builtins): Remove sat builtin.
22556         (rx_expand_builtin): Likewise.
22557         * config/rx/rx.md (ssaddsi3): New.
22558         (*sat): Rename from sat.  Represent the CC_REG input.
22559
22560         * config/rx/predicates.md (rshift_operator): New.
22561         * config/rx/rx.c (rx_expand_insv): Remove.
22562         * config/rx/rx-protos.h: Update.
22563         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
22564         operand to the canonical position.
22565         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
22566         (*bitclr, *bitclr_in_memory): Similarly.
22567         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
22568         (insv): Retain the zero_extract in the expansion.
22569
22570         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
22571         (bswaphi2, bitinvert, revw): Likewise.
22572
22573         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
22574         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
22575         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
22576         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
22577         (bitset, bitset_in_memory): Likewise.
22578         (bitinvert, bitinvert_in_memory): Likewise.
22579         (bitclr, bitclr_in_memory): Likewise.
22580         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
22581         (rx_strend, rx_cmpstrn): Likewise.
22582         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
22583         (bitop peep2 patterns): Remove.
22584
22585         * config/rx/rx.c (rx_match_ccmode): New.
22586         * config/rx/rx-protos.h: Update.
22587         * config/rx/rx.md (abssi2): Clobber, don't set flags.
22588         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
22589         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
22590         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
22591         (fix_truncsfsi2, floatsisf2): Likewise.
22592         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
22593         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
22594         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
22595         (*subsi3_flags, *xorsi3_flags): New.
22596
22597         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
22598
22599         * config/rx/rx.c (rx_print_operand): Remove workaround for
22600         unsplit comparison operations.
22601
22602         * config/rx/rx.md (movsicc): Split after reload.
22603         (*movsicc): Merge *movsieq and *movsine via match_operator.
22604         (*stcc): New pattern.
22605
22606         * config/rx/rx.c (rx_float_compare_mode): Remove.
22607         * config/rx/rx.h (rx_float_compare_mode): Remove.
22608         * config/rx/rx.md (cstoresi4): Split after reload.
22609         (*sccc): New pattern.
22610
22611         * config/rx/predicates.md (label_ref_operand): New.
22612         (rx_z_comparison_operator): New.
22613         (rx_zs_comparison_operator): New.
22614         (rx_fp_comparison_operator): New.
22615         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
22616         Validate that the flags are set properly for the comparison.
22617         (rx_gen_cond_branch_template): Remove.
22618         (rx_cc_modes_compatible): Remove.
22619         (mode_from_flags): New.
22620         (flags_from_code): Rename from flags_needed_for_conditional.
22621         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
22622         (rx_select_cc_mode): Likewise.
22623         (rx_split_fp_compare): New.
22624         (rx_split_cbranch): New.
22625         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
22626         (*cbranchsi4): Use match_operator and rx_split_cbranch.
22627         (*cbranchsf4): Similarly.
22628         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
22629         match_operator and rx_split_cbranch.
22630         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
22631         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
22632         (*cmpsi): Rename from cmpsi.
22633         (*tstsi): Rename from tstsi.
22634         (*cmpsf): Rename from cmpsf; use CC_Fmode.
22635         (*conditional_branch): Rename from conditional_branch.
22636         (*reveresed_conditional_branch): Remove.
22637         (b<code>): Remove expander.
22638         * config/rx/rx-protos.h: Update.
22639
22640         * config/rx/rx.c (rx_compare_redundant): Remove.
22641         * config/rx/rx.md (cmpsi): Don't use it.
22642         * config/rx/rx-protos.h: Update.
22643
22644         * config/rx/rx-modes.def (CC_F): New mode.
22645         * config/rx/rx.c (rx_select_cc_mode): New.
22646         * config/rx/rx.h (SELECT_CC_MODE): Use it.
22647         * config/rx/rx-protos.h: Update.
22648
22649 2011-01-17  Richard Henderson  <rth@redhat.com>
22650
22651         * except.c (dump_eh_tree): Fix stray ; after for statement.
22652
22653 2011-01-17  Richard Guenther  <rguenther@suse.de>
22654
22655         PR tree-optimization/47313
22656         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
22657         handling before copying the body.  Properly deal with
22658         by-reference result in SSA form.
22659
22660 2011-01-17  Ian Lance Taylor  <iant@google.com>
22661
22662         PR target/47219
22663         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
22664         (struct_value_alias_set): Don't define.
22665         (sparc_option_override): Don't set sparc_sr_alias_set and
22666         struct_value_alias_set.
22667         (save_or_restore_regs): Use gen_frame_mem rather than calling
22668         set_mem_alias_set.
22669         (sparc_struct_value_rtx): Likewise.
22670
22671 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22672
22673         PR target/47318
22674         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
22675         (_mm_maskstore_pd): Likewise.
22676         (_mm_maskload_ps): Likewise.
22677         (_mm_maskstore_ps): Likewise.
22678         (_mm256_maskload_pd): Change mask to __m256i.
22679         (_mm256_maskstore_pd): Likewise.
22680         (_mm256_maskload_ps): Likewise.
22681         (_mm256_maskstore_ps): Likewise.
22682
22683         * config/i386/i386-builtin-types.def: Updated.
22684         (ix86_expand_special_args_builtin): Likewise.
22685
22686         * config/i386/i386.c (bdesc_special_args): Update
22687         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
22688         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
22689         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
22690         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
22691
22692         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
22693         Use <avxpermvecmode> on mask register.
22694         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
22695
22696 2011-01-17  Olivier Hainque  <hainque@adacore.com>
22697             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22698             Eric Botcazou  <ebotcazou@adacore.com>
22699
22700         PR target/46655
22701         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
22702         if <= USHRT_MAX in 32-bit mode.
22703
22704 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22705
22706         * doc/install.texi (Configuration, Specific): Wrap long
22707         lines in examples.  Allow line wrapping in long options
22708         and URLs where beneficial for PDF output.
22709
22710 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
22711
22712         * config/mips/mips.c (mips_classify_symbol): Don't return
22713         SYMBOL_PC_RELATIVE for nonlocal labels.
22714
22715 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
22716
22717         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
22718
22719 2011-01-15  Jan Hubicka  <jh@suse.cz>
22720
22721         PR tree-optimization/47276
22722         * ipa.c (function_and_variable_visibility): Do not try to mark alias
22723         declarations as needed.
22724
22725 2011-01-15  Martin Jambor  <mjambor@suse.cz>
22726
22727         * common.opt (fdevirtualize): New flag.
22728         * doc/invoke.texi (Option Summary): Document it.
22729         * opts.c (default_options_table): Add devirtualize flag.
22730         * ipa-prop.c (detect_type_change): Return immediately if
22731         devirtualize flag is not set.
22732         (detect_type_change_ssa): Likewise.
22733         (compute_known_type_jump_func): Likewise.
22734         (ipa_analyze_virtual_call_uses): Likewise.
22735
22736 2011-01-14  Martin Jambor  <mjambor@suse.cz>
22737
22738         PR tree-optimization/45934
22739         PR tree-optimization/46302
22740         * ipa-prop.c (type_change_info): New type.
22741         (stmt_may_be_vtbl_ptr_store): New function.
22742         (check_stmt_for_type_change): Likewise.
22743         (detect_type_change): Likewise.
22744         (detect_type_change_ssa): Likewise.
22745         (compute_complex_assign_jump_func): Check for dynamic type change.
22746         (compute_complex_ancestor_jump_func): Likewise.
22747         (compute_known_type_jump_func): Likewise.
22748         (compute_scalar_jump_functions): Likewise.
22749         (ipa_analyze_virtual_call_uses): Likewise.
22750         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
22751
22752 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22753
22754         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
22755         * config/i386/i386.opt (msse5): New Alias.
22756
22757 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22758
22759         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
22760         * config/sparc/linux64.h (CC1_SPEC): Likewise.
22761         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
22762         * config/sparc/sparc.h (CC1_SPEC): Likewise.
22763
22764 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22765
22766         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
22767         -mcpu options.
22768         * config/sparc/linux64.h (CC1_SPEC): Likewise.
22769         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
22770         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
22771         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
22772         Likewise.
22773         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
22774
22775 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22776
22777         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
22778
22779 2011-01-14  Mike Stump  <mikestump@comcast.net>
22780
22781         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
22782         * config/fr30/fr30.md: Likweise
22783         (movsi_push): Likewise.
22784         (movsi_pop): Likewise.
22785         (enter_func): Likewise.
22786         * config/moxie/moxie.md (movsi_push): Likewise.
22787         (movsi_pop): Likewise.
22788
22789 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22790
22791         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
22792         %{no_archive} %{exact_version}.
22793         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
22794         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
22795         %{no_archive} %{exact_version}.
22796         * config/mips/openbsd.h (LINK_SPEC): Likewise.
22797         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
22798         * config/mips/vxworks.h: Likewise.
22799
22800 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22801
22802         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
22803
22804 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22805
22806         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
22807         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
22808
22809 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22810
22811         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
22812         -nodefaultlib.
22813
22814 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22815
22816         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
22817         for mcpu not cpu.
22818         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
22819         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
22820         not cpu.
22821         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
22822         Don't handle -shlib.
22823
22824 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22825
22826         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
22827         (CC1_SPEC): Don't handle -profile.
22828
22829 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22830
22831         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
22832         * config/mips/mips.h (CC1_SPEC): Likewise.
22833
22834 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22835
22836         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
22837         * config/mips/mips.h (CC1_SPEC): Likewise.
22838
22839 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22840
22841         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
22842         * config/m32r/linux.h (LINK_SPEC): Likewise.
22843         * config/mips/linux.h (LINK_SPEC): Likewise.
22844         * config/mips/linux64.h (LINK_SPEC): Likewise.
22845         * config/sparc/linux.h (LINK_SPEC): Likewise.
22846         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
22847         LINK_SPEC): Likewise.
22848         * config/xtensa/linux.h (LINK_SPEC): Likewise.
22849
22850 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22851
22852         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
22853         %{version:-v}.
22854         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
22855
22856 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22857
22858         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
22859         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22860
22861 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22862
22863         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
22864
22865 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22866
22867         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
22868         supports -Bstatic/-Bdynamic.
22869         * configure: Regenerate.
22870
22871 2011-01-14  Jan Hubicka  <jh@suse.cz>
22872             Jack Howarth  <howarth@bromo.med.uc.edu>
22873
22874         PR target/46037
22875         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
22876         when checking debug_info_level. Test write_symbols instead of
22877         debug_hooks->var_location when setting flag_var_tracking_uninit.
22878
22879 2011-01-14  Richard Guenther  <rguenther@suse.de>
22880
22881         PR tree-optimization/47179
22882         * target.def (ref_may_alias_errno): New target hook.
22883         * targhooks.h (default_ref_may_alias_errno): Declare.
22884         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
22885         (default_ref_may_alias_errno): New function.
22886         * target.h (struct ao_ref_s): Declare.
22887         * tree-ssa-alias.c: Include target.h.
22888         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
22889         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
22890         (targhooks.o): Likewise.
22891         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
22892         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
22893
22894 2011-01-14  Richard Guenther  <rguenther@suse.de>
22895
22896         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
22897
22898 2011-01-14  Richard Guenther  <rguenther@suse.de>
22899
22900         PR tree-optimization/47280
22901         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
22902         return CFG changes.
22903         (tree_ssa_forward_propagate_single_use_vars): Deal with
22904         CFG changes from associate_plusminus.
22905
22906 2011-01-14  Richard Guenther  <rguenther@suse.de>
22907
22908         PR middle-end/47281
22909         Revert
22910         2011-01-11  Richard Guenther  <rguenther@suse.de>
22911
22912         PR tree-optimization/46076
22913         * tree-ssa.c (useless_type_conversion_p): Conversions from
22914         unprototyped to empty argument list function types are useless.
22915
22916 2011-01-14  Richard Guenther  <rguenther@suse.de>
22917
22918         PR tree-optimization/47286
22919         * tree-ssa-structalias.c (new_var_info): Register variables are global.
22920
22921 2011-01-14  Martin Jambor  <mjambor@suse.cz>
22922
22923         PR middle-end/46823
22924         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
22925
22926 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
22927
22928         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
22929         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22930         * config/xtensa/xtensa.c (xtensa_libcall_value,
22931         xtensa_function_value_regno_p): New functions.
22932         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22933
22934 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
22935
22936         PR c++/47213
22937         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
22938         PE specific hook.
22939         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
22940         New function prototype.
22941         * config/i386/winnt.c (i386_pe_assemble_visibility):
22942         Warn only if attribute was specified by user.
22943
22944 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
22945
22946         PR target/47251
22947         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
22948         floating point.
22949         (floatunsdidf2_fcfidu): Ditto.
22950
22951 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22952
22953         * config/s390/s390.c (print_operand_address): Replace 'error' with
22954         'output_operand_lossage'.
22955         (print_operand): Likewise.
22956
22957 2011-01-13  Jeff Law  <law@redhat.com>
22958
22959         PR rtl-optimization/39077
22960         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
22961         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
22962         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
22963         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
22964         * gcse.c (prune_insertions_deletions): New function.
22965         (compute_pre_data): Use it.
22966
22967 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
22968
22969         PR debug/PR46973
22970         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
22971         static function.
22972         (prune_unused_types_mark): Use it.
22973
22974 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
22975
22976         PR rtl-optimization/45352
22977         * sel-sched.c: Update copyright years.
22978         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
22979         in the advancing loop when we have issued issue_rate insns.
22980
22981 2011-01-12  Richard Henderson  <rth@redhat.com>
22982
22983         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
22984         (TARGET_MD_ASM_CLOBBERS): New.
22985
22986         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
22987         (TARGET_DELEGITIMIZE_ADDRESS): New.
22988
22989         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
22990         (clzsi2, *bsch): New patterns.
22991
22992         * config/mn10300/mn10300.md (INT): New mode iterator.
22993         (*mov<INT>_clr): New pattern, and peep2 to generate it.
22994
22995         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
22996         flag_split_wide_types.
22997
22998         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
22999         (mn10300_trampoline_init): Rewrite without a template, an immediate
23000         load and a direct branch.
23001         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
23002
23003 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
23004
23005         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23006         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
23007         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
23008         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23009
23010 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
23011
23012         PR debug/47209
23013         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
23014         of type.
23015
23016 2011-01-12  Jan Hubicka  <jh@suse.cz>
23017
23018         PR driver/47244
23019         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
23020         (PLUGIN_COND_CLOSE): New macro.
23021         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
23022
23023 2011-01-12  Richard Guenther  <rguenther@suse.de>
23024
23025         PR lto/47259
23026         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
23027         register variables in a MEM_REF.
23028
23029 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
23030
23031         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
23032         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
23033         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
23034         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
23035         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
23036         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
23037         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
23038         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
23039         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
23040         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
23041         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
23042         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
23043         * config/gnu-user.h: New.  Copied from linux.h.
23044         (LINUX_TARGET_STARTFILE_SPEC): Rename to
23045         GNU_USER_TARGET_STARTFILE_SPEC.
23046         (LINUX_TARGET_ENDFILE_SPEC): Rename to
23047         GNU_USER_TARGET_ENDFILE_SPEC.
23048         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
23049         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
23050         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
23051         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
23052         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
23053         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
23054         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
23055         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
23056         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
23057         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
23058         * config/arm/linux-eabi.h (CC1_SPEC): Use
23059         GNU_USER_TARGET_CC1_SPEC.
23060         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
23061         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
23062         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
23063         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
23064         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
23065         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
23066         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
23067         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
23068
23069 2011-01-12  Richard Guenther  <rguenther@suse.de>
23070
23071         PR other/46946
23072         * doc/invoke.texi (ffast-math): Document it is turned on
23073         with -Ofast.
23074
23075 2011-01-12  Jan Hubicka  <jh@suse.cz>
23076
23077         PR tree-optimization/47233
23078         * opts.c (common_handle_option): Disable ipa-reference with profile
23079         feedback.
23080
23081 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
23082
23083         * c-parser.c (c_parser_objc_at_property_declaration): Improved
23084         error message.
23085
23086 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
23087
23088         * c-parser.c (c_lex_one_token): Updated and reindented some
23089         comments.  No changes in code.
23090
23091 2011-01-11  Ian Lance Taylor  <iant@google.com>
23092
23093         * godump.c (go_output_var): Don't output the variable if there is
23094         already a type with the same name.
23095
23096 2011-01-11  Ian Lance Taylor  <iant@google.com>
23097
23098         * godump.c (go_format_type): Don't generate float80.
23099
23100 2011-01-11  Richard Henderson  <rth@redhat.com>
23101
23102         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
23103         declaration.  Rewrite for both speed and size.
23104         (mn10300_address_cost_1): Remove.
23105         (mn10300_register_move_cost): New.
23106         (mn10300_memory_move_cost): New.
23107         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
23108         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
23109         extensions, shifts, BSWAP, CLZ.
23110         (mn10300_wide_const_load_uses_clr): Remove.
23111         (TARGET_REGISTER_MOVE_COST): New.
23112         (TARGET_MEMORY_MOVE_COST): New.
23113         * config/mn10300/mn10300-protos.h: Update.
23114         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
23115
23116         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
23117         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
23118         * config/mn10300/mn10300-protos.h: Update.
23119         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
23120         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
23121         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
23122         (*test_int_bitfield, *test_byte_bitfield): Remove.
23123         (*bit_test, *subreg_bit_test): Remove.
23124         * config/mn10300/predicates.md (const_8bit_operand): Remove.
23125
23126         * config/mn10300/constraints.md ("c"): Rename from "A".
23127         ("A", "D"): New constraint letters.
23128         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
23129         (fmssf4, fnmasf4, fnmssf4): Likewise.
23130
23131         * config/mn10300/mn10300.md (isa): New attribute.
23132         (enabled): New attribute.
23133
23134         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
23135         (abssf2, negsf2): Define only for hardware fp.
23136         (sqrtsf2): Reformat.
23137         (addsf3, subsf3, mulsf3): Merge expander and insn.
23138
23139         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
23140         (DEBUGGER_AUTO_OFFSET): Remove.
23141         (DEBUGGER_ARG_OFFSET): Remove.
23142
23143         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
23144         Emit register stores with the same offsets as the hardware.
23145         (mn10300_store_multiple_operation): Don't check that the register
23146         save offsets are monotonic.
23147         * config/mn10300/mn10300-protos.h: Update.
23148
23149         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
23150
23151         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
23152         in terms of the value on the stack, not the MDR register.
23153
23154 2011-01-11  Jan Hubicka  <jh@suse.cz>
23155
23156         PR lto/45721
23157         PR lto/45375
23158         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
23159         (symbol_alias_set_destroy, symbol_alias_set_contains,
23160         propagate_aliases_backward): Declare.
23161         * lto-streamer-out.c (struct sets): New sturcture.
23162         (trivally_defined_alias): New function.
23163         (output_alias_pair_p): Rewrite.
23164         (output_unreferenced_globals): Fix output of alias pairs.
23165         (produce_symtab): Likewise.
23166         * ipa.c (function_and_variable_visibility): Set weak alias destination
23167         as needed in lto.
23168         * varasm.c (symbol_alias_set_t): Remove.
23169         (symbol_alias_set_destroy): Export.
23170         (propagate_aliases_forward, propagate_aliases_backward): New functions
23171         based on ...
23172         (compute_visible_aliases): ... this one; remove.
23173         (trivially_visible_alias): New
23174         (trivially_defined_alias): New.
23175         (remove_unreachable_alias_pairs): Rewrite.
23176         (finish_aliases_1): Reorganize code checking if alias is defined.
23177         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
23178         in LTO mode.
23179
23180 2011-01-11  Richard Guenther  <rguenther@suse.de>
23181
23182         PR tree-optimization/46076
23183         * tree-ssa.c (useless_type_conversion_p): Conversions from
23184         unprototyped to empty argument list function types are useless.
23185
23186 2011-01-11  Richard Guenther  <rguenther@suse.de>
23187
23188         PR middle-end/45235
23189         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
23190         volatile MEMs as MEM_READONLY_P.
23191
23192 2011-01-11  Richard Guenther  <rguenther@suse.de>
23193
23194         PR tree-optimization/47239
23195         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
23196
23197 2011-01-11  Jeff Law  <law@redhat.com>
23198
23199         PR tree-optimization/47086
23200         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
23201         IVs from statements that might throw.
23202
23203 2011-01-10  Jan Hubicka  <jh@suse.cz>
23204
23205         PR lto/45375
23206         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
23207
23208 2011-01-10  Jan Hubicka  <jh@suse.cz>
23209
23210         PR lto/45375
23211         * profile.c (read_profile_edge_counts): Ignore profile inconistency
23212         when correcting profile.
23213
23214 2011-01-10  Jan Hubicka  <jh@suse.cz>
23215
23216         PR lto/46083
23217         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
23218         DECL_FINI_PRIORITY.
23219         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
23220         Restore DECL_FINI_PRIORITY.
23221
23222 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23223
23224         * doc/gimple.texi: Fix quoting of multi-word return values in
23225         @deftypefn statements.  Ensure presence of return value.  Wrap
23226         overlong @deftypefn lines.
23227         (is_gimple_operand, is_gimple_min_invariant_address): Remove
23228         descriptions of removed functions.
23229         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
23230         of multi-word return value in @deftypefn statement.
23231
23232 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23233
23234         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
23235         (Conditional Expressions, Logical Operators)
23236         (Statement and operand traversals): Do not indent smallexample
23237         code.  Fix duplicate function argument in example.
23238
23239 2011-01-10  Jeff Law  <law@redhat.com>
23240
23241         PR tree-optimization/47141
23242         * ipa-split.c (split_function): Handle case where we are
23243         returning a value and the return block has a virtual operand phi.
23244
23245 2011-01-10  Jan Hubicka  <jh@suse.cz>
23246
23247         PR tree-optimization/47234
23248         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
23249         (pass_feedback_split_functions): Declare.
23250         * passes.c (init_optimization_passes): Add ipa-split as subpass of
23251         tree-profile.
23252         * ipa-split.c (gate_split_functions): Update comments; disable
23253         split-functions for profile_arc_flag and branch_probabilities.
23254         (gate_feedback_split_functions): New function.
23255         (execute_feedback_split_functions): New function.
23256         (pass_feedback_split_functions): New global var.
23257
23258 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23259
23260         PR lto/46760
23261         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
23262         calling gimple_call_set_cannot_inline.
23263
23264 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
23265
23266         * config/darwin-sections.def: Remove unused section.
23267
23268 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
23269
23270         PR c++/47218
23271         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
23272
23273 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
23274
23275         PR objc/47232
23276         * c-parser.c (c_parser_declaration_or_fndef): Improved
23277         error message.
23278
23279 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
23280
23281         * config/i386/winnt.c (i386_pe_start_function): Make sure
23282         to switch back to function's section.
23283
23284 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
23285
23286         PR gcc/46902
23287         PR testsuite/46912
23288         * plugin.c: Move include of dlfcn.h from here...
23289         * system.h: ... to here.
23290
23291 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23292
23293         * doc/cpp.texi (C++ Named Operators): Fix markup for header
23294         file name.
23295         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
23296         two extra empty pages in PDF output.
23297
23298 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
23299
23300         PR objc/47078
23301         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
23302         for error recovery purposes behave as if it was not specified so
23303         that the default type is usd.
23304
23305 2011-01-07  Jan Hubicka  <jh@suse.cz>
23306
23307         PR tree-optmization/46469
23308         * ipa.c (function_and_variable_visibility): Clear needed flags on
23309         nodes with external decls; handle weakrefs merging correctly.
23310
23311 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
23312
23313         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
23314         not false.
23315
23316 2011-01-07  Jan Hubicka  <jh@suse.cz>
23317
23318         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
23319         and no longer claim that gold is required for linker plugin.
23320         * configure: Regenerate.
23321         * gcc.c (PLUGIN_COND): New macro.
23322         (LINK_COMMAND_SPEC): Use it.
23323         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
23324         * config.in (HAVE_LTO_PLUGIN): New.
23325         * configure.ac (--with-lto-plugin): New parameter; autodetect
23326         HAVE_LTO_PLUGIN.
23327
23328 2011-01-07  Jan Hubicka  <jh@suse.cz>
23329
23330         PR tree-optimization/46367
23331         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
23332         when we can update original.
23333         (cgraph_mark_inline_edge): Sanity check.
23334         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
23335
23336 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23337
23338         * config/spu/spu.h (ASM_COMMENT_START): Define.
23339
23340 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
23341
23342         PR driver/42445
23343         * gcc.c (%>S): New.
23344         (SWITCH_KEEP_FOR_GCC): Likewise.
23345         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
23346         (do_spec_1): Handle "%>".
23347
23348         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
23349
23350 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
23351
23352         PR target/47201
23353         * config/i386/i386.c (ix86_delegitimize_address): If
23354         simplify_gen_subreg fails, return orig_x.
23355
23356         PR bootstrap/47187
23357         * value-prof.c (gimple_stringop_fixed_value): Handle
23358         lhs of the call properly.
23359
23360 2011-01-07  Jan Hubicka  <jh@suse.cz>
23361
23362         PR lto/45375
23363         * lto-opt.c (lto_reissue_options): Set flag_shlib.
23364
23365 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
23366
23367         * target.def (function_switched_text_sections): New hook.
23368         * doc/tm.texi: Regenerated.
23369         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
23370         * final.c (default_function_switched_text_sections): New.
23371         (final_scan_insn): Call function_switched_text_sections when a
23372         mid-function section change occurs.
23373         * output.h (default_function_switched_text_sections): Declare.
23374         * config/darwin-protos.h (darwin_function_switched_text_sections):
23375         Likewise.
23376         * config/darwin.c (darwin_function_switched_text_sections): New.
23377         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
23378
23379 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
23380
23381         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
23382         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
23383         the secondary code fragment when outputting for DWARF == 2.
23384
23385 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
23386
23387         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23388         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
23389         Remove.
23390         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
23391         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23392
23393 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
23394
23395         PR debug/46704
23396         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
23397         when it is not empty.
23398
23399 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
23400
23401         Bobcat Enablement
23402         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
23403         (case ${target}): Add btver1.
23404         * config/i386/driver-i386.c (host_detect_local_cpu): Let
23405         -march=native recognize btver1 processors.
23406         * config/i386/i386-c.c (ix86_target_macros_internal): Add
23407         btver1 def_and_undef
23408         * config/i386/i386.c (struct processor_costs btver1_cost): New
23409         btver1 cost table.
23410         (m_BTVER1): New definition.
23411         (m_AMD_MULTIPLE): Includes m_BTVER1.
23412         (initial_ix86_tune_features): Add btver1 tune.
23413         (processor_target_table): Add btver1 entry.
23414         (static const char *const cpu_names): Add btver1 entry.
23415         (software_prefetching_beneficial_p): Add btver1.
23416         (ix86_option_override_internal): Add btver1 instruction sets.
23417         (ix86_issue_rate): Add btver1.
23418         (ix86_adjust_cost): Add btver1.
23419         * config/i386/i386.h (TARGET_BTVER1): New definition.
23420         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
23421         (enum processor_type): Add PROCESSOR_BTVER1.
23422         * config/i386/i386.md (define_attr "cpu"): Add btver1.
23423
23424 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23425
23426         PR target/43309
23427         * config/i386/i386.c (legitimize_tls_address)
23428         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
23429         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
23430         (tls_initial_exec_64_sun): New pattern.
23431
23432 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
23433
23434         * doc/invoke.texi (Overall Options): Improve wording and markup
23435         of the description of -wrapper.
23436
23437 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
23438
23439         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
23440         rdynamic, threads): New Driver options.
23441
23442 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23443
23444         PR target/38118
23445         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
23446         if coming from .tdata.
23447         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
23448
23449 2011-01-06  Jan Hubicka  <jh@suse.cz>
23450
23451         PR lto/47188
23452         * collect2.c (main): Do not enable LTOmode when plugin is active.
23453
23454 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23455
23456         PR other/45915
23457         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
23458         --version output if supported.
23459         * configure: Regenerate.
23460
23461 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
23462
23463         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
23464         Driver options.
23465
23466 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
23467
23468         PR c/47150
23469         * c-convert.c (convert): When converting a complex expression
23470         other than COMPLEX_EXPR to a different complex type, ensure
23471         c_save_expr is called instead of save_expr, unless in_late_binary_op.
23472         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
23473         when converting COMPLEX_TYPE.
23474
23475 2011-01-06  Ira Rosen  <irar@il.ibm.com>
23476
23477         PR tree-optimization/47139
23478         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
23479         only the last reduction value is used outside the loop.  Update
23480         documentation.
23481
23482 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
23483
23484         * config/rtems.opt: New.
23485         * config.gcc (*-*-rtems*): Use rtems.opt.
23486
23487 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
23488
23489         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
23490         processors do not support 3DNow instructions.
23491
23492 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23493
23494         * config/spu/spu.c (spu_option_override): Set parameter
23495         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
23496
23497 2011-01-05  Jan Hubicka  <jh@suse.cz>
23498
23499         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
23500         at the command line.
23501
23502 2011-01-05  Martin Jambor  <mjambor@suse.cz>
23503
23504         PR lto/47162
23505         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
23506         deltas on streamed outgoing edges.
23507         (output_node_opt_summary): Output info for outgoing edges only when
23508         the node is in new parameter set.
23509         (output_cgraph_opt_summary): New parameter set, passed to the two
23510         aforementioned functions.  Update its forward declaration and its
23511         callee too.
23512
23513 2011-01-05  Tom Tromey  <tromey@redhat.com>
23514
23515         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
23516         operator to c_finish_omp_atomic.
23517         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
23518         (build_unary_op): Update.
23519         (build_modify_expr): Update.
23520         (build_asm_expr): Update.
23521
23522 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23523
23524         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
23525         newly inserted insns.
23526         (pad_bb): Likewise.
23527         (spu_emit_branch_hint): Likewise.
23528         (insert_hbrp_for_ilb_runout): Likewise.
23529         (spu_machine_dependent_reorg): Call df_finish_pass after
23530         schedule_insns returns.
23531
23532 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23533
23534         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
23535
23536 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
23537
23538         PR tree-optimization/47005
23539         * tree-sra.c (struct access): Add 'non_addressable' bit.
23540         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
23541         (decide_one_param_reduction): Return 0 if the parameter is passed by
23542         reference and one of the accesses in the group is non_addressable.
23543
23544 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
23545
23546         PR tree-optimization/47056
23547         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
23548         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
23549         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
23550
23551 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
23552
23553         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
23554         initializer.  Skip view conversions from aggregate types.
23555
23556 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
23557
23558         PR bootstrap/47055
23559         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
23560
23561 2011-01-04  Philipp Thomas  <pth@suse.de>
23562
23563         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
23564         obvious typo.
23565
23566 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23567
23568         * function.c (thread_prologue_and_epilogue_insns): Do not crash
23569         on empty epilogue sequences.
23570
23571 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
23572
23573         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
23574         non-static): New Driver options.
23575
23576 2011-01-04  Jie Zhang  <jie@codesourcery.com>
23577
23578         PR driver/47137
23579         * gcc.c (default_compilers[]): Set combinable field to 0
23580         for all assembly languages.
23581
23582 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
23583
23584         * config/mips/loongson3a.md: New file.
23585         * config/mips/mips.md: Include loongson3a.md.
23586         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
23587         TUNE_LOONGSON_3A.
23588
23589 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
23590
23591         PR middle-end/47017
23592         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
23593         instead of convert_memory_address_addr_space on the base expression.
23594
23595 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23596
23597         * config/spu/spu.c (spu_option_override): Update error text
23598         for bad -march= / -mtune= values.
23599
23600 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23601
23602         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
23603         if branch-hint optimization will be performed.
23604
23605 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
23606
23607         PR tree-optimization/47148
23608         * ipa-split.c (split_function): Convert arguments to
23609         DECL_ARG_TYPE if possible.
23610
23611         PR tree-optimization/47155
23612         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
23613         when computing uns.
23614
23615         PR rtl-optimization/47157
23616         * combine.c (try_combine): If undobuf.other_insn becomes
23617         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
23618         and set *new_direct_jump_p too.
23619
23620 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
23621
23622         PR tree-optimization/47021
23623         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
23624
23625 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
23626
23627         * gcc.c (process_command): Update copyright notice dates.
23628         * gcov.c (print_version): Likewise.
23629         * gcov-dump.c (print_version): Likewise.
23630         * mips-tfile.c (main): Likewise.
23631         * mips-tdump.c (main): Likewise.
23632
23633 2011-01-03  Martin Jambor  <mjambor@suse.cz>
23634
23635         PR tree-optimization/46801
23636         * tree-sra.c (type_internals_preclude_sra_p): Check whether
23637         aggregate fields start at byte boundary instead of the bit-field flag.
23638
23639 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23640
23641         PR driver/47137
23642         * gcc.c (main): Revert revision 168407.
23643
23644 2011-01-03  Martin Jambor  <mjambor@suse.cz>
23645
23646         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
23647
23648 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23649
23650         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
23651         vector optab to expand vector/scalar shift, update gimple to vector.
23652
23653 2011-01-03  Martin Jambor  <mjambor@suse.cz>
23654
23655         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
23656         a thunk.
23657
23658 2011-01-03  Martin Jambor  <mjambor@suse.cz>
23659
23660         PR tree-optimization/46984
23661         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
23662         HOST_WIDE_INT.
23663         (cgraph_create_indirect_edge): Fixed line length.
23664         (cgraph_indirect_call_info): Declare.
23665         (cgraph_make_edge_direct) Update declaration.
23666         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
23667         (cgraph_create_indirect_edge): Use it.
23668         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
23669         callees.
23670         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
23671         the new thunk_delta representation.
23672         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
23673         HOST_WIDE_INT.
23674         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
23675         (ipa_read_indirect_edge_info): Likewise.
23676         * lto-cgraph.c (output_edge_opt_summary): New function.
23677         (output_node_opt_summary): Call it on all outgoing edges.
23678         (input_edge_opt_summary): New function.
23679         (input_node_opt_summary): Call it on all outgoing edges.
23680
23681 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
23682
23683         PR driver/47137
23684         * gcc.c (main): Don't check have_o when settting combine_inputs.
23685
23686 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
23687
23688         * regrename.c: Add general comment describing the pass.
23689         (struct du_head): Remove 'length' field.
23690         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
23691         (regrename_optimize): Do not sort chains.  Rework comments, add others.
23692         Force renaming to the preferred class (if any) in the first pass and do
23693         not consider registers that belong to it in the second pass.
23694         (create_new_chain): Do not set 'length' field.
23695         (scan_rtx_reg): Likewise.
23696
23697 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
23698
23699         PR tree-optimization/47140
23700         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
23701         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
23702         to bit_value_binop.
23703
23704         PR rtl-optimization/47028
23705         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
23706         parm_birth_insn instead of at the beginning of first bb.
23707
23708 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
23709
23710         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
23711         Remove the word "see" before "@pxref".
23712         * doc/rtl.texi: Remove the word "see" before "@pxref".
23713
23714 2011-01-01  Jan Hubicka  <jh@suse.cz>
23715
23716         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
23717         memory.
23718
23719 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
23720
23721         PR target/38662
23722         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
23723
23724 \f
23725 Copyright (C) 2011 Free Software Foundation, Inc.
23726
23727 Copying and distribution of this file, with or without modification,
23728 are permitted in any medium without royalty provided the copyright
23729 notice and this notice are preserved.