s390: -mfused-madd cleanup
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2010-11-16  Richard Henderson  <rth@redhat.com>
2
3         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
4         * config/s390/s390.opt (mfused-madd): Remove.
5         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
6         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
7         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
8         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
9
10 2010-11-16  Richard Henderson  <rth@redhat.com>
11
12         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
13         * config/rs6000/rs6000.opt (mfused-madd): Remove.
14         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
15         (*altivec_vmaddfp_1): Remove.
16         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
17         (altivec_mulv4sf3): Expand to FMA directly.
18         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
19         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
20         * config/rs6000/paired.md (paired_madds0): Use FMA.
21         (paired_madds1): Likewise.
22         (*paired_madd): Rename from paired_madd; use FMA.
23         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
24         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
25         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
26         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
27         (rs6000_emit_madd): Use fma_optab.
28         (rs6000_emit_msub): Use fms_optab.
29         (rs6000_emit_nmsub): Expand the FMA pattern directly.
30         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
31         (*fmasf4_fpr): Rename from fmasf4_fpr.
32         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
33         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
34         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
35         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
36         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
37         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
38         (*fmadf4_fpr): Rename from fmadf4_fpr.
39         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
40         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
41         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
42         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
43         (fmasf4, fmadf4): Macroize into...
44         (fma<FMA_F>4): ... here.
45         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
46         (nfma<FMA_F>4, nfms<FMA_F>4): New.
47         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
48         TARGET_FUSED_MADD.
49         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
50         (*vsx_fmadd<mode>4_1): Remove.
51         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
52         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
53         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
54         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
55         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
56         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
57         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
58
59 2010-11-16  Richard Henderson  <rth@redhat.com>
60
61         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
62         (fmasf4, fnmadf4, fnmasf4): Likewise.
63         (unnamed plus+mult insns and splitters): Delete.
64
65 2010-11-16  Richard Henderson  <rth@redhat.com>
66
67         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
68         (fnma<VSF>4): Rename from fnms_<VSF>.
69         (fms<VSF>4): Rename from fms_<VSF>.
70         (fma<VDF>4): Rename from fma_<VDF>.
71         (fms<VDF>4): Rename from fms_<VDF>.
72         (nfma<VDF>4): Rename from fnma_<VDF>.
73         (nfms<VDF>4): Rename from fnms_<VDF>.
74         (fnma<VDF>4, fnms<VDF>4): New expanders.
75         (floatunsdisf2): Update for the renames.
76         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
77         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
78
79 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
80
81         PR rtl-optimization/46490
82         * combine.c (expand_compound_operation): Fix thinko.
83
84 2010-11-16  Richard Henderson  <rth@redhat.com>
85
86         PR target/46470
87         * recog.c (peep2_attempt): Convert frame-related info when possible.
88         (peep2_fill_buffer): Allow frame-related insns into the buffer.
89         (peephole2_optimize): Allow peep2_attempt to fail.
90
91 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
92
93         PR rtl-optimization/46315
94         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
95         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
96         extracted from...
97         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
98         (remove_reg_equal_equiv_notes_for_defs): ...this.
99         (delete_unmarked_insns): Adjust to above renaming.
100         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
101         referring to registers set in the insns being moved, if any.
102
103         * df-core.c (df_ref_dump): New function extracted from...
104         (df_refs_chain_dump): ...here.  Call it.
105         (df_regs_chain_dump): Likewise.
106         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
107         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
108
109 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
110
111         PR rtl-optimization/46395
112         * postreload.c (reload_combine): Invalidate register use
113         information on all control flow insns.
114
115         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
116         LABEL_REF in UNSPEC operand.
117
118 2010-11-16  Jan Hubicka  <jh@suse.cz>
119
120         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
121         when !flag_toplevel_reorder do not remove unless variable is
122         COMDAT or ARTIFICIAL.
123         * ipa.c (varpool_can_remove_if_no_refs): ... here.
124         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
125         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
126         * varpool.c (decide_is_variable_needed): Do not handle visibility issues.
127         (varpool_finalize_decl): Likewise.
128         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node; update
129         outdated comment on DECL_RTL_SET_P check.
130
131 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
132
133         * config/sol2.h (NM_FLAGS): Define.
134         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
135         * doc/tm.texi: Update.
136
137 2010-11-16  Nick Clifton  <nickc@redhat.com>
138
139         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma
140         rtx_code.
141         (msubsf4): Rename to fmssf4, and use fma.
142         (nmaddsf4): Rename to fnmasf4 and use fma.
143         (nmsubsf4): Rename to fnmssf4 and use fma.
144
145 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
146
147         PR target/44762
148         * config/score/score3.c (score3_return_in_memory): Constify arguments.
149         (score3_in_small_data_p, score3_function_value): Likewise.
150         (score3_trampoline_init): Use LCT_NORMAL.
151         (score3_print_operand): Initialize code as UNKNOWN.
152         * config/score/predicates.md (score_load_multiple_operation):
153         Remove unused variable.
154         (score_store_multiple_operation): Likewise.
155         * config/score/score7.c (score7_return_in_memory): Constify arguments.
156         (score7_in_small_data_p, score7_function_value): Likewise.
157         (score7_trampoline_init): Use LCT_NORMAL.
158         (score7_print_operand): Initialize code as UNKNOWN.
159         * config/score/score3.h (score3_return_in_memory): Update prototype.
160         (score3_in_small_data_p, score3_function_value): Likewise.
161         * config/score/score-protos.h (score_function_value): Likewise.
162         * config/score/score7.h (score7_return_in_memory): Update prototype.
163         (score7_in_small_data_p, score7_function_value): Likewise.
164         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
165         (score_return_in_memory, score_pass_by_reference): Constify arguments.
166         (score_output_mi_thunk, score_function_prologue): Don't return a value.
167         (score_function_epilogue, score_in_small_data_p): Likewise.
168         (score_option_override, score_asm_trampoline_template): Likewise.
169         (score_trampoline_init, score_print_operand): Likewise.
170         (score_print_operand_address, score_prologue): Likewise.
171         (score_epilogue, score_call, score_call_value): Likewise.
172         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
173         (score_function_arg_advance): Likewise. Make static.
174         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
175         (score_function_arg, score_legitimate_address_p): Make static.
176         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
177         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
178         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
179         Allow (W) == HOST_BITS_PER_WIDE_INT.
180
181         PR java/46386
182         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
183         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
184
185 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
186
187         * config/arc/arc.c: Delete pasto.
188         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
189
190 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
191
192         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
193         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
194         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
195         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
196         (mn10300_preferred_reload_class,
197         mn10300_preferred_output_reload_class): New functions.
198
199 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
200
201         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New
202         macros.
203         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
204         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
205         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
206
207 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
208
209         * builtins.c (std_gimplify_va_arg_expr): Use
210         targetm.calls.function_arg_boundary.
211         * function.c (assign_parms, locate_and_pad_parm): Likewise.
212         * calls.c (struct arg_data): Update comment.
213         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
214         * target.def (function_arg_boundary): Define.
215         * targhooks.h (default_function_arg_boundary): Declare.
216         * targhooks.c (default_function_arg_boundary): Define.
217         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
218         TARGET_FUNCTION_ARG_BOUNDARY.
219         (FUNCTION_ARG_BOUNDARY): Delete.
220         (TARGET_FUNCTION_ARG_BOUNDARY): New.
221         * doc/tm.texi: Regenerate.
222         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
223         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
224         * config/arc/arc.c (arc_function_arg_boundary): Define.
225         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
226         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
227         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
228         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
229         (arm_function_arg_boundary): Define.
230         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
231         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
232         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
233         * config/frv/frv.c (frv_function_arg_boundary): Make static.
234         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
235         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
236         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
237         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
238         (ix86_compat_function_arg_boundary): Take and return unsigned int.
239         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
240         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
241         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
242         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
243         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
244         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
245         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
246         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
247         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
248         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
249         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
250         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
251         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
252         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
253         * config/mips/mips.c (mips_function_arg_boundary): Make static.
254         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
255         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
256         * config/pa/pa.c (pa_function_arg_boundary): Define.
257         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
258         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
259         * config/picochip/picochip-protos.h
260         (picochip_get_function_arg_boundary): Delete.
261         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
262         Rename to...
263         (picochip_function_arg_boundary): ...this.  Make static.
264         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
265         (picochip_arg_advance): Adjust.
266         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
267         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
268         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
269         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
270         (rs6000_function_arg_boundary): ...this.  Make static.
271         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
272         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
273         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
274         * config/rx/rx.c (rx_function_arg_boundary): Define.
275         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
276         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
277         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
278         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
279         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
280         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
281         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
282         (xtensa_function_arg_boundary): ...this.  Make static.
283         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
284
285 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
286
287         * expr.c (alignment_for_piecewise_move): New function.
288         (widest_int_mode_for_size): New function.
289         (move_by_pieces, move_by_pieces_ninsns): Call them.
290         (can_store_by_pieces, store_by_pieces_1): Likewise.
291
292 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
293
294         * gcc.c (char_p): Define.  Define a VEC of it.
295         (n_linker_options, n_assembler_options, n_preprocessor_options):
296         Delete.
297         (linker_options, assembler_options, preprocessor_options): Convert
298         to a VEC.
299         (add_preprocessor_option): Adjust.
300         (add_assembler_option): Adjust.
301         (add_linker_option): Adjust.
302         (do_specs_vec): New function.
303         (do_spec_1): Call it.  Adjust for new types.
304
305 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
306
307         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update
308         dependencies.
309         (sreal.o, statistics.o, stringpool.o): Likewise.
310
311 2010-11-16  Richard Guenther  <rguenther@suse.de>
312
313         PR tree-optimization/44545
314         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
315         statements are not reassociatable.
316         (reassociate_bb): Likewise.
317
318 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
319
320         * bitmap.c: Delete unnecessary includes.
321         * ebitmap.c: Likewise.
322         * et-forest.c: Likewise.
323         * sreal.c: Likewise.
324         * statistics.c: Likewise.
325         * stringpool.c: Likewise.
326         * double-int.c: Add comment for inclusion of tm.h.
327
328 2010-11-16  Richard Guenther  <rguenther@suse.de>
329
330         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
331         (visit_nary_op): ... this.
332         (visit_binary_op): Remove.
333         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
334
335 2010-11-16  Richard Guenther  <rguenther@suse.de>
336
337         PR middle-end/45172
338         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate
339         edges.
340
341 2010-11-16  Nick Clifton  <nickc@redhat.com>
342
343         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
344         record is packed.
345
346 2010-11-15  Richard Henderson  <rth@redhat.com>
347
348         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
349         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR,
350         DOT_PROD_EXPR.
351
352 2010-11-15  Richard Henderson  <rth@redhat.com>
353
354         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
355         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
356         fma rtx_code.
357
358 2010-11-15  Richard Henderson  <rth@redhat.com>
359
360         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
361         and *mulsubsf4 respectively.  Use fma rtx_code.
362
363 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
364
365         * gcc.c: Include "vec.h".
366         (argbuf): Make into a VEC.
367         (argbuf_length, argbuf_index): Remove.
368         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
369         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
370         compare_debug_dump_opt_spec_function: Use VEC interfaces on
371         argbuf.
372         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
373         (gcc.o): Depend on $(VEC_H).
374
375 2010-11-15  Richard Henderson  <rth@redhat.com>
376
377         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
378         via FMA if unsafe math.
379         (insert_var_expansion_initialization): Handle FMA.
380         (combine_var_copies_in_loop_exit): Likewise.
381
382 2010-11-15  Richard Henderson  <rth@redhat.com>
383
384         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
385         * config/ia64/ia64.opt: Remove mfused-madd.
386         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
387         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
388         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
389         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
390         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
391         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
392         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
393         (fmav2sf4): Rename from fpma; use FMA code.
394         (fmsv2sf4): Rename from fpms; use FMA code.
395         (fnmav2sf4): Rename from *fpnma; use FMA code.
396         * config/ia64/ia64.md (MODE_SDF): New iterator.
397         (suffix): New mode attribute.
398         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
399         (fmssf4): Rename from *fmssf4.
400         (fnmasf4): Rename from *nfmasf4.
401         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
402         (*nmadddf4, *nmadddf4_truncsf): Remove.
403         (fmsdf4): Rename from *fmsdf4.
404         (fnmadf4): Rename from *nfmadf4.
405         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
406         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
407         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
408         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
409         (fmsxf4): Rename from *fmsxf4.
410         (fnmaxf4): Rename from *nfmaxf4.
411         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
412         (*fnmaxf_trunc_<MODE_SDF>): New.
413
414 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
415
416         PR tree-optimization/46461
417         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
418         a gimple val.
419
420 2010-11-15  Ian Lance Taylor  <iant@google.com>
421
422         * godump.c: New file.
423         * common.opt (fdump-go-spec=): New option.
424         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
425         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
426         (TYPE_SYMTAB_IS_DIE): Define.
427         (struct tree_type): Change GTY for symtab field to use
428         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
429         to pick the union field.
430         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
431         (dump_go_spec_init): Declare.
432         * toplev.c (process_options): Handle flag_dump_go_spec.
433         * debug.c: Include "tree.h".
434         (do_nothing_debug_hooks): Set tree_type_symtab_field.
435         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
436         * dbxout.c (dbx_debug_hooks): Likewise.
437         (xcoff_debug_hooks): Likewise.
438         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
439         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
440         SDB_DEBUGGING_INFO is not defined.
441         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
442         (Overall Options): Document -fdump-go-spec.
443         * Makefile.in (OBJS-common): Add godump.o.
444         (debug.o): Add dependency on $(TREE_H).
445         (godump.o): New target.
446         (GTFILES): Add $(srcdir)/godump.c.
447
448 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
449
450         PR debug/46095
451         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
452         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
453         style < 0, add REG_FRAME_RELATED_EXPR.
454
455         PR debug/46387
456         * rtl.h (vt_equate_reg_base_value): New prototype.
457         * alias.c (vt_equate_reg_base_value): New function.
458         * var-tracking.c (vt_init_cfa_base): Use it.
459
460 2010-11-15  Jan Hubicka  <jh@suse.cz>
461             Diego Novillo  <dnovillo@google.com>
462
463         PR lto/41528
464         * doc/lto.texi: Add.
465         * doc/gccint.texi: Add reference to lto.texi.
466         * doc/invoke.texi: Update user documentation for LTO.
467         Move internal flags to lto.texi
468
469 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
470
471         * c-typeck.c (build_unary_op): Use
472         objc_build_incr_expr_for_property_ref to build the pre/post
473         increment/decrement of an Objective-C property ref, and skip the
474         lvalue_or_else check in that case.
475
476 2010-11-15  Martin Jambor  <mjambor@suse.cz>
477
478         PR tree-optimization/46349
479         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
480         (contains_vce_or_bfcref_p): Likewise.
481         (sra_modify_assign): Use them.
482
483 2010-11-15  Richard Guenther  <rguenther@suse.de>
484
485         PR tree-optimization/46467
486         * tree-ssa-structalias.c (do_structure_copy): Properly treat
487         variables without subvars.
488
489 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
490
491         * config/picochip/picochip.c (file header): Picochip name change.
492         * config/picochip/picochip.md (file header): Likewise.
493         * config/picochip/predicates.md (file header): Likewise.
494         * config/picochip/dfa_space.md (file header): Likewise.
495         * config/picochip/dfa_speed.md (file header): Likewise.
496         * config/picochip/picochip.h(file header): Likewise.
497         * config/picochip/constraints.md (file header): Likewise.
498         * config/picochip/picochip-protos.h (file header): Likewise.
499         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
500         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
501         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
502         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
503         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
504         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
505         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
506         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
507         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
508         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
509         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
510         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
511         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
512         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
513
514 2010-11-15  Richard Guenther  <rguenther@suse.de>
515
516         PR bootstrap/46474
517         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
518
519 2010-11-15  Nick Clifton  <nickc@redhat.com>
520
521         * config/stormy16/stormy16.c (direct_return): Do not generate a
522         direct return for interrupt handlers.
523
524 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
525
526         * Makefile.in (tm.texi): Replace with rule for:
527         ($(srcdir)/doc/tm.texi).
528         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
529         $(srcdir)/doc/tm.texi .
530         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
531         tm.texi .
532
533         PR target/46427
534         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
535
536         PR bootstrap/45444
537         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
538         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
539
540         PR target/46432
541         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
542
543 2010-11-15  Richard Guenther  <rguenther@suse.de>
544
545         PR lto/44150
546         * lto-opts.c (lto_write_options): Write -fexceptions even if
547         not set by the user.
548
549 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
550
551         PR c/46462
552         * c-decl.c (declspecs_add_type): Make variables with error types
553         integers.
554         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
555         do not start a declaration before an Objective-C foreach.
556         (c_parser_declaration_or_fndef): Improve recovery after unknown
557         type name.
558         (c_parser_for_statement): Hoist entrance of "foreach context"
559         before ifs, add corresponding reset where it was missing.  Do
560         not set objc_could_be_foreach_context for C.
561
562 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
563
564         PR tree-optimization/45722
565         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
566         this is a reference to a component.
567         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
568         (ipa_note_param_call): Adjust comment.
569
570 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
571
572         * config/mips/mips.c (machine_function): Remove
573         initialized_mips16_gp_pseudo_p.
574         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
575         detect whether a pseudo has already been created.  Unconditionally
576         create a new one if not.
577         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
578         expanding to rtl.  Create a new pseudo otherwise, if allowed.
579
580 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
581
582         PR target/43440
583         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
584         * tm.texi: Regenerated.
585         * output.h (decode_reg_name_and_count): Declare.
586         * varasm.c (decode_reg_name_and_count): New function.
587         (decode_reg_name): Reimplement using decode_reg_name_and_count.
588         * reginfo.c (fix_register): Use decode_reg_name_and_count and
589         iterate over all regs used.
590         * stmt.c (expand_asm_operands): Likewise.
591         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
592         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
593         multiple machine registers.
594
595 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
596
597         * stor-layout.c (place_union_field): Do not put location information
598         on offset expressions.
599         (place_field): Likewise.
600         (finalize_record_size): Likewise on size expressions.
601         (finalize_type_size): Likewise.
602         (layout_type): Likewise.
603
604 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
605
606         PR debug/42889
607         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
608         * df-core.c (df_set_bb_dirty_nonrl): Remove.
609         * df.h (df_set_bb_dirty_nonlr): Likewise.
610
611 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
612
613         * config/mips/mips.md (call_internal): Pass curr_insn to
614         mips_split_call.
615         (call_internal_direct): Ditto.
616         (call_value_internal): Ditto.
617         (call_value_internal_direct): Ditto.
618         (call_value_multiple_internal): Ditto.
619         * config/mips/mips.c (mips_split_call): Do not copy
620         CALL_INSN_FUNCTION_USAGE here.
621
622 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
623
624         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
625         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
626         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
627         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
628         (TUNE_LOONGSON_3A): Define.
629         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
630         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
631         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
632         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
633         (mips_rtx_cost_data): Add Loongson-3A.
634
635 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
636
637         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
638         switches.
639
640 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
641
642         * dwarf2out.c (macinfo_entry): New struct.
643         (output_comp_unit): Emit the section start label here and flag that we
644         will emit an info section.
645         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
646         emitting directly.
647         (dwarf2out_end_source_file): Likewise.
648         (dwarf2out_define): Likewise.
649         (dwarf2out_undef): Likewise.
650         (output_macinfo): New.
651         (dwarf2out_init): Do not emit debug section switches here, allocate a
652         vec for macinfo, when required.
653         (dwarf2out_finish): First switch to debug_abbrev_section here.
654         debug_line_section,  debug_macinfo_section, Likewise.
655         Check that the pubtypes table has at least one unpruned entry before
656         trying to emit it.
657
658 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
659
660         PR c/20385
661         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
662         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
663         token lookahead.
664         (c_parser_compound_statement_nostart, c_parser_label,
665         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
666         (c_parser_declaration_or_fndef): Detect the case now matched by
667         c_parser_next_tokens_start_declaration, give error and correct it.
668
669 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
670
671         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
672         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
673         with typespec_kind.
674         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
675         (shadow_tag_warned, check_compound_literal_type): Adjust
676         uses of tag_defined_p.
677         (declspecs_add_type): Set typespec_kind.
678         * c-parser.c (c_parser_declaration_or_fndef,
679         c_parser_declspecs, c_parser_struct_declaration,
680         c_parser_parameter_declaration, c_parser_type_name,
681         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
682         of type_seen_p.
683         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
684         tag_defined_p, pass ctsk_firstref through.
685
686 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
687
688         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
689         (struct format_wanted_type): Replace field "name" with "kind", add
690         "format_start" and "format_length".
691         (check_format_info_main): Fill in new fields.  Fill in
692         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
693         after the final NUL outside the while loop.  Do not include
694         width and precision modifiers in the format_start/format_length
695         of the main format.
696         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
697         arguments.  Compute WANTED_TYPE first so that format_type_warning
698         can be called for missing arguments.  Adjust calls to
699         format_type_warning.
700         (format_type_warning): Fetch as much information as possible
701         from format_wanted_type.  Adjust printing now that every
702         warning has a "descr", as well as for missing argument warnings
703         and to include % sign for format specifiers.
704
705 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
706
707         PR rtl-optimization/46204
708         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
709         Update all callers.  Do not recompute topological order.  Adjust
710         fallthrough edges following a degenerate conditional jump.
711
712 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
713
714         * opts-common.c (control_warning_option): New.
715         * opts.c (set_default_handlers): New.
716         (decode_options): Use set_default_handlers and
717         control_warning_option.
718         (common_handle_option): Update call to enable_warning_as_error.
719         (enable_warning_as_error): Take gcc_options parameters.  Use
720         control_warning_option.
721         * opts.h (set_default_handlers, control_warning_option): Declare.
722
723 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
724
725         * Makefile.in (OPTS_H): Define.
726         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
727         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
728         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
729         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
730         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
731         * gcc.c (driver_handle_option): Take location_t parameter.
732         (process_command, do_self_spec): Update calls to
733         read_cmdline_option.
734         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
735         * langhooks.c (lhd_handle_option): Take location_t parameter.
736         * langhooks.h (handle_option): Take location_t parameter.
737         * lto-opts.c (lto_reissue_options): Update call to set_option.
738         * opts-common.c (handle_option): Make static.  Take location_t
739         parameter and pass it to other functions.
740         (handle_generated_option): Take location_t parameter and pass it
741         to other functions.
742         (read_cmdline_option): Take location_t parameter and pass it to
743         other functions.  Use warning_at and error_at.
744         (set_option): Take location_t parameter and pass it to other
745         functions.
746         * opts.c (common_handle_option): Take location_t parameter and
747         pass it to other functions.
748         (enable_warning_as_error): Make static.  Take location_t parameter
749         and pass it to other functions.
750         (lang_handle_option): Take location_t parameter and pass it to
751         other functions.
752         (target_handle_option): Take location_t parameter.
753         (read_cmdline_options, maybe_default_option,
754         maybe_default_options, default_options_optimization,
755         decode_options): Take location_t parameter and pass it to other
756         functions.
757         * opts.h: Include input.h.
758         (struct cl_option_handler_func, decode_options, set_option,
759         handle_generated_option, read_cmdline_option): Take location_t
760         parameters.
761         (handle_option, enable_warning_as_error): Remove.
762         * toplev.c (toplev_main): Update call to decode_options.
763
764 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
765
766         * graphite-cloog-util.c (oppose_constraint,
767         cloog_matrix_to_ppl_constraint,
768         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
769         CLooG isl uses unsigned integers.  This triggered a warning.
770
771 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
772
773         PR target/46438
774         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
775         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
776         (xtensa_function_arg_1): De-constify cum.
777         (xtensa_expand_prologue): Use add_reg_note.
778
779         PR target/46435
780         * config/cris/cris.c (saved_regs_mentioned): Delete.
781         (cris_reload_address_legitimized): Cast itype to enum reload_type.
782         Remove unused variable op0p.
783         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
784         (cris_emit_movem_store): Use add_reg_note.
785
786         PR bootstrap/46456
787         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
788
789 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
790
791         * function.c (expand_function_end): Set the locator of the prologue on
792         the stack checking insns.
793
794 2010-11-12  Richard Henderson  <rth@redhat.com>
795
796         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
797         * config/xtensa/xtensa.opt (mfused-madd): Remove.
798         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
799         MASK_FUSED_MADD.
800         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
801         (fnmasf4): Rename from mulsubsf3; use fma.
802
803 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
804             Richard Henderson  <rth@redhat.com>
805
806         PR target/46428
807         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
808         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
809         comparison.
810
811 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
812
813         * opts-common.c (decode_cmdline_option): Initialize separate_args.
814
815 2010-11-12  Jan Hubicka  <jh@suse.cz>
816
817         * doc/invoke.texi (early-inlining-insns): Update default.
818         * params.def (early-inlining-insns): Default to 10.
819
820 2010-11-12  Olivier Hainque  <hainque@adacore.com>
821
822         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
823
824 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
825
826         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
827         (SUPPORTS_INIT_PRIORITY): Define.
828
829 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
830
831         PR target/46430
832         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
833         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
834         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
835         (avr_device_to_devicelib): Likewise.
836         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
837         into block.
838         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
839         (zero_extendhidi2, zero_extendsidi2): Likewise.
840         * config/avr/avr.c (avr_num_arg_regs): Constify type.
841         (avr_return_addr_rtx): De-constify tem.
842         (avr_rotate_bytes): Move declarations to start of block.
843         Don't use variable length array.
844         Put nested if/else into block.
845
846         PR rtl-optimization/46433
847         * var-tracking.c: Include tm_p.h .
848
849         PR bootstrap/44756
850         PR build/44767
851         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
852         should be unsigned.
853         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
854         * doc/tm.texi: Regenerate.
855
856         PR target/46412
857         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
858         * config/bfin/bfin.c: Include sel-sched.h .
859         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
860         (expand_interrupt_handler_prologue): Remove unused variable insn.
861         (bfin_load_pic_reg): Likewise.
862         (bfin_rtx_costs): Make code / outer_code variables of type
863         enum rtx_code, copied from re-named parameters.
864         (bfin_local_alignment): Change align argument and return type
865         to unsigned.
866         (bfin_adjust_cost): Remove unused variable insn_type.
867         Declare variables at start of block.
868         (struct loop_info): Rename to...
869         (struct loop_info_d).
870         (workaround_rts_anomaly): Change type of icode to int.
871         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
872         with int-typed variable.
873         (note_np_check_stores): Likewise.
874         (trapping_loads_p): Remove unused variable pat.
875         (bfin_expand_binop_builtin): Use expand_normal.
876         (bfin_expand_unop_builtin): Likewise.
877         (bfin_expand_builtin): Likewise.
878         Set tmode before use.
879
880         PR middle-end/44769
881         * final.c (split_double): Don't use BITS_PER_WORD directly in
882         shift count.
883
884         PR target/46431
885         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
886         assignment.
887
888         PR target/46450
889         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
890         Use add_reg_note.
891         (xstormy16_function_arg): Dereference cum.
892         (xstormy16_expand_builtin): Use expand_normal.
893         Change type of omode to enum machine_mode.
894         (combine_bnp): Rename and to and_insn.
895
896         PR target/46437
897         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
898         localreg.
899
900 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
901
902         PR debug/46375
903         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
904
905 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
906
907         PR lto/46376
908         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
909
910 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
911
912         PR c/44782
913         * common.opt (fmax-errors=): New option.
914         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
915         * diagnostic.h (struct diagnostic_context): Add max_errors field.
916         * diagnostic.c (diagnostic_initialize): Initialize it.
917         (diagnostic_action_after_output): Exit if more than max_errors
918         have been output.
919         * doc/invoke.texi (Warning Options): Add -fmax-errors.
920         (-fmax-errors): Document.
921
922 2010-11-11  Richard Henderson  <rth@redhat.com>
923
924         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
925
926 2010-11-11  Richard Henderson  <rth@redhat.com>
927
928         * config/fused-madd.opt: New file.
929         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
930         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
931         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
932         * config/i386/i386.opt (mfused-madd): Remove.
933         * config/i386/sse.md (split_fma): Remove.
934         (split_fms, split_fnma, split_fnms): Remove.
935
936 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
937
938         PR target/46088
939         * config/i386/i386.md (*ashl<mode>3_cconly,
940         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
941         change nonimmediate_operand predicate to register_operand.
942
943 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
944
945         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
946
947 2010-11-11  Jan Hubicka  <jh@suse.cz>
948
949         * opts.c (finish_options): Do not error on -flto-partition alone.
950
951         * doc/invoke.texi (-fwhopr): Merge into -flto section.
952         (-flto-partition): Document none.
953         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
954         * lto-wrapper.c: Update comment.
955         (run_gcc): Update LTO option parsing.
956         * opts.c (finish_options): add support -flto-partition=none
957         (common_handle_option): Remove fwhopr.
958         * common.opt: Turn fwhopr into flto.
959         * collect2.c (main): Update option handling.
960         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
961         * ipa-split.c (execute_split_functions): Remove flag_whopr.
962         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
963         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
964         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
965
966 2010-11-11  Jan Hubicka  <jh@suse.cz>
967
968         PR tree-optimize/40436
969         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
970         (eliminated_by_inlining_prob): ... this one; return 50% probability for
971         SRA.
972         (estimate_function_body_sizes): Update use of eliminated_by_inlining_prob;
973         estimate static function size for 2 instructions.
974
975 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
976
977         PR target/44749
978         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
979         declare.  Change type of argument four to type int.
980         (mep_secondary_input_reload_class): Returns enum reg_class.
981         (mep_secondary_output_reload_class): Likewise.
982         (mep_function_value): Change types of arguments to cont_tree.
983         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
984         argument four to type int.
985         (mep_secondary_input_reload_class): Returns enum reg_class.
986         (mep_secondary_output_reload_class): Likewise.
987         (mep_function_value): Change types of arguments to cont_tree.
988         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
989         mep_regno_reg_class to enum reg_class.
990
991 2010-11-11  Richard Henderson  <rth@redhat.com>
992
993         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
994         that the target has the exact fma operation that we matched.
995
996 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
997
998         * reginfo.c (fix_register): Avoid inserting English word in
999         diagnostic sentence.  Use %qs for quoting and %'.
1000
1001 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
1002
1003         * config/i386/driver-i386.c (host_detect_local_cpu): Support
1004         Intel processor family 6, model 0x2c.
1005
1006 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
1007
1008         * opts.c (warning_as_error_callback,
1009         register_warning_as_error_callback): Remove.
1010         (enable_warning_as_error): Don't use warning_as_error_callback.
1011         * opts.h (register_warning_as_error_callback): Remove.
1012
1013 2010-11-11  Richard Henderson  <rth@redhat.com>
1014
1015         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
1016         in between the MULT and the PLUS/MINUS.
1017
1018 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
1019
1020         PR middle-end/46388
1021         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
1022         BLKmode mode for it.
1023         (expand_expr_real_1): Similarly for op0.
1024
1025 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1026
1027         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
1028         Document optional target selector.
1029
1030 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
1031
1032         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
1033         assembling high and low parts of size if not using 32-bit HWINT; else
1034         use DECL_SIZE_UNITS, not DECL_SIZE.
1035
1036 2010-11-11  Martin Jambor  <mjambor@suse.cz>
1037
1038         PR tree-optimization/46383
1039         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
1040         offsets.
1041         (compute_complex_ancestor_jump_func): Likewise.
1042         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
1043
1044 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
1045
1046         PR debug/46150
1047         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
1048         true if expr1->hash != expr2->hash.
1049
1050 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
1051
1052         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
1053         diagnostics with lowercase letters.
1054         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
1055         lowercase letters.
1056         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
1057         diagnostic.
1058         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1059         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
1060         lowercase letters.
1061         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1062         Remove trailing ' ' from diagnostic.
1063         * config/avr/avr.c (print_operand_address): Start diagnostic with
1064         a lowercase letter and remove trailing '.'.
1065         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
1066         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
1067         with lowercase letters.  Use %' in diagnostics.  Remove trailing
1068         '.' from diagnostics.
1069         (bfin_handle_longcall_attribute): Use %' in diagnostic.
1070         * config/cris/cris.c (cris_split_movdx,
1071         cris_expand_pic_call_address): Start diagnostics with lowercase
1072         letters.
1073         (cris_asm_output_label_ref): Use %' in diagnostic.
1074         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
1075         letter.
1076         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
1077         lowercase letter.
1078         * config/darwin-c.c (version_as_macro): Start diagnostic with a
1079         lowercase letter.
1080         * config/darwin-driver.c (darwin_default_min_version): Use %' in
1081         diagnostic.
1082         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
1083         diagnostic.
1084         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1085         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
1086         diagnostics.
1087         * config/i386/i386.c (ix86_option_override_internal): Write
1088         diagnostic as a single sentence without trailing '.'.  Use %' in
1089         diagnostics.
1090         (ix86_function_sseregparm, classify_argument): Start diagnostics
1091         with lowercase letters.
1092         (ix86_expand_prologue): Use %' in diagnostic.
1093         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
1094         diagnostic.
1095         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
1096         lowercase letter.
1097         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
1098         diagnostic.
1099         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1100         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
1101         '`' in help text.
1102         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
1103         lowercase letter.
1104         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
1105         lowercase letters.
1106         * config/microblaze/microblaze.c (microblaze_handle_option):
1107         Remove trailing '.' from diagnostic.
1108         (print_operand): Start diagnostic with a lowercase letter.
1109         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
1110         lowercase letters.  Avoid '`' in diagnostics.
1111         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
1112         lowercase letters.  Avoid '`' in diagnostics.
1113         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
1114         lowercase letters.  Avoid '`' in diagnostics.
1115         * config/picochip/picochip.c (picochip_option_override,
1116         picochip_emit_save_register, picochip_function_arg,
1117         picochip_output_label, picochip_output_internal_label,
1118         picochip_asm_output_opcode, picochip_output_cbranch,
1119         picochip_output_compare, picochip_output_branch,
1120         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
1121         diagnostics. Start diagnostics with lowercase letters.  Use %' in
1122         diagnostics.
1123         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
1124         "SPE" capitalization.  Start diagnostic with a lowercase letter.
1125         (rs6000_handle_option): Start diagnostics with lowercase letters.
1126         (def_builtin): Remove trailing '.' from diagnostic.
1127         (rs6000_savres_routine_name): Start diagnostic with a lowercase
1128         letter.
1129         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
1130         diagnostic.
1131         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
1132         lowercase letter.
1133         * config/s390/s390.c (s390_option_override) Start diagnostics with
1134         lowercase letters.  Use %' in diagnostic.
1135         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
1136         lowercase letters.
1137         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
1138         diagnostic.
1139         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
1140         diagnostic.
1141         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
1142         diagnostic.
1143         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1144         * config/spu/spu.c (spu_option_override): Start diagnostics with
1145         lowercase letters.  Use %qs for quoting in diagnostics.
1146         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
1147         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
1148         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
1149         from diagnostic.
1150         * convert.c (convert_to_integer, convert_to_vector): Use %' in
1151         diagnostics.
1152         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
1153         letter and use "cannot" spelling.
1154         * expmed.c (extract_fixed_bit_field): Start diagnostic with
1155         lowercase letter and format as a single sentence without '.'.
1156         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
1157         Use %' in diagnostics.
1158         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
1159         Use %' in diagnostics.
1160         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
1161         Use %' in diagnostics.
1162         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
1163         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
1164         with lowercase letters and remove tailing '.' and '\n'.
1165         * lto-cgraph.c (input_profile_summary): Start diagnostic with
1166         lowercase letter and remove trailing '.'.
1167         (input_cgraph): Start diagnostics with lowercase letters and
1168         remove trailing '\n'.
1169         * opts.c (finish_options, common_handle_option): Start diagnostics
1170         with lowercase letters and remove trailing '.'.  Fix typo in
1171         diagnostic.
1172         * passes.c (position_pass): Start diagnostic with lowercase
1173         letter.
1174         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
1175         register_callback, try_init_one_plugin): Start diagnostics with
1176         lowercase letters.
1177         * reload1.c (spill_failure): Use %' in diagnostic.
1178         (gen_reload): Start diagnostic with a lowercase letter.
1179         * stor-layout.c (place_field): Start diagnostic with a lowercase
1180         letter.
1181         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
1182         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
1183         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
1184         Start diagnostics with lowercase letters, remove trailing '.' and
1185         use %' in diagnostics.
1186         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
1187         (verify_ssa): Don't split diagnostic across two error calls.
1188         Spell out "number" and use %' in diagnostic.
1189         * value-prof.c (visit_hist, check_counter): Start diagnostics with
1190         lowercase letters.
1191
1192 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
1193
1194         PR middle-end/46419
1195         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
1196         (_mm_cvtpu16_ps): Ditto.
1197
1198 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
1199
1200         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
1201         warn_larger_than, larger_than_size, warn_frame_larger_than,
1202         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
1203         default_visibility, flag_tls_default): New Variable declarations.
1204         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
1205         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
1206         (v): Declare as Common and document here.
1207         * flags.h (default_visibility, flag_generate_lto,
1208         warn_larger_than, larger_than_size, warn_frame_larger_than,
1209         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
1210         flag_shlib, flag_excess_precision_cmdline): Remove.
1211         (set_Wstrict_aliasing): Update prototype.
1212         * gcc.c (verbose_flag): Remove.
1213         (driver_handle_option): Add diagnostic_context parameter.  Don't
1214         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
1215         incrementing it.
1216         * opts-common.c (handle_option): Pass dc to handler.
1217         * opts.c (warn_larger_than, larger_than_size,
1218         warn_frame_larger_than, frame_larger_than_size,
1219         default_visibility): Remove.
1220         (common_handle_option): Add diagnostic_context parameter.
1221         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
1222         gcc_options parameters.
1223         (lang_handle_option, target_handle_option, read_cmdline_options,
1224         decode_options): Add diagnostic_context parameters.
1225         (finish_options): Access option state through opts pointer where
1226         possible.
1227         (common_handle_option): Access option state through opts pointer
1228         where possible.  Do not set local static variable verbose.  Do not
1229         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
1230         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
1231         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
1232         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
1233         OPT_fwhopr_.  Do not explicitly set .opt file variables for
1234         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
1235         (set_Wstrict_aliasing): Add gcc_options parameter.
1236         * opts.h (struct cl_option_handler_func): Add diagnostic_context
1237         parameter to handler.
1238         (decode_options): Add diagnostic_context parameter.
1239         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
1240         asm_file_name, flag_generate_lto, flag_gen_aux_info,
1241         aux_info_file_name, flag_shlib, flag_tls_default,
1242         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
1243         (toplev_main): Pass global_dc to decode_options.
1244         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
1245         aux_info_file_name, asm_file_name): Remove.
1246         * tree.h (flag_tls_default): Remove.
1247
1248 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
1249
1250         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
1251         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
1252
1253 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
1254
1255         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
1256         (x86_64-*-*): Likewise.
1257         * config/i386/cpuid.h: Define TBM bit.
1258         * config/i386/driver-i386.c (host_detect_local_cpu): Define
1259         and set has_tbm.
1260         * config/i386/i386-c.c (ix86_target_macros_internal): Check
1261         isa_flag for TBM.
1262         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
1263         (OPTION_MASK_ISA_TBM_UNSET): New.
1264         (ix86_handle_option): Handle -mtbm.
1265         (isa_opts): Add -mtbm.
1266         (enum pta_flags): Add PTA_TBM.
1267         (ix86_option_override_internal): Add TBM support.
1268         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
1269         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
1270         (IX86_BUILTIN_BEXTRI64): Likewise.
1271         (bdesc_args): Add TBM intrinsics.
1272         (ix86_expand_builtin): Add TBM specific case.
1273         * config/i386/i386.h (TARGET_TBM): New for TBM.
1274         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
1275         (tbm_bextri_<mode>): Likewise.
1276         (*tbm_blcfill_<mode>): Likewise.
1277         (*tbm_blci_<mode>): Likewise.
1278         (*tbm_blcic_<mode>): Likewise.
1279         (*tbm_blcmsk_<mode>): Likewise.
1280         (*tbm_blcs_<mode>): Likewise.
1281         (*tbm_blsfill_<mode>): Likewise.
1282         (*tbm_blsic_<mode>): Likewise.
1283         (*tbm_t1mskc_<mode>): Likewise.
1284         (*tbm_tzmsk_<mode>): Likewise.
1285         * config/i386/i386.opt: Add -mtbm.
1286         * config/i386/tbmintrin.h (__bextri_u32): New.
1287         (__blcfill_u32): Likewise.
1288         (__blci_u32): Likewise.
1289         (__blcic_u32): Likewise.
1290         (__blcmsk_u32): Likewise.
1291         (__blcs_u32): Likewise.
1292         (__blsfill_u32): Likewise.
1293         (__blsic_u32): Likewise.
1294         (__t1mskc_u32): Likewise.
1295         (__tzmsk_u32): Likewise.
1296         (__bextri_u64): Likewise.
1297         (__blcfill_u64): Likewise.
1298         (__blci_u64): Likewise.
1299         (__blcic_u64): Likewise.
1300         (__blcmsk_u64): Likewise.
1301         (__blcs_u64): Likewise.
1302         (__blsfill_u64): Likewise.
1303         (__blsic_u64): Likewise.
1304         (__t1mskc_u64): Likewise.
1305         (__tzmsk_u64): Likewise.
1306         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
1307         * doc/invoke.texi: Document -mtbm.
1308         * doc/extend.texi: Document TBM built-in functions.
1309
1310 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
1311
1312         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
1313         (x86_64-*-*): Likewise.
1314         * config/i386/cpuid.h: Define BMI bit.
1315         * config/i386/driver-i386.c (host_detect_local_cpu): Define
1316         and set has_bmi.
1317         * config/i386/i386-c.c (ix86_target_macros_internal): Check
1318         isa_flag for BMI.
1319         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
1320         (OPTION_MASK_ISA_BMI_UNSET): New.
1321         (ix86_handle_option): Handle -mbmi.
1322         (isa_opts): Add -mbmi.
1323         (enum pta_flags): Add PTA_BMI.
1324         (ix86_option_override_internal): Add BMI support.
1325         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
1326         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
1327         (IX86_BUILTIN_BEXTR64): Likewise.
1328         (IX86_BUILTIN_CTZS): Likewise.
1329         (bdesc_args): Add BMI intrinsics.
1330         (ix86_expand_args_builtin): Add BMI specific cases.
1331         * config/i386/i386.h (TARGET_BMI): New for BMI.
1332         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
1333         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
1334         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
1335         (UNSPEC_TZCNT): Likewise.
1336         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
1337         (bmi_andn_<mode>): New for BMI.
1338         (bmi_bextr_<mode>): Likewise.
1339         (bmi_blsi_<mode>): Likewise.
1340         (bmi_blsmsk_<mode>): Likewise.
1341         (bmi_blsr_<mode>): Likewise.
1342         * config/i386/i386.opt: Add -mbmi.
1343         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
1344         * config/i386/bmiintrin.h (__lzcnt_u16): New.
1345         (__tzcnt_u16): Likewise.
1346         (__andn_u32): Likewise.
1347         (__bextr_u32): Likewise.
1348         (__blsi_u32): Likewise.
1349         (__blsmsk_u32): Likewise.
1350         (__blsr_u32): Likewise.
1351         (__lzcnt_u32): Likewise.
1352         (__tzcnt_u32): Likewise.
1353         (__andn_u64): Likewise.
1354         (__bextr_u64): Likewise.
1355         (__blsi_u64): Likewise.
1356         (__blsmsk_u64): Likewise.
1357         (__blsr_u64): Likewise.
1358         (__lzcnt_u64): Likewise.
1359         (__tzcnt_u64): Likewise.
1360         * doc/invoke.texi: Document -mbmi and -mno-bmi.
1361         * doc/extend.texi: Document BMI built-in functions.
1362
1363 2010-11-10  Jan Hubicka  <jh@suse.cz>
1364
1365         PR tree-optimize/46228
1366         * doc/invoke.texi (comdat-sharing-probability): Document.
1367         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
1368         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
1369
1370 2010-11-10  Jan Hubicka  <jh@suse.cz>
1371
1372         PR tree-optimize/46228
1373         * cgraph.c (cgraph_propagate_frequency): Fix typo.
1374
1375 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
1376
1377         PR tree-optimization/46414
1378         * tree-inline.c (estimate_move_cost): Check preferred vector
1379         mode for vector type.
1380
1381 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1382
1383         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
1384
1385 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
1386
1387         PR tree-optimization/45971
1388         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
1389         for phi nodes analyzable by scev.
1390
1391 2010-11-10  Richard Guenther  <rguenther@suse.de>
1392
1393         PR tree-optimization/44964
1394         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
1395
1396 2010-11-10  Martin Jambor  <mjambor@suse.cz>
1397
1398         PR tree-optimization/46351
1399         PR tree-optimization/46377
1400         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
1401         aggregate bit-fields.
1402
1403 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
1404
1405         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1406         * doc/tm.texi: Regenerate.
1407         * opts-common.c (tm.h): Don't include.
1408         (target_option_translations): Remove.
1409         (decode_cmdline_options_to_array): Don't handle translating options.
1410         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
1411         * config/darwin-driver.c: Don't condition includes on
1412         CROSS_DIRECTORY_STRUCTURE.
1413         (darwin_default_min_version): Make static.
1414         (darwin_driver_init): New.  Call darwin_default_min_version if not
1415         CROSS_DIRECTORY_STRUCTURE.
1416         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1417         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
1418         (ASM_SPEC): Add %{static}.
1419         (darwin_default_min_version): Don't declare.
1420         (darwin_driver_init): Declare.
1421         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
1422         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
1423         * config/darwin.opt (all_load, allowable_client,
1424         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
1425         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
1426         exported_symbols_list, filelist, findirect-virtual-calls,
1427         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
1428         framework, fterminated-vtables, gfull, gused, image_base, init,
1429         install_name, multi_module, multiply_defined,
1430         multiply_defined_unused, no_dead_strip_inits_and_terms,
1431         seg_addr_table, seg_addr_table_filename, segaddr,
1432         segs_read_only_addr, segs_read_write_addr, single_module,
1433         umbrella, unexported_symbols_list, weak_reference_mismatches,
1434         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
1435         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
1436         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
1437         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
1438         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
1439         (ASM_SPEC): Add %{static}.
1440         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
1441         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1442         (DRIVER_SELF_SPECS): Handle options formerly in
1443         TARGET_OPTION_TRANSLATE_TABLE.
1444         * config/mep/mep.opt (mfar): New.
1445         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1446         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
1447         TARGET_OPTION_TRANSLATE_TABLE.
1448         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
1449         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
1450         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
1451         ffix-and-continue, findirect-data): New.
1452         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1453         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
1454         (mnofpu): Define mask and use Report here.
1455
1456 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1457
1458         * config/s390/s390.c (s390_emit_prologue): Report the stack
1459         size if -fstack-usage is used.
1460
1461 2010-11-10  Richard Guenther  <rguenther@suse.de>
1462
1463         PR tree-optimization/46398
1464         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
1465
1466 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
1467
1468         PR target/44760
1469         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
1470         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
1471         GP_REG_OR_PSEUDO_STRICT_P.
1472         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
1473         unexpected alternative.
1474         (*movsf_internal): Likewise.
1475         (indirect_jump): Replace call to non-existant function with call to
1476         internal_error.
1477         (tablejump): Likewise.
1478         * config/iq2000/iq2000.c: Include df.h .
1479         (iq2000_function_arg_advance): Use CONST_CAST2.
1480         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
1481         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
1482         a non-zero function address.
1483         (iq2000_initial_elimination_offset): Add gcc_unreachable for
1484         unexpected value of FROM.
1485         (symbolic_expression_p): Delete.
1486         (iq2000_function_value): Constify func.
1487         (expand_one_builtin): Use expand_normal.
1488         (iq2000_print_operand): Don't print VALUE if calculating it failed.
1489
1490         PR rtl-optimization/44764
1491         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
1492
1493         PR target/46407
1494         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
1495         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
1496         with ATTRIBUTE_UNUSED.
1497         (valid_psw_flag): Constify parameter which.
1498         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
1499
1500         PR target/46415
1501         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
1502         (mmix_dbx_register_number): Likewise.
1503         * config/mmix/mmix.c: Include df.h .
1504         (mmix_local_alignment): Change argument basic_align and return type
1505         to unsigned.
1506         (mmix_dbx_register_number): Change argument and return type to
1507         unsigned.
1508         (mmix_expand_prologue): Use add_reg_note.
1509
1510         PR target/46417
1511         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
1512         (spu_split_store): Use aform.
1513         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
1514
1515 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1516
1517         PR/46268
1518         * doc/gty.texi (GTY Options): Clarify that variable_size produces
1519         allocators taking size in bytes, compare with length option.  Add
1520         size calculation example.
1521         (Invoking the garbage collector): Ensure that sentences are
1522         followed by two spaces.  Describe that pointer fields must be
1523         initialized at ggc_collect call.
1524         (Troubleshooting): New section.
1525
1526 2010-11-09  Jan Hubicka  <jh@suse.cz>
1527
1528         PR tree-optimization/40436
1529         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
1530         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
1531         normal instructions; be sure bultin is not implemented in this file;
1532         compute non-zero return cost.
1533         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
1534         * tree-inline.h (eni_weights_d): Add return cost.
1535
1536 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
1537
1538         * c-parser.c (c_parser_struct_declaration): Handle declaration
1539         specifiers followed by CPP_CLOSE_BRACE.
1540
1541 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1542
1543         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
1544         split occurs before reload, and we allocate memory at the time of
1545         the split, not during expansion.  Add attributes.
1546         (floatsi<mode>2_lfiwax_mem): Ditto.
1547         (floatunssi<mode>2_lfiwzx): Ditto.
1548         (floatunssi<mode>2_lfiwzx_mem): Ditto.
1549         (floatsidf2): Ditto.
1550         (floatunssisf2): Ditto.
1551         (floatunssidf2): Ditto.
1552         (fix_trunc<mode>si2): Ditto.
1553         (fix_trunc<mode>si2_stfiwx): Ditto.
1554         (fix_trunc<mode>si2_internal): Ditto.
1555         (fix_trunc<mode>si2): Ditto.
1556         (fix_trunc<mode>di2): Ditto.
1557         (fixuns_trunc<mode>si2_stfiwx): Ditto.
1558         (floatsisf2): Ditto.
1559         (floatdidf2_mem): Ditto.
1560         (floatunsdidf2_mem): Ditto.
1561         (floatunsdidf2): Ditto.
1562         (floatdisf2_internal1): Ditto.
1563         (floatdisf2_mem): Ditto.
1564         (floatunsdisf2_mem): Ditto.
1565         (floatsi<mode>2_lfiwax_mem2): Delete.
1566         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
1567         (fix_trunc<mode>si2_mem): Ditto.
1568         (fixuns_trunc<mode>si2_mem): Ditto.
1569         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
1570         type operations to reduce copying the values to multiple memory slots.
1571         (roundu32<mode>2_fprs): Ditto.
1572
1573         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
1574         PRE_INC, PRE_DEC, PRE_MODIFY.
1575         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
1576
1577         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
1578         Delete prototype.
1579
1580 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
1581
1582         PR target/43808
1583         * cfgexpand.c (partition_stack_vars): Call
1584         update_alias_info_with_stack_vars unconditionally.
1585         (update_alias_info_with_stack_vars): Allow unused
1586         unreferenced vars when not optimizing.
1587
1588 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
1589
1590         PR tree-optimization/46036
1591         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
1592         add_to_dst_predicate_list.
1593
1594 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
1595
1596         PR debug/46171
1597         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
1598         earlier.
1599         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
1600         argument, call dead_debug_reset when adding REG_UNUSED note.
1601         (dead_debug_reset): New function.
1602         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
1603         df_create_unused_note callers.
1604
1605 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
1606
1607         * config/fr30/fr30.c: Include "df.h".
1608
1609 2010-11-09  Richard Guenther  <rguenther@suse.de>
1610
1611         PR tree-optimization/46355
1612         * tree-loop-distribution.c (tree_loop_distribution): Do not
1613         distribute loops without a single exit.
1614
1615 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1616
1617         PR rtl-optimization/46237
1618         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
1619         saved hard regs if they might get partially clobbered.
1620
1621 2010-11-09  Paul Koning  <ni1d@arrl.net>
1622
1623         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
1624
1625 2010-11-09  Richard Guenther  <rguenther@suse.de>
1626
1627         PR tree-optimization/46177
1628         * tree-loop-distribution.c (prop_phis): Remove.
1629         (generate_builtin): Re-use the old loop exit edge to avoid
1630         needing to update PHI nodes.
1631
1632 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
1633
1634         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
1635         type of args_size to unsigned HOST_WIDE_INT.
1636
1637         PR target/44755
1638         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
1639         * config/t-pnt16-warn: New file.
1640         * config/picochip/picochip.c (picochip_emit_stack_allocate):
1641         Use add_reg_note.
1642         (picochip_emit_save_register): Likewise.
1643         (picochip_emit_restore_register): Remove variable insn.
1644         (picochip_legitimize_address): Don't use C++ style comments.
1645         (picochip_legitimize_reload_address): Likewise.
1646         (reorder_var_tracking_notes): Remove variable vliw_start.
1647         (picochip_reorg): Cast first arguemnt to emit_note_after to
1648         enum insn_note.
1649         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
1650         (picochip_expand_builtin_3op): Likewise.
1651         (picochip_expand_builtin_2opvoid): Likewise.
1652         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
1653         (picochip_expand_array_testport): Likewise.
1654         (picochip_init_builtins): Remove unused variables.
1655         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
1656         to unsigned long, and output it as such.
1657         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
1658         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
1659         (schedType): Cast result of picochip_schedule_type to
1660         enum attr_schedType.
1661
1662         PR target/44759
1663         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
1664         conditional to type of S.
1665         (mn10300_function_arg): Remove unused variable align.
1666         (mn10300_arg_partial_bytes): Likewise.
1667         * config/mn10300/mn10300.md (attribute cpu): Cast value to
1668         enum attr_cpu.
1669
1670 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1671
1672         PR bootstrap/46392
1673         * gengtype-parse.c (type): Call get_input_file_name to get file name.
1674
1675 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1676
1677         * tree.h (contains_placeholder_p): Fix comment.
1678         (type_contains_placeholder_p): Adjust comment.
1679         * tree.c (contains_placeholder_p): Fix comment.
1680         (type_contains_placeholder_1): Do not recurse on pointed-to types and
1681         adjust comment.
1682         (type_contains_placeholder_p): Add comment.
1683
1684 2010-11-09  Paul Koning  <ni1d@arrl.net>
1685
1686         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
1687         output of byte values.
1688
1689 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
1690
1691         PR middle-end/46360
1692         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
1693         not in SSA mode.
1694
1695 2010-11-09  Richard Guenther  <rguenther@suse.de>
1696
1697         PR middle-end/46221
1698         * varasm.c (compute_visible_aliases): New function.
1699         (remove_unreachable_alias_pairs): Aliases make a target available
1700         even though we reclaimed the cgraph node.
1701         (finish_aliases_1): Likewise.
1702         * Makefile.in (varasm.o): Add pointer-set.h dependency.
1703
1704 2010-11-09  Nick Clifton  <nickc@redhat.com>
1705
1706         * config/mn10300/mn10300-modes.def: New file.
1707
1708 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
1709             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1710
1711         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
1712         (plugin_files, get_file_basename, get_file_realbasename)
1713         (get_file_langdir, error_at_line, gt_files, this_file)
1714         (system_h_file, read_input_list, create_field_all)
1715         (get_file_srcdir_relative_path, get_file_basename)
1716         (get_file_langdir, get_file_gtfilename)
1717         (get_output_file_with_visibility, get_output_file_name)
1718         (struct flist, put_mangled_filename, walk_type)
1719         (put_mangled_filename, finish_root_table, write_roots): Use
1720         input_file-s.
1721         (lang_dir_names, num_lang_dirs): Remove static.
1722         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
1723         (main): Use input_file-s.
1724
1725         * gengtype.h: (struct input_file_st, input_file): New type.
1726         (struct fileloc): Use it.
1727         (gt_files, num_gt_files, this_file, system_h_file)
1728         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
1729         (get_input_file_name): New function.
1730         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
1731         use input_file.
1732         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
1733         (get_output_file_name): Ditto.
1734
1735         * gengtype-lex.l (yybegin): Use input_file.
1736
1737         * gengtype-parse.c (parse_error): Use input_file.
1738
1739 2010-11-08  Xinliang David Li  <davidxl@google.com>
1740
1741         PR tree-optimization/46316
1742         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
1743         * double-int.h (double_int_mul_with_sign): New function.
1744         * double-int.c (double_int_mul_with_sign): New function.
1745
1746 2010-11-08  Paul Koning  <ni1d@arrl.net>
1747
1748         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
1749
1750 2010-11-08  Paul Koning  <ni1d@arrl.net>
1751
1752         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
1753
1754 2010-11-08  Paul Koning  <ni1d@arrl.net>
1755
1756         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
1757         to 8 bits.
1758
1759 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1760
1761         PR target/46378
1762         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1763         turn on ISA 2.04 rounding instructions for power5.
1764
1765         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
1766         not ISA 2.02.
1767
1768         PR target/45585
1769         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
1770         in FPR registers.
1771         (movdi_low_st): Ditto.
1772
1773 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
1774             Richard Henderson  <rth@redhat.com>
1775
1776         PR target/44758
1777         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
1778         (attribute acc_group): Cast value to enum attr_acc_group.
1779         (*movdi_nodouble+6): Use gen_int_mode.
1780         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
1781         if RTX_CODE is defined or not.
1782         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
1783         struct frv_io.
1784         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
1785         (frv_frame_access, frv_expand_prologue): Remove unused variables.
1786         (frv_expand_block_clear): Likewise.
1787         (frv_trampoline_init): Use LCT_NORMAL.
1788         (struct frv_packet_group): New struct, broken out of type of
1789         frv_packet.
1790         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
1791         use cast in loop counter increment.
1792         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
1793         assigning to io->type.
1794         (bdesc_set): Use rtx_code UNKNOWN in initializer.
1795         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
1796         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
1797         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
1798         (frv_read_argument): Use expand_normal.
1799
1800         PR target/44757
1801         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
1802         lm32_legitimate_constant_p.
1803         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
1804         * config/lm32/lm32.c (gen_int_relational): Make new block for
1805         LE / LT / LEU / LTU case.  Declare variables at start of block.
1806         (lm32_block_move_inline): Use XALLOCAVEC.
1807
1808 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1809
1810         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
1811
1812 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
1813
1814         * gengtype (get_output_file_for_structure): Ensure type is union
1815         or struct.
1816         (write_splay_tree_allocator_def): Use
1817         get_output_file_with_visibility.
1818
1819 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1820
1821         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
1822         to defined values in case of an error.
1823         (s390_option_override): Skip further processing if the -march
1824         parameter wasn't recognized.
1825
1826 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
1827
1828         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
1829         assert that REG is a hard register number before using it as an index.
1830
1831         PR bootstrap/46358
1832         * config/i386/i386.c (ix86_expand_split_stack_prologue):
1833         Avoid warnings when HOST_WIDE_INT is 32 bit.
1834
1835 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1836
1837         PR target/46208
1838         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
1839         (sparc_promote_prototypes): Likewise.
1840         (sparc_promote_function_mode): Promote in 32-bit mode as well.
1841         (sparc_return_in_memory): Remove superfluous parentheses.
1842         (sparc_struct_value_rtx): Fix long lines.
1843         (sparc_function_value_1): Promote in 32-bit mode as well.
1844
1845 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
1846
1847         PR rtl-optimization/45352
1848         * sel-sched.c (find_best_expr): Do not set pneed_stall when
1849         the variable_issue hook is not implemented.
1850         (fill_insns): Remove dead variable stall_iterations.
1851         (init_seqno_1): Force EBB start for resetting sched cycles on any
1852         successor blocks of the rescheduled region.
1853         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
1854         (reset_sched_cycles_in_current_ebb): Add debug printing.
1855         New variable issued_insns.  Advance state when we have issued
1856         issue_rate insns.
1857
1858 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
1859
1860         * gengtype (main): Get here's position using POS_HERE macro for
1861         do*typedef calls.
1862
1863 2010-11-07  Ian Lance Taylor  <iant@google.com>
1864
1865         PR target/46089
1866         * config/i386/i386.c (split_stack_fn_large): New static variable.
1867         (ix86_expand_split_stack_prologue): Handle large model.
1868
1869 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
1870
1871         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
1872         all possible addressing modes.
1873
1874 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
1875
1876         PR tree-optimization/46346
1877         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
1878
1879 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
1880
1881         * config/mips/mips.c: Revert previous patch.
1882         * config/mips/mips.md: Likewise.
1883
1884 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
1885
1886         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
1887         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
1888         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
1889         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
1890         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
1891         to use FMA.
1892         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
1893         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
1894         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
1895         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
1896
1897 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
1898
1899         PR c/43384
1900         * c-decl.c (lookup_label): Labels can only be referenced in a
1901         function's scope.
1902         (store_parm_decls_oldstyle): Skip erroneous parameters.
1903
1904 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
1905
1906         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1907         LIBCALL_VALUE): Remove macros.
1908         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1909         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1910         (fr30_function_value_regno_p, fr30_function_value,
1911         fr30_libcall_value): New functions.
1912
1913 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
1914
1915         PR middle-end/46314
1916         * target.def (generate_internal_label): New asm_out hook.
1917         * output.h (default_generate_internal_label): Declare.
1918         * varasm.c (default_generate_internal_label): Define.
1919
1920 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
1921
1922         PR target/44981
1923         * doc/extend.tex (format): Document NSString extension.
1924         (format_arg): Likewise.
1925         (Darwin Format Checks): New section.
1926         * doc/tm.texi: Document string object hooks (generated).
1927         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
1928         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
1929         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
1930         * target.def (objc_construct_string_object): Rename, amend
1931         documentation.
1932         (string_object_ref_type_p): New hook.
1933         (check_string_object_format_arg): New hook.
1934         * c-parser.c (c_parser_attributes): Allow objective-c class names as
1935         attribute identifiers.
1936         * config/darwin-c.c (darwin_cfstring_ref_p): New.
1937         (darwin_check_cfstring_format_arg): New.
1938         (darwin_additional_format_types): New.
1939         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
1940         (darwin_check_cfstring_format_arg): New.
1941         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
1942         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
1943         (TARGET_N_FORMAT_TYPES): New.
1944         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
1945
1946 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
1947             Pascal Obry  <obry@adacore.com>
1948
1949         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
1950         in 64-bit mode and 17 otherwise.
1951
1952 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1953
1954         PR debug/45939
1955         * var-tracking.c (emit_note_insn_var_location): Make sure that
1956         call related var location notes come before the normal ones.
1957
1958 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1959
1960         PR target/46326
1961         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
1962         in the last change.
1963
1964 2010-11-05  Ian Lance Taylor  <iant@google.com>
1965
1966         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
1967
1968 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
1969
1970         PR c/44772
1971         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
1972         pointer_set_contains if DECL_NAME is NULL.
1973
1974 2010-11-05  Ian Lance Taylor  <iant@google.com>
1975
1976         PR target/46084
1977         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
1978         request enough additional space for alignment, and force alignment.
1979
1980 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
1981
1982         * config/i386/i386.c (legitimate_pic_address_disp_p):
1983         Handle UNSPEC_PCREL.
1984         (ix86_legitimate_address_p): Likewise.
1985         (legitimize_pic_address): Likewise.
1986         (output_pic_addr_const): Likewise.
1987         (ix86_delegitimize_address): Likewise.
1988         (ix86_find_base_term): Likewise.
1989         (memory_address_length): Likewise.
1990         (x86_output_mi_thunk): Handle special case x64
1991         for non local binding.
1992         * config/i386/i386.md (UNSPEC_PCREL): New.
1993         * config/i386/winnt.c (i386_pe_binds_local_p):
1994         Allow weak symbol for x64 windows with non-local binding.
1995
1996 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
1997
1998         PR target/45670
1999         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
2000         instead of EXPAND_NORMAL for base expansion.
2001
2002 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
2003
2004         * config.gcc: Support --with-fpmath=avx for x86.
2005         * config/i386/avxmath.h: New.
2006         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
2007
2008 2010-11-05  Ian Lance Taylor  <iant@google.com>
2009
2010         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
2011         * gengtype.c (walk_type): Don't recognize descbits option.
2012
2013 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
2014
2015         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
2016         WORD_SWITCH_TAKES_ARG): Remove.
2017         * doc/options.texi (Args): Document.
2018         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
2019         * doc/tm.texi: Regenerate.
2020         * opt-functions.awk (switch_flags): Handle Args.
2021         * opts-common.c: Update comment on tm.h include.
2022         (decode_cmdline_option): Handle options with multiple arguments.
2023         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
2024         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
2025         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
2026         CL_COMMON): Update values.
2027         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
2028         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
2029         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
2030         sectobjectsymbols, sectorder, segcreate, segprot): New.
2031
2032 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
2033             Uros Bizjak  <ubizjak@gmail.com>
2034
2035         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
2036         256bit AVX register is used.
2037         (ix86_expand_vector_move_misalign): Likewise.
2038         (ix86_expand_vector_move): Replace use_avx256_p with
2039         VALID_AVX256_REG_MODE.
2040
2041 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
2042
2043          PR target/44750
2044         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
2045         change.  Set $@-warn.o to -Wno-error.
2046
2047         PR bootstrap/44756
2048         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
2049         comparing it to a signed value.
2050
2051         PR middle-end/44766
2052         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
2053         PR bootstrap/44770
2054         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
2055         to i.
2056
2057         PR target/44754
2058         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
2059         (m32c_function_arg).  Add comma between arguments two and three.
2060         (m32c_promote_prototypes): Remove declaration.
2061         (current_function_special_page_vector): Likewise.
2062         (m32c_regno_reg_class): Change return type to enum reg_class.
2063         (m32c_pushm_popm): Use add_reg_note.
2064         (m32c_push_rounding): Change return type to unsigned int.
2065         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
2066         enum reload_type.
2067         (m32c_insert_attributes): Constify variable name.
2068         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
2069         (m32c_prepare_shift): Remove variable lref.
2070         (m32c_expand_movcc): Remove variable cmp.
2071         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
2072         (m32c_compare_redundant): Remove variable op2.
2073         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
2074         (m32c_pragma_memregs): Assign the number to target_memregs.
2075         (m32c_pragma_address): Remove variable var_str.
2076         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
2077         enum reg_class.
2078         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
2079         * config/m32c/bitops.md (andsi3): Add default case to switch.
2080         (iorsi3, xorsi3): Likewise.
2081         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
2082         * config/m32c/jump.md (call, call_value): Likewise.
2083         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
2084         (m32c_regno_reg_class): Likewise.
2085         (current_function_special_page_vector): Declare.
2086
2087 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
2088
2089         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
2090
2091         PR tree-optimization/46099
2092         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
2093         if it is NULL and uid wasn't found in the hash table.  Just fold the
2094         result if it is NULL otherwise.  Insert other potentially needed
2095         stmts right before current stmt instead of on the entry edge.
2096         (struct elv_data): Add gsi and reset fields.
2097         (eliminate_local_variables_1): Adjust caller.  If take_address_of
2098         failed for debug stmt, set dta->reset and return.
2099         (eliminate_local_variables_stmt): Change STMT argument for GSI,
2100         pass GSI through to the callback, handle resetting of debug stmts.
2101         (eliminate_local_variables): Adjust caller.  Process debug stmts
2102         in second phase.
2103
2104         PR middle-end/43690
2105         * gimplify.c (gimplify_asm_expr): If a "m" input is a
2106         {pre,post}{in,de}crement, fail.
2107
2108         PR debug/46307
2109         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
2110         * tree-pretty-print.c (dump_generic_node): Likewise.
2111         (op_code_prio): Likewise.
2112         * cfgexpand.c (expand_debug_expr): Likewise.
2113
2114 2010-11-04  Paul Koning  <ni1d@arrl.net>
2115
2116         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
2117         constraints.
2118
2119 2010-11-04  Chao-ying Fu  <fu@mips.com>
2120
2121         * configure.ac: Test assembler support for DSP Rev1 mult.
2122         * configure: Regenerate.
2123         * config.in: Regenerate.
2124         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
2125         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
2126         (CODE_FOR_mips_multu): New define.
2127         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
2128         dspr2_32 to dsp_32.
2129         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
2130         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
2131         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
2132         New define_expand patterns.
2133         * config/mips/constraints.md (ka): Update the constraint to test
2134         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
2135         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
2136         mips_multu): Delete.
2137         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
2138         Change target constraint to "ka".
2139         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
2140         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
2141         Emit the accumulator destination when ISA_HAS_DSP_MULT.
2142         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
2143         Emit the accumulator destination when ISA_HAS_DSP_MULT.
2144         (<u>maddsidi4): Likewise.
2145         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
2146         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
2147
2148 2010-11-04  Paul Koning  <ni1d@arrl.net>
2149
2150         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
2151
2152 2010-11-04  Paul Koning  <ni1d@arrl.net>
2153
2154         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
2155
2156 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
2157
2158         Fixed using the Objective-C 2.0 dot-syntax with class names.
2159         * c-parser.c (c_parser_next_token_starts_declspecs): In
2160         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
2161         (c_parser_next_token_starts_declaration): Same.
2162         (c_parser_postfix_expression): Parse the Objective-C 2.0
2163         dot-syntax with a class name.
2164
2165 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
2166
2167         * final.c (compute_alignments): Compute/free loop info all the time.
2168         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
2169         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
2170         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
2171         * config/rs6000/rs6000.c (cfgloop.h): Include.
2172         (can_override_loop_align): New.
2173         (rs6000_option_override_internal): Set it.
2174         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
2175         (rs6000_loop_align): New function.
2176         (rs6000_loop_align_max_skip): Likewise.
2177
2178 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2179
2180         PR driver/45703
2181         * collect2.c (main): Print --help output to stdout.  Do not
2182         exit right away, so ld --help is appended.  Add empty lines
2183         to separate output suitably.
2184
2185 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
2186
2187         PR tree-optimization/46233
2188         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
2189         after calling analyze_function, not before.
2190
2191         PR target/46234
2192         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
2193         instead of build_va_arg_indirect_ref.
2194         * config/spu/spu.c (spu_va_start): Likewise.
2195         * config/s390/s390.c (s390_va_start): Likewise.
2196
2197 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
2198
2199         PR middle-end/46292
2200         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
2201         if the innermode is not vector mode, determine the mode of a subreg
2202         by using mode_for_size of inner_size.
2203
2204 2010-11-04  Richard Guenther  <rguenther@suse.de>
2205
2206         PR rtl-optimization/46183
2207         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
2208         (execute_rtl_pre): Likewise.
2209         (execute_rtl_hoist): Likewise.
2210
2211 2010-11-04  Richard Guenther  <rguenther@suse.de>
2212
2213         PR tree-optimization/46068
2214         * ipa-split.c (consider_split): Remove gcc_unreachable.
2215
2216 2010-11-04  Richard Guenther  <rguenther@suse.de>
2217
2218         * tree-nested.c (build_addr): Use build_fold_addr_expr.
2219
2220 2010-11-04  Richard Guenther  <rguenther@suse.de>
2221
2222         PR tree-optimization/45991
2223         * gimplify.c (force_gimple_operand_1): Use the provded test
2224         function in the initial test.
2225
2226 2010-11-04  Jeff Law  <law@redhat.com>
2227
2228         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
2229         of readonly memory equivalances for const/pure calls.
2230
2231 2010-11-04  Richard Guenther  <rguenther@suse.de>
2232
2233         PR tree-optimization/45733
2234         * tree-vect-stmts.c (reverse_vec_elements): Honor the
2235         permute builtins function return type.
2236
2237 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
2238
2239         PR middle-end/44765
2240         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
2241         as an index, check it is not INVALID_REGNUM.
2242
2243         PR bootstrap/44756
2244         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
2245         unsignedp.
2246         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
2247
2248         PR bootstrap/44756
2249         * function.c (thread_prologue_and_epilogue_insns): Add
2250         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
2251
2252         PR bootstrap/44756
2253         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
2254
2255         PR target/44750
2256         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
2257         (pdp11_preferred_reload_class): Rename class to rclass.
2258         (pdp11_preferred_output_reload_class): Likewise.
2259         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
2260         ALL_COMPILERFLAGS .
2261         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
2262
2263         PR bootstrap/44756
2264         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
2265         iteration variables to enum machine_mode.
2266
2267         PR target/44751
2268         * config/h8300/h8300.c: Include df.h.
2269         (push, pop): Use add_reg_note.
2270         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
2271         (compute_a_shift_cc): Likewise.
2272         (expand_a_shift): Argument code has type enum rtx_code.
2273         (struct shift_insn): Member cc_valid has type enum attr_cc.
2274         (struct shift_info) <cc_inline, cc_special>: Likewise.
2275         enum attr_cc.
2276         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
2277         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
2278
2279 2010-11-04  Ira Rosen  <irar@il.ibm.com>
2280
2281         PR tree-optimization/46213
2282         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
2283         MINUS_EXPR only if the first operand is reduction operand.
2284
2285 2010-11-04  Richard Guenther  <rguenther@suse.de>
2286             Richard Henderson  <rth@redhat.com>
2287
2288         * tree.def (FMA_EXPR): New tree code.
2289         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
2290         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
2291         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
2292         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
2293         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
2294         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
2295         (execute_optimize_widening_mul): Call it.  Reorganize to allow
2296         dead stmt removal.  Move TODO flags ...
2297         (pass_optimize_widening_mul): ... here.
2298         * flag-types.h (enum fp_contract_mode): New enum.
2299         * common.opt (flag_fp_contract_mode): New variable.
2300         (-ffp-contract): New option.
2301         * opts.c (common_handle_option): Handle it.
2302         * doc/invoke.texi (-ffp-contract): Document.
2303         * tree.h (fold_fma): Declare.
2304         * builtins.c (fold_fma): New function.
2305         (fold_builtin_fma): Likewise.
2306         (fold_builtin_3): Call it for fma.
2307         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
2308         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
2309         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
2310         New expanders.
2311         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
2312         named patterns.
2313         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
2314         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
2315         (fms_optab, fnma_optab, fnms_optab): New defines.
2316         * gimplify.c (gimplify_expr): Handle binary truth expressions
2317         explicitly.  Handle FMA_EXPR.
2318         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
2319         operations.
2320
2321 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
2322             Richard Guenther  <rguenther@suse.de>
2323
2324         * passes.c (init_optimization_passes): Move veclower after SSA.
2325         * tree-vect-generic.c (uniform_vector_p): New function.
2326         (expand_vector_operations_1): Handle conversion.
2327         (pass_lower_vector): Update SSA form.
2328
2329 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
2330
2331         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
2332         plugin capabilities.
2333         * configure: Regenerate.
2334
2335 2010-11-03  Xinliang David Li  <davidxl@google.com>
2336
2337         PR target/46200
2338         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
2339         Adjust cbase if the use stmt is after iv update.
2340
2341 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
2342
2343         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
2344
2345 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
2346
2347         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
2348         comment.  Pass true to the last argument of output_stack_adjust.
2349
2350 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
2351
2352         PR target/46295
2353         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
2354         if 256bit AVX register is used.
2355
2356 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2357
2358         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
2359         xsmindp/xsmaxdp on VSX for single precision min/max.
2360         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
2361         (vsx_sminsf3): Ditto.
2362
2363 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2364
2365         * combine.c (try_combine): Fix formatting issues, improve comments and
2366         fix a pasto.
2367
2368 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2369
2370         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
2371         of the result before building binary expressions.
2372
2373 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
2374
2375         PR rtl-optimization/45865
2376         * Makefile.in (df-problems.o): Revert revision 164552.
2377         * basic-block.h (enum bb_flags): Likewise.
2378         * cfgcleanup.c (block_was_dirty): Likewise.
2379         (try_forward_edges): Likewise.
2380         (try_crossjump_bb): Likewise.
2381         (try_head_merge_bb): Likewise.
2382         (try_optimize_cfg): Likewise.
2383         (cleanup_cfg): Likewise.
2384         * df-core.c (df_set_bb_dirty): Likewise.
2385         * df-problems.c: Likewise.
2386         (df_simulate_find_uses): Likewise.
2387         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
2388         (find_memory, find_memory_store): Likewise.
2389         (can_move_insns_across): Likewise.
2390         * df.h (can_move_insns_across): Likewise.
2391         * ifcvt.c (find_memory): Likewise.
2392         (dead_or_predicable): Likewise.
2393
2394 2010-11-03  Richard Guenther  <rguenther@suse.de>
2395
2396         PR middle-end/46288
2397         * predict.c (strip_predict_hints): Simply DCE builtin expect if
2398         the result is unused.
2399
2400 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
2401
2402         PR tree-optimization/46009
2403         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
2404         cond_if_else_store_replacement if bb1 and bb2 have the same
2405         single successor.
2406         (cond_store_replacement): Use gimple_assign_single_p, don't
2407         check if rhs is SSA_NAME or invariant.  Call release_defs for
2408         assign.
2409         (cond_if_else_store_replacement): New function.
2410
2411 2010-11-03  Richard Guenther  <rguenther@suse.de>
2412
2413         * opts.c (finish_options): Properly check for all WHOPR
2414         flags before complaining about -flto-partition.
2415
2416 2010-11-04  Alan Modra  <amodra@gmail.com>
2417
2418         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
2419         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
2420         TARGET_SECURE_PLT.
2421         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
2422         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
2423         on input, "r" on output.
2424
2425 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
2426
2427         Implemented -fobjc-std=objc1 flag.
2428         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
2429         option.
2430         * doc/standards.texi (Standards): Updated the section on
2431         Objective-C; mention support for Objective-C 2.0 features and the
2432         new -fstd-objc=objc1 flag to disable them.
2433
2434 2010-11-03  Richard Guenther  <rguenther@suse.de>
2435
2436         PR middle-end/46241
2437         * dwarf2out.c (scope_die_for): Properly detect global scope.
2438
2439 2010-11-03  Richard Guenther  <rguenther@suse.de>
2440
2441         PR tree-optimization/46190
2442         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2443         Properly compute peel iterations.
2444
2445 2010-11-03  Richard Guenther  <rguenther@suse.de>
2446
2447         PR tree-optimization/46286
2448         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
2449         re-allocated vector data.
2450
2451 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
2452
2453         PR target/46285
2454         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
2455         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
2456         is completed.
2457
2458 2010-11-03  Richard Guenther  <rguenther@suse.de>
2459
2460         PR tree-optimization/46217
2461         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
2462         flag matches.
2463         (execute_update_addresses_taken): Likewise.
2464
2465 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
2466
2467         PR bootstrap/44335
2468         * targhooks.c (targhook_words_big_endian): New function.
2469         (targhook_float_words_big_endian): Likewise.
2470         * targhooks.h (targhook_words_big_endian): Declare.
2471         (targhook_float_words_big_endian): Likewise.
2472         * target.def (words_big_endian, float_words_big_endian): New hooks.
2473
2474 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
2475
2476         PR tree-optimization/46165
2477         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
2478         a normal call into noreturn call.
2479
2480 2010-11-03  Richard Guenther  <rguenther@suse.de>
2481
2482         PR middle-end/46251
2483         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
2484         not INDIRECT_REFs.
2485
2486 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
2487
2488         PR tree-optimization/46107
2489         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
2490         if cfg_hook_duplicate_loop_to_header_edge failed.
2491
2492 2010-11-03  Ian Lance Taylor  <iant@google.com>
2493
2494         PR lto/46273
2495         * config.gcc: Don't set lto_binary_reader.
2496         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
2497         (Configuration): Mention --disable-lto.  Remove --with-libelf
2498         paragraph.
2499
2500 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
2501
2502         PR debug/46252
2503         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
2504         prev_real_insn.
2505         * gcse.c (insert_insn_end_basic_block): Likewise.
2506
2507         PR rtl-optimization/46034
2508         PR rtl-optimization/46212
2509         PR rtl-optimization/46248
2510         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
2511         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
2512         before i0dest -> i0src substitution and pass 1 instead of 0 as last
2513         argument to subst on i2pat.
2514
2515 2010-11-02  Ian Lance Taylor  <iant@google.com>
2516
2517         * configure.ac: Use AC_SYS_LARGEFILE.
2518         * configure: Rebuild.
2519         * config.in: Rebuild.
2520
2521 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
2522
2523         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
2524         fold_convert.
2525         * c-typeck.c (build_function_call_vec): Likewise.
2526         * cfgexpand.c (expand_debug_expr): Likewise.
2527         * cgraphunit.c (assemble_thunk): Likewise.
2528         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
2529         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
2530         (fold_binary_loc, fold_ternary_loc): Likewise.
2531         * gimple-fold.c (get_symbol_constant_value): Likewise.
2532         * gimple-low.c (lower_builtin_setjmp): Likewise.
2533         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
2534         * gimplify.c (gimplify_init_constructor): Likewise.
2535         * lambda.h (build_linear_expr): Likewise.
2536         * omp-low.c (omp_reduction_init): Likewise.
2537         * tree-inline.c (remap_ssa_name): Likewise.
2538         * tree-object-size.c (compute_object_sizes): Likewise.
2539         * tree-sra.c (init_subtree_with_zero): Likewise.
2540         (sra_ipa_modify_assign): Likewise.
2541         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
2542         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
2543         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
2544         (undistribute_ops_list): Likewise.
2545         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
2546         * tree-vect-stmts.c (vectorizable_call): Likewise.
2547         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
2548         (build_zero_cst): Handle more cases directly.  Update comment.
2549
2550 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2551
2552         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
2553         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
2554
2555         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
2556         and call ix86_split_call_vzeroupper instead of
2557         ix86_split_call_pop_vzeroupper.
2558         (*call_pop_1_vzeroupper): Likewise.
2559         (*sibcall_pop_1_vzeroupper): Likewise.
2560         (*call_value_pop_0_vzeroupper): Likewise.
2561         (*call_value_pop_1_vzeroupper): Likewise.
2562         (*sibcall_value_pop_1_vzeroupper): Likewise.
2563
2564 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2565
2566         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
2567
2568 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
2569
2570         * basic-block.h (insert_insn_end_bb_new): Delete.
2571         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
2572
2573 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
2574             H.J. Lu  <hongjiu.lu@intel.com>
2575
2576         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
2577         (ix86_split_call_pop_vzeroupper): Likewise.
2578
2579         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
2580         (ix86_expand_call): Conditionally decorate calls with
2581         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
2582         (ix86_split_call_vzeroupper): New.
2583         (ix86_split_call_pop_vzeroupper): Likewise.
2584
2585         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
2586         (*call_pop_0_vzeroupper): New insn_and_split pattern.
2587         (*call_pop_1_vzeroupper): Likewise.
2588         (*sibcall_pop_1_vzeroupper): Likewise.
2589         (*call_0_vzeroupper): Likewise.
2590         (*call_1_vzeroupper): Likewise.
2591         (*sibcall_1_vzeroupper): Likewise.
2592         (*call_1_rex64_vzeroupper): Likewise.
2593         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
2594         (*call_1_rex64_large_vzeroupper): Likewise.
2595         (*sibcall_1_rex64_vzeroupper): Likewise.
2596         (*call_value_pop_0_vzeroupper): Likewise.
2597         (*call_value_pop_1_vzeroupper): Likewise.
2598         (*sibcall_value_pop_1_vzeroupper): Likewise.
2599         (*call_value_0_vzeroupper): Likewise.
2600         (*call_value_0_rex64_vzeroupper): Likewise.
2601         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
2602         (*call_value_1_vzeroupper): Likewise.
2603         (*sibcall_value_1_vzeroupper): Likewise.
2604         (*call_value_1_rex64_vzeroupper): Likewise.
2605         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
2606         (*call_value_1_rex64_large_vzeroupper): Likewise.
2607         (*sibcall_value_1_rex64_vzeroupper): Likewise.
2608
2609 2010-11-02  Ian Lance Taylor  <iant@google.com>
2610
2611         PR lto/46273
2612         * config.gcc: Revert last patch: set lto_binary_reader.
2613
2614 2010-11-02  Richard Guenther  <rguenther@suse.de>
2615
2616         PR tree-optimization/46149
2617         * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
2618         non-indirect MEM_REF variants.
2619
2620 2010-11-02  Richard Guenther  <rguenther@suse.de>
2621
2622         PR tree-optimization/46216
2623         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2624         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
2625
2626 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2627
2628         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
2629         (*-*-osf*): Likewise.
2630         * configure: Regenerate.
2631
2632 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2633
2634         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
2635         for Intel Core 2 and Core i7.
2636
2637 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
2638
2639         Model decoder of Core 2/i7 for multipass scheduling.
2640
2641         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
2642         New type to hold target-specific data for multipass scheduling.
2643         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
2644         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
2645         Core 2/i7.
2646         (core2i7_secondary_decoder_max_insn_size,)
2647         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
2648         New static variables.
2649         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
2650         ([_]ix86_first_cycle_multipass_data): New static variable.
2651         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
2652         Implement targetm.sched hooks.
2653         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
2654         of ...
2655         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
2656         Implement new targetm.sched hooks.
2657         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
2658         targetm.sched hook to install multipass scheduling hooks on demand.
2659
2660         * doc/tm.texi.in: Document new targetm.sched hooks.
2661         * doc/tm.texi: Regenerate.
2662
2663         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
2664         (first_cycle_multipass_data_t): New typedef.
2665         (struct choice_entry: target_data): New field.
2666         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
2667         to allow target model restrictions not represented in DFA.
2668         (choose_ready, schedule_block): Update.
2669         (sched_extend_ready_list, sched_finish_ready_list): Call new target
2670         hooks to initialize target-specific data for multipass scheduling.
2671         * sched-int.h (max_issue): Update declaration.
2672         * sel-sched.c (choose_best_insn): Update.
2673         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
2674         (first_cycle_multipass_{init, fini}): Define and document new
2675         targetm.sched hooks.
2676
2677 2010-11-02  Richard Guenther  <rguenther@suse.de>
2678
2679         PR tree-optimization/46184
2680         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
2681         input vector type from the reduction operand as well.
2682
2683 2010-11-02  Richard Guenther  <rguenther@suse.de>
2684
2685         PR tree-optimization/46177
2686         * tree-loop-distribution.c (prop_phis): Use
2687         mark_virtual_phi_result_for_renaming.
2688
2689 2010-11-02  Martin Jambor  <mjambor@suse.cz>
2690
2691         PR middle-end/46120
2692         * tree.c (get_binfo_at_offset): Bail out on artificial
2693         fields.  Identify primary bases according to their offsets.
2694
2695 2010-11-02  Martin Jambor  <mjambor@suse.cz>
2696
2697         PR tree-optimization/45875
2698         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
2699         (gimple_get_relevant_ref_binfo): Detect primary bases according to
2700         their field offset.
2701
2702 2010-11-02  Ian Lance Taylor  <iant@google.com>
2703
2704         * doc/install.texi (Configuration): Note in two places that Java
2705         is not enabled by default.
2706
2707 2010-11-02  Ian Lance Taylor  <iant@google.com>
2708
2709         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
2710         (Configuration): Mention --disable-lto.  Remove --with-libelf
2711         paragraph.
2712
2713 2010-11-02  Ian Lance Taylor  <iant@google.com>
2714
2715         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
2716         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
2717         LIBELFINC.  Remove HAVE_libelf.
2718         * config.gcc: Don't set lto_binary_reader.
2719         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
2720         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
2721         (LIBS): Remove $(LIBELFLIBS).
2722         (INCLUDES): Remove $(LIBELFINC).
2723         * configure: Rebuild.
2724         * config.in: Rebuild.
2725
2726 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
2727
2728         * config/microblaze/microblaze-protos.h (function_arg): Delete.
2729         (function_arg_advance): Delete.
2730         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
2731         (FUNCTION_ARG): Delete.
2732         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
2733         (microblaze_function_arg_advance): ...this.  Make static.  Take a
2734         const_tree and a bool.
2735         (function-arg): Rename to...
2736         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
2737         and a bool.
2738         (microblaze_expand_prologue): Call targetm.calls.function_arg and
2739         targetm.calls.function_arg_advance.
2740         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2741
2742 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
2743
2744         Merge from FSF "apple/trunk" branch.
2745
2746         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
2747         * config/darwin.opt: .. to here.
2748         (matt-stubs): New option.
2749         * config/i386/darwin.opt: Delete.
2750         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
2751         (MACHO_DYNAMIC_NO_PIC_P): New.
2752         (MACHOPIC_INDIRECT): New.
2753         (MACHOPIC_PURE): New.
2754         * config/i386/darwin.h (DARWIN_X86) Define to 1.
2755         (MACHOPIC_ATT_STUB): New.
2756         (CC1_SPEC): Do not remove mdynamic-no-pic.
2757         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
2758         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
2759         (FUNCTION_PROFILER): Correct over-length line.
2760         (SUBTARGET_OVERRIDE_OPTIONS): New.
2761         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
2762         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
2763         (legitimate_constant_p): Handle mdynamic-no-pic.
2764         (ix86_legitimate_address_p): Likewise.
2765         (ix86_legitimize_address): Likewise.
2766         (ix86_expand_move): Likewise.
2767         (machopic_output_stub): Update for ATT-style stubs and
2768         mdynamic-no-pic.
2769         * config/darwin-protos.h (machopic_symbol_defined_p): New.
2770         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
2771         TARGET_DYNAMIC_NO_PIC: Remove.
2772         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
2773         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
2774         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
2775         Remove handling of mdynamic-no-pic.
2776         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
2777         Define if required.
2778         (machopic_symbol_defined_p): Do not try to use current_function_decl
2779         when generating _get_pc thunks within stubs.
2780         (machopic_indirect_data_reference): Rework for direct conditionals
2781         rather than #ifdefs, add x86 mdynamic-no-pic
2782         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
2783         defined value.
2784         (darwin_override_options): Handle mdynamic-no-pic here.
2785         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
2786         (machopic_lazy_symbol_ptr3_section): New.
2787         (machopic_picsymbol_stub2_section): New.
2788         (machopic_picsymbol_stub3_section): New.
2789         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
2790         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
2791         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2792         Moved common definition from x86 and rs6000.
2793         (MACHO_DYNAMIC_NO_PIC_P): Override value.
2794         (MACHOPIC_INDIRECT): Likewise.
2795         (MACHOPIC_PURE): Likewise.
2796         * config.gcc (x86-darwin-*): Remove darwin.opt.
2797
2798 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
2799
2800         PR debug/46255
2801         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
2802         instead of gsi_last_bb.
2803
2804 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
2805             Maxim Kuvyrkov  <maxim@codesourcery.com>
2806
2807         * config/i386/i386.c (cpu_names): Add "corei7".
2808         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
2809
2810 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
2811             Maxim Kuvyrkov  <maxim@codesourcery.com>
2812
2813         Tune alignment for Intel Core i7
2814
2815         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
2816         (enum processor_type): Update comment.  Add entries for Core i7.
2817         * config/i386-c.c (ix86_target_macros_internal): Update.
2818         * config/i386.c (m_COREI7{_32,_64}): New macros.
2819         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
2820         (processor_target_table): Tune alignment for Core i7.
2821         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
2822
2823         * doc/invoke.texi: Document "corei7" option value.
2824
2825 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
2826             Maxim Kuvyrkov  <maxim@codesourcery.com>
2827             H.J. Lu  <hjl.tools@gmail.com>
2828
2829         Basic support for Intel Core i7
2830
2831         * i386.c (ix86_option_override_internal): Add entry for corei7, use
2832         generic tuning.  Use generic32 when compiling for 32-bit ABI.
2833
2834 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
2835
2836         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
2837         sections and call darwin_asm_dwarf_section() to handle them.
2838         (darwin_asm_dwarf_section): New.
2839         (darwin_file_start): Remove code emitting dwarf section symbols.
2840
2841 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
2842
2843         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
2844         explicitly disable stack protection when building libgcc.
2845         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
2846
2847 2010-11-01  Jason Merrill  <jason@redhat.com>
2848
2849         * fold-const.c (fold_indirect_ref_1): Handle folding
2850         POINTER_PLUS_EXPR to ARRAY_REF.
2851
2852 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
2853
2854         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
2855         (sh_delegitimize_address): New function.
2856
2857 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
2858
2859         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
2860         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
2861         (CC1_SPEC): Don't handle -target.
2862         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
2863         options.
2864         * config/darwin.opt (Zallowable_client, Zbundle_loader,
2865         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
2866         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
2867         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
2868         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
2869         Zweak_reference_mismatches, client_name, compatibility_version,
2870         current_version, dylinker_install_name, pagezero_size,
2871         read_only_relocs, seg1addr, segs_read_only_addr,
2872         segs_read_write_addr, sub_library, sub_umbrella): New.
2873         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
2874         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
2875         * config/freebsd.opt: New.
2876         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
2877         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
2878         * config/rpath.opt: New.
2879         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
2880         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
2881         Use rpath.opt.
2882
2883 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
2884
2885         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
2886         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
2887         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
2888         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
2889         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
2890         Document that options in .opt files do not need to be included.
2891         * doc/tm.texi: Regenerate.
2892         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
2893         * opts-common.c: Update comment on tm.h include.
2894         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
2895         * system.h (SWITCH_TAKES_ARG): Poison.
2896         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
2897         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
2898         in darwin.opt.
2899         (LINK_COMMAND_SPEC_A): Don't include %{x}.
2900         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2901         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
2902         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
2903         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2904         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
2905         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
2906         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
2907         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
2908         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2909         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
2910         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
2911         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
2912         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
2913         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
2914         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
2915         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
2916         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
2917         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
2918         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
2919         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
2920         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
2921         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
2922         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2923
2924 2010-11-01  Paul Koning  <ni1d@arrl.net>
2925
2926         * config/pdp11/pdp11.md: Use iterators.
2927         (addqi3, subqi3, iorsi3, xorsi3): Delete.
2928
2929 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
2930
2931         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
2932         GCC_INSN_FLAGS_H.
2933         * libgcov.c (__gcov_indirect_call_profiler): Set
2934         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
2935         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
2936
2937 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
2938
2939         PR tree-optimization/46259
2940
2941         Revert:
2942         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2943         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
2944         build_vector_from_val.
2945
2946 2010-11-01  DJ Delorie  <dj@redhat.com>
2947
2948         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
2949         as well as an assertion.
2950
2951 2010-11-01  Paul Koning  <ni1d@arrl.net>
2952
2953         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
2954         complex modes in memory.
2955
2956 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
2957
2958         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
2959
2960 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
2961
2962         PR target/45250
2963         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
2964         (cfa_base_offset): New variable.
2965         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
2966         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
2967         is NULL.
2968         (vt_init_cfa_base): Initialize cfa_base_offset.
2969
2970 2010-11-01  Alan Modra  <amodra@gmail.com>
2971
2972         PR target/46030
2973         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
2974         and savres_strategy.
2975         (stack_info): New file scope var.
2976         (rs6000_init_machine_status): Init stack_info.
2977         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
2978         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
2979         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
2980         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
2981         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
2982         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
2983         (rs6000_savres_strategy): Rewrite.
2984         (rs6000_stack_info): Use "stack_info" in place of local "info".
2985         Return cached stack info when reload_completed unless ENABLE_CHECKING
2986         in which case confirm newly calculated stack info matches old info.
2987         Delay calculation of lr_save_p, set it for out of line gp save/restore
2988         as well as fp.  Call rs6000_savres_strategy from here..
2989         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
2990         (rs6000_output_function_prologue): Use info->savres_strategy to
2991         determine whether fp save/restore externs need to be emitted.
2992
2993 2010-10-31  Jason Merrill  <jason@redhat.com>
2994
2995         * tree.h (EXPR_LOC_OR_HERE): New macro.
2996         * builtins.c (c_strlen): Use it.
2997         * c-decl.c (build_enumerator): Likewise.
2998         * gimplify.c (internal_get_tmp_var): Likewise.
2999         (shortcut_cond_expr): Likewise.
3000         (gimplify_one_sizepos): Likewise.
3001
3002 2010-10-31  Richard Henderson  <rth@redhat.com>
3003
3004         * config/i386/cygming.h (TARGET_SEH): New.
3005         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
3006         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
3007         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
3008         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
3009         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
3010         (ASM_DECLARE_FUNCTION_SIZE): New.
3011         * config/i386/i386-protos.h: Update.
3012         * config/i386/i386.c (ix86_option_override_internal): Enable
3013         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
3014         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
3015         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
3016         (ix86_compute_frame_layout): For SEH, disable
3017         use_fast_prologue_epilogue, move frame pointer to the end of
3018         the frame.  Initialize hfp_save_offset.
3019         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
3020         at end of prologue for SEH.
3021         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
3022         emit blockage at beginning of epilogue.
3023         (ix86_expand_binary_operator): After reload, emit LEA if needed.
3024         (ix86_output_call_insn): New.
3025         * config/i386/i386.h (TARGET_SEH): New.
3026         (struct machine_function): Add member seh.
3027         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
3028         * config/i386/winnt.c (struct seh_frame_state): New.
3029         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
3030         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
3031         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
3032         i386_pe_start_function, i386_pe_end_function): New.
3033
3034         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
3035         as CFA_STORE in rules 12 and 13.
3036
3037 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
3038
3039         PR tree-optimization/46142
3040         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
3041         accommodate third function argument.
3042
3043 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
3044
3045         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
3046
3047 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
3048
3049         * fold-const.c (build_zero_vector): Use build_vector_from_val.
3050         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
3051         (get_initial_def_for_reduction): Likewise.
3052         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3053         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3054         * tree.c (build_one_cst): Likewise.
3055         (build_vector_from_val): Use types_compatible_p for assert.
3056
3057 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
3058
3059         * emit-rtl.c (mark_used_flags): New function.
3060         (set_used_flags, reset_used_flags): Call it.
3061
3062 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
3063
3064         PR middle-end/44569
3065         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
3066         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
3067
3068 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3069
3070         PR target/46195
3071         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
3072         (ix86_compat_aligned_value_p): This.
3073         (ix86_old_function_arg_boundary): Renamed to ...
3074         (ix86_compat_function_arg_boundary): This.  Updated.
3075         (ix86_contains_aligned_value_p): New.
3076         (ix86_function_arg_boundary): Align long double parameters on
3077         stack to 4byte in 32bit.
3078
3079 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3080
3081         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3082         * c-parser.c (c_parser_objc_at_property_declaration): Removed
3083         parsing of RID_COPIES and RID_IVAR.  Updated call to
3084         objc_add_property_declaration.
3085         * c-typecheck.c (build_component_ref): Call
3086         objc_maybe_build_component_ref instead of objc_build_setter_call.
3087         Use objc_is_property_ref to improve Objective-C checks.
3088         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
3089         of objc_build_getter_call.
3090
3091 2010-10-29  Paul Koning  <ni1d@arrl.net>
3092
3093         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
3094         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
3095         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
3096         (REG_OK_STRICT): Move description.
3097
3098 2010-10-29  Paul Koning  <ni1d@arrl.net>
3099
3100         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
3101
3102 2010-10-29  Paul Koning  <ni1d@arrl.net>
3103
3104         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
3105
3106 2010-10-29  Paul Koning  <ni1d@arrl.net>
3107
3108         PR/41822
3109         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
3110
3111 2010-10-29  Richard Henderson  <rth@redhat.com>
3112
3113         PR rtl-opt/46226
3114         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
3115         for asm goto.
3116
3117 2010-10-29  Paul Koning  <ni1d@arrl.net>
3118
3119         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
3120         register to register move.
3121
3122 2010-10-29  Paul Koning  <ni1d@arrl.net>
3123
3124         * config/pdp11/pdp11.c (print_operand_address): Correct handling
3125         of integer constant addresses, delete vax-only logic.
3126
3127 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
3128
3129         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
3130         a conditional expression.
3131
3132 2010-10-29  Paul Koning  <ni1d@arrl.net>
3133
3134         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
3135         instruction encoding.
3136
3137 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
3138             Andrew Pinski  <pinskia@gmail.com>
3139
3140         * tree.h (build_vector_from_val): Declare.
3141         * tree.c (build_vector_from_val): New function.
3142         * c-typeck.c (build_binary_op): Handle vector shifting.
3143         * doc/extend.texi: Description of the vector shifting operation.
3144
3145 2010-10-29  Paul Koning  <pkoning@equallogic.com>
3146
3147         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
3148         pdp11_secondary_memory_needed): Declare.
3149         * config/pdp11/predicates.md (float_operand): New predicate.
3150         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
3151         (cbranchdf4, movdf): Change predicate.
3152         (movsf): Handle FPU register case.
3153         (truncdfsf2, extendsfdf2): Add FPU register case.
3154         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
3155         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
3156         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3157         (pdp11_register_move_cost): Update cost matrix.
3158         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
3159         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
3160         pdp11_secondary_memory_needed): New function.
3161         (pdp11_return_in_memory): Add other float types.
3162         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
3163         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
3164         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
3165         REGISTER_MOVE_COST): Delete.
3166         (BASE_RETURN_VALUE_REG): Add other float types.
3167
3168 2010-10-29  Nick Clifton  <nickc@redhat.com>
3169
3170         * doc/invoke.texi: Document -mam34 and -mtune options.
3171         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
3172         (mn10300_tune_cpu): New variable.
3173         (mn10300_handle_option): Handle -mam34 and -mtune options.
3174         (mn10300_option_override): Convert tune string into tune cpu variable.
3175         (mn10300_legitimate_constant_p): Delete unused local variable.
3176         (is_load_insn): New function.
3177         (is_store_insn): New function.
3178         (mn10300_adjust_schedule_cost): New function.
3179         (TARGET_SCHED_ADJUST_COST): Define.
3180         * config/mn10300/mn10300.opt (mam34): New option.
3181         (mtune): New option.
3182         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
3183         (enum processor_type): Add AM34.
3184         (TARGET_AM34): Define.
3185         * config/mn10300/mn10300.md (attr cpu): Add am34.
3186         Add pipeline description.
3187         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
3188         Remove unneeded alternatives.  Add timing attribute.
3189         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
3190         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
3191         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
3192         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
3193         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
3194         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
3195         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
3196         float_conditional_branch, jump, indirect_jump, tablejump,
3197         call_internal, call_value_internal, zero_extendqisi2_am33,
3198         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
3199         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
3200         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
3201         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
3202         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
3203         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
3204         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
3205         return_internal_regs, store_movm, return, call_next_insn):
3206         Add timing attribute.
3207         (am33_subsi3): Add missing clobber of CC_REG.
3208         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
3209         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
3210         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
3211         extendqisi2): Fix predicates.
3212         (call_internal, call_internal_value): Separate alternatives.
3213         * config/mn10300/t-mn10300: Add AM34 multilib.
3214
3215 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
3216
3217         * config/sh/sh.c (sh_promote_function_mode): Use
3218         default_promote_function_mode if !sh_promote_prototypes.
3219
3220 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
3221
3222         * recog.c (split_all_insns): Remove dead code.
3223
3224 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3225
3226         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3227
3228 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3229
3230         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
3231         (FUNCTION_ARG_ADVANCE): Delete.
3232         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
3233         functions.
3234         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
3235         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3236         (TARGET_FUNCTION_ARG_ADVANCE): Define.
3237
3238 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3239
3240         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
3241         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3242         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
3243         Take a const_tree and a bool.
3244         (mcore_function_arg_advance): New function.
3245         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3246
3247 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3248
3249         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
3250         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3251         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
3252         Take a const_tree and a bool.
3253         (mcore_function_arg_advance): New function.
3254         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3255
3256 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3257
3258         * config/h8300/h8300-protos.h (function_arg): Delete.
3259         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3260         * config/h8300/h8300.c (function_arg): Rename to...
3261         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
3262         a bool.
3263         (h8300_function_arg_advance): New function.
3264         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3265
3266 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3267
3268         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
3269         to...
3270         * config/arc/arc.c (arc_function_arg): ...here and...
3271         (arc_function_arg_advance): ...here.  New functions.
3272         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3273
3274 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3275
3276         * config/crx/crx-protos.h (crx_function_arg): Delete.
3277         (crx_function_arg_advance): Delete.
3278         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3279         * config/crx/crx.c (crx_function_arg): Make static.  Take a
3280         const_tree and a bool.
3281         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
3282         (enough_regs_for_param): Take a const_tree.
3283         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3284
3285 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3286
3287         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
3288         (m68hc11_function_arg_advance): Delete.
3289         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
3290         (FUNCTION_ARG_ADVANCE): Delete.
3291         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
3292         Take a const_tree and a bool.
3293         (m68hc11_function_arg_advance): Likewise.
3294         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3295
3296 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3297
3298         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
3299         (xstormy16_function_arg_advance): Delete.
3300         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
3301         (FUNCTION_ARG_ADVANCE): Delete.
3302         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
3303         Take a const_tree and a bool.
3304         (xstormy16_function_arg_advance): Likewise.  Return void, updating
3305         the CUM parameter instead.
3306         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3307
3308 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3309
3310         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
3311         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3312         (MOXIE_FUNCTION_ARG_SIZE): Move to...
3313         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
3314         (moxie_function_arg): Make static.  Take a const_tree and a bool.
3315         (moxie_function_arg_advance): New function.
3316         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3317
3318 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3319
3320         * config/mn10300/mn10300-protos.h (function_arg): Delete.
3321         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
3322         (FUNCTION_ARG_ADVANCE): Delete.
3323         * config/mn10300/mn10300.c (function_arg): Rename to...
3324         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
3325         and a bool.
3326         (mn10300_function_arg_advance): New function.
3327         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3328
3329 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3330
3331         * config/iq2000/iq2000-protos.h (function_arg): Delete.
3332         (function_arg_advance): Delete.
3333         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3334         * config/iq2000/iq2000.c (function_arg): Rename to...
3335         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
3336         a bool.
3337         (function_arg_advance): Rename to...
3338         (iq2000_function_arg_advance): ...this.  Make static.  Take a
3339         const_tree and a bool.
3340         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
3341         iq2000_function_arg.
3342         (iq2000_pass_by_reference): Call iq2000_function_arg).
3343         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3344
3345 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3346
3347         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
3348         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3349         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
3350         const_tree.
3351         (fr30_function_arg): New function.
3352         (fr30_function_arg_advance): New function.
3353         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3354
3355 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3356
3357         * config/frv/frv-protos.h (frv_function_arg): Delete.
3358         (frv_function_arg_advance): Delete.
3359         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3360         * config/frv/frv.c (frv_function_arg): Rename to...
3361         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
3362         (frv_function_arg, frv_function_incoming_arg): New functions.
3363         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
3364         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3365         (TARGET_FUNCTION_ARG_ADVANCE): Define.
3366
3367 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
3368
3369         PR target/46153
3370         * config/i386/sse.md (sse_movhlps_exp): Use destination
3371         returned from ix86_fixup_binary_operands to expand insn.
3372         (sse_movlhps_exp): Ditto.
3373         (sse_loadhps_exp): Ditto.
3374         (sse_loadlps_exp): Ditto.
3375         (sse2_loadhpd_exp): Ditto.
3376         (sse2_loadlpd_exp): Ditto.
3377
3378 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
3379
3380         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
3381         constants in thumb2.
3382
3383 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
3384
3385         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
3386         arithmetics in masking operations.
3387         (contains_muldiv): Likewise.
3388         (try_combine): Likewise.
3389         (find_split_point): Likewise.
3390         (combine_simplify_rtx): Likewise.
3391         (simplify_if_then_else): Likewise.
3392         (simplify_set): Likewise.
3393         (expand_compound_operation): Likewise.
3394         (expand_field_assignment): Likewise.
3395         (make_extraction): Likewise.
3396         (extract_left_shift): Likewise.
3397         (make_compound_operation): Likewise.
3398         (force_to_mode): Likewise.
3399         (make_field_assignment): Likewise.
3400         (reg_nonzero_bits_for_combine): Likewise.
3401         (simplify_shift_const_1): Likewise.
3402         (simplify_comparison): Likewise.
3403
3404 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
3405
3406         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
3407         (ia64_function_arg_advance): Delete.
3408         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
3409         (FUNCTION_ARG_ADVANCE): Delete.
3410         * config/ia64/ia64.c (ia64_function_arg): Rename to...
3411         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
3412         bool arguments.
3413         (ia64_function_arg, ia64_function_incoming_arg): New functions.
3414         (ia64_function_arg_advance): Make static.  Take a const_tree and
3415         a bool.
3416         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3417         (TARGET_FUNCTION_ARG_ADVANCE): Define.
3418
3419 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
3420
3421         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
3422         (TARGET_GET_RAW_ARG_MODE): New.
3423         * doc/tm.texi: Regenerate.
3424         * target.def (get_raw_result_mode): New.
3425         (get_raw_arg_mode): New.
3426         * targhooks.c (default_get_reg_raw_mode): New.
3427         * targhooks.h (default_get_reg_raw_mode): New.
3428         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
3429         (apply_result_size): Ditto.
3430         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
3431         (TARGET_GET_RAW_RESULT_MODE): Define.
3432         (TARGET_GET_RAW_ARG_MODE): Ditto.
3433
3434 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
3435
3436         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
3437         for newer Solaris 10 release.
3438         (sparc_fallback_frame_state): Likewise.
3439
3440 2010-10-27  Jason Merrill  <jason@redhat.com>
3441
3442         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
3443         variables sooner.
3444
3445 2010-10-27  Jie Zhang  <jie@codesourcery.com>
3446             Maxim Kuvyrkov  <maxim@codesourcery.com>
3447
3448         * haifa-sched.c (ISSUE_POINTS): Remove.
3449         (max_issue): Don't issue more than issue_rate instructions.
3450
3451 2010-10-27  Ian Lance Taylor  <iant@google.com>
3452
3453         PR target/46197
3454         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
3455         (split_stack_return): Replace UNSPEC_STACK_CHECK with
3456         UNSPECV_SPLIT_STACK_RETURN.
3457
3458 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
3459
3460         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
3461
3462         * config/i386/i386.c (block_info): New.
3463         (BLOCK_INFO): Likewise.
3464         (call_avx256_state): Likewise.
3465         (check_avx256_stores): Likewise.
3466         (move_or_delete_vzeroupper_2): Likewise.
3467         (move_or_delete_vzeroupper_1): Likewise.
3468         (move_or_delete_vzeroupper): Likewise.
3469         (use_avx256_p): Likewise.
3470         (function_pass_avx256_p): Likewise.
3471         (flag_opts): Add -mvzeroupper.
3472         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
3473         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
3474         is disabled.
3475         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
3476         generate vzeroupper.
3477         (init_cumulative_args): Add an int to indicate caller.  Set
3478         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
3479         based on return type.
3480         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
3481         caller_pass_avx256_p based on argument type.
3482         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
3483         is used, but not returned by caller.
3484         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
3485         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
3486         is used.
3487         (ix86_minimum_alignment): Likewise.
3488         (ix86_expand_special_args_builtin): Set target to
3489         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
3490         (ix86_reorg): Run the vzeroupper optimization if needed.
3491
3492         * config/i386/i386.h (ix86_args): Add caller.
3493         (INIT_CUMULATIVE_ARGS): Updated.
3494         (machine_function): Add use_vzeroupper_p, use_avx256_p,
3495         caller_pass_avx256_p, caller_return_avx256_p,
3496         callee_pass_avx256_p and callee_return_avx256_p.
3497
3498         * config/i386/i386.opt (-mvzeroupper): New.
3499
3500         * config/i386/predicates.md (vzeroupper_operation): Removed.
3501
3502         * config/i386/sse.md (avx_vzeroupper): Removed.
3503         (*avx_vzeroupper): Removed.
3504         (avx_vzeroupper): New.
3505
3506         * doc/invoke.texi: Document -mvzeroupper.
3507
3508 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
3509
3510         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
3511         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
3512         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
3513
3514 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
3515             Olivier Hainque  <hainque@adacore.com>
3516
3517         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
3518         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
3519         fs->signal_frame instead.
3520
3521 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3522
3523         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
3524         parsing of RID_COPIES and RID_IVAR.
3525
3526 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3527
3528         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
3529         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
3530         Do not use objc_set_property_attr, but use local variables
3531         instead.  Detect repeated usage of setter, getter and ivar
3532         attributes.  Improved error processing when a setter name does not
3533         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
3534         that the token is a keyword.  Updated call to
3535         objc_add_property_declaration.
3536
3537 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3538
3539         * c-parser.c (c_parser_objc_at_property): Renamed to
3540         c_parser_objc_at_property_declaration.  Updated calls to
3541         objc_add_property_variable, now objc_add_property_declaration.
3542         Code rewritten to be much more robust in recovering from syntax
3543         errors.  Added comments.
3544         (c_parser_objc_property_attrlist): Removed.
3545         (c_parser_external_declaration): Updated calls to
3546         c_parser_objc_at_property, now
3547         c_parser_objc_at_property_declaration.
3548         (c_parser_objc_methodprotolist): Same change.
3549
3550 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
3551
3552         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
3553
3554 2010-10-26  Jan Hubicka  <jh@suse.cz>
3555
3556         * ipa.c (process_references): Enqueue all referenced nodes;
3557         mark as reachable only non-external nodes.
3558         (cgraph_remove_unreachable_nodes): All referenced nodes should
3559         be enqueued; remove bogues node->needed check.
3560
3561 2010-10-26  Jan Hubicka  <jh@suse.cz>
3562
3563         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
3564         to represent OMP.
3565
3566 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
3567
3568         * config/i386/i386.md (split_stack_return): Replace
3569         unspec_volatile with unspec.
3570
3571 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
3572
3573         * doc/install.texi: Fix typo in --with-sysroot description.
3574
3575 2010-10-26  Jan Hubicka  <jh@suse.cz>
3576
3577         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3578         Use info provided by linker plugin.
3579
3580 2010-10-26  Jason Merrill  <jason@redhat.com>
3581
3582         * varasm.c (constructor_static_from_elts_p): Don't require a
3583         CONSTRUCTOR to have elements to be suitable for static
3584         initialization.  Allow ARRAY_TYPE as well.
3585
3586 2010-10-26  Jan Hubicka  <jh@suse.cz>
3587
3588         PR middle-end/45736
3589         * cgraph.c (cgraph_set_readonly_flag): Rename to...
3590         (cgraph_set_const_flags) ... this one; get also looping argument;
3591         clear constructor/destructor flags.
3592         (cgraph_set_pure_flag): Likewise.
3593         (cgraph_set_looping_const_or_pure_flag): Remove.
3594         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
3595         to optimize away static ctors/dtors; it does not work on inline clones;
3596         external functions can always be rmeoved.
3597         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
3598         inline clones; in LTO external functions always can go.
3599         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
3600         (cgraph_mark_address_taken_node): Assert that we are not taking
3601         address of inline clone.
3602         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
3603         external functions.
3604         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
3605         address taken.
3606         (ipcp_initialize_node_lattices): Only local functions can be
3607         handled without cloning.
3608         * cgraph.h (cgraph_set_readonly_flag,
3609         cgraph_set_looping_const_or_pure_flag): Remove.
3610         (cgraph_set_const_flag): Declare.
3611         (cgraph_set_pure_flag): Update.
3612         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
3613         flags setting code.
3614         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
3615         look at inline clones; fix handling of external definitions.
3616         (cgraph_postorder): Do not look at inline clones in the first pass.
3617         (function_and_variable_visibility): Drop constructors/destructor
3618         flags at pure and const functions.
3619         * tree-profile.c (tree_profiling): Update.
3620         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
3621         address taken; external functions do not account to whole program size.
3622         (cgraph_decide_inlining): Likewise; do not try to inline
3623         functions already inlined.
3624
3625 2010-10-26  Jie Zhang  <jie@codesourcery.com>
3626
3627         * doc/invoke.texi: Improve documentation of
3628         -fstrict-volatile-bitfields.
3629
3630 2010-10-26  Ira Rosen  <irar@il.ibm.com>
3631
3632         PR tree-optimization/46167
3633         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
3634         is basic block for the statement.
3635
3636 2010-10-26  Paul Koning  <ni1d@arrl.net>
3637
3638         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
3639         current definition of struct_real_format.
3640
3641 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
3642
3643         PR target/44948
3644         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
3645         (ix86_function_arg_boundary): Always align parameters on stack
3646         in 64bit and align parameters with alignment >= 16byte on stack
3647         in 32bit.  Warn alignment change.
3648
3649 2010-10-26  Ian Lance Taylor  <iant@google.com>
3650
3651         PR middle-end/45687
3652         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
3653         offset.
3654
3655 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
3656
3657         Implement opaque-enum-specifiesr for C++0x
3658         * tree.h (ENUM_IS_OPAQUE): New.
3659         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
3660
3661 2010-10-26  Jie Zhang  <jie@codesourcery.com>
3662
3663         * stor-layout.c (layout_decl): Use the field's type to
3664         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
3665         * config/arm/arm.c (arm_override_options): Default to
3666         -fstrict-volatile-bitfields.
3667
3668 2010-10-25  Paul Koning  <ni1d@arrl.net>
3669
3670         * config/pdp11/pdp11.md: Add define_constants for register
3671         numbers, branch offset limits.
3672         * config/pdp11/pdp11.c: Use named constants instead of numbers.
3673         * config/pdp11.pdp11.h: Ditto.
3674
3675 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3676
3677         * configure.ac: Use $cpu_type instead of $target to define the nop.
3678         * configure: Regenerate.
3679
3680 2010-10-25  Jie Zhang  <jie@codesourcery.com>
3681
3682         * combine.c (try_combine): If insns need to be kept around, check that
3683         they can be copied in the merged instruction.
3684
3685 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
3686
3687         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
3688         has been modified.
3689         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
3690         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
3691         it has been modified.
3692
3693 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
3694
3695         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
3696
3697 2010-10-24  Paul Koning  <ni1d@arrl.net>
3698
3699         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
3700         * config/pdp11/pdp11.c (output_jump): Ditto.
3701
3702 2010-10-24  Ian Lance Taylor  <iant@google.com>
3703
3704         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
3705
3706 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
3707
3708         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
3709         least one insn with a locus corresponding to an edge's goto_locus,
3710         disregard non-fallthru edges to the exit block and merge the blocks
3711         created for the same goto_locus.
3712
3713 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
3714
3715         * gcc.c (n_switches_alloc_debug_check): New.
3716         (set_option_handlers): New.
3717         (process_command): Use set_option_handlers.
3718         (do_self_spec): Pass spec-generated options through option handlers.
3719         (main): Also save and restore n_switches_alloc when swapping
3720         switch arrays.
3721
3722 2010-10-23  Richard Henderson  <rth@redhat.com>
3723
3724         PR target/46144
3725         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
3726         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
3727         Honor matching operands when splitting to XOR.
3728
3729 2010-10-23  Ian Lance Taylor  <iant@google.com>
3730
3731         * tree-vrp.c (extract_range_from_binary_expr): If
3732         flag_non_call_exceptions don't eliminate division by zero.
3733         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3734
3735 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
3736
3737         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
3738         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
3739         __ORDER_PDP_ENDIAN__.
3740         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3741         (struct DWstruct): Define based on __BYTE_ORDER__.
3742         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3743         (struct INTstruct): Define based on __BYTE_ORDER__.
3744         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3745         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
3746         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
3747         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3748         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3749         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3750         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3751         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3752         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3753         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3754         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3755         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3756         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3757         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3758         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3759         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3760         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3761         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3762         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3763         * doc/tm.texi: Regenerate.
3764         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
3765         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
3766
3767 2010-10-23  Jie Zhang  <jie@codesourcery.com>
3768
3769         PR rtl-optimization/37360
3770         * config/mips/mips.c (cached_can_issue_more): New local variable.
3771         (mips_sched_reorder_1): New.
3772         (mips_sched_reorder): Use mips_sched_reorder_1.
3773         (mips_sched_reorder2): New.
3774         (mips_variable_issue): Set cached_can_issue_more.
3775         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
3776         instead of mips_sched_reorder.
3777
3778         Revert:
3779         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
3780         PR rtl-optimization/37360
3781         * haifa-sched.c (max_issue): Do not assert that we never issue more
3782         insns than issue_rate.  Add comment.
3783
3784 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
3785
3786         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
3787         location info of the expression.
3788
3789 2010-10-22  DJ Delorie  <dj@redhat.com>
3790
3791         * doc/extend.texi (Named Address Spaces): Document the M32C named
3792         address space.
3793
3794         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
3795         __far address space.
3796         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
3797         "__far" address space for R8C and M16C processor variants.
3798         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
3799         (far_addr_space_p): New.
3800         (encode_pattern_1): Add sign and zero extend support.
3801         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
3802         (m32c_extra_constraint_p2): Add SF constraint.
3803         (m32c_legitimate_address_p): Support __far addresses.
3804         (m32c_addr_space_pointer_mode): New.
3805         (m32c_addr_space_address_mode): New.
3806         (m32c_addr_space_legitimate_address_p): New.
3807         (m32c_addr_space_legitimize_address): New.
3808         (m32c_addr_space_subset_p): New.
3809         (m32c_addr_space_convert): New.
3810         (conversions): Add __far operand patterns.
3811         (m32c_prepare_move): Force constants into registers for __far moves.
3812         (m32c_split_move): __far moves are always split.
3813         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
3814         * config/m32c/mov.md (mov<mode>_far_op1): New.
3815         (mov<mode>_far_op2): New.
3816         (movqi_op): Add __far (SF) support.
3817         (movhi_op): Likewise.
3818         (movsi_splittable): Split A1A0 also.
3819
3820 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
3821             Andrew Pinski  <pinskia@gmail.com>
3822
3823         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
3824         * doc/extend.texi: New paragraph
3825
3826 2010-10-22  Paul Koning  <ni1d@arrl.net>
3827
3828         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
3829
3830 2010-10-22  DJ Delorie  <dj@redhat.com>
3831
3832         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
3833
3834 2010-10-22  Paul Koning  <ni1d@arrl.net>
3835
3836         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
3837
3838 2010-10-22  Richard Henderson  <rth@redhat.com>
3839
3840         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
3841         cases for __builtin_fma and __builtin_fmaf.
3842
3843 2010-10-22  Richard Henderson  <rth@redhat.com>
3844
3845         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
3846         NEG+USE for vectors as well.
3847         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
3848         and splitter.
3849
3850 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
3851
3852         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
3853         SWITCH_CURTAILS_COMPILATION): Remove.
3854         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
3855         * doc/tm.texi: Regenerate.
3856         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
3857
3858 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
3859
3860         * config/i386/bdver1.md: New file.
3861         * config/i386/i386.md (include "bdver1.md"): Invoke the
3862         pipeline description for bdver1.
3863         (x86_sahf_1): Add "bdver1_decode" attribute.
3864         (*cmpfp_i_mixed): Likewise.
3865         (*cmpfp_i_sse): Likewise.
3866         (*cmpfp_i_i387): Likewise.
3867         (*cmpfp_iu_mixed): Likewise.
3868         (*cmpfp_iu_sse): Likewise.
3869         (*cmpfp_iu_387): Likewise.
3870         (*swap<mode>,*swap<mode>_1): Likewise.
3871         (fixuns_trunc<mode>hi2): Likewise.
3872         (fix_trunc<mode>si_sse): Likewise.
3873         (x86_fnstcw_1): Likewise.
3874         (x86_fldcw_1): Likewise.
3875         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
3876         (*floatsi<mode>2_vector_mixed): Likewise.
3877         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
3878         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
3879         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
3880         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
3881         (*floatsi<mode>2_vector_sse): Likewise.
3882         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
3883         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
3884         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
3885         (*mul<mode>3_1): Likewise.
3886         (*mulsi3_1_zext): Likewise.
3887         (*mulhi3_1): Likewise.
3888         (*mulqi3_1): Likewise.
3889         (*<u>mul<mode><dwi>3_1): Likewise.
3890         (*<u>mulqihi3_1): Likewise.
3891         (*<s>muldi3_highpart_1): Likewise.
3892         (*<s>mulsi3_highpart_1): Likewise.
3893         (*<s>mulsi3_highpart_zext): Likewise.
3894         (x86_64_shld): Likewise.
3895         (x86_shld): Likewise.
3896         (x86_64_shrd): Likewise.
3897         (x86_shrd): Likewise.
3898         (sqrtxf2): Likewise.
3899         (sqrt_extend<mode>xf2_i387): Likewise.
3900         (*sqrt<mode>2_sse): Likewise.
3901         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
3902         (sse_cvtsi2ssq): Likewise.
3903         (sse_cvtss2si): Likewise.
3904         (sse_cvtss2si_2): Likewise.
3905         (sse_cvtss2siq): Likewise.
3906         (sse_cvtss2siq_2): Likewise.
3907         (sse_cvttss2si): Likewise.
3908         (sse_cvttss2siq): Likewise.
3909         (sse2_cvtpi2pd): Likewise.
3910         (sse2_cvttpd2pi): Likewise.
3911         (sse2_cvtsi2sd): Likewise.
3912         (sse2_cvtsi2sdq): Likewise.
3913         (sse2_cvtsd2si): Likewise.
3914         (sse2_cvtsd2si_2): Likewise.
3915         (sse2_cvtsd2siq): Likewise.
3916         (sse2_cvtsd2siq_2): Likewise.
3917         (sse2_cvttsd2si): Likewise.
3918         (sse2_cvttsd2siq): Likewise.
3919         (*sse2_cvtpd2dq): Likewise.
3920         (*sse2_cvttpd2dq): Likewise.
3921         (sse2_cvtsd2ss): Likewise.
3922         (sse2_cvtss2sd): Likewise.
3923         (*sse2_cvtpd2ps): Likewise.
3924         (sse2_cvtps2pd): Likewise.
3925
3926 2010-10-22  Richard Guenther  <rguenther@suse.de>
3927
3928         PR middle-end/46137
3929         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
3930         remove the virtual operands if they are not needed.
3931
3932 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
3933
3934         * config/i386/i386.c (processor_costs bdver1_cost): Update
3935         insn costs and architectural parameters for bdver1.
3936
3937 2010-10-22  Richard Guenther  <rguenther@suse.de>
3938
3939         * gimple.h (gimple_register_canonical_type): Declare.
3940         * gimple.c (gimple_canonical_types): New global hashtable.
3941         (struct gimple_type_leader_entry_s): New type.
3942         (gimple_type_leader): New global cache.
3943         (gimple_lookup_type_leader): New function.
3944         (gtc_visit): Query the proper cache.
3945         (gimple_types_compatible_p): Likewise.
3946         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
3947         (gimple_canonical_type_eq): New function.
3948         (gimple_register_canonical_type): Likewise.
3949         (print_gimple_types_stats): Adjust for gimple_canonical_types.
3950         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
3951         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
3952         gimple_types_compatible_p for LTO.
3953
3954 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
3955
3956         PR target/46098
3957         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
3958         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
3959         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
3960         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
3961         (<sse>_movu<ssemodesuffix>): New expander.
3962         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
3963         (avx_movdqu<avxmodesuffix>): New expander.
3964         (*sse2_movdqu): Rename from sse2_movdqu.
3965         (sse2_movdqu): New expander.
3966
3967 2010-10-22  Richard Guenther  <rguenther@suse.de>
3968
3969         PR tree-optimization/45720
3970         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
3971         Handle negative step.
3972         (vect_enhance_data_refs_alignment): Likewise.
3973         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
3974         (vect_create_cond_for_align_checks): Likewise.
3975         (vect_create_cond_for_alias_checks): Likewise.
3976
3977 2010-10-22  Ira Rosen  <irar@il.ibm.com>
3978
3979         PR tree-optimization/46126
3980         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
3981         vectorizable_shift in case of basic block vectorization.
3982
3983 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
3984
3985         * target.h (enum opt_levels, struct default_options): New.
3986         * target.def (handle_ofast): Remove hook.
3987         (target_option.optimization): Change to
3988         target_option.optimization_table.
3989         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
3990         TARGET_OPTION_OPTIMIZATION_TABLE.
3991         (CAN_DEBUG_WITHOUT_FP): Remove.
3992         * doc/tm.texi: Regenerate.
3993         * opts.c (maybe_default_option, maybe_default_options,
3994         default_options_table): New.
3995         (default_options_optimization): Take extra parameters.  Don't
3996         assert that global_options and global_options_set are in use.  Use
3997         maybe_default_options.
3998         (decode_options): Pass extra parameters to
3999         default_options_optimization.
4000         * common.opt (falign-loops): Use value 0 with Var.
4001         (frerun-cse-after-loop, ftree-ter): Remove Init.
4002         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
4003         TARGET_OPTION_OPTIMIZATION): Remove.
4004         * targhooks.c (empty_optimization_table): New.
4005         * targhooks.h (empty_optimization_table): Declare.
4006         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
4007         * config/alpha/alpha.c (alpha_option_optimization_table,
4008         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4009         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
4010         * config/arm/arm.c (arm_option_optimization: Change to
4011         arm_option_optimization_table.
4012         (TARGET_OPTION_OPTIMIZATION): Change to
4013         TARGET_OPTION_OPTIMIZATION_TABLE.
4014         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
4015         * config/avr/avr.c (avr_option_optimization_table,
4016         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4017         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
4018         * config/cris/cris.c (cris_option_optimization): Change to
4019         cris_option_optimization_table.
4020         (TARGET_OPTION_OPTIMIZATION): Change to
4021         TARGET_OPTION_OPTIMIZATION_TABLE.
4022         * config/crx/crx.c (crx_option_optimization): Change to
4023         crx_option_optimization_table.
4024         (TARGET_OPTION_OPTIMIZATION): Change to
4025         TARGET_OPTION_OPTIMIZATION_TABLE.
4026         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
4027         * config/fr30/fr30.c (fr30_option_optimization_table,
4028         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4029         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
4030         * config/frv/frv.c (frv_option_optimization_table,
4031         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4032         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
4033         * config/h8300/h8300.c (h8300_option_optimization): Change to
4034         h8300_option_optimization_table.
4035         (TARGET_OPTION_OPTIMIZATION): Change to
4036         TARGET_OPTION_OPTIMIZATION_TABLE.
4037         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
4038         * config/i386/i386.c (ix86_option_optimization): Change to
4039         ix86_option_optimization_table.
4040         (TARGET_OPTION_OPTIMIZATION): Change to
4041         TARGET_OPTION_OPTIMIZATION_TABLE.
4042         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
4043         as initializer.
4044         * config/ia64/ia64.c (ia64_option_optimization): Change to
4045         ia64_option_optimization_table.
4046         (TARGET_OPTION_OPTIMIZATION): Change to
4047         TARGET_OPTION_OPTIMIZATION_TABLE.
4048         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
4049         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
4050         initializer.
4051         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4052         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4053         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
4054         * config/lm32/lm32.c (lm32_option_optimization_table,
4055         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4056         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
4057         * config/m32r/m32r.c (m32r_option_optimization): Change to
4058         m32r_option_optimization_table.
4059         (TARGET_OPTION_OPTIMIZATION): Change to
4060         TARGET_OPTION_OPTIMIZATION_TABLE.
4061         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
4062         CAN_DEBUG_WITHOUT_FP): Remove.
4063         * config/mcore/mcore.c (mcore_option_optimization): Change to
4064         mcore_option_optimization_table.
4065         (TARGET_OPTION_OPTIMIZATION): Change to
4066         TARGET_OPTION_OPTIMIZATION_TABLE.
4067         * config/mep/mep.c (mep_option_optimization): Change to
4068         mep_option_optimization_table.
4069         (TARGET_OPTION_OPTIMIZATION): Change to
4070         TARGET_OPTION_OPTIMIZATION_TABLE.
4071         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
4072         * config/microblaze/microblaze.c
4073         (microblaze_option_optimization_table,
4074         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4075         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
4076         * config/mips/mips.c (mips_option_optimization_table,
4077         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4078         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
4079         * config/mmix/mmix.c (mmix_option_optimization): Change to
4080         mmix_option_optimization_table.
4081         (TARGET_OPTION_OPTIMIZATION): Change to
4082         TARGET_OPTION_OPTIMIZATION_TABLE.
4083         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
4084         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4085         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4086         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
4087         * config/pa/pa.c (pa_option_optimization_table,
4088         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4089         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
4090         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
4091         pdp11_option_optimization_table.
4092         (TARGET_OPTION_OPTIMIZATION): Change to
4093         TARGET_OPTION_OPTIMIZATION_TABLE.
4094         * config/picochip/picochip.c (picochip_option_optimization_table,
4095         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4096         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
4097         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
4098         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4099         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
4100         * config/rx/rx.c (rx_option_optimization_table,
4101         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4102         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
4103         * config/s390/s390.c (s390_option_optimization): Change to
4104         s390_option_optimization_table.
4105         (s390_option_override): Update comment.
4106         (TARGET_OPTION_OPTIMIZATION): Change to
4107         TARGET_OPTION_OPTIMIZATION_TABLE.
4108         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
4109         * config/score/score.c (score_option_optimization_table,
4110         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4111         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
4112         * config/sh/sh.c (sh_option_optimization): Change to
4113         sh_option_optimization_table.
4114         (TARGET_OPTION_OPTIMIZATION): Change to
4115         TARGET_OPTION_OPTIMIZATION_TABLE.
4116         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
4117         (sh_option_override, expand_block_move, multcosts, find_barrier,
4118         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
4119         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
4120         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
4121         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
4122         instead of TARGET_SMALLCODE.
4123         * config/sh/sh.opt (mspace): Make into an alias for -Os.
4124         * config/sparc/sparc.c (sparc_option_optimization_table,
4125         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4126         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
4127         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4128         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4129         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
4130         * config/v850/v850.c (v850_option_optimization): Change to
4131         v850_option_optimization_table.
4132         (TARGET_OPTION_OPTIMIZATION): Change to
4133         TARGET_OPTION_OPTIMIZATION_TABLE.
4134         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
4135         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
4136         xtensa_option_optimization_table.
4137         (TARGET_OPTION_OPTIMIZATION): Change to
4138         TARGET_OPTION_OPTIMIZATION_TABLE.
4139         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
4140
4141 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
4142
4143         Based on the CFString implementation in FSF apple/trunk branch.
4144
4145         * target.def (objc_construct_string): New Hook.
4146         * doc/tm.texi (objc_construct_string): Document.
4147         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
4148         * config/t-darwin: Amend build rules for darwin.o.
4149         * config/darwin.opt: Add cfstrings flags.
4150         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
4151         (darwin_objc_construct_string): New.
4152         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
4153         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
4154         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
4155         (darwin_fold_builtin): Likewise.
4156         (darwin_build_constant_cfstring): Likewise.
4157         (darwin_objc_construct_string): Likewise.
4158         (darwin_cfstring_p): Likewise.
4159         (darwin_enter_string_into_cfstring_table): Likewise.
4160         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
4161         * config/darwin.c (darwin_running_cxx): New var.
4162         (machopic_select_section): Return cfstring_constant_object_section.
4163         (darwin_override_options): Set darwin_running_cxx.
4164         (add_builtin_field_decl): New.
4165         (darwin_init_cfstring_builtins): New.
4166         (darwin_build_constant_cfstring): New.
4167         (darwin_fold_builtin): New.
4168         (cfstring_hash): New.
4169         (cfstring_eq): New.
4170         (darwin_enter_string_into_cfstring_table): New.
4171         * config/darwin-sections.def (cfstring_constant_object_section): New.
4172         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
4173         (TARGET_OBJC_CONSTRUCT_STRING): Define.
4174
4175 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
4176
4177         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
4178         TYPE_STUB_DECL instead of TREE_CHAIN.
4179         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
4180         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
4181         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
4182         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
4183         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
4184         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
4185         Likewise.
4186         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
4187
4188 2010-10-22  Jie Zhang  <jie@codesourcery.com>
4189
4190         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
4191         (copy_blkmode_from_reg): Likewise.
4192         (read_complex_part): Likewise.
4193         (expand_expr_real_1): Calculate packedp and pass it to
4194         extract_bit_field.
4195         * expr.h (extract_bit_field): Update declaration.
4196         * calls.c (store_unaligned_arguments_into_pseudos): Update call
4197         to extract_bit_field.
4198         * expmed.c (extract_fixed_bit_field): Update calls to
4199         extract_fixed_bit_field.
4200         (store_split_bit_field): Likewise.
4201         (extract_bit_field_1): Add new argument packedp.
4202         (extract_bit_field): Add new argument packedp.
4203         (extract_fixed_bit_field): Add new argument packedp and let
4204         packed attribute override volatile.
4205         * stmt.c (expand_return): Update call to extract_bit_field.
4206
4207 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
4208
4209         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
4210
4211 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
4212
4213         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
4214         of gcc_checking_assert.
4215         * sel-sched.c (code_motion_process_successors): Likewise.
4216
4217 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
4218
4219         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
4220         when stopping because of a different locus on edge or insn.
4221         (try_optimize_cfg): Add comment.
4222         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
4223         block is a forwarder block, propagate locus on the edge.
4224         (cfg_layout_merge_blocks): Likewise.
4225
4226 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
4227
4228         PR target/45946
4229         * config/i386/i386.md (*pushti2): New insn pattern.
4230         (pushti2 splitter): New insn splitter.
4231         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
4232         DWI mode iterator.
4233
4234 2010-10-21  Paul Koning  <ni1d@arrl.net>
4235
4236         * config/pdp11/pdp11-protos.md (arith_operand,
4237         const_immediate_operand, expand_shift_operand,
4238         immediate15_operand): Delete
4239         * config/pdp11/pdp11.c: Ditto.
4240         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
4241         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
4242         EXTRA_CONSTRAINT): Delete.
4243         * config/pdp11/pdp11.md (various): Use standard constraints
4244         instead of removed ones.
4245         * config/pdp11/constraints.md: New file.
4246         * config/pdp11/predicates.md: New file.
4247
4248 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
4249
4250         PR c/45834
4251         * alias.c (true_dependence_1): Remove obsolete check for QImode.
4252         (may_alias_p): Ditto.
4253
4254 2010-10-21  Martin Jambor  <mjambor@suse.cz>
4255
4256         PR tree-optimization/45875
4257         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
4258
4259 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
4260
4261         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
4262         variables.
4263         (create_new_def_for): Likewise.
4264
4265 2010-10-21  Nick Clifton  <nickc@redhat.com>
4266
4267         * config/mn10300/mn10300.c: Fold code to 80-character width.
4268         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
4269         MEM, CONST_INT and CONST_DOUBLE.
4270         (targetm): Move initialization to end of file.
4271         (print_operand): Rename to mn10300_print_operand.
4272         (print_operand_address): Rename to mn10300_print_operand_address.
4273         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
4274         (expand_prologue): Rename to mn10300_expand_prologue.
4275         (expand_epilogue): Rename to mn10300_expand_epilogue.
4276         (initial_offset): Rename to mn10300_initial_offset.
4277         (function_arg): Rename to mn10300_function_arg.
4278         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
4279         (symbolic_operand): Rename to mn10300_symbolic_operand.
4280         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
4281         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
4282         * config/mn10300/mn10300-protos.h: Update prototypes.
4283         * config/mn10300/mn10300.h: Fold code to 80-character width.
4284         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
4285         MEM, CONST_INT and CONST_DOUBLE.
4286         (CPP_SPEC): Move to...
4287         (TARGET_CPU_CPP_BUILTINS): ... here.
4288         * config/mn10300/mn10300.md: Fold code to 80-character width.
4289         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
4290         MEM, CONST_INT and CONST_DOUBLE.
4291
4292 2010-10-21  Ira Rosen  <irar@il.ibm.com>
4293
4294         PR tree-optimization/46049
4295         PR tree-optimization/46052
4296         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
4297         (vect_get_slp_defs): Add arguments.
4298         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
4299         operands to vect_get_slp_defs.
4300         (vectorizable_reduction): Fix comment, pass scalar operands to
4301         vect_get_slp_defs.
4302         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
4303         type to determine number of units in the created vector.
4304         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
4305         (vectorizable_conversion): Fix comment.
4306         (vectorizable_shift): New function.
4307         (vectorizable_operation): Move code that handles shifts to
4308         vectorizable_shift.
4309         (vectorizable_type_demotion): Fix comment, pass scalar operands to
4310         vect_get_slp_defs.
4311         (vectorizable_type_promotion, vectorizable_store): Likewise.
4312         (vectorizable_condition): Fix comment.
4313         (vect_analyze_stmt): Call vectorizable_shift.
4314         (vect_transform_stmt): Likewise.
4315         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
4316         Use it as the operand to create vectors for, except reduction
4317         initial definition and store.  Use operands type.
4318         (vect_get_slp_defs): Add new arguments.  Pass them to
4319          vect_get_constant_vectors.
4320
4321 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
4322
4323         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
4324         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
4325         * cfghooks.c (fixup_reorder_chain): Likewise.
4326         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
4327         * cgraph.c (cgraph_add_thunk): Likewise.
4328         (cgraph_create_edge_1): Likewise.
4329         (cgraph_create_virtual_clone): Likewise.
4330         * ddg.c (add_cross_iteration_register_deps): Likewise.
4331         * dwarf2out.c (modified_type_die): Likewise.
4332         * emit-rtl.c (set_mem_alias_set): Likewise.
4333         * ggc-zone.c (zone_allocate_marks): Likewise.
4334         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
4335         * gimple.c (iterative_hash_gimple_type): Likewise.
4336         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
4337         (create_single_exit_edge): Likewise.
4338         * haifa-sched.c (choose_ready): Likewise.
4339         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4340         * passes.c (execute_todo): Likewise.
4341         * sched-ebb.c (begin_schedule_ready): Likewise.
4342         * sel-sched.c (code_motion_process_successors): Likewise.
4343         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
4344         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
4345         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
4346         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
4347         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
4348         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
4349         (ssa_conflicts_add): Likewise.
4350         * tree-ssa-copy.c (replace_exp): Likewise.
4351         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
4352         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
4353         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4354         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
4355         (compute_antic): Likewise.
4356         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
4357         (add_dependence): Likewise.
4358         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
4359         * tree-vrp.c (supports_overflow_infinity): Likewise.
4360         (make_overflow_infinity, negative_overflow_infinity): Likewise.
4361         (avoid_overflow_infinity, register_new_assert_for): Likewise.
4362         (process_assert_insertions_for): Likewise.
4363         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
4364         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
4365         (intersect_loc_chains, variable_merge_over_cur): Likewise.
4366
4367 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
4368
4369         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
4370         * reload1.c (has_nonexceptional_receiver): Likewise.
4371         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
4372         (create_new_def_for): Likewise.
4373         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
4374         (merge_phi_nodes): Likewise.
4375         (has_abnormal_incoming_edge_p): Delete.
4376
4377 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
4378
4379         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
4380
4381 2010-10-21  Richard Guenther  <rguenther@suse.de>
4382             Michael Matz  <matz@suse.de>
4383
4384         PR tree-optimization/45764
4385         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4386         Adjust initial misalignment for negative DR_STEP.
4387         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
4388         do not have the same alignment over the whole iteration domain.
4389
4390 2010-10-21  Richard Guenther  <rguenther@suse.de>
4391
4392         PR tree-optimization/46111
4393         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
4394
4395 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4396
4397         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
4398
4399 2010-10-21  Tristan Gingold  <gingold@adacore.com>
4400
4401         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
4402         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
4403
4404 2010-10-21  Tristan Gingold  <gingold@adacore.com>
4405
4406         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
4407         signal_frame.
4408         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
4409
4410 2010-10-21  Tristan Gingold  <gingold@adacore.com>
4411
4412         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
4413         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
4414
4415 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
4416
4417         * basic-block.h (find_fallthru_edge): Define.
4418         * cfgcleanup.c (merge_blocks_move): Use it.
4419         (try_crossjump_bb): Likewise.
4420         * cfglayout.c (fixup_reorder_chains): Likewise.
4421         (fixup_fallthru_exit_predecessor): Likewise.
4422         * cfgrtl.c (rtl_split_edge): Likewise.
4423         (rtl_verify_flow_info): Likewise.
4424         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4425         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
4426         * ifcvt.c (block_fallthru): Likewise.
4427         * reload1.c (fixup_abnormal_edges): Likewise.
4428         * sched-ebb.c (being_schedule_ready): Likewise.
4429         (schedule_ebb): Likwise.
4430         * sched-rgn.c (find_single_block_region): Likewise.
4431         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
4432         * tree-complex.c (expand_complex_move): Likewise.
4433         * sched-int.h (find_fallthru_edge): Rename to...
4434         (find_fallthru_edge_from): ...this.
4435         * haifa-sched.c (find_fallthru_edge): Rename to...
4436         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
4437         (init_before_recovery): Call find_fallthru_edge_from.
4438         * sel-sched-ir.c (merge_fences): Likewise.
4439         * sel-sched.c (in_fallthru_bb_p): Likewise.
4440         (move_cond_jump): Likewise.
4441
4442 2010-10-20  Paul Koning  <ni1d@arrl.net>
4443
4444         * config/pdp11/pdp11.md (various): Fix conditions on a number of
4445         insn to check for target 11/40 or higher.
4446
4447 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4448
4449         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
4450         bool instead of a tree.
4451         (c_parser_objc_method_decl): Added bool argument.  Updated call to
4452         objc_build_method_signature.
4453         (c_parser_objc_method_definition): Do not call
4454         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
4455         c_parser_objc_method_decl and objc_start_method_definition.
4456         (c_parser_objc_methodproto): Do not call objc_set_method_type.
4457         Updated calls to c_parser_objc_method_type,
4458         c_parser_objc_method_decl and objc_add_method_declaration.
4459
4460 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
4461
4462         PR tree-optimization/45919
4463         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
4464         array members.
4465
4466         PR tree-optimization/46066
4467         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
4468         instead of gsi_last_bb.
4469
4470 2010-10-20  DJ Delorie  <dj@redhat.com>
4471
4472         * config/m32c/m32c.c (m32c_option_override): Always disable
4473         function-cse in 16-bit mode.  Indirect calls are always worse than
4474         direct calls as there is no 16-bit indirect call opcode.
4475         (m32c_override_options_after_change): New, likewise.
4476
4477 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
4478
4479         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
4480         emitting the conditional move in the inner mode of the SUBREG.
4481
4482 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
4483
4484         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
4485         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
4486         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4487         (ia64_preferred_reload_class): Make static.  Change rclass argument
4488         and result types from enum reg_class to reg_class_t.
4489
4490 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
4491
4492         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
4493         call for single operand expression.
4494
4495 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4496
4497         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
4498         if there is a call statement to pure or const function in the block.
4499
4500 2010-10-20  Paul Koning  <pkoning@equallogic.com>
4501
4502         Fix several build errors for pdp11 target.
4503         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
4504         (cbranchdf4): Conditional on TARGET_FPU.
4505         (movdf): Ditto; correct alternatives check.
4506         (movmemhi): Fix predicate and constraint.
4507         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
4508
4509 2010-10-20  Richard Guenther  <rguenther@suse.de>
4510
4511         PR lto/45667
4512         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
4513         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
4514         (verify_gimple_assign_single): Disable ADDR_EXPR type check
4515         when in LTO.
4516
4517 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
4518
4519         PR fortran/42169
4520         * ira-emit.c (store_can_be_removed_p): Return false instead of
4521         gcc_unreachable.
4522
4523 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
4524
4525         * fold-const.c (fold_binary_loc): New transformation.
4526
4527 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4528
4529         PR target/46085
4530         * config/i386/sse.md (reduc_splus_v8sf): Updated.
4531         (reduc_splus_v4df): Likewise.
4532
4533 2010-10-20  Richard Guenther  <rguenther@suse.de>
4534
4535         PR tree-optimization/45860
4536         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
4537         conditional store replacement for non-register type stores.
4538
4539 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4540
4541         * stor-layout.c (skip_simple_constant_arithmetic): New function.
4542         (self_referential_size): Use it instead of skip_simple_arithmetic.
4543
4544 2010-10-20  Olivier Hainque  <hainque@adacore.com>
4545
4546         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
4547         If the current function calls eh_return, claim live all registers
4548         that we need to check for liveness otherwise.
4549
4550 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4551
4552         * c-decl.c (c_write_global_declarations): Call
4553         objc_write_global_declarations when compiling Objective-C.
4554         * c-lang.c (finish_file): Removed.
4555
4556 2010-10-19  DJ Delorie  <dj@redhat.com>
4557
4558         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
4559         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
4560         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4561         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4562         * doc/tm.texi: Regenerate.
4563         * targhooks.h (default_label_align_after_barrier_max_skip,
4564         default_loop_align_max_skip, default_label_align_max_skip,
4565         default_jump_align_max_skip): Declare.
4566         * target.def (label_align_after_barrier_max_skip): New.
4567         (loop_align_max_skip): New.
4568         (label_align_max_skip): New.
4569         (jump_align_max_skip): New.
4570         * system.h (poison): Add those macros to the list.
4571         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
4572         (LOOP_ALIGN_MAX_SKIP): Remove.
4573         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
4574         (JUMP_ALIGN_MAX_SKIP): Remove.
4575         (default_label_align_after_barrier_max_skip): New.
4576         (default_loop_align_max_skip): New.
4577         (default_label_align_max_skip): New.
4578         (default_jump_align_max_skip): New.
4579         (compute_alignments): Use the new hooks.
4580         (shorten_branches): Likewise.
4581
4582 2010-10-19  Richard Henderson  <rth@redhat.com>
4583
4584         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
4585         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
4586         (fma4i_fmadd_<mode>): New.
4587         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
4588         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
4589         standard fma patterns.
4590         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
4591         enable for FMA.
4592         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
4593         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
4594         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
4595
4596 2010-10-19  Paul Koning  <pkoning@equallogic.com>
4597
4598         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
4599         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
4600
4601 2010-10-19  Richard Henderson  <rth@redhat.com>
4602
4603         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
4604         (fmadf4, *fmsdf4, *nfmadf4): New.
4605         (fmaxf4, *fmsxf4, *nfmaxf4): New.
4606
4607 2010-10-19  Michael Eager  <eager@eagercon.com>
4608
4609         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
4610         Use sjlj unwind info for exceptions.
4611
4612 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
4613
4614         PR fortran/43414
4615         * dwarf2out.c (add_calling_convention_attribute): Flag main
4616         Fortran subroutine with DW_AT_main_subprogram.
4617
4618 2010-10-19  Nick Clifton  <nickc@redhat.com>
4619
4620         * config/rx/rx.c (rx_function_value): Small integer types are
4621         promoted to SImode.
4622         (rx_promote_function_mode): New function.
4623         (TARGET_PROMOTE_FUNCTION_MODE): Define.
4624
4625 2010-10-19  Nick Clifton  <nickc@redhat.com>
4626
4627         * config/mep/mep.c (mep_print_operand): Use
4628         targetm.strip_name_encoding.
4629         (mep_output_aligned_common): Likewise.
4630
4631 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
4632
4633         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
4634
4635 2010-10-18  Richard Henderson  <rth@redhat.com>
4636
4637         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
4638         (fma (neg a) (neg b) c) and (fma a (neg b) c).
4639
4640 2010-10-18  Richard Henderson  <rth@redhat.com>
4641
4642         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
4643         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
4644         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
4645         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
4646         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
4647         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
4648         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
4649         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
4650         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
4651         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
4652         (bdesc_multi_arg): Remove the corresponding builtins.
4653         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
4654         (UNSPEC_FMA4_FMSUBADD): Remove.
4655         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
4656         * config/i386/sse.md (FMA4MODEF4): Remove.
4657         (FMAMODE): Add.
4658         (fma<mode>4): New expander.
4659         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
4660         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
4661         (*fma4i_fmsub_<mode>): Similarly.
4662         (*fma4i_fnmadd_<mode>): Similarly.
4663         (*fma4i_fnmsub_<mode>): Similarly.
4664         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
4665         with the first operand.
4666         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
4667         of explicit arithmetic.  Macroize with AVXMODEF2P.
4668         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
4669         (xop_frcz<mode>2): Macroize with FMAMODE.
4670         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
4671         the first operand.
4672         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
4673         extra negations.
4674         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
4675         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
4676         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
4677         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
4678         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
4679         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
4680         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
4681         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
4682
4683 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
4684
4685         PR rtl-optimization/45966
4686         * combine.c (try_combine): If added_sets_2, deal with the case
4687         where i0 feeds i1 and i1 feeds i2.
4688
4689 2010-10-18  Jan Hubicka  <jh@suse.cz>
4690
4691         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
4692         preserve flags before trying to guess on visibility.
4693         (varpool_externally_visible_p): New function.
4694         (function_and_variable_visibility): Use it.
4695
4696 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4697
4698         Implemented parsing @synthesize and @dynamic for Objective-C.
4699         * c-parser.c (c_parser_external_declaration): Recognize
4700         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4701         (c_parser_objc_at_synthesize_declaration): New.
4702         (c_parser_objc_at_dynamic_declaration): New.
4703
4704 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4705
4706         * c-parser.c (c_parser_objc_class_declaration): After finding an
4707         error, parse the whole declaration then reset parser->error.
4708
4709 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4710
4711         PR target/46041
4712         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
4713         * builtins.c (mode_has_fma): Ditto.
4714
4715 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
4716
4717         PR target/36898
4718         PR middle-end/43760
4719         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
4720
4721 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
4722
4723         * config/i386/i386.c (ix86_option_override_internal): Define and
4724         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
4725         default.
4726         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4727         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
4728
4729 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4730
4731         Merge from 'apple/trunk' branch on FSF servers.
4732         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
4733         following Objective-C change:
4734
4735         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
4736
4737         Radar 4301047
4738         * c-parse.in (objc_quals): Build objc qualifier list same way
4739         as gcc-3.3
4740
4741 2010-10-18  Jan Hubicka  <jh@suse.cz>
4742
4743         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
4744         function_and_variable_visibility): Revert accidental commit.
4745
4746 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4747
4748         Merge from 'apple/trunk' branch on FSF servers.
4749         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
4750         the following Objective-C change:
4751
4752         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
4753
4754         Radar 4204796
4755         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
4756         'volatilized' type used in a typeof operator.
4757
4758 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
4759
4760         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
4761         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
4762         rewrite modelled on gimple_purge_dead_eh_edges.
4763         (gimple_purge_all_dead_abnormal_call_edges): New function.
4764         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
4765         directly instead of through gimple_purge_dead_abnormal_call_edges.
4766         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
4767         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
4768         removed AB side-effects from one of its statements.
4769         (init_pre): Initialize need_ab_cleanup.
4770         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
4771         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
4772
4773 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
4774
4775         PR c/46015
4776         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
4777         on computed goto argument.
4778
4779 2010-10-18  Richard Guenther  <rguenther@suse.de>
4780
4781         PR tree-optimization/45967
4782         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
4783         (could_have_pointers): Likewise.
4784         (handle_rhs_call, handle_const_call, handle_pure_call,
4785         find_func_aliases, intra_create_variable_infos): Remove calls to them.
4786         (struct fieldoff): Add must_have_pointers field.
4787         (type_must_have_pointers): New function.
4788         (field_must_have_pointers): Likewise.
4789         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
4790         Adjust field merging.
4791         (create_function_info_for): May-have-pointers of varinfo is
4792         almost always true.
4793         (create_variable_info_for_1): Likewise.
4794
4795 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
4796
4797         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
4798         of operands to vec_concat.
4799
4800 2010-10-18  Richard Guenther  <rguenther@suse.de>
4801
4802         PR lto/44950
4803         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
4804         also clear references to entries of it.
4805
4806 2010-10-18  Andi Kleen  <ak@linux.intel.com>
4807
4808         PR other/43448
4809         * gccbug.in: Remove.
4810         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
4811         (doc, distclean, install-common): Remove reference to gccbug.
4812         * configure: Regenerate.
4813         * configure.ac (all_outputs): Remove gccbug.
4814         * doc/configfiles.texi: Remove references to gccbug.
4815         * doc/sourcebuild.texi: Dito.
4816
4817 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
4818
4819         PR middle-end/46019
4820         * fold-const.c (fold_binary_loc): If integer_pow2p has
4821         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
4822
4823 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
4824             Jeremie Salvucci  <jeremie.salvucci@free.fr>
4825
4826         * gengtype.c (verbosity_level): Add variable.
4827         (set_gc_used): Count variables for verbosity.
4828         (close_output_files): Backing up files, counting written ones
4829         verbosily.
4830         (write_types): Count emitted functions for verbosity. Added
4831         debug messages.
4832         (write_enum_defn): Count structures for verbosity. Added debug
4833         messages.
4834         (gengtype_long_options): Add "verbose" & "backupdir".
4835         (print_usage): Ditto.
4836         (main): Verbose display of parsed files.
4837
4838         * gengtype.h (verbosity_level): Add declaration.
4839
4840 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
4841
4842         * gengtype.c (parse_program_options): Add allocation of
4843         plugin_files, and correct test on nb_plugin_files.
4844
4845 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4846
4847         Merge from 'apple/trunk' branch on FSF servers.
4848
4849         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
4850
4851         Radar 4133425
4852         * c-decl.c (undeclared_variable): Issue diagnostic on
4853         private 'ivar' access.
4854
4855 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
4856
4857         PR target/46051
4858         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
4859         generated sequence to match *avx_vperm2f128<mode>_nozero.
4860         (vec_interleave_lowv4df): Ditto.
4861         (vec_interleave_highv8sf): Ditto.
4862         (vec_interleave_lowv8sf): Ditto.
4863
4864 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
4865
4866         * libgcov.c (create_file_directory): Enable it for win32 case.
4867         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
4868         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
4869         (GCOV_PREFIX_SKIP): Likewise.
4870
4871 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4872
4873         * doc/objc.texi (GNU Objective-C runtime API): New section.
4874         (Modern GNU Objective-C runtime API): New section.
4875         (Traditional GNU Objective-C runtime API): New section.
4876         (Executing code before main): Mention that this section is
4877         specific to the GNU Objective-C runtime.
4878         (Garbage Collection): Same.
4879
4880 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
4881
4882         * c-parser.c (c_parser_for_statement): Move initialization of
4883         cond and incr before if.
4884
4885 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
4886
4887         * target.def (preferred_output_reload_class): New hook.
4888         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
4889         * doc/tm.texi: Regenerate.
4890         * targhooks.c (default_preferred_output_reload_class): New function.
4891         * targhooks.h (default_preferred_output_reload_class): Declare.
4892         * reload.c (find_dummy_reload): Change rclass argument type from
4893         enum reg_class to reg_class_t. Change this_alternative array type
4894         from enum reg_class to reg_class_t.
4895         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
4896         (push_reload): Change preferred_class variable type to reg_class_t.
4897         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
4898         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
4899         argument type from enum reg_class to reg_class_t. Use
4900         HARD_REGISTER_NUM_P predicate.
4901         * recog.h (reg_fits_class_p): Update prototype.
4902
4903         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4904         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
4905         Remove.
4906         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
4907         static. Change regclass argument and result types from enum reg_class
4908         to reg_class_t.
4909         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4910
4911 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4912
4913         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
4914         visibility enum, and handle @package.
4915
4916 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4917
4918         * doc/objc.texi (What you can and what you cannot do in +load):
4919         Document that sending messages to constant string objects in +load
4920         is not guaranteed to work.
4921
4922 2010-10-16  Jan Hubicka  <jh@suse.cz>
4923
4924         PR middle-end/44206
4925         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
4926         existence of refrences before removing the function.
4927
4928 2010-10-16  Jan Hubicka  <jh@suse.cz>
4929
4930         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
4931         only_called_at_startup and only_called_at_exit.
4932         (cgraph_propagate_frequency): Compute only_called_at_startup and
4933         only_called_at_exit.
4934         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
4935         only_called_at_exit.
4936         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
4937         flags.
4938         * predict.c (compute_function_frequency): Initialize the new flags.
4939
4940 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
4941
4942         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
4943         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
4944         on the bounds of its domain.
4945         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
4946
4947 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
4948
4949         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
4950         * config/avr/avr-protos.h (preferred_reload_class): Remove.
4951         * config/avr/avr.c (preferred_reload_class): Remove.
4952         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
4953         * config/pa/pa.c (emit_move_sequence): Update comment
4954         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
4955         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
4956         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
4957         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
4958         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
4959         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
4960         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
4961         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
4962         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
4963         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
4964         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
4965         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
4966         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
4967
4968 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
4969
4970         * opts.c (set_fast_math_flags,
4971         set_unsafe_math_optimizations_flags): Make static.
4972         * toplev.h (set_fast_math_flags,
4973         set_unsafe_math_optimizations_flags): Remove prototypes.
4974
4975 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
4976
4977         * config/arm/arm.c (arm_option_optimization): Set
4978         flag_section_anchors to 1 not 2.
4979         * config/i386/i386.c (ix86_option_override_internal): Check
4980         global_options_set.x_flag_zee and
4981         global_options_set.x_flag_omit_frame_pointer.
4982         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
4983         flag_zee to 2.
4984         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
4985         global_options_set.x_flag_omit_frame_pointer.
4986         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
4987         opts->x_flag_section_anchors to 1 not 2.
4988         * config/sh/sh.c (sh_option_optimization): Don't set
4989         flag_schedule_insns to 2.
4990         (sh_option_override): Check
4991         global_options_set.x_flag_schedule_insns.
4992         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
4993
4994 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
4995
4996         * configure.ac: Make sure inhibit_libc remains false for mingw targets
4997         as cross.
4998         * configure: Regenerated.
4999
5000 2010-10-15  Xinliang David Li  <davidxl@google.com>
5001
5002         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
5003         function.
5004         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
5005         into a recursive function.
5006
5007 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
5008
5009         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
5010         (*movdfcc_1): ditto.
5011
5012 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
5013
5014         * target.def (target_option.init_struct): New hook.
5015         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
5016         * doc/tm.texi: Regenerate.
5017         * hooks.c (hook_void_gcc_optionsp): New.
5018         * hooks.h (hook_void_gcc_optionsp): Declare.
5019         * langhooks-def.h (lhd_init_options_struct): Remove.
5020         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
5021         * langhooks.c (lhd_init_options_struct): Remove.
5022         * opts.c (init_options_struct): Also call
5023         targetm.target_option.init_struct.
5024         * config/i386/i386.c (ix86_option_init_struct,
5025         TARGET_OPTION_INIT_STRUCT): New.
5026         (ix86_option_optimization): Move some settings to
5027         ix86_option_init_struct.
5028         * config/pdp11/pdp11.c (pdp11_option_init_struct,
5029         TARGET_OPTION_INIT_STRUCT): New.
5030         (pdp11_option_optimization): Move some settings to
5031         pdp11_option_init_struct.
5032         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
5033         rs6000_option_init_struct.  Use options structure pointer.
5034         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
5035         * config/s390/s390.c (s390_option_init_struct,
5036         TARGET_OPTION_INIT_STRUCT): New.
5037         (s390_option_optimization): Don't set
5038         flag_asynchronous_unwind_tables here.
5039         * config/sh/sh.c (sh_option_init_struct,
5040         TARGET_OPTION_INIT_STRUCT): New.
5041         (sh_option_optimization): Don't set flag_finite_math_only here.
5042         * config/spu/spu.c (spu_option_optimization): Replace by
5043         spu_option_optimization.  Use options structure pointer.
5044         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
5045
5046 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5047
5048         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
5049
5050         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
5051         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
5052         (Standard names): Document fma.
5053
5054         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
5055         __FP_FAST_FMAF, __FP_FAST_FMAL.
5056
5057         * builitns.c (expand_builtin_mathfn_ternary): New function for
5058         expanding ternary math functions, like fma.
5059         (expand_builtin): Call it for the fma builtins.
5060
5061         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
5062         ops at present.
5063
5064         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
5065         vectorizable functions to support vectorizing fma.
5066
5067         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
5068         Handle fma builtins.
5069
5070         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
5071         (UNSPEC_VSX_MSUB): Ditto.
5072         (UNSPEC_VSX_NMADD): Ditto.
5073         (UNSPEC_VSX_NMSUB): Ditto.
5074         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
5075         of UNSPEC. Renumber combiner patterns.
5076         (vsx_fmsub<mode>4*): Ditto.
5077         (vsx_fnmadd<mode>4*): Ditto.
5078         (vsx_fnmsub<mode>4*): Ditto.
5079
5080         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
5081         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
5082         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
5083         (altivec_vmaddfp_1): Ditto.
5084         (altivec_vmaddfp_2): Ditto.
5085         (atlivec_mulv4sf3): Ditto.
5086         (altivec_vnmsubfp): Ditto.
5087         (altivec_vnmsubfp_1): Ditto.
5088         (altivec_vnmsubfp_2): Ditto.
5089         (altivec_vnmsubfp_3): Delete.
5090
5091         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
5092         (fmasf4_fpr): Ditto.
5093         (fmssf4_fpr): Ditto.
5094         (fnmasf4_fpr): Ditto.
5095         (fnmssf4_fpr): Ditto.
5096         (fmadf4): Ditto.
5097         (fmadf4_fpr): Ditto.
5098         (fmsdf4_fpr): Ditto.
5099         (fnmadf4_fpr): Ditto.
5100         (fnmsdf4_fpr): Ditto.
5101
5102         * optabs.h (OTI_fma): Add fma optab.
5103         (fma_optab): Ditto.
5104
5105         * genopinit.c (optabs): Set fma optab.
5106
5107         * rtl.def (FMA): Add FMA rtl.
5108
5109         * tree.h (mode_has_fma): New function to return if MODE supports a
5110         fast multiply and add instruction.
5111         * builtins.c (mode_has_fma): Ditto.
5112
5113 2010-10-15  Jan Hubicka  <jh@suse.cz>
5114
5115         * lto-streamer-out.c (write_symbol): Use pointer set of seen
5116         objects instead of bitmap.
5117         (produce_symtab): Likewise; output defined symbols first.
5118
5119 2010-10-15  Jie Zhang  <jie@codesourcery.com>
5120
5121         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
5122         Option Summary and Index.
5123
5124 2010-10-15  Richard Guenther  <rguenther@suse.de>
5125
5126         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
5127         for automatic variables again.
5128
5129 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
5130
5131         * doc/extend.texi (Variable Length): Don't refer to VLAs not
5132         conforming to C99.
5133
5134 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
5135
5136         * config/rx/rx.c (rx_option_optimization): Change to
5137         rx_override_options_after_change.  Don't change
5138         flag_lto_compression_level.  Don't check for changes to whether
5139         FPU instructions can be used.  Check and set only
5140         flag_finite_math_only, not other fast-math flags.
5141         (rx_option_override): Call rx_override_options_after_change.
5142         (TARGET_OPTION_OPTIMIZATION): Remove.
5143         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5144
5145 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
5146
5147         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
5148         disable section anchors for lang_hooks.name[4] != 'O'.
5149
5150 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
5151
5152         * config/frv/frv.c (frv_option_optimization,
5153         TARGET_OPTION_OPTIMIZATION): Remove.
5154         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
5155
5156 2010-10-15  Michael Matz  <matz@suse.de>
5157
5158         * cgraphunit.c (clone_of_p): Define unconditionally.
5159
5160 2010-10-15  Richard Guenther  <rguenther@suse.de>
5161
5162         PR lto/45957
5163         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
5164
5165 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
5166
5167         * ifcvt.c (find_active_insn_before): New function.
5168         (find_active_insn_after): New function.
5169         (cond_exec_process_if_block): Use new functions to replace
5170         prev_active_insn() and next_active_insn().
5171
5172 2010-10-14  Yao Qi  <yao@codesourcery.com>
5173
5174         PR target/45447
5175         * config/arm/arm.c (arm_build_builtin_va_list): Assign
5176         va_list_name to TYPE_STUB_DECL (va_list_type).
5177
5178 2010-10-14  Jan Hubicka  <jh@suse.cz>
5179
5180         PR middle-end/45621
5181         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
5182         redirected to clone, be happy.
5183         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
5184         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
5185         former_clone_of unconditionally.
5186
5187 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
5188
5189         Merge from FSF apple 'trunk' branch.
5190         2006 Fariborz Jahanian  <fjahanian@apple.com>
5191
5192         Radars 4436866, 4505126, 4506903, 4517826
5193         * c-parser.c (c_parser, objc_property_attr_context) New flag.
5194         (c_lex_one_token): Handle property attributes.
5195         (c_parser_external_declaration): Handle @property.
5196         (c_parser_declaration_or_fndef): Warn on invalid attributes before
5197         @alias, @class, @end and @property objc keywords.
5198         (c_parser_objc_methodprotolist): Handle @property.
5199         (c_parser_objc_property_attrlist): New.
5200         (c_parser_objc_at_property): New.
5201         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
5202         (build_modify_expr): Likewise.
5203
5204 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
5205
5206         PR tree-optimization/46008
5207         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
5208
5209 2010-10-14  Richard Guenther  <rguenther@suse.de>
5210
5211         PR tree-optimization/44913
5212         * tree-data-ref.c (disjoint_objects_p): Remove.
5213         (dr_may_alias_p): Simplify.  Only hand the base object to
5214         the alias-oracle.
5215         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5216         some more trees, bail out instead of asserting.
5217         (ptr_derefs_may_alias_p): Likewise.  Export.
5218         (refs_may_alias_p_1): Handle STRING_CSTs.
5219         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
5220
5221 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
5222
5223         PR c/45969
5224         * c-typeck.c (build_binary_op): Don't try to compute a semantic
5225         type with excess precision for boolean operations.
5226
5227 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
5228             Basile Starynkevitch  <basile@starynkevitch.net>
5229
5230         * gengtype.c:  Include getopt.h and version.h.
5231
5232         (lang_bitmap, struct outf, outf_p)
5233         (get_output_file_with_visibility, oprintf): Definitions moved to
5234         gengtype.h
5235         (output_files, header_file, srcdir, srcdir_len, this_file)
5236         (do_dump): No more static variables.
5237         (do_debug): New.
5238         (dbgprint_count_type_at): Added new function.
5239         (gengtype_long_options): New.
5240         (print_usage, print_version, parse_program_options): New.
5241         (main): Call parse_program_options, and removed old option
5242         handling code.  Added some debug output.
5243
5244         * gengtype.h:  Updated copyright year.
5245         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
5246         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
5247         Moved from gengtype.c to here.
5248         (do_debug, read_state_filename, write_state_filename): New variables.
5249         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
5250
5251         * Makefile.in:
5252         (REVISION): Always defined.
5253         (version.o): Removed ifdef REVISION_c.
5254         (s-gtype): Pass arguments to build/gengtype program.
5255         (build/version.o): Added building rule.
5256         (build/gengtype$(build_exeext)): Added build/version.o.
5257
5258 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
5259
5260         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
5261         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
5262         __strong macros.
5263
5264 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
5265
5266         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
5267         may_trap_or_fault_p instead of may_trap_p predicate.
5268         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
5269         (substitute_placeholder_in_expr): Likewise.
5270         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
5271         flag on MEM_REF nodes.
5272         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
5273         flags on INDIRECT_REF nodes.
5274
5275 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
5276
5277         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
5278         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
5279         (arm*-*-eabi*) <tm_file>: Likewise.
5280         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
5281         (frv-*-*linux*) <tm_file>: Likewise.
5282         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
5283         and associated helper macros.
5284         * config/frv/frv-abi.h: Delete.
5285
5286 2010-10-14  Richard Guenther  <rguenther@suse.de>
5287
5288         PR lto/44561
5289         * tree.def (NULLPTR_TYPE): New tree code.
5290         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
5291         * dwarf2out.c (is_base_type): Likewise.
5292         (gen_type_die_with_usage): Likewise.
5293         * sdbout.c (plain_type_1): Likewise.
5294         * tree.c (build_int_cst_wide): Likewise.
5295         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
5296
5297 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
5298
5299         * params.c (params_finished): New.
5300         (add_params): Assert !params_finished.
5301         (finish_params): New.
5302         (set_param_value_internal): Take params and params_set
5303         parameters.  Assert params_finished.
5304         (set_param_value, maybe_set_param_value): Take params and
5305         params_set parameters.  Update calls to set_param_value_internal.
5306         (set_default_param_value): Assert !params_finished.  Don't use
5307         set_param_value_internal.
5308         (default_param_value, init_param_values): New.
5309         * params.h (struct param_info): Change value to default_value.
5310         Remove set.
5311         (set_param_value, maybe_set_param_value): Add params and
5312         params_set parameters.
5313         (PARAM_VALUE): Get parameters from global_options.
5314         (PARAM_SET_P): Remove.
5315         (finish_params, default_param_value, init_param_values): New.
5316         * common.opt (param_values): New Variable.
5317         * config/arm/arm.c (arm_option_override): Pass extra arguments to
5318         maybe_set_param_value.
5319         * config/i386/i386.c (ix86_option_override_internal): Pass extra
5320         arguments to maybe_set_param_value.
5321         * config/picochip/picochip.c (picochip_option_override): Pass
5322         extra arguments to maybe_set_param_value.
5323         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
5324         extra arguments to maybe_set_param_value.
5325         * config/s390/s390.c (s390_option_override): Use
5326         maybe_set_param_value instead of set_param_value.  Pass extra
5327         arguments to maybe_set_param_value.
5328         * config/sparc/sparc.c (sparc_option_override): Pass extra
5329         arguments to maybe_set_param_value.
5330         * config/spu/spu.c (spu_option_override): Pass extra arguments to
5331         maybe_set_param_value.
5332         * opts.c (handle_param): Take opts and opts_set parameters.
5333         Update call to set_param_value.
5334         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
5335         initial_loop_invariant_max_bbs_in_loop): Remove.
5336         (init_options_once): Don't set them.
5337         (init_options_struct): Initialize parameters structures.
5338         (default_options_optimization): Use default_param_value when
5339         restoring defaults.  Update calls to maybe_set_param_value.
5340         (finish_options): Update calls to maybe_set_param_value.
5341         (common_handle_option): Update calls to handle_param and
5342         set_param_value.
5343         * toplev.c (DEFPARAM): Update definition for changes to param_info.
5344         (general_init): Call finish_params.
5345
5346 2010-10-14  Nick Clifton  <nickc@redhat.com>
5347
5348         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
5349         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
5350         (FIRST_PSEUDO_REGISTER): Increase by one.
5351         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
5352         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
5353         (MODES_TIEABLE): Call mn10300_modes_tieable.
5354         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
5355         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
5356         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
5357         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
5358         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
5359         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
5360         (mn10300_cc_status_mdep): Delete.
5361         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
5362         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
5363         the combine-stack-adjust pass.
5364         (print_operand): Use the mode of the comparison operation to
5365         select the comparison suffix.
5366         (notice_update_cc): Delete.
5367         (mn10300_secondary_reload_class): Remove test for stack pointer
5368         based arithmetic.
5369         (output_tst): Rename to mn10300_output_cmp.
5370         (impossible_plus_operand): Move into predicates.md.
5371         (mn10300_legitimize_address): Make static.
5372         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
5373         constant pic operands.
5374         (mn10300_legitimate_constant_p): New function.
5375         (mn10300_case_values_threshold): Make static.
5376         (mn10300_hard_regno_mode_ok): New function.
5377         (mn10300_modes_tieable): New function.
5378         (mn10300_select_cc_mode): New function.
5379         * config/mn10300/predicates.md (impossible_plus_operand): Define.
5380         * config/mn10300/mn10300-protos.h: Tidy.
5381         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
5382         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
5383         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
5384         with clobbers or sets of CC_REG.
5385         (CC_REG): Define.
5386         (mov*): Remove use of CLR instruction.
5387         (cbranch_si4_<code>): New pattern/split.
5388         (integer_conditional_branch): New pattern.
5389         (cbranch_sf4_<code>): New pattern/split.
5390         (float_conditional_branch): New pattern.
5391         (casesi): Use addsi3 pattern instead of movsi pattern to add and
5392         move a value at the same time.
5393         (cc0 peepholes): Remove.
5394
5395 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
5396
5397         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
5398         on RTX_FRAME_RELATED_P insns and the insn to which
5399         NOTE_INSN_EPILOGUE_BEG is attached.
5400         * sched-vis.c (print_value): Allow NULL value.
5401
5402 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
5403
5404         PR rtl-optimization/45570
5405         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
5406         assert that we are pipelining outer loops.  Allow returning
5407         zero predecessors.
5408
5409 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
5410
5411         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
5412         (tidy_control_flow): Tidy vertical space.
5413         (sel_remove_bb): New variable idx.  Use it to remember the basic
5414         block index before deleting the block.
5415         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
5416         (sel_merge_blocks): ... here.
5417         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
5418
5419 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
5420
5421         * cse.c (is_dead_reg): Change into inline function that is not
5422         called through for_each_rtx.
5423         (set_live_p): Adjust caller.
5424         (insn_live_p): Don't reset DEBUG_INSNs here.
5425         (struct dead_debug_insn_data): New data.
5426         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
5427         (delete_trivially_dead_insns): If there is just one setter for the
5428         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
5429         and add DEBUG_INSN for it right before the removed setter and
5430         use the DEBUG_EXPR instead of the dead pseudo.
5431
5432 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
5433
5434         * et-forest.c (et_nca): Return NULL immediately when
5435         the dominance forest has disjoint components.
5436
5437 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
5438
5439         * ira.c (setup_class_hard_regs): Fix typo in indexing
5440         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
5441
5442 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
5443
5444         * graph.c (inbb): New variable.
5445         (start_bb): Set inbb to 1 if output is inside of a building block.
5446         (end_bb): Check if output is inside of a building block.
5447
5448 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5449
5450         PR rtl-optimization/45912
5451         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
5452         regno of registers instead of their index to compute the alignment.
5453
5454 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
5455
5456         * config/i386/i386.c (ix86_build_const_vector): Check vector
5457         mode instead of scalar mode.
5458         (ix86_build_signbit_mask): Likewise.
5459         (ix86_expand_fp_absneg_operator): Updated.
5460         (ix86_expand_copysign): Likewise.
5461         (ix86_expand_int_vcond): Likewise.
5462         (ix86_emit_swdivsf): Likewise.
5463         (ix86_sse_copysign_to_positive): Likewise.
5464         (ix86_expand_sse_fabs): Likewise.
5465         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
5466         * config/i386/sse.md (copysign<mode>3): Likewise.
5467         (sse2_cvtudq2ps): Likewise.
5468         (vec_unpacku_float_hi_v4si): Likewise.
5469         (vec_unpacku_float_lo_v4si): Likewise.
5470
5471         * config/i386/i386.c (ix86_builtins): Add
5472         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
5473         (bdesc_args): Likewise.
5474         (ix86_builtin_vectorized_function): Support
5475         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
5476         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
5477         and IX86_BUILTIN_CVTPS2DQ256.
5478         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
5479
5480         * config/i386/sse.md (STORENT_MODE): New.
5481         (VEC_FLOAT_MODE): Likewise.
5482         (VEC_EXTRACT_MODE): Likewise.
5483         (*avx_cvtdq2pd256_2): Likewise.
5484         (vec_pack_trunc_v4df): Likewise.
5485         (vec_interleave_highv8sf): Likewise.
5486         (vec_interleave_lowv8sf): Likewise.
5487         (storent<mode>): Macroized.
5488         (<code><mode>2: absneg): Likewise.
5489         (copysign<mode>3): Likewise.
5490         (vec_extract<mode>): Likewise.
5491
5492         PR target/44180
5493         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
5494         for V8SFmode.
5495
5496 2010-10-13  Richard Guenther  <rguenther@suse.de>
5497             H.J. Lu  <hongjiu.lu@intel.com>
5498
5499         * config/i386/sse.md (reduc_splus_v8sf): Add.
5500         (reduc_splus_v4df): Likewise.
5501         (vec_unpacks_hi_v8sf): Likewise.
5502         (vec_unpacks_lo_v8sf): Likewise.
5503         (*avx_cvtps2pd256_2): Likewise.
5504         (vec_unpacks_float_hi_v8si): Likewise.
5505         (vec_unpacks_float_lo_v8si): Likewise.
5506         (vec_interleave_highv4df): Likewise.
5507         (vec_interleave_lowv4df): Likewise.
5508
5509 2010-10-13  Richard Guenther  <rguenther@suse.de>
5510
5511         PR objc/45878
5512         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
5513         alone if there are no virtual methods.
5514
5515 2010-10-13  Richard Henderson  <rth@redhat.com>
5516
5517         * expr.c (build_personality_function): Take parameter LANG instead
5518         of parameter NAME.  Build the name based on the lang prefix and the
5519         unwind method in use.
5520         * tree.c (lhd_gcc_personality): Update call to
5521         build_personality_function.
5522
5523 2010-10-13  Richard Guenther  <rguenther@suse.de>
5524
5525         PR objc/45878
5526         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
5527
5528 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5529
5530         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
5531         Canonicalize input operands of ASM_OPERANDS insns.
5532
5533 2010-10-13  Richard Guenther  <rguenther@suse.de>
5534
5535         PR tree-optimization/45788
5536         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
5537         EH update until fixup-cfg.
5538
5539 2010-10-13  Julian Brown  <julian@codesourcery.com>
5540
5541         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
5542         from CORE_REGS and GENERAL_REGS classes.
5543         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
5544         final constraint for register preferencing.
5545
5546 2010-10-13  Richard Guenther  <rguenther@suse.de>
5547
5548         PR tree-optimization/45970
5549         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
5550         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
5551         (stmt_kills_ref_p): Likewise.
5552         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
5553
5554 2010-10-13  Richard Guenther  <rguenther@suse.de>
5555
5556         PR tree-optimization/45982
5557         * tree-ssa-structalias.c (make_constraints_to): New function.
5558         (make_constraint_to): Implement in terms of make_constraints_to.
5559         (find_func_aliases): Properly make return values of pure/const
5560         functions escape if they assign to sth that is not a pointer.
5561
5562 2010-10-13  Richard Guenther  <rguenther@suse.de>
5563
5564         PR middle-end/45874
5565         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
5566         Fixup the CFG when EH was fixed up.
5567
5568 2010-10-13  Ira Rosen  <irar@il.ibm.com>
5569
5570         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
5571         Use operand's type for POINTER_PLUS_EXPR.
5572
5573 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
5574
5575         * c-parser.c (c_parser_for_statement): Initialize incr.
5576
5577 2010-10-12  Xinliang David Li  <davidxl@google.com>
5578
5579         PR tree-optimization/45972
5580         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
5581         with too many arguments.
5582
5583 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
5584
5585         PR fortran/45636
5586         * tree-ssa-forwprop.c: Include expr.h.
5587         (constant_pointer_difference, simplify_builtin_call): New functions.
5588         (tree_ssa_forward_propagate_single_use_vars): Call
5589         simplify_builtin_call on builtin calls.
5590
5591 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
5592
5593         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
5594         (*adddi3_extend_sp32): Likewise.
5595         (*subdi3_insn_sp32): Likewise.
5596         (*subdi3_extend_sp32): Likewise.
5597         (*negdi2_sp32): Use negative test for consistency.
5598
5599 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
5600
5601         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
5602         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5603         * config/fixed-bit.h: Likewise.
5604         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5605         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5606         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
5607         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
5608         (DF_SIZE): Likewise.
5609         * doc/tm.texi: Regenerate.
5610
5611 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
5612
5613         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
5614         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
5615         (*isel_reversed_unsigned_<mode>): New.
5616         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
5617         as valid comparisons and adjust operands and output appropriately.
5618         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
5619
5620 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
5621
5622         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
5623         DATA_ALIGNMENT and add COND parameter. Update comments above.
5624         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
5625         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
5626
5627 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
5628
5629         PR bootstrap/45958
5630         * exec-tool.in: Support '-plugin' as the second option to the linker.
5631
5632 2010-10-12  Richard Henderson  <rth@redhat.com>
5633
5634         PR middle-end/45962
5635         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
5636         (expand_stack_vars): Assert large base allocated when used.
5637
5638 2010-10-12  Richard Guenther  <rguenther@suse.de>
5639
5640         * tree-ssa-structalias.c (get_constraint_for_1): Constants
5641         only point to nonlocal, not anything.
5642
5643 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
5644
5645         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
5646         unwind info for exceptions.
5647
5648 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5649
5650         PR testsuite/45851
5651         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
5652         Document optional target selector.
5653
5654 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
5655
5656         * flag-types.h: New.
5657         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
5658         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
5659         options.h.
5660         (OPTIONS_H): Define.
5661         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
5662         of options.h.
5663         * configure.ac (tm_include_list): Include options.h not flags.h.
5664         * configure: Regenerate.
5665         * flags.h: Include flag-types.h.  Include options.h at top of file
5666         again.
5667         (enum debug_info_type, enum debug_info_level, enum
5668         debug_info_usage, enum symbol_visibility, struct visibility_flags,
5669         enum ira_algorithm, enum ira_region, enum excess_precision, enum
5670         graph_dump_types, enum stack_check_type,
5671         enum warn_strict_overflow_code): Move to flag-types.h
5672         * opth-gen.awk: Include flag-types.h in options.h.
5673
5674 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
5675
5676         * expr.c (store_expr): Share code for STRING_CST and
5677         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
5678         check if target is a MEM.
5679
5680         * rtl.h: Include hashtab.h.
5681         (iterative_hash_rtx): New prototype.
5682         * rtl.c (iterative_hash_rtx): New function.
5683         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
5684         (output_loc_list): Return immediately if emitted is set, set it.
5685         (hash_loc_operands, hash_locs, hash_loc_list,
5686         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
5687         optimize_location_lists_1, optimize_location_lists): New function.
5688         (dwarf2out_finish): Call optimize_location_lists.
5689         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
5690
5691 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5692
5693         PR testsuite/45974
5694         Revert:
5695         * Makefile.in ($(lang_checks_parallel))
5696         ($(lang_checks_parallelized)): Use single quotes for
5697         $(RUNTESTFLAGS), to allow passing quoted content.
5698
5699 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5700
5701         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
5702         actual_oldval.  Use __builtin_expect.
5703         (SUBWORD_VAL_CAS): Likewise.
5704
5705 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
5706
5707         * recog.c (nonmemory_operand): Call immediate_operand for
5708         CONSTANT_P operands.
5709
5710 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
5711
5712         * config/i386/i386.md (movmem<mode>): Macroize expander from
5713         movmem{si,di} using SWI48 mode iterator.
5714         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
5715         *strmovsi_rex_1 using P mode iterator.
5716         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
5717         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
5718         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
5719         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
5720         (setmem<mode>): Macroize expander from setmem{si,di} using
5721         SWI48 mode iterator.
5722         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
5723         *strsetsi_rex_1 using P mode iterator.
5724         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
5725         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
5726         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
5727         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
5728         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
5729         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
5730         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
5731         mode iterator.
5732         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
5733         *strlenqi_rex_1 using P mode iterator.
5734
5735 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
5736
5737         PR bootstrap/45445
5738         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
5739         static functions.
5740         (mark_ref_live, mark_ref_dead): Use them.
5741         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
5742         Save the original reg, and use the new functions.
5743         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
5744         changed.
5745         (check_and_make_def_conflict): Save the original reg.
5746
5747 2010-10-11  Martin Jambor  <mjambor@suse.cz>
5748
5749         PR middle-end/45699
5750         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
5751         thunks.
5752
5753 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5754
5755         * Makefile.in ($(lang_checks_parallel))
5756         ($(lang_checks_parallelized)): Use single quotes for
5757         $(RUNTESTFLAGS), to allow passing quoted content.
5758
5759         PR bootstrap/35855
5760         * opt-functions.awk (BEGIN): New section.
5761         (lower, upper, digit, alnum): New variables.
5762         (static_var, opt_sanitized_name): Use alnum instead of character
5763         classes, for non-C locale.
5764         * optc-gen.awk: Likewise.
5765         * opth-gen.awk: Likewise.
5766
5767 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
5768
5769         * target.def (preferred_reload_class): New hook.
5770         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
5771         * doc/tm.texi: Regenerate.
5772         * targhooks.c (default_preferred_reload_class): New function.
5773         * targhooks.h (default_preferred_reload_class): Declare.
5774         * reload.c (find_dummy_reload): Change preferred_class variable type
5775         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
5776         target hook.
5777         (find_reloads): Change goal_alternative array type from int to
5778         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
5779         (push_reload, find_reloads_address_part): Use
5780         TARGET_PREFERRED_RELOAD_CLASS target hook.
5781         * reload1.c (emit_input_reload_insns): Ditto.
5782         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
5783         hook. Change rclass argument and secondary_class variable types from
5784         'enum reg_class' to reg_class_t.
5785
5786         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
5787         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
5788         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
5789         Change regclass argument and result types from enum reg_class to
5790         reg_class_t.
5791         (TARGET_PREFERRED_RELOAD_CLASS): Define.
5792
5793 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
5794
5795         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
5796         in masking operations.
5797         (simplify_const_unary_operation): Likewise.
5798         (simplify_binary_operation_1): Likewise.
5799         (simplify_const_binary_operation): Likewise.
5800         (simplify_const_relational_operation): Likewise.
5801         (simplify_ternary_operation): Likewise.
5802         (simplify_immed_subreg): Likewise.
5803
5804 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5805
5806         PR middle-end/45862
5807         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
5808         (TARGET_SUPPORTS_WEAK): New.
5809         * doc/tm.texi: Regenerate.
5810         * defaults.h (SUPPORTS_WEAK): Update comment.
5811         (TARGET_SUPPORTS_WEAK): New.
5812         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
5813         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
5814         SUPPORTS_WEAK.
5815         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
5816         make_decl_one_only): Likewise.
5817         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
5818         TARGET_SUPPORTS_WEAK.
5819         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
5820         instead of SUPPORTS_WEAK.
5821
5822 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5823
5824         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
5825
5826 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
5827
5828         * vec.h (VEC_qsort): Define.
5829         * dbxout.c (output_used_types): Use it.
5830         * df-scan.c (df_sort_and_compress_refs): Likewise.
5831         (df_sort_and_compress_mws): Likewise.
5832         * genautomata.c (uniq_sort_alt_states): Likewise.
5833         (evaluate_equiv_classes): Likewise.
5834         (output_trans_table): Likewise.
5835         (output_state): Likewise.
5836         * gimplify.c (compare_case_labels): Likewise.
5837         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
5838         * ipa.c (build_cdtor_fns): Likewise.
5839         * lto.c (lto_wpa_write_files): Likewise.
5840         * sel-sched.c (fill_vec_av_set): Likewise.
5841         * tree-predcom.c (determine_roots_comp): Likewise.
5842         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
5843         (splice_param_accesses): Likewise.
5844         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
5845         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
5846         (reassociate_bb): Likewise.
5847         * tree-ssa-sccvn.c (sort_scc): Likewise.
5848         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
5849
5850 2010-10-11  Ian Lance Taylor  <iant@google.com>
5851
5852         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
5853         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
5854         TREE_THIS_NOTRAP when appropriate.
5855         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
5856         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
5857         newly created MEM_REF.
5858
5859 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
5860
5861         Nathan Froyds patch to hooks FUNCTION_ARG etc.
5862         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
5863         (picochip_incoming_function_arg): Delete.
5864         (picochip_arg_advance): Delete.
5865         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
5866         (FUNCTION_INCOMING_ARG): Delete.
5867         (FUNCTION_ARG_ADVANCE): Delete.
5868         * config/picochip/picochip.c (picochip_function_arg): Take a
5869         const_tree and a bool.
5870         (picochip_incoming_function_arg): Likewise.
5871         (picochip_arg_advance): Likewise.
5872         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5873         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5874
5875 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5876
5877         PR middle-end/45955
5878         * ipa.c (build_cdtor): Delete endless loop.
5879
5880 2010-10-07  Andi Kleen  <ak@linux.intel.com>
5881
5882         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
5883         checksum-options.
5884         (checksum-options): Add.
5885         (cc1-dummy): Remove.
5886         (cc1-checksum): Change to run checksum over object files
5887         and options only.
5888         * dummy-checksum.c: Remove.
5889         * genchecksum.c: Update copyright.
5890         (usage): Allow multiple arguments.
5891         (BLOCKSIZE): Add.
5892         (dosum): Change for incremental checksum. Remove C output.
5893         (main): Iterate over all argument files. Add C output.
5894
5895 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
5896
5897         * params.c (set_param_value_internal): New.
5898         (set_param_value): Use set_param_value_internal.
5899         (maybe_set_param_value, set_default_param_value): New.
5900         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
5901         (maybe_set_param_value, set_default_param_value): Declare.
5902         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
5903         * config/i386/i386.c (ix86_option_override_internal): Use
5904         maybe_set_param_value.
5905         * config/ia64/ia64.c (ia64_option_default_params,
5906         TARGET_OPTION_DEFAULT_PARAMS): New.
5907         (ia64_option_optimization): Move some code to
5908         ia64_option_default_params.
5909         * config/picochip/picochip.c (picochip_option_override): Use
5910         maybe_set_param_value.
5911         * config/rs6000/rs6000.c (rs6000_option_default_params,
5912         TARGET_OPTION_DEFAULT_PARAMS): New.
5913         (rs6000_option_override_internal): Use maybe_set_param_value.
5914         (rs6000_option_optimization): Move some code to
5915         rs6000_option_default_params.
5916         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
5917         * config/sh/sh.c (sh_option_default_params,
5918         TARGET_OPTION_DEFAULT_PARAMS): New.
5919         (sh_option_optimization): Move some code to sh_option_default_params.
5920         * config/sparc/sparc.c (sparc_option_override): Use
5921         maybe_set_param_value.
5922         * config/spu/spu.c (spu_option_default_params,
5923         TARGET_OPTION_DEFAULT_PARAMS): New.
5924         (spu_option_optimization): Move some code to spu_option_default_params.
5925         (spu_option_override): Use maybe_set_param_value.
5926         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
5927         * doc/tm.texi: Regenerate.
5928         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
5929         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
5930         compiler_params.
5931         (default_options_optimization): Use maybe_set_param_value.
5932         (finish_options): Use maybe_set_param_value.
5933         * target.def (target_option.default_params): New hook.
5934         * toplev.c (general_init): Call targetm.target_option.default_params.
5935
5936 2010-10-11  Ira Rosen  <irar@il.ibm.com>
5937
5938         PR tree-optimization/45902
5939         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
5940         vector type for constants, unless it's a pointer.
5941
5942 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5943
5944         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
5945
5946 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
5947
5948         PR target/45870
5949         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
5950         (ix86_delegitimize_address): Use it.
5951
5952 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
5953
5954         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
5955
5956 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
5957
5958         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
5959         to cum struct in the call to function_arg_advance.
5960         (alpha_function_arg_advance): Mark named as unused.
5961
5962 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
5963
5964         * config/mips/mips.c (mips_handle_option): Make "value" with
5965         ATTRIBUTE_UNUSED.
5966
5967 2010-10-09  Richard Henderson  <rth@redhat.com>
5968
5969         PR rtl-opt/33721
5970         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
5971         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
5972         required_align, tidy the code a bit.  Emit split_stack code in the
5973         right place.  Mark the return value with the alignment properly.
5974         * expr.h (allocate_dynamic_stack_space): Update decl.
5975         * builtins.c (expand_builtin_apply): Update call to
5976         allocate_dynamic_stack_space.
5977         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
5978         * calls.c (initialize_argument_information): Update call to
5979         allocate_dynamic_stack_space.
5980         (expand_call): Likewise.
5981
5982         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
5983         Don't update_stack_alignment here.
5984         (alloc_stack_frame_space): Make ALIGN unsigned.
5985         (stack_var_cmp): Sort by alignment too.
5986         (partition_stack_vars): Don't merge large and small alignment vars.
5987         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
5988         Take care when BASE is not virtual_stack_vars_rtx.
5989         (expand_stack_vars): Allocate dynamic stack space for large
5990         alignment variables.
5991         (expand_one_stack_var): Update all to expand_one_stack_var_at.
5992         (defer_stack_allocation): True for large alignment vars.
5993         (update_stack_alignment): Merge into ...
5994         (expand_one_var): ... here.
5995         (gimple_expand_cfg): Place code from expand_stack_vars.
5996
5997 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5998
5999         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6000         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
6001         (pdp11_function_arg_advance): New function.
6002         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6003
6004 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6005
6006         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
6007         * libgcc2.c: Likewise.
6008
6009 2010-10-09  Richard Guenther  <rguenther@suse.de>
6010
6011         PR lto/45956
6012         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
6013         Properly check if a decl is an automatic var.
6014
6015 2010-10-09  Richard Guenther  <rguenther@suse.de>
6016
6017         PR lto/45947
6018         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
6019
6020 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6021
6022         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
6023         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6024         * config/mmix/mmix.c (mmix_function_arg): Rename to...
6025         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
6026         bool arguments.
6027         (mmix_function_arg): New function.
6028         (mmix_function_incoming_arg): New function.
6029         (mmix_function_arg_advance): New function.
6030         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6031         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6032
6033 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6034
6035         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6036         * config/vax/vax.c (vax_function_arg): New function.
6037         (vax_function_arg_advance): New function.
6038         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6039
6040 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6041
6042         * config/pa/pa-protos.h (function_arg): Delete.
6043         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6044         * config/pa/pa.c (function_arg): Rename to...
6045         (pa_function_arg): ...this.  Make static.  Take a const_tree and
6046         a bool.
6047         (pa_function_arg_advance): New function.
6048         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6049
6050 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6051
6052         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6053         * config/m68k/m68k.c (m68k_function_arg): New function.
6054         (m68k_function_arg_advance): New function.
6055         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6056
6057 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6058
6059         * config/avr/avr-protos.h (function_arg): Delete.
6060         (function_arg_advance): Delete.
6061         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6062         * config/avr/avr.c (function_arg): Rename to...
6063         (avr_function_arg): ...this.  Make static.  Take a const_tree and
6064         a bool.
6065         (function_arg_advance): Rename to...
6066         (avr_function_arg_advance): ...this.  Make static.  Take a
6067         const_tree and a bool.
6068         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6069
6070 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6071
6072         * config/alpha/alpha-protos.h (function_arg): Delete.
6073         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6074         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
6075         * config/alpha/alpha.c (function_arg): Rename to...
6076         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
6077         a bool.  Delete TARGET_ABI_UNICOSMK code.
6078         (alpha_function_arg_advance): New function.
6079         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6080
6081 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6082
6083         * config/mep/mep-protos.h (mep_function_arg): Delete.
6084         (mep_function_arg_advance): Delete.
6085         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6086         * config/mep/mep.c (mep_function_arg): Make static.  Take a
6087         const_tree and a bool.
6088         (mep_function_arg_advance): Likewise.
6089         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6090
6091 2010-10-09  Richard Guenther  <rguenther@suse.de>
6092
6093         PR tree-optimization/45945
6094         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
6095
6096 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
6097
6098         PR tree-optimization/45612
6099         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
6100         Test LABEL_DECLs as well.  Fix formatting issues.
6101         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
6102         whose label is present in NON_SSA_VARS.
6103         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
6104         as well.  Fix formatting issues.
6105         (visit_bb): Fix typos and formatting issue.
6106
6107 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6108
6109         PR tree-optimization/45950
6110         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
6111         before initializing vno->op.
6112
6113 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
6114
6115         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
6116         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
6117
6118 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
6119
6120         PR target/45913
6121         * config/i386/i386.c (ix86_binary_operator_ok): Support
6122         "andhi/andsi/anddi" as a zero-extending move.
6123
6124 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
6125
6126         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
6127         into a temporary array.
6128
6129 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
6130
6131         PR tree-optimization/45903
6132         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
6133         of {A,L}SHIFTRT of MEM.
6134
6135 2010-10-08  Richard Guenther  <rguenther@suse.de>
6136
6137         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6138         Re-construct BLOCK_VARS.
6139         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
6140         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6141         * tree.c (free_lang_data_in_block): Remove.
6142         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
6143         Do not touch the BLOCK tree.
6144         * expr.c (expand_expr_real_1): Allow externals.
6145
6146 2010-10-08  Richard Guenther  <rguenther@suse.de>
6147
6148         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
6149         Do not output BLOCK_SUBBLOCKS.
6150         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
6151         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
6152         Re-construct BLOCK_SUBBLOCKS of parent block.
6153         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
6154         for BINFO_BASE_ACCESSES.
6155
6156 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
6157
6158         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
6159         (TREE_H): Include $(FLAGS_H) instead of options.h.
6160         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
6161         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
6162         * common.opt (flag_complex_method, flag_evaluation_order,
6163         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
6164         Variable declarations.
6165         * configure.ac (tm_include_list): Include flags.h instead of options.h.
6166         * configure: Regenerate.
6167         * flags.h: Condition out contents for target libraries.  Include
6168         options.h at end of file.
6169         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
6170         flag_evaluation_order, flag_warn_unused_result): Remove.
6171         * gcc.c (main): Intialize global_options with global_options_init.
6172         * langhooks-def.h (lhd_init_options_struct): Declare.
6173         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
6174         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
6175         * langhooks.c (lhd_init_options_struct): New.
6176         * langhooks.h (struct lang_hooks): Add init_options_struct.
6177         Update comment on init_options.
6178         * optc-gen.awk: Generate initializer for global_options_init, not
6179         global_options.
6180         * opth-gen.awk: Condition out structure declarations for target
6181         libraries.  Declare global_options_init.
6182         * opts-common.c: Include flags.h instead of options.h.
6183         * opts.c (flag_warn_unused_result): Remove.
6184         (read_cmdline_options): Take gcc_options parameters.  Pass them to
6185         read_cmdline_option.
6186         (initial_lang_mask, initial_min_crossjump_insns,
6187         initial_max_fields_for_field_sensitive,
6188         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
6189         (init_options_once): New.  Split out of decode_options.
6190         (init_options_struct): New.  Split out of decode_options.
6191         (decode_cmdline_options_to_array_default_mask): New.
6192         (default_options_optimization): New.  Split out of decode_options.
6193         (decode_options): Move most code to other functions.  Update call
6194         to read_cmdline_options.
6195         (finish_options): New.  Split out of decode_options.
6196         * opts.h (decode_options): Add gcc_options parameters.
6197         (init_options_once, init_options_struct,
6198         decode_cmdline_options_to_array_default_mask): New.
6199         * toplev.c (flag_complex_method, flag_ira_algorithm,
6200         flag_ira_region, flag_evaluation_order): Remove.
6201         (general_init): Use global_options_init for initial flag values
6202         for global_dc.
6203         (toplev_main): Call init_options_once, init_options_struct,
6204         lang_hooks.init_options_struct,
6205         decode_cmdline_options_to_array_default_mask and
6206         lang_hooks.init_option before decode_options.  Update arguments to
6207         decode_options.
6208         * tree.h: Include flags.h instead of options.h.
6209
6210 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
6211
6212         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6213
6214 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
6215
6216         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
6217         Delete.
6218         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
6219         (FUNCTION_INCOMING_ARG): Delete.
6220         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
6221         (function_arg_slotno): Likewise.  Take bool arguments.
6222         (sparc_arg_partial_bytes): Update call to it.
6223         (function_arg): Rename to...
6224         (sparc_function_arg_1): ...this.  Take bool arguments.
6225         (sparc_function_arg, sparc_function_incoming_arg): New functions.
6226         (function_arg_advance): Rename to...
6227         (sparc_function_arg_advance): ...this.  Take bool argument.
6228         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
6229         (TARGET_FUNCTION_INCOMING_ARG): Define.
6230
6231 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
6232
6233         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
6234         Delete.
6235         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6236         * config/bfin/bfin.c (function_arg_advance): Rename to...
6237         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
6238         and bool arguments.
6239         (function_arg): Rename to...
6240         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
6241         arguments.
6242         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6243
6244 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
6245
6246         * config/score/score-protos.h (score_function_arg): Delete.
6247         (score_function_arg_advance): Delete.
6248         * config/score/score3.h (score3_function_arg_advance): Take a
6249         const_tree and a bool.
6250         (score3_function_arg): Likewise.
6251         * config/score/score7.h (score7_function_arg_advance): Likewise.
6252         (score7_function_arg): Likewise.
6253         * config/score/score3.c (score3_classify_arg): Likewise.
6254         (score3_function_arg_advance, score3_function_arg): Likewise.
6255         * config/score/score7.c (score7_classify_arg): Likewise.
6256         (score7_function_arg_advance, score7_function_arg): Likewise.
6257         * config/score/score.c (score_function_arg_advance): Likewise.
6258         (score_function_arg): Likewise.  De-const-ify `cum' argument.
6259         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6260
6261 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
6262
6263         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
6264         (s390_function_arg): Delete.
6265         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6266         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
6267         (s390_function_arg_integer): Likewise.
6268         (s390_function_arg_advance): Make static.  Take a const_tree and
6269         a bool.
6270         (s390_function_arg): Likewise.
6271         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6272
6273 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
6274
6275         * config/spu/spu-protos.h (spu_function_arg): Delete.
6276         * config/spu/spu.h (FUNCTION_ARG): Delete.
6277         (FUNCTION_ARG_ADVANCE): Move code to ...
6278         * config/spu/spu.c (spu_function_arg_advance): New function.
6279         (spu_function_arg): Make static.  Take a const_tree and a bool.
6280         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
6281         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6282
6283 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
6284
6285         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6286
6287 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
6288
6289         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
6290         (init_vn_nary_op_from_op): New function.
6291         (init_vn_nary_op_from_stmt): New function.
6292         (vn_nary_op_lookup_1): New function.
6293         (sizeof_vn_nary_op): New function.
6294         (alloc_vn_nary_op_noinit): New function.
6295         (alloc_vn_nary_op): New function.
6296         (vn_nary_op_insert_into): New function.
6297         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
6298         (vn_nary_op_lookup): Likewise.
6299         (vn_nary_op_lookup_stmt): Likewise.
6300         (vn_nary_op_insert_pieces): Likewise.
6301         (vn_nary_op_insert): Likewise.
6302         (vn_nary_op_insert_stmt): Likewise.
6303         (copy_nary): Likewise.
6304         (set_value_id_for_result): New function.
6305         (set_hashtable_value_ids): Call it.
6306
6307 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
6308
6309         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6310         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
6311
6312 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
6313
6314         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
6315         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6316
6317 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
6318
6319         PR debug/45656
6320         * cse.c (cse_extended_basic_block): Preserve cc0 info across
6321         debug isnsn.  Skip them when searching for cc0 setter.
6322         (set_live_p): Skip debug insns when searching for cc0 user.
6323
6324 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
6325
6326         PR debug/45673
6327         PR debug/45604
6328         PR debug/45419
6329         PR debug/45408
6330         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
6331         type of MEM_REFs to INTEGER_CSTs.
6332
6333 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
6334
6335         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
6336         m68hc11_print_operand_address.
6337
6338 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
6339
6340         * builtins.c (rewrite_call_expr): Move code to...
6341         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
6342         (rewrite_call_expr_array): New function.
6343         (fold_builtin_sprintf_chk_1): New function.
6344         (fold_builtin_sprintf_chk): Call it.
6345         (gimple_fold_builtin_sprintf_chk): Likewise.
6346         (fold_builtin_snprintf_chk_1): New function.
6347         (fold_builtin_snprintf_chk): Call it.
6348         (gimple_fold_builtin_snprintf_chk): Likewise.
6349         (gimple_rewrite_call_expr): Delete.
6350
6351 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
6352
6353         * config.host: Update copyright year.
6354
6355 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
6356
6357         * config.host (host_lto_plugin_soname): New shell variable.
6358         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
6359         * config.in: Regenerate.
6360         * configure: Regenerate.
6361         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
6362         LTO plugin shared library.
6363
6364 2010-10-07  Richard Henderson  <rth@redhat.com>
6365
6366         * target.h (enum unwind_info_type): Move ...
6367         * coretypes.h: ... here.
6368
6369 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
6370
6371         * doc/objc.texi (Fast enumeration protocol): Mention that
6372         'unsigned int' can also be used instead of 'unsigned long' in
6373         countByEnumeratingWithState:objects:count:.
6374
6375 2010-10-07  Martin Jambor  <mjambor@suse.cz>
6376
6377         * tree-sra.c (struct access): New field grp_assignment_write.
6378         (dump_access): Dump grp_assignment_write.
6379         (build_accesses_from_assign): Set grp_assignment_write.
6380         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
6381         (mark_read_status): Renamed to mark_rw_status, individual values
6382         renamed too.
6383         (analyze_access_subtree): Changed type of mark_write to
6384         mark_read_status.  Fixed propagating of mark_read and
6385         mark_write.  Changed benefit estimate.  Updated comment.
6386
6387 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
6388
6389         PR Tree-Vect/45847
6390         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
6391         check for vectype_out returned by get_vectype_for_scalar_type().
6392
6393 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
6394
6395         PR target/45805
6396         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
6397         constraint, add register specifier in instruction template.
6398         (neon_vec_pack_trunc_<mode>): Likewise.
6399         (neon_vec_<US>mult_<mode>): Add register specifier to
6400         instruction template.
6401
6402 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
6403
6404         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
6405         cygwin2.o.
6406         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
6407         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
6408         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
6409         (cygwin2.o): Likewise.
6410         * config/i386/cygwin1.c: Delete file.
6411         * config/i386/cygwin2.c: Likewise.
6412         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
6413         make all {%!mno-cygwin} ones unconditional.
6414         (STARTFILE_SPEC): Likewise.
6415         (REAL_LIBGCC_SPEC): Likewise.
6416         (LIB_SPEC): Likewise.
6417         (CXX_WRAP_SPEC): Likewise.
6418         (LINK_SPEC): Likewise.
6419         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
6420         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
6421         (cygwin_gplusplus_include_dir): Delete now-unused array.
6422         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
6423         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
6424         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
6425         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
6426         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
6427         (cygwin_local_include_dir): Delete now-unused array.
6428         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
6429         (cygwin_cross_include_dir): Delete now-unused array.
6430         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
6431         (cygwin_tool_include_dir): Delete now-unused array.
6432         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
6433         (cygwin_standard_include_dir): Delete now-unused array.
6434         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
6435         (GEN_CVT_ARRAY): Delete now-unused macro definition.
6436         (cvt_to_mingw): Delete now-unused array.
6437         (mingw_scan): Remove prototype of deleted function.
6438         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
6439         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
6440         * doc/invoke.texi (-mcygwin): Don't document removed option.
6441         (-mno-cygwin): Likewise.
6442
6443 2010-10-07  Richard Guenther  <rguenther@suse.de>
6444
6445         * machmode.h (mode_for_vector): Declare.
6446         * stor-layout.c (mode_for_vector): New function, split out from ...
6447         (layout_type): ... here.
6448         * tree-vectorizer.h (current_vector_size): Declare.
6449         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
6450         mask vector type is available.
6451         (get_vectype_for_scalar_type): Rename to ...
6452         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
6453         size argument.
6454         (get_vectype_for_scalar_type): New wrapper around
6455         get_vectype_for_scalar_type_and_size using current_vector_size.
6456         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
6457         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
6458         of vect_analyze_loop here.
6459         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
6460         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
6461         to autodetect.
6462         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
6463         V8SF to V8SI conversion builtin.
6464
6465 2010-10-07  Richard Guenther  <rguenther@suse.de>
6466
6467         * target.def (autovectorize_vector_sizes): New target hook.
6468         * targhooks.c (default_autovectorize_vector_sizes): New function.
6469         * targhooks.h (default_autovectorize_vector_sizes): Declare.
6470         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
6471         Document.
6472         * doc/tm.texi: Update.
6473         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
6474         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6475
6476 2010-10-07  Richard Guenther  <rguenther@suse.de>
6477
6478         * target.def (units_per_simd_word): Rename to ...
6479         (preferred_simd_mode): ... this.  Return mode instead of size.
6480         * targhooks.c (default_units_per_simd_word): Rename to ...
6481         (default_preferred_simd_mode): ... this.  Return word_mode.
6482         * targhooks.h (default_preferred_simd_mode): Declare.
6483         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
6484         (arm_preferred_simd_mode): ... this.  Re-implement.
6485         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
6486         (ix86_preferred_simd_mode): ... this.  Re-implement.
6487         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
6488         (sparc_preferred_simd_mode): ... this.  Re-implement.
6489         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
6490         (mips_preferred_simd_mode): ... this.  Re-implement.
6491         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
6492         (rs6000_preferred_simd_mode): ... this.  Re-implement.
6493         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
6494         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
6495         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
6496         * doc/tm.texi: Update.
6497
6498 2010-10-07  Richard Guenther  <rguenther@suse.de>
6499
6500         PR middle-end/45869
6501         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
6502         of pointers.
6503
6504 2010-10-07  Alan Modra  <amodra@gmail.com>
6505
6506         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
6507         rather than sign extension by hand.
6508
6509 2010-10-07  Jan Hubicka  <jh@suse.cz>
6510
6511         PR middle-end/45926
6512         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
6513
6514 2010-10-07  Richard Guenther  <rguenther@suse.de>
6515
6516         PR bootstrap/45914
6517         * configure.ac: Fix typo.
6518         * configure: Regenerated.
6519
6520 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6521
6522         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
6523         define_builtin_std where it's unnecessary.
6524         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
6525
6526 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
6527
6528         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
6529         * doc/tm.texi.in: Regenerate.
6530         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
6531         * targhooks.c (default_class_likely_spilled_p): Don't use the
6532         CLASS_LIKELY_SPILLED_P macro.
6533
6534         * config/arm/arm.md: Update comment.
6535
6536 2010-10-06  Jan Hubicka  <jh@suse.cz>
6537
6538         * ipa.c (cgraph_remove_unreachable_nodes): External references can
6539         always be removed.
6540         (cgraph_externally_visible_p): We can not bring local comdats that
6541         are known to linker; fix handling of internal visibility.
6542         (function_and_variable_visibility): Likewise.
6543
6544 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
6545
6546         PR rtl-optimization/45394
6547         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
6548         (struct rtx_subst_pair): Remove AFTER field.
6549         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
6550         (propagate_for_debug): Remove MOVE parameter and adjust.
6551         (try_combine): In the special case where I2 is a PARALLEL, combine only
6552         destinations of SETs and set I2SRC to the I2 source.
6553         Adjust calls to propagate_for_debug throughout.
6554         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
6555         insns.
6556
6557 2010-10-06  Olivier Hainque  <hainque@adacore.com>
6558
6559         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
6560         switch on insn codes as sequence of ifs.
6561
6562 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
6563
6564         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
6565         be UI_NONE for picochip.
6566         (picochip_option_override): Do not disable exception flags.
6567         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
6568         Declare.
6569
6570 2010-10-06  Richard Guenther  <rguenther@suse.de>
6571
6572         * Makefile.in (regmove.o): Depend on $(TARGET_H).
6573
6574 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
6575
6576         Implemented fast enumeration for Objective-C.
6577         * c-parser.c (objc_could_be_foreach_context): New.
6578         (c_lex_one_token): Recognize RID_IN keyword in a potential
6579         Objective-C foreach context.
6580         (c_parser_declaration_or_fndef): Added parameter.  Accept
6581         Objective-C RID_IN keyword as terminating a declaration; in that
6582         case, return the declaration in the new parameter.
6583         (c_parser_extenral_declaration): Updated calls to
6584         c_parser_declaration_or_fndef.
6585         (c_parser_declaration_or_fndef): Same change.
6586         (c_parser_compound_statement_nostart): Same change.
6587         (c_parser_label): Same change.
6588         (c_parser_objc_methodprotolist): Same change.
6589         (c_parser_omp_for_loop): Same change.
6590         (c_parser_for_statement): Detect and parse Objective-C foreach
6591         statements.
6592         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
6593         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
6594         fast enumeration parsing code to turn off the c99 error but still
6595         perform checks on the loop declarations.
6596         * c-tree.h (check_for_loop_decls): Updated declaration.
6597         * doc/objc.texi: Document fast enumeration.
6598
6599 2010-10-06  Nick Clifton  <nickc@redhat.com>
6600
6601         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
6602         (MDR_REGNUM): Define.
6603         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
6604         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
6605         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
6606         (REGISTER_NAMES): Add MDR.
6607         (DWARF2_DEBUGGING_INFO): Define to 1.
6608         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6609         (F): New function.  Sets RTX_FRAME_RELATED_P.
6610         (mn10300_gen_multiple_store): Use F.
6611         (expand_prologue): Use F.  Use gen_movsf() to push floating
6612         point registers.
6613         (expand_epilogue): Use gen_movsf() to pop floating point registers.
6614         (mn10300_option_override): Disable combine stack adjust pass.
6615
6616 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
6617
6618         PR target/45901
6619         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
6620         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
6621
6622 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
6623
6624         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
6625         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
6626         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
6627         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
6628         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
6629         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
6630         BUILT_IN_TOUPPER): Mark as leaf.
6631
6632         PR middle-end/45838
6633         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
6634         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
6635         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
6636         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
6637         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
6638         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
6639         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
6640
6641 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
6642
6643         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
6644         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6645         (m68hc11_class_likely_spilled_p): New function.
6646
6647 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
6648
6649         * c-parser.c (c_parser_objc_method_definition): Updated comment.
6650
6651 2010-10-05  Jan Hubicka  <jh@suse.cz>
6652
6653         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
6654         Document.
6655         * opts.c (decode_options): Handle lto partitions.
6656         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
6657         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
6658
6659 2010-10-05  Jan Hubicka  <jh@suse.cz>
6660
6661         * cgraphunit.c (assemble_function): Output thunks and aliases before
6662         the function itself.
6663
6664 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
6665
6666         * config/picochip/picochip.c (picochip_option_override): Disable
6667         exception flags for picochip.
6668
6669 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
6670
6671         * opts-common.c (handle_option, handle_generated_option,
6672         read_cmdline_option, set_option): Add diagnostic_context
6673         parameter.  Update calls among these functions.
6674         (set_option): Don't use global_dc.
6675         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
6676         (decode_options): Pass global_dc to enable_warning_as_error.
6677         (common_handle_option): Pass global_dc to enable_warning_as_error.
6678         (enable_warning_as_error): Add diagnostic_context parameter.
6679         Document parameters.  Don't use global_dc.  Pass
6680         diagnostic_context parameter to handle_generated_option.
6681         * opts.h (set_option, handle_option, handle_generated_option,
6682         read_cmdline_option, enable_warning_as_error): Add
6683         diagnostic_context parameter.
6684         * Makefile.in (lto-opts.o): Update dependencies.
6685         * coretypes.h (struct diagnostic_context, diagnostic_context):
6686         Declare here.
6687         * diagnostic.h (diagnostic_context): Don't declare typedef here.
6688         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
6689         * langhooks-def.h (struct diagnostic_context): Don't declare here.
6690         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
6691         using diagnostic_context typedef.
6692         * langhooks.c (lhd_initialize_diagnostics): Declare using
6693         diagnostic_context typedef.
6694         * langhooks.h (struct diagnostic_context): Don't declare here.
6695         (initialize_diagnostics, print_error_function): Declare using
6696         diagnostic_context typedef.
6697         * lto-opts.c: Include diagnostic.h.
6698         (lto_reissue_options): Pass global_dc to set_option.  Pass
6699         DK_UNSPECIFIED not 0.
6700         * plugin.c (plugins_internal_error_function): Declare using
6701         diagnostic_context typedef.
6702         * plugin.h (struct diagnostic_context): Don't declare here.
6703         (plugins_internal_error_function): Declare using
6704         diagnostic_context typedef.
6705
6706 2010-10-05  Olivier Hainque  <hainque@adacore.com>
6707             Nicolas Roche  <roche@adacore.com>
6708
6709         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
6710         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
6711
6712 2010-10-05  Ira Rosen  <irar@il.ibm.com>
6713
6714         PR tree-optimization/45752
6715         * tree-vect-slp.c (vect_get_mask_element): Remove static
6716         variables, make them function arguments.
6717         (vect_transform_slp_perm_load): Pass new arguments to
6718         vect_get_mask_element.
6719
6720 2010-10-05  Richard Guenther  <rguenther@suse.de>
6721
6722         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
6723         (gimple_mod_pow2): Likewise.
6724         (gimple_mod_subtract): Likewise.
6725         (gimple_ic): Likewise.
6726         (gimple_stringop_fixed_value): Likewise.
6727         * tree-profile.c (tree_init_edge_profiler): Mark profile
6728         functions nothrow and leaf.
6729         (add_abnormal_goto_call_edges): Remove.
6730         (tree_gen_edge_profiler): Work on SSA form.
6731         (tree_gen_ic_profiler): Likewise.  Simplify.
6732         (do_tree_profiling): Update SSA form.
6733         (pass_tree_profile): Remove.
6734         (do_tree_profiling): Likewise.
6735         (gate_tree_profile_ipa): New function.
6736         (pass_ipa_tree_profile): New.
6737         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
6738         state of instrumented functions.
6739         * passes.c (init_optimization_passes): Remove early non-SSA
6740         inlining.  Move profiling after early optimizations.
6741         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
6742         (pass_ipa_early_inline): Likewise.
6743         * tree-pass.h (pass_ipa_early_inline): Remove.
6744         (pass_tree_profile): Likewise.
6745         (pass_ipa_tree_profile): Declare.
6746
6747 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6748             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
6749
6750         * config/s390/s390.c (z196_cost): New.
6751         (s390_handle_arch_option): Add -march=z196.
6752         (s390_option_override): Use the new cost function and use the z10
6753         defaults also for z196.
6754         (legitimate_reload_constant_p): Adjust comment.
6755         (legitimate_reload_fp_constant_p): New function.
6756         (s390_preferred_reload_class): Distingiush between FP and Int constants.
6757         (preferred_la_operand_p): Avoid la with index on z196.
6758         (s390_adjust_priority): Trigger also for z196.
6759         (s390_issue_rate): Issue rate for z196 is 3.
6760         (s390_z10_fix_long_loop_prediction): Rename to ...
6761         (s390_fix_long_loop_prediction): ... this.
6762         (s390_reorg): Apply the z10 adjustments also for z196.
6763         (s390_loop_unroll_adjust): Do this also for z196.
6764         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
6765         (enum processor_flags): Add PF_Z196.
6766         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
6767         (TARGET_CPU_Z196, TARGET_Z196): New macros.
6768         * config.gcc: Enable z196 for --with-arch.
6769         * config/s390/2817.md: New file.
6770         * config/s390/2084.md: New type for multiply and add.
6771         * config/s390/2097.md: Likewise.
6772         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
6773         (UNSPECV_ATOMIC_OP): New constants.
6774         (fmadddf, fmaddsf): New values for type attribute.
6775         (z196prop): New insn attribute.
6776         (cpu, cpu_facility): Add z196.
6777         (ATOMIC_Z196): New code iterator.
6778         (noxa): New code attribute.
6779         (gk): New mode attribute.
6780         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
6781         Support load zero for fp constants.
6782         (fixuns_truncdddi2, fixuns_trunctddi2)
6783         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
6784         for z196.
6785         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
6786         (popcounthi2, popcountqi2): New expander.
6787         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
6788         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
6789         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
6790         insn definition.
6791         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
6792         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
6793         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
6794         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
6795         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
6796         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
6797         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
6798         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
6799         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
6800         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
6801         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
6802         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
6803         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
6804         Support new z196 instructions.
6805
6806 2010-10-05  Richard Guenther  <rguenther@suse.de>
6807
6808         PR middle-end/45877
6809         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
6810         case where gimplification optimizes away the stmt.
6811
6812 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
6813
6814         PR debug/45849
6815         * var-tracking.c (strip_pointer_flags): New function.
6816         (emit_note_insn_var_location): If rtx_equal_p check failed,
6817         retry on locations simplified with simplify_replace_fn_rtx
6818         and strip_pointer_flags as its callback.
6819
6820 2010-10-04  Jan Hubicka  <jh@suse.cz>
6821
6822         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
6823         (can_refer_decl_in_current_unit_p): ... this one; reverse return
6824         value; handle comdats too.
6825         (canonicalize_constructor_val): Use it; handle function_decls
6826         correctly.
6827         (gimple_fold_obj_type_ref_known_binfo): Likewise.
6828         * gimple.c (get_base_address): Accept all kinds of decls.
6829
6830 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
6831
6832         * flags.h (g_switch_value, g_switch_set): Remove.
6833         * opts.c (g_switch_value, g_switch_set): Remove.
6834         * config/g.opt (G): Add Var(g_switch_value).
6835         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
6836         (alpha_option_override): Check global_options_set.x_g_switch_value
6837         instead of g_switch_set.
6838         (alpha_in_small_data_p): Remove cast in comparison with
6839         g_switch_value.
6840         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
6841         g_switch_value to unsigned HOST_WIDE_INT.
6842         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
6843         with g_switch_value.
6844         (frv_handle_option): Don't handle -G here.
6845         (frv_option_override): Check global_options_set.x_g_switch_value
6846         instead of g_switch_set.  Don't modify g_switch_set.
6847         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
6848         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
6849         g_switch_value to unsigned HOST_WIDE_INT.
6850         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
6851         (ia64_option_override): Check global_options_set.x_g_switch_value
6852         instead of g_switch_set.
6853         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
6854         Remove.
6855         (lm32_in_small_data_p): Remove cast in comparison with
6856         g_switch_value.
6857         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
6858         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
6859         HOST_WIDE_INT.
6860         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
6861         (m32r_init): Check global_options_set.x_g_switch_value instead of
6862         g_switch_set.
6863         (m32r_in_small_data_p): Remove cast in comparison with
6864         g_switch_value.
6865         (m32r_file_start): Format g_switch_value with %d.
6866         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
6867         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
6868         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
6869         handle -G here.
6870         (microblaze_option_override): Check
6871         global_options_set.x_g_switch_value instead of g_switch_set.
6872         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
6873         (mips_option_override): Check global_options_set.x_g_switch_value
6874         instead of g_switch_set.
6875         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
6876         (rs6000_file_start): Format g_switch_value with %d.
6877         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
6878         comparisons with g_switch_value.
6879         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
6880         global_options_set.x_g_switch_value instead of g_switch_set.
6881         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6882         global_options_set.x_g_switch_value instead of g_switch_set.
6883         * config/score/score.c (score_handle_option): Don't handle -G here.
6884         * config/score/score3.c (score3_option_override): Check
6885         global_options_set.x_g_switch_value instead of g_switch_set.
6886         * config/score/score7.c (score7_option_override): Check
6887         global_options_set.x_g_switch_value instead of g_switch_set.
6888
6889 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6890
6891         * common.opt (fira-coalesce): Remove.
6892
6893         * doc/invoke.texi (flag_ira_coalesce): Remove.
6894
6895         * ira-color.c (allocno_coalesced_p): Move before
6896         copy_freq_compare_func.
6897         processed_coalesced_allocno_bitmap): Ditto.
6898         (update_conflict_hard_regno_costs): Don't use
6899         ALLOCNO_FIRST_COALESCED_ALLOCNO.
6900         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
6901         (assign_hard_reg): Assume no coalesced allocnos.
6902         (get_coalesced_allocnos_attributes): Remove.
6903         (bucket_allocno_compare_func): Assume no coalesced allocnos.
6904         (push_allocno_to_stack): Ditto.
6905         (remove_allocno_from_bucket_and_push): Use
6906         ira_print_expanded_allocno instead of print_coalesced_allocno.
6907         (push_allocnos_to_stack): Assume uncoalesced allocnos.
6908         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
6909         all_conflicting_hard_regs.
6910         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
6911         (setup_allocno_left_conflicts_size): Ditto.
6912         (put_allocno_into_bucket): Ditto.
6913         (copy_freq_compare_func): Remove.
6914         (copy_freq_compare_func, merge_allocnos): Move before
6915         coalesced_pseudo_reg_freq_compare.
6916         coalesced_allocno_conflict_p): Ditto.
6917         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
6918         parameter.  Assume it true.
6919         (color_allocnos): Assume uncoalesced allocnos.  Use
6920         ira_print_expanded_allocno instead of print_coalesced_allocno.
6921         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
6922         parameter.
6923
6924         * ira.c: Remove comment about coalescing.
6925
6926 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
6927
6928         * config/mips/mips.h (target_flags_explicit): Declare for
6929         GENERATOR_FILE.
6930
6931 2010-10-04  Andi Kleen  <ak@linux.intel.com>
6932
6933         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
6934         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
6935
6936 2010-10-04  Matthias Klose  <doko@ubuntu.com>
6937
6938         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
6939         multilib osdirname if it exists.
6940         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
6941
6942 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
6943
6944         PR middle-end/45876
6945         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
6946         arg0's type or its unsigned counterpart as utype.  Convert
6947         arg1 to utype unconditionally.
6948
6949 2010-10-04  Julian Brown  <julian@codesourcery.com>
6950
6951         * expr.c (expand_assignment): Add assertion to prevent emitting
6952         null rtx for movmisalign pattern.
6953         (expand_expr_real_1): Likewise.
6954         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
6955         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
6956         (arm_vector_alignment_reachable): New.
6957         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
6958         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
6959         (arm_print_operand): Include alignment qualifier in %A.
6960         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
6961         (movmisalign<mode>): New expander.
6962         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
6963         insn patterns.
6964
6965 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
6966
6967         * optc-gen.awk: Define global_options_set.  Don't define
6968         target_flags_explicit.
6969         * opth-gen.awk: Declare global_options_set.  Define
6970         target_flags_explicit as macro.
6971         * opts-common.c (handle_option): Take opts_set and generated_p
6972         parameters.
6973         (handle_generated_option, read_cmdline_option, set_option): Take
6974         opts_set parameter.
6975         (set_option): Use opts_set instead of hardcoding target_flags and
6976         target_flags_explicit.
6977         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
6978         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
6979         flag_value_profile_transformations_set, flag_peel_loops_set,
6980         flag_branch_probabilities_set, flag_inline_functions_set,
6981         flag_ipa_cp_set, flag_ipa_cp_clone_set,
6982         flag_predictive_commoning_set, flag_unswitch_loops_set,
6983         flag_gcse_after_reload_set): Remove.
6984         (common_handle_option, lang_handle_option, target_handle_option):
6985         Take opts_set parameter.  Assert that it is &global_options_set.
6986         (common_handle_option): Don't set _set variables.  Check opts_set
6987         instead of such variables.
6988         (enable_warning_as_error): Pass &global_options_set to
6989         handle_generated_option.
6990         * opts.h (cl_option_handler_func.handler, set_option,
6991         handle_option, handle_generated_option, read_cmdline_option): Add
6992         opts_set parameters.
6993         (handle_option): Add generated_p parameter.
6994         * config/i386/i386.c (ix86_function_specific_save,
6995         ix86_function_specific_restore): Updat for renaming of
6996         target_flags_explicit field.
6997         * config/i386/i386.opt (target_flags_explicit): Rename to
6998         ix86_target_flags_explicit.
6999         * config/ia64/ia64.c (ia64_override_options_after_change): Check
7000         global_options_set.x_flag_selective_scheduling and
7001         global_options_set.x_flag_selective_scheduling2, not
7002         sel_sched_switch_set.
7003         * flags.h (sel_sched_switch_set,
7004         flag_speculative_prefetching_set): Remove.
7005         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
7006         that it is &global_options_set.
7007         (process_command): Pass &global_options_set to read_cmdline_option.
7008         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
7009         set_option.
7010         * toplev.c (target_flags_explicit): Remove.
7011
7012 2010-10-04  Jan Hubicka  <jh@suse.cz>
7013
7014         PR middle-end/45871
7015         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
7016         use get_ref_base_and_offset to handle references.
7017         (fold_const_aggregate_ref): Update.
7018
7019 2010-10-04  Martin Jambor  <mjambor@suse.cz>
7020
7021         PR tree-optimization/45572
7022         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
7023         ipa_check_create_node_params.
7024         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
7025
7026 2010-10-04  Yao Qi  <yao@codesourcery.com>
7027
7028         * doc/passes.texi: Clean up.
7029
7030 2010-10-03  Ian Lance Taylor  <iant@google.com>
7031
7032         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
7033         referring to a field using a typedef name.
7034         (find_anonymous_field_with_type): New static function.
7035         (convert_to_anonymous_field): New static function.
7036         (convert_for_assignment): If -fplan9-extensions, permit converting
7037         pointer to struct to pointer to anonymous field.
7038         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
7039         (is_duplicate_field): New static function.
7040         (detect_field_duplicates_hash): If -fplan9-extensions, check for
7041         typedef names duplicating field names.
7042         (detect_field_duplicates): Likewise.
7043         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
7044         (C Dialect Options): Document -fplan9-extensions.
7045         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
7046
7047 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7048
7049         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
7050         revision 164914.
7051         (vect_create_data_ref_ptr): Likewise.
7052         * tree-vect-stmts.c (vectorizable_store): Likewise.
7053         (perm_mask_for_reverse): Likewise.
7054         (reverse_vec_elements): Likewise.
7055         (vectorizable_load): Likewise.
7056
7057 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7058
7059         * cppbuiltin.c: New file.
7060         * cppbuiltin.h: New file.
7061         * Makefile.in: Take into account cppbuiltin.{h,c}.
7062
7063 2010-10-03  Andi Kleen  <ak@linux.intel.com>
7064
7065         * lto-cgraph.c (input_cgraph): Check for missing sections.
7066
7067 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
7068
7069         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
7070         to nonimmediate_operand.  Force operand 2 to register when allowed.
7071         (*<shiftrt_insn><mode>3_mask): Ditto.
7072         (*<rotate_insn><mode>3_mask): Ditto.
7073
7074 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
7075
7076         PR tree-optimization/45720
7077         PR tree-optimization/45764
7078         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7079         Don't accept backwards consecutive accesses.
7080         (vect_create_data_ref_ptr): Disallow negative steps.
7081
7082         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
7083         (perm_mask_for_reverse): Removed.
7084         (reverse_vec_elements): Likewise.
7085         (vectorizable_load): Don't handle negative steps.
7086
7087 2010-10-02  Jan Hubicka  <jh@suse.cz>
7088
7089         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
7090         call destination is known.
7091
7092 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7093
7094         PR target/45820
7095         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
7096         earlier.
7097
7098 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7099
7100         * doc/install.texi (Configuration): Document build_configargs,
7101         host_configargs, target_configargs.
7102
7103 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
7104
7105         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
7106         (*<shiftrt_insn><mode>3_mask): Ditto.
7107         (*<rotate_insn><mode>3_mask): Ditto.
7108
7109 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
7110
7111         PR tree-optimization/44716
7112         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
7113         (HOT_TEXT_SECTION_NAME): Define.
7114
7115 2010-10-01  Nick Clifton  <nickc@redhat.com>
7116
7117         * common.opt: Add -fcombine-stack-adjustments.
7118         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
7119         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
7120         flag_combine_stack_adjustments.
7121         * doc/invoke.texi: Document the new option.
7122
7123 2010-10-01  Richard Guenther  <rguenther@suse.de>
7124
7125         PR tree-optimization/45854
7126         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
7127
7128 2010-10-01  Anthony Green  <green@moxielogic.com>
7129
7130         * config.gcc: Fix moxie-*-rtems* configuration.
7131
7132 2010-10-01  Richard Guenther  <rguenther@suse.de>
7133
7134         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
7135         (gen_decl_die): Likewise.
7136
7137 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7138
7139         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
7140         to the function code for SPU MD builtins.
7141         (spu_expand_builtin): Update.
7142         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
7143
7144 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7145
7146         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
7147         sjlj_except_unwind_info.
7148
7149 2010-10-01  Tristan Gingold  <gingold@adacore.com>
7150
7151         * configure.ac: Define the nop insn for avr*-*-*
7152         * configure: Regenerate.
7153
7154 2010-10-01  Alan Modra  <amodra@gmail.com>
7155
7156         PR target/45807
7157         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
7158         extend toc_restore_insn.
7159
7160 2010-09-30  Richard Guenther  <rguenther@suse.de>
7161
7162         PR tree-optimization/43959
7163         * function.c (gimplify_parameters): Use create_tmp_reg instead of
7164         create_tmp_var.
7165
7166 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
7167
7168         * config/sh/sh.c (sh_expand_prologue): Set
7169         current_function_static_stack_size.
7170
7171 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7172
7173         * configure.ac: Check for Solaris 8 ld with .hidden support.
7174         * configure: Regenerate.
7175
7176 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7177
7178         PR middle-end/45758
7179         * graphite.c (graphite_initialize): Call scev_reset.
7180
7181 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7182
7183         * sese.h (scev_analyzable_p): Return false for real or floating
7184         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
7185
7186 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7187
7188         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
7189         and ps.
7190         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
7191         domain.
7192         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
7193         Do not allocate ub_expr, it is passed in initialized.
7194
7195 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7196
7197         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
7198         (build_cloog_prog): Dump CLooG input file when
7199         flag_graphite_dump_cloog is set.  This is disabled on trunk.
7200         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
7201
7202 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7203
7204         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
7205         verify_dominators for CDI_POST_DOMINATORS.
7206         * sese.h: Remove comment about CDI_POST_DOMINATORS.
7207         (recompute_all_dominators): Remove call to free_dominance_info
7208         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
7209         for CDI_POST_DOMINATORS.
7210
7211 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7212
7213         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
7214         over pbb_dim_iter_domain.
7215
7216 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7217
7218         * graphite-flattening.c: Fix comments.
7219
7220 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7221
7222         * Makefile.in (OBJS-common): Add graphite-flattening.o.
7223         (graphite-flattening.o): New rule.
7224         * common.opt (floop-flatten): New flag.
7225         * doc/invoke.texi (-floop-flatten): Documented.
7226         * graphite-flattening.c: New.
7227         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
7228         * graphite-poly.h (flatten_all_loops): Declared.
7229         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
7230         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
7231         is set, also set flag_graphite.
7232
7233 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7234
7235         * graphite-poly.c (cloog_checksum): New.
7236         * graphite-poly.h (cloog_checksum): Declared.
7237
7238 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7239
7240         * graphite-poly.c (pbb_number_of_iterations): Removed.
7241         (pbb_number_of_iterations_at_time): Correctly compute the number
7242         of iterations in the transformed loop.
7243         * graphite-poly.h (pbb_number_of_iterations): Removed.
7244
7245 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7246
7247         * graphite-poly.h (lst_update_scattering_seq): Removed.
7248         (lst_update_scattering): Correctly handle outermost loop dewey
7249         renumbering.
7250
7251 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7252
7253         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
7254         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
7255         * graphite-poly.h (lst_niter_for_loop): New.
7256
7257 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7258
7259         * graphite-poly.c (apply_poly_transforms): Do not abort when the
7260         transform read from disk is not legal.  Call fatal_error instead.
7261
7262 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7263
7264         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
7265         (print_scop_header): Removed.  Inlined in the only call place...
7266         (print_scop): ... here.
7267
7268 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7269
7270         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
7271
7272 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7273
7274         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
7275
7276 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7277
7278         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
7279         (dot_deps_stmt): Same.
7280         * graphite-poly.c (dot_lst): Same.
7281
7282 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7283
7284         * graphite-blocking.c (scop_do_strip_mine): Do not call
7285         graphite_legal_transform.
7286         (scop_do_block): Same.
7287
7288 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
7289
7290         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
7291         description.
7292
7293 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7294
7295         * tree-scalar-evolution.c (instantiate_array_ref): New.
7296         (instantiate_scev_r): Also handle ARRAY_REFs.
7297
7298 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7299
7300         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7301         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
7302         RESULT_DECL, and FIELD_DECL.  Return false for an
7303         SSA_NAME_IS_DEFAULT_DEF.
7304         (compute_scalar_evolution_in_loop): Do not further analyze the
7305         scalar evolution when no_evolution_in_loop_p returns true.
7306
7307 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7308
7309         * tree-chrec.h (evolution_function_is_affine_p): Do not check
7310         whether CHREC_LEFT is invariant.  A function is affine when
7311         CHREC_RIGHT is invariant.
7312
7313 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7314
7315         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
7316         is_gimple_reg.
7317         (rewrite_degenerate_phi): Same.
7318         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
7319
7320 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
7321
7322         * graphite-scop-detection.c (graphite_can_represent_scev,
7323         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
7324         graphite_can_represent_loop): Remove outermost_loop.
7325
7326 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7327
7328         PR middle-end/45229
7329         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
7330         handle GIMPLE_CALLs with no LHS.
7331
7332 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
7333
7334         * graphite-poly.c (init_graphite_out_file): New.
7335         (init_graphite_in_file): New.
7336         (apply_poly_transforms): Updated to enable reading and writing of
7337         multiple scop files.
7338
7339 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
7340
7341         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
7342         redundant checks.
7343
7344 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7345
7346         * graphite-clast-to-gimple.c (precision_for_value): Adjust
7347         computation of precision by 1.
7348
7349 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
7350
7351         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
7352         (openscop_read_polyhedron_matrix): New.
7353         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
7354         (openscop_read_N_int): Same.
7355         * graphite-poly.c (openscop_read_N_int): New.
7356         (openscop_read_one_int): New.
7357         (openscop_read_N_string): New.
7358         (openscop_read_one_string): New.
7359         (openscop_read_powerset_matrix): New.
7360         (graphite_read_transforms): Remove.
7361         (graphite_read_scatt): New.
7362         (graphite_read_scop_file): New.
7363         (apply_poly_transforms): Updated to call graphite_read_scop_file.
7364
7365 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7366
7367         * graphite-poly.c: Change include order.
7368
7369 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7370
7371         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
7372         (cloog_matrix_nrows): New.
7373
7374 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
7375
7376         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
7377         from matrix lines.
7378         * graphite-poly.c (openscop_print_scattering_function_1): Same.
7379         (print_scattering_function_1): Same.
7380         (openscop_print_pbb_domain): Same.
7381         (openscop_print_scop_context): Same.
7382         (print_scop_context): Same.
7383
7384 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
7385
7386         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
7387         (openscop_print_pdr_polyhedron): Print pph.
7388
7389 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7390
7391         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
7392         priority signed types.
7393
7394 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7395
7396         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
7397         the call to lang_hooks.types.type_for_size.  Call
7398         build_nonstandard_integer_type.
7399
7400 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
7401
7402         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
7403         (openscop_print_polyhedron_matrix): New.
7404         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
7405         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
7406         (openscop_print_pdr_powerset): New.
7407         (openscop_print_powerset_matrix): New.
7408         (openscop_print_scattering_function_1): New.
7409         (print_scattering_function): Add support for scattering names and
7410         OpenScop format.
7411         (graphite_write_transforms): Remove.
7412         (print_pdr_access_layout): Updated to support OpenScop format.
7413         (print_pdr): Same.
7414         (openscop_print_pbb_domain): New.
7415         (print_pbb_body): Added a parameter to allow indicating that pbb_body
7416         is not provided.
7417         (print_pbb): Updated to call the new print_pbb_body.
7418         (openscop_print_scop_context): New.
7419         (print_scop_header): New.
7420         (print_scop): Updated to call print_scop_header.
7421         * graphite-poly.h: Document OpenScop format.
7422
7423 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
7424
7425         * config/cris/m32c.c (cris_memory_move_cost): New.
7426         (cris_register_move_cost): Make static. Change arguments type from
7427         enum reg_class to reg_class_t.
7428         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7429         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7430         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
7431
7432 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
7433
7434         PR target/45843
7435         * config/i386/i386.c (ix86_gimplify_va_arg): Use
7436         INTVAL (XEXP (slot, 1)) as prev_size.
7437
7438 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
7439
7440         PR target/45837
7441         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
7442         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
7443         defined.
7444         * config/rs6000/option-defaults.h (toplevel): Change #if
7445         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
7446         global option changes.
7447
7448 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
7449
7450         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
7451
7452         PR tree-optimization/31261
7453         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
7454         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
7455
7456 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7457
7458         PR bootstrap/45796
7459         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
7460         special-casing for generators and turn into ...
7461         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
7462         rule, for better error messages in case of toplevel dependency errors.
7463         (genprog): Add hooks, rename to ...
7464         (genprogerr): ... this, and let genprog also contain check,
7465         checksum, condmd.
7466         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
7467         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
7468         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
7469
7470 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
7471             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7472
7473         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
7474         for GMP, MPFR and MPC.
7475
7476 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7477
7478         * config/sparc/sparc.opt (mimpure-text): Move ...
7479         * config/sol2.opt: ... here.  Correct description.
7480         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
7481         * doc/invoke.texi (Option Summary, SPARC Options): Move
7482         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
7483         (Option Summary, Solaris 2 Options): ... here.
7484         (Submodel Options, Solaris 2 Options): New menu entry.
7485         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
7486         (Solaris 2 Options): ... here.
7487
7488 2010-09-30  Michael Eager  <eager@eagercon.com>
7489
7490         * extend.texi (interrupt_handler): Add MicroBlaze to list.
7491         (save_volatiles): Describe option for MicroBlaze.
7492         * invoke.texi: Add MicroBlaze Options.
7493         * contrib.texi: Add acknowledgment.
7494         * md.texi: Add MicroBlaze d and z constraints.
7495         * install.texi: Add microblaze-*-elf.
7496         * configure.ac: Add microblaze-*-* to target list.
7497         * configure: Regenerate.
7498         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
7499         * config/microblaze/microblaze-protos.h: New.
7500         * config/microblaze/crti.s: New.
7501         * config/microblaze/predicates.md: New.
7502         * config/microblaze/linux.h: New.
7503         * config/microblaze/microblaze.md: New.
7504         * config/microblaze/constraints.md: New.
7505         * config/microblaze/crtn.s: New.
7506         * config/microblaze/microblaze.opt: New.
7507         * config/microblaze/microblaze-c.c: New.
7508         * config/microblaze/t-microblaze: New.
7509         * config/microblaze/microblaze.c: New.
7510         * config/microblaze/microblaze.h: New.
7511
7512 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
7513
7514         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
7515         parse @optional/@required and set the flags as appropriate.
7516
7517 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
7518
7519         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
7520
7521 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
7522
7523         * opt-functions.awk (static_var): Update comment.
7524         (var_ref): Return offsetof expression or -1, not variable address.
7525         * optc-gen.awk: Generate structure field initializers instead of
7526         static variables.  Expect -1 for missing variables instead of null
7527         pointer.  Add gcc_options parameters to generated functions.
7528         * opth-gen.awk: Generate structure fields for static variables.
7529         Add gcc_options parameters to generated functions.
7530         * common.opt (optimize, optimize_size): Add variables.
7531         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
7532         &global_options to cl_target_option_restore.
7533         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
7534         &global_options to cl_optimization_restore, cl_target_option_save
7535         and cl_target_option_restore.
7536         (ix86_set_current_function): Pass &global_options to
7537         cl_target_option_restore.
7538         * config/pdp11/pdp11.h (optimize): Remove.
7539         * config/rs6000/rs6000.h (optimize): Remove.
7540         * config/sh/sh.h (optimize): Remove.
7541         * config/xtensa/xtensa.h (optimize): Remove.
7542         * coretypes.h (struct gcc_options): Declare.
7543         * diagnostic.c (diagnostic_initialize): Initialize
7544         context->option_state.
7545         (diagnostic_report_diagnostic): Pass option_state to
7546         option_enabled hook.
7547         * diagnostic.h (diagnostic_context.option_enabled): Add void *
7548         parameter.
7549         (diagnostic_context.option_state): New field.
7550         * final.c (final_start_function, final, final_scan_insn): Rename
7551         optimize parameter to optimize_p.
7552         * flags.h (optimize, optimize_size): Remove.
7553         * function.c (invoke_set_current_function_hook): Pass
7554         &global_options to cl_optimization_restore.
7555         * gcc.c (driver_handle_option): Take gcc_options parameter.
7556         Assert that it is &global_options.
7557         (process_command): Pass &global_options to read_cmdline_option.
7558         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
7559         option_enabled.
7560         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
7561         &global_options to set_option.
7562         * opts-common.c (handle_option, handle_generated_option,
7563         read_cmdline_option, set_option): Take explicit gcc_options
7564         parameters.  Use option_flag_var.
7565         (option_flag_var): New.
7566         * opts.c (common_handle_option, lang_handle_option,
7567         target_handle_option): Take gcc_options parameter.  Assert that it
7568         is &global_options.
7569         (read_cmdline_options): Pass &global_options to read_cmdline_option.
7570         (print_filtered_help): Use option_flag_var.  Pass &global_options
7571         to option_enabled.
7572         (common_handle_option): Use option_flag_var.
7573         (option_enabled): Take opts parameter.  Use option_flag_var.
7574         (get_option_state): Take gcc_options parameter.  Use
7575         option_flag_var.  Pass gcc_options parameter to option_enabled.
7576         (enable_warning_as_error): Pass &global_options to
7577         handle_generated_option.
7578         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
7579         (cl_option_handler_func.handler): Take gcc_options parameter.
7580         (option_enabled, get_option_state, set_option, handle_option,
7581         handle_generated_option, read_cmdline_option): Take gcc_options
7582         parameters.
7583         * toplev.c (optimize, optimize_size): Remove.
7584         (print_switch_values): Pass &global_options to option_enabled.
7585         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
7586         to get_option_state.
7587         (general_init): Initialize global_dc->option_state.
7588         * tree.c (build_optimization_node): Pass &global_options to
7589         cl_optimization_save.
7590         (build_target_option_node): Pass &global_options to
7591         cl_target_option_save.
7592
7593 2010-09-30  Martin Jambor  <mjambor@suse.cz>
7594
7595         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
7596         zero sized bit-fields.
7597
7598 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
7599
7600         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
7601         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
7602         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
7603         (c_parser_objc_class_declaration): Same change.
7604         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
7605         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
7606         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
7607         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
7608         and RID_AT_PUBLIC instead of RID_PUBLIC.
7609         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
7610         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
7611
7612 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
7613
7614         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
7615         Add links to current providers of packages for Solaris and IRIX.
7616
7617 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7618
7619         Merge from 'apple/trunk' branch on FSF servers.
7620         * c-parser.c: Applied change originally in c-parse.in.
7621
7622         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
7623
7624         Radar 4281748
7625         * c-decl.c (start_decl): Check for redeclaration of class name.
7626         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
7627
7628 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
7629
7630         * config/ia64/ia64.c (ia64_builtin_decl): New.
7631         (TARGET_BUILTIN_DECL): Define.
7632         (ia64_builtins): New.
7633         (ia64_init_builtins): Save decls in ia64_builtins.
7634
7635 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
7636
7637         PR target/40457
7638         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
7639         (move2add_use_add3_insn): Likewise.
7640         (reload_cse_move2add): Likewise.
7641         * rtlanal.c (get_full_rtx_cost): New function.
7642         * rtl.h (struct full_rtx_costs): New.
7643         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
7644         costs_add_n_insns): New inline functions.
7645         (get_full_rtx_cost): Declare.
7646
7647         PR c/45054
7648         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
7649         invariants.  Check for reg_equiv_invariant.
7650         (reload): Assert that spilled_pseudos is empty when returning.
7651
7652 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
7653
7654         * config/i386/mingw32.h (TARGET_64BIT): replaced by
7655         TARGET_64BIT_DEFAULT in #if check.
7656
7657 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
7658
7659         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
7660
7661 2010-09-29  Mike Stump  <mikestump@comcast.net>
7662
7663         * config/darwin.h (flag_mkernel): Remove.
7664         (flag_apple_kext): Likewise.
7665
7666 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
7667             Jack Howarth  <howarth@bromo.med.uc.edu>
7668
7669         * config/darwin.opt (undefined): Add.
7670
7671 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7672
7673         PR testsuite/45664
7674         * configure.ac: Add --enable-indirect-function option.
7675         * config.gcc: Add default_gnu_indirect_function.
7676         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
7677         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
7678         * varasm.c (do_assemble_alias): Adjust for macro name change.
7679         * configure: Rebuilt.
7680         * doc/install.texi: Document --enable-indirect-function.
7681
7682 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
7683
7684         * doc/options.texi (Variable, Var, Init): Update documentation
7685         without reference to VarExists.
7686         (VarExists): Remove.
7687         * common.opt, config/i386/i386.opt, config/linux.opt,
7688         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
7689         Don't use VarExists.
7690
7691 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
7692
7693         * optc-gen.awk: Generate global_options initializer instead of
7694         individual variables.  Add x_ prefix to names of structure members.
7695         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
7696         names of structure members.
7697         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7698         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
7699         * doc/tm.texi: Regenerate.
7700         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7701         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
7702         * c-parser.c (disable_extension_diagnostics,
7703         restore_extension_diagnostics): Update names of cpp_options members.
7704         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7705         * common.opt (fcompare-debug-second): Don't use Var.
7706         * config/alpha/alpha.h (target_flags): Remove.
7707         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7708         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
7709         * config/bfin/bfin.h (target_flags): Remove.
7710         * config/cris/cris.h (target_flags): Remove.
7711         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
7712         cl_target_option members.
7713         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
7714         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
7715         ix86_can_inline_p): Update names of cl_target_option members.
7716         * config/i386/i386.h (ix86_isa_flags): Remove.
7717         * config/lm32/lm32.h (target_flags): Remove.
7718         * config/mcore/mcore.h (mcore_stack_increment): Remove.
7719         * config/mcore/mcore.md (addsi3): Remove extern declaration of
7720         flag_omit_frame_pointer.
7721         * config/mep/mep.h (target_flags): Remove.
7722         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7723         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
7724         * config/mmix/mmix.h (target_flags): Remove.
7725         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
7726         flag_expensive_optimizations): Remove.
7727         * config/s390/s390.h (flag_pic): Remove.
7728         * config/score/score-conv.h (target_flags): Remove.
7729         * config/sh/sh.h (sh_fixed_range_str): Remove.
7730         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
7731         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
7732         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7733         * diagnostic.c (diagnostic_initialize): Update names of
7734         diagnostic_context members.
7735         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
7736         warn_system_headers.
7737         (diagnostic_report_warnings_p): Update for new names.
7738         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
7739         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
7740         HARD_FRAME_POINTER_IS_ARG_POINTER.
7741         * flags.h (flag_compare_debug): Declare.
7742         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7743         * opts.c (flag_compare_debug): Define.
7744         (common_handle_option): Update names of diagnostic_context
7745         members.  Handle -fcompare-debug-second.
7746         (fast_math_flags_struct_set_p): Update names of cl_optimization
7747         members.
7748         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7749         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7750         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7751         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7752         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7753         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7754         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
7755         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7756         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
7757
7758 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
7759
7760         * config/picochip/picochip.c (picochip_output_internal_label):
7761         This function can now be called for debug CFI labels, which can come
7762         in the middle of a vliw instruction.  Postpone until end of vliw.
7763
7764 2010-09-29  Richard Guenther  <rguenther@suse.de>
7765
7766         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
7767         (DECL_FILE_SCOPE_P): Use it.
7768         (TYPE_FILE_SCOPE_P): New macro.
7769
7770 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7771
7772         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
7773         a CPP_NAME which is a reserved word, clearly separate cases for
7774         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
7775
7776 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7777
7778         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
7779         token->value with the canonical spelling.  Do exactly like C and
7780         C++ and leave it as it is.
7781
7782 2010-09-28  Richard Henderson  <rth@redhat.com>
7783
7784         * config/alpha/alpha.c (alpha_builtins): New.
7785         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
7786         (alpha_builtin_function): New.
7787         (alpha_add_builtins, alpha_init_builtins): Use it.
7788
7789 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
7790
7791         * doc/standards.texi (Standards): Expanded the section on
7792         Objective-C and Objective-C++.
7793
7794 2010-09-28  DJ Delorie  <dj@redhat.com>
7795
7796         PR target/45800
7797         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
7798         volatile MEMs.
7799
7800 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
7801
7802         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
7803         attributes on methods.
7804          (c_parser_objc_method_definition): Handle attributes.
7805         (c_parser_objc_methodproto): Likewise.
7806         (c_parser_objc_maybe_method_attributes): New.
7807         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
7808         missing definition, similar to that in ObjC++.
7809
7810 2010-09-28  Richard Henderson  <rth@redhat.com>
7811
7812         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
7813         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
7814         (CONFIG_SJLJ_EXCEPTIONS): Remove.
7815         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
7816         (STACK_CHECK_PROTECT): Likewise.
7817         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
7818         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
7819         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
7820         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
7821         (dwarf2out_assembly_start): Likewise.
7822         * except.c (init_eh): Use targetm.except_unwind_info.
7823         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
7824         (output_one_function_exception_table): Likewise.
7825         * final.c: Unconditionally include dwarf2out.h.
7826         (final_start_function): Unconditionally call dwarf2out routines.
7827         (final_end_function, final_scan_insn): Likewise.
7828         * function.c (expand_function_end): Use targetm.except_unwind_info.
7829         * opts.c (decode_options): Use targetm.except_unwind_info.
7830         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
7831         * target.def (debug_unwind_info, except_unwind_info): New.
7832         * target.h (enum unwind_info_type): New.
7833         * targhooks.c (default_debug_unwind_info): New.
7834         (default_except_unwind_info): New.
7835         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
7836         * targhooks.h: Declare them.
7837         * tree-tailcall.c: Include "target.h"
7838         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
7839         * Makefile.in (tree-tailcall.o): Update.
7840         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
7841         (lhd_gcc_personality): Likewise.
7842
7843         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
7844         (TARGET_EXCEPT_UNWIND_INFO): New.
7845         (DWARF2_UNWIND_INFO): Update.
7846         (TARGET_DEBUG_UNWIND_INFO): New.
7847         * doc/tm.texi: Rebuild.
7848
7849         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
7850         targetm.except_unwind_info.
7851
7852         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
7853         (arm_except_unwind_info): New.
7854         (arm_compute_func_type): Use it.
7855         (arm_expand_prologue, thumb_pushpop): Likewise.
7856         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
7857         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
7858         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
7859         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
7860         (DWARF2_UNWIND_INFO): Remove.
7861         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
7862         (ARM_EABI_UNWIND_TABLES): Remove.
7863
7864         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
7865         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
7866         (ia64_except_unwind_info): New.
7867         (ia64_output_function_prologue): Use it.
7868         (ia64_add_bundle_selector_before): Likewise.
7869         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
7870         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
7871         (TARGET_UNWIND_INFO): Remove.
7872
7873         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
7874
7875 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
7876
7877         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
7878         (c_parser_objc_protocol_definition): Likewise.
7879         (c_parser_external_declaration): Provide dummy attribute arguments.
7880         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
7881         (c_parser_objc_class_definition): Handle attributes.
7882         (c_parser_objc_protocol_definition): Likewise.
7883
7884 2010-09-28  Tobias Burnus  <burnus@net-b.de>
7885
7886         PR fortran/40569
7887         PR fortran/40568
7888         * toplev.h (save_decoded_options, save_decoded_options_count):
7889         New global variables.
7890         * toplev.c (save_decoded_options, save_decoded_options_count):
7891         Export variables.
7892
7893 2010-09-28  Ian Lance Taylor  <iant@google.com>
7894
7895         * config/i386/i386.c (ix86_supports_split_stack): Test
7896         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
7897
7898 2010-09-28  Ian Lance Taylor  <iant@google.com>
7899
7900         PR target/45815
7901         * opts.c (decode_options): Don't test whether the target supports
7902         split stack if flag_split_stack == 0.
7903
7904 2010-09-28  Jan Hubicka  <jh@suse.cz>
7905
7906         * builtin-attrs.def (ATTR_LEAF): New attribute.
7907         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
7908         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
7909         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
7910         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
7911         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
7912         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
7913         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
7914         * sync-builtins.def: Annotate all builtins by leaf.
7915         * omp-builtins.def: Annotate all builtins by leaf.
7916         * builtins.def: Annotate relevant builtins with leaf attribute.
7917         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
7918         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
7919         leaf.
7920
7921 2010-09-28  Jan Hubicka  <jh@suse.cz>
7922
7923         * tree-ssa-ccp.c (fold_ctor_reference): New function.
7924         (fold_const_aggregate_ref): Use it.
7925         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
7926         into external static.
7927
7928 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7929
7930         PR target/44452
7931         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
7932         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
7933         (ix86_solaris_return_in_memory): Remove.
7934         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
7935         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
7936         (TARGET_SUBTARGET_DEFAULT): Redefine.
7937         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
7938         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
7939         (TARGET_SUBTARGET_DEFAULT): Redefine.
7940         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
7941         -mvect8-ret-in-mem.
7942         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
7943
7944 2010-09-29  Alan Modra  <amodra@gmail.com>
7945
7946         PR target/45807
7947         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
7948         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
7949         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
7950         Delete.
7951         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
7952         (rs6000_emit_prologue): Don't just create frame save info for r2,
7953         actually save r2.
7954
7955 2010-09-28  Richard Henderson  <rth@redhat.com>
7956
7957         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
7958         when 8 bytes are requested.
7959
7960 2010-09-28  Tristan Gingold  <gingold@adacore.com>
7961
7962         * config/avr/avr.c (expand_prologue): Set
7963         current_function_static_stack_size.
7964
7965 2010-09-28  Tristan Gingold  <gingold@adacore.com>
7966
7967         * config/alpha/alpha.md: Change the initial condition of the
7968         probing loop.
7969
7970 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
7971
7972         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
7973         Split from *avx_<maxmin:code><mode>3.
7974         (*avx_<smaxmin:code><mode>3): Ditto.
7975         * config/i386/i386.md (maxmin): Remove code iterator.
7976
7977 2010-09-27  Ian Lance Taylor  <iant@google.com>
7978
7979         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
7980         requires assembler support for CFI directives.
7981
7982 2010-09-27  Richard Henderson  <rth@redhat.com>
7983
7984         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
7985
7986 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
7987
7988         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
7989         that AFTER is not in the range FROM..TO, inclusive.
7990
7991 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
7992             Bernd Schmidt  <bernds@codesourcery.com>
7993
7994         PR rtl-optimization/45792
7995         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
7996         If not all insns are to be merged, for each edge, stash the
7997         next candidate after the to-be-merged insns before doing the
7998         merge, and use them for the retry at the new insertion point.
7999         Handle CC0 targets when retrying.
8000
8001 2010-09-27  Ian Lance Taylor  <iant@google.com>
8002
8003         * common.opt (fsplit-stack): New option.
8004         * opts.c (decode_options): Set flag_split_stack to final value.
8005         * target.def (supports_split_stack): New hook.
8006         * gcc.c (STACK_SPLIT_SPEC): Define.
8007         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
8008         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
8009         (Code Gen Options): Document -fsplit-stack.
8010         * doc/extend.texi (Function Attributes): Mention no_split_stack.
8011         (Function Attributes): Document no_split_stack.
8012         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
8013         TARGET_SUPPORTS_SPLIT_STACK.
8014         * doc/tm.texi: Rebuild.
8015         * function.c (thread_prologue_and_epilogue_insns): If
8016         flag_split_stack, add split stack prologue.
8017         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
8018         * varasm.c (saw_no_split_stack): New static variable.
8019         (assemble_start_function): Set saw_no_split_stack if the function
8020         has the no_split_stack attribute.
8021         (file_end_indicate_split_stack): New function.
8022         * output.h (file_end_indicate_split_stack): Declare.
8023         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
8024         and function.
8025         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
8026         routines.
8027         * config/i386/i386.c (ix86_option_override_internal): Don't set
8028         expand_builtin_va_start to NULL if -fsplit-stack.
8029         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
8030         -fsplit-stack.
8031         (ix86_va_start): If -fsplit-stack, get overflow pointer from
8032         scratch register set by prologue.
8033         (ix86_code_end): If -fsplit-stack, call
8034         file_end_indicate_split_stack.
8035         (ix86_supports_split_stack): New static function.
8036         (SPLIT_STACK_AVAILABLE): Define.
8037         (split_stack_prologue_scratch_regno): New static function.
8038         (split_stack_fn): New static variable.
8039         (ix86_expand_split_stack_prologue): New function.
8040         (ix86_live_on_entry): New static function.
8041         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
8042         (output_pic_addr_const): Likewise.
8043         (i386_asm_output_addr_const_extra): Likewise.
8044         (ix86_expand_call): Change return type to rtx.  Return the new
8045         call instruction.
8046         (TARGET_SUPPORTS_SPLIT_STACK): Define.
8047         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
8048         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
8049         (split_stack_prologue, split_stack_return): New insns.
8050         (split_stack_space_check): New insn.
8051         * config/i386/i386.h (struct machine_function): Add
8052         split_stack_varargs_pointer field.
8053         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
8054         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8055         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8056         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8057         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
8058         Declare.
8059         (ix86_expand_call): Update declaration.
8060
8061 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8062
8063         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
8064         code.  Added byref, which was missing in the list of codes.
8065         Explain that enumeration values are encoded as the integer type
8066         that the compiler uses to store them.  Explain and make examples
8067         of how 'const' interacts with pointers, and the complication of
8068         the encoding of 'const char *'.
8069         (Legacy type encoding): New subsection, explaining that GCC emits
8070         incorrect type encodings for the NeXT runtime for compatibility
8071         reasons.
8072         (@@encode): New subsection, explaining @encode and particularly
8073         that protocol qualifiers are not recognized inside an @encode()
8074         expression.
8075         (Method signatures): New subsection, explaining how method
8076         signatures are encoded.
8077
8078 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8079
8080         Merge from 'apple/trunk' branch on FSF servers.  Removed small
8081         change in build_conditional_expr that had been added when fixing
8082         PR objc/27377 and which did the same check in a less complete way.
8083
8084         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
8085
8086         Radar 4229905
8087         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
8088         looking for objective-c common pointer types.
8089
8090         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
8091
8092         Radar 4154928
8093         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
8094         use their ObjC common type.
8095
8096 2010-09-27  Richard Guenther  <rguenther@suse.de>
8097
8098         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
8099
8100 2010-09-27  Jie Zhang  <jie@codesourcery.com>
8101
8102         * print-tree.c (print_node): Print in-constant-pool.
8103
8104 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
8105
8106         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
8107         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
8108         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
8109         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
8110
8111 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
8112
8113         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
8114         from pro_epilogue_adjust_stack_<mode>_{1,2}.
8115         (pro_epilogue_adjust_stack_<mode>_add): Rename from
8116         pro_epilogue_adjust_stack_<mode>_3.
8117         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
8118         renamed pro_epilogue_adjust_stack_{si,di}_add.
8119         (ix86_expand_prologue): Use indirect functions.  Update for renamed
8120         pro_epilogue_adjust_stack_{si,di}_sub.
8121
8122 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
8123
8124         * config/i386/i386.md (movmsk_df): New insn.
8125         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
8126         sequence for TARGET_SSE_MATH.
8127
8128 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
8129
8130         * config/mips/mips.c (mips_builtin_decls): Declare.
8131         (mips_init_builtins): Store function declarations in
8132         mips_builtin_decls.
8133         (mips_builtin_decl): New function.
8134         (TARGET_BUILTIN_DECL): Define.
8135
8136 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
8137             Richard Henderson  <rth@redhat.com>
8138
8139         * config/i386/cygwin.asm: Include auto-host.h.
8140         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
8141         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
8142         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
8143         alignment code from the 64-bit path.  Use gas local labels.
8144         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
8145         from _di_2.  Remove the useless constant integer argument.
8146         (pro_epilogue_adjust_stack_<mode>_3): New.
8147         (allocate_stack_worker_probe_<mode>): Macroize from
8148         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
8149         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
8150         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
8151         (__chkstk_ms): New function.
8152         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
8153         * config/i386/t-interix: Likewise.
8154         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
8155         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
8156         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
8157         * configure, config.in: Rebuild.
8158
8159 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
8160
8161         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
8162         statements because of the return slot optimization.
8163
8164 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
8165
8166         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
8167         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
8168         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8169         (class_likely_spilled_p): Rename to...
8170         (avr_class_likely_spilled_p): ...this. Make static. Change argument
8171         type to reg_class_t.
8172
8173 2010-09-24  Jan Hubicka  <jh@suse.cz>
8174
8175         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
8176         (lto_symtab_resolve_symbols): Set it.
8177         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
8178         store resolution field in cgraph/varpool.
8179         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
8180         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
8181         (cgraph_dump_node): Drop used_from_object_file.
8182         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
8183         (cgraph_function_body_availability): Use decl_replaceable_p.
8184         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
8185         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
8186         cgraph_used_from_object_file_p.
8187         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
8188         cgraph_used_from_object_file_p.
8189         (resolution_used_from_other_file_p): New functoin.
8190         (cgraph_used_from_object_file_p): New predicate.
8191         * cgraph.h: Include plugin-api.h
8192         (struct cgraph_local_info): Remove used_from_object_file.
8193         (struct cgraph_node): Add resolution field.
8194         (struct varpool_node): Likewise; remove used_from_object_file;
8195         reove const_value_known.
8196         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
8197         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
8198         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
8199         varpool_used_from_object_file_p): Declare.
8200         (varpool_get_node, varpool_extra_name_alias): Update prototype.
8201         * tree.h (DECL_REPLACEABLE_P): Remove.
8202         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
8203         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
8204         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
8205         input_overwrite_node, input_node, input_varpool_node): Stream
8206         resolution.
8207         * expr.c (expand_expr_real_1): Use const_value_known_p
8208         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
8209         const_value_known.
8210         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
8211         (function_and_variable_visibility): Set resolution for local vars
8212         and functions; use varpool_used_from_object_file_p.
8213         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
8214         static functions.
8215         (default_binds_local_p_1): Use resolutoin info.
8216         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
8217         * varpool.c (varpool_get_node): Constify.
8218         (const_value_known_p): Do not use vnode->const_value_known;
8219         use decl_replaceable_p.
8220         (varpool_finalize_decl): Do not set const_value_known.
8221         (cgraph_variable_initializer_availability): Use decl_replaceable_p
8222         (varpool_extra_name_alias): Return new node.
8223         (varpool_used_from_object_file_p): New function.
8224
8225 2010-09-24  Richard Henderson  <rth@redhat.com>
8226
8227         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
8228         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
8229         (do_spill): Use REG_CFA_OFFSET.
8230         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
8231         as appropriate.
8232         (ia64_expand_epilogue): Likewise.
8233         (process_set): Split into ...
8234         (process_cfa_adjust_cfa): this,
8235         (process_cfa_register): this,
8236         (process_cfa_offset): and this new function.
8237         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
8238         instead of REG_FRAME_RELATED_EXPR.
8239
8240 2010-09-24  Olivier Hainque  <hainque@adacore.com>
8241
8242         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
8243
8244 2010-09-24  Jan Hubicka  <jh@suse.cz>
8245
8246         * doc/extend.texi: (attribute leaf): Document.
8247         * tree.c (local_define_builtin): Handle ECF_LEAF.
8248         (build_common_builtin_nodes): Set ECF_LEAF where needed.
8249         * tree.h (ECF_LEAF): New.
8250         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
8251         overwrittable and unavailable functions.
8252         (ipa_init): Put all_module_statics into optimization_summary_obstack.
8253         (copy_global_bitmap): Do not copy all_module_statics.
8254         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
8255         (propagate): Handle overwritable and unavailable leaf functions;
8256         initialize global info for overwritable and unavailable leaf functions;
8257         do not free all module statics.
8258         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
8259         local statics.
8260         * calls.c (flags_from_decl_or_type): Handle leaf.
8261         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
8262         abnormal gotos.
8263
8264 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
8265
8266         * gengtype.c: Reindented.
8267         * gengtype.h: Reindented.
8268         * gengtype-parse.c: Reindented.
8269
8270 2010-09-24  Jan Hubicka  <jh@suse.cz>
8271
8272         PR tree-optimization/45738
8273         PR tree-optimization/45741
8274         * expr.c (string_constant): Allow CONST_DECL too;
8275         check that DECL_INITIAL is set.
8276         * varpool.c (const_value_known_p): Only look into VAR_DECL
8277         and CONST_DECL.
8278
8279 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
8280
8281         * common.opt (undef): New.
8282
8283 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
8284
8285         PR middle-end/45234
8286         * rtl.h (enum global_rtl_index): Add
8287         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
8288         (LAST_VIRTUAL_POINTER_REGISTER): Define.
8289         (virtual_preferred_stack_boundary_rtx,
8290         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
8291         (LAST_VIRTUAL_REGISTER): Increase by one.
8292         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
8293         instead of LAST_VIRTUAL_REGISTER.
8294         * function.c (instantiate_new_reg): Handle
8295         virtual_preferred_stack_boundary_rtx.
8296         * emit-rtl.c (init_virtual_regs): Handle
8297         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
8298         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
8299         * explow.c (round_push): If crtl->preferred_stack_boundary
8300         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
8301         virtual_preferred_stack_boundary_rtx alignment instead of
8302         crtl->preferred_stack_boundary alignment.
8303         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
8304         macros.  Never decrease crtl->preferred_stack_boundary,
8305         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
8306         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
8307         stack_pointer_delta in dynamic allocation, even when size
8308         is constant.
8309         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
8310         macro.
8311         * print-rtl.c (print_rtx): Handle
8312         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
8313         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
8314         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
8315         * config/frv/frv.c (frv_emit_movsi): Likewise.
8316         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
8317         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
8318         Likewise.
8319
8320         Revert:
8321         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
8322
8323         PR middle-end/45234
8324         * calls.c (expand_call): Make sure that all variable sized
8325         adjustments are multiple of preferred stack boundary after
8326         stack alignment.
8327
8328 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
8329             Dominique Dhumieres  <dominiq@lps.ens.fr>
8330
8331         PR bootstrap/45751
8332         * config/darwin-driver.c (darwin_default_min_version):
8333         Adjust size passed to memcpy in two places.
8334
8335 2010-09-24  Richard Guenther  <rguenther@suse.de>
8336
8337         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
8338         Make sure to not call set_type_context with error_mark_node.
8339         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
8340
8341 2010-09-24  Richard Guenther  <rguenther@suse.de>
8342
8343         * Makefile.in (OBJS-onestep): Remove.
8344         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
8345         (libbackend.a): Remove onestep support.
8346         (libbackend.o): Remove.
8347         * configure.ac (--enable-intermodule): Remove.
8348         * configure: Regenerate.
8349
8350 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
8351
8352         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
8353         reaching the end of a block if it occurs at a DEBUG_INSN.
8354
8355 2010-09-09  Tristan Gingold  <gingold@adacore.com>
8356
8357         PR target/44242
8358         * config/vms/vms-crt0-64.c: Removed.
8359         * config/vms/vms-crt0.c: Removed.
8360         * config/vms/vms-psxcrt0-64.c: Removed.
8361         * config/vms/vms-psxcrt0.c: Removed.
8362         * config/vms/vms-ucrt0.c: New file.
8363         * config/vms/t-vms64: Removed.
8364         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
8365         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
8366         * config.gcc (alpha-dec-vms): Use t-vms.
8367
8368 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
8369
8370         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
8371         underfull hbox in DVI output.
8372         (-fobjc-class-cxx-cdtors): Same change.
8373         (-fobjc-exceptions): Tidied up documentation.  Explain what the
8374         option does, but moved the (lenghty) description of the exception
8375         syntax into objc.texi.
8376         (-fobjc-gc): Explain that the option is not useful with the GNU
8377         runtime.
8378         (-fzero-link): Explain that the GNU runtime always works in
8379         "zero-link" mode.
8380         * doc/objc.texi: All sections: simplified @node declarations
8381         removing specification of next, previous, up node.
8382         (Objective-C): Updated introduction.
8383         (Garbage Collection): Updated.  The bohem-gc library is now
8384         included in gcc itself.  Mention that this section only applies to
8385         the GNU Objective-C runtime.
8386         (compatibility_alias): Small tidy up.
8387         (Exceptions): New section mostly containing text previously in the
8388         description of the -fobjc-exception command-line option.
8389         (Synchronization): Same.
8390
8391 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
8392
8393         * config/i386/i386.md (ix86_code_end): Move the initialization of
8394         xops array near the consumer.  Use AX_REG and SP_REG instead of
8395         numerical constants.
8396
8397 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
8398
8399         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
8400         method [methodname]' for an Objective-C method instead of the less
8401         satisfactory 'too many arguments to function' (with no method name).
8402
8403 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
8404
8405         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
8406         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
8407         (execute_update_addresses_taken): Remove parameter.  Execute the
8408         optimization unconditionally.
8409         * passes.c (execute_function_todo): Call execute_update_addresses_taken
8410         unconditionally if TODO_rebuild_alias is set, else only when optimizing
8411         if TODO_update_address_taken is set.
8412
8413 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
8414
8415         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8416         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
8417         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8418         (arm_output_addr_const_extra): Make static.
8419
8420 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
8421
8422         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
8423         define as unspec_volatile.
8424         ("nops"): Define as unspec_volatile. Use fputs to write to
8425         asm_out_file directly.  Output NOPs on separate lines using while loop.
8426         * config/i386/i386.c (ix86_code_end): Use fputs to write to
8427         asm_out_file directly.  Output NOPs on separate lines using while loop.
8428
8429 2010-09-23  Richard Guenther  <rguenther@suse.de>
8430
8431         PR tree-optimization/45565
8432         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
8433         Make sure to adjust the fndecl before replacing the stmt.
8434
8435 2010-09-23  Richard Guenther  <rguenther@suse.de>
8436
8437         PR middle-end/45750
8438         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
8439         gimplifying MEM_REF.
8440
8441 2010-09-23  Alan Modra  <amodra@gmail.com>
8442
8443         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
8444         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
8445
8446 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
8447
8448         PR rtl-optimization/44374
8449         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
8450         * df-core.c (df_set_bb_dirty): Set it.
8451         * ifcvt.c (find_memory): Remove function.
8452         (dead_or_predicable): Use can_move_insns_across.
8453         * df.h (can_move_insns_across): Declare function.
8454         * cfgcleanup.c (block_was_dirty): New static variable.
8455         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
8456         than df_get_bb_dirty.
8457         (try_head_merge_bb): New static function.
8458         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
8459         is set.
8460         * df-problems.c: Include "target.h"
8461         (df_simulate_find_uses): New static function.
8462         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
8463         (find_memory, find_memory_store): New static functions.
8464         (can_move_insns_across): New function.
8465         * Makefile.in (df-problems.o): Update dependencies.
8466
8467 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
8468
8469         PR java/44095
8470         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
8471         is specified and the suffix of the file isn't ".c".
8472         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8473
8474 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8475
8476         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
8477         * doc/cppopts.texi: Fix markup of index entry.
8478         * doc/extend.texi (Constructing Calls): Fix markup of
8479         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
8480         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
8481         (Vague Linkage, C++ Attributes): Fix markup of index entries and
8482         keywords.
8483         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
8484         avoid long lines.
8485         (C Dialect Options, C++ Dialect Options, Warning Options)
8486         (Debugging Options, Spec Files, Darwin Options)
8487         (i386 and x86-64 Options, MIPS Options)
8488         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
8489         index entries, avoid abbreviations, allow URLs to wrap, avoid
8490         long lines, avoid overlong pages from long @itemx lists.
8491         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
8492         * doc/standards.texi (Standards): Likewise.
8493         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
8494
8495 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
8496
8497         * opts-common.c (prune_options): Make static.  Work with decoded
8498         options.
8499         (decode_cmdline_options_to_array): Call prune_options.  Don't
8500         resize option array here.
8501         * opts.h (prune_options): Remove prototype.
8502         * gcc.c (process_command): Take decoded options; don't call
8503         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
8504         (main): Call decode_cmdline_options_to_array here instead of
8505         prune_options.  Update call to process_command.
8506         * config/darwin-driver.c: Include opts.h.
8507         (darwin_default_min_version): Work with decoded options.  Don't
8508         handle -b or -V here.
8509         * config/darwin.h (darwin_default_min_version): Update prototype.
8510         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
8511         darwin_default_min_version.
8512         * config/i386/cygwin.h (mingw_scan): Update prototype.
8513         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
8514         * config/i386/cygwin1.c: Include opts.h.
8515         (mingw_scan): Work with decoded options.
8516         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
8517         * config/t-darwin (darwin-driver.o): Update dependencies.
8518
8519 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
8520
8521         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
8522         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
8523         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
8524         -force-link, -force-link=, -language, -language=,
8525         -library-directory, -library-directory=, -no-canonical-prefixes,
8526         -no-standard-libraries, -no-warnings, -optimize, -output,
8527         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
8528         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
8529         -print-file-name=, -print-libgcc-file-name,
8530         -print-multi-directory, -print-multi-lib,
8531         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
8532         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
8533         -profile, -save-temps, -shared, -specs, -specs=, -static,
8534         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
8535         symbolic): New.
8536         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
8537         * gcc.c (A Short Introduction to Adding a Command-Line Option):
8538         Remove comment.
8539         (cc1_options): Correct specs for passing down --help,
8540         --target-help and --help=*.  Add spec for passing down --version.
8541         (struct option_map, option_map, target_option_translations,
8542         translate_options): Remove.
8543         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
8544         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
8545         OPT_fhelp_ and OPT_ftarget_help.
8546         (process_command): Don't call translate_options.  Call
8547         decode_cmdline_options_to_array before checking for
8548         -no-canonical-prefixes using decoded options.
8549         * opts-common.c (tm.h): Update comment on #include.
8550         (find_opt): Allow abbreviations of long options.
8551         (struct option_map, option_map): New.
8552         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
8553         and -mno handling.
8554         (target_option_translations): New.
8555         (decode_cmdline_options_to_array): Handle
8556         TARGET_OPTION_TRANSLATE_TABLE in driver.
8557         * opts.c (common_handle_option): Don't handle OPT_fhelp,
8558         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
8559
8560 2010-09-22  Richard Guenther  <rguenther@suse.de>
8561
8562         * tree-inline.c (optimize_inline_calls): Schedule cleanups
8563         only if we inlined something.  Block compaction and conditional
8564         folding are done by cfg cleanup.  Schedule update-address-taken.
8565         (tree_function_versioning): Remove redundant call to number_blocks.
8566         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
8567         folding is done by cfg cleanup.
8568         * passes.c (init_optimization_passes): Remove update-address-taken
8569         pass after IPA inlining.
8570
8571 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
8572
8573         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
8574         to update conditions. Fix reg_mode[] check.
8575
8576 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
8577
8578         * config/picochip/picochip.md (movhicc): Use expand to check whether
8579         movhicc is available and split it after reload.
8580
8581 2010-09-22  Richard Guenther  <rguenther@suse.de>
8582
8583         * tree-ssanames.c (release_dead_ssa_names): Do not remove
8584         callee edges here.
8585         * passes.c (init_optimization_passes): Remove early CFG cleanup.
8586         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
8587         (pass_cleanup_cfg): Likewise.
8588         (execute_fixup_cfg): Cleanup.
8589         * tree-pass.h (pass_cleanup_cfg): Remove.
8590
8591 2010-09-22  Martin Jambor  <mjambor@suse.cz>
8592
8593         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
8594         builtins if it is true.
8595         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
8596         parameter.
8597
8598 2010-09-22  Martin Jambor  <mjambor@suse.cz>
8599
8600         * tree-sra.c (struct access): New field grp_no_warning.
8601         (create_access_replacement): Set TREE_NO_WARNING according to
8602          grp_no_warning.
8603         (create_artificial_child_access): Use build_ref_for_model and set
8604         grp_no_warning if build_user_friendly_ref_for_offset fails.
8605         (propagate_subaccesses_across_link): Likewise.
8606
8607 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
8608
8609         PR target/35664
8610         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
8611         ('f'): Likewise.
8612
8613 2010-09-22  Tristan Gingold  <gingold@adacore.com>
8614
8615         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
8616
8617 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
8618
8619         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
8620         * config/i386/i386.c (decide_alg): Update for rename.
8621
8622 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
8623
8624         PR rtl-optimization/45739
8625         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
8626         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
8627
8628 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
8629
8630         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
8631         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
8632         Remove.
8633         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
8634         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8635
8636 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8637
8638         PR objc/23710
8639         * c-parser.c (c_parser_objc_method_definition): Check the return
8640         value of objc_start_method_definition and if false is returned,
8641         parse the method definition but emit no code.
8642
8643 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8644
8645         PR objc/25965
8646         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
8647         call objc_get_interface_ivars ().
8648
8649 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
8650
8651         PR target/45694
8652         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
8653         static chain-register is used for 64-bit.
8654
8655 2010-09-21  Richard Guenther  <rguenther@suse.de>
8656
8657         * dwarf2out.c (is_cu_die): New function.
8658         (add_pubtype): Use it.
8659         (gen_subprogram_die): Likewise.
8660         (gen_struct_or_union_type_die): Likewise.
8661         (dwarf2out_finish): Likewise.
8662         (comp_unit_die): Rename to ...
8663         (single_comp_unit_die): ... this.
8664         (comp_unit_die): New function lazily constructing and
8665         returning single_comp_unit_die.
8666         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
8667         base_type_die, subrange_type_die, modified_type_die,
8668         lower_bound_default, add_bound_info, add_prototyped_attribute,
8669         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
8670         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
8671         force_decl_die, gen_namespace_die, dwarf2out_decl,
8672         dwarf2out_start_source_file, dwarf2out_end_source_file,
8673         prune_unused_types, dwarf2out_finish): Use it.
8674         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
8675         the global list of translation-unit decls.
8676         (dwarf2out_init): Do not create single_comp_unit_die here.
8677         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
8678
8679 2010-09-21  Richard Guenther  <rguenther@suse.de>
8680
8681         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
8682         for bool for C++.
8683
8684 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
8685
8686         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
8687         (qhs_extenddi_cstr): Likewise.
8688         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
8689         them for the source operand.
8690
8691 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
8692
8693         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
8694         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
8695         (ix86_split_ashr): Ditto.
8696         (ix86_split_lshr): Ditto.
8697
8698 2010-09-21  Richard Guenther  <rguenther@suse.de>
8699
8700         PR tree-optimization/45580
8701         * tree-ssa-propagate.c (substitute_and_fold): Always replace
8702         regular uses.
8703         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
8704         virtuals fold the call into a regular indirect one.
8705
8706 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
8707
8708         PR rtl-optimization/42775
8709         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
8710         scheduling is enabled.
8711
8712 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
8713
8714         PR rtl-optimization/45728
8715         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
8716         gen_lowpart_common first and if that fails, force_reg first
8717         before calling gen_lowpart.
8718
8719         PR middle-end/45678
8720         * cfgexpand.c (expand_one_stack_var_at): Use
8721         crtl->max_used_stack_slot_alignment as max_align, instead
8722         of maximum of that and PREFERRED_STACK_BOUNDARY.
8723         Don't call update_stack_alignment.
8724
8725 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
8726
8727         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
8728         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
8729         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
8730         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
8731         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
8732         (build_nonstandard_integer_type): Likewise.
8733         (build_range_type_1): New function, built from...
8734         (build_range_type): ...this.  Call build_range_type_1.
8735         (build_nonshared_range_type): New function.
8736         (build_array_type_1): New function, built from...
8737         (build_array_type: ...this.  Call build_array_type_1.
8738         (build_nonshared_array_type): New function.
8739         * tree.h (build_nonshared_range_type): Declare.
8740         (build_nonshared_array_type): Likewise.
8741
8742 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
8743
8744         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
8745         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8746         (arm_class_likely_spilled_p): New function.
8747
8748 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
8749
8750         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
8751         indirect functions.
8752         (ix86_split_ashl): Ditto.
8753         (ix86_split_ashr): Ditto.
8754         (ix86_split_lshr): Ditto.
8755         (ix86_adjust_counter): Ditto.
8756
8757 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
8758
8759         * c-family/c-common.h (constant_string_class): Documented with
8760         comment identical to the one already in c-common.c.
8761
8762 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
8763
8764         * dwarf2out.c (any_cfis_emitted): New static variable.
8765         (add_fde_cfi): Set it.
8766         (dwarf2out_frame_debug): Clear it before processing,
8767         if it is set afterwards, flush any queued reg saves.
8768
8769         PR debug/45124
8770         * dwarf2out.c (add_accessibility_attribute): Assume
8771         DW_ACCESS_private as the default for dwarf_version > 2
8772         and DW_TAG_class_type parent.
8773         (gen_inheritance_die): Assume DW_ACCESS_public as the default
8774         for dwarf_version > 2 and parent other than DW_TAG_class_type.
8775
8776 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
8777
8778         PR target/45726
8779         * arm.md (arm_movt): Only enable on machines with MOVT.
8780
8781 2010-09-20  Jie Zhang  <jie@codesourcery.com>
8782
8783         * config/arm/arm.c (arm_address_offset_is_imm): New.
8784         (arm_early_store_addr_dep): New.
8785         (arm_early_load_addr_dep): New.
8786         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
8787         (arm_early_load_addr_dep): Declare.
8788         (arm_address_offset_is_imm): Declare.
8789         * config/arm/cortex-m4.md: New file.
8790         * config/arm/cortex-m4-fpu.md: New file.
8791         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
8792         (attr generic_sched): Exclude cortexm4.
8793         (attr generic_vfp): Exclude cortexm4.
8794
8795 2010-09-20  Richard Guenther  <rguenther@suse.de>
8796
8797         PR middle-end/45704
8798         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
8799
8800 2010-09-20  Jan Hubicka  <jh@suse.cz>
8801
8802         PR tree-optimize/45605
8803         * cgraph.h (const_value_known_p): Declare.
8804         (varpool_decide_const_value_known): Remove.
8805         * tree-ssa-ccp.c (get_base_constructor): Use it.
8806         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
8807         * expr.c (string_constant): Likewise.
8808         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
8809         * ipa.c (ipa_discover_readonly_nonaddressable_var,
8810         function_and_variable_visibility): Likewise.
8811         * gimplify.c (gimplify_call_expr): Likewise.
8812         * gimple-fold.c (get_symbol_constant_value): Likewise.
8813         * varpool.c (varpool_decide_const_value_known): Replace by...
8814         (const_value_known_p): ... this one; handle other kinds of DECLs
8815         too and work for automatic vars.
8816         (varpool_finalize_decl): Use const_value_known_p.
8817
8818 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
8819
8820         PR target/45726
8821         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
8822
8823 2010-09-20  Richard Guenther  <rguenther@suse.de>
8824
8825         PR tree-optimization/45705
8826         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
8827
8828 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
8829
8830         PR rtl-optimization/45695
8831         * combine.c (try_combine): When splitting a two set pattern,
8832         make sure the pattern which will be put into i2 doesn't use REGs
8833         or MEMs set by insns in between i2 and i3.
8834
8835 2010-09-19  Jan Hubicka  <jh@suse.cz>
8836
8837         PR lto/44246
8838         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
8839         processing same node twice.
8840
8841 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
8842
8843         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
8844         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8845         (bfin_class_likely_spilled_p): New function
8846
8847 2010-09-19  Ira Rosen  <irar@il.ibm.com>
8848
8849         PR tree-optimization/45714
8850         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
8851         created in vectorizable_call instead of the original statement in
8852         def stmt updates.
8853
8854 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
8855
8856         * config/i386/i386-protos.h (split_double_mode): New prototype.
8857         (split_di, split_ti): Remove prototypes.
8858         * config/i386/i386.c (split_double_mode): New function.
8859         (split_di, split_ti): Remove.
8860         (ix86_expand_branch): Use split_double_mode.
8861         (ix86_split_to_parts): Ditto.
8862         (ix86_split_ashl): Ditto.
8863         (ix86_split_ashr): Ditto.
8864         (ix86_split_lshr): Ditto.
8865         (ix86_force_to_memory): Ditto.
8866         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
8867
8868 2010-09-18  Jan Hubicka  <jh@suse.cz>
8869
8870         PR tree-optimization/45453
8871         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
8872         virtual functions are reachable.
8873         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
8874         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
8875         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
8876         when modifying function.
8877
8878 2010-09-18  Jan Hubicka  <jh@suse.cz>
8879
8880         PR tree-optimization/45605
8881         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
8882         * gimple-fold.c (static_object_in_other_unit_p): New function.
8883         (canonicalize_constructor_val): Use it.
8884         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
8885         returning NULL.
8886         (gimple_fold_obj_type_ref_known_binfo): Use
8887         static_object_in_other_unit_p.
8888
8889 2010-09-18  Richard Guenther  <rguenther@suse.de>
8890
8891         PR tree-optimization/45709
8892         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
8893         insertions until after all PHI nodes of the block are processed.
8894
8895 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
8896
8897         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
8898
8899 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
8900
8901         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
8902
8903 2010-09-18  Richard Guenther  <rguenther@suse.de>
8904
8905         PR tree-optimization/45709
8906         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
8907
8908 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
8909
8910         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
8911         (dot_deps_stmt): Same.
8912         * graphite-poly.c (dot_lst): Same.
8913         * graphite-scop-detection.c (dot_all_scops): Same.
8914         (dot_scop): Same.
8915
8916 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
8917
8918         Revert:
8919         2009-12-16  Ben Elliston  <bje@au.ibm.com>
8920
8921         * tree-data-ref.c (dot_rdg_1): Added back.
8922         (dot_rdg): Same.  Added "#if 0" around system call.
8923
8924 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
8925             Richard Henderson  <rth@redhat.com>
8926
8927         * config/i386/i386.c (initial_ix86_tune_features): Add
8928         X86_TUNE_PAD_SHORT_FUNCTION.
8929         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
8930         (ix86_count_insn): New.
8931         (ix86_pad_short_function): Likewise.
8932         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
8933
8934         * config/i386/i386.h (ix86_tune_indices): Add
8935         X86_TUNE_PAD_SHORT_FUNCTION.
8936         (TARGET_PAD_SHORT_FUNCTION): New.
8937
8938         * config/i386/i386.md (UNSPEC_NOPS): New.
8939         (nops): Likewise.
8940
8941 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
8942
8943         PR middle-end/45234
8944         * calls.c (expand_call): Make sure that all variable sized
8945         adjustments are multiple of preferred stack boundary after
8946         stack alignment.
8947
8948 2010-09-17  DJ Delorie  <dj@redhat.com>
8949
8950         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
8951         passed an invalid value, print an error instead of ICEing.
8952         (valid_psw_flag): New.
8953         (rx_expand_builtin): Call it for setpsw/clrpsw.
8954         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
8955
8956         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
8957         (bitclr_in_memory): Likewise.
8958         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
8959
8960 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
8961
8962         PR middle-end/45678
8963         * cfgexpand.c (update_stack_alignment): New.
8964         (get_decl_align_unit): Use it.
8965         (expand_one_stack_var_at): Call update_stack_alignment.
8966
8967 2010-09-17  Richard Guenther  <rguenther@suse.de>
8968
8969         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
8970         Properly copy the read string.
8971
8972 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
8973
8974         * doc/options.texi (Variable): Document.
8975         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
8976         generate target_flags declarations explicitly.  Don't define
8977         VarExists variables for the driver.
8978         * common.opt (target_flags): New Variable record.
8979         (flag_dump_unnumbered, flag_dump_unnumbered_links,
8980         flag_var_tracking, flag_var_tracking_assignments,
8981         flag_var_tracking_assignments_toggle): Don't mark variables with
8982         VarExists.
8983         * config/i386/i386.c (ix86_isa_flags): Don't define here.
8984         * config/i386/i386.opt (ix86_isa_flags): Define here.
8985         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
8986         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
8987         VarExists.
8988         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
8989         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
8990         Only define for generator programs.
8991         * rtlanal.c (target_flags): Remove.
8992         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
8993         flag_var_tracking_assignments_toggle): Remove.
8994
8995 2010-09-17  Michael Matz  <matz@suse.de>
8996
8997         PR tree-optimization/43432
8998         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
8999         Accept backwards consecutive accesses.
9000         (vect_create_data_ref_ptr): If step is negative generate
9001         decreasing IVs.
9002         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
9003         (perm_mask_for_reverse, reverse_vec_elements): New functions.
9004         (vectorizable_load): Handle loads with negative steps when easily
9005         possible.
9006
9007 2010-09-03  Jan Hubicka  <jh@suse.cz>
9008
9009         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
9010
9011 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
9012
9013         * config/v850/v850.c (v850_function_value_regno_p): Make static.
9014         Adjust comments. Declare.
9015         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
9016         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
9017
9018 2010-09-17  Richard Guenther  <rguenther@suse.de>
9019
9020         * common.opt (combine): Remove.
9021         * gcc.c (default_compilers): Remove specs testing combine.
9022         The C compilers no longer can combine.
9023         (option_map): Remove -combine.
9024         (display_help): Remove -combine.
9025         (driver_handle_option): Remove OPT_combine handling.
9026         (compile_input_file_p): Remove.
9027         (do_spec): Remove code concerning combine.
9028         (main): Likewise.
9029         * doc/invoke.texi: Remove traces of -combine.
9030         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
9031
9032 2010-09-17  Richard Guenther  <rguenther@suse.de>
9033
9034         PR middle-end/45678
9035         * builtins.c (fold_builtin_memory_op): Always properly adjust
9036         alignment of memory accesses.
9037
9038 2010-09-16  Jan Hubicka  <jh@suse.cz>
9039
9040         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
9041         processing clone.
9042
9043 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
9044
9045         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
9046
9047         * config/i386/i386.c (predict_jump): Add prototype.
9048         (flag_opts): Add -m8bit-idiv.
9049         (ix86_split_idivmod): New.
9050
9051         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
9052         Add 2 splitters for SI/DI mode divide.
9053         (divmod<mode>4_1): New pattern.
9054         (udivmod<mode>4_1): Likewise.
9055         (testdi_ccno_1): Likewise.
9056
9057         * config/i386/i386.opt (m8bit-idiv): New.
9058
9059         * doc/invoke.texi: Document -m8bit-idiv.
9060
9061 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
9062
9063         PR bootstrap/45680
9064         * config/i386/i386.c (min_insn_size): Moved out of the
9065         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
9066
9067 2010-09-16  Jan Hubicka  <jh@suse.cz>
9068
9069         * lto-cgraph.c (lto_output_node): Fix handling of clones.
9070         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
9071         unreachable clones with reachable clones.
9072         * tree-inline.c (copy_bb): Fix sanity checking when producing
9073         unreachable clone.
9074
9075 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
9076
9077         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
9078         (TARGET_MEMORY_MOVE_COST): Define.
9079         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
9080
9081 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
9082
9083         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
9084         maybe_tidy_empty_bb.
9085
9086         Revert:
9087         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
9088         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
9089
9090 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
9091
9092         * target.def (target_option.optimization): New hook.
9093         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
9094         TARGET_OPTION_OPTIMIZATION hook.
9095         * doc/tm.texi: Regenerate.
9096         * hooks.c (hook_void_int_int): New.
9097         * hooks.h (hook_void_int_int): Declare.
9098         * opts.c: Don't include tm_p.h.
9099         (decode_options): Use targetm.target_option.optimization instead
9100         of OPTIMIZATION_OPTIONS.
9101         * system.h (OPTIMIZATION_OPTIONS): Poison.
9102         * config/arm/arm-protos.h (arm_optimization_options): Remove.
9103         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
9104         (arm_optimization_options): Rename to arm_option_optimization.
9105         Make static.
9106         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
9107         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
9108         (cris_option_optimization): New.
9109         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
9110         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
9111         (crx_option_optimization): New.
9112         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
9113         * config/frv/frv-protos.h (frv_optimization_options): Remove.
9114         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
9115         (frv_optimization_options): Rename to frv_option_optimization.
9116         Make static.
9117         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
9118         * config/h8300/h8300.c (h8300_option_optimization): New.
9119         (TARGET_OPTION_OPTIMIZATION): Define.
9120         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
9121         * config/i386/i386-protos.h (optimization_options): Remove.
9122         * config/i386/i386.c (optimization_options): Rename to
9123         ix86_option_optimization.  Make static.
9124         (TARGET_OPTION_OPTIMIZATION): Define.
9125         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
9126         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
9127         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
9128         (ia64_optimization_options): Rename to ia64_option_optimization.
9129         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
9130         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
9131         commented-out definition.
9132         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
9133         instead of OPTIMIZATION_OPTIONS.
9134         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
9135         (m32r_option_optimization): New.
9136         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
9137         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
9138         Remove.
9139         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
9140         (mcore_option_optimization): New.
9141         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
9142         * config/mep/mep-protos.h (mep_optimization_options): Remove.
9143         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
9144         (mep_optimization_options): Rename to mep_option_optimization.
9145         Make static.  Take unused level and size parameters.
9146         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
9147         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
9148         (mmix_option_optimization): New.
9149         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
9150         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
9151         (pdp11_option_optimization): New.
9152         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
9153         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
9154         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
9155         (optimization_options): Rename to rs6000_option_optimization.
9156         Make static.
9157         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
9158         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
9159         * config/rx/rx.c (rx_set_optimization_options): Rename to
9160         rx_option_optimization.  Make static.  Take unused level and size
9161         parameters.
9162         (TARGET_OPTION_OPTIMIZATION): Define.
9163         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
9164         * config/s390/s390-protos.h (optimization_options): Remove.
9165         * config/s390/s390.c (optimization_options): Rename to
9166         s390_option_optimization.  Make static.  Don't mark size parameter
9167         unused.
9168         (TARGET_OPTION_OPTIMIZATION): Define.
9169         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
9170         * config/sh/sh-protos.h (sh_optimization_options): Remove.
9171         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
9172         (sh_optimization_options): Rename to sh_option_optimization.  Make
9173         static.  Don't mark parameters unused.
9174         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
9175         * config/spu/spu-protos.h (spu_optimization_options): Remove.
9176         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
9177         (spu_optimization_options): Rename to spu_option_optimization.
9178         Make static.
9179         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
9180         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
9181         (v850_option_optimization): New.
9182         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
9183         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
9184         (xtensa_option_optimization): New.
9185         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
9186
9187 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
9188
9189         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
9190         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
9191         * doc/tm.texi: Regenerate.
9192         * system.h (OVERRIDE_OPTIONS): Poison.
9193         * target.def (override): Default to hook_void_void.
9194         * targhooks.c (default_target_option_override): Remove.
9195         * genmodes.c, machmode.def: Update comments mentioning
9196         OVERRIDE_OPTIONS.
9197         * config/alpha/alpha-modes.def: Update comment mentioning
9198         alpha_override_options.
9199         * config/alpha/alpha-protos.h (override_options): Remove.
9200         * config/alpha/alpha.c (override_options): Rename to
9201         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
9202         (TARGET_OPTION_OVERRIDE): Define.
9203         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
9204         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
9205         of OVERRIDE_OPTIONS.
9206         * config/arc/arc-protos.h (arc_init): Remove.
9207         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
9208         (arc_init): Rename to arc_option_override.  Make static.
9209         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
9210         (OVERRIDE_OPTIONS): Remove.
9211         * config/arm/arm-protos.h (arm_override_options): Remove.
9212         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
9213         (arm_override_options): Rename to arm_option_override.  Make
9214         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
9215         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
9216         * config/arm/arm.md: Update comment referring to arm_override_options.
9217         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
9218         instead of OVERRIDE_OPTIONS.
9219         * config/avr/avr-protos.h (avr_override_options): Remove.
9220         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
9221         (avr_override_options): Rename to avr_option_override.  Make static.
9222         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
9223         * config/bfin/bfin-protos.h (override_options): Remove (twice).
9224         * config/bfin/bfin.c (override_options): Rename to
9225         bfin_option_override.  Make static.
9226         (TARGET_OPTION_OVERRIDE): Define.
9227         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
9228         * config/cris/cris-protos.h (cris_override_options): Remove.
9229         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
9230         (cris_override_options): Rename to cris_option_override.  Make static.
9231         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
9232         * config/frv/frv-protos.h (frv_override_options): Remove.
9233         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
9234         (frv_override_options): Rename to frv_option_override.  Make static.
9235         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
9236         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
9237         * config/h8300/h8300.c (h8300_init_once): Rename to
9238         h8300_option_override.  Make static.
9239         (TARGET_OPTION_OVERRIDE): Define.
9240         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
9241         * config/i386/i386-protos.h (override_options): Remove.
9242         * config/i386/i386.c (override_options): Rename to
9243         ix86_option_override_internal.  Make static.  Comments referring
9244         to this function and callers changed.
9245         (ix86_option_override): New.
9246         (TARGET_OPTION_OVERRIDE): Define.
9247         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
9248         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
9249         * config/ia64/ia64.c (ia64_file_start): Update comment referring
9250         to ia64_override_options.
9251         * config/iq2000/iq2000-protos.h (override_options): Remove.
9252         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
9253         (override_options): Rename to iq2000_option_override.  Make static.
9254         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
9255         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
9256         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
9257         (lm32_override_options): Rename to lm32_option_override.  Make static.
9258         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
9259         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
9260         (m32r_option_override): New.
9261         (m32r_init): Update comment.
9262         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
9263         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
9264         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
9265         (m68hc11_override_options): Rename to m68hc11_option_override.
9266         Make static.  Return void.
9267         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
9268         * config/m68k/m68k-protos.h (override_options): Remove.
9269         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
9270         (override_options): Rename to m68k_option_override.  Make static.
9271         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
9272         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
9273         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
9274         (mcore_override_options): Rename to mcore_option_override.  Make
9275         static.
9276         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
9277         * config/mep/mep-protos.h (mep_override_options): Remove.
9278         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
9279         (mep_override_options): Rename to mep_option_override.  Make static.
9280         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
9281         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
9282         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
9283         (mmix_override_options): Rename to mmix_option_override.  Make static.
9284         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
9285         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
9286         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
9287         (mn10300_override_options): Rename to mn10300_option_override.
9288         Make static.
9289         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
9290         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
9291         * config/moxie/moxie.c (moxie_override_options): Rename to
9292         moxie_option_override.  Make static.
9293         (TARGET_OPTION_OVERRIDE): Define.
9294         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
9295         * config/picochip/picochip-protos.h (picochip_override_options):
9296         Remove.  Update comment referring to picochip_override_options.
9297         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
9298         (picochip_override_options): Rename to picochip_option_override.
9299         Make static.  Update comment and definition of
9300         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
9301         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
9302         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9303         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9304         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9305         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9306         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9307         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
9308         instead of OVERRIDE_OPTIONS.
9309         * config/rs6000/rs6000-modes.def: Update comment referring to
9310         rs6000_override_options.
9311         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
9312         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
9313         (rs6000_override_options): Rename to
9314         rs6000_option_override_internal.  Make static.  Commented
9315         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
9316         (rs6000_option_override): New.
9317         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
9318         instead of OVERRIDE_OPTIONS.
9319         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9320         * config/s390/s390-protos.h (override_options): Remove.
9321         * config/s390/s390.c (override_options): Rename to
9322         s390_option_override.  Make static.
9323         (TARGET_OPTION_OVERRIDE): Define.
9324         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
9325         * config/score/score-protos.h (score_override_options): Remove.
9326         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
9327         (score_override_options): Rename to score_option_override.  Make
9328         static.
9329         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
9330         Update comment referring to override_options.
9331         * config/score/score3.c (score3_override_options): Rename to
9332         score3_option_override.
9333         * config/score/score3.h (score3_override_options): Rename to
9334         score3_option_override.
9335         * config/score/score7.c (score7_override_options): Rename to
9336         score7_option_override.
9337         * config/score/score7.h (score7_override_options): Rename to
9338         score7_option_override.
9339         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
9340         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
9341         (sparc_override_options): Rename to sparc_option_override.  Make
9342         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
9343         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
9344         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
9345         instead of OVERRIDE_OPTIONS.
9346         * config/spu/spu-protos.h (spu_override_options): Remove.
9347         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
9348         (spu_override_options): Rename to spu_option_override.  Make
9349         static.
9350         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
9351         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
9352         OVERRIDE_OPTIONS.
9353         * config/vax/vax-protos.h (override_options): Remove.
9354         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
9355         (override_options): Rename to vax_option_override.  Make static.
9356         Call SUBTARGET_OVERRIDE_OPTIONS.
9357         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
9358         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
9359         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
9360         * config/xtensa/xtensa-protos.h (override_options): Remove.
9361         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
9362         (override_options): Rename to xtensa_option_override.  Make static.
9363         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
9364
9365 2010-09-16  Richard Guenther  <rguenther@suse.de>
9366
9367         PR tree-optimization/45623
9368         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
9369         (get_constraint_for_component_ref): If computing a constraint
9370         for the rhs handle type punning through unions.
9371         (get_constraint_for_address_of): Adjust.
9372         (get_constraint_for_1): Likewise.
9373         (get_constraint_for): Likewise.
9374         (get_constraint_for_rhs): New function.
9375         (do_structure_copy): Adjust.
9376         (make_constraint_to): Likewise.
9377         (handle_const_call): Likewise.
9378         (find_func_aliases): Likewise.
9379         (process_ipa_clobber): Likewise.
9380         (create_variable_info_for): Likewise.
9381
9382 2010-09-16  Ira Rosen  <irar@il.ibm.com>
9383
9384         * tree-vectorizer.c: Fix documentation.
9385         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
9386         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
9387         is_pattern_stmt_p, is_loop_header_bb_p,
9388         stmt_vinfo_set_inside_of_loop_cost,
9389         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
9390         known_alignment_for_access_p): Likewise.
9391         * tree-vect-loop.c: Fix documentation.
9392         (vect_get_cost): Start function name from new line.
9393         * tree-vect-data-refs.c: Fix documentation.
9394         * tree-vect_stmts.c: Likewise.
9395         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
9396         (vectorizable_store): Free vec_oprnds if allocated.
9397         (vectorizable_condition): Initialize several variables to avoid
9398         warnings.
9399         * tree-vect-slp.c: Fix documentation.
9400
9401 2010-09-16  Richard Guenther  <rguenther@suse.de>
9402
9403         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
9404         is TS_TRANSLATION_UNIT_DECL.
9405         (initialize_tree_contains_struct): Adjust.
9406         (all_translation_units): New global vector.
9407         (build_translation_unit_decl): New function.
9408         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
9409         (struct tree_translation_unit_decl): New.
9410         (all_translation_units): Declare.
9411         (union tree_node): Add translation_unit_decl member.
9412         (build_translation_unit_decl): Declare.
9413         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
9414         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
9415         New function.
9416         (pack_value_fields): Call it.
9417         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
9418         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
9419         (lto_output_tree_pointers): Call it.
9420         * lto-streamer-in.c (lto_input_tree_ref): Handle references
9421         to TRANSLATION_UNIT_DECL.
9422         (unpack_ts_translation_unit_decl_value_fields): New function.
9423         (unpack_value_fields): Call it.
9424         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
9425         (lto_input_tree_pointers): Call it.
9426         * lto-streamer.c (check_handled_ts_structures): Adjust.
9427         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
9428         * c-decl.c (all_translation_units): Remove.
9429         (pop_scope): Use build_translation_unit_decl.
9430         (collect_all_refs): Adjust.
9431         (for_each_global_decl): Likewise.
9432         (c_write_global_declarations): Likewise.
9433
9434 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
9435
9436         PR bootstrap/45686
9437         * fold-const.c (fold_checksum_tree): Change slot from const void **
9438         to void **, use CONST_CAST_TREE to store into *slot.
9439
9440 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
9441
9442         * config/i386/i386.md: Remove unneeded empty conditions and
9443         preparation statements from expanders.
9444         * config/i386/mmx.md: Ditto.
9445         * config/i386/sse.md: Ditto.
9446
9447 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
9448
9449         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
9450
9451 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
9452
9453         PR rtl-optimization/45593
9454         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
9455         insns that were in delay slots as stand-alone insns.
9456
9457 2010-09-15  Ian Lance Taylor  <iant@google.com>
9458
9459         * incpath.c (remove_duplicates): If name is not a directory, issue
9460         a warning rather than an error.
9461
9462 2010-09-15  Martin Jambor  <mjambor@suse.cz>
9463
9464         PR middle-end/45644
9465         * tree-sra.c (create_access): Check for bit-fields directly.
9466
9467 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
9468
9469         PR tree-optimization/45633
9470         * tree-cfg.c (verify_gimple_assign_binary): Allow
9471         MINUS_EXPR with lhs and rhs1 pointer vector and
9472         rhs2 sizetype vector.
9473         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
9474         or vector pointer use TER to optimize pointer subtraction.
9475
9476 2010-09-15  Jie Zhang  <jie@codesourcery.com>
9477
9478         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
9479         fcmpd to fcmps.
9480
9481 2010-09-15  Ian Lance Taylor  <iant@google.com>
9482
9483         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
9484
9485 2010-09-15  Ian Lance Taylor  <iant@google.com>
9486
9487         * function.c (get_arg_pointer_save_area): Set
9488         arg_pointer_save_area_init to true.
9489
9490 2010-09-15  Martin Jambor  <mjambor@suse.cz>
9491
9492         * tree-sra.c (generate_subtree_copies): Updated comment.
9493         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
9494         obtained from the statement iterator instead.
9495         (load_assign_lhs_subreplacements): Removed parameters lhs and
9496         right_offset, which is obtained from top_racc instead.  Parameter lacc
9497         is now expected to be the root of the processed tree rather than root's
9498         first child.  Updated all callers.
9499
9500 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
9501
9502         * config/pdp11/pdp11.c (register_move_cost): Rename to
9503         pdp11_register_move_cost.
9504         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
9505         pdp11_register_move_cost.
9506         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
9507         pdp11_register_move_cost instead of register_move_cost.
9508
9509 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
9510
9511         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
9512         pattern for vmovn. Expansion in case of non
9513         -mvectorize-with-neon-quad.
9514         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
9515         non- -mvectorize-with-neon-quad case.
9516         (move_lo_quad_<mode>): New expansion to vmov into low part.
9517         (move_hi_quad_<mode>): New expansion to vmov into high part.
9518         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
9519         (move_lo_quad_v4sf): Likewise.
9520         (move_lo_quad_v8hi): Likewise.
9521         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
9522         low part.
9523         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
9524         high part.
9525         * config/arm/iterators.md (ANY128): New mode iterator.
9526         (V_narrow_pack): New mode attribute.
9527         (V_HALF): Add attribute.
9528         (V_DOUBLE): Add attribute.
9529         (V_mode_nunits): Add attribute.
9530
9531 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
9532
9533         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
9534         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
9535
9536 2010-09-15  Olivier Hainque  <hainque@adacore.com>
9537             Jose Ruiz  <ruiz@adacore.com>
9538
9539         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
9540         * config/alpha/osf5-unwind.h: New file.
9541
9542 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9543
9544         PR bootstrap/45672
9545         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
9546         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
9547         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
9548
9549 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9550
9551         * c-lang.h (struct lang_type): Add variable_size GTY option.
9552
9553 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9554
9555         PR bootstrap/45672
9556         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
9557
9558 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9559
9560         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
9561         result isn't used in memory address.
9562
9563 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9564
9565         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
9566         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
9567         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
9568         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
9569         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
9570         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
9571
9572         * target.def: Add units_per_simd_word to vectorize.
9573
9574         * targhooks.c (default_units_per_simd_word): New.
9575         * targhooks.h (default_units_per_simd_word): Likewise.
9576         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
9577         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9578         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
9579         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9580         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
9581         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9582         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
9583         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9584
9585         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
9586         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
9587
9588         * tree-vect-stmts.c: Don't include "tm_p.h".
9589         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
9590         with targetm.vectorize.units_per_simd_word.
9591
9592         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
9593
9594         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
9595
9596         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
9597         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
9598
9599         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
9600         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
9601
9602         * doc/tm.texi: Regenerated.
9603
9604 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9605
9606         * tree-vect-stmts.c: Include "tm_p.h".
9607
9608         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
9609         out of RTX_CODE.
9610
9611 2010-09-14  Martin Jambor  <mjambor@suse.cz>
9612
9613         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
9614         location of generated statement.  Changed all callers.
9615         (build_ref_for_model): New parameter loc which used to set location of
9616         all generated expressions.  Changed all callers.
9617         (generate_subtree_copies): Likewise.
9618         (init_subtree_with_zero): Likewise.
9619         (sra_modify_expr): Set locations of all generated statements and
9620         expressions to the location the original statement.
9621         (handle_unscalarized_data_in_subtree): Likewise.
9622         (load_assign_lhs_subreplacements): Likewise.
9623         (sra_modify_constructor_assign): Likewise.
9624         (sra_modify_assign): Likewise.
9625
9626 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
9627
9628         PR target/45277
9629         PR target/45363
9630         PR target/45407
9631         * doc/install.texi (sparc*-*-*): New section.
9632         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
9633
9634 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
9635
9636         PR middle-end/45567
9637         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
9638         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
9639         (expand_builtin): Adjust caller.
9640         (expand_builtin_unop): Only use subtarget if it has the right mode.
9641
9642 2010-09-14  Tristan Gingold  <gingold@adacore.com>
9643
9644         * configure.ac (plugins): Fix typos.
9645         * configure: Regenerate.
9646
9647 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
9648
9649         PR debug/45660
9650         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
9651         gen_type_die for function/method return type.
9652
9653 2010-09-14  Ira Rosen  <irar@il.ibm.com>
9654
9655         PR tree-optimization/45470
9656         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9657         can throw an exception.
9658         * tree-vect-stmts.c (vectorizable_call): Likewise.
9659
9660 2010-09-14  DJ Delorie  <dj@redhat.com>
9661
9662         PR target/44749
9663         * config/mep/mep-protos.h (mep_save_register_info,
9664         mep_reinit_regs, mep_init_regs): Declare.
9665
9666         * config/mep/mep.c: Move all target definitions to the end of the
9667         file to avoid the need for duplicate declarations.
9668         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
9669         (mep_reorg_erepeat): Remove unused variables.
9670         (mep_expand_builtin): Likewise.
9671
9672         * config/mep/mep-pragma.c: Don't include rtl.h.
9673         (INVALID_REGNUM): New.
9674         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
9675         functions.
9676         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
9677         Avoid enum/integer math.
9678
9679 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
9680
9681         PR target/44749
9682         * config/mep/t-mep (GTM_H): Add insn-constants.h.
9683         * config/mep/mep.c (mep_conditional_register_usage): Take no
9684         parameters.
9685         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
9686         prototype.
9687         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
9688         call to mep_conditional_register_usage.
9689
9690 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
9691
9692         PR debug/43937
9693         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
9694         the DECL as well.
9695
9696 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
9697
9698         PR rtl-optimization/45617
9699         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
9700         even if low N bits of X aren't known to be zero.
9701
9702 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
9703
9704         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
9705
9706         * config/i386/i386.c (initial_ix86_tune_features): Add
9707         X86_TUNE_VECTORIZE_DOUBLE.
9708         (ix86_units_per_simd_word): New.
9709
9710         * config/i386/i386.h (ix86_tune_indices): Add
9711         X86_TUNE_VECTORIZE_DOUBLE.
9712         (TARGET_VECTORIZE_DOUBLE): New.
9713         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
9714
9715 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
9716
9717         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
9718         (new_temp_expr_table): Allocate call_cnt vector.
9719         (free_temp_expr_table): Free it.
9720         (process_replaceable): Add call_cnt parm and set in vector.
9721         (find_replaceable_in_bb): Skip replacement if def/use span a call.
9722         (debug_ter): Dump call_cnt value, remove stderr uses.
9723
9724 2010-09-13  Jan Hubicka  <jh@suse.cz>
9725
9726         * tree.c (build_zero_cst): New.
9727         * tree.h (build_zero_cst): Declare.
9728         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
9729         (get_base_constructor): Break out from ...
9730         (fold_const_aggregate_ref): Here; handle empty constructors.
9731
9732 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9733
9734         * config/arm/arm.md: (define_attr "conds"): Update comment.
9735         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
9736         conds attribute to clob.
9737         (arm_sync_compare_and_swapsi): Likewise.
9738         (arm_sync_compare_and_swap<mode>): Likewise.
9739         (arm_sync_lock_test_and_setsi): Likewise.
9740         (arm_sync_lock_test_and_set<mode>): Likewise.
9741         (arm_sync_new_<sync_optab>si): Likewise.
9742         (arm_sync_new_nandsi): Likewise.
9743         (arm_sync_new_<sync_optab><mode>): Likewise.
9744         (arm_sync_new_nand<mode>): Likewise.
9745         (arm_sync_old_<sync_optab>si): Likewise.
9746         (arm_sync_old_nandsi): Likewise.
9747         (arm_sync_old_<sync_optab><mode>): Likewise.
9748         (arm_sync_old_nand<mode>): Likewise.
9749
9750 2010-09-13  Olivier Hainque  <hainque@adacore.com>
9751
9752         * fwprop.c (forward_propagate_and_simplify): Only attach a
9753         REG_EQUAL note to an insn if the destination is a register.
9754         * gcse.c (try_replace_reg): Likewise.
9755
9756 2010-09-13  Richard Guenther  <rguenther@suse.de>
9757
9758         PR tree-optimization/45611
9759         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
9760         (copy_ref_info): Likewise.
9761
9762 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
9763
9764         PR debug/45604
9765         PR debug/45419
9766         PR debug/45408
9767         * tree-pretty-print.c (dump_generic_node): Disregard top-level
9768         types of MEM_REF pointer types to the same type.
9769
9770 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
9771
9772         PR rtl-optimization/41087
9773         * ifcvt.c (noce_get_condition): Don't allow conditions with
9774         side-effects.
9775
9776 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
9777
9778         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9779         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
9780         * config/frv/frv.c (frv_register_move_cost): Make static. Change
9781         arguments type to reg_class_t. Add mode argument.
9782         (frv_memory_move_cost): New.
9783         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
9784
9785 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
9786
9787         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
9788         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
9789
9790 2010-09-10  Jan Hubicka  <jh@suse.cz>
9791
9792         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
9793
9794 2010-09-10  Richard Guenther  <rguenther@suse.de>
9795
9796         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
9797         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
9798         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
9799         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
9800         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
9801
9802 2010-09-10  Richard Guenther  <rguenther@suse.de>
9803
9804         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
9805         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
9806         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
9807         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
9808
9809 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9810
9811         PR middle-end/45634
9812         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
9813         of string folding is of integral type.
9814
9815 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
9816
9817         * doc/invoke.texi (-x): Fix typo.
9818
9819 2010-09-10  Richard Guenther  <rguenther@suse.de>
9820
9821         PR debug/44115
9822         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
9823         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9824         Output DECL_DEBUG_EXPR.
9825         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9826         Input DECL_DEBUG_EXPR.
9827
9828 2010-09-10  Richard Guenther  <rguenther@suse.de>
9829
9830         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
9831         (build_index_type): Implement in terms of build_range_type.
9832         (build_range_type): Do not allow NULL_TREE type, improve
9833         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
9834         if we didn't hash.
9835         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
9836         create a distinct copy of the type.
9837
9838 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
9839
9840         * configure: Regenerated.
9841         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
9842
9843 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9844
9845         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
9846         * config/arm/cortex-a9-neon.md: New and partially generated.
9847         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
9848
9849 2010-09-10  Richard Guenther  <rguenther@suse.de>
9850
9851         * tree.h (build_index_2_type): Remove.
9852         * tree.c (build_index_2_type): Remove.
9853
9854 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
9855
9856         PR bootstrap/45630
9857         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
9858         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
9859         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
9860
9861 2010-09-10  Martin Jambor  <mjambor@suse.cz>
9862
9863         PR tree-optimization/44972
9864         * tree-sra.c: Include toplev.h.
9865         (build_ref_for_offset): Entirely reimplemented.
9866         (build_ref_for_model): New function.
9867         (build_user_friendly_ref_for_offset): New function.
9868         (analyze_access_subtree): Removed build_ref_for_offset check.
9869         (propagate_subaccesses_across_link): Likewise.
9870         (create_artificial_child_access): Use
9871         build_user_friendly_ref_for_offset.
9872         (propagate_subaccesses_across_link): Likewise.
9873         (ref_expr_for_all_replacements_p): Removed.
9874         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
9875         (sra_modify_expr): Use build_ref_for_model.
9876         (load_assign_lhs_subreplacements): Likewise.
9877         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
9878         checks for return values of build_ref_for_offset.
9879         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
9880         build_ref_for_offset.
9881         * ipa-prop.h: Include gimple.h
9882         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
9883         (ipa_analyze_indirect_call_uses): Update comment.
9884         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
9885         (IPA_PROP_H): Likewise.
9886
9887 2010-09-10  Martin Jambor  <mjambor@suse.cz>
9888
9889         PR tree-optimization/44972
9890         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
9891         calling build_ref_for_offset.
9892
9893 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9894
9895         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
9896         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
9897         * config/arm/arm-tune.md: Regenerate.
9898         * doc/invoke.texi (ARM Options): Document it.
9899
9900 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
9901
9902         * config/i386/i386.c: Include sched-int.h.
9903         (TARGET_SCHED_DISPATCH): Defined.
9904         (TARGET_SCHED_DISPATCH_DO): Defined.
9905         (DISPATCH_WINDOW_SIZE): Defined.
9906         (MAX_DISPATCH_WINDOWS): Defined.
9907         (MAX_INSN): Defined.
9908         (MAX_IMM): Defined.
9909         (MAX_IMM_SIZE): Defined.
9910         (MAX_IMM_32): Defined.
9911         (MAX_IMM_64): Defined.
9912         (MAX_LOAD): Defined.
9913         (MAX_STORE): Defined.
9914         (BIG): Defined.
9915         (dispatch_group): New.
9916         (num_allowable_groups): New.
9917         (group_name): New.
9918         (sched_insn_info_s): New.
9919         (dispatch_windows_s): New.
9920         (imm_info_s): New.
9921         (dispatch_window_list): New.
9922         (dispatch_window_list1): New.
9923         (get_mem_group): New.
9924         (is_cmp): New.
9925         (dispatch_violation): New.
9926         (is_branch): New.
9927         (is_prefetch): New.
9928         (init_window): New.
9929         (allocate_window): New.
9930         (init_dispatch_sched): New.
9931         (is_end_basic_block): New.
9932         (process_end_window): New.
9933         (allocate_next_window): New.
9934         (find_constant_1): New.
9935         (find_constant): New.
9936         (get_num_immediates): New.
9937         (has_immediate): New.
9938         (get_insn_path): New.
9939         (get_insn_group): New.
9940         (count_num_restricted): New.
9941         (fits_dispatch_window): New.
9942         (add_insn_window): New.
9943         (add_to_dispatch_window): New.
9944         (debug_dispatch_window_file): New.
9945         (debug_dispatch_window): New.
9946         (debug_insn_dispatch_info_file): New.
9947         (debug_ready_dispatch): New.
9948         (do_dispatch): New.
9949         (has_dispatch): New.
9950         * config/i386/i386.h (debug_ready_dispatch): Declared.
9951         (debug_dispatch_window): Declared.
9952         * config/i386/i386.opt (mdispatch-scheduler): New flag.
9953         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
9954         (TARGET_SCHED_DISPATCH_DO): New.
9955         * doc/tm.texi: Regererated.
9956         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
9957         ready_remove_first_dispatch
9958         (schedule_block): Call targetm.sched.dispatch and
9959         targetm.sched.dispatch_do.
9960         (sched_init): Call targetm.sched.dispatch and
9961         targetm.sched.dispatch_do.
9962         (ready_remove_first_dispatch): New.
9963         (number_in_ready): New.
9964         (get_ready_element): New.
9965         * hooks.c (hook_bool_rtx_int_false): New.
9966         (hook_void_rtx_int): New.
9967         * hooks.h (hook_bool_rtx_int_false): Declared.
9968         (hook_void_rtx_int): Declared.
9969         * sched-int.h (IS_DISPATCH_ON): Defined.
9970         (IS_CMP): Defined.
9971         (DISPATCH_VIOLATION): Defined.
9972         (FITS_DISPATCH_WINDOW): Defined.
9973         (DISPATCH_INIT): Defined.
9974         (ADD_TO_DISPATCH_WINDOW): Defined.
9975         (get_ready_element): Declared.
9976         (number_in_ready): Declared.
9977         * target.def (dispatch): Defined.
9978         (dispatch_do): Defined.
9979
9980 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
9981
9982         PR middle-end/45312
9983         * reload1.c (merge_assigned_reloads): Remove.
9984         (reload_as_needed): Don't call it.
9985
9986 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
9987
9988         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
9989         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9990         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9991
9992 2010-09-09  Matthias Klose  <doko@ubuntu.com>
9993
9994         PR bootstrap/43847
9995         * configure.ac (--enable-plugin): Enhance for cross builds.
9996         * configure: Regenerate.
9997
9998 2010-09-09  Jan Hubicka  <jh@suse.cz>
9999
10000         PR tree-optimization/45598
10001         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
10002         string folding is of integral type.
10003
10004 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
10005
10006         * configure.ac (gnu_indirect_function): New test.
10007         * configure: Rebuilt.
10008         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
10009         * defaults.h (IFUNC_ASM_TYPE): Provide default.
10010
10011         * doc/extend.texi (Function Attributes): Document ifunc.
10012         * varasm.c (do_assemble_alias): Deal with ifuncs too.
10013
10014 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
10015
10016         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
10017         epilogue instruction move.
10018
10019 2010-09-09  Jan Hubicka  <jh@suse.cz>
10020
10021         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
10022         command line to allow more partitions than input files.
10023
10024 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
10025
10026         PR middle-end/44554
10027         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
10028
10029 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
10030
10031         PR middle-end/40386
10032         * ira.c (pseudo_for_reload_consideration_p): Don't use
10033         flag_ira_share_spill_slots.
10034
10035 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10036
10037         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
10038         point zero operands that fit into a single GPR.
10039         (s390_preferred_reload_class): Ensure we only return general-purpose
10040         register classes.
10041         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
10042         floating-point zero operands into GPRs.
10043         ("*mov<mode>_64"): Likewise.
10044         ("mov<mode>"): Likewise using lhi.
10045
10046 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10047
10048         * config/s390/s390.c (s390_symref_operand_p): Return false for
10049         literal pool references.
10050         (s390_check_qrst_address): Update caller.
10051
10052 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
10053
10054         * config/i386/predicates.md (ext_register_operand): Check that
10055         SUBREG_REG is really a register before looking for REGNO.
10056         (reg_not_xmm0_operand): Handle SUBREGs correctly.
10057         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
10058
10059 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
10060
10061         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
10062         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
10063         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
10064         * print-rtl.c (print_rtx): Likewise.
10065         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10066         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
10067         for ADDR_EXPR with non-addressable object.
10068         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
10069         (struct dw_val_struct): Add v.val_decl_ref.
10070         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
10071         Handle DW_OP_GNU_implicit_pointer.
10072         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
10073         (get_ref_die_offset_label): New function.
10074         (implicit_ptr_descriptor): New function.
10075         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
10076         (loc_descriptor): Likewise.
10077         (gen_variable_die): Put even definitions into decl_die_table.
10078         (resolve_addr_in_expr): Resolve still unresolved
10079         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
10080         return false.
10081         (dwarf2out_finish): Call output_location_lists after outputting
10082         .debug_info and .debug_abbrev instead of before.
10083
10084 2010-09-09  Roland McGrath  <roland@redhat.com>
10085
10086         * dwarf2out.c (DWARF_REF_SIZE): Define.
10087         (size_of_loc_descr): Use it for DW_OP_call_ref.
10088
10089 2010-09-09  Alan Modra  <amodra@gmail.com>
10090
10091         * doc/invoke.text: Reinstate mcmodel=medium.
10092         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10093         CMODEL_MEDIUM as default.
10094         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
10095         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
10096         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
10097         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
10098
10099 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10100
10101         PR target/45250
10102         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
10103         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
10104         (builtin_longjmp): Likewise.
10105         (allocate_stack): Use hard_frame_pointer_rtx instead of
10106         frame_pointer_rtx.
10107         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
10108         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
10109         (pa_can_eliminate): Likewise.
10110         (TARGET_INTERNAL_ARG_POINTER): Define.
10111         (TARGET_CAN_ELIMINATE): Define.
10112         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
10113         pointer.
10114         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
10115         (pa_internal_arg_pointer, pa_can_eliminate,
10116         pa_initial_elimination_offset): New.
10117         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
10118         (HARD_FRAME_POINTER_REGNUM): Set to register three.
10119         (INITIAL_FRAME_POINTER_OFFSET): Delete.
10120         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
10121         Define.
10122         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
10123         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
10124         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
10125         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
10126         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
10127         new soft frame pointer.
10128         * config/pa/pa64-regs.h: Likewise.
10129
10130 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
10131
10132         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
10133         numerical constant.
10134         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
10135
10136 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
10137
10138         PR debug/45531
10139         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
10140
10141 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
10142
10143         PR debug/45419
10144         PR debug/45408
10145         * tree-pretty-print.c (dump_generic_node): Disregard top-level
10146         qualifiers in otherwise equal MEM_REF pointer types.
10147         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
10148         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
10149
10150 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10151
10152         PR target/44392
10153         * config/arm/arm.md (bswapsi2): Handle condition correctly
10154         for armv6 and optimize_size.
10155
10156 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10157
10158         PR other/18555
10159         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
10160
10161 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
10162
10163         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
10164         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
10165         ix86_expand_strlen, legitimate_pic_address_disp_p,
10166         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
10167         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
10168         ix86_check_movabs, ix86_secondary_memory_needed): Change function
10169         prototype to bool.
10170         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
10171         return_in_memory_ms_64, ix86_check_movabs,
10172         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
10173         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
10174         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
10175         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
10176         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
10177         ix86_secondary_memory_needed): Change to bool.  Return
10178         "true" and "false" values.
10179         * config/i386/i386.md: Return "true" and "false" values.
10180
10181 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10182
10183         * doc/sourcebuild.texi (Effective-Target Keywords): Document
10184         run_expensive_tests.
10185
10186 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10187
10188         * toplev.c (output_stack_usage): Use lbasename instead of basename.
10189
10190 2010-09-08  Martin Jambor  <mjambor@suse.cz>
10191
10192         PR other/45443
10193         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
10194         at -O3.
10195
10196 2010-09-08  Richard Guenther  <rguenther@suse.de>
10197
10198         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
10199         (visit): Adjust.
10200         (iterative_hash_gimple_type): Likewise.
10201         (gimple_type_hash): Likewise.
10202         (gimple_register_type): Likewise.
10203         (print_gimple_types_stats): Likewise.
10204         (free_gimple_type_tables): Likewise.
10205
10206 2010-09-08  Michael Matz  <matz@suse.de>
10207
10208         PR tree-optimization/43430
10209         * tree-vect-stmts.c (vectorizable_condition): Support multiple
10210         copies for conditional statements if it's not part of a reduction.
10211
10212 2010-09-08  Michael Matz  <matz@suse.de>
10213
10214         PR tree-optimization/33244
10215         * tree-ssa-sink.c (statement_sink_location): Don't sink into
10216         empty loop latches.
10217
10218 2010-09-08  Richard Guenther  <rguenther@suse.de>
10219
10220         PR tree-optimization/45578
10221         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
10222         Be more careful when transfering alignment information to
10223         the new induction variable.
10224         (copy_ref_info): Likewise.
10225
10226 2010-09-08  Richard Guenther  <rguenther@suse.de>
10227
10228         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
10229         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
10230
10231 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
10232
10233         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
10234         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
10235
10236 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
10237
10238         PR doc/45587
10239         * doc/md.texi: Fixed modes on several standard pattern names.
10240
10241 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
10242
10243         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
10244         (ashl<mode>3): ...this.
10245         (loongson_psra<V_suffix>): Rename to...
10246         (ashr<mode>3): ...this.
10247         (loongson_psrl<V_suffix>): Rename to...
10248         (lshr<mode>3): ...this.
10249         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
10250         (CODE_FOR_loongson_psllw): Define.
10251         (CODE_FOR_loongson_psrlh): Define.
10252         (CODE_FOR_loongson_psrlw): Define.
10253         (CODE_FOR_loongson_psrah): Define.
10254         (CODE_FOR_loongson_psraw): Define.
10255
10256 2010-09-07  Richard Henderson  <rth@redhat.com>
10257
10258         * tree-vect-data-refs.c: Include tm_p.h.
10259         * Makefile.in (tree-vect-data-refs.o): Update deps.
10260         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
10261         Move delarations outside #ifdef RTX_CODE.
10262
10263 2010-09-07  Richard Henderson  <rth@redhat.com>
10264
10265         * final.c (rest_of_handle_final): Unconditionally do
10266         output_function_exception_table before assemble_end_function.
10267
10268 2010-09-07  Jan Hubicka  <jh@suse.cz>
10269
10270         * tree-inline.c (tree_inlinable_function_p): Do not test
10271         DECL_REPLACEABLE_P.
10272         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
10273         update_callee_keys, cgraph_decide_inlining): Test function availability.
10274         * cif-code.def (OVERWRITABLE): New code.
10275
10276 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
10277             Jack Howarth  <howarth@bromo.med.uc.edu>
10278
10279         PR target/36502
10280         PR target/42313
10281         PR target/44651
10282         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
10283         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
10284         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
10285         MAX macro.
10286
10287 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
10288
10289         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
10290         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
10291
10292 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
10293
10294         * config.gcc: Don't append t-android for Android targets.
10295
10296         * config/t-android: Removed.
10297
10298 2010-09-07  Richard Henderson  <rth@redhat.com>
10299
10300         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
10301         * doc/tm.texi.in: Add doc marker.
10302         * doc/tm.texi: Rebuild.
10303         * except.c (switch_to_exception_section): Always build.
10304         (output_one_function_exception_table): Move section switch,
10305         personality output, and label output ...
10306         (output_function_exception_table): ... here.  Use the new
10307         personality hook.
10308
10309         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
10310         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
10311         TARGET_ASM_INIT_SECTIONS): New.
10312         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
10313         make static.
10314         (TARGET_ASM_UNWIND_EMIT): Update to match.
10315         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
10316
10317         * config/arm/arm.c (arm_asm_emit_except_personality): New.
10318         (arm_asm_init_sections): New.
10319         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
10320
10321 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10322
10323         * config/arm/arm.md: Remove unused variable.
10324
10325 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
10326
10327         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10328         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
10329         (m32r_memory_move_cost): New function.
10330
10331 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
10332
10333         * config.gcc: Append t-android for Android targets.
10334
10335         * config/t-android: New.
10336
10337 2010-09-07  Richard Henderson  <rth@redhat.com>
10338
10339         * target.def (unwind_emit_before_insn): New hook.
10340         * doc/tm.texi.in: Add @hook marker for it.
10341         * doc/tm.texi: Rebuild.
10342         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
10343
10344 2010-09-07  Martin Jambor  <mjambor@suse.cz>
10345
10346         PR fortran/43665
10347         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
10348         are any type attributes.
10349
10350 2010-09-07  Jan Hubicka  <jh@suse.cz>
10351
10352         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
10353         array_ref_low_bound in string access folding.
10354
10355 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
10356
10357         PR target/45206
10358         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
10359         eh_return fixup sequence.
10360
10361 2010-09-07  Jan Hubicka  <jh@suse.cz>
10362
10363         * gimple-fold.c (maybe_fold_reference): Verify that operand is
10364         gimple_min_invariant.
10365
10366 2010-09-07  Richard Guenther  <rguenther@suse.de>
10367
10368         PR middle-end/45569
10369         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
10370         nor CONSTRUCTOR can trap.
10371         * tree-complex.c (update_complex_assignment): Update EH info.
10372
10373 2010-09-07  Richard Guenther  <rguenther@suse.de>
10374
10375         PR middle-end/45569
10376         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
10377         * passes.c (execute_function_todo): Do not verify anything if
10378         we saw errors.
10379
10380 2010-09-07  Richard Guenther  <rguenther@suse.de>
10381
10382         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
10383
10384 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
10385
10386         PR target/43137
10387         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
10388         New define_mode_attrs.
10389         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
10390         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
10391         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
10392         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
10393         Remove pool_range attribute.
10394         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
10395         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
10396         pool_range and neg_pool_range attributes.
10397         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
10398         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
10399         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
10400
10401 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10402
10403         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
10404         check glibc.
10405
10406 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
10407
10408         PR target/22152
10409         * config/i386/mmx.md (*mov<mode>_internal_rex64,
10410         *mov<mode>_internal_avx, *mov<mode>_internal,
10411         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
10412         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
10413
10414 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
10415
10416         * c-typeck.c (do_warn_double_promotion): Remove.
10417         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
10418         Objective-C++ too.
10419
10420 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
10421
10422         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
10423         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
10424         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
10425         argument type to reg_class_t. Change result type to bool.
10426         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10427
10428 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
10429
10430         PR libobjc/19850
10431         * gthr-posix.h (__gthread_objc_thread_detach): Use
10432         _objc_thread_attribs when detaching a thread.
10433         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
10434
10435 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10436
10437         PR target/45524
10438         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
10439         * configure: Regenerated.
10440
10441 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10442
10443         * combine.c (try_combine): Set subst_low_luid to i0.
10444
10445 2010-09-06  Richard Guenther  <rguenther@suse.de>
10446
10447         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
10448         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
10449         (build_aligned_type): Declare.
10450         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
10451         (check_aligned_type): New function.
10452         (build_aligned_type): Likewise.
10453         * expr.c (expand_assignment): Handle misaligned stores via
10454         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
10455         (expand_expr_real_1): Likewise.
10456         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
10457         * tree-vect-stmts.c (vectorizable_store): Do not build
10458         MISALIGNED_INDIRECT_REF but initialize alignment information.
10459         (vectorizable_load): Likewise.
10460         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
10461         handling.
10462         * cfgexpand.c (expand_debug_expr): Likewise.
10463         * dwarf2out.c (loc_list_from_tree): Likewise.
10464         * fold-const.c (maybe_lvalue_p): Likewise.
10465         (operand_equal_p): Likewise.
10466         (build_fold_addr_expr_with_type_loc): Likewise.
10467         * gimplify.c (gimplify_addr_expr): Likewise.
10468         (gimplify_expr): Likewise.
10469         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
10470         (verify_gimple_assign_single): Likewise.
10471         * tree-dump.c (dequeue_and_dump): Likewise.
10472         (tree_could_trap_p): Likewise.
10473         * tree-predcom.c (ref_at_iteration): Likewise.
10474         * tree-pretty-print.c (dump_generic_node): Likewise.
10475         (op_code_prio): Likewise.
10476         (op_symbol_code): Likewise.
10477         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10478         * tree-ssa-loop-im.c (for_each_index): Likewise.
10479         (gen_lsm_tmp_name): Likewise.
10480         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
10481         (find_interesting_uses_address): Likewise.
10482         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
10483         * tree-ssa-operands.c (get_expr_operands): Likewise.
10484         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10485         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10486         (ao_ref_init_from_vn_reference): Likewise.
10487         * tree.c (staticp): Likewise.
10488         (build1_stat): Likewise.
10489         (reference_alias_ptr_type): Likewise.
10490         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10491         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
10492         MISALIGNED_INDIRECT_REF handling.
10493
10494 2010-09-06  Richard Guenther  <rguenther@suse.de>
10495
10496         PR tree-optimization/45534
10497         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
10498         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
10499         on the target.
10500         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
10501         valid on the target.
10502
10503 2010-09-06  Andreas Schwab  <schwab@redhat.com>
10504
10505         * configure.ac: Quote argument of AC_MSG_WARN.
10506         * configure: Regenerate.
10507
10508 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
10509
10510         * sel-sched.c (move_cond_jump): Correct arguments to
10511         maybe_tidy_empty_bb.
10512         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
10513
10514 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
10515
10516         PR rtl-optimization/44919
10517         * sel-sched.c (move_cond_jump): Remove assert, check that
10518         the several blocks case can only happen with mutually exclusive
10519         insns instead.  Rewrite the movement code to support moving through
10520         several basic blocks.
10521
10522 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
10523
10524         * config/i386/i386.md (iptrsize): New mode attribute.
10525         (tp_seg): Ditto.
10526         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
10527         mode iterator.
10528         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
10529         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
10530         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
10531         (stack_tls_protect_set_<mode>): Ditto from
10532         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
10533         of thread base pointer load.
10534         (stack_tls_protect_test_<mode>): Ditto from
10535         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
10536         of thread base pointer load.
10537         (stack_protect_set): Rewrite using indirect functions.
10538         (stack_protect_test): Ditto.
10539         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
10540         (ix86_print_operand): Handle '@'.
10541
10542 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
10543
10544         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
10545         MINUS_EXPR.
10546
10547 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
10548
10549         * doc/invoke.texi: Document -Wdouble-promotion.
10550         * c-typeck.c (convert_arguments): Check for implicit conversions
10551         from float to double.
10552         (do_warn_double_promotion): New function.
10553         (build_conditional_expr): Use it.
10554         (build_binary_op): Likewise.
10555
10556 2010-09-05  Richard Guenther  <rguenther@suse.de>
10557
10558         PR tree-optimization/45535
10559         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
10560         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
10561         dereferencing it.
10562         (indirect_refs_may_alias_p): Likewise.
10563
10564 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
10565
10566         * config/sh/sh.c (sh_option_override): Make static.
10567         Adjust comments.  Declare.
10568         (sh_function_value_regno_p): Likewise.
10569         (sh_register_move_cost): Modify the arguments, make static.
10570         Adjust comments.  Declare.
10571         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
10572         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10573         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
10574         REGISTER_MOVE_COST): Delete.
10575         * config/sh/sh-protos.h (sh_override_options): Delete.
10576         (sh_register_move_cost): Delete.
10577         (sh_function_value_regno_p): Delete.
10578
10579 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
10580
10581         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
10582         m32r_function_value_regno_p): New functions.
10583         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10584         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
10585         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
10586         FUNCTION_VALUE_REGNO_P): Remove.
10587
10588 2010-09-04  Jan Hubicka  <jh@suse.cz>
10589
10590         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
10591         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
10592         fold_read_from_constant_string.
10593
10594         * gimple.h (canonicalize_constructor_val): Declare.
10595         * gimple-fold.c (canonicalize_constructor_val): New function.
10596         (get_symbol_constant_value):Use it.
10597         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
10598
10599 2010-09-04  Jan Hubicka  <jh@suse.cz>
10600
10601         * tree-switch-conversion.c (build_one_array): Set constructor to be
10602         static.
10603         * varpool.c (varpool_finalize_decl): Compute const_value_known.
10604
10605 2010-09-04  Richard Guenther  <rguenther@suse.de>
10606
10607         PR bootstrap/45519
10608         * tree-flow.h (force_gimple_operand_1): Declare.
10609         (force_gimple_operand_gsi_1): Likewise.
10610         * gimplify.c (force_gimple_operand_1): New worker taking a
10611         gimple predicate for ...
10612         (force_gimple_operand): ... which now wraps it.
10613         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
10614         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
10615         last change.
10616         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
10617         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
10618         (create_mem_ref): Likewise.
10619
10620 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
10621
10622         * config/i386/predicates.md (sse_reg_operand): New predicate.
10623         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
10624         predicate for operand 1.
10625         (XFmode push splitter): Use fp_register_operand predicate
10626         for operand 1.
10627         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
10628         (SF-DF float_extend push splitter): Add reload_completed insn
10629         predicate.
10630         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
10631         MODEF mode macro.  Add reload_completed insn predicate.
10632
10633 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
10634
10635         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
10636         (struct df_extract_ref): Remove.
10637         (union df_ref_d): Remove extract_ref member.
10638         (df_ref_create): Remove last three arguments.
10639         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
10640         * df-scan.c (df_ref_record): Remove last three arguments, do not
10641         pass them to df_ref_create_structure.
10642         (df_uses_record): Remove first and last three arguments.  Replace
10643         first argument with DF_REF_REGULAR, adjust calls to remove the
10644         width, offset and mode.  Always call recursively on the second
10645         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
10646         (df_ref_create_structure): Remove first argument.
10647         (struct df_scan_problem_data): Remove ref_extract_pool.
10648         (df_scan_free_internal): Do not free it.
10649         (df_scan_alloc): Do not allocate it.
10650         (df_ref_create): Remove last three arguments, do not pass them to
10651         df_ref_create_structure.
10652         (df_free_ref): Remove DF_REF_EXTRACT case.
10653         (df_notes_rescan): Adjust call to df_uses_record.
10654         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
10655         Remove DF_REF_EXTRACT case.
10656         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
10657         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
10658         and SUBREG definitions.
10659         (df_get_conditional_uses): Remove references to width/offset/mode,
10660         adjust call to df_ref_create_structure.
10661         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
10662         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
10663         calls to df_uses_record and df_ref_record.
10664         * fwprop.c (update_df): Remove references to width/offset/mode,
10665         adjust call to df_ref_create.
10666
10667 2010-09-03  Jan Hubicka  <jh@suse.cz>
10668
10669         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
10670         (build_cdtor_fns): Update use of build_cdtor.
10671
10672 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
10673
10674         * doc/options.texi (SeparateAlias): Document.
10675         * opt-functions.awk (switch_flags): Handle SeparateAlias.
10676         * opth-gen.awk: Generate enumeration names for options marked
10677         SeparateAlias, but not for those marked Ignore.
10678         * opts-common.c (generate_canonical_option): Don't output separate
10679         argument for options marked CL_SEPARATE_ALIAS.
10680         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
10681         * opts.h (CL_SEPARATE_ALIAS): New.
10682         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
10683         CL_COMMON): Adjust definitions.
10684         * config/i386/darwin.opt, config/mips/sde.opt: New.
10685         * common.opt (fdump-final-insns): New.
10686         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10687         i386/darwin.opt.
10688         (mips*-sde-elf*): Add mips/sde.opt.
10689         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
10690         -mno-data-in-code and -mcode-xonly here.
10691         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
10692         * gcc.c (option_map): Add "j" to --dump entry.
10693         (translate_options): Don't translate -d to -foutput-class-dir= here.
10694
10695 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
10696
10697         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
10698         DR_IS_WRITE.
10699         (compute_all_dependences): Same.
10700         (create_rdg_edge_for_ddr): Same.
10701         * tree-data-ref.h (DR_IS_WRITE): New.
10702         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
10703         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
10704         (write_memrefs_written_at_least_once): Same.
10705         * tree-predcom.c (suitable_component_p): Same.
10706         (determine_roots_comp): Same.
10707         (execute_load_motion): Same.
10708         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
10709         (vect_enhance_data_refs_alignment): Same.
10710         (vect_analyze_group_access): Same.
10711
10712 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
10713
10714         PR testsuite/42843
10715         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
10716         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
10717
10718 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
10719
10720         * dwarf2out.c (file scope): Remove #if0'd code.
10721         (gen_subprogram_die): Same.
10722
10723 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
10724
10725         PR middle-end/45484
10726         * dwarf2out.c (flush_queued_reg_saves): Rename to...
10727         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
10728         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
10729         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
10730         * config/i386/i386.c (output_set_got): Call it.
10731
10732 2010-09-03  Michael Matz  <matz@suse.de>
10733
10734         PR middle-end/45415
10735         * tree-sra.c (sra_modify_assign): If we modify the statement,
10736         say so.
10737
10738         * tree-ssa.c (verify_ssa): Check number of operands and links
10739         per statement to agree.
10740
10741 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
10742             Iain Sandoe  <iains@gcc.gnu.org>
10743
10744         PR target/45476
10745         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
10746         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
10747         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
10748
10749 2010-09-03  Richard Guenther  <rguenther@suse.de>
10750
10751         * lto-streamer-out.c (output_function): Output function
10752         start and end loci.
10753         * lto-streamer-in.c (input_function): Input function start
10754         and end loci.
10755
10756 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10757
10758         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
10759         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
10760         * configure: Regenerate.
10761         * aclocal.m4: Regenerate.
10762
10763 2010-09-03  Jan Hubicka  <jh@suse.cz>
10764
10765         PR lto/44812
10766         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
10767         on functions/variables in other partition.
10768
10769 2010-09-03  Jan Hubicka  <jh@suse.cz>
10770
10771         * cgraph.h (struct varpool_node): Add const_value_known.
10772         (varpool_decide_const_value_known): Declare.
10773         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
10774         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
10775         (input_varpool_node): Restore const_value_known.
10776         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
10777         initializer folding.
10778         * ipa.c (ipa_discover_readonly_nonaddressable_var,
10779         function_and_variable_visibility): Compute const_value_known.
10780         * gimple-fold.c (get_symbol_constant_value): Use varpool for
10781         initializer folding.
10782         * varpool.c (varpool_decide_const_value_known): New function.
10783
10784 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
10785
10786         * config/i386/i386.md: Remove empty preparation statements
10787         from splitters.
10788
10789 2010-09-03  Jan Hubicka  <jh@suse.cz>
10790
10791         * passes.c (rest_of_decl_compilation): Do not add local vars into
10792         varpool.
10793         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
10794         static or extern vars are in varpool.
10795         (varpool_finalize_decl): Sanity check that only static vars are
10796         finalized.
10797
10798 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
10799
10800         PR debug/45500
10801         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
10802         not just generic vectors with BLKmode.
10803
10804 2010-09-03  Richard Guenther  <rguenther@suse.de>
10805
10806         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
10807         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
10808         * tree.h (TMR_SYMBOL): Remove.
10809         (TMR_BASE, TMR_OFFSET): Adjust.
10810         (TMR_INDEX2): New.
10811         * alias.c (ao_ref_from_mem): Use TMR_BASE.
10812         * builtins.c (get_object_alignment): Merge TMR_BASE and
10813         TMR_SYMBOL handling.
10814         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
10815         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
10816         handling.  Also allow TARGET_MEM_REF as base address.
10817         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
10818         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
10819         base.  Gimplify TMR_INDEX2.
10820         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
10821         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10822         (get_addr_base_and_unit_offset): Likewise.
10823         * tree-eh.c (tree_could_trap_p): Likewise.
10824         * tree-pretty-print.c (dump_generic_node): Likewise.
10825         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
10826         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
10827         base to index2.
10828         (get_address_description): Reconstruct addres description
10829         from merged TMR_BASE and TMR_INDEX2.
10830         (maybe_fold_tmr): Fold propagated addresses.
10831         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
10832         MEM_REF and TARGET_MEM_REF paths.
10833         (indirect_refs_may_alias_p): Likewise.
10834         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
10835         instead of TMR_SYMBOL.
10836         * tree-ssa-operands.c (get_tmr_operands): Simplify.
10837         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
10838         according to changes ...
10839         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
10840         Split TARGET_MEM_REF into two fields plus the base.
10841         * tree.c (mem_ref_offset): Simplify.
10842         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
10843         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
10844         Strip NOPs when folding MEM_REF addresses.
10845         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
10846         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
10847         (fold_gimple_assign): ... not here.
10848
10849 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
10850
10851         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
10852         * config/mips/mips.c (mips_shift_truncation_mask): New function.
10853         (TARGET_SHIFT_TRUNCATION_MASK): Define.
10854
10855 2010-09-02  Richard Henderson  <rth@redhat.com>
10856
10857         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
10858         instead of readelf in the test.
10859         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
10860         in the .debug_frame section for coff targets.
10861         * configure: Rebuild.
10862
10863 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
10864
10865         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
10866         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
10867         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10868         (m32c_class_likely_spilled_p): Make static. Change argument type to
10869         reg_class_t. Change result type to bool.
10870
10871 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10872
10873         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
10874         to convert (double)(long) into a single FRIZ instruction or not
10875         when -ffast-math is used.
10876
10877         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
10878         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
10879         or FRIZ instruction if -ffast-math.
10880         * config/rs6000/rs6000.md (friz): Ditto.
10881
10882         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
10883
10884 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
10885
10886         * opth-gen.awk (quote, comma): Remove unused variables.
10887
10888 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
10889
10890         * arm.c (arm_override_options): Correct fall-back code to use
10891         SUBTARGET_CPU_DEFAULT.
10892
10893 2010-09-02  Julian Brown  <julian@codesourcery.com>
10894
10895         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
10896         unspecs.
10897         (vcond<mode>, vcondu<mode>): New expanders.
10898         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
10899         comparisons with zero.
10900         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
10901         * config/arm/constraints.md (Dz): New constraint.
10902
10903 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
10904
10905         * target.def (class_likely_spilled_p): New hook.
10906         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
10907         * doc/tm.texi: Regenerate.
10908         * targhooks.c (default_class_likely_spilled_p): New function.
10909         * targhooks.h (default_class_likely_spilled_p): Declare.
10910         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
10911         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
10912         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
10913         Use fixed_reg_set instead of fixed_regs.
10914         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
10915         * calls.c (avoid_likely_spilled_reg): Ditto.
10916         * ira-conflicts.c (ira_build_conflicts): Ditto.
10917         * ira.c (update_equiv_regs): Ditto.
10918         * mode-switching.c (create_pre_exit): Ditto.
10919         * regmove.c (find_matches): Ditto.
10920         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
10921         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
10922         (small_register_class_p): New inline function.
10923         (push_secondary_reload, find_reusable_reload, find_reloads): Use
10924         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
10925
10926         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
10927         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
10928         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10929
10930 2010-09-02  Richard Guenther  <rguenther@suse.de>
10931
10932         PR tree-optimization/44937
10933         PR tree-optimization/45412
10934         * ipa-split.c (split_function): Properly remove PHI nodes.
10935
10936 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
10937
10938         * opts.h (struct cl_option): Add warn_message field.
10939         (struct cl_decoded_option): Add warn_message field.
10940         * doc/options.texi (Ignore, Warn): Document.
10941         * opt-functions.awk (needs_state_p): Don't consider aliases or
10942         ignored options to need state saved.
10943         * optc-gen.awk: Handle Warn and Ignore.
10944         * opth-gen.awk: Output OPT_SPECIAL_ignore.
10945         * opts-common.c (decode_cmdline_option): Set warn_message field.
10946         Handle ignored options.
10947         (decode_cmdline_options_to_array, generate_option,
10948         generate_option_input_file): Set warn_message field.
10949         (read_cmdline_option): Generate warnings from warn_message field.
10950         Handle ignored options.
10951         * common.opt (Wunreachable-code, fargument-alias,
10952         fargument-noalias, fargument-noalias-global,
10953         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
10954         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
10955         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
10956         ftree-salias): Mark Ignore.
10957         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
10958         -mintel-syntax and -mno-intel-syntax here.
10959         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
10960         using Warn.
10961         * opts.c (common_handle_option): Don't handle options marked as
10962         ignored.
10963         (enable_warning_as_error): Handle ignored options.
10964
10965 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
10966
10967         PR driver/44076
10968         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
10969         alias_target fields.
10970         * opt-functions.awk (opt_sanitized_name): Don't handle
10971         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
10972         * optc-gen.awk: Generate alias fields.
10973         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
10974         Don't generate such constants for aliases.
10975         * opts-common.c (generate_canonical_option): New.
10976         (decode_cmdline_option): Handle aliases.  Use
10977         generate_canonical_option for known options instead of copying the
10978         input option text.
10979         * doc/options.texi (Alias): Document.
10980         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
10981         fstack-check, specs): Mark as aliases.
10982         * gcc.c (driver_handle_option): Canonicalize -L options to joined
10983         arguments.
10984         (driver_handle_option): Don't handle OPT_specs.
10985         * opts.c (common_handle_option): Don't handle options marked as
10986         aliases.
10987         (enable_warning_as_error): Handle aliases.
10988         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
10989         OPT_Wlarger_than_eq.
10990         * tree-optimize.c (tree_rest_of_compilation): Use
10991         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
10992
10993 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
10994
10995         * config/i386/i386.md (nonmemory_operand): New mode attribute.
10996         (push memory peephole2): Macroize peepholes using SWI mode iterator.
10997         (move immediate to memory peephole2): Macroize peepholes using
10998         SWI124 mode iterator.
10999         (non-pairable NOT peephole2): Macroize peepholes using SWI124
11000         mode iterator.
11001         (simple lea add peephole2): Macroize peepholes using SWI48
11002         mode iterator.
11003         (simple lea mult peephole2): Ditto.
11004         (imul by 3,5,9 to lea peephole2): Ditto.
11005         (mov $-1, reg peephole2): Macroize peepholes using SWI248
11006         mode iterator.
11007         (imul $32bit_imm,mem,reg peephole2): Ditto.
11008         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
11009
11010 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
11011
11012         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
11013
11014 2010-09-02  Olivier Hainque  <hainque@adacore.com>
11015
11016         PR middle-end/44763
11017         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
11018         (allocno_priority_compare_func): Use it instead of a straight
11019         difference computation over priorities.
11020
11021 2010-09-02  Andi Kleen  <ak@linux.intel.com>
11022
11023         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
11024
11025 2010-09-02  Ira Rosen  <irar@il.ibm.com>
11026
11027         * tree-vectorizer.h (get_later_stmt): New function.
11028         (vect_analyze_data_ref_dependences): Add argument.
11029         * tree-vect-loop.c (vect_analyze_loop): Update call to
11030         vect_analyze_data_ref_dependences.
11031         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
11032         New function.
11033         (vect_analyze_data_ref_dependence): Add argument for basic block
11034         dependencies. Check dependencies in basic block vectorization.
11035         (vect_analyze_data_ref_dependences): Add argument and update call to
11036         vect_analyze_data_ref_dependences.
11037         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
11038         (vect_bb_vectorizable_with_dependencies): New.
11039         (vect_slp_analyze_bb): Check dependencies in basic block.
11040         (vect_schedule_slp_instance): Insert stores before the last store in
11041         SLP instance.
11042
11043 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
11044
11045         PR target/45476
11046         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
11047         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
11048
11049 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
11050
11051         PR middle-end/45458
11052         * bb-reorder.c (add_labels_and_missing_jumps): Treat
11053         bbs ending with throwing insns like blocks ending with a call.
11054         (fix_up_fall_thru_edges): Likewise.
11055
11056 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
11057
11058         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
11059         (m32c_function_arg_advance): Delete.
11060         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11061         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
11062         comments.  Take a const_tree and a bool.  Declare.
11063         (m32c_function_arg_advance): Likewise.
11064         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11065
11066 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
11067
11068         PR target/45476
11069         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
11070         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
11071         * config/i386/mingw32.h: ... here.
11072
11073 2010-09-01  Andi Kleen  <ak@linux.intel.com>
11074
11075         PR lto/45475
11076         * lto-streamer-in.c (lto_input_ts_target_option): Add.
11077         (lto_input_tree_pointers): Call lto_input_ts_target_option.
11078         * lto-streamer-out (lto_output_ts_target_option): Add.
11079         (lto_output_tree_pointers): Call lto_output_ts_target_option.
11080
11081 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
11082
11083         PR/target 45452
11084         * config/i386/cygwin.h: Change order of specified import libraries.
11085         * config/i386/mingw32.h: Likewise.
11086         * config/i386/t-cygwin: Likewise.
11087         * config/i386/t-mingw32: Likewise.
11088         * config/i386/t-mingw-w32: Likewise.
11089         * config/i386/t-mingw-w64: Likewise.
11090
11091 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11092
11093         * config/arm/neon-schedgen.ml (core): New type.
11094         (allCores): List of supported cores.
11095         (availability_table): Add supported cores.
11096         (collate_bypasses): Accept core as a parameter.
11097         (worst_case_latencies_and_bypasses): Accept core as a parameter.
11098         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
11099         and coreStr to get tune attribute and prefix for functional units.
11100         (emit_bypasses): Accept core name and use it.
11101         (calculate_per_core_availability_table): New.
11102         (filter_core): New.
11103         (calculate_core_availability_table): New.
11104         (main): Use calculate_core_availablity_table.
11105         * config/arm/cortex-a8-neon.md: Update copyright year.
11106         Regenerated from ml file and merged in.
11107         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
11108         cortex_a8_neon_mrc.
11109
11110 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
11111
11112         * Makefile.in (tree-switch-conversion.o): Update dependencies.
11113
11114 2010-09-01  Richard Guenther  <rguenther@suse.de>
11115
11116         * alias.c (ao_ref_from_mem): Adjust.
11117         * builtins.c (get_object_alignment): Likewise.
11118         * cfgexpand.c (expand_debug_expr): Likewise.
11119         * gimple.c (get_base_address): Likewise.
11120         * tree-dfa.c (get_ref_base_and_extent): Likewise.
11121         (get_addr_base_and_unit_offset): Likewise.  Fix for
11122         both TMR_SYMBOL and TMR_BASE being set.
11123         * tree-eh.c (tree_could_trap_p): Likewise.
11124         * gimplify.c (gimplify_expr): Do not attempt to gimplify
11125         TMR_SYMBOL.  Always gimplify TMR_BASE.
11126         * tree-cfg.c (verify_types_in_gimple_reference): Verify
11127         TMR_BASE if there is a TMR_SYMBOL.
11128         * tree-pretty-print.c (dump_generic_node): Adjust.
11129         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
11130         (tree_mem_ref_addr): Likewise.
11131         (create_mem_ref_raw): Likewise.
11132         (move_fixed_address_to_symbol): Likewise.
11133         (create_mem_ref): Likewise.
11134         (dump_mem_address): Likewise.
11135         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
11136         Fix for both TMR_SYMBOL and TMR_BASE being set.
11137         (indirect_refs_may_alias_p): Likewise.
11138         * tree-ssa-operands.c (get_tmr_operands): Adjust.
11139         * tree.def (TARGET_MEM_REF): Adjust documentation.
11140
11141 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
11142
11143         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
11144         Rename from X86_TUNE_ADD_ESP_4.
11145         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
11146         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
11147         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
11148         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
11149         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
11150         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
11151         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
11152         * config/i386/i386.c (initial_ix86_tune_features)
11153         <X86_TUNE_SINGLE_POP>: Invert members.
11154         <X86_TUNE_DOUBLE_POP>: Ditto.
11155         <X86_TUNE_SINGLE_PUSH>: Ditto.
11156         <X86_TUNE_DOUBLE_PUSH>: Ditto.
11157         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
11158         No longer exported.
11159         (push peephole2 patterns): Macroize peepholes using P mode iterator.
11160         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
11161         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
11162         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
11163
11164 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
11165
11166         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
11167         a volatile LHS if the constructor has only one element.
11168
11169 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
11170
11171         PR bootstrap/45321
11172         * tree.c (stdarg_p): Make fntype parameter const.
11173         * tree.h (stdarg_p): Likewise.
11174         (function_args_iterator): Remove unused fntype field.
11175         (function_args_iter_init): Do not initialize fntype
11176         field.  Make fntype parameter const.
11177
11178 2010-09-01  Richard Guenther  <rguenther@suse.de>
11179
11180         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
11181         estimate.
11182         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
11183         (execute_vrp): Compute number of iteration estimates.
11184         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
11185         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
11186         * tree-data-ref.c (estimated_loop_iterations): Adjust.
11187         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
11188         Infer loop bounds from undefined behavior based on a new parameter.
11189         (estimate_numbers_of_iterations): Likewise.
11190         (scev_probably_wraps_p): Adjust.
11191         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
11192
11193 2010-09-01  Nick Clifton  <nickc@redhat.com>
11194
11195         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
11196         where appropriate.
11197         (xstormy16_legitimate_address_p): Use true and false instead of 1
11198         and 0.
11199         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
11200         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
11201         magic constant 2.
11202         (xstormy16_expand_call): Fix comment at start of function.
11203
11204 2010-09-01  Nick Clifton  <nickc@redhat.com>
11205
11206         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
11207         when pushing accumulator register.
11208         (rx_get_stack_layout): Always save call clobbered registers inside
11209         interrupt handlers.
11210         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
11211
11212 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
11213
11214         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
11215         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
11216
11217         * libgcc-std.ver (GCC_4.6.0): Define version.
11218
11219 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
11220
11221         * tree-nested.c (convert_all_function_calls): Iterate until after the
11222         sum of static chains in the nest doesn't change.
11223
11224 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
11225
11226         * config/m32c/m32c.c (classes_intersect): Remove.
11227         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
11228         reg_classes_intersect_p instead of classes_intersect.
11229         (class_can_hold_mode): Change arguments type from enum reg_class to
11230         reg_class_t.  Use reg_class_contents instead of class_contents.
11231         (m32c_register_move_cost): Make static. Change arguments type from
11232         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
11233         classes_intersect. Use reg_class_contents instead of class_contents.
11234         (m32c_memory_move_cost): Make static. Change arguments type from
11235         enum reg_class to reg_class_t.
11236         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11237         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11238         * config/m32c/m32c-protos.h (m32c_register_move_cost,
11239         m32c_memory_move_cost): Remove.
11240
11241 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
11242
11243         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
11244         (arm_function_arg): Delete.
11245         (arm_needs_doubleword_align): Take a const_tree.
11246         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11247         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
11248         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
11249         (arm_function_arg): Make static.  Take a const_tree and a bool.
11250         (arm_function_arg_advance): Likewise.
11251         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11252
11253 2010-08-31  Andi Kleen  <ak@linux.intel.com>
11254
11255         * common.opt (fwhopr=): Update for -fwhopr=jobserver
11256         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
11257         * lto-wrapper.c (run_gcc): Add jobserver mode.
11258         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
11259         argument.
11260
11261 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
11262
11263         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
11264         (popsi1): Ditto.
11265         (*popdi1_epilogue): Ditto.
11266         (*popsi1_epilogue): Ditto.
11267         (popsi, popdi peephole2 patterns): Update peepholes for changed
11268         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
11269
11270         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
11271         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
11272
11273         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
11274         (override_options): Do not initialize removed ix86_gen_pop1.
11275         (gen_pop): New static function.
11276         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
11277         (release_scratch_register_on_entry): Ditto.
11278         (ix86_restore_reg_using_pop): Ditto.
11279         (ix86_expand_epilogue): Ditto.
11280
11281 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
11282
11283         PR middle-end/45461
11284         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
11285
11286 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
11287
11288         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
11289         semicolons.
11290
11291 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11292
11293         * doc/extend.texi: Fix documentation of the return value of
11294         __builtin_choose_expr.
11295
11296 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
11297
11298         * config/v850/v850-protos.h (function_arg): Delete.
11299         * config/v850/v850.h (FUNCTION_ARG): Delete.
11300         (FUNCTION_ARG_ADVANCE): Move code to...
11301         * config/v850/v850.c (v850_function_arg_advance): ...here.
11302         (v850_function_arg): Make static.  Take a const_tree and a bool.
11303         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11304
11305 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
11306
11307         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
11308         these...
11309         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
11310         ...and these...
11311         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
11312         ..to here..
11313         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
11314         ...and here.
11315         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11316
11317 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
11318
11319         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
11320         Delete.
11321         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11322         * config/rx/rx.c (rx_function_arg_size): Make static.
11323         (rx_function_arg): Likewise.
11324         (rx_function_arg_advance): New function.
11325         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11326
11327 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
11328
11329         * config/arm/arm.c (arm_override_options): Remove superfluous test.
11330         Fix indentation.
11331
11332 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
11333
11334         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
11335         (dwarf2out_decl) <CONST_DECL>: Likewise.
11336
11337 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
11338
11339         Stack usage support
11340         * common.opt (-fstack-usage): New option.
11341         * doc/invoke.texi (Debugging options): Document it.
11342         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
11343         allocate_dynamic_stack_space.
11344         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
11345         and propagate it to allocate_dynamic_stack_space.
11346         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
11347         * calls.c (initialize_argument_information): Pass TRUE as 4th
11348         argument to allocate_dynamic_stack_space.
11349         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
11350         to 1 when pushing a variable-sized argument onto the stack.  Pass
11351         TRUE as 4th argument to allocate_dynamic_stack_space.
11352         Update current_function_pushed_stack_size.
11353         (emit_library_call_value_1): Likewise.
11354         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
11355         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
11356         attempt to find an upper bound.  Remove redundant code for the
11357         SETJMP_VIA_SAVE_AREA case.
11358         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
11359         * function.h (struct stack_usage): New structure.
11360         (current_function_static_stack_size): New macro.
11361         (current_function_dynamic_stack_size): Likewise.
11362         (current_function_pushed_stack_size): Likewise.
11363         (current_function_dynamic_alloc_count): Likewise.
11364         (current_function_has_unbounded_dynamic_stack_size): Likewise.
11365         (current_function_allocates_dynamic_stack_space): Likewise.
11366         (struct function): Add new field 'su'.
11367         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
11368         add the value of the dynamic offset to the dynamic stack usage.
11369         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
11370         for variable-sized objects.
11371         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
11372         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
11373         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
11374         BUILT_IN_ALLOCA for variable-sized objects.
11375         * output.h (output_stack_usage): Declare.
11376         * toplev.c (stack_usage_file): New file pointer.
11377         (output_stack_usage): New function.
11378         (open_auxiliary_file): Likewise.
11379         (lang_dependent_init): Open file if flag_stack_usage is set.
11380         (finalize): Close file if stack_usage_file is not null.
11381         * tree.h (ALLOCA_FOR_VAR_P): New macro.
11382         * config/alpha/alpha.c (compute_frame_size): New function.
11383         (alpha_expand_prologue): Use it.
11384         (alpha_start_function): Likewise.
11385         (alpha_expand_epilogue): Likewise.  Set stack usage info.
11386         * config/i386/i386.c (ix86_expand_prologue): Likewise.
11387         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
11388         * config/mips/mips.c (mips_expand_prologue): Likewise.
11389         * config/pa/pa.c (hppa_expand_prologue): Likewise.
11390         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
11391         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
11392
11393 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
11394
11395         PR tree-optimization/45427
11396         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
11397         Handle the case that the exit is never taken correctly.
11398         (number_of_iterations_ne): Pass exit_must_be_taken to
11399         number_of_iterations_ne_max.
11400
11401 2010-08-30  Catherine Moore  <clm@codesourcery.com>
11402
11403         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
11404         Infer -mdspr2 for the the 74K.
11405
11406 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
11407
11408         PR debug/45419
11409         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
11410
11411         PR middle-end/45423
11412         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
11413         and TRUTH_{AND,OR,XOR}_EXPR.
11414         * c-parser.c (c_parser_omp_atomic): Handle boolean
11415         {PRE,POST}_{INC,DEC}REMENT.
11416
11417 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
11418
11419         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
11420         (function_arg): Delete.
11421         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11422         (FUNCTION_INCOMING_ARG): Delete.
11423         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
11424         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
11425         and a bool.
11426         (function_arg): Rename to...
11427         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
11428         a bool.
11429         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
11430         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11431         (TARGET_FUNCTION_INCOMING_ARG): Define.
11432
11433 2010-08-30  Richard Guenther  <rguenther@suse.de>
11434
11435         PR tree-optimization/21602
11436         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
11437         using points-to information.
11438
11439 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
11440
11441         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
11442
11443 2010-08-30  Richard Guenther  <rguenther@suse.de>
11444
11445         PR tree-optimization/45449
11446         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
11447         variables.
11448
11449 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
11450
11451         * opts.h (CL_ERR_NEGATIVE): Define.
11452         * opts.c (unknown_option_callback): Don't postpone warnings for
11453         options marked with CL_ERR_NEGATIVE.
11454         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
11455         for negative versions of CL_REJECT_NEGATIVE options.
11456
11457 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
11458
11459         * config/i386/i386.md (zero_extendsidi2_1): Rename from
11460         zero_extendsidi2_32.
11461         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
11462         using SWI12 mode iterator.
11463         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
11464         to define_insn_and_split pattern.
11465         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
11466         using SWI24 mode iterator.
11467         (*zero_extendqi<mode>2_and): Macroize insn from
11468         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
11469         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
11470         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
11471         SWI24 mode iterator.
11472         (*zero_extendqi<mode>2_movzbl): Ditto from
11473         *zero_extendqi{hi,si}2_movzbl.
11474         (extendsidi2_1): Rename from extendsidi2_32.
11475         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
11476         SWI12 mode iterator.
11477
11478 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
11479
11480         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
11481         general purpose registers.
11482         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
11483         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
11484         with general purpose registers and memory operands.  Add associated
11485         CCImode post-reload splitter.
11486         * config/ia64/div.md: Change BImode to CCImode throughout.
11487
11488 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
11489
11490         * config/ia64/ia64.md (cstorebi4): Fix thinko.
11491
11492 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
11493
11494         * config/picochip/picochip.c (reorder_var_tracking_notes): This
11495         function was dropping debug insns which caused PR45299.
11496
11497 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
11498
11499         * config/i386/sse.md (extsuffix): New code attribute.
11500         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
11501         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
11502         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
11503         and sse4_1_zero_extendv4qiv4si2.
11504         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
11505         and sse4_1_zero_extendv2qiv2di2.
11506         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
11507         and sse4_1_zero_extendv4hiv4si2.
11508         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
11509         and sse4_1_zero_extendv2hiv2di2.
11510         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
11511         and sse4_1_zero_extendv2siv2di2
11512
11513         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
11514         using any_extend code iterator.
11515         (*avx_<s>mulv8hi3_highpart): Macroize insn from
11516         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
11517         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
11518
11519         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
11520         gen_sse4_1_sign_extend* functions.
11521         (struct builtin_description bdesc_args): Ditto.
11522
11523 2010-08-27  Xinliang David Li  <davidxl@google.com>
11524
11525         PR/45422
11526         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
11527         (iv_ca_set_no_cp): Update used inv expr count.
11528         (iv_ca_set_cp): Ditto.
11529         (iv_ca_new): Initialize new member.
11530         (iv_ca_free): Free memory.
11531
11532 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
11533
11534         * config/sh/sh-protos.h (sh_function_arg): Delete.
11535         (sh_function_arg_advance): Delete.
11536         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11537         (PASS_IN_REG_P): Eliminate cast.
11538         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
11539         const_tree and a bool.
11540         (sh_function_arg): Likewise.
11541         (sh_output_mi_thunk): Call sh_function_arg_advance) and
11542         sh_function_arg.
11543         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11544
11545 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
11546             Kaz Kojima  <kkojima@gcc.gnu.org>
11547
11548         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
11549         when possible.
11550         (sh_expand_epilogue): Likewise.
11551         * config/sh/sh.md (movml_push_banked): New insn.
11552         (movml_pop_banked): Likewise.
11553
11554 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
11555
11556         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
11557         gen_regexp_oneof, gen_regexp_sequence): Use the string found
11558         in vector element 0 rather than the original string when there's
11559         only one element.
11560         (gen_regexp): Remove extra semicolon.
11561
11562         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
11563         thumb2_movsf_vfp): Set attribute "insn".
11564         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
11565         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
11566         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
11567         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
11568         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
11569         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
11570         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
11571         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
11572         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
11573         if_not_arith, if_arith_not, cond_move_not): Likewise.
11574
11575 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11576
11577         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
11578         New declaration.
11579         (rs6000_allocate_stack_temp): Ditto.
11580         (rs6000_expand_convert_si_to_sfdf): Ditto.
11581
11582         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
11583         line.  Update the options set if power6 or power7 server/embedded
11584         type options are used.  If we give a warning for no vsx under
11585         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
11586         (rs6000_allocate_stack_temp): New function to allocate a stack
11587         tempoary and adjust the address so it meets either REG+OFFSET or
11588         REG+REG addressing requirements.
11589         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
11590         that they can be used with the LFIWAX/LFIWZX instrucitons.
11591         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
11592         converting signed/unsigned SImode to either SFmode/DFmode.
11593
11594         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
11595         whether certain instructions can be generated.
11596         (TARGET_FCTIDZ): Ditto.
11597         (TARGET_STFIWX): Ditto.
11598         (TARGET_LFIWAX): Ditto.
11599         (TARGET_LFIWZX): Ditto.
11600         (TARGET_FCFIDS): Ditto.
11601         (TARGET_FCFIDU): Ditto.
11602         (TARGET_FCFIDUS): Ditto.
11603         (TARGET_FCTIDUZ): Ditto.
11604         (TARGET_FCTIWUZ): Ditto.
11605
11606         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
11607         (UNSPEC_FCTID): Ditto.
11608         (UNSPEC_LFIWAX): Ditto.
11609         (UNSPEC_LFIWZX): Ditto.
11610         (UNSPEC_FCTIWUZ): Ditto.
11611         (rreg): Use correct constraints.
11612         (SI_CONVERT_FP): New mode attribute for floating point conversion
11613         tests.
11614         (E500_CONVERT): Ditto.
11615         (lfiwax): New insns for converting from integer to floating point
11616         utilizing newer instructions.  Attempt to optimize conversions
11617         that come from memory so that we don't load the value into a GPR,
11618         spill it to the stack and reload it into a FPR.
11619         (floatsi<mode>2_lfiwax): Ditto.
11620         (floatsi<mode>2_lfiwax_mem): Ditto.
11621         (floatsi<mode>2_lfiwax_mem2): Ditto.
11622         (lfiwzx): Ditto.
11623         (floatunssi<mode>2_lfiwzx): Ditto.
11624         (floatunssi<mode>2_lfiwzx_mem): Ditto.
11625         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
11626         (floatdidf2_mem): Ditto.
11627         (floatunsdidf2_fcfidu): Ditto.
11628         (floatunsdidf2_mem): Ditto.
11629         (floatunsdisf2): Ditto.
11630         (floatunsdisf2_fcfidus): Ditto.
11631         (floatunsdisf2_mem): Ditto.
11632         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
11633         Use FCFID on 32-bit hosts that support it.
11634         (floatsidf2_internal): Ditto.
11635         (floatunssisf2): Ditto.
11636         (floatunssidf2): Ditto.
11637         (floatunssidf2_internal): Ditto.
11638         (floatsisf2): Ditto.
11639         (floatdidf2): Ditto.
11640         (floatdidf2_fpr): Ditto.
11641         (floatunsdidf2): Ditto.
11642         (floatdisf2): Ditto.
11643         (floatdisf2_fcfids): Ditto.
11644         (floatdisf2_internal1): Ditto.
11645         (fixuns_truncsfsi2): Delete, merge into common pattern for both
11646         SF/DF.  Add power7 support.
11647         (fix_truncsfsi2): Ditto.
11648         (fixuns_truncdfsi2): Ditto.
11649         (fixuns_truncdfdi2): Ditto.
11650         (fix_truncdfsi2): Ditto.
11651         (fix_truncdfsi2_internal): Ditto.
11652         (fix_truncdfsi2_internal_gfxopt): Ditto.
11653         (fix_truncdfsi2_mfpgpr): Ditto.
11654         (fctiwz): Ditto.
11655         (btruncdf2): Ditto.
11656         (btruncdf2_fpr): Ditto.
11657         (btructsf2): Ditto.
11658         (ceildf2): Ditto.
11659         (ceildf2_fpr): Ditto.
11660         (ceilsf2): Ditto.
11661         (floordf2): Ditto.
11662         (floordf2_fpr): Ditto.
11663         (floorsf2): Ditto.
11664         (rounddf2): Ditto.
11665         (rounddf2_fpr): Ditto.
11666         (roundsf2): Ditto.
11667         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
11668         (fix_trunc<mode>di2): Ditto.
11669         (fixuns_trunc<mode>si2): Ditto.
11670         (fixuns_trunc<mode>di2): Ditto.
11671         (fctiwz_<mode>): Ditto.
11672         (btrunc<mode>2): Ditto.
11673         (btrunc<mode>2_fpr): Ditto.
11674         (ceil<mode>2): Ditto.
11675         (ceil<mode>2_fpr): Ditto.
11676         (floor<mode>2): Ditto.
11677         (float<mode>2_fpr): Ditto.
11678         (round<mode>2): Ditto.
11679         (round<mode>2_fpr): Ditto.
11680         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
11681         (fixuns_trunc<mode>si2_stfiwx): Ditto.
11682         (fix_truncdfsi2_internal): Ditto.
11683         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
11684         converted value on stack, loaded into GPR, and then stored into
11685         the final destination.
11686         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
11687         FCTIDZ.
11688         (lrint<mode>di2): New insn, provide the lrint builtin functions.
11689         (ftruncdf2): Delete, unused.
11690         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
11691
11692         * config/rs6000/vsx.md (toplevel): Update copyright year.
11693         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
11694         (VSr3): Ditto.
11695
11696 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
11697             Jeremie Salvucci  <jeremie.salvucci@free.fr>
11698
11699         * gengtype.c (output_type_enum): Test the right union member.
11700
11701 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
11702
11703         PR target/41484
11704         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
11705         operands for operand 1.
11706         (sse4_1_extendv4qiv4si2): Ditto.
11707         (sse4_1_extendv2qiv2di2): Ditto.
11708         (sse4_1_extendv4hiv4si2): Ditto.
11709         (sse4_1_extendv2hiv2di2): Ditto.
11710         (sse4_1_extendv2siv2di2): Ditto.
11711         (sse4_1_zero_extendv8qiv8hi2): Ditto.
11712         (sse4_1_zero_extendv4qiv4si2): Ditto.
11713         (sse4_1_zero_extendv2qiv2di2): Ditto.
11714         (sse4_1_zero_extendv4hiv4si2): Ditto.
11715         (sse4_1_zero_extendv2hiv2di2): Ditto.
11716         (sse4_1_zero_extendv2siv2di2): Ditto.
11717         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
11718         (*sse4_1_extendv4qiv4si2): Ditto.
11719         (*sse4_1_extendv2qiv2di2): Ditto.
11720         (*sse4_1_extendv4hiv4si2): Ditto.
11721         (*sse4_1_extendv2hiv2di2): Ditto.
11722         (*sse4_1_extendv2siv2di2): Ditto.
11723         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
11724         (*sse4_1_zero_extendv4qiv4si2): Ditto.
11725         (*sse4_1_zero_extendv2qiv2di2): Ditto.
11726         (*sse4_1_zero_extendv4hiv4si2): Ditto.
11727         (*sse4_1_zero_extendv2hiv2di2): Ditto.
11728         (*sse4_1_zero_extendv2siv2di2): Ditto.
11729
11730 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
11731
11732         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
11733         (mips_function_arg): Delete.
11734         (mips_function_arg_boundary): Take a const_tree.
11735         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
11736         (mips_arg_info): Likewise.
11737         (mips_setup_incoming_varargs): Call mips_function_arg_advance
11738         instead of FUNCTION_ARG_ADVANCE.
11739         (mips_function_arg_advance): Adjust prototype.  Make static.
11740         (mips_function_arg): Likewise.
11741         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11742         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
11743
11744 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
11745
11746         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11747         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
11748         (function_arg): Delete.
11749         (function_arg_boundary): Take a const_tree.
11750         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
11751         (rs6000_spe_function_arg): Likewise.
11752         (rs6000_parm_start): Likewise.
11753         (rs6000_arg_size): Likewise.
11754         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
11755         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
11756         (rs6000_mixed_function_arg): Likewise.
11757         (function_arg): Rename to...
11758         (rs6000_function_arg): ...this.
11759         (function_arg_advance): Rename to...
11760         (rs6000_function_arg_advance_1): ...this
11761         (rs6000_function_arg_advance): New function.  Call it.
11762         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
11763         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
11764         (rs6000_function_value): Likewise.
11765         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11766
11767 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11768
11769         * config/arm/arm.md (enabled): Test the value of arch_enabled
11770         rather than just using it.
11771
11772 2010-08-27  Olivier Hainque  <hainque@adacore.com>
11773             Eric Botcazou  <ebotcazou@adacore.com>
11774
11775         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
11776         cover all the possible offsets from this base.
11777         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
11778
11779 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
11780
11781         PR tree-optimization/44485
11782         * calls.c (flags_from_decl_or_type): For const or pure
11783         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
11784         together with ECF_CONST resp. ECF_PURE.
11785         * builtins.c (expand_builtin): Use flags_from_decl_or_type
11786         instead of querying flags directly.
11787         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
11788         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
11789
11790 2010-08-26  Richard Guenther  <rguenther@suse.de>
11791
11792         PR tree-optimization/45255
11793         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
11794         and externals are also invariant.
11795
11796 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
11797
11798         PR rtl-optimization/44858
11799         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
11800         newi2pat, make sure they don't affect newpat.
11801
11802         PR rtl-optimization/45400
11803         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
11804         SUBREG_REG if both modes are of MODE_INT class.
11805
11806 2010-08-25  Julian Brown  <julian@codesourcery.com>
11807
11808         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
11809         * config/arm/arm.md (generic_sched): No for Cortex-A5.
11810         (generic_vfp): Likewise.
11811         (cortex-a5.md): Include.
11812         * config/arm/cortex-a5.md: New.
11813
11814 2010-08-25  Richard Guenther  <rguenther@suse.de>
11815
11816         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
11817         * gimple.c (gimple_get_alias_set): Remove special handling
11818         for pointers.
11819
11820 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
11821
11822         PR middle-end/45355
11823         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
11824         dead_or_set_p when computing i0_feeds_i2_n.
11825
11826         * combine.c (find_split_point): Undo canonicalization of multiply-add
11827         to (minus x (mult)) when it seems likely that this will increase the
11828         chances of a split.
11829
11830 2010-08-25  Richard Guenther  <rguenther@suse.de>
11831
11832         PR lto/44562
11833         * lto-streamer.c (lto_record_common_node): Do not mess with
11834         TYPE_CANONICAL when not in lto.
11835         * gimple.c (gimple_register_type): Likewise.
11836
11837 2010-08-25  Richard Guenther  <rguenther@suse.de>
11838
11839         PR tree-optimization/45316
11840         * tree-ssa-pre.c (eliminate): Properly clean EH info.
11841
11842 2010-08-25  Richard Guenther  <rguenther@suse.de>
11843
11844         PR tree-optimization/45393
11845         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
11846         and clean EH info.  Avoid SSA update.
11847         (execute_cse_sincos): Cleanup the CFG if it has changed.
11848
11849 2010-08-25  Richard Guenther  <rguenther@suse.de>
11850
11851         PR middle-end/45379
11852         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
11853         TARGET_MEM_REF in alignment computation.
11854
11855 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
11856
11857         PR tree-optimization/45059
11858         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
11859         type conversions from newop{1,2}.  Assert t is a comparison and
11860         newop{1,2} after the stripping are gimple vals.
11861
11862 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
11863
11864         * config/arm/iterators.md (VU, SE, V_widen_l): New.
11865         (V_unpack, US): New.
11866         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
11867         (vec_unpack<US>_lo_<mode>): Likewise.
11868         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
11869         (neon_vec_unpack<US>_lo_<mode>): Likewise.
11870         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
11871         (vec_widen_<US>mult_hi_<mode>): Likewise.
11872         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
11873         (neon_vec_<US>mult_hi_<mode>"): Likewise.
11874         (neon_unpack<US>_<mode>): Widening move intermediate step for
11875         vectorizing without -mvectorize-with-neon-quad.
11876         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
11877         for vectorizing without -mvectorize-with-neon-quad.
11878         * config/arm/predicates.md (vect_par_constant_high): Check for
11879         high-half lanes of a vector.
11880         (vect_par_constant_low): Check for low-half lanes of a vector.
11881
11882 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
11883
11884         * tree-if-conv.c (struct ifc_dr): New.
11885         (IFC_DR): New.
11886         (DR_WRITTEN_AT_LEAST_ONCE): New.
11887         (DR_RW_UNCONDITIONALLY): New.
11888         (memref_read_or_written_unconditionally): Use the cached values
11889         when possible.
11890         (write_memref_written_at_least_once): Same.
11891         (if_convertible_loop_p): Initialize and free DR->aux fields.
11892
11893 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
11894
11895         * gimple.c (gimple_could_trap_p_1): Not static anymore.
11896         Pass an extra bool parameter include_mem.
11897         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
11898         (gimple_assign_rhs_could_trap_p): Same.
11899         * gimple.h (gimple_could_trap_p_1): Declared.
11900         * tree-data-ref.h (same_data_refs_base_objects): New.
11901         (same_data_refs): New.
11902         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
11903         (write_memrefs_written_at_least_once): New.
11904         (ifcvt_memrefs_wont_trap): New.
11905         (operations_could_trap): New.
11906         (ifcvt_could_trap_p): New.
11907         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
11908         Gets a vector of data refs.
11909         (if_convertible_stmt_p): Same.
11910         (if_convertible_loop_p_1): New.
11911         (if_convertible_loop_p): Call if_convertible_loop_p_1.
11912
11913 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
11914
11915         * common.opt (ftree-loop-if-convert-stores): New flag.
11916         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
11917         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
11918         the created statement before GSI.
11919         (if_convertible_phi_p): Allow virtual phi nodes when
11920         flag_loop_if_convert_stores is set.
11921         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
11922         Do not handle types that do not match is_gimple_reg_type.
11923         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
11924         when flag_loop_if_convert_stores is set, as LHS can contain
11925         memory refs.
11926         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
11927         to if_convertible_gimple_assign_stmt_p.
11928         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
11929         (replace_phi_with_cond_gimple_assign_stmt): Renamed
11930         predicate_scalar_phi.  Do not handle virtual phi nodes.
11931         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
11932         Call predicate_scalar_phi.
11933         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
11934         just after the labels for flag_loop_if_convert_stores, otherwise
11935         insert the predicate in the end of the BB.
11936         (predicate_mem_writes): New.
11937         (combine_blocks): Call predicate_all_scalar_phis.  When
11938         flag_loop_if_convert_stores is set, call predicate_mem_writes.
11939         (tree_if_conversion): Call mark_sym_for_renaming when
11940         flag_loop_if_convert_stores is set.
11941         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
11942         flag_loop_if_convert_stores is set.
11943
11944 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
11945
11946         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
11947         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
11948         (pa_function_value): Make static.
11949         (override_options): Rename to...
11950         (pa_option_override): ...this. Make static.
11951         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
11952         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
11953         TARGET_OPTION_OVERRIDE): Define.
11954         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
11955         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
11956         Remove.
11957         * config/pa/pa-protos.h (override_options): Remove.
11958
11959 2010-08-24  Richard Guenther  <rguenther@suse.de>
11960
11961         PR middle-end/45379
11962         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
11963         if addr->index is NULL or zero.
11964         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
11965         TARGET_MEM_REF more properly.
11966         (indirect_ref_may_alias_decl_p): Likewise.
11967         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
11968         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
11969
11970 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
11971
11972         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
11973         (m32c_override_options): Rename to...
11974         (m32c_option_override): ...this. Make static.
11975         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
11976         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
11977         Remove.
11978         * config/m32c/m32c-protos.h (m32c_override_options,
11979         m32c_function_value_regno_p): Remove.
11980
11981 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
11982
11983         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
11984         Fix a typo in a previous commit.
11985
11986 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
11987
11988         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
11989         Pre-initialize innerloop_iters to one.
11990
11991 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
11992
11993         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
11994         existing static function global.
11995
11996         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
11997         is changed to global.
11998
11999         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
12000         may_be_nonaddressable_p on base, and don't collect this reference
12001         if the address of the base could not be taken.
12002
12003 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12004
12005         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
12006         enable the compiler to autovectorize mathmetical functions for
12007         power7 using the Mathematical Acceleration Subsystem library.
12008
12009         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
12010         handle which vector math library we have.
12011         (rs6000_override_options): Add -mveclibabi=mass support.
12012         (rs6000_builtin_vectorized_libmass): New function to handle auto
12013         vectorizing math functions that are in the MASS library.
12014         (rs6000_builtin_vectorized_function): Call it.
12015
12016         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12017         -mveclibabi=mass.
12018
12019 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12020
12021         PR boehm-gc/34544
12022         * gthr-posix.h (__gthread_active_init): Delete.
12023         (__gthread_active_p): Do activity check here.
12024         Don't include errno.h on hppa-hpux.  Update comment.
12025         * gthr-posix95.h (__gthread_active_init): Delete.
12026         (__gthread_active_p): Do activity check here.
12027         Don't include errno.h on hppa-hpux.  Update comment.
12028         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
12029         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
12030         add -lpthread when -mt or -pthread is specified.
12031         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
12032         (LINK_GCC_C_SEQUENCE_SPEC): Define.
12033         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
12034         (stublib.c, pthread_default_stacksize_np-stub.o,
12035         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
12036         $(T)libgcc_stub.a): Add methods.
12037         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
12038         (stublib.c, pthread_default_stacksize_np-stub.o,
12039         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
12040         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12041         pthread_mutex_unlock): New stubs.
12042
12043 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
12044
12045         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
12046         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
12047         options.
12048         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
12049         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
12050         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
12051         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
12052         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
12053         "-l".
12054         * cppspec.c: Include opts.h.
12055         (lang_specific_driver): Use cl_decoded_option structures.
12056         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
12057         * doc/tm.texi: Regenerate.
12058         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
12059         (driver_handle_option): Allow driver options needing no special
12060         processing.
12061         (process_command): Decode options before call to
12062         lang_specific_driver.  Pass decoded options to
12063         lang_specific_driver.
12064         * gcc.h (lang_specific_driver): Update prototype.
12065         * gccspec.c: Include opts.h.
12066         (lang_specific_driver): Use cl_decoded_option structures.
12067         * opts-common.c (option_ok_for_language, generate_option,
12068         generate_option_input_file): New.
12069         (decode_cmdline_option): Use option_ok_for_language.
12070         (decode_cmdline_options_to_array): Use generate_option_input_file.
12071         (handle_generated_option): Use generate_option.
12072         * opts.h (generate_option, generate_option_input_file): Declare.
12073
12074 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
12075
12076         * config/mips/mips.c (mips_override_options): Rename to...
12077         (mips_option_override): ...this. Make static.
12078         (TARGET_OPTION_OVERRIDE): Define.
12079         (mips_in_small_data_p): Update comment.
12080         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
12081         (FIXED_REGISTERS): Update comment.
12082         * config/mips/mips-protos.h (mips_override_options): Remove.
12083
12084 2010-08-21  Olivier Hainque  <hainque@adacore.com>
12085
12086         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
12087
12088 2010-08-21  Olivier Hainque  <hainque@adacore.com>
12089
12090         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
12091         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
12092
12093 2010-08-20  Jan Hubicka  <jh@suse.cz>
12094
12095         * tree-pass.h (pass_ipa_cdtor_merge): New function.
12096         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
12097         heap allocated.
12098         (record_cdtor_fn): Move to ipa.c; do not test for
12099         have_ctors_dtors.
12100         (build_cdtor): Move to ipa.c; add code avoiding construction
12101         when target have ctors/dtors and there is only one ctor/dtor at given
12102         priority.
12103         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
12104         sort; reverse order of constructors.
12105         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
12106         (cgraph_finalize_function): Do not call record_cdtor_fn.
12107         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
12108         (cgraph_build_static_cdtor): Move to ipa.c.
12109         * ipa.c: Include target.h and tree-iterator.h.
12110         (cgraph_build_static_cdtor, static_ctors, static_dtors,
12111         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
12112         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
12113         pass_ipa_cdtor_merge): New.
12114         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
12115         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
12116         bounds access.
12117
12118 2010-08-20  Jan Hubicka  <jh@suse.cz>
12119
12120         PR c++/45307
12121         PR c++/17736
12122         * cgraph.h (cgraph_only_called_directly_p,
12123         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
12124         static cdtors.
12125         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
12126         are not needed.
12127         (cgraph_finalize_function): Static cdtors are reachable.
12128         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
12129
12130 2010-08-20  Jan Hubicka  <jh@suse.cz>
12131
12132         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
12133         flag_wpa.
12134         * lto-streamer-out.c (lto_output): Likewise.
12135         * passes.c (ipa_write_optimization_summaries): Initialize statement
12136         uids.
12137
12138 2010-08-20  Olivier Hainque  <hainque@adacore.com>
12139
12140         * tree.h (alias_diag_flags): New enum.
12141         (alias_pair): Add an 'emitted_diags' field.
12142         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
12143         (assemble_alias): Initialize emitted_diags of new pairs.
12144
12145 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
12146
12147         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12148         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12149         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12150         (STACK_CHECK_PROTECT): Define.
12151         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
12152         (output_probe_stack_range): Likewise.
12153         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
12154         builtin stack checking is enabled.
12155         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
12156         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12157         (probe_stack_range): New insn.
12158
12159 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12160
12161         PR target/45336
12162         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
12163         short first.
12164
12165         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
12166         char first.
12167
12168 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
12169
12170         PR target/45336
12171         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
12172         to cover zero extension into 64-bit register.
12173         (*sse2_pextrw): Likewise.
12174         (*sse4_1_pextrd_zext): New insn.
12175
12176 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
12177
12178         revert r163410, partially revert r163267.
12179         * config/rs6000/darwin.h (LIB_SPEC): Remove.
12180         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
12181         Darwin versions.
12182
12183 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
12184
12185         PR middle-end/44974
12186         * builtins.c (expand_builtin): Don't optimize away
12187         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
12188
12189 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
12190
12191         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
12192         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
12193         alternative 1 of operand 2.
12194
12195 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
12196             Paolo Bonzini  <bonzini@gnu.org>
12197
12198         * simplify-rtx.c (simplify_unary_operation_1): Optimize
12199         (sign_extend (zero_extend (...)) and
12200         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
12201
12202 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
12203
12204         PR rtl-optimization/45353
12205         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
12206         after bb_note is a BARRIER.
12207
12208 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
12209
12210         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
12211         linking libgcc.a.
12212
12213 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
12214             Michael Matz  <matz@suse.de>
12215
12216         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
12217
12218 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
12219
12220         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
12221         (ggc_mark_roots): ...here.
12222
12223 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
12224
12225         * vec.h (FOR_EACH_VEC_ELT): Define.
12226         * c-decl.c: Use it.
12227         * cfgloop.c: Likewise.
12228         * cfgloopmanip.c: Likewise.
12229         * cgraph.c: Likewise.
12230         * cgraphunit.c: Likewise.
12231         * combine.c: Likewise.
12232         * config/bfin/bfin.c: Likewise.
12233         * config/mips/mips.c: Likewise.
12234         * config/rs6000/rs6000.c: Likewise.
12235         * dbxout.c: Likewise.
12236         * df-scan.c: Likewise.
12237         * dominance.c: Likewise.
12238         * dse.c: Likewise.
12239         * dwarf2out.c: Likewise.
12240         * except.c: Likewise.
12241         * expr.c: Likewise.
12242         * function.c: Likewise.
12243         * gcse.c: Likewise.
12244         * genattr.c: Likewise.
12245         * ggc-common.c: Likewise.
12246         * gimplify.c: Likewise.
12247         * graphite-blocking.c: Likewise.
12248         * graphite-clast-to-gimple.c: Likewise.
12249         * graphite-dependences.c: Likewise.
12250         * graphite-interchange.c: Likewise.
12251         * graphite-poly.c: Likewise.
12252         * graphite-scop-detection.c: Likewise.
12253         * graphite-sese-to-poly.c: Likewise.
12254         * graphite.c: Likewise.
12255         * haifa-sched.c: Likewise.
12256         * ifcvt.c: Likewise.
12257         * implicit-zee.c: Likewise.
12258         * ipa-prop.c: Likewise.
12259         * ipa-struct-reorg.c: Likewise.
12260         * ipa.c: Likewise.
12261         * ira-build.c: Likewise.
12262         * ira-color.c: Likewise.
12263         * ira-emit.c: Likewise.
12264         * lambda-code.c: Likewise.
12265         * loop-invariant.c: Likewise.
12266         * loop-unroll.c: Likewise.
12267         * lower-subreg.c: Likewise.
12268         * lto-cgraph.c: Likewise.
12269         * lto-opts.c: Likewise.
12270         * lto-streamer-in.c: Likewise.
12271         * lto-streamer-out.c: Likewise.
12272         * lto-streamer.c: Likewise.
12273         * lto-symtab.c: Likewise.
12274         * matrix-reorg.c: Likewise.
12275         * opts.c: Likewise.
12276         * predict.c: Likewise.
12277         * print-tree.c: Likewise.
12278         * sdbout.c: Likewise.
12279         * sel-sched-dump.c: Likewise.
12280         * sel-sched-ir.c: Likewise.
12281         * sel-sched.c: Likewise.
12282         * sese.c: Likewise.
12283         * stor-layout.c: Likewise.
12284         * tree-cfg.c: Likewise.
12285         * tree-cfgcleanup.c: Likewise.
12286         * tree-chrec.c: Likewise.
12287         * tree-data-ref.c: Likewise.
12288         * tree-emutls.c: Likewise.
12289         * tree-inline.c: Likewise.
12290         * tree-into-ssa.c: Likewise.
12291         * tree-loop-distribution.c: Likewise.
12292         * tree-loop-linear.c: Likewise.
12293         * tree-mudflap.c: Likewise.
12294         * tree-outof-ssa.c: Likewise.
12295         * tree-parloops.c: Likewise.
12296         * tree-predcom.c: Likewise.
12297         * tree-pretty-print.c: Likewise.
12298         * tree-scalar-evolution.c: Likewise.
12299         * tree-ssa-live.c: Likewise.
12300         * tree-ssa-loop-im.c: Likewise.
12301         * tree-ssa-loop-ivcanon.c: Likewise.
12302         * tree-ssa-loop-ivopts.c: Likewise.
12303         * tree-ssa-loop-manip.c: Likewise.
12304         * tree-ssa-loop-niter.c: Likewise.
12305         * tree-ssa-loop-prefetch.c: Likewise.
12306         * tree-ssa-phiprop.c: Likewise.
12307         * tree-ssa-pre.c: Likewise.
12308         * tree-ssa-reassoc.c: Likewise.
12309         * tree-ssa-sccvn.c: Likewise.
12310         * tree-ssa-structalias.c: Likewise.
12311         * tree-ssa.c: Likewise.
12312         * tree-vect-data-refs.c: Likewise.
12313         * tree-vect-loop-manip.c: Likewise.
12314         * tree-vect-loop.c: Likewise.
12315         * tree-vect-patterns.c: Likewise.
12316         * tree-vect-slp.c: Likewise.
12317         * tree-vect-stmts.c: Likewise.
12318         * tree-vrp.c: Likewise.
12319         * tree.c: Likewise.
12320         * value-prof.c: Likewise.
12321         * var-tracking.c: Likewise.
12322         * varasm.c: Likewise.
12323         * vmsdbgout.c: Likewise.
12324
12325 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
12326             Richard Guenther  <richard.guenther@gmail.com>
12327
12328         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
12329         copy the src value and return a copy.
12330         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
12331         (C++ Volatiles): Adjust to describe C++ semantics only.
12332
12333 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
12334
12335         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
12336         be zero or nonzero.
12337         * doc/tm.texi: Regenerate.
12338         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
12339         * df-scan.c (df_get_exit_block_use_set), reginfo.c
12340         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
12341         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
12342         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
12343         to 1.
12344
12345 2010-08-20  Olivier Hainque  <hainque@adacore.com>
12346
12347         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
12348         an extra nop past a sibling call at the very end.
12349
12350 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
12351
12352         PR bootstrap/45350
12353         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
12354         a comment.
12355
12356 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
12357
12358         * target.def (function_arg, function_incoming_arg): Remove const
12359         qualifier on CUMULATIVE_ARGS parameter.
12360         * targhooks.h (default_function_arg, default_function_incoming_arg):
12361         Likewise.
12362         * targhooks.c (default_function_arg, default_function_incoming_arg):
12363         Likewise.
12364         * config/i386/i386.c (ix86_function_arg): Likewise.
12365
12366 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
12367
12368         PR target/45336
12369         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
12370         SIGN_EXTENDs or ZERO_EXTENDs.
12371
12372 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
12373
12374         PR target/42172
12375         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
12376         Take its cost into account if nonnull.
12377         (insn_a_feeds_b): New static function.
12378         (combine_instructions): Look for four-insn combinations.
12379         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
12380         them into account when computing all_adjacent and looking for other
12381         uses.
12382         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
12383         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
12384         (try_combine): New arg I0.  Handle four-insn combinations.
12385         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
12386         like ELIM_I1.
12387
12388 2010-08-19  Jason Merrill  <jason@redhat.com>
12389
12390         PR c++/45307
12391         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
12392         if ctor is empty.
12393         (gimplify_modify_expr_rhs): Adjust.
12394
12395 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
12396
12397         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
12398         bitmap_bit_p.
12399         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
12400         * dominance.c (iterate_fix_dominators): Likewise.
12401         * dse.c (set_usage_bits): Likewise.
12402         (set_position_unneeded, record_store): Likewise.
12403         * gimple-fold.c (get_maxval_strlen): Likewise.
12404         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
12405         * ipa-inline.c (update_caller_keys): Likewise.
12406         * ipa-split.c (verify_non_ssa_vars): Likewise.
12407         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
12408         (close_type_exposed_parameter, close_type_full_escape): Likewise.
12409         (close_addressof_down): Likewise.
12410         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
12411         (setup_allocno_left_conflicts_size): Likewise.
12412         (ira_reassign_conflict_allocnos): Likewise.
12413         (ira_reassign_pseudos): Likewise.
12414         * ira-emit.c (change_loop): Likewise.
12415         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
12416         * lto-streamer-out.c (write_symbol): Likewise.
12417         * predict.c (expr_expected_value_1): Likewise.
12418         * regstat.c (regstat_bb_compute_ri): Likewise.
12419         * sel-sched.c (create_block_for_bookkeeping): Likewise.
12420         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
12421         * stmt.c (expand_case): Likewise.
12422         * tree-eh.c (emit_eh_dispatch): Likewise.
12423         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
12424         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
12425         Likewise.
12426         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
12427         (rdg_build_components): Likewise.
12428         * tree-object-size.c (collect_object_sizes_for): Likewise.
12429         * tree-sra.c (convert_callers): Likewise.
12430         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
12431         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
12432         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
12433
12434 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
12435
12436         * config/i386/i386.md (*lea_1): Use P mode iterator.
12437         (lea add splitter): Also handle DImode operands.
12438         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
12439         predicate.  Do not use ix86_lea_for_add_ok.
12440         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
12441         (lea ashift splitter): Also handle DImode operands.
12442         (DImode lea ashift splitter): Remove splitter.
12443
12444 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
12445
12446         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
12447         ix86_binary_operator_ok.
12448
12449 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
12450
12451         PR rtl-optimization/44691
12452         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
12453         is not a register.
12454
12455 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
12456
12457         PR target/45070
12458         * config/arm/arm.c (arm_output_epilogue): Ensure that return
12459          value of size 1-3 is handled correctly.
12460
12461 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
12462
12463         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
12464         type for the conditional has wide enough range.
12465
12466 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
12467
12468         PR target/45327
12469         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
12470         ix86_binary_operator_ok.
12471
12472 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
12473
12474         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
12475         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
12476         code to output insn mnemonic.  Fix comment.
12477         (*addsi_1_zext): Add r-r-0 alternative 1.
12478         <TYPE_LEA>: Split insn to lea.
12479         <default>: Handle alternative 1.
12480         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
12481         multi-level if_then_else RTX to set "type" attribute.
12482         <default>: Handle alternative 2.
12483         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
12484         Use cond RTX instead of multi-level if_then_else RTX to set
12485         "type" attribute.
12486         <default>: Handle alternatives 2 and 4.
12487         (lea splitters): Update calls to ix86_lea_for_add_ok.
12488
12489         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
12490         argument.
12491         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
12492
12493 2010-08-18  Richard Guenther  <rguenther@suse.de>
12494
12495         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
12496         use operand helpers.
12497
12498 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
12499
12500         PR middle-end/45292
12501         * optabs.c (expand_bool_compare_and_swap): Expand pending
12502         pops before trying the optab.
12503
12504 2010-08-18  Yao Qi  <yao@codesourcery.com>
12505
12506         PR target/45094
12507         * config/arm/arm.c (output_move_double): Fix typo generating
12508         instructions ('ldr'->'str').
12509
12510 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
12511
12512         PR rtl-optimization/42575
12513         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
12514         live ranges.
12515
12516 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12517
12518         * config/arm/arm-protos.h (arm_expand_sync): New.
12519         (arm_output_memory_barrier, arm_output_sync_insn): New.
12520         (arm_sync_loop_insns): New.
12521         * config/arm/arm.c (FL_ARCH7): New.
12522         (FL_FOR_ARCH7): Include FL_ARCH7.
12523         (arm_arch7): New.
12524         (arm_print_operand): Support %C markup.
12525         (arm_legitimize_sync_memory): New.
12526         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
12527         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
12528         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
12529         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
12530         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
12531         (arm_process_output_sync_insn, arm_output_sync_insn): New.
12532         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
12533         * config/arm/arm.h (struct arm_sync_generator): New.
12534         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
12535         (TARGET_HAVE_MEMORY_BARRIER): New.
12536         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
12537         * config/arm/arm.md: Include sync.md.
12538         (UNSPEC_MEMORY_BARRIER): New.
12539         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
12540         (VUNSPEC_SYNC_OP):New.
12541         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
12542         (sync_result, sync_memory, sync_required_value): New attributes.
12543         (sync_new_value, sync_t1, sync_t2): Likewise.
12544         (sync_release_barrier, sync_op): Likewise.
12545         (length): Add logic to length attribute defintion to call
12546         arm_sync_loop_insns when appropriate.
12547         * config/arm/sync.md: New file.
12548
12549 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
12550
12551         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
12552         ENABLE_TREE_CHECKING.
12553         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
12554         and GCC >= 4.3.
12555
12556 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
12557
12558         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
12559         or optimizing for size, always avoid lea if possible.
12560
12561         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
12562
12563 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
12564
12565         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
12566         Dunmmy function with NULL return unless the target is
12567         OSX >= 10.6 (Darwin10).
12568
12569 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
12570
12571         * gcc.c (spec_function): Add remove-outfile.
12572         (remove_outfile_spec_function): New function.
12573         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
12574         * invoke.texi (replace-outfile): Document.
12575
12576 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
12577
12578         PR target/45296
12579         * reginfo.c (globalize_reg): Reject stack registers.
12580
12581 2010-08-17  Richard Guenther  <rguenther@suse.de>
12582
12583         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
12584         list of conditional equivalences.
12585         (free_all_edge_infos): Adjust.
12586         (record_equivalences_from_incoming_edge): Likewise.
12587         (record_cond): Likewise.
12588         (build_and_record_new_cond): Likewise.
12589         (record_conditions): Likewise.
12590         (dom_opt_leave_block): Likewise.
12591
12592 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
12593
12594         * doc/invoke.texi (ms-extension): Add documentation.
12595
12596 2010-08-17  Richard Guenther  <rguenther@suse.de>
12597
12598         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
12599
12600 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
12601
12602         PR c/40563
12603         * c-decl.c (diagnose_uninitialized_cst_member): New function.
12604         (finish_decl): Use it to issue a -Wc++-compat warning about
12605         uninitialized const field in struct or union.
12606
12607         (finish_struct): Use strip_array_types.
12608
12609 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
12610
12611         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
12612         functions.
12613         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
12614         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
12615         call block_nreverse here.
12616         (blocks_nreverse): Rename decl temporary to block.
12617
12618 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
12619
12620         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
12621         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
12622         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
12623         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
12624         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
12625         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
12626         thumb2_iorsi3): Delete.
12627         (orsi_notsi_si): No longer a named pattern.
12628         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
12629         * config/arm/predicates.md (shift_amount_operand): New.
12630         (mult_operator): New.
12631         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
12632         attr enabled): New.
12633         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
12634         arch matches t2.
12635         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
12636         (not_shiftsi_compare0): Likewise, renamed from
12637         arm_notsi_shiftsi_compare0.
12638         (not_shiftsi_compare0_scratch): Likweise, renamed from
12639         arm_notsi_shiftsi_compare0_scratch.
12640         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
12641         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
12642         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
12643         so that the register alternative is disabled when the shift_operator
12644         is MULT.  Use "M" as the constraint for constants.
12645         (arith_shiftsi splitter): Enable for TARGET_32BIT.
12646         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
12647         constraint for constants.
12648         (arith_shiftsi_compare0_scratch): Likewise.
12649         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
12650         Handle Thumb2 alternative.
12651
12652 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
12653
12654         * doc/options.texi (NoDriverArg): Document.
12655         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
12656         -MDX and -MMDX.
12657         * opt-functions.awk (switch_flags): Handle NoDriverArg.
12658         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
12659         marking for CL_NO_DRIVER_ARG options when in the driver.
12660         * opts.h (CL_NO_DRIVER_ARG): Define.
12661         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
12662         CL_COMMON): Update values.
12663
12664 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
12665
12666         * common.opt: Add driver options.
12667         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
12668         * doc/options.texi (Driver, RejectDriver): Document.
12669         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
12670         print_prog_name, print_multi_directory, print_sysroot,
12671         print_multi_os_directory, print_multi_lib,
12672         print_sysroot_headers_suffix, report_times, combine_flag,
12673         use_pipes, wrapper_string): Remove.
12674         (save_switch, driver_unknown_option_callback,
12675         driver_wrong_lang_callback, driver_post_handling_callback,
12676         driver_handle_option): New.
12677         (spec_lang, last_language_n_infiles): Make file-scope static
12678         instead of local to process_command.
12679         (process_command): Use decode_cmdline_options_to_array and
12680         read_cmdline_option for option processing.  Compute have_c in
12681         prescan of decoded options.
12682         * opt-functions.awk (switch_flags): Handle Driver and
12683         RejectDriver.
12684         (var_type, var_type_struct): Handle Separate options as generating
12685         const char * variables.
12686         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
12687         CL_TARGET to be passed by caller if required.
12688         (decode_cmdline_options_to_array): Update comment.
12689         * opts.c (complain_wrong_lang): Handle options only valid for the
12690         driver.
12691         (decode_options): Update call to decode_cmdline_options_to_array.
12692         (print_filtered_help): Ignore driver-only options.
12693         (print_specific_help): Ignore CL_DRIVER.
12694         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
12695         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
12696         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
12697         Update values.
12698
12699 2010-08-16  Richard Guenther  <rguenther@suse.de>
12700
12701         * tree-cfg.c (verify_types_in_gimple_reference): Verify
12702         TARGET_MEM_REF a bit.
12703         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
12704         (create_mem_ref_raw): Always create TMR_OFFSET, store the
12705         alias pointer type via it.
12706         (copy_mem_ref_info): Adjust.
12707         (maybe_fold_tmr): Likewise.
12708         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
12709         (reference_alias_ptr_type): Likewise.
12710         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
12711         adjust documentation of TMR_OFFSET operand.
12712         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
12713         use the alias pointer type.
12714         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
12715         initialize mem attrs but the TMR itself.
12716         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
12717         similar to MEM_REF.
12718         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
12719         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
12720         (unshare_and_remove_ssa_names): Likewise.
12721         (copy_ref_info): Adjust.
12722         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
12723         TARGET_MEM_REF case.
12724         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
12725         at TMR_ORIGINAL.
12726         * tree.h (TMR_ORIGINAL): Remove.
12727         * gimple.c (get_base_address): For TARGET_MEM_REF with a
12728         symbol return that.
12729         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
12730         with a symbol.
12731         (get_addr_base_and_unit_offset): Likewise.
12732         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
12733         TARGET_MEM_REFs.
12734         (indirect_ref_may_alias_decl_p): Likewise.
12735         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
12736
12737 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
12738
12739         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
12740         with GCC version 4.6, the default setting (when not optimizing
12741         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
12742         been changed to -fomit-frame-pointer.
12743
12744 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
12745
12746         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
12747         Darwin10.  Do not link libgcc.a for Darwin >= 9.
12748
12749 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
12750
12751         * doc/invoke.texi (Warning Options): Fix terminology and markup
12752         in the description of how unknown warning options are handled.
12753
12754 2010-08-15  Ira Rosen  <irar@il.ibm.com>
12755
12756         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
12757         in basic blocks.
12758         (vect_supportable_dr_alignment): Check alignment for basic blocks.
12759         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
12760         data references.
12761         (vect_bb_vectorization_profitable_p): New function.
12762         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
12763         check if it's worthwhile to vectorize the basic block.
12764
12765 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
12766
12767         * reload.h (register_move_cost, memory_move_secondary_cost,
12768         secondary_reload_class): Adjust prototype.
12769         * rtl.h (reg_class_subset_p): Adjust prototype.
12770         * reload.c (secondary_reload_class): Change arguments type from
12771         enum reg_class to reg_class_t. Change result type to reg_class_t.
12772         * reginfo.c (register_move_cost, reg_class_subset_p): Change
12773         arguments type from enum reg_class to reg_class_t.
12774         (memory_move_secondary_cost): Change arguments type from
12775         enum reg_class to reg_class_t. Change type of saved_flags to
12776         reg_class_t.
12777
12778         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12779         Remove macros.
12780         (mips_cost): Remove.
12781         (struct mips_rtx_cost_data): Moved to mips.c.
12782         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
12783         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
12784         (mips_cost): Make static.
12785         (mips_canonicalize_move_class): Change argument type to reg_class_t.
12786         Change result type to reg_class_t.
12787         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
12788         type from enum reg_class to reg_class_t.
12789         (mips_register_move_cost): Make static. Change arguments
12790         type from enum reg_class to reg_class_t.
12791         (mips_memory_move_cost): New function.
12792         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12793
12794 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
12795
12796         PR rtl-optimization/43358
12797         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
12798         of a single hard register, using simplify_subreg_regno to decide
12799         what that register should be.
12800
12801 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
12802
12803         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
12804         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
12805         (loongson_pmull<V_suffix>): Rename to...
12806         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
12807
12808 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
12809
12810         * configure.ac: Enable -fomit-frame-pointer on darwin
12811         which support dwarf2.
12812         * config/i386/i386.c (override_options): Same.
12813
12814 2010-08-13  Jie Zhang  <jie@codesourcery.com>
12815
12816         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
12817
12818 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
12819
12820         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
12821         -MMD.
12822
12823 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
12824
12825         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
12826         up dot_prod pattern searching if a stmt is outside the loop.
12827
12828 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
12829             Uros Bizjak  <ubizjak@gmail.com>
12830
12831         * config.gcc: Handle --enable-frame-pointer.
12832
12833         * configure.ac: Add --enable-frame-pointer.
12834         * configure: Regenerated.
12835
12836         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
12837         (override_options): If not configured with --enable-frame-pointer,
12838         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
12839         optimizing for size), -fasynchronous-unwind-tables and
12840         -maccumulate-outgoing-args by default.
12841
12842 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
12843
12844         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
12845
12846         PR middle-end/45262
12847         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
12848         -a overflows.  Normalize the range.
12849
12850 2010-08-12  Richard Guenther  <rguenther@suse.de>
12851
12852         PR tree-optimization/45232
12853         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
12854         for types with undefined overflow.
12855         (reassociate_bb): Allow re-associating of bit and min/max
12856         operations for types with undefined overflow.
12857         * tree-ssa-forwprop.c (associate_plusminus): New function.
12858         (tree_ssa_forward_propagate_single_use_vars): Call it.
12859
12860 2010-08-12  Richard Guenther  <rguenther@suse.de>
12861
12862         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
12863         * tree-ssa-alias.c (get_ptr_info): Move ...
12864         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
12865         align and misalign fields conservatively.
12866         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
12867         derive alignment information.
12868         (evaluate_stmt): Derive alignment information from memory
12869         allocation functions.
12870         * tree.h (get_pointer_alignment): Make unsigned.
12871         * builtins.c (get_object_alignment): Use alignment information we
12872         have computed for pointers.
12873         (get_pointer_alignment): Likewise.  Make conservative, return
12874         and unsigned value.
12875         (expand_builtin_strlen): Adjust.
12876         (expand_builtin_memcmp): Likewise.
12877         (expand_builtin_strcmp): Likewise.
12878         (expand_builtin_strncmp): Likewise.
12879         (get_builtin_sync_mem): Use at least mode alignment.
12880         (fold_builtin_memset): Adjust.
12881         (fold_builtin_memory_op): Likewise.
12882         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
12883         information also dump pointer alignment knowledge.
12884         (dump_gimple_stmt): Likewise.
12885
12886 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
12887
12888         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
12889         (EMPTY_FIELD_BOUNDARY): Remove.
12890         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
12891
12892 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
12893
12894         PR debug/45259
12895         * caller-save.c (save_call_clobbered_regs): Only swap notes with
12896         DEBUG_INSNs if n_regs_saved.
12897
12898 2010-08-12  Wei Guozhi  <carrot@google.com>
12899
12900         PR target/44999
12901         * config/arm/arm.md (andsi3): Change to zero extension if possible.
12902         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
12903
12904 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
12905
12906         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
12907
12908         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
12909
12910 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12911
12912         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
12913         the case removed in the previous patch, when the only phi argument
12914         is defined in the same loop as the phi node itself.  Handle it
12915         separately from the invariant case by both propagating it outside
12916         the region and replacing the phi node with an assign.
12917
12918 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12919
12920         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
12921         constant phi nodes with one argument are is_gimple_min_invariant
12922         and SSA_NAME_IS_DEFAULT_DEF.
12923
12924 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12925
12926         * graphite-cloog-util.c (oppose_constraint):
12927         Extend loop counter's value range (CLOOG_ORG).
12928         (cloog_matrix_to_ppl_constraint): Same.
12929         (new_Constraint_System_from_Cloog_matrix): Same.
12930         * graphite-cloog-compat.h (matrix_num_type): New.
12931
12932 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12933
12934         * graphite.c (graphite_initialize): Do not initialize
12935         CLooG and initialize the Parma Polyhedra Library
12936         manually when using CLOOG_ORG.
12937         (graphite_finalize): Do not finalize CLooG and finalize
12938         the Parma Polyhedra Library manually when using CLOOG_ORG.
12939         * graphite-cloog-compat.h (cloog_initialize): Hide function
12940         when using CLOOG_ORG.
12941         (cloog_finalize): Same.
12942
12943 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12944
12945         * graphite-clast-to-gimple.c (free_scattering): Change
12946         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
12947         (CLOOG_ORG).
12948         (build_cloog_prog): Same.
12949         * graphite-cloog-compat.h (cloog_domain): Removed.
12950         (cloog_scattering): New.
12951         (cloog_set_domain): Removed.
12952         (cloog_set_scattering): New.
12953         (cloog_next_domain): Removed.
12954         (cloog_next_scattering): New.
12955         (cloog_set_next_domain): Removed.
12956         (cloog_set_next_scattering): New.
12957         (CloogScatteringList): New.
12958         (CloogScattering): New.
12959         (cloog_scattering_free): New.
12960         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
12961         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
12962         New.
12963
12964 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12965
12966         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
12967         CloogState.
12968         (set_cloog_options): Same.
12969         (print_clast_stmt): Same.
12970         (scop_to_clast): Same.
12971         (print_generated_program): Same.
12972         (gloog): Same.
12973         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
12974         (scop_to_clast): Extend with CloogState.
12975         * graphite-cloog-util.c: Include graphite-cloog-compat.h
12976         (new_Cloog_Domain_from_ppl_Polyhedron):
12977         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
12978         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
12979         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12980         * graphite-cloog-util.h (build_cloog_prog): Same.
12981         * graphite-cloog-copat.h (build_cloog_prog): New.
12982         (CloogState): New.
12983         (cloog_state_malloc): New.
12984         (cloog_state_free): New.
12985         (cloog_loop_malloc): New.
12986         (cloog_options_malloc): New.
12987         (cloog_statement_alloc): New.
12988         (cloog_domain_from_cloog_matrix): New.
12989         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
12990         (new_Cloog_Domain_from_ppl_Polyhedron): New.
12991
12992 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12993
12994         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
12995         type of NAME now depends on used CLooG version.
12996         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
12997         (gcc_type_for_clast_expr): Same.
12998         (print_clast_stmt): Replace pprint with clast_pprint.
12999         * graphite-cloog-compat.h: Provide compatibility macros for
13000         CLooG Legacy.
13001         (clast_name_p): New.
13002         (clast_expr_term): New.
13003         (clast_expr_red): New.
13004         (clast_expr_bin): New.
13005         (clast_pprint): New.
13006
13007 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13008
13009         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
13010         compatible to newer CLooG releases (CLOOG_ORG).
13011         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
13012         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
13013         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
13014         (build_cloog_prog) : New.
13015         (cloog_program_extract_scalars): New.
13016         (cloog_program_scatter): New.
13017
13018 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13019
13020         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
13021         conditionally (CLOOG_ORG).
13022         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
13023         (cloog_statement_usr): New.
13024         (cloog_domain): Same.
13025         (cloog_set_domain): Same.
13026         (cloog_next_domain): Same.
13027         (cloog_set_next_domain): Same.
13028         (cloog_program_nb_scattdims): Same.
13029         (cloog_program_set_nb_scattdims): Same.
13030         (cloog_program_names): Same.
13031         (cloog_program_set_names): Same.
13032         (cloog_program_set_context): Same.
13033         (cloog_program_set_loop): Same.
13034         (cloog_program_blocklist): Same.
13035         (cloog_program_set_blocklist): Same.
13036         (cloog_program_scaldims): Same.
13037         (cloog_program_set_scaldims): Same.
13038         (cloog_names_nb_parameters): Same.
13039         (cloog_names_set_nb_parameters): Same.
13040         (cloog_names_parameters): Same.
13041         (cloog_names_set_parameters): Same.
13042         (cloog_names_set_nb_iterators): Same.
13043         (cloog_names_set_iterators): Same.
13044         (cloog_names_set_nb_scattering): Same.
13045         (cloog_names_set_scattering): Same.
13046         (cloog_statement_set_usr): Same.
13047         (cloog_loop_set_next): Same.
13048         (cloog_loop_set_domain): Same.
13049         (cloog_loop_set_block): Same.
13050         (cloog_block_list_next): Same.
13051         (cloog_block_list_set_next):
13052         (cloog_block_list_set_block): Same.
13053
13054 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13055
13056         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
13057         a bool.
13058         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
13059         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
13060         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
13061         when something has been changed.
13062         (rewrite_commutative_reductions_out_of_ssa): Same.
13063
13064 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13065
13066         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
13067         handle the case when def is in the sese region.
13068         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
13069         for invariant expressions.
13070         (rewrite_cross_bb_phi_deps): Removed.
13071         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
13072         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
13073         rewrite_cross_bb_phi_deps.
13074
13075 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13076
13077         * graphite-sese-to-poly.c
13078         (rewrite_commutative_reductions_out_of_ssa_loop): Call
13079         scev_analyzable_p only on is_gimple_reg
13080
13081 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13082
13083         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
13084         (rewrite_close_phi_out_of_ssa): Propagate constant values or
13085         parametric expressions outside the scop region.
13086         (rewrite_cross_bb_scalar_deps): Same.
13087         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
13088
13089 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13090
13091         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
13092         SSA_NAME_DEF_STMT only on SSA_NAMEs.
13093
13094 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13095
13096         * tree-scalar-evolution.c (instantiate_scev_name): Do not
13097         instantiate default definitions.
13098
13099 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
13100             Sebastian Pop  <sebastian.pop@amd.com>
13101
13102         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
13103         (loop_exits_from_bb_p): New.
13104         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
13105         (loop_exits_from_bb_p): Declared.
13106         * graphite-scop-detection.c (scopdet_basic_block_info): Call
13107         loop_exits_to_bb_p.
13108
13109 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13110
13111         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
13112         extra parameter for the region.  Call scev_analyzable_p.
13113         (rewrite_reductions_out_of_ssa): Update call to
13114         rewrite_close_phi_out_of_ssa.
13115         (rewrite_cross_bb_phi_deps): Same.
13116         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
13117         parameter for the region.  Call scev_analyzable_p.
13118         (rewrite_commutative_reductions_out_of_ssa): Update call to
13119         rewrite_commutative_reductions_out_of_ssa_loop.
13120
13121 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13122
13123         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
13124
13125 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13126
13127         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
13128         SSA scalar phi nodes that can be scev_analyzable_p.
13129
13130 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13131
13132         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
13133         handle SSA_NAME_IS_DEFAULT_DEF.
13134
13135 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13136
13137         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
13138
13139 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13140
13141         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
13142         case non close-phi nodes with one argument.
13143
13144 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13145
13146         * sese.h (scev_analyzable_p): Scevs could be expressions without
13147         chrecs and still be scev_analyzable_p.
13148
13149 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13150
13151         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13152
13153 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13154
13155         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
13156         * cfgloop.h (struct loop): Remove single_iv field.
13157         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
13158         (scop_canonicalize_loops): Removed.
13159         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
13160         over all the loop phi nodes in loop->header.
13161         (build_poly_scop): Remove use of scop_canonicalize_loops.
13162
13163 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13164
13165         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
13166         handle GIMPLE_CALL.
13167
13168 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13169
13170         * tree-chrec.c (chrec_apply): Should only apply to the specified
13171         variable.  Also handle multivariate chains of recurrences that
13172         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
13173
13174 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13175
13176         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
13177         (debug_clast_name_indexes_1): Removed.
13178         (debug_clast_name_indexes): Removed.
13179         (pbb_to_depth_to_oldiv): Removed.
13180         (build_iv_mapping): Replace the use of rename_map with iv_map.
13181         (translate_clast_user): Remove uses of rename_map.  Allocate and
13182         free iv_map.
13183         (translate_clast_for_loop): Remove uses of rename_map.
13184         (translate_clast_for): Same.
13185         (translate_clast_guard): Same.
13186         (translate_clast): Same.
13187         (gloog): Same.
13188         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
13189         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
13190         * sese.c (set_rename): Now static.
13191         (rename_variables_in_stmt): Removed.
13192         (rename_uses): New.
13193         (is_parameter): Removed.
13194         (is_iv): Removed.
13195         (expand_scalar_variables_call): Removed.
13196         (expand_scalar_variables_ssa_name): Removed.
13197         (expand_scalar_variables_expr): Removed.
13198         (expand_scalar_variables_stmt): Removed.
13199         (expand_scalar_variables): Removed.
13200         (rename_variables): Removed.
13201         (remove_condition): Removed.
13202         (get_true_edge_from_guard_bb): Removed.
13203         (get_false_edge_from_guard_bb): Removed.
13204         (struct igp): Removed.
13205         (default_before_guard): Removed.
13206         (convert_for_phi_arg): Removed.
13207         (add_guard_exit_phis): Removed.
13208         (insert_guard_phis): Removed.
13209         (graphite_copy_stmts_from_block): Now also uses iv_map and a
13210         region.  Do not copy conditions.  Do not copy induction variables.
13211         Call rename_uses.
13212         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
13213         the translated statement.  Use the iv_map for the induction
13214         variable renaming.
13215         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
13216         (set_rename): Removed declaration.
13217         (scev_analyzable_p): ...here.
13218         * tree-chrec.c (chrec_apply_map): New.
13219         * tree-chrec.h (chrec_apply_map): Declared.
13220
13221 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13222
13223         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
13224         insert_loop_close_phis.
13225         * sese.c (name_defined_in_loop_p): Removed.
13226         (expr_defined_in_loop_p): Removed.
13227         (alive_after_loop): Removed.
13228         (close_phi_not_yet_inserted_p): Removed.
13229         (struct alep): Removed.
13230         (add_loop_exit_phis): Removed.
13231         (insert_loop_close_phis): Removed.
13232
13233 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13234
13235         * graphite-cloog-util.c
13236         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
13237         * graphite-poly.c
13238         (psct_scattering_dim_for_loop_depth): Same.
13239
13240 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13241
13242         * graphite-cloog-util.h: Added cloog.h.
13243         * graphite-blocking.c: Removed cloog.h.
13244         * graphite-dependences.c: Same.
13245         * graphite-interchange.c: Same.
13246         * graphite-poly.c: Same.
13247         * graphite-ppl.c: Same.
13248         * graphite-scop-detection.c: Same.
13249         * graphite-sese-to-poly.c:
13250         Removed cloog.h.
13251         Removed graphite-clast-to-gimple.h.
13252         (check_poly_representation): Removed (unused).
13253         * graphite-sese-to-poly.h
13254         (check_poly_representation): Removed (unused).
13255
13256 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13257
13258         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
13259         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
13260         (graphite-cloog-util.o): New.
13261         (graphite-ppl.o): Added graphite-cloog-util.h.
13262         * graphite-clast-to-gimple.c:
13263         Added graphite-cloog-util.h to include statements.
13264         * graphite-cloog-util.c: New.
13265         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
13266         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13267         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13268         (new_C_Polyhedron_from_Cloog_Matrix): Same.
13269         (insert_constraint_into_matrix): Same.
13270         (ppl_Constrain_System_number_of_constraints): Same.
13271         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
13272         (oppose_constraint): Same.
13273         (cloog_matrix_to_ppl_constraint): Same.
13274         (new_Constraint_System_from_Cloog_Matrix): Same.
13275         * graphite-cloog-util.h: New.
13276         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
13277         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13278         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13279         (new_C_Polyhedron_from_Cloog_Matrix): Same.
13280         (insert_constraint_into_matrix): Same.
13281         * graphite-ppl.c:
13282         Added graphite-cloog-util.h to include statements.
13283         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
13284         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13285         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13286         (new_C_Polyhedron_from_Cloog_Matrix): Same.
13287         (insert_constraint_into_matrix): Same.
13288         (ppl_Constrain_System_number_of_constraints): Same.
13289         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
13290         (oppose_constraint): Same.
13291         (cloog_matrix_to_ppl_constraint): Same.
13292         (new_Constraint_System_from_Cloog_Matrix): Same.
13293         * graphite-ppl.h:
13294         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
13295         graphite-cloog-util.h.
13296         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13297         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13298         (new_C_Polyhedron_from_Cloog_Matrix): Same.
13299         (insert_constraint_into_matrix): Same.
13300
13301 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13302
13303         * graphite-clast-to-gimple.c
13304         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
13305         (precision_for_interval): Same.
13306         (gcc_type_for_interval): Same.
13307         (compute_type_for_level): Same.
13308         * graphite-interchange.c
13309         (lst_interchange_profitable_p): Same.
13310         * graphite-poly.c
13311         (psct_scattering_dim_for_loop_depth): Same.
13312         * graphite-ppl.c
13313         (ppl_max_for_le_pointset): Same.
13314         (ppl_min_for_le_pointset): Same.
13315
13316 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13317
13318         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
13319         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
13320
13321 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13322
13323         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
13324         rewrite_close_phi_out_of_ssa.
13325
13326 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13327
13328         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
13329
13330 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13331
13332         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
13333         rename_map.
13334         * sese.c (debug_rename_map): Same.
13335         (get_rename): Same.
13336         (set_rename): Same.
13337         (rename_variables_in_stmt): Same.
13338         (expand_scalar_variables_call): Same.
13339         (expand_scalar_variables_ssa_name): Same.
13340         (expand_scalar_variables_expr): Same.
13341         (expand_scalar_variables_stmt): Same.
13342         (expand_scalar_variables): Same.
13343         (rename_variables): Same.
13344         (graphite_copy_stmts_from_block): Same.
13345         (copy_bb_and_scalar_dependences): Same.
13346
13347 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13348
13349         * graphite-clast-to-gimple.c (copy_renames): Removed.
13350         (translate_clast_for): Do not call copy_renames.
13351         (translate_clast_guard): Same.
13352
13353 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13354
13355         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
13356         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
13357         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
13358         before rewrite_cross_bb_scalar_deps.
13359
13360 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13361
13362         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
13363         Early return in when flag_associative_math is not set.
13364
13365 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13366
13367         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
13368         of SSA copies on edges except for loop->latch.
13369
13370 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13371
13372         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
13373         Split out of rewrite_reductions_out_of_ssa.
13374         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
13375         Declared.
13376         * graphite.c (graphite_transform_loops): Call it.
13377
13378 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13379
13380         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
13381
13382 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
13383
13384         * dbgcnt.def (graphite_scop): New counter.
13385         * graphite.c: Include dbgcnt.h.
13386         (graphite_transform_loops): Use new counter to limit transformations.
13387         * Makefile.in (graphite.o): Depend on DBGCNT_H.
13388
13389 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13390
13391         * passes.c (init_optimization_passes): Add pass_graphite.
13392         Schedule a pass_copy_prop before pass_graphite_transforms.
13393         * timevar.def (TV_GRAPHITE): Declared.
13394         * tree-pass.h (pass_graphite): Declared.
13395         * tree-ssa-loop.c (pass_graphite): New.
13396
13397 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13398
13399         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
13400         Remove calls to rename_nb_iterations and rename_sese_parameters.
13401         * graphite-clast-to-gimple.h (gloog): Update declaration.
13402         * graphite.c (graphite_transform_loops): Update call to gloog.
13403         * sese.c (rename_variables_in_expr): Removed.
13404         (rename_nb_iterations): Removed.
13405         (rename_sese_parameters): Removed.
13406         * sese.h (rename_nb_iterations): Removed.
13407         (rename_sese_parameters): Removed.
13408
13409 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13410
13411         * graphite-clast-to-gimple.c (gloog): Remove call to
13412         sese_adjust_liveout_phis.
13413         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
13414         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
13415         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
13416         rewrite_phi_out_of_ssa.
13417         * sese.c (get_vdef_before_sese): Removed.
13418         (sese_adjust_vphi): Removed.
13419         (sese_adjust_liveout_phis): Removed.
13420         * sese.h (sese_adjust_liveout_phis): Removed.
13421
13422 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13423
13424         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
13425         argument for the place after which to insert the out of SSA copy.
13426         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
13427         (rewrite_phi_out_of_ssa): Same.
13428         (rewrite_cross_bb_scalar_deps): Same.
13429         (insert_copyout): Removed.
13430         (insert_copyin): Removed.
13431         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
13432         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
13433         insert_copyin.
13434
13435 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13436
13437         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
13438         (rewrite_reductions_out_of_ssa): Same.
13439         (rewrite_commutative_reductions_out_of_ssa): Same.
13440         (build_poly_scop): Do not call these functions.
13441         * graphite-sese-to-poly.h (build_poly_scop): Declared.
13442         (rewrite_reductions_out_of_ssa): Declared.
13443         (rewrite_commutative_reductions_out_of_ssa): Declared.
13444         * graphite.c (graphite_transform_loops): Call on every scop
13445         rewrite_commutative_reductions_out_of_ssa before calling
13446         rewrite_reductions_out_of_ssa and build_scop_bbs.
13447
13448 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13449
13450         * graphite-dependences.c (dot_deps): Make system call to dotty run
13451         in background.
13452         (dot_deps_stmt): Same.
13453         * graphite-poly.c (dot_lst): Same.
13454
13455 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13456
13457         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
13458         phi_arg_in_outermost_loop.
13459         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
13460         (remove_invariant_phi): Same.
13461
13462 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
13463
13464         * target.def (output_addr_const_extra): New hook.
13465         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
13466         * doc/tm.texi: Regenerate.
13467         * targhooks.c (default_asm_output_addr_const_extra): New function.
13468         * targhooks.h (default_asm_output_addr_const_extra): Declare.
13469         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
13470         target hook.
13471
13472         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13473         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
13474         * config/i386/i386.h (output_addr_const_extra): Rename to...
13475         (i386_asm_output_addr_const_extra): ...this. Make static.
13476         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13477
13478 2010-08-11  Richard Henderson  <rth@redhat.com>
13479
13480         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
13481
13482 2010-08-11  Nick Clifton  <nickc@redhat.com>
13483
13484         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
13485         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
13486         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
13487         stormy16-lib2-cmpsi.c.
13488
13489         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
13490         -O2.
13491
13492 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
13493
13494         * opts.h (struct cl_option_handler_func): Make handler take
13495         cl_decoded_option structure as parameter, not individual elements.
13496         (struct cl_option_handlers): Make callbacks take cl_decoded_option
13497         structure as parameter, not individual elements.
13498         (handle_option): Take cl_decoded_option structure as parameter,
13499         not individual elements.
13500         (handle_generated_option): Declare.
13501         * opts-common.c (handle_option): Take cl_decoded_option structure
13502         as parameter, not individual elements.  Update calls to callback
13503         and handler functions.
13504         (handle_generated_option): New.
13505         (read_cmdline_option): Update calls to callback functions and
13506         handle_option.
13507         * opts.c (common_handle_option, complain_wrong_lang,
13508         unknown_option_callback, post_handling_callback,
13509         lang_handle_option, target_handle_option): Take cl_decoded_option
13510         structure as parameter, not individual elements.
13511         (lang_handle_option, target_handle_option, common_handle_option):
13512         Assert option has at most one argument.
13513         (enable_warning_as_error): Call handle_generated_option instead of
13514         handle_option.  Do not pass -Werror argument as argument of
13515         generated option.
13516
13517 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13518
13519         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
13520         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
13521         (SUBWORD_BOOL_CAS): Likewise.
13522         (SUBWORD_SYNC_OP): Likewise.
13523         (SUBWORD_TEST_AND_SET): Likewise.
13524         (FETCH_AND_OP_WORD): Parenthesise INF_OP
13525         (SUBWORD_SYNC_OP): Likewise.
13526         (OP_AND_FETCH_WORD): Likewise.
13527
13528 2010-08-10  Xinliang David Li  <davidxl@google.com>
13529
13530         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
13531         compute max/min offset in address.
13532
13533 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
13534
13535         * ira-live.c: Include sbitmap.h.
13536         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
13537         Compress live ranges even more.
13538
13539 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13540
13541         * coverage.c (ctr_labels): Delete.
13542
13543 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
13544
13545         PR bootstrap/45177
13546         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
13547         test here from arm_gen_load_multiple_1.
13548         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
13549         multiple_operation_profitable_p.
13550
13551 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13552
13553         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
13554         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
13555
13556 2010-08-10  Richard Henderson  <rth@redhat.com>
13557
13558         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
13559         after saving registers.  Assert that SSE registers are only saved
13560         with a sufficiently aligned frame.
13561         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
13562         remove stack_realign_fp handling.
13563         (ix86_expand_prologue): Save int registers before stack_realign_fp,
13564         and do not mark the stack alignment as frame related.
13565         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
13566
13567         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
13568         saves when re-aligning the stack.
13569
13570 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13571
13572         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
13573         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
13574         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
13575
13576 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13577
13578         * dwarf2out.c (struct die_struct): Move die_tag to the end.
13579
13580 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
13581
13582         * config/arm/iterators.md: New file.
13583         * config/arm/arm.md: Include iterators.md.
13584         (QHSI): Move to new file.
13585         (LTUGEU, cnb, optab, ior_xor): Likewise.
13586         * config/arm/iwmmxt.md (VMMX): Move to new file.
13587         (VSHFT, MMX_char): Likewise.
13588         * config/arm/neon.md (VD): Move to new file.
13589         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
13590         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
13591         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
13592         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
13593         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
13594         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
13595         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
13596         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
13597         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
13598         (Is_d_reg, V_mode_nunits): Likewise.
13599         * config/arm/vec-common.md (VALL): Move to new file.
13600         (VALLW, VINT, VINTW): Likewise.
13601
13602 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
13603
13604         PR middle-end/45182
13605         * combine.c (make_compound_operation): Don't try to convert
13606         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
13607
13608 2010-08-10  Richard Guenther  <rguenther@suse.de>
13609
13610         * tree.h (get_object_alignment): Adjust prototype.
13611         * builtins.c (get_object_alignment): Return unsigned int,
13612         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
13613         and TARGET_MEM_REF properly.
13614         (get_pointer_alignment): Adjust.
13615         * emit-rtl.c (get_mem_align_offset): Adjust comment.
13616         (set_mem_attributes_minus_bitpos): Adjust.
13617         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
13618
13619 2010-08-10  Richard Guenther  <rguenther@suse.de>
13620
13621         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
13622         (copy_prop_visit_assignment): Simplify.
13623         (copy_prop_visit_stmt): Also visit assignments from
13624         constants.
13625         (copy_prop_visit_phi_node): Use operand_equal_p.
13626
13627 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13628
13629         * ipa-split.c (find_split_points): Free stack.
13630
13631 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13632
13633         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
13634         * tree.c (tree_node_kind): Delete corresponding entries.
13635
13636 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13637
13638         * alias.c (may_alias_p): Remove unused ret.
13639
13640 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
13641
13642         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
13643         alias_sets_conflict_p.
13644         (walk_mems_1): Moved from alias.c.
13645         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
13646         in alias.c.
13647         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
13648         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
13649         * alias.c (walk_mems_2): Moved to ddg.c.
13650         (walk_mems_1): Ditto.
13651         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
13652         to ddg.c.
13653         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
13654         disambiguation.
13655         *(may_alias_p): New function to check whether two memory expression
13656         may alias or not. Currently used in buidling inter-iteration memory
13657         dependence.
13658         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
13659         (insn_alias_sets_conflict_p): Removed
13660         *rtl.h (may_alias_p): New function prototype.
13661
13662 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13663
13664         * tree.c (nreverse): Assert that we don't have a BLOCK.
13665
13666 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13667
13668         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
13669         * config/arm/arm.c (arm_get_pcs_model): Likewise.
13670         * config/avr/avr.c (init_cumulative_args): Likewise.
13671         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13672         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13673         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
13674         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
13675         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
13676         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13677         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
13678         * dwarf2out.c (gen_subprogram_die): Likewise.
13679         * function.c (allocate_struct_function): Likewise.
13680         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
13681         (deserves_ellipsis): Delete.
13682
13683 2010-08-09  Richard Guenther  <rguenther@suse.de>
13684
13685         * tree-ssa-copy.c (cached_last_copy_of): Remove.
13686         (valueize_val): New function.
13687         (get_last_copy_of): Remove.
13688         (set_copy_of_val): Simplify.
13689         (dump_copy_of): Likewise.
13690         (copy_prop_visit_cond_stmt): Use valueize_val.
13691         (copy_prop_visit_phi_node): Properly handle unvisited names.
13692         Drop code managing copy-of chains.
13693         (init_copy_prop): Adjust.
13694         (fini_copy_prop): Likewise.
13695         (execute_copy_prop): Remove obsolete comment.
13696
13697 2010-08-09  Richard Guenther  <rguenther@suse.de>
13698
13699         PR middle-end/44632
13700         * function.c (gimplify_parameters): Do not clear addressable
13701         bit of the original parameter.
13702
13703 2010-08-09  Richard Guenther  <rguenther@suse.de>
13704
13705         PR middle-end/45212
13706         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
13707         alignment from MEM_REF offset only if we took it from the
13708         base object.
13709
13710 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
13711
13712         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
13713
13714 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
13715
13716         * c-tree.h (build_arg_info): Declare.
13717         * c-decl.c (build_arg_info): Define.
13718         (get_parm_info): Call it.  Delete initialization code.
13719         * c-parser.c (c_parser_parms_declarator): Likewise.
13720         (c_parser_parms_list_declaractor): Likewise.
13721
13722 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
13723
13724         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
13725         (struct c_arg_info): Change type of tags field.
13726         * c-decl.c (grokdeclarator): Update for changed type of tags field.
13727         (get_parm_info): Likewise.
13728         (store_parm_decls_newstyle): Likewise.
13729
13730 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
13731
13732         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
13733         (branch_island_list): Delete.
13734         (branch_islands): Declare.
13735         (add_compiler_branch_island): Adjust for branch_islands instead of
13736         branch_island_list.
13737         (macho_branch_islands): Likewise.
13738         (no_previous_def): Likewise.
13739         (get_prev_label): Likewise.
13740
13741 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13742
13743         PR boehm-gc/34544
13744         * gthr-posix.h (__gthread_start): Delete.
13745         (__gthread_active_init): Use pthread_default_stacksize_np instead of
13746         pthread_create to determine if hpux pthreads are active.
13747         * gthr-posix95.h (__gthread_start): Delete.
13748         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
13749
13750 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
13751
13752         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
13753         _WIN64 not expanded.
13754
13755 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
13756             H.J. Lu  <hongjiu.lu@intel.com>
13757
13758         PR target/45213
13759         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
13760         to output 32bit SFmode immediate as 8 byte sign extended value.
13761
13762 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13763
13764         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
13765         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
13766         (SUBWORD_BOOL_CAS): Likewise.
13767         (SUBWORD_SYNC_OP): Likewise.
13768         (SUBWORD_TEST_AND_SET): Likewise.
13769         (FETCH_AND_OP_WORD): Parenthesise INF_OP
13770         (SUBWORD_SYNC_OP): Likewise.
13771         (OP_AND_FETCH_WORD): Likewise.
13772
13773 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13774
13775         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
13776         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
13777         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
13778         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
13779         generic part.
13780         (cortex_a9_sched_adjust_cost): New function.
13781         (xscale_sched_adjust_cost): New function.
13782         * config/arm/arm-protos.h (struct tune_params): New field
13783         sched_adjust_cost.
13784         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
13785
13786 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
13787
13788         PR target/44942
13789         * config/sparc/sparc.c (function_arg_advance): Always take into account
13790         the padding, if any.
13791
13792 2010-08-06  Richard Guenther  <rguenther@suse.de>
13793
13794         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
13795         (dump_lattice_value): Dump it.
13796         (get_default_value): Adjust.
13797         (get_constant_value): Likewise.
13798         (set_value_varying): Likewise.
13799         (set_lattice_value): Make sure to not go up the lattice
13800         with bitwise constant values.
13801         (get_value_for_expr): Handle ADDR_EXPRs.
13802         (value_to_double_int): New function.
13803         (get_value_from_alignment): Likewise.
13804         (do_dbg_cnt): Adjust.
13805         (ccp_lattice_meet): Handle partially constant values.
13806         (bit_value_unop_1): New function.
13807         (bit_value_binop_1): Likewise.
13808         (bit_value_unop): Likewise.
13809         (bit_value_binop): Likewise.
13810         (evaluate_stmt): Track partially constant values if
13811         flag_tree_bit_ccp is set.
13812         (ccp_fold_stmt): Dump if we folded a predicate.
13813         (ccp_visit_stmt): Adjust.
13814         * common.opt (ftree-bit-ccp): New flag.
13815         * doc/invoke.texi (ftree-bit-ccp): Document.
13816         * opts.c (decode_options): Enable bit-CCP at -O1.
13817
13818 2010-08-06  Alan Modra  <amodra@gmail.com>
13819
13820         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
13821         and -mrelocatable-lib description.
13822
13823 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
13824
13825         From Martin Thuresson  <martint@google.com>
13826         * postreload.c (reload_cse_simplify_operands): Use
13827         SET_REGNO_RAW instead of SET_REGNO.
13828         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
13829         SET_REGNO.
13830         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
13831         instead of SET_REGNO.
13832         * rtl.h (SET_REGNO_RAW): New macro.
13833
13834 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
13835
13836         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
13837         computations.  Fix formatting issues.
13838         (num_sign_bit_copies1): Likewise.
13839         (canonicalize_condition): Likewise.
13840
13841 2010-08-05  Richard Henderson  <rth@redhat.com>
13842
13843         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
13844         (floor_log2): Use clz_hwi.
13845         (exact_log2): Use ctz_hwi.
13846         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
13847         * builtins.c (fold_builtin_bitop): Use them.
13848         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13849         * combine.c (get_pos_from_mask): Use ctz_hwi.
13850         * double-int.c (double_int_ctz): Likewise.
13851         * explow.c (force_reg): Likewise.
13852         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
13853
13854 2010-08-05  Richard Henderson  <rth@redhat.com>
13855
13856         PR target/45189
13857         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
13858         the alignment constant is properly sign-extended.
13859
13860 2010-08-05  Richard Guenther  <rguenther@suse.de>
13861
13862         * expr.c (store_expr): Use emit_block_move only if both
13863         source and target are MEMs.  Use store_bit_field if only
13864         the target is a MEM.
13865
13866 2010-08-05  Richard Henderson  <rth@redhat.com>
13867
13868         PR debug/45188
13869         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
13870         (INCOMING_RETURN_ADDR_RTX): Likewise.
13871         (dwarf2out_do_frame): Remove conditional compilation.
13872         (dwarf2out_frame_init): Likewise.
13873
13874 2010-08-05  Nicolas Setton  <setton@adacore.com>
13875
13876         * gcov.c (flag_display_progress): New static variable.
13877         (main): Display progress info on standard output if requested.
13878         (options): Add -d/--display-progress.
13879         (print_usage): Print them.
13880         (process_args): Handle them.
13881         * doc/gcov.texi: Document them.
13882
13883 2010-08-05  Martin Jambor  <mjambor@suse.cz>
13884
13885         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
13886         (ipcp_insert_stage): Redirect only edges not flagged with
13887         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
13888         discovered constants.
13889
13890 2010-08-05  Martin Jambor  <mjambor@suse.cz>
13891
13892         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
13893         (struct ipa_param_descriptor): New fields types and
13894         cannot_devirtualize.
13895         (ipa_param_cannot_devirtualize_p): New function.
13896         (ipa_param_types_vec_empty): Likewise.
13897         (ipa_make_edge_direct_to_target): Declare.
13898         * ipa-cp.c: Fixed first stage driver name in initial comment,
13899         described devirtualization there too.
13900         (ipcp_analyze_node): Call ipa_analyze_params_uses.
13901         (ipcp_print_all_lattices): Print devirtualization info.
13902         (ipa_set_param_cannot_devirtualize): New function.
13903         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
13904         lattice to BOTTOM.
13905         (ipcp_init_stage): Merged into...
13906         (ipcp_generate_summary): ...its caller.
13907         (ipcp_change_tops_to_bottom): Also process type lists.
13908         (ipcp_add_param_type): New function.
13909         (ipcp_copy_types): Likewise.
13910         (ipcp_propagate_types): Likewise.
13911         (ipcp_propagate_stage): Also propagate types.
13912         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
13913         Also return true if propagated types require it.
13914         (ipcp_update_callgraph): Dump redirection info.
13915         (ipcp_process_devirtualization_opportunities): New function.
13916         (ipcp_const_param_count): Include known type information.
13917         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
13918         on new node.  Fixed formatting.
13919         * ipa-prop.c (make_edge_direct_to_target): Renamed to
13920         ipa_make_edge_direct_to_target and changed all callers.  Made
13921         externally visible.
13922         (ipa_node_duplication_hook): Duplicate types vector.
13923         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
13924         redirect outgoing calls for which we can't get a decl from the
13925         statement.  Check that we can get a decl from the call statement.
13926         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
13927         ipa_analyze_params_uses only when ipa-cp is disabled.
13928         * tree-inline.c (get_indirect_callee_fndecl): Removed.
13929         (expand_call_inline): Do not call get_indirect_callee_fndecl.
13930         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
13931         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
13932
13933 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
13934
13935         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
13936         temporary. Emit move from temporary to accum, so REG_EQUAL note will
13937         be attached to this insn in correct mode.
13938
13939 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
13940
13941         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
13942         using REGNO of base_reg directly.
13943
13944 2010-08-05  Jie Zhang  <jie@codesourcery.com>
13945
13946         PR tree-optimization/45144
13947         * tree-sra.c (type_consists_of_records_p): Return false
13948         if the record contains bit-field.
13949
13950 2010-08-04  Richard Henderson  <rth@redhat.com>
13951
13952         * config/i386/i386.c (struct ix86_frame): Remove padding and
13953         to_allocate members.
13954         (ix86_compute_frame_layout): Don't store them.
13955         (ix86_can_use_return_insn_p): Use a more direct and more obviously
13956         correct condition for the position of the stack pointer.
13957         (ix86_expand_prologue): Compute remaining stack allocation based
13958         on the ultimate stack pointer offset.
13959         (ix86_expand_epilogue): Use more obvious expressions testing for
13960         the stack pointer already pointing to the saved registers.
13961
13962         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
13963         duplication deconstructing the frame pointer.  Simplify
13964         deallocation of the local stack frame.
13965
13966         * reg-notes.def (CFA_EXPRESSION): New.
13967         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13968         (dwarf2out_frame_debug_cfa_expression): New.
13969         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
13970
13971         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
13972         * config/i386/i386.c (ix86_expand_prologue): Set it.
13973         (ix86_expand_epilogue): Clear it.
13974         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
13975         context, add REG_CFA_EXPRESSION notes.
13976
13977         * config/i386/i386.h (struct machine_frame_state): Rename from
13978         machine_cfa_state.  Add members tracking SP and FP regardless
13979         of the current CFA register.
13980         (ix86_cfa_state): Remove.
13981         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
13982         and sse_reg_save_offset members.
13983         (ix86_compute_frame_layout): Set them.
13984         (gen_push): Increment sp_offset too.
13985         (choose_baseaddr_len, choose_baseaddr): New.
13986         (ix86_emit_save_reg_using_mov): New.
13987         (ix86_emit_save_regs_using_mov): Use it.
13988         (ix86_emit_save_sse_regs_using_mov): Likewise.
13989         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
13990         compare vs the saved red_zone_offset.
13991         (pro_epilogue_adjust_stack): Adjust sp_offset.
13992         (ix86_adjust_stack_and_probe): Likewise.
13993         (ix86_expand_prologue): Set up, use, and validate the new
13994         frame_state_info members.  Use gen_frame_mem.
13995         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
13996         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
13997         new frame_state_info members.
13998         (ix86_emit_leave): Likewise.
13999         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
14000         out-of-range stack pointer offsets here.
14001         (ix86_emit_restore_sse_regs_using_mov): Likewise.
14002         (ix86_expand_epilogue): Use and validate the new frame_state_info
14003         members.  Break up and simplify the logic selecting the
14004         restore_regs_via_mov code path.  Ensure that there will be no
14005         out-of-range stack pointer offsets.
14006
14007         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
14008
14009         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
14010         argument name to reflect the expected tree; fix indentation.
14011         (ix86_asm_output_function_label): Output the entire 32-bit
14012         ms_hook here as bytes ...
14013         (ix86_expand_prologue): ... not here as insns.  Attach the
14014         unwind info for the ms_hook to a blockage insn.
14015         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
14016         (ix86_ms_bitfield_layout_p): Fix indentation.
14017         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
14018
14019         * config/i386/i386.c (ix86_using_red_zone): New.
14020         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
14021         ix86_expand_prologue, ix86_force_to_memory): Use it.
14022
14023         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
14024         saving the int registers.
14025
14026         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
14027         and DWARF2_UNWIND_INFO conditional compilation.
14028
14029 2010-08-04  Richard Henderson  <rth@redhat.com>
14030
14031         PR debug/45171
14032         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
14033         an is_naming_typedef_decl.
14034
14035 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
14036
14037         PR rtl-optimization/45162
14038         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
14039         * dce.c (word_dce_process_block): Likewise.
14040
14041 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
14042
14043         PR target/44583
14044         * config/ia64/constraints.md (Z): New.
14045         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
14046         (xfreg_or_signed_fp01_operand): New.
14047         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
14048         with fr_reg_or_signed_fp01_operand and constraint G with Z.
14049         (subsf3): Ditto.
14050         (*maddsf4): Ditto.
14051         (*msubsf4): Ditto.
14052         (adddf3): Ditto.
14053         (adddf3_trunc): Ditto.
14054         (subdf3): Ditto.
14055         (*subdf3_trunc): Ditto.
14056         (*madddf4): Ditto.
14057         (*madddf4_trunc): Ditto.
14058         (*msubdf4): Ditto.
14059         (*msubdf4_trunc): Ditto.
14060         (addxf3): Replace xfreg_or_fp01_operand with
14061         xfreg_or_signed_fp01_operand and constraint G with Z.
14062         (*addxf3_truncsf): Ditto.
14063         (*addxf3_truncdf): Ditto.
14064         (subxf3): Ditto.
14065         (*subxf3_truncsf): Ditto.
14066         (*subxf3_truncdf): Ditto.
14067         (*maddxf4): Ditto.
14068         (*maddxf4_truncsf): Ditto.
14069         (*maddxf4_truncdf): Ditto.
14070         (*msubxf4): Ditto.
14071         (*msubxf4_truncsf): Ditto.
14072         (*msubxf4_truncdf): Ditto.
14073
14074 2010-08-04  Richard Guenther  <rguenther@suse.de>
14075
14076         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
14077         if either alias-set is zero.
14078
14079 2010-08-04  Richard Guenther  <rguenther@suse.de>
14080
14081         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
14082         * tree-ssa-ccp.c: ... here.
14083         * tree-ssa-copy.c: ... and here.
14084         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
14085         value_range_t): Move ...
14086         * tree-vrp.c: ... here.
14087         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
14088         (substitute_and_fold): Adjust prototype.
14089         * tree-ssa-propagate.c (replace_uses_in): Adjust.
14090         (replace_phi_args_in): Likewise.
14091         (substitute_and_fold): Take callback to query lattice instead
14092         of pointer to lattice.  Replace SSA name defs with lattice
14093         values first.
14094         * tree-ssa-ccp.c (ccp_finalize): Adjust.
14095         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
14096         (get_value): New function.
14097         (fini_copy_prop): Adjust.
14098         * tree-vrp.c (vrp_finalize): Adjust.
14099
14100 2010-08-04  Richard Guenther  <rguenther@suse.de>
14101
14102         PR middle-end/45176
14103         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
14104         points-to set for original MEM_REF.
14105
14106 2010-08-04  Richard Guenther  <rguenther@suse.de>
14107
14108         * tree-ssa-ccp.c (get_constant_value): New function.
14109         (get_rhs_assign_op_for_ccp): Remove.
14110         (valueize_op): New function.
14111         (ccp_fold): Use get_constant_value and valueize_op.
14112         (fold_const_aggregate_ref): Likewise.
14113         (ccp_fold_stmt): Likewise.
14114         (visit_assignment): Simplify.
14115
14116 2010-08-04  Richard Guenther  <rguenther@suse.de>
14117
14118         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
14119         * double-int.h (double_int_ctz): Declare.
14120         * double-int.c (double_int_ctz): New function.
14121
14122 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
14123
14124         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
14125         Define.
14126         picochip_expand_movmemhi : Expand movmem pattern.
14127         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
14128         Declare.
14129         * config/picochip/picochip.md (movmemhi) : New pattern.
14130
14131 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
14132
14133         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
14134
14135 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
14136
14137         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
14138         NEG as operand of a MULT by merging it with the other operand.
14139         * combine.c (make_compound_operation): Use trunc_int_for_mode when
14140         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
14141         MULT.
14142         * config/arm/constraints.md (M): Examine only 32 bits of a
14143         HOST_WIDE_INT.
14144         * config/arm/predicates.md (power_of_two_operand): Likewise.
14145
14146 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14147
14148         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
14149         non-NOTE insns.
14150
14151 2010-08-03  Jan Hubicka  <jh@suse.cz>
14152
14153         * ipa-split.c (struct split_point): Add split_part_set_retval.
14154         (find_retval): Forward declare.
14155         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
14156         (consider_split): Compute current->split_part_set_retval.
14157         (visit_bb): Do not look into return value.
14158         (split_function): Handle !split_part_set_retval
14159
14160 2010-08-03  Martin Jambor  <mjambor@suse.cz>
14161
14162         * tree-sra.c (completely_scalarize_record): New parameter REF, create
14163         its own access->expr intead of using build_ref_for_offset.
14164
14165 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
14166
14167         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
14168         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
14169         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
14170         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
14171         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
14172         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
14173         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
14174         DEFAULT_SWITCH_TAKES_ARG.
14175         * config/rx/rx.opt (-patch=): Remove option.
14176         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
14177         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
14178         * doc/invoke.texi (RX Options): Remove -patch=.
14179         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
14180         (option_map): Remove --profile-blocks, --quiet and --silent.
14181
14182 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
14183
14184         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
14185         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
14186         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
14187         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
14188         Update calls to ix86_expand_compare and ix86_expand_branch.
14189         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
14190         ix86_expand_compare.
14191         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
14192         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
14193         Make static.
14194         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
14195         and ix86_compare_op1.  Update calls to ix86_expand_compare.
14196         (ix86_expand_int_movcc): Ditto.
14197         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
14198         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
14199         (ix86_expand_setcc): Ditto.
14200         (ix86_expand_compare): Remove prototype.
14201         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
14202         ix86_compare_op0 and ix86_compare_op1.  Update calls
14203         to ix86_expand_branch to directly pass operands[1] and operands[2].
14204         (cbranchxf4): Ditto.
14205         (cbranch<MODEF:mode>4): Ditto.
14206         (cbranchcc4): Ditto.
14207         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
14208         Update calls to ix86_expand_setcc to directly pass operands[2] and
14209         operands[3].
14210         (cstorexf4): Ditto.
14211         (cstore<MODEF:mode>4): Ditto.
14212         (cstorecc4): Ditto.
14213
14214 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
14215
14216         PR target/45063
14217         * caller-save.c (save_call_clobbered_regs): Remove regs from
14218         hard_regs_saved when they are set.
14219
14220 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
14221
14222         PR target/41089
14223         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
14224         as volatile.
14225
14226 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
14227
14228         * common.opt (ftree-loop-distribute-patterns): New.
14229         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
14230         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
14231         at -O3.
14232         * tree-data-ref.c (stores_zero_from_loop): New.
14233         * tree-data-ref.h (stores_zero_from_loop): Declared.
14234         * tree-loop-distribution.c (tree_loop_distribution): Call
14235         stores_zero_from_loop.
14236         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
14237
14238 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
14239
14240         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
14241         into account.
14242
14243         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
14244         * config/arm/arm.c (thumb1_code): New variable.
14245         (arm_override_options): Set it.
14246         (thumb1_final_prescan_insn): Keep track of condition code status.
14247         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
14248         jumps that depend on them.
14249         * config/arm/arm.h (thumb1_code): Declare variable.
14250         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
14251         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
14252         thumb1_cc_mode.
14253         (CC_STATUS_INIT): New macro.
14254         * config/arm/constraints.md (Pd): New constraint.
14255         * config/arm/predicates.md (noov_comparison_operator): New predicate.
14256         * config/arm/arm.md (is_thumb1): New define_attr.
14257         (conds): Set default to "clob" when generating Thumb1 code.
14258         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
14259         code are set.  Use two-operand assembly syntax.
14260         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
14261         pattern.
14262         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
14263         codes are set.  Use two-operand assembly syntax.
14264         (zero_extendhisi splitter): Remove constraints.
14265         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
14266         thumb1_movsf_insn): Set conds attribute as appropriate.
14267         (cbranchsi4_insn): Use condition code status from struct
14268         machine_function to determine whether the comparison can be eliminated.
14269         Discourage the alternative using high registers.
14270         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
14271         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
14272         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
14273         subsi3_cbranch): Delete.
14274         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
14275         one subtract and one cbranch insn.
14276
14277         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
14278         thumb2_movdf_soft_insn): Delete patterns.
14279         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
14280         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
14281         (pool_range, neg_pool_range): Use them to define defaults.
14282         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
14283         and allow for TARGET_32BIT.
14284
14285         PR target/40457
14286         * config/arm/arm.h (arm_regs_in_sequence): Declare.
14287         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
14288         load_multiple_sequence, store_multiple_sequence): Delete
14289         declarations.
14290         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
14291         declarations.
14292         * config/arm/ldmstm.md: New file.
14293         * config/arm/arm.c (arm_regs_in_sequence): New array.
14294         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
14295         CHECK_REGS.  All callers changed.
14296         If SAVED_ORDER is nonnull, copy the computed order into it.
14297         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
14298         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
14299         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
14300         If SAVED_ORDER is nonnull, copy the computed order into it.
14301         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
14302         like REGS.  Handle Thumb mode.
14303         (arm_gen_load_multiple_1): New function, broken out of
14304         arm_gen_load_multiple.
14305         (arm_gen_store_multiple_1): New function, broken out of
14306         arm_gen_store_multiple.
14307         (arm_gen_multiple_op): New function, with code from
14308         arm_gen_load_multiple and arm_gen_store_multiple moved here.
14309         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
14310         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
14311         changed.
14312         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
14313         * config/arm/predicates.md (commutative_binary_operator): New.
14314         (load_multiple_operation, store_multiple_operation): Handle more
14315         variants of these patterns with different starting offsets.  Handle
14316         Thumb-1.
14317         * config/arm/arm.md: Include "ldmstm.md".
14318         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
14319         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
14320         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
14321         peepholes): Delete.
14322         * config/arm/ldmstm.md: New file.
14323         * config/arm/arm-ldmstm.ml: New file.
14324
14325         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
14326         if statement which adds extra costs to frame-related expressions.
14327
14328 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14329
14330         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
14331
14332 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
14333
14334         PR target/45142
14335         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
14336         alternative 2.
14337         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
14338         split V4SI operands.
14339
14340 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
14341
14342         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
14343         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
14344         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
14345         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
14346
14347 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
14348
14349         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
14350         LOCAL_INCLUDE_DIR.
14351
14352 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
14353
14354         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
14355         used in the call to optab_for_tree_code.  Fix the second
14356         is_widening_mult_p call.  Check that both unwidened operands
14357         have the same sign.
14358
14359 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
14360
14361         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
14362
14363 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
14364
14365         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
14366
14367 2010-07-30  DJ Delorie  <dj@redhat.com>
14368
14369         * config/rx/predicates.md (rx_constshift_operand): New.
14370         * config/rx/rx.md (zs_cond): New.
14371         (cbranchsi4): Remove mode.
14372         (*cbranchsi4_<code>): Likewise.
14373         (*tstbranchsi4_<code>): New.
14374         (*tstbranchsi4r_<code>): New.
14375         (*tstbranchsi4m_eq): New.
14376         (*tstbranchsi4m_ne): New.
14377         (cbranchsf4): Remove mode.
14378         (*cbranchsf4_<code>): Likewise.
14379
14380 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
14381
14382         * rtlanal.c (simplify_subreg_regno): Don't treat
14383         HARD_FRAME_POINTER_REGNUM specially.
14384
14385 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
14386
14387         * common.opt (-G): Don't define option here.
14388         * config/g.opt: New.
14389         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
14390         rs6000/powerpc and score targets.
14391         * opts.c (common_handle_option): Don't handle -G here.
14392         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
14393         * config/frv/frv.c (frv_handle_option): Handle -G.
14394         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
14395         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
14396         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
14397         * config/mips/mips.c (mips_handle_option): Handle -G.
14398         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
14399         * config/score/score.c (score_handle_option): Handle -G.
14400
14401 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
14402
14403         * config/mmix/mmix.c: Include basic-block.h.
14404
14405 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
14406
14407         PR debug/45055
14408         PR rtl-optimization/45137
14409         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
14410         prototypes.
14411         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
14412         New functions.
14413         * combine.c (next_nonnote_nondebug_insn): Removed.
14414         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
14415         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
14416         * sched-deps.c (sched_analyze_insn): Likewise.
14417         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
14418         * rtlanal.c (canonicalize_condition): Likewise.
14419         * postreload.c (reload_combine_recognize_pattern): Likewise.
14420         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
14421
14422 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
14423
14424         * config/i386/i386.md (int_cond): Remove code iterator.
14425         (fp_cond): Ditto.
14426         (cbranch<mode>4): Use ordered_comparison_operator predicate
14427         for operator0.
14428         (cstore<mode>4): Ditto for operator1.
14429         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
14430         (add<mode>cc): ditto.
14431
14432 2010-07-30  Richard Guenther  <rguenther@suse.de>
14433
14434         PR middle-end/45141
14435         * expr.c (expand_expr_real_1): Check for not handled base address.
14436
14437 2010-07-30  Richard Guenther  <rguenther@suse.de>
14438
14439         * ipa-prop.c (ipa_modify_formal_parameters): Use
14440         build_distinct_type_copy.
14441
14442 2010-07-30  Anthony Green  <green@moxielogic.com>
14443
14444         * config/moxie/rtems.h: New file.
14445         * config.gcc: Add moxie-rtems support.
14446
14447 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
14448
14449         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
14450         df flags as in run_fast_df_dce.
14451
14452 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
14453
14454         Revert:
14455         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
14456
14457         * rtl.def (NOTE): Swap operands 4 and 5.
14458         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
14459         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
14460         Adjust accordingly.
14461         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
14462
14463 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
14464
14465         PR debug/45110
14466         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
14467         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
14468         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
14469         formal parameters.
14470         (gen_decl_die): Change return type to dw_die_ref, return what
14471         gen_formal_parameter_die returned.
14472
14473 2010-07-29  Martin Jambor  <mjambor@suse.cz>
14474
14475         * dbgcnt.def (eipa_sra): New counter.
14476         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
14477
14478 2010-07-29  Xinliang David Li  <davidxl@google.com>
14479
14480         PR bootstrap/45119
14481         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
14482         in revision 162652.
14483
14484 2010-07-29  Richard Guenther  <rguenther@suse.de>
14485
14486         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
14487         (TV_TREE_STORE_CCP): Likewise.
14488         (TV_TREE_REDPHI): Likewise.
14489
14490 2010-07-29  Richard Guenther  <rguenther@suse.de>
14491
14492         * double-int.h (double_int_and_not): New function.
14493         * combine.c (try_combine): Use it.
14494         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
14495
14496 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
14497
14498         PR rtl-optimization/42575
14499         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
14500         Argument AU removed.  All callers changed.  Ignore artificial refs.
14501         Use return value of df_word_lr_simulate_defs to decide whether an insn
14502         is necessary.
14503         (fast_dce): Rename arg to WORD_LEVEL.
14504         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
14505         static.
14506         (pass_fast_rtl_byte_dce): Delete.
14507         * dce.h (run_word_dce): Declare.
14508         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
14509         All callers changed.  Simplify code to only deal with two-word regs.
14510         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
14511         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
14512         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
14513         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
14514         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
14515         (df_word_lr_mark_ref): Declare.
14516         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
14517         df_word_lr_simulate_uses): Declare or rename from byte variants.
14518         (df_byte_lr_simulate_artificial_refs_at_top,
14519         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
14520         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
14521         declarations.
14522         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
14523         (enum df_mm): Delete.
14524         * df-byte-scan.c: Delete file.
14525         * df-problems.c (df_word_lr_problem_data): Renamed from
14526         df_byte_lr_problem_data, all members deleted except for
14527         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
14528         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
14529         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
14530         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
14531         df_byte_lr_confluence_0): Delete functions.
14532         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
14533         callers changed.
14534         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
14535         Don't initialize members that were deleted, don't try to discover data
14536         about registers.  Ignore hard regs.
14537         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
14538         (df_word_lr_mark_ref): New function.
14539         (df_word_lr_bb_local_compute): Renamed from
14540         df_byte_bb_lr_local_compute; all callers changed.  Use
14541         df_word_lr_mark_ref.  Assert that artificial refs don't include
14542         pseudos.  Ignore hard registers.
14543         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
14544         Assert that exit block uses don't contain pseudos.
14545         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
14546         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
14547         callers changed.  Ignore hard regs.
14548         (df_word_lr_transfer_function): Renamed from
14549         df_byte_lr_transfer_function; all callers changed.
14550         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
14551         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
14552         changed.
14553         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
14554         callers changed.
14555         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
14556         confluence operator 0 set to NULL.
14557         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
14558         callers changed.
14559         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
14560         Return bool, true if bitmap changed or insn otherwise necessary.
14561         All callers changed.  Simplify using df_word_lr_mark_ref.
14562         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
14563         all callers changed.  Simplify using df_word_lr_mark_ref.
14564         * lower-subreg.c: Include "dce.h"
14565         (decompose_multiword_subregs): Call run_word_dce if df available.
14566         * Makefile.in (lower-subreg.o): Adjust dependencies.
14567         (df-byte-scan.o): Delete.
14568         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
14569
14570 2010-07-29  Richard Guenther  <rguenther@suse.de>
14571
14572         * tree.c (build_vector): Assert that the vector constant
14573         has enough elements.
14574         (build_vector_from_ctor): Pad with trailing zeros.
14575
14576 2010-07-29  Richard Guenther  <rguenther@suse.de>
14577
14578         PR tree-optimization/45120
14579         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14580         Handle offset in DEREFs properly.
14581         (get_constraint_for_1): Handle MEM_REF offset properly.
14582
14583 2010-07-29  Richard Guenther  <rguenther@suse.de>
14584
14585         PR middle-end/45034
14586         * convert.c (convert_to_integer): Always use an unsigned
14587         type for narrowed negate and bitwise not.
14588
14589 2010-07-29  Ira Rosen  <irar@il.ibm.com>
14590
14591         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
14592         to outer loop when creating reduction epilogue for double reduction,
14593         and switch back to the inner loop when updating the phi nodes.
14594         Update uses of outer loop exit phi nodes in double reduction (instead
14595         of uses of reduction).
14596
14597 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
14598
14599         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
14600         popcount on power7 and parity on power6 systems.
14601         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
14602         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
14603         instructions.
14604
14605         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
14606         (UNSPEC_PARITY): Ditto.
14607         (SFDF): New iterator for SF/DF.
14608         (rreg2): New mode attribute for floating register constraint.
14609         (TARGET_FLOAT): New mode attribute for whether single/double float
14610         is supported.
14611         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
14612         pattern.
14613         (parity<mode>2_cmpb): New insn for parity on power6 and newer
14614         machines.
14615         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
14616         pattern.  Add support for fcpsgn instruction added in power6.
14617         (copysignsf3): Delete.
14618         (copysigndf3): Delete.
14619         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
14620         instead of if_then_else in RTL to avoid problems with -0.
14621
14622         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
14623         of if_then_else to mirror scalar code.
14624         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
14625         rs6000.md.
14626
14627         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
14628         instead of if_then_else.
14629
14630 2010-07-28  Xinliang David Li  <davidxl@google.com>
14631
14632         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
14633         (dump_cand): Dump var_before/after.
14634         (htab_inv_expr_eq): New function.
14635         (htab_inv_expr_hash): New function.
14636         (tree_ssa_iv_optimize_init): Support pseudo invariants.
14637         (add_candidate_1): consider base type precision.
14638         (set_use_iv_cost): New parameter.
14639         (adjust_setup_cost): Use profile information.
14640         (get_address_cost): Do not hard code width in computing address
14641         offset limits.
14642         (compare_aff_trees): New function.
14643         (get_loop_invariant_expr_id): New function.
14644         (get_computation_cost_at): New parameter and use profile information.
14645         (get_computation_cost): New parameter.
14646         (determine_use_iv_cost_generic): Pass new parameter.
14647         (determine_use_iv_cost_address): Ditto.
14648         (determine_use_iv_cost_condition): Ditto.
14649         (autoinc_possible_for_pair): Ditto.
14650         (determine_use_iv_costs): More dumps.
14651         (iv_ca_get_num_inv_exprs): New function.
14652         (iv_ca_recount_cost): Consider loop invariants in register pressure
14653         cost.
14654         (iv_ca_add_use): New parameter.
14655         (iv_ca_dump): Better dumping.
14656         (iv_ca_extend): New parameter.
14657         (try_add_cand_for): Attempt to get better partial solution.
14658         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
14659         (create_new-ivs): More dumps.
14660         (rewrite_use_compare): Ditto.
14661         (free_loop_data): More cleanup.
14662         (treee_ssa_iv_optimize_finalize): Ditto.
14663
14664 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
14665
14666         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
14667         * config/i386/i386.c (ix86_profile_before_prologue): New.
14668         (override_options): Add special handling for -mfentry.
14669         (ix86_function_regparm): Likewise.
14670         (ix86_function_sseregparm): Likewise.
14671         (ix86_frame_pointer_required): Likewise.
14672         (ix86_expand_prologue): Check for ms_hook_prologue.
14673         (x86_function_profiler): Adjust mcount output.
14674         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
14675         * config/i386/i386.opt (mfentry): New.
14676         * doc/invoke.texi (mfentry): Add documentation.
14677         * doc/tm.texi: Regenerated..
14678         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
14679         * final.c (final_start_function): Replace macro
14680         PROFILE_BEFORE_PROLOGUE by target hook.
14681         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14682         * target.def (profile_before_prologue): New hook.
14683         * targhooks.c (default_profile_before_prologue): New.
14684         * targhooks.h (default_profile_before_prologue): New.
14685
14686 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
14687
14688         PR debug/45105
14689         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
14690
14691         PR debug/45103
14692         * dwarf2out.c (dwarf2out_var_location): Always consider
14693         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
14694
14695 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
14696
14697         PR rtl-optimization/45107
14698         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
14699
14700 2010-07-28  Richard Guenther  <rguenther@suse.de>
14701
14702         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
14703         (set_lattice_value): Do not query an old default value.
14704         (get_value_for_expr): New function.  Properly canonicalize
14705         float values.
14706         (ccp_visit_phi_node): Use it.
14707
14708 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
14709
14710         * config/arm/arm.c (arm_pcs_default): Remove static.
14711         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
14712         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
14713         (arm_pcs_default): Declare.
14714
14715 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
14716
14717         * config/rs6000/rs6000.c (rs6000_override_options):
14718         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
14719         ... to darwin_rs6000_override_options.
14720         (rs6000_return_in_memory): Update preceding comment for darwin
14721         64 bit ABI.  Use TARGET_MACHO inline.
14722         (rs6000_darwin64_struct_check_p): New.
14723         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
14724         (function_arg): Likewise.
14725         (rs6000_arg_partial_bytes): Likewise.
14726         (rs6000_function_value): Likewise.
14727
14728 2010-07-28  Andi Kleen  <ak@linux.intel.com>
14729
14730         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
14731
14732 2010-07-28  Richard Guenther  <rguenther@suse.de>
14733
14734         PR middle-end/44903
14735         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
14736         targets try harder to not generate unaligned accesses.
14737
14738 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
14739
14740         PR rtl-optimization/45101
14741         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
14742         for gcse-las.
14743
14744 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
14745
14746         PR tree-optimization/44885
14747         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
14748         with non-aliased component.
14749
14750 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
14751
14752         * config/darwin-driver.c (SWITCH_TAKES_ARG,
14753         WORD_SWITCH_TAKES_ARG): Remove.
14754         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
14755         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
14756         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
14757         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
14758         definitions from gcc.c.
14759         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
14760         defaults.h.
14761         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
14762         Move to defaults.h.
14763         * opts-common.c: Include tm.h.
14764         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
14765         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
14766         Handle more than one argument.  Set canonical_option_num_elements.
14767         (decode_cmdline_options_to_array): Set
14768         canonical_option_num_elements and trailing elements of
14769         canonical_option.
14770         * opts.h (struct cl_decoded_option): Allow four elements in
14771         canonical_option.  Add field canonical_option_num_elements.
14772         * Makefile.in (opts-common.o): Update dependencies.
14773
14774 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
14775
14776         PR middle-end/44790
14777         PR middle-end/44993
14778         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
14779         sure the base has address_mode before adding the offset.
14780
14781 2010-07-27  Xinliang David Li  <davidxl@google.com>
14782
14783         * tree-flow.h (create_mem_ref): Add one new parameter.
14784         * tree-ssa-address.c (create_mem_ref): New parameter.
14785         (addr_to_parts): Ditto.
14786         (move_variant_to_index): New function.
14787         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
14788
14789 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
14790
14791         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
14792         4 and 5.
14793         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
14794         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
14795         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
14796         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
14797         CODE_LABELs and NOTEs.
14798         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
14799         * combine.c (try_combine): Likewise.
14800         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14801         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
14802
14803 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14804
14805         * coretypes.h (struct cl_option_handlers): Declare.
14806         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
14807         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
14808         * langhooks-def.h (lhd_handle_option): Declare.
14809         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
14810         * langhooks.c (lhd_handle_option): New.
14811         * langhooks.h (struct lang_hooks): Update prototype and return
14812         value type of handle_option hook.
14813         * optc-gen.awk: Generate target_flags_explicit definition for the
14814         driver.
14815         * opts-common.c: Include diagnostic.h.
14816         (handle_option): Move from opts.c.  Update prototype and return
14817         value type.  Use handlers structure.
14818         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
14819         handlers structure.
14820         (set_option): Move from opts.c.
14821         * opts.c (common_handle_option): Update prototype and return value
14822         type.  Update calls to handle_option and enable_warning_as_error.
14823         (unknown_option_callback, post_handling_callback,
14824         lang_handle_option, target_handle_option): New.
14825         (handle_option, read_cmdline_option): Move to opts-common.c.
14826         (read_cmdline_options): Update prototype.  Update call to
14827         read_cmdline_option.
14828         (decode_options): Initialize and use handlers structure.
14829         (set_option): Move to opts-common.c.
14830         (enable_warning_as_error): Update prototype.  Update call to
14831         handle_option.
14832         * opts.h (struct cl_option_handler_func, struct
14833         cl_option_handlers): New.
14834         (handle_option, enable_warning_as_error): Update prototypes.
14835         (read_cmdline_option): Declare.
14836         * Makefile.in (opts-common.o): Update dependencies.
14837
14838 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14839
14840         * config/arm/arm.c (params.h): Include.
14841         (arm_override_options): Tune gcse-unrestricted-cost.
14842         * config/arm/t-arm (arm.o): Define dependencies.
14843
14844 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14845
14846         PR target/42495
14847         PR middle-end/42574
14848         * basic-block.h (get_dominated_to_depth): Declare.
14849         * dominance.c (get_dominated_to_depth): New function, use
14850         get_all_dominated_blocks as a base.
14851         (get_all_dominated_blocks): Use get_dominated_to_depth.
14852
14853         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
14854         (hoist_exprs): Remove.
14855         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
14856         (compute_code_hoist_vbeinout): Add debug print outs.
14857         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
14858
14859         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
14860         quadratic behavior.
14861         * params.h (MAX_HOIST_DEPTH): New macro.
14862         * doc/invoke.texi (max-hoist-depth): Document.
14863
14864 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14865
14866         PR rtl-optimization/40956
14867         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
14868         constants.
14869
14870 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14871
14872         PR target/42495
14873         PR middle-end/42574
14874         * config/arm/arm.c (legitimize_pic_address): Use
14875         gen_calculate_pic_address pattern to emit calculation of PIC address.
14876         (will_be_in_index_register): New function.
14877         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
14878         (thumb1_legitimate_address_p): Use it provided !strict_p.
14879         * config/arm/arm.md (calculate_pic_address): New expand and split.
14880
14881 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14882
14883         PR target/42495
14884         PR middle-end/42574
14885         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
14886         * config/arm/arm.md (define_split "J", define_split "K"): Make
14887         IRA/reload friendly.
14888
14889 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14890
14891         * gcse.c (insert_insn_end_basic_block): Update signature, remove
14892         unused checks.
14893         (pre_edge_insert, hoist_code): Update.
14894
14895 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14896
14897         PR target/42495
14898         PR middle-end/42574
14899         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
14900
14901 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14902
14903         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
14904
14905 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14906
14907         PR rtl-optimization/40956
14908         PR target/42495
14909         PR middle-end/42574
14910         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
14911         for hoisting.
14912         (hoist_code): Count occurences in current block too.
14913
14914 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14915
14916         * gcse.c (struct expr:max_distance): New field.
14917         (doing_code_hoisting_p): New static variable.
14918         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
14919         simple expressions, don't change behavior for PRE.  Set max_distance.
14920         (insert_expr_in_table): Set new max_distance field.
14921         (hash_scan_set): Update.
14922         (hoist_expr_reaches_here_p): Stop search after max_distance
14923         instructions.
14924         (find_occr_in_bb): New static function.  Use it in ...
14925         (hoist_code): Calculate sizes of basic block before any changes are
14926         done.  Pass max_distance to hoist_expr_reaches_here_p.
14927         (one_code_hoisting_pass): Set doing_code_hoisting_p.
14928
14929         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
14930         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
14931         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
14932         macros.
14933         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
14934         Document.
14935
14936 2010-07-27  Jeff Law  <law@redhat.com>
14937             Maxim Kuvyrkov  <maxim@codesourcery.com>
14938
14939         * gcse.c (compute_transpout, transpout): Remove, move logic
14940         to prune_expressions.
14941         (compute_pre_data): Move pruning of trapping expressions ...
14942         (prune_expressions): ... here.  New static function.
14943         (compute_code_hoist_data): Use it.
14944         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
14945
14946 2010-07-27  Xinliang David Li  <davidxl@google.com>
14947
14948         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
14949         (rewrite_use_address): Adjust iv update position when needed.
14950
14951 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14952
14953         * dbgcnt.def (hoist_insn): New debug counter.
14954         * gcse.c (hoist_code): Use it.
14955
14956 2010-07-27  Xinliang David Li  <davidxl@google.com>
14957
14958         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
14959         (niter_for_single_dom_exit): Passes additional parameter.
14960         (iv_period): Fix comments.
14961         (may_eliminate_iv): Handles multiple exit loops properly.
14962         (free_tree_niter_desc): New function.
14963         (free_loop_data): Frees up loop iteration descriptors.
14964
14965 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14966
14967         PR target/44542
14968         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
14969         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
14970         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
14971         (expand_one_var): Don't consider DECL_ALIGN for variables for
14972         which expand_one_stack_var_at has been already called.
14973
14974         PR testsuite/44701
14975         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
14976         constraints on IA-64.
14977
14978 2010-07-27  Jie Zhang  <jie@codesourcery.com>
14979
14980         PR target/44290
14981         Revert:
14982         2010-07-23  Jie Zhang  <jie@codesourcery.com>
14983
14984         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
14985         false if ! tree_versionable_function_p.
14986
14987 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14988
14989         * dwarf2out.c (add_data_member_location_attribute): Use
14990         add_AT_unsigned instead of add_AT_int if offset is non-negative.
14991
14992 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
14993
14994         * postreload.c (try_replace_in_use): New static function.
14995         (reload_combine_recognize_const_pattern): Use it here.  Allow
14996         substituting into a final add insn, and substituting into a memory
14997         reference in an insn that sets the reg.
14998
14999 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
15000
15001         * common.opt (o): Add MissingArgError.
15002         * doc/options.texi (MissingArgError): Document.
15003         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
15004         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
15005         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
15006         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
15007         * langhooks.h (struct lang_hooks): Remove missing_argument.
15008         * optc-gen.awk: Handle MissingArgError and output new structure
15009         field initializers.
15010         * opts.c (read_cmdline_option): Use missing_argument_error field
15011         instead of missing_argument langhook.
15012         * opts.h (struct cl_option): Add missing_argument_error field.
15013         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
15014
15015 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
15016
15017         PR target/29090
15018         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
15019         Darwin64 ABI, for zero-sized objects.
15020
15021 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
15022
15023         PR target/35491
15024         PR target/29090
15025
15026         Merge from Apple local 4.2.1.
15027         2005-05-11  Stan Shebs  <shebs@apple.com>
15028         Fix 64-bit varargs for Darwin (Radar 4028089).
15029         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
15030         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
15031         Add argument, add case for 8-byte register half-filled with a float.
15032         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
15033         single-precision floats specially.
15034
15035 2010-07-27  Ira Rosen  <irar@il.ibm.com>
15036
15037         PR tree-optimization/44152
15038         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
15039         complex numbers for further check.
15040         (vect_supported_load_permutation_p): Check nodes with
15041         complex numbers.
15042
15043 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
15044
15045         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
15046         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
15047         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
15048         (LANG_HOOKS_INITIALIZER): Add new hooks.
15049         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
15050         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
15051         and complain_wrong_lang_p.  Update init_options prototype.
15052         * c-objc-common.c (c_initialize_diagnostics): First call
15053         c_common_initialize_diagnostics.
15054         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
15055         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
15056         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
15057         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
15058         (hook_uint_void_0): New.
15059         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
15060         (hook_uint_void_0): New.
15061         * opts-common.c (decode_cmdline_option,
15062         decode_cmdline_options_to_array): Also fill in canonical_option field.
15063         * opts.c (complain_wrong_lang): Use langhook to determine whether
15064         to complain instead of special-casing LTO.
15065         (decode_options): Separate lang_mask determination with
15066         option_lang_mask hook from call of init_options hook.
15067         * opts.h (struct cl_decoded_option): Add canonical_option.
15068
15069 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
15070
15071         PR tree-optimization/45083
15072         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
15073
15074 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
15075
15076         * postreload.c (reload_combine_recognize_const_pattern): Move test
15077         for limiting the insn movement to the right scope.
15078
15079         PR rtl-optimization/45051
15080         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
15081         than reg_mentioned_p.
15082
15083 2010-07-26  Richard Henderson  <rth@redhat.com>
15084
15085         PR target/44132
15086         * tree-emutls.c: New file.
15087         * Makefile.in (OBJS-common): Add it.
15088         * tree-pass.h (pass_ipa_lower_emutls): Declare.
15089         * passes.c (init_optimization_passes): Add it.
15090
15091         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
15092         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
15093         * expr.c (emutls_var_address): Delete.
15094         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
15095         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
15096         (emutls_finish): Delete.
15097         * toplev.c (compile_file): Don't call it.
15098         * tree.h (emutls_decl): Delete.
15099         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
15100         (emutls_finish, emutls_finalize_control_var): Delete.
15101         (emutls_object_type): Move to tree-emutls.c.
15102         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
15103         default_emutls_var_fields, get_emutls_object_type,
15104         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
15105         default_emutls_var_init): Likewise.
15106         (get_variable_section): Don't special case emutls.
15107         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
15108         default_elf_select_section, default_unique_section,
15109         default_encode_section_info): Likewise.
15110         * varpool.c (decide_is_variable_needed): Likewise.
15111         * gimple-iterator.c (update_call_edge_frequencies): New
15112         (gsi_insert_on_edge_immediate): Use it.
15113         (gsi_insert_seq_on_edge_immediate): Likewise.
15114         (gsi_commit_one_edge_insert): Likewise.
15115
15116         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
15117         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
15118         (x86_64_elf_unique_section): Likewise.
15119
15120 2010-07-26  Jan Hubicka  <jh@suse.cz>
15121
15122         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
15123         GTY((skip)).
15124
15125 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
15126
15127         * target.def (output_source_filename): New hook.
15128         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
15129         * doc/tm.texi: Regenerate.
15130         * toplev.c (output_file_directive) Remove function.
15131         * toplev.h (output_file_directive) Remove.
15132         * output.h (default_asm_output_source_filename,
15133         output_file_directive): Declare.
15134         * varasm.h (default_asm_output_source_filename,
15135         output_file_directive): New functions.
15136
15137         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
15138         * config/mips/mips-protos.h (mips_output_filename): Remove.
15139         * config/mips/mips.c (mips_output_filename): Make Static.
15140         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
15141
15142 2010-07-26  Richard Guenther  <rguenther@suse.de>
15143
15144         PR tree-optimization/43784
15145         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
15146         if the destination is used by the call.
15147
15148 2010-07-26  Richard Guenther  <rguenther@suse.de>
15149
15150         PR middle-end/45073
15151         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
15152         SSA updating on being in SSA form.
15153
15154 2010-07-26  Richard Guenther  <rguenther@suse.de>
15155
15156         PR middle-end/45056
15157         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
15158
15159 2010-07-26  Richard Guenther  <rguenther@suse.de>
15160
15161         PR tree-optimization/45071
15162         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
15163         adjust op->opcode.
15164
15165 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
15166
15167         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
15168         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
15169         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
15170         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
15171         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
15172         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
15173         save_r31, return_r31, save_interrupt, return_interrupt,
15174         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
15175         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
15176         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
15177         new ABI requirements.
15178         (save_r6_r9, L_callt_save_r6_r9): Remove.
15179         * config/v850/predicates.md (even_reg_operand, disp23_operand,
15180         const_float_1_operand const_float_0_operand): New Predicates.
15181         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
15182         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
15183         * config/v850/t-v850: Update multilibs for new target variants.
15184         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
15185         * config/v850/t-v850e: Likewise.
15186         * config/v850/v850.c (v850_issue_rate): New.
15187         (v850_strict_argument_naming): New.
15188         (function_arg): Modify to generate a different ABI.
15189         (print_operand): Update case 'z' to support float modes.
15190         (output_move_single): Modify to generate appropriate and better
15191         assembly.
15192         (v850_float_z_comparison_operator, v850_select_cc_mode,
15193         v850_float_nz_comparison_operator,  v850_gen_float_compare,
15194         v850_gen_compare): New functions to support comparison of float values.
15195         (ep_memory_offset): Add support for V850E2 targets.
15196         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
15197         (INTERRUPT_REGPARM_NUM): Remove.
15198         (compute_register_save_size): Add extra case to save/restore long call.
15199         (use_prolog_function): New function to support prologue.
15200         (expand_prologue): Add support for V850E2 targets and modified
15201         as per the current ABI requirements.
15202         (expand_epilogue): Likewise.
15203         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
15204         (construct_save_jarl): Likewise.
15205         (construct_dispose_instruction): Update as per the current ABI
15206         requirements.
15207         (construct_prepare_instruction): Likewise.
15208         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
15209         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
15210         (CPP_SPEC): Updated to support v850e2 targets.
15211         (STRICT_ALIGNMENT): Modified.
15212         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
15213         (FIXED_REGISTERS): Likewise.
15214         (CALL_USED_REGISTERS): Likewise.
15215         (CONDITIONAL_REGISTER_USAGE): Updated.
15216         (HARD_REGNO_MODE_OK): Updated.
15217         (reg_class): Updated to add even registers.
15218         (REG_CLASS_NAMES): Likewise.
15219         (REG_CLASS_CONTENTS): Likewise.
15220         (REGNO_REG_CLASS): Updated for CC registers.
15221         (REG_CLASS_FROM_LETTER): Added support for even registers.
15222         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
15223         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
15224         ARG_POINTER_REGNUM): Updated.
15225         (FUNCTION_ARG_ADVANCE): Define.
15226         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
15227         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
15228         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
15229         (GO_IF_LEGITIMATE_ADDRESS): Updated.
15230         (SELECT_CC_MODE): Define.
15231         (REGISTER_NAMES): Updated to add psw and fcc registers.
15232         (ADDITIONAL_REGISTER_NAMES): Updated.
15233         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
15234         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
15235         * config/v850/v850.md (define_constants): Define new constants.
15236         (type): Update store,bit1,macc,div,fpu and single attributes.
15237         (cpu): New attribute.
15238         (cc): Add set_z attribute.
15239         (unsign23byte_load, sign23byte_load, unsign23hword_load,
15240         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
15241         23word_store): New instructions for 23-bit displacement load and store.
15242         (movqi_internal, movhi_internal): Update the attributes.
15243         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
15244         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
15245         the attributes.
15246         (v850_tst1): Modified using CC_REGNUM.
15247         (tstsi): Remove.
15248         (cmpsi): Modified as define_expand from define_insn.
15249         (cmpsi_insn, cmpsf, cmpdf): New instructions.
15250         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
15251         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
15252         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
15253         one_cmplsi2): Clobber the CC_REGNUM register.
15254         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
15255         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
15256         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
15257         (setf_insn, set_z_insn, set_nz_insn): New instructions for
15258         v850e2v3 target.
15259         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
15260         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
15261         targets.
15262         (sasf_1, sasf_2): Remove.
15263         (sasf): New instruction.
15264         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
15265         targets. CC_REGNUM register is clobbered and attributes are
15266         updated.
15267         (branch_z_normal, branch_z_invert, branch_nz_normal,
15268         branch_nz_invert): New branch related instructions.
15269         (jump): Updated the attributes.
15270         (switch): Update to support new targets. CC_REGNUM register is
15271         clobbered and attributes are updated.
15272         (call_internal_short, call_internal_long, call_value_internal_short,
15273         call_value_internal_long): Updated the attributes.
15274         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
15275         clobbered and attributes are updated.
15276         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
15277         Update to support new targets. CC_REGNUM register is clobbered.
15278         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
15279         instructions.
15280         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
15281         are updated.
15282         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
15283         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
15284         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
15285         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
15286         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
15287         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
15288         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
15289         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
15290         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
15291         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
15292         point instructions defined for V850e2v3 target.
15293         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
15294         Add support for V850E2 targets and CC_REGNUM register is clobbered.
15295         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
15296         support for new targets.
15297         * config/v850/v850-modes.def: New file.
15298         * config/v850/v850.opt(mstrict-align): Remove.
15299         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
15300         mv850e2v3): New command line options for V850.
15301         * config.gcc: Update the newly added files.
15302         * doc/invoke.texi: Update the newly added command line options for
15303         V850 target.
15304
15305 2010-07-26  Richard Guenther  <rguenther@suse.de>
15306
15307         PR tree-optimization/45052
15308         * ipa-pure-const.c (check_stmt): Check volatileness.
15309
15310 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
15311
15312         PR target/44707
15313         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
15314         * config/sparc/sparc.c: Include reload.h.
15315         (legitimize_tls_address): Rename into...
15316         (sparc_legitimize_tls_address): ...this.
15317         (legitimize_pic_address): Rename into...
15318         (sparc_legitimize_pic_address): ...this.
15319         (sparc_expand_move): Adjust to above renaming.
15320         (sparc_tls_referenced_p): Likewise.
15321         (sparc_legitimize_tls_address): Likewise.
15322         (sparc_legitimize_pic_address): Likewise.
15323         (sparc_legitimize_address): Likewise.
15324         (sparc_output_mi_thunk): Likewise.
15325         (sparc_legitimize_reload_address): New global function.  Recognize
15326         (lo_sum (high ...) ...) patterns generated by earlier passes.
15327         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
15328
15329 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
15330
15331         PR target/44484
15332         * config/sparc/predicates.md (memory_reg_operand): Delete.
15333         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
15334         (*sync_compare_and_swap): Encode the address form in the pattern.
15335         (*sync_compare_and_swapdi_v8plus): Likewise.
15336
15337 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
15338
15339         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
15340         Streamline paragraph on compatibility with the system compiler.
15341
15342 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
15343
15344         PR middle-end/45035
15345         * alias.c (true_dependence_1): Fix thinko in merge of old
15346         true_dependence and canon_true_dependence.
15347
15348 2010-07-23  Jan Hubicka  <jh@suse.cz>
15349
15350         * lto-streamer-out.c (write_symbol): Fix visibilities of external
15351         references.
15352
15353 2010-07-23  Le-Chun Wu  <lcwu@google.com>
15354
15355         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
15356         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
15357         and an unnecessary assignment.
15358         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
15359         self-assign warning.
15360         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
15361         unnecessary self-init.
15362
15363 2010-07-23  Richard Guenther  <rguenther@suse.de>
15364
15365         PR lto/43071
15366         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
15367         for -flto and -fwhopr.
15368
15369 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
15370
15371         PR target/41943
15372         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
15373         (stmp-int-hdrs): Prefix/postfix headers by include_next.
15374         * config.gcc (user_headers_inc_next_pre): New.
15375         (user_headers_inc_next_post): Likewise.
15376         (*-w64-mingw*): Use for float.h post-fixing, and for
15377         stddef.h/stdarg.h pre-fixing by include_next.
15378         * configure.ac (user_headers_inc_next_post): New.
15379         (user_headers_inc_next_pre): New.
15380         * configure: Regenerated.
15381
15382 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15383
15384         * configure.ac: Don't disable TLS on Solaris 8/9 by default
15385         Set tga_func for Solaris 2/x86 resp. SPARC.
15386         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
15387         (LIB_THREAD_LDFLAGS_SPEC): Define.
15388         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
15389         * configure: Regenerate.
15390         * config.in: Regenerate.
15391         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
15392         -pthread, -threads, LIB_TLS_SPEC with -pthread.
15393         * doc/install.texi (Specific, *-*-solaris2*): Document use of
15394         alternate thread libraries on Solaris 8.
15395         Document TLS patch requirements.
15396         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
15397         Document tls.
15398
15399         PR target/18788
15400         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
15401         -shared.
15402
15403 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
15404
15405         * tree.h (struct tree_base): Add nameless_flag bitfield.
15406         (TYPE_NAMELESS, DECL_NAMELESS): Define.
15407         * omp-low.c (create_omp_child_function, scan_omp_parallel,
15408         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
15409         DECL_ARTIFICIAL where needed.
15410         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
15411         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
15412         has DECL_NAMELESS set.
15413
15414 2010-07-23  Martin Jambor  <mjambor@suse.cz>
15415
15416         PR tree-optimization/44915
15417         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
15418         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
15419         (analyze_function): Likewise.
15420
15421 2010-07-23  Martin Jambor  <mjambor@suse.cz>
15422
15423         PR tree-optimization/44914
15424         * tree-sra.c (sra_modify_function_body): Return true if CFG was
15425         changed, add purging dead eh edges.
15426         (ipa_sra_modify_function_body): Return true if CFG was changed,
15427         simplify purging dead eh edges.
15428         (modify_function): Return true if CFG was changed.
15429         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
15430         was changed.
15431         (ipa_early_sra): Likewise.
15432
15433 2010-07-23  Jie Zhang  <jie@codesourcery.com>
15434
15435         PR target/44290
15436         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
15437         if "naked".
15438         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
15439         false if ! tree_versionable_function_p.
15440
15441 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
15442
15443         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
15444         * ipa-pure-const.c (special_builtlin_state): Remove
15445         BUILT_IN_ARGS_INFO case.
15446         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
15447         * builtins.c (expand_builtin): Likewise.
15448         (expand_builtin_args_info): Remove.
15449         * doc/tm.texi (__builtin_args_info): Remove.
15450         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
15451         * doc/tm.text.in: Likewise.
15452
15453 2010-07-23  Richard Guenther  <rguenther@suse.de>
15454
15455         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
15456         (lto_symtab_merge_decls_2): Likewise.
15457         * tree-ssa.c (useless_type_conversion_p): Likewise.
15458         * lto-streamer-in.c (input_gimple_stmt): Likewise.
15459         * gimple.c (gtc_visited2, gtc_ob2): Remove.
15460         (struct type_pair_d): Make same_p an array indexed by mode.
15461         Update comment.
15462         (lookup_type_pair): Update initialization.
15463         (struct sccs): Adjust same_p type.
15464         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
15465         Adjust.
15466         (print_gimple_types_stats): Likewise.
15467         * gimple.h (enum gtc_mode): New.
15468         (gimple_types_compatible_p): Adjust prototype.
15469
15470 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
15471
15472         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
15473         again after processing insn.
15474
15475 2010-07-23  Jie Zhang  <jie@codesourcery.com>
15476
15477         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
15478         proper words when !tree_versionable_function_p.
15479
15480 2010-07-23  Richard Guenther  <rguenther@suse.de>
15481
15482         PR tree-optimization/45037
15483         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
15484
15485 2010-07-23  Jie Zhang  <jie@codesourcery.com>
15486
15487         * doc/extend.texi: Remove IP2K from the description of naked attribute.
15488         Add MCORE instead.
15489
15490 2010-07-10  Andi Kleen  <ak@linux.intel.com>
15491
15492         PR lto/44992
15493         * lto-opts.c (lto_write_options): Add NULL file_data argument to
15494         lto_get_section_name.
15495         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15496         * lto-streamer-out.c (produce_asm): Likewise.
15497         (copy_function): Likewise.
15498         (produce_symtab): Likewise.
15499         (produce_asm_for_decls): Likewise.
15500         * lto-streamer.c (lto_get_section_name): Add file_data argument.
15501         Rewrite to add random postfix to LTO sections.
15502         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
15503         (lto_get_section_name): Add file_data argument to prototype.
15504
15505 2010-07-10  Andi Kleen  <ak@linux.intel.com>
15506
15507         * lto-section-in.c (lto_section_name): Synchronize names
15508         with lto_get_section_name.
15509
15510 2010-07-10  Andi Kleen  <ak@linux.intel.com>
15511
15512         * lto-opts.c (lto_read_file_options): Check for missing section.
15513
15514 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
15515
15516         * ira.c (check_allocation): Correctly handle the case where an allocno
15517         with two objects was allocated to a single reg.
15518
15519 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
15520
15521         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
15522         (is_widening_mult_p): Likewise.
15523         (convert_to_widen): Use them.
15524         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
15525         well as integer ones.
15526
15527 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
15528
15529         * alias.c (true_dependence_1): New function, merged version of
15530         true_dependence and canon_true_dependence.
15531         (true_dependence): Simplify.
15532         (canon_true_dependence): Simplify.
15533
15534 2010-07-22  Richard Henderson  <rth@redhat.com>
15535
15536         PR target/45027
15537         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
15538         of V4SFmode for the SSE saves; increase stack alignment if needed.
15539         (ix86_gimplify_va_arg): Don't increase stack alignment here.
15540
15541 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
15542
15543         PR bootstrap/45028
15544         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
15545         call cprop_find_used_regs again via note_uses.
15546
15547 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
15548
15549         * alias.c (get_alias_set): Fix formatting issues.
15550
15551 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
15552
15553         PR middle-end/44878
15554         * stmt.c (expand_value_return):  Call promote_function_mode with
15555         a for_return argument of 2 when returning by reference.
15556
15557 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
15558
15559         PR debug/45024
15560         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
15561         unit DIE if we can find the scope DIE.
15562
15563 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
15564
15565         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
15566         changed.  Initialize OBJECT_SUBWORD.
15567         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
15568         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
15569         all callers changed.
15570         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
15571         (finish_allocno): Likewise.
15572         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
15573         (remove_low_level_allocnos): Likewise.
15574         (update_bad_spill_attribute): Likewise.
15575         (setup_min_max_allocno_live_range_point): Likewise.
15576         (sort_conflict_id_map): Likewise.
15577         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
15578         (ior_hard_reg_conflicts): New function.
15579         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
15580         (compress_conflict_vecs): Iterate over objects, not allocnos.
15581         (ira_add_live_range_to_object): New function.
15582         (object_range_compare_func): Renamed from allocno_range_compare_func.
15583         All callers changed.
15584         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
15585         subobjects, widen the min/max range of the lowest-order object to
15586         potentially include all other such low-order objects.
15587         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
15588         (check_allocation): Likewise.  Use more fine-grained tests for register
15589         conflicts.
15590         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
15591         allocno subobjects.
15592         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
15593         choices about which bits to set in each set.  Don't use
15594         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
15595         using the multiple sets we computed.
15596         (push_allocno_to_stack): Iterate over allocno subobjects.
15597         (all_conflicting_hard_regs_coalesced): New static function.
15598         (setup_allocno_available_regs_num): Use it.
15599         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
15600         subobjects.
15601         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
15602         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15603         by ALLOCNO_NUM_OBJECTS.
15604         (calculate_spill_cost): Likewise.
15605         (color_pass): Express if statement in a more normal way.
15606         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
15607         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
15608         (setup_slot_coalesced_allocno_live_ranges): Likewise.
15609         (allocno_reload_assign): Likewise.
15610         (ira_reassign_pseudos): Likewise.
15611         (fast_allocation): Likewise.
15612         * ira-conflicts.c (build_conflict_bit_table): Likewise.
15613         (print_allocno_conflicts): Likewise.
15614         (ira_build_conflicts): Likewise.
15615         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
15616         callers changed.  Test subword 0 of each allocno for conflicts.
15617         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
15618         callers changed.  Iterate over allocno subobjects.
15619         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
15620         * ira-int.h (struct ira_allocno): New member: num_objects.
15621         Rename object to objects and change it into an array.
15622         (ALLOCNO_OBJECT): Add new argument N.
15623         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
15624         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
15625         (ior_hard_reg_conflicts): Declare.
15626         (ira_add_live_range_to_object): Declare.
15627         (ira_allocno_object_iterator): New.
15628         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
15629         (FOR_EACH_ALLOCNO_OBJECT): New macro.
15630         * ira-lives.c (objects_live): Renamed from allocnos_live; all
15631         uses changed.
15632         (allocnos_processed): New sparseset.
15633         (make_object_born): Renamed from make_allocno_born; take an
15634         ira_object_t argument.  All callers changed.
15635         (make_object_dead): Renamed from make_allocno_dead; take an
15636         ira_object_t argument.  All callers changed.
15637         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
15638         All callers changed.
15639         (mark_pseudo_regno_live): Iterate over allocno subobjects.
15640         (mark_pseudo_regno_dead): Likewise.
15641         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
15642         functions.
15643         (mark_ref_live): Detect subword accesses and call
15644         mark_pseudo_regno_subword_live as appropriate.
15645         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
15646         (process_bb_nodes_live): Deal with object-related updates first; set
15647         and test bits in allocnos_processed to avoid computing allocno
15648         statistics more than once.
15649         (create_start_finish_chains): Iterate over objects, not allocnos.
15650         (print_object_live_ranges): New function.
15651         (print_allocno_live_ranges): Use it.
15652         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
15653         and objects_live.
15654
15655 2010-07-22  Richard Guenther  <rguenther@suse.de>
15656
15657         PR lto/42451
15658         * gimple.c (gtc_next_dfs_num): New global.
15659         (struct sccs): Make value a union, add integer same_p member.
15660         (gtc_visit): New function.
15661         (gimple_types_compatible_p_1): New function, split out from ...
15662         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
15663         (iterative_hash_gimple_type): Adjust for sccs change.
15664
15665 2010-07-22  Martin Jambor  <mjambor@suse.cz>
15666
15667         PR tree-optimization/44891
15668         * tree-sra.c: Include gimple-pretty-print.h.
15669         (replace_uses_with_default_def_ssa_name): Renamed to
15670         get_repl_default_def_ssa_name, return the new SSA name instead of
15671         replacing the old one.
15672         (sra_modify_assign): Dump a message when removing a load, if the LHS
15673         is an SSA_NAME, do not do any propagation, just set the RHS to a
15674         default definition SSA NAME, type convert if necessary.
15675         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
15676
15677 2010-07-22  Richard Guenther  <rguenther@suse.de>
15678
15679         PR tree-optimization/45017
15680         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
15681         TYPE_PRECISION of integral types in addition to size.
15682
15683 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15684
15685         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
15686         when no C library is specified.
15687
15688 2010-07-22  Martin Jambor  <mjambor@suse.cz>
15689
15690         * ipa-prop.h (struct ipa_node_params): Updated comment.
15691         (struct ipa_edge_args): Likewise.
15692         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
15693
15694 2010-07-22  Martin Jambor  <mjambor@suse.cz>
15695
15696         * cgraphunit.c (verify_edge_count_and_frequency): New function.
15697         (verify_cgraph_node): Verify frequencies of indirect edges.
15698         * tree-inline.c (tree_function_versioning): Update frequencies of
15699         indirect edges.
15700
15701 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15702
15703         PR target/43698
15704         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
15705         Set *arm_rev to be predicable.
15706
15707 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
15708
15709         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
15710         (LINK_COMMAND_SPEC_A): New.
15711         (DSYMUTIL): New.
15712         (DSYMUTIL_SPEC): New.
15713         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
15714         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
15715
15716 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
15717
15718         * calls.c (load_register_parameters): Move check for zero
15719         sized items so that only the call to
15720         mem_overlaps_already_clobbered_arg_p () is protected.
15721
15722 2010-07-22  Jan Hubicka  <jh@suse.cz>
15723
15724         * ipa-pure-const.c (varying_state): Break out from ...
15725         (get_function_state): ... here; always return varying_state
15726         when state would be NULL otherwise.
15727         (remove_node_data): Do not free varying state.
15728
15729 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
15730
15731         PR bootstrap/44970
15732         PR middle-end/45009
15733         * postreload.c: Include "target.h".
15734         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
15735         into account.
15736         (fixup_debug_insns): Don't copy the rtx.
15737         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
15738         Don't copy when replacing.  Call fixup_debug_insns in the case where
15739         we merged one add with another.
15740         (reload_combine_recognize_pattern): Fail if there aren't any uses.
15741         Try harder to determine whether we're picking a valid index register.
15742         Don't set store_ruid for an insn we're going to scan in the
15743         next iteration.
15744         (reload_combine): Remove unused code.
15745         (reload_combine_note_use): When updating use information for
15746         an old insn, ignore a use that occurs after store_ruid.
15747         * Makefile.in (postreload.o): Update dependencies.
15748
15749         * function.c (record_hard_reg_sets): Restrict the previous change
15750         to cases where the incoming nominal mode is the same as the
15751         incoming promoted mode and everything happens in MODE_INT.
15752
15753 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
15754
15755         PR debug/45015
15756         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
15757         ASM_OPERANDS_OUTPUT_IDX.
15758         (adjust_insn): For inline asm with multiple sets ensure first
15759         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
15760         the insn.
15761
15762 2010-07-21  Richard Henderson  <rth@redhat.com>
15763
15764         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
15765         comparison for avoiding xmm register saves.  Emit the xmm register
15766         saves explicitly.
15767         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
15768         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
15769         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
15770         Remove patterns and the associated splitters.
15771
15772 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
15773
15774         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
15775         and imagine parts of a complex, so that they can have the same
15776         base and fall into the same group.
15777
15778 2010-07-21  Richard Guenther  <rguenther@suse.de>
15779
15780         PR lto/45018
15781         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
15782         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
15783         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
15784
15785 2010-07-21  Martin Jambor  <mjambor@suse.cz>
15786
15787         PR tree-optimization/44900
15788         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
15789         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
15790
15791 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
15792
15793         PR middle-end/44738
15794         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
15795
15796 2010-07-21  Richard Guenther  <rguenther@suse.de>
15797
15798         PR middle-end/45013
15799         * tree-ssa.c (useless_type_conversion_p): Dispatch to
15800         gimple_types_compatible_p only when in lto.
15801         * gimple.c (gimple_types_compatible_p): Use canonical types
15802         to speed up comparison.
15803
15804 2010-07-21  Richard Guenther  <rguenther@suse.de>
15805
15806         * tree-flow.h (referenced_var): Move define ...
15807         * tree-flow-inline.h (referenced_var): ... here as an inline
15808         function.  Assert here ...
15809         * tree-dfa.c (referenced_var_lookup): ... instead of here.
15810         * tree-ssa.c (maybe_optimize_var): Check if the variable
15811         is in referenced vars.
15812         (execute_update_addresses_taken): Remove old broken check.
15813         * gimple-pretty-print.c (pp_points_to_solution): Use
15814         referenced_var_lookup.
15815         * tree-into-ssa.c (dump_decl_set): Likewise.
15816
15817 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
15818
15819         PR debug/45003
15820         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
15821         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
15822         ZERO_EXTEND here.
15823
15824 2010-07-20  Richard Henderson  <rth@redhat.com>
15825
15826         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
15827
15828 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
15829
15830         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
15831         computing the sum of the stack pointer and a large constant.
15832         * config/arm/constraints.md (M): Remove superfluous parentheses.
15833         (Pc): New constraint.
15834
15835 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
15836
15837         PR debug/45006
15838         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
15839         operand's type if exp is tcc_unary class tree.
15840
15841 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
15842
15843         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
15844         Reverse sense of if_then_else condition.
15845
15846 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
15847
15848         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
15849         * config/rs6000/rs6000.c (rs6000_override_options): Set
15850         rs6000_block_move_inline_limit appropriately.
15851         (expand_block_move): Use rs6000_block_move_inline_limit.
15852         * doc/invoke.texi (mblock-move-inline-limit): Document.
15853
15854 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
15855
15856         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
15857         FROM and TO.  All callers changed.  Don't look for tracked uses,
15858         just scan the RTL for DEBUG_INSNs and substitute.
15859         (reload_combine_recognize_pattern): Call fixup_debug_insns.
15860         (reload_combine): Ignore DEBUG_INSNs.
15861
15862 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
15863
15864         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
15865         depth to 8 from 5.
15866
15867         PR debug/45003
15868         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
15869         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
15870         instead of the result's type.
15871
15872 2010-07-20  Richard Guenther  <rguenther@suse.de>
15873
15874         PR tree-optimization/44977
15875         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
15876         SSA form.
15877
15878 2010-07-20  Richard Guenther  <rguenther@suse.de>
15879
15880         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
15881         (lto_symtab_merge_decls_2): Likewise.
15882         * gimple.h (gimple_types_compatible_p): Declare.
15883         * gimple.c (gimple_queue_type_fixup): Remove.
15884         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
15885         (gimple_compatible_complete_and_incomplete_type_p): New function.
15886         (gimple_types_compatible_p): Adjust.
15887         (gimple_register_type): Remove type fixup code.
15888         (print_gimple_types_stats): Adjust.
15889         (free_gimple_type_tables): Likewise.
15890         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
15891         * tree-ssa.c (useless_type_conversion_p): Likewise.
15892
15893 2010-07-20  Richard Guenther  <rguenther@suse.de>
15894
15895         PR middle-end/44971
15896         PR middle-end/44988
15897         * tree-ssa.c (maybe_optimize_var): New function split out from ...
15898         (execute_update_addresses_taken): ... here.
15899         (non_rewritable_mem_ref_base): Likewise.
15900         (execute_update_addresses_taken): Do not iterate over all referenced
15901         vars but just all local decls and parms.
15902         Properly check call and asm arguments and rewrite call arguments.
15903
15904 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
15905
15906         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
15907         to top level.
15908         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
15909         definitions ...
15910         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
15911         New macro.
15912         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
15913
15914 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15915
15916         * gengtype.c (start_root_entry): New function, split out from
15917         write_root.  Check whether V is null and raise an error if so.
15918         (write_field_root): Check for V being null.  Don't raise an error here;
15919         set V to null instead.
15920         (write_root): Update comment above function.  Use start_root_entry.
15921
15922 2010-07-19  Xinliang David Li  <davidxl@google.com>
15923
15924         PR testsuite/44932
15925         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
15926         def edges.
15927         (find_uninit_use): Add dump.
15928         (is_use_properly_guarded): Ditto.
15929         (warn_uninitialized_phi): Ditto.
15930         (execute_late_warn_uninitialized): Ditto.
15931
15932 2010-07-19  Richard Guenther  <rguenther@suse.de>
15933
15934         PR middle-end/44941
15935         * expr.c (emit_block_move_hints): Move zero size check first.
15936         Move asserts to more useful places.
15937         * calls.c (load_register_parameters): Check for zero size.
15938
15939 2010-07-19  Richard Henderson  <rth@redhat.com>
15940
15941         * tree-optimize.c (execute_all_early_local_passes): New.  Change
15942         cgraph_state here ...
15943         (execute_early_local_optimizations): ... not here.  Remove.
15944         (pass_early_local_passes, pass_all_early_optimizations): Update.
15945
15946 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
15947
15948         * postreload.c (reload_combine_closest_single_use): Ignore the
15949         number of uses for DEBUG_INSNs.
15950         (fixup_debug_insns): New static function.
15951         (reload_combine_recognize_const_pattern): Use it.  Don't let the
15952         main loop be affected by DEBUG_INSNs.
15953         Really disallow moving adds past a jump insn.
15954         (reload_combine_recognize_pattern): Don't update use_ruid here.
15955         (reload_combine_note_use): Do it here.
15956         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
15957
15958 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
15959
15960         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
15961         of a loop.
15962         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
15963
15964 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
15965
15966         * config/i386/darwin.h: Define darwin_emit_branch_islands.
15967         (TARGET_MACHO_BRANCH_ISLANDS): New.
15968         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
15969         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
15970         default value.
15971         * config/i386/i386.c (output_pic_addr_const): Do not emit
15972         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
15973         (x86_output_mi_thunk): Adjust symbol creation.
15974         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
15975         Remove out of date comment.
15976         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
15977         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
15978         (DARWIN_GENERATE_ISLANDS): Ditto.
15979         (output_call):  Do not emit branch islands unless
15980         darwin_emit_branch_islands is set.
15981         * config/darwin.c: Declare darwin_emit_branch_islands.
15982         (machopic_indirect_data_reference): Do not emit unless
15983         darwin_emit_branch_islands is set.
15984         (darwin_override_options): Set darwin_emit_branch_islands
15985         where it is needed.
15986         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
15987
15988 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15989
15990         * doc/sourcebuild.texi (Effective-Target Keywords): Document
15991         sse_runtime, sse2_runtime.
15992
15993 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
15994
15995         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
15996         low half of a single-register SCmode return value before ORing
15997         it with the high half.
15998         * config/mips/mips16.S (MERGE_GPRf): Likewise.
15999
16000 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16001
16002         PR target/44805
16003         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
16004         on all targets.
16005
16006 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
16007
16008         PR target/42235
16009         * postreload.c (reload_cse_move2add): Return bool, true if anything.
16010         changed.  All callers changed.
16011         (move2add_use_add2_insn): Likewise.
16012         (move2add_use_add3_insn): Likewise.
16013         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
16014         reload_combine.
16015         (RELOAD_COMBINE_MAX_USES): Bump to 16.
16016         (last_jump_ruid): New static variable.
16017         (struct reg_use): New members CONTAINING_MEM and RUID.
16018         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
16019         (reload_combine_split_one_ruid, reload_combine_split_ruids,
16020         reload_combine_purge_insn_uses, reload_combine_closest_single_use
16021         reload_combine_purge_reg_uses_after_ruid,
16022         reload_combine_recognize_const_pattern): New static functions.
16023         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
16024         is true for our reg and that we have available index regs.
16025         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
16026         callers changed.  Use them to initialize fields in struct reg_use.
16027         (reload_combine): Initialize last_jump_ruid.  Be careful when to
16028         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
16029         Call reload_combine_recognize_const_pattern.
16030         (reload_combine_note_store): Update REAL_STORE_RUID field.
16031
16032 2010-07-16  Jason Merrill  <jason@redhat.com>
16033
16034         * Makefile.in (opts-common.o): Depend on options.h.
16035
16036 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
16037
16038         * tree.c (build_common_builtin_nodes): Use build_function_type_list
16039         instead of build_function_type.
16040         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
16041         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
16042
16043 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
16044
16045         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
16046         do all the work.
16047         (rs6000_emit_int_cmove): Use function pointers for insn generation.
16048         Don't force values into registers unnecessarily.
16049         (output_isel): Assert that we're not given conditions we can't handle.
16050         Delete corresponding code.
16051         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
16052         scc_comparison_operator constraint.  Permit 0 for the consequent
16053         operand.  Permit any GPR for the alternative operand.
16054         (isel_unsigned_<mode>): Likewise.
16055
16056 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
16057
16058         PR target/44942
16059         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
16060         argument to const_tree.
16061         * config/i386/i386.c (function_arg_advance): If padding needs to be
16062         inserted before argument, increment cum->words by number of padding
16063         words as well.
16064         (contains_aligned_value_p): Change argument to const_tree.
16065         (ix86_function_arg_boundary): Change second argument to const_tree.
16066
16067 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
16068
16069         PR target/42235
16070         * function.c (record_hard_reg_sets): New static function.
16071         (assign_parm_setup_reg): If an optab for extending exists and the
16072         generated code clobbbers no hard regs, emit the insn directly and
16073         create a REG_EQUIV note.
16074
16075 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
16076
16077         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
16078         TREE_CHAIN.
16079         * c-typeck.c (push_init_level): Likewise.
16080         (process_init_element): Likewise.
16081
16082 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
16083
16084         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
16085         (integer_three_node): Add.
16086         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
16087         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
16088         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
16089         of call build_int_cst.
16090         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
16091         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
16092         (find_interesting_uses_address): Ditto.
16093         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
16094         * tree-eh.c (lower_eh_constructs_2): Ditto.
16095         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
16096         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
16097         * expmed.c (expand_divmod): Ditto.
16098         * tree-mudflap.c (mx_register_decls): Ditto.
16099         * varasm.c (array_size_for_constructor): Ditto.
16100         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
16101         * c-parser.c (c_parser_postfix_expression): Ditto.
16102
16103 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
16104
16105         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
16106         New static variables.
16107         (reload_combine_recognize_pattern): New static function, broken out
16108         of reload_combine.
16109         (reload_combine): Use it.  Only initialize first_index_reg and
16110         last_index_reg once.
16111
16112 2010-07-15  Richard Henderson  <rth@redhat.com>
16113
16114         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
16115         when done.
16116
16117 2010-07-15  Jan Hubicka  <jh@suse.cz>
16118
16119         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
16120         comdats for broken gold.
16121         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
16122
16123 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
16124
16125         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
16126
16127 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
16128
16129         * tree.h (DECL_CHAIN): Define.
16130         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
16131         * c-decl.c: Likewise.
16132         * c-parser.c: Likewise.
16133         * c-typeck.c: Likewise.
16134         * cfgexpand.c: Likewise.
16135         * cgraph.c: Likewise.
16136         * cgraphunit.c: Likewise.
16137         * combine.c: Likewise.
16138         * config/alpha/alpha.c: Likewise.
16139         * config/arm/arm.c: Likewise.
16140         * config/frv/frv.c: Likewise.
16141         * config/i386/i386.c: Likewise.
16142         * config/i386/winnt-cxx.c: Likewise.
16143         * config/ia64/ia64.c: Likewise.
16144         * config/iq2000/iq2000.c: Likewise.
16145         * config/mep/mep.c: Likewise.
16146         * config/mips/mips.c: Likewise.
16147         * config/pa/som.h: Likewise.
16148         * config/rs6000/rs6000.c: Likewise.
16149         * config/s390/s390.c: Likewise.
16150         * config/sh/sh.c: Likewise.
16151         * config/sh/symbian-cxx.c: Likewise.
16152         * config/sparc/sparc.c: Likewise.
16153         * config/spu/spu.c: Likewise.
16154         * config/stormy16/stormy16.c: Likewise.
16155         * config/vxworks.c: Likewise.
16156         * config/xtensa/xtensa.c: Likewise.
16157         * coverage.c: Likewise.
16158         * dbxout.c: Likewise.
16159         * dwarf2out.c: Likewise.
16160         * emit-rtl.c: Likewise.
16161         * expr.c: Likewise.
16162         * function.c: Likewise.
16163         * gimple-low.c: Likewise.
16164         * gimple-pretty-print.c: Likewise.
16165         * gimplify.c: Likewise.
16166         * integrate.c: Likewise.
16167         * ipa-inline.c: Likewise.
16168         * ipa-prop.c: Likewise.
16169         * ipa-split.c: Likewise.
16170         * ipa-struct-reorg.c: Likewise.
16171         * ipa-type-escape.c: Likewise.
16172         * langhooks.c: Likewise.
16173         * lto-cgraph.c: Likewise.
16174         * omp-low.c: Likewise.
16175         * stor-layout.c: Likewise.
16176         * tree-cfg.c: Likewise.
16177         * tree-complex.c: Likewise.
16178         * tree-dfa.c: Likewise.
16179         * tree-dump.c: Likewise.
16180         * tree-inline.c: Likewise.
16181         * tree-mudflap.c: Likewise.
16182         * tree-nested.c: Likewise.
16183         * tree-object-size.c: Likewise.
16184         * tree-pretty-print.c: Likewise.
16185         * tree-sra.c: Likewise.
16186         * tree-ssa-live.c: Likewise.
16187         * tree-ssa-loop-niter.c: Likewise.
16188         * tree-ssa-math-opts.c: Likewise.
16189         * tree-ssa-reassoc.c: Likewise.
16190         * tree-ssa-sccvn.c: Likewise.
16191         * tree-ssa-structalias.c: Likewise.
16192         * tree-tailcall.c: Likewise.
16193         * tree-vrp.c: Likewise.
16194         * tree.c: Likewise.
16195         * var-tracking.c: Likewise.
16196         * varasm.c: Likewise.
16197
16198 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16199
16200         PR target/44877
16201         * config/spu/spu.c (spu_expand_builtin_1): Allow references
16202         (as well as pointers) as argument to mask_for_load builtins.
16203
16204 2010-07-15  Richard Guenther  <rguenther@suse.de>
16205
16206         PR tree-optimization/44946
16207         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
16208         with accessing only padding properly.
16209
16210 2010-07-15  Jan Hubicka  <jh@suse.cz>
16211
16212         * ipa.c (function_and_variable_visibility): Variables marked as used
16213         should not be localized.
16214
16215 2010-07-15  Jan Hubicka  <jh@suse.cz>
16216
16217         * cgraph.c: Include lto-streamer.h
16218         (change_decl_assembler_name): Work when assembler name hash is at place.
16219         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
16220         be sure to rename it to avoid name clash.
16221         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
16222         Localize hidden symbols only when locally defined.
16223
16224 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
16225
16226         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
16227
16228 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
16229             Kevin F. Quinn  <kevquinn@gentoo.org>
16230
16231         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
16232         * common.opt: Add -Wtrampolines.
16233         * doc/invoke.texi: Add -Wtrampolines.
16234
16235 2010-07-15  Jie Zhang  <jie@codesourcery.com>
16236
16237         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
16238         cortex_a8_issue_ls.
16239
16240 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
16241
16242         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
16243         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
16244
16245 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16246
16247         * config/spu/spu.c (reg_names): Remove prototype.
16248         (call_used_regs): Likewise.
16249
16250 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
16251
16252         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
16253         "unused" with attribute "used".
16254         (__JCR_END__): Likewise.
16255         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
16256         "used" attribute.
16257         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
16258
16259 2010-07-14  Richard Guenther  <rguenther@suse.de>
16260
16261         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
16262         (maybe_fixup_decls): Likewise.
16263         (input_gimple_stmt): Do not fixup anything.
16264         * lto-streamer-out.c (output_gimple_stmt): Make sure all
16265         non-automatic variable uses are wrapped inside a MEM_REF.
16266
16267 2010-07-14  Richard Henderson  <rth@redhat.com>
16268
16269         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
16270         for functions.
16271         * varasm.c (assemble_variable): Remove early exit for functions;
16272         assert that we're given a variable.
16273
16274 2010-07-14  Jie Zhang  <jie@codesourcery.com>
16275
16276         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
16277         cortex_a8_default when neon_type is not none.
16278
16279 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
16280
16281         * lower-subreg.c (subreg_context): New static bitmap.
16282         (decompose_multiword_subregs): Allocate and free it.
16283         (find_decomposable_subregs): Set a bit in it for a register that
16284         occurs in a subreg that changes mode but not size.
16285         (can_decompose_p): Test it instead of non_decomposable_context.
16286
16287 2010-07-14  Richard Guenther  <rguenther@suse.de>
16288
16289         PR tree-optimization/44824
16290         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
16291         is_gimple_mem_ref_addr.
16292         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
16293         non-decl_address_invariant_p addresses.
16294
16295 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
16296
16297         * reload.c (find_reloads): Revert code to penalize small register
16298         classes that was brought in with the IRA merge.
16299
16300 2010-07-14  Richard Guenther  <rguenther@suse.de>
16301
16302         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
16303         as base of ARRAY_REFs.
16304
16305 2010-07-14  Richard Guenther  <rguenther@suse.de>
16306
16307         PR middle-end/44930
16308         * tree-pretty-print.c (do_niy): Do not print a newline.
16309
16310 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
16311
16312         * ira-int.h (struct ira_object): New.
16313         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
16314         (struct ira_allocno): Remove members min, max,
16315         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
16316         conflict_allocnos_num and conflict_vec_p.  Add new member object.
16317         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
16318         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
16319         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
16320         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
16321         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
16322         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
16323         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
16324         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
16325         an ira_object_t rather than ira_allocno_t.  All uses changed.
16326         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
16327         contains a vector of ira_object_t; all uses changed.
16328         (ira_objects_num): Declare variable.
16329         (ira_create_allocno_object): Declare function.
16330         (ira_conflict_vector_profitable_p): Adjust prototype.
16331         (ira_allocate_conflict_vec): Renamed from
16332         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
16333         (ira_allocate_object_conflicts): Renamed from
16334         ira_allocate_allocno_conflicts; first arg now ira_object_t.
16335         (struct ira_object_iterator): New.
16336         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
16337         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
16338         to conflict_vec_p.  All uses changed.
16339         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
16340         Changed to take into account that conflicts are now tracked for
16341         objects.
16342         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
16343         Args changed to accept ira_object_t.  All uses changed.
16344         (allocnos_conflict_p): New static function.
16345         (collected_conflict_objects): Renamed from collected_allocno_objects;
16346         now a vector of ira_object_t.  All uses changed.
16347         (build_conflict_bit_table): Changed to take into account that
16348         conflicts are now tracked for objects.
16349         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
16350         (print_allocno_conflicts, ira_build_conflicts): Likewise.
16351         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
16352         setup_allocno_left_conflicts_size, allocno_reload_assign,
16353         fast_allocation): Likewise.
16354         * ira-lives.c (make_hard_regno_born, make_allocno_born)
16355         process_single_reg_class_operands, process_bb_node_lives): Likewise.
16356         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
16357         Likewise.
16358         * ira-build.c (ira_objects_num): New variable.
16359         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
16360         contains a vector of ira_object_t; all uses changed.
16361         (ira_object_id_map_vec): Corresponding change.
16362         (object_pool): New static variable.
16363         (initiate_allocnos): Initialize it.
16364         (finish_allocnos): Free it.
16365         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
16366         New functions.
16367         (ira_create_allocno): Don't set members that were removed.
16368         (ira_set_allocno_cover_class): Don't change conflict hard regs.
16369         (merge_hard_reg_conflicts): Changed to take into account that
16370         conflicts are now tracked for objects.
16371         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
16372         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
16373         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
16374         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
16375         setup_min_max_conflict_allocno_ids, ):  Likewise.
16376         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
16377         to ira_object_t; all callers changed.
16378         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
16379         to ira_object_t, all callers changed.
16380         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
16381         to ira_object_t, all callers changed.
16382         (conflict_check, curr_conflict_check_tick): Renamed from
16383         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
16384         changed.
16385         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
16386         arg changed to ira_object_t, all callers changed.
16387         (create_cap_allocno): Call ira_create_allocno_object.
16388         (finish_allocno): Free the corresponding object.
16389         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
16390         callers changed.  Adjusted for dealing with objects.
16391         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
16392         dealing with objects.
16393         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
16394
16395         * ira-int.h (struct live_range): Rename allocno member to object
16396         and change type to ira_object_t.
16397         (struct ira_object): New member live_ranges.
16398         (struct ira_allocno): Remove member live_ranges.
16399         (ALLOCNO_LIVE_RANGES): Remove.
16400         (OBJECT_LIVE_RANGES): New macro.
16401         (ira_create_live_range, ira_copy_live_range_list,
16402         ira_merge_live_range_list, ira_live_ranges_intersect_p,
16403         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
16404         * ira-build.c (ira_create_object): Initialize live ranges here.
16405         (ira_create_allocno): Not here.
16406         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
16407         changed to ira_object_t, all callers changed.
16408         (copy_live_range): Rename from copy_allocno_live_range, all callers
16409         changed.
16410         (ira_copy_live_range_list): Rename from
16411         ira_copy_allocno_live_range_list, all callers changed.
16412         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
16413         all callers changed.
16414         (ira_live_ranges_intersect_p): Rename from
16415         ira_allocno_live_ranges_intersect_p, all callers changed.
16416         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
16417         callers changed.
16418         (ira_finish_live_range_list): Rename from
16419         ira_finish_allocno_live_range_list, all callers changed.
16420         (change_object_in_range_list): Rename from change_allocno_in_range_list,
16421         last arg changed to ira_object_t, all callers changed.
16422         (finish_allocno): Changed to expect live ranges in the allocno's object.
16423         (move_allocno_live_ranges, copy_allocno_live_ranges,
16424         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
16425         ira_flattening, ira_build): Likewise.
16426         * ira-color.c (allocnos_have_intersected_live_ranges_p,
16427         slot_coalesced_allocno_live_ranges_intersect,
16428         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
16429         * ira-conflicts.c (build_conflict_bit_table): Likewise.
16430         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
16431         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
16432         make_allocno_dead, create_start_finish_chains,
16433         remove_some_program_points_and_update_live_ranges,
16434         ira_debug_live_range_list): Likewise.
16435
16436         * ira-int.h (ira_object_conflict_iterator): Rename from
16437         ira_allocno_conflict_iterator.
16438         (ira_object_conflict_iter_init): Rename from
16439         ira_allocno_conflict_iter_init, second arg changed to
16440         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
16441         FOR_EACH_ALLOCNO_CONFLICT.
16442         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
16443         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
16444         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
16445         * ira-conflicts.c (print_allocno_conflicts): Likewise.
16446
16447 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
16448
16449         PR other/44874
16450         * tree-dump.c (dump_options): Add enumerate_locals entry.
16451         Add TDF_NOID exclusion to all entry.
16452         * tree-dump.h (dump_enumerated_decls): Declare.
16453         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
16454         Don't display type uid.
16455         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
16456         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
16457         * tree-ssa-live.c: Include gimple.h.
16458         (numbered_tree_d): New struct.
16459         (numbered_tree): New typedef.
16460         (DEF_VEC_O (numbered_tree): New.
16461         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
16462         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
16463         (dump_enumerated_decls): Likewise.
16464         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
16465         debug info and flag_dump_final_insns, call dump_enumerated_decls.
16466         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
16467         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
16468
16469 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
16470
16471         * expmed.h (MAX_BITS_PER_WORD): Move to...
16472         * defaults.h (MAX_BITS_PER_WORD): ...here.
16473
16474 2010-07-13  DJ Delorie  <dj@redhat.com>
16475
16476         * config/h8300/h8300.c (h8300_init_once): Default to
16477         -fstrict_volatile_bitfields.
16478
16479         * config/sh/sh.c (sh_override_options): Default to
16480         -fstrict_volatile_bitfields.
16481
16482         * config/rx/rx.c (rx_option_override): New.
16483
16484         * config/m32c/m32c.c (m32c_override_options): Default to
16485         -fstrict_volatile_bitfields.
16486
16487 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
16488
16489         * tree.h (build_function_call_expr): Delete.
16490         (build_call_expr_loc_array): New function.
16491         (build_call_expr_loc_vec): New function.
16492         * tree-flow.h (struct omp_region): Change type of ws_args field
16493         to a VEC.
16494         * builtins.c (build_function_call_expr): Delete.
16495         (build_call_expr_loc_array): New function.
16496         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
16497         (build_call_expr): Likewise.
16498         (build_call_expr_loc_vec): New function.
16499         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
16500         build_function_call_expr.
16501         * expr.c (emutls_var_address): Likewise.
16502         * varasm.c (emutls_common_1): Likewise.
16503         * omp-low.c (expand_omp_atomic_mutex): Likewise.
16504         (expand_omp_taskreg): Adjust for new type of region->ws_args.
16505         (get_ws_args_for): Return a VEC instead of a tree.
16506         (expand_parallel_call): Call build_call_expr_loc_vec instead of
16507         build_function_call_expr.
16508         * stor-layout.c (self_referential_size): Likewise.
16509
16510 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
16511
16512         PR testsuite/44701
16513         * recog.c (constrain_operands): Allow side-effects in memory
16514         operands if either < or > constraint is used, rather than if
16515         both < and > is used.
16516
16517 2010-07-13  Richard Guenther  <rguenther@suse.de>
16518
16519         PR middle-end/44911
16520         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
16521         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
16522         without name.
16523
16524 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
16525
16526         PR target/44761
16527         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
16528         to variable emited.
16529         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
16530         * config/sh/sh.md (symGOT_load): Likewise.
16531         (symDTPOFF2reg): Likewise.
16532         (symTPOFF2reg): Likewise.
16533
16534 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16535
16536         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
16537         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
16538
16539 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16540
16541         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
16542         explanation.
16543         Find ucontext_t * on Solaris 11.
16544         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
16545         Handle new Solaris 11 __sighndlr patterns.
16546
16547 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
16548
16549         PR debug/44901
16550         * vec.h (VEC_block_remove): Fix comment.
16551         * tree-ssa-live.c (remove_unused_locals): Don't use
16552         VEC_unordered_remove on local_decls, instead replace a single
16553         vector element in each iteration if at least one element had
16554         to be removed and VEC_truncate at the end.
16555         * omp-low.c (expand_omp_taskreg): Likewise.
16556
16557 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16558
16559         * c-decl.c (finish_function): Fix typo in comment.
16560
16561 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
16562
16563         PR bootstrap/44921
16564         * postreload.c (move2add_use_add3_insn): Silence gcc warning
16565         on min_regno.
16566
16567 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
16568
16569         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
16570         (simplify_stmt_using_ranges): Use it.
16571
16572 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16573
16574         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
16575         member.  Do not mark as GTY(()).
16576         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
16577         (spu_builtin_decls): New static variable.
16578         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
16579         (spu_init_builtins): Likewise.
16580         (spu_builtin_mul_widen_even): Likewise.
16581         (spu_builtin_mul_widen_odd): Likewise.
16582         (spu_builtin_mask_for_load): Likewise.
16583         (spu_builtin_vec_perm): Likewise.
16584         * config/spu/spu-c.c: Include "target.h".
16585         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
16586         of using spu_builtins[].fndecl.
16587
16588 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16589
16590         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
16591         imply -minterlink-mips16.
16592
16593 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16594
16595         * config/mips/mips.h (mips16_globals): Declare.
16596         (SWITCHABLE_TARGET): Define.
16597         * config/mips/mips.c: Include target-globals.h.
16598         (mips16_globals): New variable.
16599         (mips_set_mips16_mode): Use save_target_globals and
16600         restore_target_globals instead of target_reinit.
16601
16602 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16603
16604         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
16605         to say that the function can be called more than once.
16606         * target-globals.c (save_target_globals): Call init_reg_sets.
16607
16608 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16609
16610         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
16611         * bb-reorder.h: New file.
16612         * bb-reorder.c (default_target_bb_reorder): New variable.
16613         (this_target_bb_reorder): New conditional variable.
16614         (uncond_jump_length): Redefine as a macro.
16615         * target-globals.h (this_target_bb_reorder): Declare.
16616         (target_globals): Add a bb_reorder field.
16617         (restore_target_globals): Copy the bb_reorder field to
16618         this_target_bb-reorder.
16619         * target-globals.c: Include bb-reorder.h.
16620         (default_target_globals): Initialize the bb_reorder field.
16621         (save_target_globals): Likewise.
16622
16623 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16624
16625         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
16626         * gcse.h: New file.
16627         * gcse.c: Include gcse.h.
16628         (default_target_gcse): New variable.
16629         (this_target_gcse): New conditional variable.
16630         (can_copy): Redefine as a macro.
16631         (can_copy_init_p): New macro.
16632         (can_copy_p): Remove can_copy_init_p.
16633         * target-globals.h (this_target_gcse): Declare.
16634         (target_globals): Add a gcse field.
16635         (restore_target_globals): Copy the gcse field to this_target_gcse.
16636         * target-globals.c: Include gcse.h.
16637         (default_target_globals): Initialize the gcse field.
16638         (save_target_globals): Likewise.
16639
16640 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16641
16642         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
16643         and x_ira_prohibited_mode_move_regs_initialized_p.
16644         (ira_prohibited_mode_move_regs): Redefine as a macro.
16645         * ira.c (ira_prohibited_mode_move_regs): Delete.
16646         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
16647
16648 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16649
16650         * reload.h (target_reload): Add x_cached_reg_save_code and
16651         x_cached_reg_restore_code.
16652         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
16653         Redefine as macros.
16654
16655 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16656
16657         * Makefile.in (target-globals.o): Depend on builtins.h.
16658         * builtins.h: New file.
16659         * builtins.c: Include builtins.h.
16660         (default_target_builtins): New variable.
16661         (this_target_builtins): New conditional variable.
16662         (apply_args_mode, apply_result_mode): Redefine as macros.
16663         * target-globals.h (this_target_builtins): Declare.
16664         (target_globals): Add a builtins field.
16665         (restore_target_globals): Copy the builtins field to
16666         this_target_builtins.
16667         * target-globals.c: Include builtins.h.
16668         (default_target_globals): Initialize the builtins field.
16669         (save_target_globals): Likewise.
16670
16671 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16672
16673         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
16674         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
16675         from expmed.c.
16676         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
16677         (alg_hash, alg_hash_used_p): New macros.
16678         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
16679         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
16680         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
16681
16682 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16683
16684         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
16685         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
16686         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
16687         (this_op_costs, costs_classes): Redefine as macros.
16688         (record_reg_classes): Don't take op_costs as a parameter.
16689         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
16690         (scan_one_insn): Update call to record_operand_costs.
16691
16692 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16693
16694         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
16695         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
16696         (target_ira_int): New structure.
16697         (default_target_ira_int): Declare.
16698         (this_target_ira_int): Declare as a variable or define as a macro.
16699         (ira_reg_mode_hard_regset, ira_register_move_cost)
16700         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
16701         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
16702         (prohibited_class_mode_regs, ira_important_classes_num)
16703         (ira_important_classes, ira_reg_class_intersect)
16704         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
16705         (ira_reg_class_union): Redefine as macros.
16706         * ira.h (target_ira): New structure.
16707         (default_target_ira): Declare.
16708         (this_target_ira): Declare as a variable or define as a macro.
16709         (ira_available_class_regs, ira_hard_regno_cover_class)
16710         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
16711         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
16712         (ira_class_hard_regs_num): Redefine as macros.
16713         * ira.c (default_target_ira, default_target_ira_int): New variables.
16714         (this_target_ira, this_target_ira_int): New conditional variables.
16715         (ira_reg_mode_hard_regset, ira_memory_move_cost)
16716         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
16717         (ira_class_subset_p): Delete.
16718         (no_unit_alloc_regs): Redefine as a macro.
16719         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
16720         (ira_class_hard_regs_num, ira_class_hard_reg_index)
16721         (ira_available_class_regs): Delete.
16722         (alloc_reg_class_subclasses): Redefine as a macro.
16723         (ira_reg_class_cover_size, ira_reg_class_cover)
16724         (ira_important_classes_num, ira_important_classes)
16725         (ira_important_class_nums, ira_class_translate): Delete.
16726         (cover_class_order): Document the variable's lifetime.
16727         (reorder_important_classes): Don't set ira_important_class_nums.
16728         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
16729         (ira_reg_class_super_classes, ira_reg_class_union)
16730         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
16731         Delete.
16732         (setup_reg_class_nregs): Don't set ira_max_regs.
16733         (prohibited_class_mode_regs): Delete.
16734         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
16735         (target_globals): Add ira and ira_int fields.
16736         (restore_target_globals): Copy the ira field to this_target_ira
16737         and the ira_int field to this_target_ira_int.
16738         * target-globals.c: Include ira-int.h.
16739         (default_target_globals): Initialize the ira and ira_int fields.
16740         (save_target_globals): Likewise.
16741
16742 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16743
16744         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
16745         * cfgloop.h (target_cfgloop): New structure.
16746         (default_target_cfgloop): Declare.
16747         (this_target_cfgloop): Declare as a variable or define as a macro.
16748         (target_avail_regs, target_clobbered_regs, target_res_regs)
16749         (target_reg_cost, target_spill_cost): Redefine as macros.
16750         * cfgloopanal.c (default_target_cfgloop): New variable.
16751         (this_target_cfgloop): New conditional variable.
16752         (target_avail_regs, target_clobbered_regs, target_res_regs)
16753         (target_reg_cost, target_spill_cost): Delete.
16754         * target-globals.h (this_target_cfgloop): Declare.
16755         (target_globals): Add a cfgloop field.
16756         (restore_target_globals): Copy the cfgloop field to
16757         this_target_cfgloop.
16758         * target-globals.c: Include cfgloop.h.
16759         (default_target_globals): Initialize the cfgloop field.
16760         (save_target_globals): Likewise.
16761
16762 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16763
16764         * regs.h (target_regs): Add x_direct_load, x_direct_store and
16765         x_float_extend_from_mem.
16766         (direct_load, direct_store, float_extend_from_mem): New macros.
16767         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
16768
16769 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16770
16771         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
16772         (target-globals.o): Depend on $(LIBFUNCS_H).
16773         * libfuncs.h: Include hashtab.h.
16774         (libfunc_entry): Moved from optabs.c.
16775         (target_libfuncs): New structure.
16776         (default_target_libfuncs): Declare.
16777         (this_target_libfuncs): Declare as a variable or define as a macro.
16778         (libfunc_table): Redefine as a macro.
16779         * optabs.c (default_target_libfuncs): New variable.
16780         (this_target_libfuncs): New conditional variable.
16781         (libfunc_table): Delete.
16782         (libfunc_entry): Moved to optabs.h.
16783         (libfunc_hash): Redefine as a macro.
16784         (hash_libfunc, eq_libfunc): Fix comments.
16785         (init_optabs): Use libfunc_hash to detect cases where the function
16786         has already been called.  Clear the hash table instead of
16787         recreating it.
16788         * target-globals.h (this_target_libfuncs): Declare.
16789         (target_globals): Add a libfuncs field.
16790         (restore_target_globals): Copy the libfuncs field to
16791         this_target_libfuncs.
16792         * target-globals.c: Include libfuncs.h.
16793         (default_target_globals): Initialize the libfuncs field.
16794         (save_target_globals): Likewise.
16795
16796 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16797
16798         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
16799         in all dependency lists.
16800
16801 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16802
16803         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
16804         * optabs.h (target_optabs): New structure.
16805         (default_target_optabs): Declare.
16806         (this_target_optabs): Declare as a variable or define as a macro.
16807         (optab_table, convert_optab_table, direct_optab_table): Redefine
16808         as macros.
16809         * optabs.c (default_target_optabs): New variable.
16810         (this_target_optabs): New conditional variable.
16811         (optab_table, convert_optab_table, direct_optab_table): Delete.
16812         * target-globals.h (this_target_optabs): Declare.
16813         (target_globals): Add a optabs field.
16814         (restore_target_globals): Copy the optabs field to
16815         this_target_optabs.
16816         * target-globals.c: Include expr.h and optabs.h.
16817         (default_target_globals): Initialize the optabs field.
16818         (save_target_globals): Likewise.
16819
16820 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16821
16822         * flags.h (target_flagstate): Add x_flag_excess_precision.
16823         (flag_excess_precision): Redefine as a macro.
16824         * toplev.c (flag_excess_precision): Delete.
16825
16826 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16827
16828         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
16829         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
16830         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
16831         (no_caller_save_reg_set): Redefine as a macro.
16832         * reload.h (target_reload): Add x_caller_save_initialized_p and
16833         x_regno_save_mode.
16834         (caller_save_initialized_p): Redefine as a macro.
16835         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
16836         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
16837         (regno_save_mode): Redefine as a macro.
16838
16839 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16840
16841         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
16842         * expmed.h: New file.
16843         * expmed.c (default_target_costs): New variable.
16844         (this_target_costs): New conditional variable.
16845         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
16846         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
16847         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
16848         * target-globals.h (this_target_expmed): Declare.
16849         (target_globals): Add a expmed field.
16850         (restore_target_globals): Copy the expmed field to
16851         this_target_expmed.
16852         * target-globals.c: Include expmed.h.
16853         (default_target_globals): Initialize the expmed field.
16854         (save_target_globals): Likewise.
16855
16856 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16857
16858         * Makefile.in (target-globals.o): Depend on reload.h.
16859         * reload.h (target_reload): New structure.
16860         (default_target_reload): Declare.
16861         (this_target_reload): Declare as a variable or define as a macro.
16862         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
16863         * reload1.c (default_target_reload): New variable
16864         (this_target_reload): New conditional variable.
16865         (indirect_symref_ok, double_reg_address_ok): Delete.
16866         (spill_indirect_levels): Redefine as a macro.
16867         * target-globals.h (this_target_reload): Declare.
16868         (target_globals): Add a reload field.
16869         (restore_target_globals): Copy the reload field to
16870         this_target_reload.
16871         * target-globals.c: Include hard-reg-set.h.
16872         (default_target_globals): Initialize the reload field.
16873         (save_target_globals): Likewise.
16874
16875 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16876
16877         * rtl.h (target_rtl): Add x_static_reg_base_value.
16878         * alias.c (static_reg_base_value): Redefine as a macro.
16879
16880 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16881
16882         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
16883         (GTFILES): Remove reginfo.c.
16884         * rtl.h (target_rtl): Add x_top_of_stack.
16885         (top_of_stack): New macro.
16886         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
16887         (top_of_stack): Delete.
16888
16889 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16890
16891         * regs.h (target_regs): Add x_hard_regs_of_mode,
16892         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
16893         x_may_move_out_cost and x_last_mode_for_init_move_cost.
16894         (have_regs_of_mode, contains_reg_of_mode, move_cost)
16895         (may_move_in_cost, may_move_out_cost): Redefine as macros.
16896         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
16897         (may_move_in_cost, may_move_out_cost): Delete.
16898         (last_mode_for_init_move_cost): Redefine as a macro.
16899
16900 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16901
16902         * hard-reg-set.h (target_hard_regs): New structure.
16903         (default_target_hard_regs): Declare.
16904         (this_target_hard_regs): Declare as a variable or define as a macro.
16905         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
16906         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
16907         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
16908         (reg_class_size, reg_class_subclasses, reg_class_subunion)
16909         (reg_class_superunion, reg_names): Redefine as macros.
16910         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
16911         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
16912         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
16913         (reg_class_contents, reg_class_size, reg_class_subclasses)
16914         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
16915         (default_target_hard_regs): New variable
16916         (this_target_hard_regs, initial_call_really_used_regs)
16917         (initial_reg_alloc_order): New conditional variables.
16918         (initial_reg_names): New variable.
16919         (init_reg_sets): Assert that initial_call_really_used_regs,
16920         initial_reg_alloc_order and initial_reg_names
16921         are all the same size as their variable counterparts.  Use them to
16922         initialize those counterparts.
16923         * target-globals.h (this_target_hard_regs): Declare.
16924         (target_globals): Add a hard_regs field.
16925         (restore_target_globals): Copy the hard_regs field to
16926         this_target_hard_regs.
16927         * target-globals.c: Include hard-reg-set.h.
16928         (default_target_globals): Initialize the hard_regs field.
16929         (save_target_globals): Likewise.
16930
16931 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16932
16933         * Makefile.in (target-globals.o): Depend on $(RTL_H).
16934         * rtl.h (target_rtl): New structure.
16935         (default_target_rtl): Declare.
16936         (this_target_rtl): Declare as a variable or define as a macro.
16937         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
16938         Redefine as macros.
16939         * emit-rtl.c (default_target_rtl): New variable.
16940         (this_target_rtl): New conditional variable.
16941         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
16942         (return_address_pointer_rtx): Delete.
16943         (initial_regno_reg_rtx): New macro.
16944         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
16945         (init_emit_regs): Likewise.
16946         * target-globals.h (this_target_rtl): Declare.
16947         (target_globals): Add a rtl field.
16948         (restore_target_globals): Copy the rtl field to this_target_rtl.
16949         * target-globals.c: Include rtl.h.
16950         (default_target_globals): Initialize the rtl field.
16951         (save_target_globals): Likewise.
16952
16953 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16954
16955         * Makefile.in (target-globals.o): Depend on $(REGS_H).
16956         * regs.h (target_reg_modes): New structure.
16957         (default_target_reg_modes): Declare.
16958         (this_target_reg_modes): Declare as a variable or define as a macro.
16959         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
16960         * reginfo.c (default_target_reg_modes): New variable.
16961         (this_target_reg_modes): New conditional variable.
16962         (hard_regno_nregs, reg_raw_mode): Delete.
16963         * target-globals.h (this_target_regs): Declare.
16964         (target_globals): Add a regs field.
16965         (restore_target_globals): Copy the regs field to this_target_regs.
16966         * target-globals.c: Include regs.h.
16967         (default_target_globals): Initialize the regs field.
16968         (save_target_globals): Likewise.
16969
16970 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16971
16972         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
16973         * doc/tm.texi: Regenerate.
16974         * Makefile.in (OBJS-common): Add target-globals.o.
16975         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
16976         and target-globals.h.
16977         (target-globals.o): New rule.
16978         (GTFILES): Include $(srcdir)/target-globals.h.
16979         * defaults.h (SWITCHABLE_TARGET): Define.
16980         * gengtype.c (open_base_files): Add target-globals.h to the
16981         list of includes.
16982         * target-globals.h: New file.
16983         * target-globals.c: Likewise.
16984
16985         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
16986         * flags.h (target_flag_state): New structure.
16987         (default_target_flag_state): Declare.
16988         (this_target_flag_state): Declare as a variable or define as a macro.
16989         (align_loops_log): Redefine as a macro.
16990         (align_loops_max_skip, align_jumps_log): Likewise.
16991         (align_jumps_max_skip, align_labels_log): Likewise.
16992         (align_labels_max_skip, align_functions_log): Likewise.
16993         * toplev.c (default_target_flag_state): New variable.
16994         (this_target_flag_state): New conditional variable.
16995         (align_loops_log): Delete.
16996         (align_loops_max_skip, align_jumps_log): Likewise.
16997         (align_jumps_max_skip, align_labels_log): Likewise.
16998         (align_labels_max_skip, align_functions_log): Likewise.
16999         * target-globals.h (this_target_flag_state): Declare.
17000         (target_globals): Add a flag_state field.
17001         (restore_target_globals): Copy the flag_state field to
17002         this_target_flag_state.
17003         * target-globals.c: Include flags.h.
17004         (default_target_globals): Initialize the flag_state field.
17005         (save_target_globals): Likewise.
17006
17007 2010-07-12  Jie Zhang  <jie@codesourcery.com>
17008
17009         * postreload.c (reg_symbol_ref[]): New.
17010         (move2add_use_add2_insn): New.
17011         (move2add_use_add3_insn): New.
17012         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
17013         (move2add_note_store): Likewise.
17014
17015 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
17016
17017         PR rtl-optimization/44752
17018         * genautomata.c (main): Don't emit an empty file even if there
17019         is no automaton.
17020
17021 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17022
17023         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
17024         ix86_solaris_return_in_memory.
17025         * config/i386-protos.h: Reflect this.
17026         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
17027         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
17028         Move ...
17029         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
17030
17031 2010-07-12  Jie Zhang  <jie@codesourcery.com>
17032
17033         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
17034         align the stack when it's going to be saved.
17035
17036 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17037
17038         PR pch/14940
17039         * config/host-solaris.c (mmap_fixed): New function.
17040         (sol_gt_pch_get_address): Use it.
17041         (sol_gt_pch_use_address): Likewise.
17042
17043 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17044
17045         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
17046         pentiumpro on Solaris 8 and 9/x86.
17047         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
17048         Document SSE/SSE2 support.
17049         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
17050
17051 2010-07-12  Andi Kleen  <ak@linux.intel.com>
17052
17053         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
17054         instead of gcc_assert to print better error message for multiple
17055         prevailing defs.
17056
17057 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
17058
17059         * config/i386/i386.c (ix86_asm_output_function_label): Change format
17060         string placeholder from 0x%x to %#x.
17061         (ix86_code_end): Use putc to output '\n'.
17062         (ix86_print_operand) <case ';'>: Use putc to output ';'.
17063
17064 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
17065
17066         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
17067         in directive -export.
17068
17069 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
17070
17071         * reginfo.h (reg_classes_intersect_p): Change arguments type to
17072         reg_class_t.
17073         * rtl.h (reg_classes_intersect_p): Adjust prototype.
17074
17075         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17076         Remove macros.
17077         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
17078         rs6000_memory_move_cost): Remove
17079         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
17080         TARGET_MEMORY_MOVE_COST): Define.
17081         (rs6000_register_move_cost): Make static. Change arguments type from
17082         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
17083         (rs6000_memory_move_cost): Make static. Change arguments type from
17084         'enum reg_class' to reg_class_t.
17085
17086 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
17087
17088         PR middle-end/42505
17089         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
17090         lookup code into....
17091         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
17092         new functions.
17093         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
17094         * cfgloopanal.c (target_clobbered_regs): Define.
17095         (init_set_costs): Initialize target_clobbered_regs.
17096         (estimate_reg_pressure_cost): Add call_p argument.  When true,
17097         adjust the number of available registers to exclude the
17098         call-clobbered registers.
17099         * cfgloop.h (target_clobbered_regs): Declare.
17100         (estimate_reg_pressure_cost): Adjust declaration.
17101         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
17102         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
17103         (determine_set_costs): Dump target_clobbered_regs.
17104         (loop_body_includes_call): New function.
17105         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
17106         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
17107         call_p flag through.
17108         (best_gain_for_invariant): Likewise.
17109         (find_invariants_to_move): Likewise.
17110         (move_single_loop_invariants): Likewise, using already-computed
17111         has_call field.
17112
17113 2010-07-10  Richard Guenther  <rguenther@suse.de>
17114             Joern Rennecke  <joern.rennecke@embecosm.com>
17115
17116         PR debug/44832
17117         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
17118         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
17119         unless they have DECL_IGNORED_P set.
17120
17121 2010-07-10  Richard Guenther  <rguenther@suse.de>
17122
17123         PR lto/44889
17124         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
17125         helper function.
17126         (gimple_types_compatible_p): Similar to pointed-to
17127         types allow and merge a mix of complete and incomplete aggregate.
17128         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
17129         (iterative_hash_gimple_type): Adjust for that.
17130
17131 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
17132
17133         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
17134
17135 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
17136
17137         PR objc/44140
17138         * config/darwin.c (output_objc_section_asm_op): Save and restore
17139         section when outputting ObjC section list.
17140
17141 2010-07-09  Jan Hubicka  <jh@suse.cz>
17142
17143         * lto-streamer-out.c (produce_symtab): Do not write alias
17144         cgraph/varpool nodes.
17145
17146 2010-07-09  Jan Hubicka  <jh@suse.cz>
17147
17148         * tree-inline.c (declare_return_variable): Fix ICE while
17149         inlining DECL_BY_VALUE function not in SSA form
17150
17151 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
17152
17153         PR tree-optimization/44576
17154         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
17155         New.  Pull out from is_loop_prefetching_profitable to implement
17156         the trip count to ahead ratio heuristic.
17157         (mem_ref_count_reasonable_p): New.  Pull out from
17158         is_loop_prefetching_profitable to implement the instruction to
17159         memory reference ratio heuristic.  Also consider not reasonable if
17160         the memory reference count is above a threshold (to avoid
17161         explosive compilation time.
17162         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
17163         is_loop_prefetching_profitable to implement the instruction to
17164         prefetch ratio heuristic.
17165         (is_loop_prefetching_profitable): Removed.
17166         (loop_prefetch_arrays): Distribute the cost analysis across the
17167         function to allow early exit of the prefetch analysis.
17168         is_loop_prefetching_profitable is splitted into three functions,
17169         with each one called as early as possible.
17170         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
17171         number of memory references in a loop is considered too many.
17172
17173 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
17174
17175         * reload.c (find_reloads): Don't clear badop if we have a winreg
17176         alternative, but not win, and the class only has fixed regs.
17177         * hard-reg-set.h (class_only_fixed_regs): Declare.
17178         * reginfo.c (class_only_fixed_regs): New array.
17179         (init_reg_sets_1): Initialize it.
17180         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
17181         discourage alternatives using the stack pointer.
17182
17183         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
17184
17185         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
17186
17187         * config/arm/arm.md (cbranchqi4): Fix array size.
17188         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
17189         calculating length.
17190
17191 2010-07-09  Richard Guenther  <rguenther@suse.de>
17192
17193         * gimple.c (struct type_fixup_s): New struct and VEC type.
17194         (gimple_register_type_fixups): New static global.
17195         (gimple_queue_type_fixup): New function.
17196         (gimple_types_compatible_p): Queue type fixups instead of
17197         applying them here.
17198         (gimple_register_type): Apply queued fixups for the
17199         canonical type.  Empty the type fixup queue.
17200
17201 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
17202
17203         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
17204         * configure: Regenerate.
17205         * config.in: Ditto.
17206
17207 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
17208             Denys Vlasenko  <dvlasenk@redhat.com>
17209             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17210
17211         PR tree-optimization/28632
17212         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
17213         (extract_range_from_binary_expr): Further optimize
17214         BIT_AND_EXPR and BIT_IOR_EXPR.
17215
17216 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
17217
17218         * tree-if-conv.c (fold_or_predicates): New.
17219         (add_to_predicate_list): Call it.
17220
17221 2010-07-09  Richard Guenther  <rguenther@suse.de>
17222
17223         PR middle-end/44890
17224         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
17225         if base is a pointer.
17226         * tree-cfg.c (verify_expr): Update MEM_REF checking.
17227
17228 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
17229
17230         PR target/44877
17231         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
17232         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
17233         builtin mask for load/store builtins.
17234
17235 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
17236
17237         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
17238         for "lock addl".
17239         * configure: Regenerate.
17240         * config/i386/i386.c (ix86_print_operand) <case ';'>:
17241         Remove TARGET_MACHO.
17242
17243 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
17244
17245         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
17246         default ISA flags.
17247         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
17248
17249 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
17250
17251         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
17252
17253 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
17254
17255         * config/picochip/picochip.md (commsTestPort): Emit more
17256         efficient sequence for tstport instruction.
17257
17258 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
17259
17260         * config/i386/i386.c (ix86_veclib_handler): Make static.
17261
17262 2010-07-09  Richard Guenther  <rguenther@suse.de>
17263
17264         PR tree-optimization/44852
17265         * tree-ssa-alias.c: Include toplev.h for exact_log2.
17266         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
17267         in MEM_REF.
17268         (indirect_refs_may_alias_p): Likewise.
17269         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
17270
17271 2010-07-09  Richard Guenther  <rguenther@suse.de>
17272
17273         PR tree-optimization/44882
17274         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
17275         sets do conflict.
17276         (vectorizable_load): Likewise.
17277
17278 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
17279
17280         PR target/40657
17281         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
17282         All callers changed.
17283         Handle the case when we're called for the epilogue.
17284         (thumb_unexpanded_epilogue): Use it.
17285         (thumb1_expand_epilogue): Likewise.
17286
17287 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
17288
17289         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
17290         both ranges are range_int_cst_p with non-negative minimum,
17291         try harder to derive smaller range.
17292
17293 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17294
17295         * genrecog.c: Include diagnostic-core.h before toplev.h.
17296         * genoutput.c: Likewise.
17297         * genextract.c: Likewise.
17298         * genautomata.c: Likewise.
17299         * genemit.c: Likewise.
17300         * genpeep.c: Likewise.
17301         * genattrtab.c: Likewise.
17302         * genconditions.c: Likewise.
17303         * genpreds.c: Likewise.
17304
17305 2010-07-08  Andi Kleen  <ak@linux.intel.com>
17306
17307         * lto-section-in.c (lto_section_name): Add missing comma.
17308
17309 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
17310
17311         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
17312         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
17313         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
17314         (ia64_override_options): Rename to...
17315         (ia64_option_override): ... this one. Make static.
17316
17317 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
17318
17319         PR middle-end/44843
17320         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
17321         pointed-to type of the offset in a MEM_REF to compute the alignment.
17322
17323 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
17324
17325         * final.c (final_scan_insn): Replace
17326         TARGET_UNWIND_INFO macro check by unwind_emit
17327         hook NULL check.
17328         * targhooks.c (default_unwind_emit): Removed.
17329         * targhooks.h (default_unwind_emit): Likewise.
17330         * target.def (unwind_emit): Set default value to NULL.
17331
17332         * config/i386/i386-protos.h (ix86_asm_output_function_label):
17333         New prototype.
17334         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
17335         for NULL fntype argument and allow 64-bit targets.
17336         (ix86_asm_output_function_label): New function.
17337         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
17338         (ix86_handle_fndecl_attribute): Likewise.
17339         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
17340         * doc/doc/tm.texi: Regenerated.
17341         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
17342         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
17343         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
17344         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
17345         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
17346         * config/elfos.h: Likewise.
17347         * config/i386/cygming.h: Likewise.
17348         * config/netbsd-aout.h: Likewise.
17349         * config/openbsd.h: Likewise.
17350         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
17351         by ix86_asm_output_function_label function call.
17352         * varasm.c (assemble_start_function): Use
17353         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
17354
17355 2010-07-08  Jan Hubicka  <jh@suse.cz>
17356
17357         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
17358         New function.
17359         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
17360         Declare.
17361         * ipa-cp.c (ipcp_estimate_growth): Use it.
17362         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
17363         Likewise.
17364
17365 2010-07-08  Jan Hubicka  <jh@suse.cz>
17366
17367         * tree-inline.c (declare_return_variable): Allocate annotation for new
17368         temporary.
17369
17370 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
17371
17372         PR tree-optimization/44710
17373         * tree-if-conv.c (parse_predicate): New.
17374         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
17375         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
17376
17377 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
17378
17379         * common.opt (ftree-loop-if-convert): New flag.
17380         * doc/invoke.texi (ftree-loop-if-convert): Documented.
17381         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
17382         when flag_tree_loop_if_convert is set.
17383
17384 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
17385
17386         * config/i386/i386.c: Use short syntax for function calls
17387         through function pointers.
17388         * config/i386/i386.md: Ditto.
17389
17390 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
17391
17392         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
17393
17394 2010-07-08  Richard Guenther  <rguenther@suse.de>
17395
17396         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
17397         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
17398
17399 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
17400
17401         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
17402         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
17403         (loc_list_from_tree): Likewise.
17404         (output_loc_operands): Handle outputting DW_OP_const[48]u
17405         with loc->dtprel set.
17406         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
17407
17408 2010-07-08  Jan Hubicka  <jh@suse.cz>
17409
17410         * ipa.c: Include pointer-set.h
17411         (cgraph_externally_visible_p): New attribute ALIASED;
17412         when in LTO, hidden symbols are local unless they are aliased.
17413         (function_and_variable_visibility): Compute aliased nodes;
17414         handle LTO and hidden symbol on functions and vars.
17415         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
17416         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
17417
17418 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
17419
17420         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
17421         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17422         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17423         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17424         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17425         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
17426         (ix86_gen_probe_stack_range): Likewise.
17427         (override_options): Set them.
17428         (ix86_target_stack_probe): New function.
17429         (ix86_compute_frame_layout): Force use of push instructions to
17430         save registers if stack checking with probes is enabled.
17431         (get_scratch_register_on_entry): New function.
17432         (release_scratch_register_on_entry): Likewise.
17433         (ix86_adjust_stack_and_probe): Likewise.
17434         (output_adjust_stack_and_probe): Likewise.
17435         (ix86_emit_probe_stack_range): Likewise.
17436         (output_probe_stack_range): Likewise.
17437         (ix86_expand_prologue): Emit stack checking code if static built-in
17438         stack checking is enabled.
17439         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
17440         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
17441         (output_adjust_stack_and_probe): Likewise.
17442         (output_probe_stack_range): Likewise.
17443         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
17444         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
17445         TARGET_STACK_PROBE.
17446         (allocate_stack_worker_64): Likewise.
17447         (allocate_stack): Likewise.
17448         (adjust_stack_and_probe): New insn.
17449         (probe_stack_range): Likewise.
17450
17451 2010-07-08  Richard Guenther  <rguenther@suse.de>
17452
17453         PR tree-optimization/44831
17454         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
17455         a MEM_REF preserving TBAA info of the original dereference.
17456         Dereference the original pointer if the address is not invariant.
17457         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
17458         at least one invariant address that we are going to dereference.
17459
17460 2010-07-08  Richard Guenther  <rguenther@suse.de>
17461
17462         PR tree-optimization/44861
17463         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
17464         information when building MEM_REFs.
17465         (vectorizable_load): Likewise.
17466         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
17467
17468 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
17469
17470         * config/sol2-c.c: Do not include diagnostic-core.h.
17471
17472 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17473
17474         PR bootstrap/44768
17475         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
17476         with respect to current_function_decl. Pass decl of the function.
17477         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
17478         * ipa-inline.c (compute_inline_parameters): Pass decl to
17479         estimated_stack_frame_size.
17480
17481 2010-07-08  Richard Guenther  <rguenther@suse.de>
17482
17483         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17484         New function.
17485         (valueize_refs): Call it.
17486
17487 2010-07-08  Richard Guenther  <rguenther@suse.de>
17488
17489         PR rtl-optimization/44838
17490         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
17491         SSA form do not use pointer equivalence.
17492
17493 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
17494
17495         * dwarf2out.c (AT_linkage_name): Delete.
17496         (add_linkage_attr): New function.
17497         (add_linkage_name): Call it to emit the linkage attribute.
17498         (dwarf2out_finish): Likewise.
17499         (move_linkage_attr): Explicitly accept both attribute variants.
17500
17501 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17502
17503         * toplev.h: Do not include diagnostic-core.h.
17504         Include diagnostic-core.h in every file that includes toplev.h.
17505         * c-tree.h: Do not include toplev.h.
17506         * pretty-print.h: Update comment.
17507         * Makefile.in: Update dependencies.
17508         * alias.c: Include diagnostic-core.h in every file that includes
17509         toplev.h.
17510         * attribs.c: Likewise.
17511         * auto-inc-dec.c: Likewise.
17512         * bb-reorder.c: Likewise.
17513         * bt-load.c: Likewise.
17514         * caller-save.c: Likewise.
17515         * calls.c: Likewise.
17516         * cfg.c: Likewise.
17517         * cfganal.c: Likewise.
17518         * cfgbuild.c: Likewise.
17519         * cfgcleanup.c: Likewise.
17520         * cfghooks.c: Likewise.
17521         * cfgloop.c: Likewise.
17522         * combine.c: Likewise.
17523         * config/alpha/alpha.c: Likewise.
17524         * config/arc/arc.c: Likewise.
17525         * config/arm/arm.c: Likewise.
17526         * config/arm/pe.c: Likewise.
17527         * config/avr/avr.c: Likewise.
17528         * config/bfin/bfin.c: Likewise.
17529         * config/cris/cris.c: Likewise.
17530         * config/crx/crx.c: Likewise.
17531         * config/darwin-c.c: Likewise.
17532         * config/darwin.c: Likewise.
17533         * config/fr30/fr30.c: Likewise.
17534         * config/frv/frv.c: Likewise.
17535         * config/h8300/h8300.c: Likewise.
17536         * config/host-darwin.c: Likewise.
17537         * config/i386/i386.c: Likewise.
17538         * config/i386/netware.c: Likewise.
17539         * config/i386/nwld.c: Likewise.
17540         * config/i386/winnt-cxx.c: Likewise.
17541         * config/i386/winnt-stubs.c: Likewise.
17542         * config/i386/winnt.c: Likewise.
17543         * config/ia64/ia64-c.c: Likewise.
17544         * config/ia64/ia64.c: Likewise.
17545         * config/iq2000/iq2000.c: Likewise.
17546         * config/lm32/lm32.c: Likewise.
17547         * config/m32c/m32c-pragma.c: Likewise.
17548         * config/m32c/m32c.c: Likewise.
17549         * config/m32r/m32r.c: Likewise.
17550         * config/m68hc11/m68hc11.c: Likewise.
17551         * config/m68k/m68k.c: Likewise.
17552         * config/mcore/mcore.c: Likewise.
17553         * config/mep/mep-pragma.c: Likewise.
17554         * config/mep/mep.c: Likewise.
17555         * config/mmix/mmix.c: Likewise.
17556         * config/mn10300/mn10300.c: Likewise.
17557         * config/moxie/moxie.c: Likewise.
17558         * config/pa/pa.c: Likewise.
17559         * config/pdp11/pdp11.c: Likewise.
17560         * config/picochip/picochip.c: Likewise.
17561         * config/rs6000/rs6000-c.c: Likewise.
17562         * config/rs6000/rs6000.c: Likewise.
17563         * config/rx/rx.c: Likewise.
17564         * config/s390/s390.c: Likewise.
17565         * config/score/score.c: Likewise.
17566         * config/score/score3.c: Likewise.
17567         * config/score/score7.c: Likewise.
17568         * config/sh/sh.c: Likewise.
17569         * config/sh/symbian-base.c: Likewise.
17570         * config/sh/symbian-c.c: Likewise.
17571         * config/sh/symbian-cxx.c: Likewise.
17572         * config/sol2-c.c: Likewise.
17573         * config/sol2.c: Likewise.
17574         * config/sparc/sparc.c: Likewise.
17575         * config/spu/spu.c: Likewise.
17576         * config/stormy16/stormy16.c: Likewise.
17577         * config/v850/v850-c.c: Likewise.
17578         * config/v850/v850.c: Likewise.
17579         * config/vax/vax.c: Likewise.
17580         * config/vxworks.c: Likewise.
17581         * config/xtensa/xtensa.c: Likewise.
17582         * convert.c: Likewise.
17583         * cse.c: Likewise.
17584         * cselib.c: Likewise.
17585         * dbgcnt.c: Likewise.
17586         * dbxout.c: Likewise.
17587         * ddg.c: Likewise.
17588         * dominance.c: Likewise.
17589         * emit-rtl.c: Likewise.
17590         * explow.c: Likewise.
17591         * expmed.c: Likewise.
17592         * fixed-value.c: Likewise.
17593         * fold-const.c: Likewise.
17594         * fwprop.c: Likewise.
17595         * gcse.c: Likewise.
17596         * ggc-common.c: Likewise.
17597         * ggc-page.c: Likewise.
17598         * ggc-zone.c: Likewise.
17599         * gimple-low.c: Likewise.
17600         * gimplify.c: Likewise.
17601         * graph.c: Likewise.
17602         * haifa-sched.c: Likewise.
17603         * ifcvt.c: Likewise.
17604         * implicit-zee.c: Likewise.
17605         * integrate.c: Likewise.
17606         * ira-build.c: Likewise.
17607         * ira-color.c: Likewise.
17608         * ira-conflicts.c: Likewise.
17609         * ira-costs.c: Likewise.
17610         * ira-lives.c: Likewise.
17611         * ira.c: Likewise.
17612         * lists.c: Likewise.
17613         * loop-doloop.c: Likewise.
17614         * loop-iv.c: Likewise.
17615         * lto-opts.c: Likewise.
17616         * lto-symtab.c: Likewise.
17617         * main.c: Likewise.
17618         * modulo-sched.c: Likewise.
17619         * optabs.c: Likewise.
17620         * params.c: Likewise.
17621         * plugin.c: Likewise.
17622         * postreload-gcse.c: Likewise.
17623         * postreload.c: Likewise.
17624         * predict.c: Likewise.
17625         * profile.c: Likewise.
17626         * real.c: Likewise.
17627         * regcprop.c: Likewise.
17628         * reginfo.c: Likewise.
17629         * regmove.c: Likewise.
17630         * reorg.c: Likewise.
17631         * resource.c: Likewise.
17632         * rtl.c: Likewise.
17633         * rtlanal.c: Likewise.
17634         * sched-deps.c: Likewise.
17635         * sched-ebb.c: Likewise.
17636         * sched-rgn.c: Likewise.
17637         * sdbout.c: Likewise.
17638         * sel-sched-dump.c: Likewise.
17639         * sel-sched-ir.c: Likewise.
17640         * simplify-rtx.c: Likewise.
17641         * stmt.c: Likewise.
17642         * stor-layout.c: Likewise.
17643         * store-motion.c: Likewise.
17644         * targhooks.c: Likewise.
17645         * tree-cfg.c: Likewise.
17646         * tree-cfgcleanup.c: Likewise.
17647         * tree-dump.c: Likewise.
17648         * tree-eh.c: Likewise.
17649         * tree-inline.c: Likewise.
17650         * tree-nomudflap.c: Likewise.
17651         * tree-object-size.c: Likewise.
17652         * tree-optimize.c: Likewise.
17653         * tree-outof-ssa.c: Likewise.
17654         * tree-phinodes.c: Likewise.
17655         * tree-profile.c: Likewise.
17656         * tree-ssa-ccp.c: Likewise.
17657         * tree-ssa-coalesce.c: Likewise.
17658         * tree-ssa-live.c: Likewise.
17659         * tree-ssa-loop-niter.c: Likewise.
17660         * tree-ssa-loop-prefetch.c: Likewise.
17661         * tree-ssa-loop.c: Likewise.
17662         * tree-ssa-structalias.c: Likewise.
17663         * tree-ssa-uninit.c: Likewise.
17664         * tree-ssa.c: Likewise.
17665         * tree-vect-data-refs.c: Likewise.
17666         * tree-vect-loop-manip.c: Likewise.
17667         * tree-vect-loop.c: Likewise.
17668         * tree-vect-patterns.c: Likewise.
17669         * tree-vect-stmts.c: Likewise.
17670         * tree-vrp.c: Likewise.
17671         * varasm.c: Likewise.
17672         * vec.c: Likewise.
17673         * web.c: Likewise.
17674         * xcoffout.c: Likewise.
17675
17676 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
17677
17678         * gengtype.c (write_field_root): New function.
17679         (write_root): Use it.
17680
17681 2010-07-07  Wei Guozhi  <carrot@google.com>
17682
17683         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
17684         of lowest bits to lshift/compare): Add a missing line.
17685
17686 2010-07-07  Wei Guozhi  <carrot@google.com>
17687
17688         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
17689         of lowest bits to lshift/compare): New.
17690
17691 2010-07-07  Tom Tromey  <tromey@redhat.com>
17692
17693         * doc/tm.texi: Update.
17694         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
17695         Add @hook.
17696         * target.def (want_debug_pub_sections): New hook.
17697         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
17698         * dwarf2out.c (add_pubname_string): Check
17699         targetm.want_debug_pub_sections.
17700         (add_pubname): Likewise.
17701         (add_pubtype): Likewise.
17702
17703 2010-07-07  Jie Zhang  <jie@codesourcery.com>
17704
17705         * genautomata.c (output_automata_list_min_issue_delay_code):
17706         Correctly decompress min_issue_delay.
17707
17708 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
17709
17710         PR rtl-optimization/44404
17711         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
17712         possible, use reg_overlap_mentioned_p instead.
17713
17714 2010-07-07  Duncan Sands  <baldrick@free.fr>
17715
17716         PR middle-end/41355
17717         * tree.c (build_function_type_skip_args): Copy the original type using
17718         build_distinct_type_copy rather than copy_node.
17719
17720 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
17721
17722         PR target/44850
17723         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
17724         revision 161876.
17725         (ix86_expand_prologue): Likewise.
17726         (ix86_handle_fndecl_attribute): Likewise.
17727         (ix86_asm_declare_function_name): Likewise.
17728         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17729         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17730         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
17731         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
17732         * doc/extend.texi: Likewise.
17733
17734 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
17735
17736         PR target/44844
17737         * config/i386/i386.md (rdrand<mode>): Changed to expand to
17738         retry if the carry flag isn't valid.
17739         (rdrand<mode>_1): New.
17740
17741 2010-07-07  Richard Guenther  <rguenther@suse.de>
17742
17743         PR middle-end/44790
17744         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
17745         for expanding the constant offset for MEM_REFs.
17746
17747 2010-07-07  Richard Guenther  <rguenther@suse.de>
17748
17749         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
17750         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
17751         * gimple.h (is_gimple_operand): Remove.
17752         * gimple.c (is_gimple_operand): Likewise.
17753         (walk_gimple_op): Fix wi->val_only setting for calls.
17754         * tree-cfg.c (verify_gimple_call): Fix argument validation.
17755         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
17756         invalid gimple calls.
17757
17758 2010-07-06  Jan Hubicka  <jh@suse.cz>
17759
17760         * lto-cgraph.c (output_cgraph): Add missing declaration.
17761
17762 2010-07-06  Jan Hubicka  <jh@suse.cz>
17763
17764         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
17765         partition.
17766
17767 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
17768
17769         * doc/gimple.texi (GIMPLE_DEBUG): Document.
17770         * doc/rtl.texi (Debug Information): New node.
17771         (NOTE_INSN_VAR_LOCATION): Document.
17772         (debug_insn): Likewise.
17773         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
17774
17775 2010-07-07  Jan Hubicka  <jh@suse.cz>
17776
17777         With parts by Richard Guenther.
17778
17779         PR middle-end/44813
17780         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
17781         for functions passed by reference.
17782         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
17783         in memory when passed by reference.
17784         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
17785         beggining.
17786         * ipa-split.c (split_function): Cleanup way return value is passed;
17787         handle SSA DECL_BY_REFERENCE retvals.
17788         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
17789         DECL_BY_REFERENCE is set.
17790         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
17791         find_what_p_points_to): Handle RESULT_DECL.
17792         * tree-inline.c (declare_return_variable): Get new entry_block argument;
17793         when passing by reference ensure that RESULT_DECL is gimple_val.
17794         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
17795         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
17796
17797 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
17798
17799         PR rtl-optimization/44787
17800         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
17801         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
17802
17803 2010-07-06  Jan Hubicka  <jh@suse.cz>
17804
17805         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
17806         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
17807         with body can prevail.
17808         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
17809         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
17810         * cgraph.c (cgraph_get_node_or_alias): New function.
17811         * cgraph.h (cgraph_get_node_or_alias): Declare.
17812
17813 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
17814
17815         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
17816         support.
17817         (ix86_expand_prologue): Likewise.
17818         (ix86_handle_fndecl_attribute): Likewise.
17819         (ix86_asm_declare_function_name): New function for
17820         ASM_DECLARE_FUNCTION_NAME.
17821         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
17822         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
17823         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
17824         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
17825         * doc/extend.texi: Adjust documentation about ms_hook_prologue
17826         attribute.
17827
17828 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
17829
17830         * config/i386/i386.md (immediate_operand): New mode attribute.
17831
17832         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
17833         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
17834         using P mode iterator.
17835         (pro_epilogue_adjust_stack_di_2): Rename from
17836         pro_epilogue_adjust_stack_rex64_2.
17837
17838         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
17839
17840 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
17841
17842         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
17843         through gen_mov_insv_1 function pointer.
17844         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
17845         gen_truncxf<mode>2 through gen_truncxf function pointer.
17846         (remainder<mode>3): Ditto.
17847         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
17848         (allocate_stack): Call gen_allocate_stack_worker_64 or
17849         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
17850         function pointer.
17851         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
17852         function pointer.
17853
17854 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
17855
17856         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
17857         operand constraint instead of <r><i>m.
17858
17859 2010-07-06  Richard Guenther  <rguenther@suse.de>
17860
17861         PR middle-end/44828
17862         * convert.c (convert_to_integer): Watch out for overflowing
17863         MULT_EXPR as well.
17864
17865 2010-07-05  Jan Hubicka  <jh@suse.cz>
17866
17867         * lto-streamer.c (write_symbol_vec): Rename to ...
17868         (write_symbol) ... this one; write only symbol given and when
17869         present in cache. Sanity check that what is defined is present
17870         in cgraph/varpool with body/finalized decl.
17871         (write_symbols_of_kind): Remove.
17872         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
17873         pairs to produce symtab.
17874         (produce_asm_for_decls): Update call of produce_symtab; don't do so
17875         when doing WPA streaming.
17876
17877 2010-07-05  Jan Hubicka  <jh@suse.cz>
17878
17879         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
17880         function is still available to fold into.
17881
17882 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
17883
17884         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
17885         * function.h (struct_function): Change type of local_decls field
17886         to a VEC.
17887         (add_local_decl): New function.
17888         (FOR_EACH_LOCAL_DECL): New macro.
17889         * cfgexpand.c (init_vars_expansion): Adjust for new type of
17890         cfun->local_decls.
17891         (estimated_stack_frame_size): Likewise.
17892         (expand_used_vars): Likewise.
17893         * cgraphbuild.c (build_cgraph_edges): Likewise.
17894         * function.c (instantiate_decls_1): Likewise.
17895         * ipa-struct-reorg.c (build_data_structure): Likewise.
17896         * ipa-type-escape.c (analyze_function): Likewise.
17897         * lto-streamer-in.c (input_function): Likewise.
17898         * lto-streamer-out.c (output_function): Likewise.
17899         * tree-ssa-live.c (remove_unused_locals): Likewise.
17900         * tree.c (free_lang_data_in_decl): Likewise.
17901         (find_decls_types_in_node): Likewise.
17902         * omp-low.c (remove_exit_barrier): Likewise.
17903         (expand_omp_taskreg): Likewise.
17904         (list2chain): Rename to...
17905         (vec2chain): ...this.  Adjust.
17906         * cgraphunit.c (assemble_thunk): Call add_local_decl.
17907         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
17908         * gimple-low.c (record_vars_into): Likewise.
17909         * tree-inline.c (remap_decls): Likewise.
17910         (declare_return_variable): Likewise.
17911         (declare_inline_vars): Likewise.
17912         (copy_forbidden): Adjust for new type of cfun->local_decls.
17913         (add_local_variables): New function.
17914         (expand_call_inline): Call it.
17915         (tree_function_versioning): Likewise.
17916
17917 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
17918
17919         AVX Programming Reference (June, 2010)
17920         * config/i386/cpuid.h (bit_F16C): New.
17921         (bit_RDRND): Likewise.
17922         (bit_FSGSBASE): Likewise.
17923
17924         * config/i386/i386-builtin-types.def: Add
17925         "DEF_FUNCTION_TYPE (UINT16)", function types for
17926         float16 <-> float conversions and
17927         "DEF_FUNCTION_TYPE (VOID, UINT64)".
17928
17929         * config/i386/i386-c.c (ix86_target_macros_internal): Support
17930         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
17931         OPTION_MASK_ISA_F16C.
17932
17933         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
17934         (OPTION_MASK_ISA_RDRND_SET): Likewise.
17935         (OPTION_MASK_ISA_F16C_SET): Likewise.
17936         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
17937         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
17938         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
17939         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
17940         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
17941         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
17942         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
17943         (override_options): Handle them.
17944         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
17945         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
17946         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
17947         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
17948         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
17949         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
17950         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
17951         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
17952         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
17953         (bdesc_args): Likewise.
17954         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
17955         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
17956         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
17957         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
17958         Handle non-memory store.
17959
17960         * config/i386/i386.h (TARGET_FSGSBASE): New.
17961         (TARGET_RDRND): Likewise.
17962         (TARGET_F12C): Likewise.
17963
17964         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
17965         (UNSPEC_VCVTPS2PH): Likewise.
17966         (UNSPECV_RDFSBASE): Likewise.
17967         (UNSPECV_RDGSBASE): Likewise.
17968         (UNSPECV_WRFSBASE): Likewise.
17969         (UNSPECV_WRGSBASE): Likewise.
17970         (UNSPECV_RDRAND): Likewise.
17971         (rdfsbase<mode>): Likewise.
17972         (rdgsbase<mode>): Likewise.
17973         (wrfsbase<mode>): Likewise.
17974         (wrgsbase<mode>): Likewise.
17975         (rdrand<mode>): Likewise.
17976
17977         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
17978
17979         * config/i386/immintrin.h (_rdrand_u16): New.
17980         (_rdrand_u32): Likewise.
17981         (_readfsbase_u32): Likewise.
17982         (_readfsbase_u64): Likewise.
17983         (_readgsbase_u32): Likewise.
17984         (_readgsbase_u64): Likewise.
17985         (_writefsbase_u32): Likewise.
17986         (_writefsbase_u64): Likewise.
17987         (_writegsbase_u32): Likewise.
17988         (_writegsbase_u64): Likewise.
17989         (_rdrand_u64): Likewise.
17990         (_cvtsh_ss): Likewise.
17991         (_mm_cvtph_ps): Likewise.
17992         (_mm256_cvtph_ps): Likewise.
17993         (_cvtss_sh): Likewise.
17994         (_mm_cvtps_ph): Likewise.
17995         (_mm256_cvtps_ph): Likewise.
17996
17997         * config/i386/sse.md (vcvtph2ps): New.
17998         (*vcvtph2ps_load): Likewise.
17999         (vcvtph2ps256): Likewise.
18000         (vcvtps2ph): Likewise.
18001         (*vcvtps2ph): Likewise.
18002         (*vcvtps2ph_store): Likewise.
18003         (vcvtps2ph256): Likewise.
18004
18005         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
18006
18007         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
18008
18009 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
18010
18011         PR bootstrap/44512
18012         * genenums.c (main): Output include of insn-constants.h
18013         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
18014
18015 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
18016
18017         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
18018         (override_options): Initialize it.
18019         (ix86_expand_prologue): Use it.
18020
18021 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
18022
18023         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
18024
18025 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
18026
18027         * double-int.h (fit_double_type): Remove declaration.
18028         * double-int.c (fit_double_type): Remove function.
18029         * tree.h (int_fits_type_p): Adjust prototype.
18030         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
18031         instead of fit_double_type.
18032         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
18033         instead of fit_double_type and build_int_cst_wide.
18034         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
18035         instead of fit_double_type and build_int_cst_wide.
18036         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
18037         of fit_double_type.
18038
18039 2010-07-05  Jan Hubicka  <jh@suse.cz>
18040
18041         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
18042         in_other_partition.
18043         * lto-cgraph.c (referenced_from_other_partition_p,
18044         reachable_from_other_partition_p): Use in_other_partition flags.
18045         (output_node, output_varpool_node): COMDAT nodes always have private
18046         copies and thus are never used from other partition.
18047
18048 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
18049
18050         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
18051         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
18052         * config/ia64/ia64.c Include reload.h.
18053         (ia64_memory_move_cost): New function.
18054         (TARGET_MEMORY_MOVE_COST): Define.
18055         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
18056         memory_move_cost.
18057
18058 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
18059
18060         PR middle-end/42505
18061         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
18062         comments about cost model.
18063         (try_add_cand_for):  Add second strategy for choosing initial set
18064         based on original IVs, controlled by ORIGINALP argument.
18065         (get_initial_solution): Add ORIGINALP argument.
18066         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
18067         (find_optimal_iv_set): Try two different strategies for choosing
18068         the IV set, and return the one with lower cost.
18069
18070 2010-07-05  Richard Guenther  <rguenther@suse.de>
18071
18072         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
18073
18074 2010-07-05  Richard Guenther  <rguenther@suse.de>
18075
18076         * tree.c (reference_alias_ptr_type): New function.
18077         * tree.h (reference_alias_ptr_type): Declare.
18078         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
18079         allow non-TARGET_MEM_REF new refs.
18080         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
18081         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
18082         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
18083         (create_mem_ref): Get alias pointer type.  Adjust calls to
18084         create_mem_ref_raw.
18085         (maybe_fold_tmr): Likewise.
18086         * tree-flow.h (create_mem_ref): Adjust prototype.
18087
18088 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
18089
18090         PR c++/44808
18091         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
18092         *from_p is VAR_DECL.
18093
18094 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
18095
18096         * tree.h (build_call_list): Remove.
18097         * tree.c (build_call_list): Remove.
18098
18099 2010-07-05  Richard Guenther  <rguenther@suse.de>
18100
18101         * double-int.h (double_int_sub): Declare.
18102         * double-int.c (double_int_sub): New function.
18103         * dwarf2out.c (field_byte_offset): Use it.
18104         * fixed-value.c (do_fixed_add): Likewise.
18105         (do_fixed_multiply): Likewise.
18106         (do_fixed_divide): Likewise.
18107         * tree-predcom.c (add_ref_to_chain): Likewise.
18108         (determine_roots_comp): Likewise.
18109         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
18110
18111 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
18112
18113         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
18114         implementations.
18115
18116 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
18117
18118         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
18119         * arm-modes.def (CC_NOTB): Don't define.
18120         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
18121         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
18122         (LTUGEU): New code_iterator.
18123         (cnb, optab): New corresponding code_attrs.
18124         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
18125         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
18126         using LTUGEU.
18127         (addsi3_carryin_shift_<optab>): Likewise.
18128         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
18129         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
18130         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
18131         (subsi3_compare): Renamed from subsi3_compare0_c.
18132         Change CC_NOTB to CC.
18133         (arm_subsi3_insn): Allow constants for operand 0.
18134         (compare_scc peephole for eq case): New.
18135         (compare_scc splitters): Change CC_NOTB to CC.
18136
18137 2010-07-05  Richard Guenther  <rguenther@suse.de>
18138
18139         * tree-ssa-loop-im.c (for_each_index): Do not handle
18140         ALIGN_INDIRECT_REF.
18141         (gen_lsm_tmp_name): Likewise.
18142         * tree-dump.c (dequeue_and_dump): Likewise.
18143         * tree-pretty-print.c (dump_generic_node): Likewise.
18144         (op_code_prio): Likewise.
18145         (op_symbol_code): Likewise.
18146         * tree.c (staticp): Likewise.
18147         (build1_stat): Likewise.
18148         * tree.h (INDIRECT_REF_P): Likewise.
18149         * fold-const.c (maybe_lvalue_p): Likewise.
18150         (operand_equal_p): Likewise.
18151         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
18152         (ao_ref_init_from_vn_reference): Likewise.
18153         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
18154         (find_interesting_uses_address): Likewise.
18155         * dwarf2out.c (loc_list_from_tree): Likewise.
18156         * gimplify.c (gimplify_expr): Likewise.
18157         * tree-eh.c (tree_could_trap_p): Likewise.
18158         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
18159         * cfgexpand.c (expand_debug_expr): Likewise.
18160         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
18161         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
18162         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
18163         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
18164         * tree-ssa-operands.c (get_expr_operands): Likewise.
18165         * expr.c (safe_from_p): Likewise.
18166         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
18167         * tree-vect-data-refs.c (vect_setup_realignment): Build
18168         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
18169         * tree-vect-stmts.c (vectorizable_load): Likewise.
18170         * tree.def (ALIGN_INDIRECT_REF): Remove.
18171
18172 2010-07-05  Richard Guenther  <rguenther@suse.de>
18173
18174         PR tree-optimization/44784
18175         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
18176         for inserted stmts.
18177         (find_or_generate_expression): Fix SCCVN insertion check.
18178
18179 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
18180
18181         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
18182         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
18183         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
18184         directives.
18185
18186 2010-07-05  Ira Rosen  <irar@il.ibm.com>
18187
18188         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
18189         statements that are not vectorized.
18190         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
18191         in INSIDE_COST.
18192
18193 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
18194
18195         PR bootstrap/44820
18196         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
18197
18198 2010-07-05  Richard Guenther  <rguenther@suse.de>
18199
18200         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
18201         RESULT_DECLs properly.
18202
18203 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18204
18205         PR rtl-optimization/44695
18206         * config/i386/i386.md (extract_code): Removed.
18207         (<u>divmodqi4): Likewise.
18208         (divmodqi4): New.
18209         (udivmodqi4): Likewise.
18210         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
18211         (udivmodhiqi3): Likewise.
18212
18213 2010-07-04  Jan Hubicka  <jh@suse.cz>
18214
18215         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
18216
18217 2010-07-04  Jan Hubicka  <jh@suse.cz>
18218
18219         * cgraphunit.c (init_cgraph): Only initialize dump file if it
18220         is not already initialized.
18221
18222 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
18223
18224         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
18225         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
18226         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
18227         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
18228         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
18229         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
18230         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
18231         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
18232         (sync_new_nand_optab): Redefine as macros.
18233         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
18234         Delete.
18235         (direct_optab_index): New enum.
18236         (direct_optab_d): New structure.
18237         (direct_optab): New typedef.
18238         (direct_optab_table): Declare.
18239         (direct_optab_handler, set_direct_optab_handler): New functions.
18240         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
18241         (sync_lock_release_optab): New macros.
18242         * optabs.c (direct_optab_table): New variable.
18243         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
18244         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
18245         cmpstr_optab and cmpstrn_optab.
18246         (emit_conditional_move): Likewise for movcc_optab.
18247         (can_conditionally_move_p): Likewise for movcc_gen_code.
18248         (init_insn_codes): Clear direct_optab_table.
18249         (init_optabs): Don't initialize the new "direct optabs" here.
18250         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
18251         vcond_gen_code.
18252         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
18253         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
18254         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
18255         (expand_sync_operation): Likewise other sync_*_optabs.
18256         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
18257         to sync_compare_and_swap_optab.
18258         (expand_sync_lock_test_and_set): Use direct_optab_handler for
18259         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
18260         to the names of both.
18261         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
18262         cmpstr_optab and cmpstrn_optab.
18263         (expand_builtin_lock_release): Likewise sync_lock_release.
18264         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
18265         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
18266         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
18267         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
18268         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
18269         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
18270         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
18271         (sync_lock_test_and_set, sync_lock_release): Delete.
18272         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
18273         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
18274         * genopinit.c (optabs): Use set_direct_optab_handler for the new
18275         macro optabs.
18276         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
18277         the "optab" local variable.  Use direct_optab_handler for optab and
18278         sync_compare_and_swap_optab.
18279         * reload1.c (reload_in_optab, reload_out_optab): Delete.
18280         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
18281         reload_in_optab and reload_out_optab.
18282         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
18283         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
18284         * config/pa/pa.c (pa_secondary_reload): Likewise.
18285         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
18286         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
18287         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
18288         (VMSupportsCS8_builtin): Likewise.
18289
18290 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
18291
18292         * optabs.h (optab_handlers): Change type of insn_code to int.
18293         (optab_handler, set_optab_handler, convert_optab_handler)
18294         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
18295         CODE_FOR_nothing".
18296         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
18297         (init_insn_codes): Zero both the above arrays.
18298         (init_optabs): Never call init_insn_codes first time around.
18299
18300 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
18301
18302         * optabs.h (optab_handler, convert_optab_handler): Turn into
18303         inline functions that return an insn code.
18304         (set_optab_handler, set_convert_optab_handler): New functions.
18305         * builtins.c: Replace optab_handler(X)->insn_code with
18306         optab_handler or set_optab_handler thoughout.  Likewise
18307         convert_optab_handler(X)->insn_code with convert_optab_handler
18308         and set_convert_optab_handler.
18309         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
18310         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
18311         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
18312         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
18313         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
18314         config/spu/spu.c: Likewise.
18315
18316 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
18317
18318         PR target/44531
18319         * config.gcc (sh*-*-*): Use regular expressions instead of
18320         the 'i' modifier for sed substitutions.
18321
18322 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
18323
18324         * gimple.c (gimple_body): Comments added.
18325
18326 2010-07-04  Richard Guenther  <rguenther@suse.de>
18327
18328         PR middle-end/44809
18329         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
18330         of an INDIRECT_REF.
18331
18332 2010-07-04  Richard Guenther  <rguenther@suse.de>
18333
18334         PR tree-optimization/44479
18335         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
18336         extra SSA name copy statements which preserves points-to
18337         information.
18338         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
18339         Copy points-to information for all pointers.  Properly handle
18340         MEM_REFs.
18341         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
18342         copy statements.
18343         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
18344         dependency.
18345
18346 2010-07-04  Richard Guenther  <rguenther@suse.de>
18347
18348         PR middle-end/44785
18349         * tree-inline.c (initialize_inlined_parameters): Do not
18350         re-use pointer-map slot over remap_type call.
18351
18352 2010-07-04  Richard Guenther  <rguenther@suse.de>
18353
18354         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
18355
18356 2010-07-04  Richard Guenther  <rguenther@suse.de>
18357
18358         PR tree-optimization/44656
18359         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
18360         again after value-replacing in the defintions lhs.
18361
18362 2010-07-04  Ira Rosen  <irar@il.ibm.com>
18363             Revital Eres  <eres@il.ibm.com>
18364
18365         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
18366         Document new arguments.
18367         * doc/tm.texi: Regenerate.
18368         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
18369         Handle unaligned store.
18370         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
18371         * target.def (builtin_vectorization_cost): Add new arguments.
18372         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
18373         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
18374         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
18375         (vect_vfa_segment_size): Fix indentation.
18376         * tree-vectorizer.h (struct _vect_peel_info): New.
18377         (struct _vect_peel_extended_info): New.
18378         (struct _loop_vec_info): Add new field for peeling hash table and a
18379         macro for its access.
18380         (VECT_MAX_COST): Define.
18381         (vect_get_load_cost): Declare.
18382         (vect_get_store_cost, vect_get_known_peeling_cost,
18383         vect_get_single_scalar_iteraion_cost): Likewise.
18384         (vect_supportable_dr_alignment): Add new argument.
18385         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
18386         field.
18387         (destroy_loop_vec_info): Free peeling hash table.
18388         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
18389         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
18390         vect_analyze_slp. Fix indentation.
18391         (vect_get_single_scalar_iteraion_cost): New function.
18392         (vect_get_known_peeling_cost): Likewise.
18393         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
18394         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
18395         statement. Move outside cost calculation inside unknown peeling case.
18396         Call vect_get_known_peeling_cost for known amount of peeling.
18397         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
18398         reference to the print message of forced alignment.
18399         (vect_verify_datarefs_alignment): Update call to
18400         vect_supportable_dr_alignment.
18401         (vect_get_data_access_cost): New function.
18402         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
18403         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
18404         vect_peeling_hash_choose_best_peeling): Likewise.
18405         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
18406         to store all the accesses in the loop and find best possible access to
18407         align using peeling for known alignment case. For unknown alignment
18408         check if stores are preferred or if peeling is worthy.
18409         (vect_find_same_alignment_drs): Analyze pairs of loads too.
18410         (vect_supportable_dr_alignment): Add new argument and check aligned
18411         accesses according to it.
18412         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
18413         (cost_for_stmt): Call vect_get_stmt_cost.
18414         (vect_model_simple_cost): Likewise.
18415         (vect_model_store_cost): Call vect_get_stmt_cost. Call
18416         vect_get_store_cost to calculate the cost of the statement.
18417         (vect_get_store_cost): New function.
18418         (vect_model_load_cost): Call vect_get_stmt_cost. Call
18419         vect_get_load_cost to calculate the cost of the statement.
18420         (vect_get_load_cost): New function.
18421         (vectorizable_store): Update call to vect_supportable_dr_alignment.
18422         (vectorizable_load): Likewise.
18423         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
18424         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
18425         arguments. Handle unaligned store.
18426         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
18427         (rs6000_builtin_support_vector_misalignment): Return true for word and
18428         double word alignments for VSX.
18429         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
18430         vect_supportable_dr_alignment and builtin_vectorization_cost.
18431
18432 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18433
18434         PR target/44597
18435         * config/pa/predicates.md (prefetch_cc_operand): Remove.
18436         (prefetch_nocc_operand): Likewise.
18437         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
18438         (prefetch_20): New insn.
18439         (prefetch_cc): Remove.
18440         (prefetch_nocc): Likewise.
18441
18442 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18443
18444         * expr.c (vector_mode_valid_p): Move to c-common.c.
18445         * expr.h (vector_mode_valid_p): Do not declare here.
18446         * system.h: Poison GCC_EXPR_H in front-ends.
18447         * Makefile.in: Update dependencies.
18448
18449 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18450
18451         PR target/44705
18452         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
18453
18454 2010-07-03  Jan Hubicka  <jh@suse.cz>
18455
18456         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
18457         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
18458         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
18459         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
18460         Likewise.
18461
18462         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
18463         Update timevars.V
18464         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
18465         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
18466         TV_IPA_LTO_DECL_OUT): New.
18467         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
18468
18469 2010-07-03  Jan Hubicka  <jh@suse.cz>
18470
18471         * ipa-inline.c (update_edge_key): Break out from ...
18472         update_callers_keys): ... here;
18473         (update_callee_keys): Update only the edges from caller to callee.
18474         (update_all_calle_keys): Do what update_calle_keys did.
18475         (decide_inlining_of_small_functions): Avoid recomputing of all
18476         callees when badness increase.
18477
18478 2010-07-03  Jie Zhang  <jie@codesourcery.com>
18479
18480         * config/arm/arm.c (arm_attr_length_move_neon): New.
18481         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
18482         * config/arm/neon.md (define_mode_attr V_slen): Remove.
18483         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
18484         to compute length attribute.
18485
18486 2010-07-03  Jie Zhang  <jie@codesourcery.com>
18487
18488         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
18489         as predicate for operand 1 and remove its constraint.
18490         * config/arm/predicates.md (vfp_register_operand): New.
18491         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
18492         (*push_fp_multi): Likewise.
18493
18494 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
18495
18496         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
18497
18498 2010-07-03  Jan Hubicka  <jh@suse.cz>
18499
18500         * config/i386/i386.c (override_options): Revert accidental commit.
18501
18502 2010-07-02  Le-Chun Wu  <lcwu@google.com>
18503
18504         PR c++/44128
18505         * doc/invoke.texi: Update documentation of -Wshadow.
18506
18507 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
18508             Julian Brown  <julian@codesourcery.com>
18509             Sandra Loosemore  <sandra@codesourcery.com>
18510
18511         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
18512         comparisons.  Adjust to take both operands.
18513         (arm_select_cc_mode): Handle DImode comparisons.
18514         (arm_gen_compare_reg): Generate a scratch register for DImode
18515         comparisons which require one.  Use xor for Thumb equality checks.
18516         (arm_const_double_by_immediates): New.
18517         (arm_print_operand): Allow 'Q' and 'R' for constants.
18518         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
18519         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
18520         arm_canonicalize_comparison.
18521         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
18522         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
18523         prototype.
18524         (arm_const_double_by_immediates): Declare.
18525         * config/arm/constraints.md (Di): New constraint.
18526         * config/arm/predicates.md (arm_immediate_di_operand)
18527         (arm_di_operand, cmpdi_operand): New.
18528         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
18529         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
18530         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
18531         (cstoredi4): Handle non-Cirrus also.
18532
18533 2010-07-02  Julian Brown  <julian@codesourcery.com>
18534             Sandra Loosemore  <sandra@codesourcery.com>
18535
18536         PR target/43703
18537         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
18538         (smax<mode>3): Disable for NEON float modes when
18539         flag_unsafe_math_optimizations is false.
18540         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
18541         (*mul<mode>3_neon)
18542         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
18543         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
18544         for NEON float modes when flag_unsafe_math_optimizations is false.
18545         (quad_halves_<code>v4sf): Only enable if
18546         flag_unsafe_math_optimizations is true.
18547         * doc/invoke.texi (ARM Options): Add note about floating point
18548         vectorization requiring -funsafe-math-optimizations.
18549
18550 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18551             Julian Brown  <julian@codesourcery.com>
18552
18553         * config/arm/neon.md (UNSPEC_VABA): Delete.
18554         (UNSPEC_VABAL): Delete.
18555         (UNSPEC_VABS): Delete.
18556         (UNSPEC_VMUL_N): Delete.
18557         (adddi3_neon): New.
18558         (subdi3_neon): New.
18559         (mul<mode>3add<mode>_neon): Make the pattern named.
18560         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
18561         (neon_vadd<mode>): Replace with define_expand, and move the remaining
18562         unspec parts...
18563         (neon_vadd<mode>_unspec): ...to this.
18564         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
18565         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
18566         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
18567         (neon_vaba<mode>): Rewrite in terms of vabd.
18568         (neon_vabal<mode>): Rewrite in terms of vabdl.
18569         (neon_vabs<mode>): Rewrite without unspec.
18570         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
18571         (*arm_subdi3): Likewise.
18572         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
18573         No_op attribute to disable assembly output checks.
18574         * config/arm/arm_neon.h: Regenerated.
18575         * doc/arm-neon-intrinsics.texi: Regenerated.
18576
18577 2010-07-02  Jan Hubicka  <jh@suse.cz>
18578
18579         * ipa-split.c (split_function): For aggregate values, set the return
18580         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
18581         *<retval> = fncall.part ().
18582         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
18583
18584 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18585
18586         * config/arm/neon.md (UNSPEC_VAND): Delete.
18587         (UNSPEC_VBIC): Delete.
18588         (UNSPEC_VCLZ): Delete.
18589         (UNSPEC_VCNT): Delete.
18590         (UNSPEC_VEOR): Delete.
18591         (UNSPEC_VORN): Delete.
18592         (UNSPEC_VORR): Delete.
18593         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
18594         core registers too.
18595         (anddi3_neon): Likewise.
18596         (orndi3_neon): Likewise.
18597         (bicdi3_neon): Likewise.
18598         (xordi3_neon): Likewise.
18599         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
18600         rid of unspec and handle unused operand.
18601         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
18602         * config/arm/predicates.md (imm_for_neon_logic_operand):
18603         Require TARGET_NEON.
18604         (imm_for_neon_inv_logic_operand): Likewise.
18605         * config/arm/arm.md (define_split for logical_binary_operator):
18606         Disable for NEON registers.
18607         (anddi3): Add new define_expand, and rename the insn.  Disable
18608         this insn for NEON, where anddi3_neon now applies.
18609         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
18610         (iordi3): As for anddi3.
18611         (xordi3): Likewise.
18612         * config/arm/neon.ml (Vand): Split DImode variants and mark them
18613         as No_op to disable testing for exact instruction match.
18614         (Vorr): Likewise.
18615         (Veor): Likewise.
18616         (Vbic): Likewise.
18617         (Vorn): Likewise.
18618         * config/arm/arm_neon.h: Regenerated.
18619         * doc/arm-neon-intrinsics.texi: Regenerated.
18620
18621 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
18622
18623         * expr.h (emit_stack_probe): Declare.
18624         * explow.c (emit_stack_probe): Make global.
18625         (anti_adjust_stack_and_probe): Fix comments.
18626         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
18627         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18628         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18629         * config/sparc/sparc.c: Include except.h.
18630         (sparc_emit_probe_stack_range): New function.
18631         (output_probe_stack_range): Likewise.
18632         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
18633         built-in stack checking is enabled.
18634         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
18635         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
18636         (probe_stack_range): New insn.
18637
18638 2010-07-02  Richard Guenther  <rguenther@suse.de>
18639
18640         PR target/43958
18641         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
18642         for argument alignment.
18643
18644 2010-07-02  Jan Hubicka  <jh@suse.cz>
18645
18646         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
18647         walk backwards from entry_bb to check only those basic block of header
18648         that might lead to execution of split part.
18649         (consider_split) ... here.
18650         (find_return_bb): Allow assignment in return BB.
18651         (find_retval): New.
18652         (split_function): Fix name of cloned function; take care of updating
18653         return value in return_bb containing move.
18654
18655 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
18656
18657         PR target/44771
18658         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
18659         used variable insn.
18660
18661 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
18662
18663         * implicit-zee.c (combine_reaching_defs): Fix long lines.
18664         (is_set_with_extension_DI): Delete.
18665         (struct zero_extend_info): New structure.
18666         (add_removable_zero_extend): New function.
18667         (find_removable_zero_extends): Use note_stores to find SETs.
18668         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
18669
18670 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
18671
18672         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
18673         is_miss_rate_acceptable. Pull total_positions computation
18674         out of the loops.  Early return if miss_positions exceeds
18675         the acceptable threshold.
18676         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
18677         is_miss_rate_acceptable after renaming of compute_miss_rate.
18678
18679 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
18680
18681         PR middle-end/44576
18682         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
18683         of 1000) for miss rate if the address diference is greater than or
18684         equal to the cache line size (the two reference will never hit the
18685         same cache line).
18686
18687 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
18688
18689         PR target/42835
18690         * config/arm/arm-modes.def (CC_NOTB): New mode.
18691         * config/arm/arm.c (get_arm_condition_code): Handle it.
18692         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
18693         * config/arm/arm.md (subsi3_compare0_c): New pattern.
18694         (compare_scc): Now a define_and_split.  Add a number of extra
18695         splitters before it.
18696
18697         PR target/42172
18698         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
18699         and ZERO_EXTEND.
18700         (arm_rtx_costs_1): Likewise.
18701         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
18702         * config/arm/arm.md (is_arch6): New attribute.
18703         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
18704         extendqisi2): Tighten the code somewhat, avoiding invalid
18705         RTL to occur in the expander patterns.
18706         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
18707         (thumb1_zero_extendhisi2_v6): Delete.
18708         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
18709         (thumb1_extendhisi2_v6): Delete.
18710         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
18711         (thumb1_extendqisi2_v6): Delete.
18712         (zero_extendhisi2 for register input splitter): New.
18713         (zero_extendqisi2 for register input splitter): New.
18714         (thumb1_extendhisi2 for register input splitter): New.
18715         (extendhisi2 for register input splitter): New.
18716         (extendqisi2 for register input splitter): New.
18717         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
18718         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
18719         and add support for a register alternative requiring a split.
18720         (thumb1_zero_extendqisi2): Likewise.
18721         (arm_zero_extendqisi2): Likewise.
18722         (arm_extendhisi2): Likewise.
18723         (arm_extendqisi2): Likewise.
18724
18725 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18726
18727         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
18728         instead of an unspec.
18729         (neon_expand_vector_init): Likewise.
18730         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
18731         (UNSPEC_VDUP_LANE): Delete.
18732         (UNSPEC VDUP_N): Delete.
18733         (UNSPEC_VGET_HIGH): Delete.
18734         (UNSPEC_VGET_LANE): Delete.
18735         (UNSPEC_VGET_LOW): Delete.
18736         (UNSPEC_VMVN): Delete.
18737         (UNSPEC_VSET_LANE): Delete.
18738         (V_double_vector_mode): New.
18739         (vec_set<mode>_internal): Make code emitted match that for the
18740         corresponding intrinsics.
18741         (vec_setv2di_internal): Likewise.
18742         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
18743         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
18744         (neon_vset_lane<mode>): Combine double and quad patterns and
18745         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
18746         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
18747         (neon_vdup_n<mode>): Rewrite RTL without unspec.
18748         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
18749         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
18750         with neon_vdup_lanev2di, adjusting the pattern from the latter
18751         to be predicable for consistency.
18752         (neon_vdup_lane<mode>_internal): New.
18753         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
18754         to avoid using an unspec.
18755         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
18756         (neon_vdup_lanev2di): Turn into a define_expand.
18757         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
18758         (neon_vget_high<mode>): Replace with....
18759         (neon_vget_highv16qi): New pattern using canonical RTL.
18760         (neon_vget_highv8hi): Likewise.
18761         (neon_vget_highv4si): Likewise.
18762         (neon_vget_highv4sf): Likewise.
18763         (neon_vget_highv2di): Likewise.
18764         (neon_vget_low<mode>): Replace with....
18765         (neon_vget_lowv16qi): New pattern using canonical RTL.
18766         (neon_vget_lowv8hi): Likewise.
18767         (neon_vget_lowv4si): Likewise.
18768         (neon_vget_lowv4sf): Likewise.
18769         (neon_vget_lowv2di): Likewise.
18770
18771         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
18772         test for this emitting vmov.
18773         (Vset_lane): Likewise.
18774         (Vdup_n): Likewise.
18775         (Vmov_n): Likewise.
18776
18777         * doc/arm-neon-intrinsics.texi: Regenerated.
18778
18779 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18780
18781         * config/arm/neon.md (vec_extractv2di): Correct error in register
18782         numbering to reconcile with neon_vget_lanev2di.
18783
18784 2010-07-02  Richard Guenther  <rguenther@suse.de>
18785
18786         * tree-ssa-structalias.c (pt_solution_set_var): New function.
18787         * tree-ssa-alias.h (pt_solution_set_var): Declare.
18788         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
18789         points-to information.
18790
18791 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
18792
18793         * config/s390/s390.c (override_options): Adopt prefetching
18794         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
18795
18796 2010-07-02  Jan Hubicka  <jh@suse.cz>
18797
18798         * df-problems.c (df_kill_notes): Do not collect dead  notes.
18799         (df_set_note): Just call add_reg_note.
18800         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
18801         df_create_unused_note): Do not deal with lists of old notes.
18802         (df_note_bb_compute): Likewise.
18803
18804 2010-07-02  Richard Guenther  <rguenther@suse.de>
18805
18806         * tree-ssa-structalias.c (find_func_aliases): Handle
18807         pointer alignment via BIT_AND_EXPR.
18808         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
18809
18810 2010-07-02  Richard Guenther  <rguenther@suse.de>
18811
18812         * tree-data-ref.c (initialize_data_dependence_relation): Handle
18813         mismatching number of dimensions properly.
18814
18815 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18816
18817         PR target/44707
18818         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
18819         (lo_sum (high ...) ...) patterns generated by earlier passes.
18820
18821 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18822
18823         * doc/install.texi (Prerequisites): Document Perl requirement on
18824         Solaris 2.
18825         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
18826
18827 2010-07-02  Richard Guenther  <rguenther@suse.de>
18828
18829         PR middle-end/44777
18830         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
18831
18832 2010-07-02  Jan Hubicka  <jh@suse.cz>
18833
18834         PR middle-end/44706
18835         * predict.c (predict_paths_for_bb): Handle case when control dependence
18836         BB has only abnormal edges.
18837
18838 2010-07-02  Richard Guenther  <rguenther@suse.de>
18839
18840         PR tree-optimization/44748
18841         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
18842         the embedded conversion in MEM_REFs.
18843
18844 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
18845
18846         * reload.c: Include toplev.h.
18847         * recog.c:  Likewise.
18848         * Makefile.in: Adjust dependencies.
18849
18850 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
18851
18852         PR debug/44694
18853         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
18854         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
18855
18856 2010-07-01  Richard Guenther  <rguenther@suse.de>
18857
18858         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
18859         types for offsets.
18860
18861 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
18862
18863         PR target/44732
18864         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
18865         Fix argument types.
18866
18867 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
18868
18869         PR target/44727
18870         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
18871         Make sure operand 0 dies.
18872
18873 2010-07-01  Richard Guenther  <rguenther@suse.de>
18874
18875         PR middle-end/42834
18876         PR middle-end/44468
18877         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
18878         * doc/generic.texi (References to storage): Document MEM_REF.
18879         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
18880         (print_call_name): Likewise.
18881         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
18882         (build_simple_mem_ref_loc): New function.
18883         (mem_ref_offset): Likewise.
18884         * tree.h (build_simple_mem_ref_loc): Declare.
18885         (build_simple_mem_ref): Define.
18886         (mem_ref_offset): Declare.
18887         * fold-const.c: Include tree-flow.h.
18888         (operand_equal_p): Handle MEM_REF.
18889         (build_fold_addr_expr_with_type_loc): Likewise.
18890         (fold_comparison): Likewise.
18891         (fold_unary_loc): Fold
18892         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
18893         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
18894         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
18895         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
18896         (ptr_deref_may_alias_ref_p_1): Likewise.
18897         (ao_ref_base_alias_set): Properly differentiate base object for
18898         offset and TBAA.
18899         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
18900         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
18901         (indirect_refs_may_alias_p): Likewise.
18902         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
18903         chasing code.
18904         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
18905         (call_may_clobber_ref_p_1): Likewise.
18906         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
18907         * expr.c (expand_assignment): Handle MEM_REF.
18908         (store_expr): Handle MEM_REFs from STRING_CSTs.
18909         (store_field): If expanding a MEM_REF of a non-addressable
18910         decl use bitfield operations.
18911         (get_inner_reference): Handle MEM_REF.
18912         (expand_expr_addr_expr_1): Likewise.
18913         (expand_expr_real_1): Likewise.
18914         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
18915         * alias.c (ao_ref_from_mem): Handle MEM_REF.
18916         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
18917         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
18918         (dr_analyze_indices): Likewise.
18919         (dr_analyze_alias): Likewise.
18920         (object_address_invariant_in_loop_p): Likewise.
18921         * gimplify.c (mark_addressable): Handle MEM_REF.
18922         (gimplify_cond_expr): Build MEM_REFs.
18923         (gimplify_modify_expr_to_memcpy): Likewise.
18924         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
18925         (gimple_fold_indirect_ref): Adjust.
18926         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
18927         * tree.def (MEM_REF): New tree code.
18928         * tree-dfa.c: Include toplev.h.
18929         (get_ref_base_and_extent): Handle MEM_REF.
18930         (get_addr_base_and_unit_offset): New function.
18931         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
18932         * gimple-fold.c (may_propagate_address_into_dereference): Handle
18933         MEM_REF.
18934         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
18935         accesses if the array has just one dimension.  Remove always true
18936         parameter.  Do not require type compatibility here.
18937         (maybe_fold_offset_to_component_ref): Remove.
18938         (maybe_fold_stmt_indirect): Remove.
18939         (maybe_fold_reference): Remove INDIRECT_REF handling.
18940         Fold back to non-MEM_REF.
18941         (maybe_fold_offset_to_address): Simplify.  Deal with type
18942         mismatches here.
18943         (maybe_fold_reference): Likewise.
18944         (maybe_fold_stmt_addition): Likewise.  Also handle
18945         &ARRAY + I in addition to &ARRAY[0] + I.
18946         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
18947         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
18948         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
18949         * tree-ssa.c (useless_type_conversion_p): Make most pointer
18950         conversions useless.
18951         (warn_uninitialized_var): Handle MEM_REF.
18952         (maybe_rewrite_mem_ref_base): New function.
18953         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
18954         to SSA form.
18955         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
18956         INDIRECT_REF handling.
18957         (copy_tree_body_r): Handle MEM_REF.
18958         * gimple.c (is_gimple_addressable): Adjust.
18959         (is_gimple_address): Likewise.
18960         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
18961         invariant base are invariant.
18962         (is_gimple_min_lval): Adjust.
18963         (is_gimple_mem_ref_addr): New function.
18964         (get_base_address): Handle MEM_REF.
18965         (count_ptr_derefs): Likewise.
18966         (get_base_loadstore): Likewise.
18967         * gimple.h (is_gimple_mem_ref_addr): Declare.
18968         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
18969         * tree-cfg.c (verify_address): New function, split out from ...
18970         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
18971         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
18972         INDIRECT_REFs.
18973         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
18974         INDIRECT_REF.  Allow conversions.
18975         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
18976         a register does not change its size.
18977         (verify_types_in_gimple_reference): Verify MEM_REF.
18978         (verify_gimple_assign_single): Disallow INDIRECT_REF.
18979         Handle MEM_REF.
18980         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
18981         New.
18982         (mark_address_taken): Handle MEM_REF.
18983         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
18984         (get_asm_expr_operands): Pass opf_not_non_addressable.
18985         (get_expr_operands): Handle opf_[not_]non_addressable.
18986         Handle MEM_REF.  Remove INDIRECT_REF handling.
18987         * tree-vrp.c (check_array_ref): Handle MEM_REF.
18988         (search_for_addr_array): Likewise.
18989         (check_array_bounds): Likewise.
18990         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
18991         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
18992         (ref_always_accessed_p): Likewise.
18993         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
18994         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
18995         Handle MEM_REF.
18996         * cgraphbuild.c (mark_load): Properly check for NULL result
18997         from get_base_address.
18998         (mark_store): Likewise.
18999         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
19000         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
19001         handling for MEM_REF.
19002         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
19003         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
19004         * builtins.c (stabilize_va_list_loc): Use the function ABI
19005         valist type if we couldn't canonicalize the argument type.
19006         Always dereference with the canonical va-list type.
19007         (maybe_emit_free_warning): Handle MEM_REF.
19008         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
19009         memmove to memcpy.
19010         * builtins.c (fold_builtin_memory_op): Use ref-all types
19011         for all memcpy foldings.
19012         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
19013         (build_outer_var_ref): Likewise.
19014         (scan_omp_1_op): Likewise.
19015         (lower_rec_input_clauses): Likewise.
19016         (lower_lastprivate_clauses): Likewise.
19017         (lower_reduction_clauses): Likewise.
19018         (lower_copyprivate_clauses): Likewise.
19019         (expand_omp_atomic_pipeline): Likewise.
19020         (expand_omp_atomic_mutex): Likewise.
19021         (create_task_copyfn): Likewise.
19022         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
19023         Remove old union trick.  Initialize constant offsets.
19024         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
19025         INDIRECT_REF.  Init base_alias_set properly.
19026         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
19027         (vn_reference_fold_indirect): Adjust for MEM_REFs.
19028         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
19029         for ARRAY_REFs.
19030         (may_insert): Remove.
19031         (visit_reference_op_load): Do not test may_insert.
19032         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
19033         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
19034         a field to store the constant offset this op applies.
19035         (run_scc_vn): Adjust prototype.
19036         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
19037         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
19038         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
19039         bother about volatile qualifiers on pointers.
19040         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
19041         * tree-ssa-loop-ivopts.c
19042         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
19043         (strip_offset_1): Likewise.
19044         (find_interesting_uses_address): Replace INDIRECT_REF handling with
19045         MEM_REF handling.
19046         (get_computation_cost_at): Likewise.
19047         * ipa-pure-const.c (check_op): Handle MEM_REF.
19048         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
19049         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
19050         and constants.
19051         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
19052         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
19053         (eliminate_local_variables_1): Likewise.
19054         (create_call_for_reduction_1): Likewise.
19055         (create_loads_for_reductions): Likewise.
19056         (create_loads_and_stores_for_name): Likewise.
19057         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
19058         (ssa_accessed_in_tree): Handle MEM_REF.
19059         (ssa_accessed_in_assign_rhs): Likewise.
19060         (update_type_size): Likewise.
19061         (analyze_accesses_for_call_stmt): Likewise.
19062         (analyze_accesses_for_assign_stmt): Likewise.
19063         (transform_access_sites): Likewise.
19064         (transform_allocation_sites): Likewise.
19065         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
19066         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
19067         not handle INDIRECT_REF.
19068         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
19069         (cond_store_replacement): Likewise.
19070         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
19071         MEM_REF, no not handle INDIRECT_REFs.
19072         (insert_into_preds_of_block): Properly initialize avail.
19073         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
19074         for ARRAY_REFs.  Properly handle reference lookups that
19075         require a bit re-interpretation.
19076         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
19077         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
19078         (build_ref_for_offset_1): Remove.
19079         (build_ref_for_offset): Build MEM_REFs.
19080         (gate_intra_sra): Disable for now.
19081         (sra_ipa_modify_expr): Handle MEM_REF.
19082         (ipa_early_sra_gate): Disable for now.
19083         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
19084         MEM_REF handling.
19085         (disqualify_base_of_expr): Likewise.
19086         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
19087         MEM_REF handling.
19088         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
19089         Use mem_ref_offset.  Remove bogus folding.
19090         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
19091         (make_fancy_name_1): Add support for MEM_REF.
19092         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
19093         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
19094         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
19095         (compute_complex_ancestor_jump_func): Likewise.
19096         (ipa_analyze_virtual_call_uses): Likewise.
19097         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
19098         INDIRECT_REF folding with more generalized MEM_REF folding.
19099         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
19100         (forward_propagate_addr_into_variable_array_index): Also handle
19101         &ARRAY + I in addition to &ARRAY[0] + I.
19102         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
19103         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
19104         creates assignments with overlap.
19105         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
19106         (get_frame_field): Likewise.
19107         (get_nonlocal_debug_decl): Likewise.
19108         (convert_nonlocal_reference_op): Likewise.
19109         (struct nesting_info): Add mem_refs pointer-set.
19110         (create_nesting_tree): Allocate it.
19111         (convert_local_reference_op): Insert to be folded mem-refs.
19112         (fold_mem_refs): New function.
19113         (finalize_nesting_tree_1): Perform defered folding of mem-refs
19114         (free_nesting_tree): Free the pointer-set.
19115         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
19116         (vectorizable_load): Likewise.
19117         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
19118         (propagate_with_phi): Likewise.
19119         * tree-object-size.c (addr_object_size): Handle MEM_REFs
19120         instead of INDIRECT_REFs.
19121         (compute_object_offset): Handle MEM_REF.
19122         (plus_stmt_object_size): Handle MEM_REF.
19123         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
19124         for &MEM_REF.
19125         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
19126         (symbol_marked_for_renaming): Likewise.
19127         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
19128         (fold-const.o): Add $(TREE_FLOW_H).
19129         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
19130         (find_func_clobbers): Likewise.
19131         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
19132         (decompose_access): Likewise.
19133         (replace_field_acc): Likewise.
19134         (replace_field_access_stmt): Likewise.
19135         (insert_new_var_in_stmt): Likewise.
19136         (get_stmt_accesses): Likewise.
19137         (reorg_structs_drive): Disable.
19138         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
19139         (ix86_canonical_va_list_type): Likewise.
19140
19141 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
19142
19143         PR other/44566
19144         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
19145         * target.def (struct gcc_target): Replace enum reg_class with
19146         reg_class_t in hook argument / return types.
19147         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
19148         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
19149         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
19150         * targhooks.h (default_branch_target_register_class): Likewise.
19151         (default_ira_cover_classes, default_secondary_reload): Likewise.
19152         (default_memory_move_cost, default_register_move_cost): Likewise.
19153         * targhooks.c (default_branch_target_register_class): Likewise.
19154         (default_ira_cover_classes, default_secondary_reload): Likewise.
19155         (default_memory_move_cost, default_register_move_cost): Likewise.
19156         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
19157         * bt-load.c (branch_target_load_optimize): Likewise.
19158         * ira.c (setup_cover_and_important_classes): Likewise.
19159         * ira-costs.c (copy_cost): Likewise.
19160         * reload1.c (emit_input_reload_insns): Likewise.
19161         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
19162         * config/frv/frv.c (frv_secondary_reload): Likewise.
19163         * config/s390/s390.c (s390_secondary_reload): Likewise.
19164         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
19165         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
19166         (ix86_register_move_cost): Likewise.
19167         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
19168         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
19169         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
19170         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
19171         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
19172         (rs6000_ira_cover_classes): Likewise.
19173         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
19174         * config/picochip/picochip-protos.h (picochip_secondary_reload):
19175         Likewise.
19176         * config/pa/pa.c (pa_secondary_reload): Likewise.
19177         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
19178         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
19179         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
19180         * doc/tm.texi: Regenerate.
19181
19182 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
19183
19184         PR bootstrrap/44726
19185         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
19186         use.
19187         (build_alias_set_optimal_p): Likewise.
19188         (build_base_obj_set_for_drs): Likewise.
19189
19190 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
19191
19192         * target.def: Remove comment about licensing problems of function
19193         declarations.
19194
19195         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
19196         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
19197         * doc/tm.texi: Regenerate.
19198
19199         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
19200         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
19201
19202         * target.def (enum_va_list_p): Use DEFHOOK.
19203         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
19204         Rename ptype to ptree.
19205         * doc/tm.texi: Regenerate.
19206
19207         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
19208         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
19209         * doc/tm.texi: Regenerate.
19210
19211         * target.def (memory_move_cost): Use DEFHOOK.
19212         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
19213         Rename regclass AKA class to rclass.
19214         * doc/tm.texi: Regenerate.
19215
19216         * target.def (pragma_parse): Use DEFHOOK.
19217         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
19218         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
19219         * doc/tm.texi: Regenerate.
19220
19221         * target.def (pass_by_reference): Use DEFHOOK.
19222         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
19223         * doc/tm.texi: Regenerate.
19224
19225         * target.def (resolve_overloaded_builtin): Rename params to arglist.
19226         Use DEFHOOK.
19227         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
19228         * doc/tm.texi: Regenerate.
19229
19230         * target.def (return_pops_args): Use DEFHOOK.
19231         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
19232         Rename stack-size to size.
19233         * doc/tm.texi: Regenerate.
19234
19235         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
19236         last-sched_cycle to last_clock, cur_cycle to clock.
19237         * doc/tm.texi.in: Use @hook.
19238         * doc/tm.texi: Regenerate.
19239
19240         * target.def (print_operand, print_operand_address): Update comment.
19241         (print_operand_punct_valid_p): Likewise.
19242
19243 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19244
19245         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
19246         to rtl.h.
19247         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
19248         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
19249         * rtl-error.h: New.
19250         * regrename.c: Do not include toplev.h. Include rtl-error.h.
19251         * rtl-error.c: Likewise.
19252         * reload.c: Likewise.
19253         * recog.c:  Likewise.
19254         * sel-sched.c: Likewise.
19255         * function.c: Likewise.
19256         * reg-stack.c: Likewise.
19257         * cfgrtl.c: Likewise.
19258         * reload1.c: Likewise.
19259         * final.c: Include rtl-error.
19260         * Makefile.in: Adjust dependencies.
19261
19262 2010-06-30  Jan Hubicka  <jh@suse.cz>
19263
19264         PR middle-end/PR44706
19265         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
19266         to return the value.
19267
19268 2010-06-30  Michael Matz  <matz@suse.de>
19269
19270         PR bootstrap/44699
19271         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
19272         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
19273         a gimple reg, attach the original VDEF to the last store in the
19274         sequence.
19275
19276 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
19277
19278         PR other/44034
19279         * config/darwin.c (darwin_override_options): Use renamed
19280         targetm.asm_out.emit_unwind_label.
19281
19282 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
19283
19284         PR tree-optimization/39799
19285         * tree-inline.c (remap_ssa_name): Initialize variable only if
19286         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
19287
19288 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
19289
19290         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
19291
19292 2010-06-30  Richard Guenther  <rguenther@suse.de>
19293
19294         PR target/44722
19295         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
19296         against oscillation with reverse peephole2.
19297
19298 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
19299
19300         PR target/44721
19301         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
19302         Fix last commit.
19303
19304 2010-06-30  Nick Clifton  <nickc@redhat.com>
19305
19306         * config/rx/rx-modes.def: New file.
19307         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
19308         (CC_REGNUM): Define.
19309         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
19310         register.
19311         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
19312         (SELECT_CC_MODE): Define.
19313         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
19314         (reg:CC CC_REG) instead of (cc0).
19315         (attr "cc"): Delete.
19316         (cbranchsi4): Do not split compare and branch here. Instead move
19317         it to...
19318         (cbranchsi4_<code>): ... here.  New patterns.
19319         (cmpsi): Call rx-compare_redundant to find out if it is necessary
19320         to emit the compare instruction.
19321         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
19322         cc_status flags.
19323         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
19324         FIRST_PSEUDO_REGNUM.
19325         (rx_expand_prologue, rx_expand_epilogue): Likewise.
19326         (rx_notice_update_cc): Delete.
19327         (rx_cc_modes_compatible): New function.
19328         (flags_needed_for_conditional): New function.
19329         (flags_from_mode): New function.
19330         (rx_compare_redundant): New function - scans backwards through
19331         insn list to find out if condition flags are already set correctly.
19332         (TARGET_CC_MODES_COMPATIBLE): Define.
19333         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
19334
19335         * config/rx/rx.h (BRANCH_COST): Define.
19336         (REGISTER_MOVE_COST): Define.
19337         * config/rx/predicates (rx_source_operand): Allow all constant types.
19338         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
19339         (tstsi4): New pattern.
19340         * config/rx/rx.c (rx_memory_move_cost): Define.
19341         (TARGET_MEMORY_MOVE_COST): Define.
19342
19343 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19344
19345         * tree.h (block_may_fallthru): Declare here.
19346         * tree-flow.h (block_may_fallthru): Do not declare here.
19347         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
19348         bitmap.h
19349         * Makefile.in (c-typeck.o): Update dependencies.
19350
19351 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
19352
19353         PR debug/44694
19354         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
19355         * cselib.c (cfa_base_preserved_regno): New static variable.
19356         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
19357         of REGNO (cfa_base_preserved_val->locs->loc).
19358         (cselib_preserve_cfa_base_value): Add regno argument, set
19359         cfa_base_preserved_regno to it.
19360         (cselib_invalidate_regno): Allow removal of registers other than
19361         cfa_base_preserved_regno from cfa_base_preserved_val.
19362         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
19363         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
19364         of MEM addresses, if not on LHS.
19365         (reverse_op): Don't add reverse ops for cfa_base_rtx.
19366         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
19367
19368 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
19369
19370         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
19371         static variables.
19372         (peep2_buf_position): New static function.
19373         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
19374         peephole2_optimize): Use it.
19375         (peep2_attempt, peep2_update_life): New static functions, broken out
19376         of peephole2_optimize.
19377         (peep2_fill_buffer): New static function.
19378         (peephole2_optimize): Change the main loop to try to fill the buffer
19379         with the maximum number of insns before matching them against
19380         peepholes.  Use a forward scan.  Remove special case for targets with
19381         conditional execution.
19382         * genrecog.c (change_state): Delete dead code.
19383         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
19384         Rewrite so as not to expect the second insn to have had a peephole
19385         applied yet.
19386
19387 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
19388
19389         * genhooks.c (emit_findices): Cast field precision to int.
19390         (emit_documentation): Likewise.
19391
19392 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
19393
19394         PR tree-optimization/43801
19395         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
19396         if old_decl was DECL_ONE_ONLY.
19397
19398         PR debug/44668
19399         * dwarf2out.c (add_accessibility_attribute): New function.
19400         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
19401         instead of adding DW_AT_accessibility manually.
19402         (gen_enumeration_type_die, gen_struct_or_union_type_die,
19403         gen_typedef_die): Use it.
19404
19405 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
19406
19407         * vmsdbgout.c (full_name): Just output the file name if not native.
19408
19409 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
19410
19411         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
19412         (funcnam_table): New static table.
19413         (funcnum_table): New static table.
19414         (write_rtnbeg): Write value saved in funcnum_table.
19415         (write_rtnend): Write value saved in funcnum_table.
19416         (vmsdbgout_begin_function): Save current function info in
19417         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
19418         (vmsdbgout_finish): Iterate over funcnum_table.
19419
19420 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
19421
19422         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
19423         (vmsdbgout_type_decl): Declare
19424         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
19425         (FUNC_EPILOGUE_LABEL): New macro
19426         (vmsdbgout_begin_epilogue): New function.
19427         (vmsdbgout_type_decl): New function.
19428
19429 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
19430
19431         * vmsdbg.h: Update copyright.
19432
19433 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
19434
19435         * vmsdbg.h (DST_K_TBG): New DST constant.
19436         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
19437         (write_modbeg): Cast module_language to avoid warning.
19438         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
19439
19440 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
19441
19442         PR other/44034
19443         * target.def, doc/tm.texi.in, genhooks.c: New files.
19444         * target.h: Instead of defining individual hook members,
19445         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
19446         include target.def.
19447         * target-def.h: Instead of defining individual hook initializers,
19448         include target-hooks-def.h.
19449         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
19450         targetm.live_on_entry -> targetm.extra_live_on_entry
19451         targetm.sched.md_finish ->targetm.sched.finish
19452         targetm.sched.md_init -> targetm.sched.init
19453         targetm.sched.md_init_global -> targetm.sched.init_global
19454         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
19455         targetm.asm_out.except_table_label ->
19456           targetm.asm_out.emit_except_table_label
19457         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
19458         targetm.target_help -> targetm.help
19459         targetm.vectorize.builtin_support_vector_misalignment ->
19460           targetm.vectorize.support_vector_misalignment
19461         targetm.file_start_app_off -> targetm.asm_file_start_app_off
19462         targetm.file_start_file_directive ->
19463          targetm.asm_file_start_file_directive
19464         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
19465         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
19466         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
19467         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
19468           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
19469         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
19470           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
19471         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
19472         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
19473         * Makefile.in (TARGET_H): Depend on target.def.
19474         (TARGET_DEF_H): Depend on target-hooks-def.h.
19475         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
19476         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
19477         * doc/tm.texi: Regenerate.
19478
19479         * Makefile.in (s-tm-texi): Remove stray tab / rule.
19480
19481         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
19482         (targetm.sched.init): Likewise.
19483
19484 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
19485
19486         PR bootstrap/44713
19487         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
19488         (function_arg_advance_32): Const-ify TYPE parameter.
19489         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
19490         (ix86_function_arg_advance): Change type of NAMED to bool.
19491         (function_arg_32): Const-ify CUM and TYPE parameters.
19492         (function_arg_64): Likewise.  Change type of NAMED to bool.
19493         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
19494         to bool.
19495         (ix86_function_arg): Change type of NAMED to bool.
19496         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
19497         last argument as a bool.
19498
19499 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
19500
19501         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
19502         (OVERRIDE_OPTIONS): Add note of obsolescence.
19503         Replace references with references to TARGET_OPTION_OVERRIDE.
19504         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
19505          the macro).
19506         * targhooks.c (default_target_option_override): New function.
19507         * targhooks.h (default_target_option_override): Declare.
19508         * target.h (struct gcc_target): Add override member to
19509         target_option member.
19510         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
19511         targetm.target_option.override call.
19512         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
19513         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
19514
19515 2010-06-29  Jan Hubicka  <jh@suse.cz>
19516
19517         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
19518
19519 2010-06-29  Jan Hubicka  <jh@suse.cz>
19520
19521         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
19522         unreachable.
19523         (rebuild_frequencies): New function.
19524         * predict.h (rebuild_frequencies): Declare.
19525         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
19526         entry block and edge reaching new_entry.
19527         (tree_function_versioning): When doing partial cloning, rebuild
19528         frequencies when done.
19529         * passes.c (execute_function_todo): Use rebild_frequencies.
19530
19531 2010-06-29  Richard Guenther  <rguenther@suse.de>
19532
19533         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
19534         * tree-flow.h (enum noalias_state): Remove.
19535         (struct var_ann_d): Remove noalias_state member.
19536
19537 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
19538
19539         PR target/43902
19540         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
19541         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
19542         (maddhidi4): Likewise.
19543
19544         Revert parts of the change for PR25130.
19545         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
19546         MEM_ALIAS_SET.
19547
19548 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
19549
19550         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
19551         targetm.calls.function_incoming_arg, and
19552         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
19553         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
19554         * target.h (struct gcc_target): Add function_arg_advance,
19555         function_arg, and function_incoming_arg fields.
19556         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
19557         (TARGET_FUNCTION_INCOMING_ARG): Define.
19558         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
19559         and TARGET_FUNCTION_INCOMING_ARG.
19560         * targhooks.h (default_function_arg_advance): Declare.
19561         (default_function_arg, default_function_incoming_arg): Declare.
19562         * targhooks.c (default_function_arg_advance): New function.
19563         (default_function_arg, default_function_incoming_arg): New function.
19564         * config/i386/i386.c (function_arg_advance): Rename to...
19565         (ix86_function_arg_advance): ...this.  Make static.
19566         (function_arg): Rename to...
19567         (ix86_function_arg): ...this.  Make static.
19568         (TARGET_FUNCTION_ARG_ADVANCE): Define.
19569         (TARGET_FUNCTION_ARG): Define.
19570         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
19571         (FUNCTION_ARG): Delete.
19572         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
19573         (function_arg): Delete prototype.
19574
19575 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
19576
19577         * reginfo.c (init_reg_sets_1): Adjust comments.
19578         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
19579         * calls.c (prepare_call_address): Likewise.
19580         (emit_call_1): Use targetm.calls.return_pops_args.
19581         (expand_call): Likewise.
19582         * function.c (assign_parms): Likewise.
19583         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
19584         * target.h (struct gcc_target) [struct calls]: Add
19585         return_pops_args field.
19586         * targhooks.h (default_return_pops_args): Declare.
19587         * targhooks.c (default_return_pops_args): Define.
19588         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
19589         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
19590         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
19591         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
19592         documentation.
19593         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
19594         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
19595         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
19596         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
19597         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
19598         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
19599         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
19600         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
19601         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
19602         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
19603         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
19604         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
19605         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
19606         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
19607         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
19608         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
19609         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
19610         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
19611         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
19612         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
19613         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
19614         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
19615         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
19616         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
19617         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
19618         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
19619         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
19620         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
19621         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
19622         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
19623         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
19624         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
19625         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
19626         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
19627         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
19628         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
19629         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
19630         * config/i386/i386.c (ix86_return_pops_args): Make static.
19631         Constify arguments.
19632         (TARGET_RETURN_POPS_ARGS): Define.
19633         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
19634         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
19635         (TARGET_RETURN_POPS_ARGS): Define.
19636         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
19637         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
19638         (TARGET_RETURN_POPS_ARGS): Define.
19639
19640 2010-06-29  Richard Guenther  <rguenther@suse.de>
19641
19642         PR middle-end/44667
19643         * tree-inline.c (initialize_inlined_parameters): Make sure
19644         to remap the inlined parameter variable substitutions types.
19645
19646 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
19647
19648         PR rtl-optimization/44659
19649         * combine.c (make_compound_operation) <SUBREG>: Do not return the
19650         result of force_to_mode if it partially re-expanded the compound.
19651
19652 2010-06-28  Jan Hubicka  <jh@suse.cz>
19653
19654         PR middle-end/44671
19655         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
19656         RESULT_DECL.
19657
19658 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
19659
19660         * double-int.h (force_fit_type_double): Remove declaration.
19661         * double-int.c (force_fit_type_double): Move to tree.c.
19662         * tree.h (force_fit_type_double): Declare.
19663         * tree.h (force_fit_type_double): Moved from double-int.c. Use
19664         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
19665         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
19666         * convert.c (convert_to_pointer): Adjust call to
19667         force_fit_type_double.
19668         * tree-vrp.c (extract_range_from_assert,
19669         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
19670         * fold-const.c: Update comment.
19671         (int_const_binop, fold_convert_const_int_from_int,
19672         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
19673         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
19674         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
19675         round_up_loc): Adjust call to force_fit_type_double.
19676
19677 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19678
19679         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
19680
19681 2010-06-28  Martin Jambor  <mjambor@suse.cz>
19682
19683         * tree-sra.c (convert_callers): New parameter, change fndecls of
19684         recursive calls.
19685         (modify_function): Pass the old decl to convert_callers.
19686
19687 2010-06-28  Martin Jambor  <mjambor@suse.cz>
19688
19689         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
19690         ipa_check_create_node_params and ipa_initialize_node_params with
19691         checking asserts they are not necessary.
19692
19693 2010-06-28  Jan Hubicka  <jh@suse.cz>
19694
19695         PR tree-optimization/44687
19696         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
19697
19698 2010-06-28  Martin Jambor  <mjambor@suse.cz>
19699
19700         PR c++/44535
19701         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
19702         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
19703         instead of BINFO_BASE_BINFO.
19704
19705 2010-06-28  Michael Matz  <matz@suse.de>
19706
19707         PR middle-end/44592
19708         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
19709         proper VDEF chain for intermediate stores in the sequence.
19710
19711 2010-06-28  Jan Hubicka  <jh@suse.cz>
19712
19713         PR tree-optimization/44357
19714         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
19715         uninlinable functions.
19716
19717 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19718
19719         * config.gcc (powerpc*-*-*): Handle titan.
19720         * config/rs6000/rs6000.c (titan_cost): New costs.
19721         (rs6000_override_options): Add "titan" to processor_target_table.
19722         Add Titan to branch alignment logic.
19723         Correctly set rs6000_cost for titan.
19724         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
19725         * config/rs6000/titan.md: New file.
19726         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
19727
19728 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
19729
19730         * tree-browser.c (TB_history_stack): Convert to a VEC.
19731         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
19732         (TB_history_prev): Likewise.
19733
19734 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
19735
19736         * vec.h (vec_heap_free): Add parentheses around free.
19737
19738 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
19739
19740         * system.h: Poison GCC_EXCEPT_H for front-end files.
19741
19742         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
19743         langhook.
19744         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
19745         Define to NULL by default.
19746         * except.h: Define GCC_EXCEPT_H.
19747         (doing_eh): Remove prototype.
19748         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
19749         (lang_protect_cleanup_actions): Remove.
19750         * except.c (lang_protect_cleanup_actions): Remove.
19751         (doing_eh): Remove.
19752         (gen_eh_region): Don't check doing_eh here.
19753         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
19754         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
19755         instead of lang_protect_cleanup_actions.
19756         * omp-low.c (maybe_catch_exception): Likewise.
19757         * Makefile.in: Update dependencies.
19758
19759 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
19760
19761         * cgraph.h (struct varpool_node): new used_from_object_file flag.
19762         (struct cgraph_local_info): new used_from_object_file flag.
19763         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
19764         (cgraph_clone_node): initialize used_from_object_file.
19765         (cgraph_create_virtual_clone): initialize used_from_object_file.
19766         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
19767         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
19768         when compiling with -fwhole-program.
19769         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
19770         internal resolver.
19771         * ipa.c (function_and_variable_visibility): Set externally_visible
19772         flag of varpool_node if used_from_object_file flag is set.
19773         (cgraph_externally_visible_p): check used_from_object_file flag.
19774         * doc/invoke.texi (-fwhole-program option): Change description of
19775         externally_visible attribute accordingly.
19776         * doc/extend.texi (externally_visible): Ditto.
19777
19778 2010-06-27  Jan Hubicka  <jh@suse.cz>
19779
19780         * params.def (max-inline-insns-auto): Default to 40.
19781         * doc/invoke.texi (max-inline-insns-auto): Document the change.
19782
19783 2010-06-27  Jan Hubicka  <jh@suse.cz>
19784
19785         PR middle-end/44671
19786         PR middle-end/44686
19787         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
19788         signature change.
19789         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
19790         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
19791
19792 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
19793
19794         * target.h (struct gcc_target): Add register_move_cost field.
19795         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
19796         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
19797         * targhooks.c (default_register_move_cost): New function.
19798         * targhooks.h (default_register_move_cost): Declare function.
19799         * defaults.h (REGISTER_MOVE_COST): Delete.
19800         * ira-int.h (ira_register_move_cost): Update comment.
19801         * ira.c (ira_register_move_cost): Update comment.
19802         * reload.h (register_move_cost): Declare.
19803         * reginfo.c (register_move_cost): New function.
19804         (move_cost): Update comment.
19805         (init_move_cost, memory_move_secondary_cost): Replace
19806         REGISTER_MOVE_COST with register_move_cost.
19807         * postreload.c (reload_cse_simplify_set): (Ditto.).
19808         * reload.c (find_valid_class, find_reloads): (Ditto.).
19809         * reload1.c (choose_reload_regs): (Ditto.).
19810         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
19811         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
19812         * doc/md.texi (can_create_pseudo_p): Update documentation.
19813
19814         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
19815         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
19816         * config/i386/i386.h (ix86_memory_move_cost): Make static.
19817         (TARGET_MEMORY_MOVE_COST): Define.
19818
19819         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
19820         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
19821         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
19822         (TARGET_MEMORY_MOVE_COST): Define.
19823
19824 2010-06-27  Richard Guenther  <rguenther@suse.de>
19825
19826         PR tree-optimization/44683
19827         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
19828         false edge from the inverted condition.
19829
19830 2010-06-27  Richard Guenther  <rguenther@suse.de>
19831
19832         PR middle-end/44684
19833         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
19834         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
19835         for register LHS.  Or non-store assignments.
19836
19837 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
19838
19839         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
19840         (sparc_emit_set_const64): Likewise.  Remove disabled code.
19841         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
19842         (sparc_emit_set_const64): Likewise.
19843
19844 2010-06-26  Catherine Moore  <clm@codesourcery.com>
19845
19846         * config/mips/mips.md (alu_type): New attribute.
19847         (type): Infer type from alu_type.
19848         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
19849         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
19850         *subsi3_extended, negsi2, negdi2, *low<mode>,
19851         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
19852         xor<mode>3, *nor<mode>3,
19853         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
19854         *zero_extendhi_truncqi):  Set alu_type instead of type.
19855
19856 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
19857
19858         * config/alpha/alpha.c (alpha_need_linkage): Adjust
19859         splay_tree_new_ggc call.
19860         (alpha_use_linkage): Likewise.
19861
19862 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
19863
19864         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
19865         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
19866         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
19867         (static_specs): Remove switches_need_spaces.
19868         (process_command, do_self_spec): Hardcode handling "-o" instead of
19869         checking switches_need_spaces.
19870         * system.h (SWITCHES_NEED_SPACES): Poison.
19871
19872 2010-06-26  Richard Guenther  <rguenther@suse.de>
19873
19874         PR tree-optimization/44393
19875         * tree-loop-distribution.c (generate_loops_for_partition): Fix
19876         stmt removal and VOP renaming.
19877         (generate_memset_zero): Remove redundant stmt updating.
19878         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
19879         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
19880
19881 2010-06-26  Jan Hubicka  <jh@suse.cz>
19882
19883         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
19884         edges comming from header are equivalent.
19885         (visit_bb): Handle PHIs correctly.
19886         * tree-inline.c (copy_phis_for_bb): Be able to copy
19887         PHI from entry edge.
19888         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
19889
19890 2010-06-26  Richard Guenther  <rguenther@suse.de>
19891
19892         PR middle-end/44674
19893         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
19894         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
19895
19896 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
19897
19898         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
19899         add_infile, alloc_switch): New.
19900         (process_command): Remove variable lang_n_infiles.  Process
19901         options in a single pass.  Use new functions for allocating
19902         infiles and switches arrays.  Properly skip operands of
19903         -Xpreprocessor and -Xassembler.
19904
19905 2010-06-26  Jan Hubicka  <jh@suse.cz>
19906
19907         PR middle-end/44671
19908         * cgraphunit.c (cgraph_function_versioning): Remove wrong
19909         cgraph_make_decl_local call; fix typo copying RTL data.
19910
19911 2010-06-25  DJ Delorie  <dj@redhat.com>
19912
19913         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
19914         (m32c_output_aligned_common): Likewise.
19915         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
19916         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
19917         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
19918         (m32c_register_pragmas): Register it.
19919         * config/m32c/m32c.c (m32c_get_pragma_address): New.
19920         (m32c_insert_attributes): Set #pragma address decls volatile.
19921         (pragma_entry_eq): New.
19922         (pragma_entry_hash): New.
19923         (m32c_note_pragma_address): New.
19924         (m32c_get_pragma_address): New.
19925         (m32c_output_aligned_common): New.
19926         * doc/extend.texi: Document the new pragma.
19927
19928         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
19929         also.
19930         * config/m32c/predicates.md (m32c_any_operand): Check the code
19931         instead of memory_operand so as to allow matching volatile MEMs.
19932         (m32c_nonimmediate_operand): Likewise.
19933         (mra_operand): Allow volatiles.
19934
19935 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
19936
19937         PR debug/44610
19938         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
19939         address if the offset is unknown.
19940
19941 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
19942
19943         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
19944         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
19945         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
19946         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
19947         to ia64_start_function. Invoke it.
19948         * config/ia64/ia64.c (ia64_start_function): Call new function
19949         dwarf2out_vms_debug_main_pointer.
19950
19951 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19952
19953         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
19954         statements computing the true predicate.
19955
19956 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19957
19958         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
19959         to boolean_true_node.
19960         (reset_bb_predicate): New.
19961         (predicate_bbs): Call reset_bb_predicate.
19962
19963 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19964
19965         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
19966         (tree_if_conversion): Returns true when something has been changed.
19967         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
19968         changed something.
19969
19970 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19971
19972         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
19973         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
19974         * tree-if-conv.c: Include dbgcnt.h.
19975         (tree_if_conversion): Use if_conversion_tree to count the number of
19976         if-convertible loops.
19977
19978 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
19979
19980         * common.opt (fprefetch-loop-arrays): Re-define
19981         -fprefetch-loop-arrays as a tri-state option with the initial
19982         value of -1.
19983         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
19984         pass only when flag_prefetch_loop_arrays > 0.
19985         * toplev.c (process_options): Note that, with tri-states,
19986         flag_prefetch_loop_arrays>0 means prefetching is enabled.
19987         * config/i386/i386.c (override_options): Enable prefetching at -O3
19988         for a set of CPUs that sw prefetching is helpful.
19989         (software_prefetching_beneficial_p): New.  Return TRUE if software
19990         prefetching is beneficial for the given CPU.
19991
19992 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19993
19994         PR rtl-optimization/44326
19995         * implicit-zee.c (find_removable_zero_extends): Replace
19996         INSN_P with NONDEBUG_INSN_P.
19997
19998 2010-06-25  Martin Jambor  <mjambor@suse.cz>
19999
20000         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
20001         (struct ipa_node_params): Removed the modification_analysis_done flag.
20002         (ipa_is_param_modified): Removed.
20003         (ipa_analyze_node): Declare.
20004         (ipa_compute_jump_functions): Remove declaration.
20005         (ipa_count_arguments): Likewise.
20006         (ipa_detect_param_modifications): Likewise.
20007         (ipa_analyze_params_uses): Likewise.
20008         * ipa-prop.c (struct param_analysis_info): New type.
20009         (visit_store_addr_for_mod_analysis): Removed.
20010         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
20011         moved down in the file.
20012         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
20013         (ipa_count_arguments): Made static.
20014         (mark_modified): New function.
20015         (is_parm_modified_before_call): New function.
20016         (compute_pass_through_member_ptrs): New parameter parms_info, call
20017         is_parm_modified_before_call instead of ipa_is_param_modified.
20018         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
20019         it to compute_pass_through_member_ptrs.
20020         (ipa_compute_jump_functions): New parameter parms_info, pass it to
20021         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
20022         on the callee if it is analyzed.  Made static.
20023         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
20024         is_parm_modified_before_call instead of ipa_is_param_modified.
20025         (ipa_analyze_call_uses): New parameter parms_info, pass it to
20026         ipa_analyze_indirect_call_uses.
20027         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
20028         ipa_analyze_call_uses.
20029         (ipa_analyze_params_uses): New parameter parms_info, pass it to
20030         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
20031         (ipa_analyze_node): New function.
20032         (ipa_print_node_params): Do not dump the modified flag.
20033         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
20034         it.  Do not stream the modified parameter flag.
20035         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
20036         it.  Do not stream the modified parameter flag.
20037         * ipa-cp.c (ipcp_analyze_node): Removed.
20038         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
20039         with only a call to ipa_analyze_node.
20040         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
20041         node with only a call to ipa_analyze_node.
20042
20043 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20044
20045         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
20046
20047 2010-06-25  Jan Hubicka  <jh@suse.cz>
20048
20049         * tree-pass.h (pass_split_functions): Declare.
20050         * opts.c (decode_options): Enable function splitting at -O2
20051         * timevar.def (TV_IPA_FNSPLIT): New macro.
20052         * ipa-split.c: New file.
20053         * common.opt (-fpartial-inlining): New flag.
20054         * Makefile.in (ipa-split.o): New object file.
20055         * passes.c (init_optimization_passes): Add ipa-split.
20056         * params.def (partial-inlining-entry-probability): New parameters.
20057         * doc/invoke.texi (-fpartial-inlining): New.
20058
20059 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20060
20061         PR 44665
20062         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
20063         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
20064         (gimplify_expr): Likewise.
20065
20066 2010-06-25  Martin Jambor  <mjambor@suse.cz>
20067
20068         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
20069         statements instead of bailing out on them.
20070         (ipa_analyze_indirect_call_uses): Do not require that loads from the
20071         parameter are in the same BB as the condition.  Update comments.
20072
20073 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
20074
20075         PR middle-end/43866
20076         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
20077         true or always false, return NULL_TREE.
20078         (tree_unswitch_single_loop): Optimize conditions even when reaching
20079         max-unswitch-level parameter.  If num > 0, optimize first all conditions
20080         using entry checks, then do still reachable block discovery and consider
20081         only conditions in still reachable basic blocks in the loop.
20082
20083         PR tree-optimization/44539
20084         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
20085         the call doesn't have LHS, but has VDEF.
20086
20087 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
20088
20089         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
20090         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
20091         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
20092         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
20093         * system.h (MODIFY_TARGET_NAME): Poison.
20094
20095 2010-06-25  Alan Modra  <amodra@gmail.com>
20096
20097         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
20098         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
20099         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
20100         CMODEL_LARGE as default.
20101         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
20102         (offsettable_ok_by_alignment): Delete.
20103         (rs6000_emit_move): Remove mcmodel=medium optimization.
20104
20105 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
20106
20107         With large parts from Jim Wilson:
20108         PR target/43902
20109         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
20110         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
20111         * optabs.c (optab_for_tree_code): Likewise.
20112         (expand_widen_pattern_expr): Likewise.
20113         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
20114         out of execute_optimize_widening_mul.
20115         (convert_plusminus_to_widen): New function.
20116         (execute_optimize_widening_mul): Use the two new functions.
20117         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
20118         Remove code to generate widening multiply-accumulate.  Add support
20119         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
20120         * gimple-pretty-print.c (dump_ternary_rhs): New function.
20121         (dump_gimple_assign): Call it when appropriate.
20122         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
20123         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
20124         (expand_gimple_stmt_1): Likewise.
20125         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
20126         WIDEN_MULT_MINUS_EXPR.
20127         * tree-ssa-operands.c (get_expr_operands): Likewise.
20128         * tree-inline.c (estimate_operator_cost): Likewise.
20129         * gimple.c (extract_ops_from_tree_1): Renamed from
20130         extract_ops_from_tree.  Add new arg for a third operand; fill it.
20131         (gimple_build_assign_stat): Support operations with three operands.
20132         (gimple_build_assign_with_ops_stat): Likewise.
20133         (gimple_assign_set_rhs_from_tree): Likewise.
20134         (gimple_assign_set_rhs_with_ops_1): Renamed from
20135         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
20136         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
20137         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
20138         WIDEN_MULT_MINUS_EXPR.
20139         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
20140         (extract_ops_from_tree_1): Adjust declaration.
20141         (gimple_assign_set_rhs_with_ops_1): Likewise.
20142         (gimple_build_assign_with_ops): Pass NULL for last operand.
20143         (gimple_build_assign_with_ops3): New macro.
20144         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
20145         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
20146         functions.
20147         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
20148         (verify_gimple_assign): Call it.
20149         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
20150         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
20151         functions for dealing with three-operand statements.
20152         * tree.c (commutative_ternary_tree_code): New function.
20153         * tree.h (commutative_ternary_tree_code): Declare it.
20154         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
20155         ternary statements.
20156         (gimple_assign_nonzero_warnv_p): Likewise.
20157         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
20158         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
20159         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
20160         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
20161         (struct hashtable_expr): New member ternary in the union.
20162         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
20163         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
20164         (iterative_hash_hashable_expr): Likewise.
20165         (print_expr_hash_elt): Handle EXPR_TERNARY.
20166         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
20167         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
20168         statements.  Handle GIMPLE_TERNARY_RHS.
20169
20170 2010-06-25  Jan Hubicka  <jh@suse.cz>
20171
20172         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
20173
20174 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
20175
20176         PR c/44517
20177         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
20178         parameters are not good.
20179         (c_parser_parameter_declaration): Error unknown type name if the type
20180         name can't start declaration specifiers.
20181
20182 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
20183
20184         * gcc.c (translate_options): Don't mention +e in comment.
20185         (process_command): Don't handle +e specially.
20186
20187 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
20188
20189         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
20190
20191         * ira-build.c (merge_hard_reg_conflicts): New function.
20192         (create_cap_allocno, copy_info_to_removed_store_destinations,
20193         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
20194         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
20195         (remove_unnecessary_allocnos, remove_low_level_allocnos)
20196         copy_nifo_to_removed_store_destination): Use them.
20197         * ira-lives.c (make_hard_regno_born): New function, split out of
20198         make_regno_born.
20199         (make_allocno_born): Likewise.
20200         (make_hard_regno_dead): New function, split out of make_regno_dead.
20201         (make_allocno_dead): Likewise.
20202         (inc_register_pressure): New function, split out of set_allocno_live.
20203         (dec_register_pressure): New function, split out of clear_allocno_live.
20204         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
20205         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
20206         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
20207         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
20208         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
20209         mark_pseudo_regno_live.
20210         (process_bb_node_lives): Use mark_pseudo_regno_live,
20211         make_hard_regno_born and make_allocno_dead.
20212         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
20213         set_allocno_live, clear_allocno_live): Delete functions.
20214
20215         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
20216         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
20217         functions.
20218         (ira_flattening): Use ira_parent_allocno.
20219         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
20220         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
20221
20222         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
20223         statement.
20224
20225         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
20226         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
20227         minmax_set_iter_cond, minmax_set_iter_next,
20228         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
20229         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
20230         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
20231         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
20232         uses changed.
20233
20234         * ira-int.h (struct live_range, live_range_t): Renamed from struct
20235         ira_allocno_live_range and allocno_live_range_t; all uses changed.
20236         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
20237         All uses changed.
20238
20239 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
20240
20241         * thumb2.md (thumb2_tlobits_cbranch): Delete.
20242         (peephole2 to convert zero_extract/compare of single bit to
20243          lshift/compare): New.
20244
20245 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
20246
20247         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
20248         recursive call and call to 'int_const_binop'.
20249         (build_range_check, fold_cond_expr_with_comparison, unextend,
20250         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
20251         multiple_of_p): Adjust call to const_binop.
20252
20253 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
20254
20255         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
20256         determine size of XFmode operand.
20257         (XFmode extended DFmode push splitter): Ditto.
20258         (XFmode extended SFmode push splitter): Ditto.
20259
20260 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
20261
20262         PR target/44588
20263         * config/i386/i386.md (extract_code): New.
20264         (<u>divmodqi4): Likewise.
20265         (divmodhiqi3): Likewise.
20266         (udivmodhiqi3): Likewise.
20267         (<u>divqi3): Remvoved.
20268
20269 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
20270
20271         PR middle-end/44492
20272         * recog.h (struct recog_data): Add is_asm field.
20273         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
20274         present in constraints of inline-asm operand and memory operand
20275         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
20276         (extract_insn): Initialize recog_data.is_asm.
20277         * doc/md.texi (Constraints): Document operand side-effect rules.
20278
20279 2010-06-24  Andi Kleen  <ak@linux.intel.com>
20280
20281         * c-parser.c (c_parser_conditional_expression): Call
20282         warn_for_omitted_condop.
20283         * doc/invoke.texi: Document omitted condop warning.
20284
20285 2010-06-24  Nick Clifton<nickc@redhat.com>
20286
20287         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
20288         insn in the sequence is a jump insn before setting its label.
20289
20290 2010-06-24  Alan Modra  <amodra@gmail.com>
20291
20292         * collect2.c (main): Match exactly --version and --help.
20293
20294 2010-06-24  DJ Delorie  <dj@redhat.com>
20295
20296         * config/m32c/m32c-pragma.c: Don't include rtl.h.
20297
20298 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
20299
20300         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
20301         using X87MODEF mode iterator.
20302         (pushsf splitter): Macroize splitter using P mode iterator.
20303         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
20304         mode iterator.
20305
20306         (*movxf_internal): Rename from *movxf_integer.
20307         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
20308         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
20309         (*movdf_internal): Rename from *movdf_integer.
20310         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
20311         (*movsf_internal): Rename from *movdf_1.
20312
20313 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
20314
20315         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
20316         (const_gimple_seq_node): Removed typedefs.
20317
20318         * gimple.h (gimple_seq_node_d, gimple_seq_node)
20319         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
20320
20321 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
20322
20323         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
20324         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
20325         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
20326         and CODE_FOR_vec_extract_lo_v4df.
20327
20328         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
20329         Changed to define_insn_and_split.
20330         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
20331         (vec_extract_lo_v16hi): Likewise.
20332         (vec_extract_lo_v32qi): Likewise.
20333         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
20334         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
20335
20336 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
20337
20338         PR target/44640
20339         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
20340         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
20341         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
20342         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
20343         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
20344
20345         PR target/44640
20346         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
20347
20348         PR other/44644
20349         * df-core.c (struct df): Rename to df_d.
20350         * df.h (struct df): Likewise.
20351         * dse.h (struct df): Remove forward declaration.
20352         * recog.h (struct insn_data): Rename to:
20353         (struct_insn_data_d).  Adjusted all users.
20354
20355 2010-06-23  Arnaud Charlet  <charlet@adacore.com
20356
20357         PR ada/22220
20358         * doc/install.texi: Update requirements to build GNAT.
20359
20360 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
20361
20362         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
20363         enum type.
20364         (m68k_sched_attr_opx_type): Remove unreachable return.
20365         (m68k_sched_attr_opy_type): Likewise.
20366         (m68k_sched_attr_size): Likewise.
20367         (sched_get_opxy_mem_type): Likewise.
20368         (m68k_sched_attr_op_mem): Likewise.
20369
20370 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
20371
20372         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
20373         new statement and adjust VDEF only if necessary.  Remove superfluous
20374         call to maybe_clean_or_replace_eh_stmt.
20375         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
20376         copy the flags.
20377         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
20378         * tree-inline.c (copy_bb): ...and not there.
20379
20380 2010-06-22  Cary Coutant  <ccoutant@google.com>
20381
20382         * dwarf2out.c (is_nested_in_subprogram): New function.
20383         (should_move_die_to_comdat): Use it.
20384         (copy_ancestor_tree): Don't mark DIEs here.
20385         (copy_decls_walk): Start walk from root of newly-added tree;
20386         mark DIEs here instead.
20387
20388 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
20389
20390         * config/i386/i386.md (unit): Also check sseishft1.
20391
20392 2010-06-22  Jan Hubicka  <jh@suse.cz>
20393
20394         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
20395         enabled.
20396
20397 2010-06-22  Jan Hubicka  <jh@suse.cz>
20398
20399         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
20400         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
20401         Return true if something changed.
20402         * df.h (df_confluence_function_n): Return bool.
20403         * df-core.c (df_worklist_propagate_forward,
20404         df_worklist_propagate_backward): Track changes and ages.
20405         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
20406         track ages.
20407         * dse.c (dse_confluence_n): Return always true.
20408
20409 2010-06-22  Jan Hubicka  <jh@suse.cz>
20410
20411         * bitmap.c (bitmap_clear_bit): Micro optimize.
20412
20413 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
20414
20415         * config/i386/i386.md (SWI1248x): New mode iterator.
20416         (SWI48x): Ditto.
20417         (SWI12): Ditto.
20418         (SWI24): Ditto.
20419
20420         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
20421         SWI1248x mode iterator.
20422         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
20423         using SWI124 mode iterator.
20424         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
20425         mode iterator.
20426         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
20427         *pushdi2_prologue_rex64 using P mode iterator.
20428         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
20429         using SWI48 mode iterator.
20430         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
20431         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
20432         using SWI1248x mode iterator.
20433         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
20434         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
20435         SWI48 mode iterator.
20436         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
20437         iterator.
20438         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
20439         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
20440         SWI12 mode iterator.
20441         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
20442         SWI12 mode iterator.
20443         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
20444         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
20445         SWI24 mode iterator.
20446         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
20447         SWI48 mode iterator.
20448         (mov<mode>_insn_1): New expander.
20449         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
20450         using SWI48x mode iterator.
20451
20452         (*movoi_internal_avx): Rename from *movoi_internal.
20453         (*movti_internal_rex64): Rename from *movti_rex64.
20454         (*movti_internal_sse): Rename from *movti_sse.
20455         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
20456         (*movdi_internal): Rename from *movdi_2.
20457         (*movsi_internal): Rename from *movsi_1.
20458         (*movhi_internal): Rename from *movhi_1.
20459         (*movqi_internal): Rename from *movqi_1.
20460
20461         (insv): Update the call to gen_movsi_insv_1 for rename.
20462         * config/i386/i386.c (promote_duplicated_reg): Ditto.
20463
20464 2010-06-22  Jan Hubicka  <jh@suse.cz>
20465
20466         * passes.c (execute_function_todo): Move call of statistics_fini_pass
20467         to ...
20468         (execute_todo) ... this one.
20469
20470 2010-06-22  Alan Modra  <amodra@gmail.com>
20471
20472         PR target/44364
20473         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
20474         * caller-save.c (insert_restore, insert_save): Use non-validate
20475         form of adjust_address.
20476
20477 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20478
20479         PR target/39690
20480         * config/pa/pa.c (override_options): Disable
20481         -freorder-blocks-and-partition.
20482
20483 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
20484
20485         PR target/44615
20486         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
20487
20488         * config/i386/i386.md (type): Add sseishft1
20489
20490         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
20491         (ppro_insn_load): Likewise.
20492         (ppro_insn_store): Likewise.
20493         (ppro_insn_both): Likewise.
20494
20495         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
20496         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
20497         for type.
20498         (*vec_extractv2di_1_avx): Likewise.
20499         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
20500         type.  Remove atom_unit.
20501         (*vec_extractv2di_1_sse2): Likewise.
20502
20503 2010-06-21  DJ Delorie  <dj@redhat.com>
20504
20505         * diagnostic.h (diagnostic_classification_change_t): New.
20506         (diagnostic_context): Add history and push/pop list.
20507         (diagnostic_push_diagnostics): Declare.
20508         (diagnostic_pop_diagnostics): Declare.
20509         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
20510         from pragmas in a history chain instead of the global table.
20511         (diagnostic_push_diagnostics): New.
20512         (diagnostic_pop_diagnostics): New.
20513         (diagnostic_report_diagnostic): Scan history chain to find state
20514         of diagnostics as of the diagnostic location.
20515         * opts.c (set_option): Pass UNKNOWN_LOCATION to
20516         diagnostic_classify_diagnostic.
20517         (enable_warning_as_error): Likewise.
20518         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
20519         use in the history chain.
20520         * doc/extend.texi: Document pragma GCC diagnostic changes.
20521
20522 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
20523
20524         * dwarf2out.c (add_linkage_name): New function.  Don't add
20525         anything to DW_TAG_member DIEs.
20526         (add_name_and_src_coords_attributes): Use it.
20527         (gen_variable_die): Call it for C++ static data members if
20528         specification is DW_TAG_member.
20529
20530         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
20531         C++ char16_t and char32_t.
20532
20533         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
20534         * genattrtab.c: Include vecprim.h.
20535         (cached_attrs, cached_attr_count, attrs_seen_once,
20536         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
20537         attrs_cached_after): New variables.
20538         (find_attrs_to_cache): New function.
20539         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
20540         (write_test_expr): Add attrs_cached argument, return it too,
20541         attempt to cache non-const attributes used more than once in
20542         a single case handling.
20543         (write_attr_get): Use find_attrs_to_cache, for caching candidates
20544         emit cached_* variables.  Adjust write_attr_set callers.
20545         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
20546         to find attributes that should be cached in this block.  Adjust
20547         write_test_expr callers.
20548         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
20549         callers.
20550         (make_automaton_attrs): Adjust write_test_expr caller.
20551
20552         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
20553         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
20554         (make_automaton_attrs): If find_tune_attr returns non-NULL,
20555         write separate internal_dfa_insn_code_* and insn_default_latency_*
20556         functions for each attribute's value and emit init_sched_attrs
20557         function and function pointers.
20558         * genattr.c (const_attrs, reservations): New variables.
20559         (gen_attr): Add const attributes to const_attrs vector.
20560         (check_tune_attr, find_tune_attr): New functions.
20561         (main): Add reservations to reservations vector.  If find_tune_attr
20562         returns true, add prototype for init_sched_attrs and make
20563         internal_dfa_insn_code and insn_default_latency function pointers,
20564         otherwise define init_sched_attrs as dummy macro.
20565         * cfgexpand.c: Include insn-attr.h.
20566         (gimple_expand_cfg): Call init_sched_attrs.
20567
20568         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
20569
20570         PR target/44575
20571         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
20572         va_arg from a set of register save slots into a temporary,
20573         if the container is bigger than type size, do the copying
20574         using smaller mode or using memcpy.
20575
20576         PR bootstrap/44426
20577         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
20578         prototype.
20579         (sel_print_to_dot): Remove macro.
20580         (sel_print): Likewise.  New prototype.
20581         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
20582         (sel_print): New function.
20583
20584 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20585
20586         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
20587         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
20588
20589 2010-06-21  Nick Clifton  <nickc@redhat.com>
20590
20591         * config/rx/rx.h (PTRDIFF_TYPE): Define.
20592         (SMALL_REGISTER_CLASS): Define (to zero).
20593         (PRINT_OPERAND): Delete.
20594         (PRINT_OPERAND_ADDRESS): Delete.
20595         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
20596         (rx_print_operand_address): Delete prototype.
20597         * config/rx/rx.c (rx_print_operand): Make static.
20598         Allow %H and %L to handle CONST_DOUBLEs.
20599         (rx_print_operand_address): Make static.
20600         (rx_gen_move_template): Rename local variable 'template' to
20601         out_template.
20602         (rx_function_arg): Do not pass unknown sized objects in registers.
20603         (TARGET_PRINT_OPERAND): Define.
20604         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20605
20606 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
20607
20608         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
20609
20610 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
20611
20612         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
20613         stack-alignment for simple leaf-functions.
20614
20615 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
20616
20617         * doc/install.texi: Document bootstrap-lto.
20618
20619 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
20620
20621         PR debug/44248
20622         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
20623         (input_function): Drop them here, if VTA is disabled.
20624
20625 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
20626
20627         PR target/44546
20628         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
20629         New predicate.
20630         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
20631         ix86_swapped_fp_comparsion_operator instead of
20632         ix86_fp_comparison_operator.
20633
20634         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
20635         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
20636         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
20637         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
20638         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
20639         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
20640
20641 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
20642
20643         PR other/32998
20644         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
20645         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
20646         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
20647         (decode_cmdline_option): Update for this return value.  Set
20648         orig_option_with_args_text field.  Set arg field for unknown
20649         options.  Make static.
20650         (decode_cmdline_options_to_array): New.
20651         (prune_options): Update handling of find_opt return value.
20652         * opts.c (read_cmdline_option): Take decoded option.  Return void.
20653         (read_cmdline_options): Take decoded options.
20654         (decode_options): Add parameters for decoded options.  Use
20655         decode_cmdline_options_to_array.  Use decoded options for -O
20656         scan.  Use integral_argument for -O parameters.  Update call to
20657         read_cmdline_options.
20658         (enable_warning_as_error): Update handling of find_opt return value.
20659         * opts.h: Update comment on unknown options.
20660         (struct cl_decoded_option): Update comments on opt_index and arg.
20661         Add orig_option_with_args_text.
20662         (decode_cmdline_option): Remove.
20663         (decode_cmdline_options_to_array): Declare.
20664         (decode_options): Update prototype.
20665         * toplev.c (save_argv): Remove.
20666         (save_decoded_options, save_decoded_options_count): New.
20667         (read_integral_parameter): Remove.
20668         (print_switch_values): Use decoded options.
20669         (toplev_main): Don't set save_argv.  Update call to decode_options.
20670         * toplev.h (read_integral_parameter): Remove.
20671         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
20672
20673 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
20674
20675         PR target/44072
20676         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
20677         immediate.
20678         * constraints.md (Pw, Px): New constraints.
20679         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
20680
20681 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
20682
20683         * config/i386/sse.md (fma4modesuffixf4): Removed.
20684         (ssemodesuffixf2s): Likewise.
20685         (ssemodesuffixf4): Likewise.
20686         (ssemodesuffixf2c): Likewise.
20687         (ssescalarmodesuffix2s): Likewise.
20688         (avxmodesuffixf2c): Likewise.
20689         (ssemodesuffix): New.
20690         (ssescalarmodesuffix): Likewise.
20691         Update patterns with ssemodesuffix and ssescalarmodesuffix.
20692
20693 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
20694
20695         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
20696
20697 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
20698
20699         * stor-layout.c (debug_rli): Remove unused local variables.
20700
20701 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
20702
20703         PR rtl-optimization/40900
20704         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
20705         original expression for later reuse.
20706         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
20707         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
20708
20709 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
20710
20711         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
20712         double_int_fits_in_uhwi_p): Implement as static inline.
20713         (double_int_xor): New inline function.
20714         (double_int_lrotate, double_int_rrotate, double_int_max,
20715         double_int_umax, double_int_smax, double_int_min, double_int_umin,
20716         double_int_smin): Declare.
20717         (lrotate_double, rrotate_double): Remove declaration.
20718         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
20719         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
20720         (double_int_lrotate, double_int_rrotate, double_int_max,
20721         double_int_umax, double_int_smax, double_int_min, double_int_umin,
20722         double_int_smin): New function.
20723         * fold-const.c (int_const_binop): Clean up, use double_int_*
20724         functions.
20725         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
20726         double_int_* and immed_double_int_const functions.
20727
20728 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
20729
20730         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
20731         * function.c (types_used_by_cur_var_decl): Likewise.
20732         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
20733
20734 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
20735
20736         * tree.h (record_layout_info): Change type of pending_statics field
20737         to a VEC.
20738         * stor-layout.c (start_record_layout): Store NULL into
20739         pending_statics.
20740         (debug_rli): Call debug_vec_tree instead of debug_tree.
20741         (place_field): Likewise.
20742         (finish_record_layout): Likewise.
20743
20744 2010-06-18  Alan Modra  <amodra@gmail.com>
20745
20746         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
20747
20748 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20749
20750         PR target/43740
20751         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
20752         for SET source operand from SET destination operand.
20753
20754 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
20755
20756         PR rtl-optimization/39871
20757         * reload1.c (init_eliminable_invariants): For flag_pic, disable
20758         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
20759         (function_invariant_p): Rule out a plus of frame or arg pointer with
20760         a SYMBOL_REF.
20761         * ira.c (find_reg_equiv_invariant_const): Likewise.
20762
20763 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
20764
20765         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
20766         print_operand_address and puts to output the operand for CONST.
20767
20768 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
20769
20770         PR debug/44572
20771         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
20772         hook.
20773
20774 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20775
20776         * v850-protos.h (print_operand): Delete.
20777         (print_operand_address): Delete.
20778         * v850.h (PRINT_OPERAND): Delete.
20779         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20780         (PRINT_OPERAND_ADDRESS): Delete.
20781         * v850.c (print_operand_address): Rename to...
20782         (v850_print_operand_address): ...this.  Make static. Call
20783         v850_print_operand.
20784         (print_operand): Rename to...
20785         (v850_print_operand): ...this.  Make static.  Call
20786         v850_print_operand_address.
20787         (v850_print_operand_punct_valid_p): New function.
20788         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20789         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20790
20791 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20792
20793         * config/sh/sh-protos.h (print_operand): Delete.
20794         (print_operand_address): Delete.
20795         * config/sh/sh.h (PRINT_OPERAND): Delete.
20796         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20797         (PRINT_OPERAND_ADDRESS): Delete.
20798         * config/sh/sh.c (sh_print_operand_address): Make static.
20799         (sh_print_operand): Make static.  Call sh_print_operand_address
20800         and sh_print_operand.
20801         (sh_print_operand_punct_valid_p): New function.
20802         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20803         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20804
20805 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20806
20807         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
20808         (mcore_print_operand_address): Delete.
20809         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
20810         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20811         (PRINT_OPERAND_ADDRESS): Delete.
20812         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
20813         (mcore_print_operand): Make static.
20814         (mcore_print_operand_punct_valid_p): New function.
20815         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
20816         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20817
20818 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20819
20820         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
20821         (print_operand_address): Delete.
20822         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
20823         (PRINT_OPERAND_ADDRESS): Delete.
20824         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
20825         static.
20826         (m68hc11_print_operand): Make static.
20827         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20828
20829 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20830
20831         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
20832         (m32r_print_operand_address): Delete.
20833         * config/m32r/m32r.h (m32r_punct_chars): Delete.
20834         (PRINT_OPERAND): Delete.
20835         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20836         (PRINT_OPERAND_ADDRESS): Delete.
20837         * config/m32r/m32r.c (m32r_punct_chars): Make static.
20838         (m32r_print_operand_address): Make static.
20839         (m32r_print_operand): Make static.
20840         (m32r_print_operand_punct_valid_p): New function.
20841         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20842         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20843
20844 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20845
20846         * config/iq2000/iq2000-protos.h (print_operand): Delete.
20847         (print_operand_address): Delete.
20848         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
20849         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20850         (PRINT_OPERAND_ADDRESS): Delete.
20851         (iq2000_print_operand_punct): Delete.
20852         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
20853         (iq2000_print_operand_address): Make static.
20854         (iq2000_print_operand): Make static.
20855         (iq2000_print_operand_punct_valid_p): New function.
20856         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20857         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20858
20859 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20860
20861         * config/frv/frv-protos.h (frv_print_operand): Delete.
20862         (frv_print_operand_address): Delete.
20863         * config/frv/frv.h (PRINT_OPERAND): Delete.
20864         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20865         (PRINT_OPERAND_ADDRESS): Delete.
20866         * config/frv/frv.c (frv_print_operand_address): Make static.
20867         (frv_print_operand): Make static.
20868         (frv_print_operand_punct_valid_p): New function.
20869         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20870         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20871
20872 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20873
20874         * tree.h (vec_member): Declare.
20875         * tree.c (vec_member): Define.
20876
20877 2010-06-17  Richard Guenther  <rguenther@suse.de>
20878
20879         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
20880         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
20881
20882 2010-06-17  Richard Guenther  <rguenther@suse.de>
20883
20884         * tree-inline.c (declare_return_variable): Remove bogus code.
20885
20886 2010-06-17  Richard Guenther  <rguenther@suse.de>
20887
20888         * gimplify.c (gimplify_bind_expr): Always promote complex
20889         and vector variables to registers if possible.
20890
20891 2010-06-17  Richard Guenther  <rguenther@suse.de>
20892
20893         * expr.c (get_inner_reference): Use double_int for bit_offset
20894         calculation.
20895
20896 2010-06-16  DJ Delorie  <dj@redhat.com>
20897
20898         * common.opt (-fstrict-volatile-bitfields): new.
20899         * doc/invoke.texi: Document it.
20900         * fold-const.c (optimize_bit_field_compare): For volatile
20901         bitfields, use the field's type to determine the mode, not the
20902         field's size.
20903         * expr.c (expand_assignment): Likewise.
20904         (get_inner_reference): Likewise.
20905         (expand_expr_real_1): Likewise.
20906         * expmed.c (store_fixed_bit_field): Likewise.
20907         (extract_bit_field_1): Likewise.
20908         (extract_fixed_bit_field): Likewise.
20909
20910 2010-06-16  Richard Guenther  <rguenther@suse.de>
20911
20912         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
20913
20914 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
20915
20916         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
20917         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
20918         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
20919         * debug.c: Likewise.
20920         * sdbout.c: Likewise.
20921         * vmsdbgout.c: Likewise.
20922         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
20923         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
20924         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
20925         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
20926         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
20927         * dwarf2out.c (dw_fde_struct): New fields
20928         dw_fde_vms_{end,begin}_prologue.
20929         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
20930         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
20931         (dwarf2out_vms_end_prologue): New function.
20932         (dwarf2out_vms_begin_epilogue): New function.
20933         (dw_val_struct): New value dw_val_class_vms_delta.
20934         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
20935         begin_epilogue for VMS.
20936         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
20937         new static functions.
20938         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
20939         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
20940         static functions.
20941         (print_die): New case dw_val_class_vms_delta.
20942         (attr_checksum): Likewise.
20943         (same_dw_val_p: Likewise.
20944         (size_of_die): Likewise.
20945         (value_format): Likewise.
20946         (output_die): Likewise.
20947         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
20948         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
20949         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
20950         dwarf2out_cfi_begin_epilogue
20951         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
20952
20953 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
20954
20955         * config/cris/cris-protos.h (cris_print_operand): Delete.
20956         (cris_print_operand_address): Delete.
20957         * config/cris/cris.h (PRINT_OPERAND): Delete.
20958         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20959         (PRINT_OPERAND_ADDRESS): Delete.
20960         * config/cris/cris.c (cris_print_operand_address): Make static.
20961         (cris_print_operand): Make static.
20962         (cris_print_operand_punct_valid_p): New function.
20963         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20964         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20965
20966 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
20967
20968         * config/arm/arm-protos.h (arm_print_operand): Delete.
20969         (arm_print_operand_address): Delete.
20970         * config/arm/arm.h (PRINT_OPERAND): Delete.
20971         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20972         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
20973         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
20974         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
20975         (arm_print_operand): Make static.
20976         (arm_print_operand_punct_valid_p): New function.
20977         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20978         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20979
20980 2010-06-16  Nick Clifton  <nickc@redhat.com>
20981
20982         * config/rx/constraints.md (NEGint4): New constraint.
20983         * config/rx/rx.md (attr cc): Add set_zsc.
20984         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
20985         initialised.
20986         (cmpsf): Likewise.
20987         (call_internal): Clobber the cc0 register.
20988         (call_value_internal): Likewise.
20989         (cstoresi4): Likewise.
20990         (movsieq): Likewise.
20991         (movsine): Likewise.
20992         (addsi3): Add alternative to handle small negative constants.
20993         (sunsi3): Likewise.
20994         (addsi3): Do not set the O bit in the cc0 register.
20995         (adddi3): Likewise.
20996         (subsi3): Likewise.
20997         (subdi3): Likewise.
20998         (andsi3): Reorder alternatives to prefer shorter forms.
20999         (mulsi3): Likewise.
21000         (iorsi3): Likewise.
21001         (negsi2): Note that the cc0 flags are set.
21002         (rotlsi3): Note that only the Z and S bits are set in cc0.
21003         (lshrsi3): Likewise.
21004         (ashlsi3): Likewise.
21005         (subsf3): Use %Q for the MEM operand.
21006         (fix_truncsfsi2): Likewise.
21007         (floatsisf2): Likewise.
21008         (bitset): Remove early clobber from destination.
21009         (bitset_in_memory): Likewise.
21010         (lrintsf2): Clobber the cc0 register.
21011         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
21012         (rx_print_operand): Handle %N.
21013
21014 2010-06-16  Jan Hubicka  <jh@suse.cz>
21015
21016         * df-core.c (df_compact_blocks): Free problem_temps vector.
21017
21018 2010-06-16  Martin Jambor  <mjambor@suse.cz>
21019
21020         PR tree-optimization/43905
21021         * tree-sra.c: Include tree-inline.h.
21022         (create_abstract_origin): Removed.
21023         (modify_function): Version the call graph node instead of creating
21024         abstract origins and dealing with same_body aliases.
21025         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
21026         function is versionable.
21027         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
21028
21029 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
21030
21031         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
21032         (CHOOSE_DYNAMIC_LINKER): Update.
21033
21034 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
21035
21036         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
21037         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
21038         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
21039         *prefetch_3dnow_rex.
21040
21041 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
21042
21043         * target.h (struct asm_out):Add declare_constant_name field.
21044         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
21045         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
21046         * output.h (default_asm_declare_constant_name): Declare.
21047         (assemble_label): Update prototype.
21048         * varasm.c (assemble_constant_contents): Use
21049         targetm.asm_out.declare_constant_name target hook.
21050         (assemble_label): Add 'file' argument.
21051         (default_asm_declare_constant_name): New function.
21052         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
21053         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
21054         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
21055
21056         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
21057         * config/darwin.c (darwin_asm_declare_constant_name): New function.
21058         (machopic_output_indirection): Update assemble_label argument list.
21059         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
21060         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
21061
21062 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
21063
21064         PR middle-end/44391
21065         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
21066         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
21067
21068 2010-06-15  Richard Guenther  <rguenther@suse.de>
21069
21070         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
21071
21072 2010-06-15  Paul Brook  <paul@codesourcery.com>
21073
21074         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
21075         hard-float ABI.
21076
21077 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
21078
21079         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
21080         don't get a vector type for output.
21081
21082 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
21083
21084         PR fortran/44536
21085         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
21086         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
21087         (LANG_HOOKS_DECLS): Add it.
21088         * gimplify.c (omp_notice_variable): Call
21089         lang_hooks.decls.omp_report_decl.
21090
21091 2010-06-15  Martin Jambor  <mjambor@suse.cz>
21092
21093         PR lto/44464
21094         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
21095         on the newly dead SSA name.
21096
21097 2010-06-15  Alan Modra  <amodra@gmail.com>
21098
21099         * doc/invoke.texi: Add mcmodel to powerpc options.
21100         * configure.ac: Add HAVE_LD_LARGE_TOC test.
21101         * configure: Regenerate.
21102         * config.in: Regenerate.
21103         * config/rs6000/linux64.opt (mcmodel): New.
21104         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
21105         (TARGET_CMODEL, SET_CMODEL): Define.
21106         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
21107         select CMODEL_MEDIUM default.
21108         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
21109         (TARGET_CMODEL): Define default.
21110         * config/rs6000/rs6000.c (cmodel): New variable.
21111         (rs6000_explicit_options): Add cmodel field.
21112         (rs6000_handle_option): Handle -mcmodel.
21113         (create_TOC_reference): Add largetoc_reg param.  Generate high,
21114         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
21115         (rs6000_delegitimize_address): Recognise new toc reference rtl
21116         and minimal-toc rtl.
21117         (rs6000_legitimize_reload_address): Handle new toc references.
21118         (print_operand_address): Handle legitimate_constant_pool_address_p
21119         match before lo_sum.
21120         (rs6000_eliminate_indexed_memrefs): Tidy.
21121         (rs6000_emit_move): Tweak threshold for inlining constants.
21122         Keep rs6000_emit_allocate_stack large stack frame offsets
21123         loaded into r0 inline.
21124         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
21125         (tocrel_base, tocrel_offset): New variables.
21126         (toc_relative_expr_p): Set them here.
21127         (print_operand_address): Skip over any offset on constant pool address.
21128         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
21129         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
21130         (offsettable_ok_by_alignment): New function.
21131         (rs6000_emit_move): Address suitably aligned local symbol_refs
21132         relative to the toc pointer for -mcmodel=medium.
21133         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
21134         strict param.  Allow lo_sum version of addressing.  Verify reg
21135         used for -mminimal-toc and -mcmodel != small.  Update all callers.
21136         * config/rs6000/constraints.md: Update for above change.
21137         * config/rs6000/predicates.md: Likewise.
21138         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
21139         code.
21140         (tls_gd): Split for -mcmodel=medium/large.
21141         (tls_gd_high, tls_gd_low): New.
21142         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
21143         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
21144         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
21145         (largetoc_high, largetoc_low): New.
21146         (cmptf_internal2): Add clobber.
21147         * config/rs6000/rs6000-protos.h: Update.
21148
21149 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
21150
21151         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
21152         true if no prefetch is going to be generated for a given group.
21153         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
21154         estimate the prefetch_count.
21155         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
21156         prefetch count by considering the unroll_factor and prefetch_mod
21157         for is_loop_prefetching_profitable.
21158
21159 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
21160
21161         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
21162         anything if the argument is not a MEM.
21163
21164 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
21165
21166         PR debug/43650
21167         PR debug/44181
21168         PR debug/44247
21169         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
21170         debug stmts.
21171         (canonicalize_loop_ivs): Likewise.
21172
21173 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
21174
21175         PR debug/43656
21176         * haifa-sched.c (setup_insn_reg_pressure_info,
21177         update_register_pressure): Reject debug insns.
21178         (ready_sort): Don't setup reg pressure for debug insns.
21179         (schedule_insn): Don't update reg pressure for debug insns.
21180
21181 2010-06-14  Richard Guenther  <rguenther@suse.de>
21182
21183         * lto-streamer.c (cached_bp): Remove.
21184         (bitpack_delete): Likewise.
21185         (bitpack_create): Likewise.
21186         (bp_get_next_word): Likewise.
21187         (bp_pack_value, bp_unpack_value): Move ...
21188         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
21189         Re-implement.
21190         (struct bitpack_d): Likewise.
21191         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
21192         New inline functions.
21193         * lto-streamer-out.c (lto_output_bitpack): Remove.
21194         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
21195         (pack_value_fields): Adjust.
21196         (lto_write_tree): Likewise.
21197         (output_gimple_stmt): Likewise.
21198         (output_function): Likewise.
21199         * lto-streamer-in.c (input_gimple_stmt): Adjust.
21200         (input_function): Likewise.
21201         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
21202         (lto_input_bitpack): Remove.
21203         (lto_materialize_tree): Adjust.
21204         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
21205         * lto-cgraph.c (lto_output_edge): Adjust.
21206         (lto_output_node): Likewise.
21207         (lto_output_varpool_node): Likewise.
21208         (lto_output_ref): Likewise.
21209         (input_node): Likewise.
21210         (input_varpool_node): Likewise.
21211         (input_ref): Likewise.
21212         (input_edge): Likewise.
21213         (output_node_opt_summary): Likewise.
21214         (input_node_opt_summary): Likewise.
21215         * ipa-pure-const.c (pure_const_write_summary): Likewise.
21216         (pure_const_read_summary): Likewise.
21217         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
21218         (ipa_read_indirect_edge_info): Likewise.
21219         (ipa_write_node_info): Likewise.
21220         (ipa_read_node_info): Likewise.
21221
21222 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
21223
21224         PR target/44534
21225         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
21226         (vec_extract_lo_v16hi): Likewise.
21227         (vec_extract_lo_v32qi): Likewise.
21228
21229 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
21230
21231         PR bootstrap/44426
21232         * tree.h (build_call_expr): Don't define as vararg macro, instead
21233         add a prototype.
21234         * builtins.c (build_call_nofold): Remove.
21235         (expand_builtin_int_roundingfn, expand_builtin_pow,
21236         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
21237         expand_builtin_memset_args, expand_builtin_strcmp,
21238         expand_builtin_strncmp, expand_builtin_memory_chk): Use
21239         build_call_nofold_loc instead of build_call_nofold.
21240         (build_call_expr): New function.
21241
21242         PR tree-optimization/44508
21243         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
21244         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
21245         don't eliminate trivially dead stmts.
21246         * tree-vrp.c (vrp_finalize): Pass false as last argument
21247         to substitute_and_fold.
21248         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
21249         to substitute_and_fold.
21250         * tree-ssa-ccp.c (ccp_finalize): Likewise.
21251
21252         PR bootstrap/44509
21253         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
21254
21255 2010-06-14  Ira Rosen  <irar@il.ibm.com>
21256
21257         PR tree-optimization/44507
21258         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
21259         to build initial vector for BIT_AND_EXPR.
21260         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
21261
21262 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
21263
21264         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
21265         adjust z10prop set_attr.
21266
21267 2010-06-13  Jan Hubicka  <jh@suse.cz>
21268
21269         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
21270         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
21271         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
21272         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
21273         datastructure checks into checking asserts.
21274         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
21275         * tree-ssa-sccvn.c (VN_INFO): Likewise.
21276         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
21277         df_ref_create_structure): Likewise.
21278         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
21279         pool_free): Use gcc_checking_assert.
21280         * alias.c (get_alias_set): Likewise.
21281         * var-tracking.c (variable_htab_free, shared_hash_copy,
21282         canonicalize_values_mark, variable_merge_over_cur): Likewise.
21283         * lto-streamer.c (bp_unpack_value): Likewise.
21284
21285 2010-06-13  Richard Guenther  <rguenther@suse.de>
21286
21287         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
21288         Do not stream but initialize TYPE_CANONICAL to NULL.
21289         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
21290         * gimple.c (gimple_types_compatible_p): Disregard
21291         TYPE_STRUCTURAL_EQUALITY_P.
21292         (gimple_register_type): Use TYPE_CANONICAL as cache.
21293         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
21294         before registering common types.
21295         * config/i386/i386.c (ix86_function_arg_boundary): Do not
21296         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
21297         * tree.h (TYPE_CANONICAL): Clarify documentation.
21298
21299 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
21300
21301         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21302         LIBCALL_VALUE): Remove macros.
21303         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
21304         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21305         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21306         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
21307         (ia64_function_value): Make static. Handle receiving the function
21308         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
21309
21310 2010-06-12  Jan Hubicka  <jh@suse.cz>
21311
21312         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
21313         at correct place.
21314
21315 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
21316
21317         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
21318
21319 2010-06-12  Jan Hubicka  <jh@suse.cz>
21320
21321         * df-core.c (df_clear_bb_info): New function.
21322         (df_set_blocks): bb_info is always allocated.
21323         (df_get_bb_info): Use block_info_elt_size.
21324         (df_set_bb_info): Likewise.
21325         (df_compact_blocks): Update for new block_info.
21326         (grow_bb_info): New function.
21327         * df-problems.c (df_grow_bb_info): Move to df-core.c
21328         (df_rd_set_bb_info): Remove.
21329         (df_rd_free_bb_info): Do not free block pool.
21330         (df_rd_alloc): Do not create pool, use check for
21331         obstack presence instead of NULL pointer for new blocks.
21332         (df_rd_free): DO not free alloc pool; clear block_info.
21333         (problem_RD): Add size of block info structure.
21334         (df_lr_set_bb_info): Remove.
21335         (df_lr_free_bb_info): Do not free block pool.
21336         (df_lr_alloc): Do not create pool, use check for
21337         obstack presence instead of NULL pointer for new blocks.
21338         (df_lr_free): DO not free alloc pool; clear block_info.
21339         (problem_LR): Add size of block info structure.
21340         (df_live_set_bb_info): Remove.
21341         (df_live_free_bb_info): Do not free block pool.
21342         (df_live_alloc): Do not create pool, use check for
21343         obstack presence instead of NULL pointer for new blocks.
21344         (df_live_free): DO not free alloc pool; clear block_info.
21345         (problem_LIVE): Add size of block info structure.
21346         (problem_CHAIN): Add size of block info structure.
21347         (df_byte_lr_set_bb_info): Remove.
21348         (df_byte_lr_free_bb_info): Do not free block pool.
21349         (df_byte_lr_alloc): Do not create pool, use check for
21350         obstack presence instead of NULL pointer for new blocks.
21351         (df_byte_lr_free): DO not free alloc pool; clear block_info.
21352         (problem_BYTE_LR): Add size of block info structure.
21353         (problem_NOTE): Add size of block info structure.
21354         (df_byte_MD_set_bb_info): Remove.
21355         (df_byte_MD_free_bb_info): Do not free block pool.
21356         (df_byte_MD_alloc): Do not create pool, use check for
21357         obstack presence instead of NULL pointer for new blocks.
21358         (df_byte_MD_free): DO not free alloc pool; clear block_info.
21359         (problem_BD): Add size of block info structure.
21360         * df-scan.c (df_scan_free_internal): Free block pool.
21361         (df_scan_set_bb_info): Remove.
21362         (df_scan_free_bb_info): Check for artificial_defs instead
21363         of bb_info being non-NULL.
21364         (df_scan_alloc): DO not create df_scan_block pool.
21365         (problem_SCAN): Set size of block info.
21366         (df_bb_refs_record): Do not allocate bb_info.
21367         * df.h (df_problem): Add block_info_elt_size.
21368         (struct dataflow): Change block_info to void *.
21369         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
21370         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
21371         in-line structures.
21372
21373 2010-06-12  Jan Hubicka  <jh@suse.cz>
21374
21375         PR tree-optimize/44485
21376         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
21377         containing use of return value of noreturn function.
21378
21379 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
21380
21381         * targhooks.c (default_function_value): Don't use
21382         FUNCTION_OUTGOING_VALUE.
21383         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
21384         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
21385
21386 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
21387
21388         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
21389         Add crtfastmath.o to extra_parts.
21390         * config/mips/crtfastmath.c: New.
21391         * config/mips/linux.h (ENDFILE_SPEC): New.
21392
21393 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
21394
21395         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
21396         old_type in parameter.
21397         (gcc_type_for_value): Update call to gcc_type_for_interval.
21398         (compute_type_for_level_1): Renamed compute_type_for_level.
21399         Update call to gcc_type_for_interval.
21400
21401 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
21402
21403         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
21404         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
21405
21406 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
21407
21408         * opts-common.c: Include options.h.
21409         (integral_argument): Move from opts.c.
21410         (decode_cmdline_option): New.  Based on read_cmdline_option.
21411         * opts.c (integral_argument): Move to opts-common.c.
21412         (read_cmdline_option): Move most contents to
21413         decode_cmdline_option.  Use %qs in diagnostics.
21414         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
21415         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
21416         decode_cmdline_option): New.
21417
21418 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
21419
21420         PR target/44481
21421         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
21422         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
21423         (partiysi2_cmp): Ditto.
21424         (*partiyhi2_cmp): Ditto.
21425         (*parityqi2_cmp): Remove.
21426
21427 2010-06-11  Jan Hubicka  <jh@suse.cz>
21428
21429         * bitmap.h (bmp_iter_next_bit): New.
21430         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
21431
21432 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
21433             Eric Botcazou  <ebotcazou@adacore.com>
21434
21435         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
21436         computed cost.
21437
21438 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
21439
21440         * config/i386/i386.md (unspec): New define_c_enum.
21441         (unspecv): Ditto.
21442
21443 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
21444
21445         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
21446
21447 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
21448
21449         PR middle-end/44483
21450         * tree-if-conv.c (bb_predicate_s): New struct.
21451         (bb_predicate_p): New.
21452         (bb_has_predicate): New.
21453         (bb_predicate): New.
21454         (set_bb_predicate): New.
21455         (bb_predicate_gimplified_stmts): New.
21456         (set_bb_predicate_gimplified_stmts): New.
21457         (add_bb_predicate_gimplified_stmts): New.
21458         (init_bb_predicate): New.
21459         (free_bb_predicate): New.
21460         (is_predicated): Use bb_predicate.
21461         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
21462         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
21463         before processing their successors.
21464         (clean_predicate_lists): Removed.
21465         (find_phi_replacement_condition): Use bb_predicate.
21466         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
21467         computations.
21468         (insert_gimplified_predicates): New.
21469         (combine_blocks): Call insert_gimplified_predicates.
21470         (tree_if_conversion): Call free_bb_predicate instead of
21471         clean_predicate_lists.
21472
21473 2010-10-11  Paul Brook  <paul@codesourcery.com>
21474
21475         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
21476         * config/arm/arm.c (all_architectures): Change v7e-m default to
21477         cortexm4.
21478         * config/arm/arm-cores.def: Add cortex-m4.
21479         * config/arm/arm-tune.md: Regenerate.
21480
21481 2010-06-11  Jan Hubicka  <jh@suse.cz>
21482
21483         * ipa-pure-const.c (special_builtlin_state): New function.
21484         (check_call): Use it instead of special casign BUILT_IN_RETURN.
21485         (propagate_pure_const): Use it.
21486
21487 2010-06-11  Jan Hubicka  <jh@suse.cz>
21488
21489         * df-problems.c (df_live_scratch): Convert to bitmap_head.
21490         (df_live_alloc): Initialize df_live_scratch when initializing
21491         problem_data.
21492         (df_live_transfer_function): Update uses of df_live_scratch.
21493         (df_live_free): Free problem_data; clear df_live_scratch before
21494         releasing the obstack.
21495         (df_md_free): Free problem data.
21496
21497 2010-06-11  Jan Hubicka  <jh@suse.cz>
21498
21499         * doc/invoke.texi (Wsuggest-attribute): Document.
21500         (Wmissing-noreturn): Remove.
21501         * ipa-pure-const.c (warn_function_noreturn): New function.
21502         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
21503         warn_missing_noreturn.
21504         * common.opt (Wsuggest-attribute=noreturn): New.
21505         * tree-flow.h (warn_function_noreturn): Declare.
21506         * tree-cfg.c (execute_warn_function_noreturn): Use
21507         warn_function_noreturn.
21508         (gate_warn_function_noreturn): New.
21509         (pass_warn_function_noreturn): Update.
21510
21511 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21512
21513         * c-typeck.c (handle_warn_cast_qual): Add loc
21514         parameter. Improve warning message.
21515         (build_c_cast): Pass location to handle_warn_cast_qual.
21516
21517 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
21518
21519         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
21520         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
21521         insn mnemonic.
21522         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
21523
21524 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
21525
21526         Fix bootstap on mips
21527         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
21528         be naming typedefs.
21529
21530 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
21531
21532         * system.h (helper_const_non_const_cast): New inline for
21533         gcc version <= 4.0.
21534         (CONST_CAST2): For gcc version <= 4.0 use
21535         new helper to do const/non-const casting.
21536
21537 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21538
21539         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
21540         * Makefile.in (OBJS-common): Include insn-enums.o.
21541         (insn-enums.o): New rule.
21542         (simple_generated_c): Add insn-enums.c.
21543         (build/genenums.o): New rule.
21544         (genprogmd): Add "enums".
21545         * genconstants.c (print_enum_type): Declare a C string array
21546         for each enum.
21547         * genenums.c: New file.
21548         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
21549         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
21550         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
21551
21552 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21553
21554         * doc/md.texi (define_enum_attr): Document.
21555         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
21556         * read-md.h (lookup_enum_type): Declare.
21557         * read-md.c (lookup_enum_type): New function.
21558         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
21559         * genattrtab.c (attr_desc): Add an enum_name field.
21560         (evaluate_eq_attr): Take the associated attribute as argument.
21561         Get the enum prefix from the enum_name field, if defined.
21562         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
21563         (simplify_test_exp): Pass attr to evaluate_eq_attr.
21564         (add_attr_value): New function, split out from...
21565         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
21566         (write_test_expr): Pass attr to evaluate_eq_attr.
21567         (write_attr_get): Use the enum_name as the enum tag, if defined.
21568         (write_attr_valueq): Use the enum_name as a prefix, if defined.
21569         (find_attr): Initialize enum_name.
21570         (main): Handle DEFINE_ENUM_ATTR.
21571         * gensupport.c (process_rtx): Likewise.
21572         * config/mips/mips.h (mips_tune_attr): Delete.
21573         * config/mips/mips.md (cpu): Use define_attr_enum.
21574
21575 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21576
21577         * doc/md.texi (define_c_enum, define_enum): Document.
21578         * read-md.h (md_constant): Add a parent_enum field.
21579         (enum_value, enum_type): New structures.
21580         (upcase_string, traverse_enum_types): Declare.
21581         * read-md.c (enum_types): New variable.
21582         (upcase_string, add_constant): New functions.
21583         (handle_constants): Don't create the hash table here.
21584         Use add_constant.
21585         (traverse_md_constants): Don't check for a null md_constants.
21586         (decimal_string, handle_enum, traverse_enum_types): New functions.
21587         (read_md_files): Initialize md_constants and md_enums.
21588         * genconstants.c (print_md_constant): Ignore info argument.
21589         Only print constants that belong to no enum.
21590         (print_enum_type): New function.
21591         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
21592         for each defined enum type.
21593         * config/mips/mips.md (processor): New define_enum.
21594         (unspec): New define_c_enum.
21595         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
21596         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
21597         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
21598         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
21599         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
21600         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
21601         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
21602         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
21603         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
21604         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
21605         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
21606         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
21607         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
21608         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
21609         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
21610         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
21611         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
21612         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
21613         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
21614         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
21615         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
21616         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
21617         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
21618         (UNSPEC_RDDSP): Move to mips-dsp.md.
21619         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
21620         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
21621         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
21622         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
21623         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
21624         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
21625         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
21626         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
21627         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
21628         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
21629         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
21630         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
21631         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
21632         Moved to mips-dspr2.md.
21633         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
21634         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
21635         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
21636         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
21637         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
21638         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
21639         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
21640         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
21641         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
21642         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
21643         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
21644         UNSPEC_LOONGSON_PSADBH)
21645         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
21646         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
21647         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
21648         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
21649         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
21650         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
21651         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
21652         (cpu): Update comment.
21653         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
21654         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
21655         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
21656         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
21657         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
21658         UNSPEC_LOONGSON_PCMPEQ)
21659         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
21660         UNSPEC_LOONGSON_PINSR_0)
21661         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
21662         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
21663         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
21664         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
21665         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
21666         UNSPEC_LOONGSON_PSADBH)
21667         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
21668         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
21669         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
21670         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
21671         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
21672         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
21673         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
21674         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
21675         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
21676         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
21677         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
21678         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
21679         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
21680         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
21681         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
21682         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
21683         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
21684         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
21685         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
21686         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
21687         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
21688         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
21689         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
21690         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
21691         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
21692         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
21693         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
21694         (UNSPEC_RDDSP): Moved from mips.md.
21695         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
21696         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
21697         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
21698         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
21699         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
21700         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
21701         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
21702         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
21703         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
21704         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
21705         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
21706         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
21707         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
21708         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
21709         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
21710         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
21711         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
21712         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
21713         (UNSPEC_SCC): Moved from mips.md.
21714         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
21715         "processor_type" to "processor".
21716         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
21717         * config/mips/mips.h (processor_type): Delete.
21718         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
21719         "processor_type" to "processor".
21720
21721 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21722
21723         * configure.ac (tm_include_list): Add insn-constants.h.
21724         * configure: Regenerate.
21725         * Makefile.in (GTM_H): Move insn-constants.h here from...
21726         (TM_H): ...here.
21727         * mkconfig.sh: Remove special handling for insn-constants.h.
21728
21729 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21730
21731         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
21732         (BUILD_MD): ...this new variable.
21733         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
21734         that include the old contents of simple_generated_h and
21735         simple_generated_c.
21736         (simple_generated_h, simple_generated_c): Include them.  Add
21737         insn-constants.h.
21738         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
21739         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
21740         Remove these dependencies from the main rule and include
21741         insn-conditions.md in the command line only if it appears
21742         in the dependency list.
21743         (insn-constants.h, s-constants): Delete.
21744         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
21745         or gensupport.h.
21746         (build/genmddeps.o): Likewise.
21747         (genprogrtl): New variable that contains everything from genprogmd
21748         except mddeps and constants.
21749         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
21750         depend on $(BUILD_MD)
21751         (genprog): New variable.  Make these programs depend on
21752         $(BUILD_ERRORS).
21753         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
21754         (main): Use read_md_files instead of init_rtx_reader_args.
21755         * genconstants.c: As for genmddeps.c.
21756         * read-md.h (read_skip_construct): Declare.
21757         * read-md.c (read_skip_construct): New function.
21758         (handle_file): Allow a null handle_directive, skipping the
21759         construct if so.
21760         (parse_include): Update the comment accordingly.
21761
21762 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21763
21764         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
21765         * genmddeps.c: Include read-md.h.
21766         (main): Call init_rtx_reader_args instead of init_md_reader_args.
21767         * genattr.c (main): Likewise.
21768         * genattrtab.c (main): Likewise.
21769         * genautomata.c (main): Likewise.
21770         * gencodes.c (main): Likewise.
21771         * genconditions.c (main): Likewise.
21772         * genconfig.c (main): Likewise.
21773         * genconstants.c (main): Likewise.
21774         * genemit.c (main): Likewise.
21775         * genextract.c (main): Likewise.
21776         * genflags.c (main): Likewise.
21777         * genopinit.c (main): Likewise.
21778         * genoutput.c (main): Likewise.
21779         * genpeep.c (main): Likewise.
21780         * genrecog.c (main): Likewise.
21781         * genpreds.c (main): Likewise.
21782         * gensupport.h (in_fname): Move to read-md.h.
21783         (init_md_reader_args_cb): Rename to...
21784         (init_rtx_reader_args_cb): ...this and return a bool.
21785         (init_md_reader_args): Rename to...
21786         (init_rtx_reader_args): ...this and return a bool.
21787         (include_callback): Move to read-md.h.
21788         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
21789         (file_name_list, first_dir_md_include): Move to read-md.c
21790         (first_bracket_include): Delete unused variable.
21791         (last_dir_md_include): Move to read-md.c.
21792         (process_include): Delete, moving code to read-md.c:handle_include.
21793         (process_rtx): Don't handle INCLUDE.
21794         (save_string): Delete.
21795         (rtx_handle_directive): New function.
21796         (init_md_reader_args_cb): Rename to...
21797         (init_rtx_reader_args_cb): ...this and return a boolean success value.
21798         Use read_md_args.
21799         (init_md_reader_args): Rename to...
21800         (init_rtx_reader_args): ...this and return a boolean success value.
21801         * rtl.def (INCLUDE): Delete.
21802         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
21803         argument.
21804         * read-rtl.c (read_conditions): Don't gobble ')' here.
21805         (read_mapping): Likewise.
21806         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
21807         Handle top-level non-rtx constructs here rather than in read_rtx_1.
21808         Store the whole queue in *X.  Remove call to init_md_reader.
21809         (read_rtx_1): Rename to...
21810         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
21811         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
21812         here.
21813         (read_nested_rtx): New function.  Handle (nil) here rather than
21814         in read_rtx_code.
21815         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
21816         gobble ')' here.
21817         * read-md.h (directive_handler_t): New type.
21818         (in_fname, include_callback): Moved from read-md.h.
21819         (read_constants, init_md_reader): Delete.
21820         (read_md_files): Declare.
21821         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
21822         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
21823         from gensupport.c.
21824         (read_constants): Rename to...
21825         (handle_constants): ...this.  Don't gobble ')' here.
21826         (handle_include, handle_file, handle_toplevel_file)
21827         (parse_include): New functions, mostly taken from gensupport.c.
21828         (init_md_reader): Subsume into...
21829         (read_md_files): ...this new function.
21830
21831 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21832
21833         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
21834         (unread_char): Decrement read_md_lineno after putting back '\n'.
21835         * read-md.c (fatal_with_file_and_line): Push back any characters
21836         that we decide not to add to the context.
21837         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
21838         fatal_expected_char in cases where '/' ends a line (for example).
21839         (read_name): Don't increment read_md_lineno here.
21840         (read_escape): Likewise.
21841         (read_quoted_string): Likewise.
21842         (read_braced_string): Likewise.
21843
21844 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21845
21846         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
21847         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
21848         * genconstants.c: Include read-md.h.
21849         * read-rtl.c (md_constants): Move to read-md.c.
21850         (md_name): Move to read-md.h.
21851         (initialize_iterators): Use leading_string_hash instead of def_hash
21852         and leading_string_eq_p instead of def_name_eq_p.
21853         (read_name): Move to read-md.c.
21854         (def_hash, def_name_eq_p): Delete.
21855         (read_constants, traverse_md_constants): Move to read-md.c.
21856         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
21857         * read-md.h: Include hashtab.h.
21858         (md_name): Moved from read-rtl.c.
21859         (md_constant): Moved from read-md.h.
21860         (leading_string_hash, leading_string_eq_p, read_name)
21861         (read_constants, traverse_md_constants): Declare.
21862         * read-md.c (md_constants): Moved from read-rtl.c.
21863         (leading_string_hash, leading_string_eq_p): New functions.
21864         (read_name, read_constants, traverse_md_constants): Moved from
21865         read-rtl.c.
21866
21867 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21868
21869         * read-rtl.c (md_name): New structure.
21870         (read_name): Take an md_name instead of a buffer pointer.
21871         Use the "string" field instead of strcpy when expanding constants.
21872         (read_constants): Remove the tmp_char argument.  Update the calls
21873         to read_name, using two local name buffers instead of the tmp_char
21874         argument.  Merge the constant-creation code.
21875         (read_conditions): Remove the tmp_char argument.  Update the calls
21876         to read_name, using a local name buffer instead of the tmp_char
21877         argument.
21878         (read_mapping): Replace tmp_char variable with a local name buffer.
21879         Update the calls to read_name.
21880         (read_rtx_1): Likewise.  Update the calls to read_constants and
21881         read_conditions.
21882
21883 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21884
21885         * Makefile.in (build/read-md.o): Depend on errors.h.
21886         * read-md.h (error_with_line): Declare.
21887         * read-md.c: Include errors.h.
21888         (message_with_line_1): New function, extracted from...
21889         (message_with_line): ...here.
21890         (error_with_line): New function.
21891         * genattrtab.c: If a call to message_with_line is followed by
21892         "have_error = 1;", replace both statements with a call to
21893         error_with_line.
21894         * genoutput.c: Likewise.
21895         * genpreds.c: Likewise.
21896         * genrecog.c: If a call to message_with_line is followed by
21897         "error_count++;", replace both statements with a call to
21898         error_with_line.
21899         (errorcount): Delete.
21900         (main): Don't check it.
21901         * gensupport.c: If a call to message_with_line is followed by
21902         "errors = 1;", replace both statements with a call to error_with_line.
21903         (errors): Delete.
21904         (process_define_cond_exec): Check have_error instead of errors.
21905         (init_md_reader_args_cb): Likewise.  Don't set errors.
21906
21907 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21908
21909         * read-md.h (read_md_file): Declare.
21910         (read_char, unread_char): New functions.
21911         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
21912         (read_quoted_string, read_string): Remove FILE * argument.
21913         * read-md.c (read_md_file): New variable.
21914         (read_md_filename, read_md_lineno): Update comments and remove
21915         unnecessary initialization.
21916         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
21917         (read_escape, read_quoted_string, read_braced_string, read_string):
21918         Remove FILE * argument.  Update calls accordingly, using read_char
21919         and unread_char instead of getc and ungetc.
21920         * rtl.h (read_rtx): Remove FILE * argument.
21921         * read-rtl.c (iterator_group): Remove FILE * argument from
21922         "find_builtin".
21923         (iterator_traverse_data): Remove "infile" field.
21924         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
21925         (add_mapping, read_name, read_constants, read_conditions)
21926         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
21927         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
21928         Remove file arguments from all calls, using read_char and unread_char
21929         instead of getc and ungetc.
21930         * gensupport.c (process_include): Preserve read_md_file around
21931         the include.  Set read_md_file to the handle of the included file.
21932         Update call to read_rtx.
21933         (init_md_reader_args_cb): Set read_md_file to the handle of the file
21934         and remove local FILE *.  Update calls to read_rtx.
21935
21936 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21937
21938         * read-md.h (read_rtx_lineno): Rename to...
21939         (read_md_lineno): ...this.
21940         (read_rtx_filename): Rename to...
21941         (read_md_filename): ...this.
21942         (copy_rtx_ptr_loc): Rename to...
21943         (copy_md_ptr_loc): ...this.
21944         (print_rtx_ptr_loc): Rename to...
21945         (print_md_ptr_loc): ...this.
21946         * read-md.c: Likewise.  Update references after renaming.
21947         (string_obstack): Replace RTL with MD in comment.
21948         (set_rtx_ptr_loc): Rename to...
21949         (set_md_ptr_loc): ...this.
21950         (get_rtx_ptr_loc): Rename to...
21951         (get_md_ptr_loc): ...this.
21952         * genconditions.c: Update references after renaming.
21953         * genemit.c: Likewise.
21954         * genoutput.c: Likewise.
21955         * genpreds.c: Likewise.
21956         * gensupport.c: Likewise.
21957         * read-rtl.c: Likewise.
21958
21959 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21960
21961         * Makefile.in (READ_MD_H): New variable.
21962         (BUILD_RTL): Add build/read-md.o.
21963         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
21964         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
21965         (build/genattrtab.o, build/genconditions.o build/genemit.o)
21966         (build/genextract.o, build/genflags.o, build/genoutput.o)
21967         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
21968         (build/read-md.o): New rule.
21969         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
21970         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
21971         * coretypes.h: ...here.
21972         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
21973         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
21974         * genattr.c: Include read-md.h.
21975         * genattrtab.c: Likewise.
21976         * genconditions.c: Likewise.
21977         * genemit.c: Likewise.
21978         * genextract.c: Likewise.
21979         * genflags.c: Likewise.
21980         * genoutput.c: Likewise.
21981         * genpreds.c: Likewise.
21982         * genrecog.c: Likewise.
21983         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
21984         (join_c_conditions, print_c_condition, read_rtx_filename)
21985         (read_rtx_lineno): Move to read-md.h.
21986         * read-rtl.c: Include read-md.h.
21987         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
21988         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
21989         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
21990         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
21991         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
21992         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
21993         (read_braced_string, read_string): Move to read-md.c.
21994         (read_rtx): Move some initialization to init_md_reader and call
21995         init_md_reader here.
21996         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
21997         Move to read-md.h.
21998         * gensupport.c: Include read-md.h.
21999         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
22000         * read-md.h, read-md.c: New files.
22001
22002 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
22003
22004         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22005         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22006         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
22007         * config/moxie/moxie.c (moxie_function_value): Make static.
22008         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
22009         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22010
22011 2010-06-10  Martin Jambor  <mjambor@suse.cz>
22012
22013         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
22014         * dbgcnt.def (tree_sra): New counter.
22015         * tree-sra.c: Include dbgcnt.h.
22016         (gate_intra_sra): Check tree_sra debug counter.
22017
22018 2010-06-10  Martin Jambor  <mjambor@suse.cz>
22019
22020         PR tree-optimization/44258
22021         * tree-sra.c (build_access_subtree): Return false iff there is a
22022         partial overlap.
22023         (build_access_trees): Likewise.
22024         (analyze_all_variable_accesses): Disqualify candidates if
22025         build_access_trees returns true for them.
22026
22027 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
22028
22029         PR debug/41371
22030         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
22031         tail-recurse into canonical node.  Fast-forward over
22032         non-canonical VALUEs.
22033
22034 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
22035
22036         PR boostrap/44470
22037         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
22038         (*addsi_1_zext) <TYPE_LEA>: Likewise.
22039         (add lea splitter): Likewise.
22040         (add_zext lea splitter): Likewise.
22041
22042 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
22043
22044         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
22045
22046 2010-06-10  Jan Hubicka  <jh@suse.cz>
22047
22048         * df-problems.c (df_live_problem_data): Add live_bitmaps.
22049         (df_live_alloc): Initialize problem data and live_osbtacks.
22050         (df_live_finalize): Remove obstack, problem data; do not
22051         clear all bitmaps.
22052         (df_live_top_dump, df_live_bottom_dump): Do not dump old
22053         data when not allocated.
22054         (df_live_verify_solution_start): Do not allocate problem data.
22055         (df_live_verify_solution_end): Check if out is allocated.
22056         (struct df_md_problem_data): New structure.
22057         (df_md_alloc): Allocate problem data.
22058         (df_md_free): Free problem data; do not clear bitmaps.
22059
22060 2010-06-10  Jan Beulich  <jbeulich@novell.com>
22061
22062         PR bootstrap/37304
22063         * configure.ac: Replace $() with ${} when intending to expand
22064         variables rather than invoking commands.
22065         * configure: Re-generate.
22066
22067 2010-06-10  Jan Hubicka  <jh@suse.cz>
22068
22069         PR rtl-optimization/44460
22070         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
22071         TYPE_NEEDS_CONSTRUCTING sanity check.
22072
22073 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
22074
22075         * doc/include/fdl.texi: Move to GFDL version 1.3.
22076
22077         * doc/cpp.texi: Move to GFDL version 1.3.
22078         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
22079         * doc/gccint.texi: Move to GFDL version 1.3.
22080         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
22081         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
22082         * doc/invoke.texi: Move to GFDL version 1.3.
22083
22084 2010-06-09  Jan Hubicka  <jh@suse.cz>
22085
22086         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
22087         Break out from ...
22088         (propagate) ... here; swap the order.
22089
22090 2010-06-09  Jan Hubicka  <jh@suse.cz>
22091
22092         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
22093         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
22094         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
22095         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
22096
22097 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
22098
22099         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
22100         Do not the gather memory reference in the outer loop if the step
22101         is not a constant.
22102
22103 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
22104
22105         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
22106         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
22107         8 to 4.  Minor change of the related comments.
22108
22109 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
22110
22111         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
22112         the scev analysis when the variable is not used outside the loop
22113         in a close phi node: call compute_overall_effect_of_inner_loop.
22114
22115 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
22116
22117         * graphite-sese-to-poly.c (single_pred_cond): Renamed
22118         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
22119         (build_sese_conditions_before): Renamed call to single_pred_cond.
22120         (build_sese_conditions_after): Same.
22121
22122 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
22123
22124         * graphite-poly.h: Fix comments and indentation.
22125         * graphite-sese-to-poly.c: Same.
22126         (build_sese_conditions_before): Compute stmt and gbb only when needed.
22127         * tree-chrec.c: Fix comments and indentation.
22128         (tree-ssa-loop-niter.c): Same.
22129
22130 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
22131
22132         PR rtl-optimization/42461
22133         * dce.c (deletable_insn_p): Return true for const or pure calls again.
22134         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
22135
22136 2010-06-09  Jan Hubicka  <jh@suse.cz>
22137
22138         * bitmap.c (bitmap_and): Walk array forward.
22139         (bitmap_and_compl_into): Likewise.
22140         (bitmap_xor): Likewise.
22141         (bitmap_xor_into):  Likewise.
22142         (bitmap_equal_p): Likewise.
22143         (bitmap_intersect_p): Likewise.
22144         (bitmap_intersect_compl_p): Likewise.
22145         (bitmap_ior_and_into): Likewise.
22146         (bitmap_elt_copy): Likewise.
22147         (bitmap_and_compl): Likewise.
22148         (bitmap_elt_ior): Likewise.
22149
22150 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
22151
22152         * opts-common.c (prune_options): Ensure replacement argv array
22153         is correctly terminated by a NULL entry.
22154
22155 2010-06-09  Jan Hubicka  <jh@suse.cz>
22156
22157         * cgraph.h (varpool_first_static_initializer,
22158         varpool_next_static_initializer): Make checking only when
22159         checking enabled.
22160         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
22161         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
22162         gcc_assert to gcc_checking_assert.
22163         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
22164         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
22165         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
22166         op_iter_init_phiuse, op_iter_init_phidef,
22167         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
22168         gcc_checking_assert.
22169         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
22170         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
22171         partition_is_global, live_on_entry, live_on_exit,
22172         live_merge_and_clear): Likewise.
22173         * system.h (gcc_checking_assert): New macro.
22174         * gimple.h (set_bb_seq): Use gcc_checking_assert.
22175
22176 2010-06-09  Jason Merrill  <jason@redhat.com>
22177
22178         * Makefile.in (TAGS): Collect tags info from c-family.
22179
22180 2010-06-09  Jan Hubicka  <jh@suse.cz>
22181
22182         * gimple.h (gcc_gimple_checking_assert): New macro.
22183         (gimple_set_def_ops, gimple_set_use_ops,
22184         gimple_set_vuse, gimple_set_vdef,
22185         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
22186         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
22187         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
22188         gimple_asm_output_op, gimple_asm_output_op_ptr,
22189         gimple_asm_set_output_op, gimple_asm_clobber_op,
22190         gimple_asm_set_clobber_op, gimple_asm_label_op,
22191         gimple_asm_set_label_op, gimple_try_set_kind,
22192         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
22193         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
22194         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
22195         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
22196         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
22197         gimple_omp_for_set_initial, gimple_omp_for_final,
22198         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
22199         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
22200         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
22201         conditional with ENABLE_GIMPLE_CHECKING.
22202         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
22203
22204 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
22205
22206         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
22207         (get_computation_cost_at): Use it.
22208         (determine_use_iv_cost_condition): Likewise.
22209         (determine_iv_cost): Likewise.
22210
22211 2010-06-09  Richard Guenther  <rguenther@suse.de>
22212
22213         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
22214         replace constants.
22215
22216 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
22217
22218         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
22219
22220 2010-06-09  Martin Jambor  <mjambor@suse.cz>
22221
22222         PR tree-optimization/44423
22223         * tree-sra.c (dump_access): Dump also grp_assignment_read.
22224         (analyze_access_subtree): Pass negative allow_replacements to children
22225         if the current type is scalar.
22226
22227 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
22228
22229         PR testsuite/42843
22230         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
22231         * doc/plugins.texi (Plugin license check): Update information
22232         on type of plugin_is_GPL_compatible.
22233         * Makefile.in (PLUGINCC): Define as $(COMPILER).
22234         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
22235
22236 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
22237
22238         * config/arm/arm.c (thumb2_reorg): New function.
22239         (arm_reorg): Call it.
22240         * config/arm/thumb2.md (define_peephole2 for flag clobbering
22241         arithmetic operations): Delete.
22242
22243 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
22244
22245         PR target/44067
22246         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
22247         e500v2 target.
22248
22249 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
22250
22251         PR plugins/44459
22252         * gcc-plugin.h: Encapsulate all declarations in extern "C".
22253
22254 2010-06-08  Jan Hubicka  <jh@suse.cz>
22255
22256         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
22257         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
22258
22259 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
22260
22261         PR tree-optimization/39874
22262         PR middle-end/28685
22263         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
22264         Declare.
22265         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
22266         same_bool_result_p): New.
22267         (and_var_with_comparison, and_var_with_comparison_1,
22268         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
22269         (or_var_with_comparison, or_var_with_comparison_1,
22270         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
22271         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
22272         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
22273         of combine_comparisons.
22274         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
22275
22276 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
22277
22278         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22279         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22280         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
22281         pdp11_function_value_regno_p): New functions.
22282         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22283         TARGET_FUNCTION_VALUE_REGNO_P): Define.
22284
22285 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
22286
22287         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
22288         Thumb-2 in the MINUS case.
22289
22290 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22291
22292         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
22293
22294         * doc/gty.texi (GTY Options): Document typed GC allocation and
22295         variable_size GTY option.
22296
22297         * ggc-internal.h: New.
22298
22299         * ggc.h: Update copyright year.
22300         (digit_string): Move to stringpool.c.
22301         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
22302         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
22303         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
22304         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
22305         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
22306         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
22307         (ggc_force_collect, ggc_get_size, ggc_statistics)
22308         (ggc_print_common_statistics): Move to ggc-internal.h.
22309         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
22310         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
22311         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
22312         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
22313         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
22314         (ggc_alloc_zone_pass_stat): Remove.
22315         (ggc_internal_alloc_stat, ggc_internal_alloc)
22316         (ggc_internal_cleared_alloc_stat): New.
22317         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
22318         (ggc_internal_vec_alloc_stat)
22319         (ggc_internal_cleared_vec_alloc_stat)
22320         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
22321         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
22322         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
22323         (ggc_cleared_alloc_ptr_array_two_args): New.
22324         (htab_create_ggc, splay_tree_new_ggc): Redefine.
22325         (ggc_splay_alloc): Change the type of the first argument to
22326         enum gt_types_enum.
22327         (ggc_alloc_string): Make macro.
22328         (ggc_alloc_string_stat): New.
22329         (ggc_strdup): Redefine.
22330         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
22331         (ggc_alloc_rtvec_sized): New.
22332         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
22333         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
22334         (ggc_internal_cleared_alloc_zone_stat)
22335         (ggc_internal_zone_alloc_stat)
22336         (ggc_internal_zone_cleared_alloc_stat)
22337         (ggc_internal_zone_vec_alloc_stat)
22338         (ggc_alloc_zone_rtx_def_stat)
22339         (ggc_alloc_zone_tree_node_stat)
22340         (ggc_alloc_zone_cleared_tree_node_stat)
22341         (ggc_alloc_cleared_gimple_statement_d_stat): New.
22342
22343         * ggc-common.c: Include ggc-internal.h.
22344         (ggc_internal_cleared_alloc_stat): Rename from
22345         ggc_alloc_cleared_stat.
22346         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
22347         (ggc_calloc): Remove.
22348         (ggc_cleared_alloc_htab_ignore_args): New.
22349         (ggc_cleared_alloc_ptr_array_two_args): New.
22350         (ggc_splay_alloc): Add obj_type parameter.
22351         (init_ggc_heuristics): Formatting fixes.
22352
22353         * ggc-none.c: Update copyright year.
22354         (ggc_alloc_stat): Rename to ggc_alloc_stat.
22355         (ggc_alloc_cleared_stat): Rename to
22356         ggc_internal_cleared_alloc_stat.
22357         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
22358
22359         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
22360         Remove references to ggc_alloc in comments.
22361         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
22362         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
22363         (new_ggc_zone, destroy_ggc_zone): Remove.
22364         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
22365
22366         * ggc-zone.c: Include ggc-internal.h.  Remove references to
22367         ggc_alloc in comments.
22368         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
22369         (ggc_internal_alloc_zone_pass_stat): New.
22370         (ggc_internal_cleared_alloc_zone_stat): New.
22371         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
22372         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
22373         (new_ggc_zone, destroy_ggc_zone): Remove.
22374
22375         * stringpool.c: Update copyright year.  Include ggc-internal.h
22376         (digit_vector): Make static.
22377         (digit_string): Moved from ggc.h.
22378         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
22379         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
22380
22381         * Makefile.in (GGC_INTERNAL_H): New.
22382         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
22383         $(GGC_INTERNAL_H) to dependencies.
22384
22385         * gentype.c: Update copyright year.
22386         (walk_type): Accept variable_size GTY option.
22387         (USED_BY_TYPED_GC_P): New macro.
22388         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
22389         whitespace at the end of strings.
22390         (get_type_specifier, variable_size_p): New functions.
22391         (alloc_quantity, alloc_zone): New enums.
22392         (write_typed_alloc_def): New function.
22393         (write_typed_struct_alloc_def): Likewise.
22394         (write_typed_typed_typedef_alloc_def): Likewise.
22395         (write_typed_alloc_defns): Likewise.
22396         (output_typename, write_splay_tree_allocator_def): Likewise.
22397         (write_splay_tree_allocators): Likewise.
22398         (main): Call write_typed_alloc_defns and
22399         write_splay_tree_allocators.
22400
22401         * lto-streamer.h (lto_file_decl_data_ptr): New.
22402
22403         * passes.c (order): Define using cgraph_node_ptr.
22404
22405         * strinpool.c (struct string_pool_data): Declare nested_ptr using
22406         ht_identifier_ptr.
22407
22408         * gimple.h (union gimple_statement_d): Likewise.
22409
22410         * rtl.h (struct rtx_def): Likewise.
22411         (struct rtvec_def): Likewise.
22412
22413         * tree.h (union tree_node): Likewise.
22414
22415         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
22416
22417         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
22418
22419         * tree-scalar-evolution.c (scev_initialize): Likewise.
22420
22421         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
22422
22423         * dwarf2asm.c (dw2_force_const_mem): Likewise.
22424
22425         * omp-low.c (lower_omp_critical): Likewise.
22426
22427         * bitmap.h (struct bitmap_head_def): Update comment to not
22428         reference ggc_alloc.
22429
22430         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
22431
22432         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
22433
22434         * ipa-prop.c (duplicate_ggc_array): Rename to
22435         duplicate_ipa_jump_func_array.  Use typed GC allocation.
22436         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
22437
22438         * gimple.c (gimple_alloc_stat): Use
22439         ggc_alloc_cleared_gimple_statement_d_stat.
22440
22441         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
22442
22443         * tree.c (make_node_stat): Use
22444         ggc_alloc_zone_cleared_tree_node_stat.
22445         (make_tree_vec_stat): Likewise.
22446         (build_vl_exp_stat): Likewise.
22447         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
22448         (make_tree_binfo_stat): Likewise.
22449         (tree_cons_stat): Likewise.
22450
22451         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
22452         (shallow_copy_rtx_stat): Likewise.
22453         (make_node_stat): Likewise.
22454
22455         * lto-symtab.c: Fix comment.
22456
22457         * tree-cfg.c (create_bb): Update comment to not reference
22458         ggc_alloc_cleared.
22459         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
22460
22461         * varpool.c (varpool_node): Use typed GC allocation.
22462         (varpool_extra_name_alias): Likewise.
22463
22464         * varasm.c (emutls_decl): Likewise.
22465         (get_unnamed_section): Likewise.
22466         (get_noswitch_section): Likewise.
22467         (get_section): Likewise.
22468         (get_block_for_section): Likewise.
22469         (build_constant_desc): Likewise.
22470         (create_constant_pool): Likewise.
22471         (force_const_mem): Likewise.
22472
22473         * tree.c (build_vl_exp_stat): Likewise.
22474         (build_real): Likewise.
22475         (build_string): Likewise.
22476         (decl_debug_expr_insert): Likewise.
22477         (decl_value_expr_insert): Likewise.
22478         (type_hash_add): Likewise.
22479         (build_omp_clause): Likewise.
22480
22481         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
22482
22483         * tree-ssa.c (init_tree_ssa): Likewise.
22484
22485         * tree-ssa-structalias.c (heapvar_insert): Likewise.
22486
22487         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
22488
22489         * tree-ssa-loop-niter.c (record_estimate): Likewise.
22490
22491         * tree-ssa-alias.c (get_ptr_info): Likewise.
22492
22493         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
22494
22495         * tree-phinodes.c (allocate_phi_node): Likewise.
22496
22497         * tree-iterator.c (tsi_link_before): Likewise.
22498         (tsi_link_after): Likewise.
22499
22500         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
22501
22502         * tree-dfa.c (create_var_ann): Likewise.
22503
22504         * tree-cfg.c (create_bb): Likewise.
22505
22506         * toplev.c (alloc_for_identifier_to_locale): Likewise.
22507         (general_init): Likewise.
22508
22509         * stringpool.c (stringpool_ggc_alloc): Likewise.
22510         (gt_pch_save_stringpool): Likewise.
22511
22512         * sese.c (if_region_set_false_region): Likewise.
22513
22514         * passes.c (do_per_function_toporder): Likewise.
22515
22516         * optabs.c (set_optab_libfunc): Likewise.
22517         (set_conv_libfunc): Likewise.
22518
22519         * lto-symtab.c (lto_symtab_register_decl): Likewise.
22520
22521         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
22522         (input_eh_region): Likewise.
22523         (input_eh_lp): Likewise.
22524         (make_new_block): Likewise.
22525         (unpack_ts_real_cst_value_fields): Likewise.
22526
22527         * lto-section-in.c (lto_new_in_decl_state): Likewise.
22528
22529         * lto-cgraph.c (input_node_opt_summary): Likewise.
22530
22531         * loop-init.c (loop_optimizer_init): Likewise.
22532
22533         * lambda.h (lambda_vector_new): Likewise.
22534
22535         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
22536
22537         * ira.c (update_equiv_regs): Likewise.
22538
22539         * ipa.c (cgraph_node_set_new): Likewise.
22540         (cgraph_node_set_add): Likewise.
22541         (varpool_node_set_new): Likewise.
22542         (varpool_node_set_add): Likewise.
22543
22544         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
22545         (duplicate_ipa_jump_func_array): Likewise.
22546         (ipa_read_node_info): Likewise.
22547
22548         * ipa-cp.c (ipcp_create_replace_map): Likewise.
22549
22550         * integrate.c (get_hard_reg_initial_val): Likewise.
22551
22552         * gimple.c (gimple_alloc_stat): Likewise.
22553         (gimple_build_omp_for): Likewise.
22554         (gimple_seq_alloc): Likewise.
22555         (gimple_copy): Likewise.
22556
22557         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
22558         (gsi_insert_after_without_update): Likewise.
22559
22560         * function.c (add_frame_space): Likewise.
22561         (insert_temp_slot_address): Likewise.
22562         (assign_stack_temp_for_type): Likewise.
22563         (allocate_struct_function): Likewise.
22564         (types_used_by_var_decl_insert): Likewise.
22565
22566         * except.c (init_eh_for_function): Likewise.
22567         (gen_eh_region): Likewise.
22568         (gen_eh_region_catch): Likewise.
22569         (gen_eh_landing_pad): Likewise.
22570         (add_call_site): Likewise.
22571
22572         * emit-rtl.c (get_mem_attrs): Likewise.
22573         (get_reg_attrs): Likewise.
22574         (start_sequence): Likewise.
22575         (init_emit): Likewise.
22576
22577         * dwarf2out.c (new_cfi): Likewise.
22578         (queue_reg_save): Likewise.
22579         (dwarf2out_frame_init): Likewise.
22580         (new_loc_descr): Likewise.
22581         (find_AT_string): Likewise.
22582         (new_die): Likewise.
22583         (add_var_loc_to_decl): Likewise.
22584         (clone_die): Likewise.
22585         (clone_as_declaration): Likewise.
22586         (break_out_comdat_types): Likewise.
22587         (new_loc_list): Likewise.
22588         (loc_descriptor): Likewise.
22589         (add_loc_descr_to_each): Likewise.
22590         (add_const_value_attribute): Likewise.
22591         (tree_add_const_value_attribute): Likewise.
22592         (add_comp_dir_attribute): Likewise.
22593         (add_name_and_src_coords_attributes): Likewise.
22594         (lookup_filename): Likewise.
22595         (store_vcall_insn): Likewise.
22596         (dwarf2out_init): Likewise.
22597
22598         * dbxout.c (dbxout_init): Likewise.
22599
22600         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
22601
22602         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
22603
22604         * config/score/score7.c (score7_output_external): Likewise.
22605
22606         * config/score/score3.c (score3_output_external): Likewise.
22607
22608         * config/s390/s390.c (s390_init_machine_status): Likewise.
22609
22610         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
22611         (rs6000_init_machine_status): Likewise.
22612         (output_toc): Likewise.
22613
22614         * config/pa/pa.c (pa_init_machine_status): Likewise.
22615         (get_deferred_plabel): Likewise.
22616
22617         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
22618
22619         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
22620
22621         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
22622
22623         * config/mep/mep.c (mep_init_machine_status): Likewise.
22624         (mep_note_pragma_flag): Likewise.
22625
22626         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
22627
22628         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
22629
22630         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
22631
22632         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
22633         (i386_pe_maybe_record_exported_symbol): Likewise.
22634
22635         * config/i386/i386.c (get_dllimport_decl): Likewise.
22636         (ix86_init_machine_status): Likewise.
22637         (assign_386_stack_local): Likewise.
22638
22639         * config/frv/frv.c (frv_init_machine_status): Likewise.
22640
22641         * config/darwin.c (machopic_indirection_name): Likewise.
22642
22643         * config/cris/cris.c (cris_init_machine_status): Likewise.
22644
22645         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
22646
22647         * config/avr/avr.c (avr_init_machine_status): Likewise.
22648
22649         * config/arm/arm.c (arm_init_machine_status): Likewise.
22650
22651         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
22652         (alpha_need_linkage): Likewise.
22653         (alpha_use_linkage): Likewise.
22654
22655         * cgraph.c (cgraph_allocate_node): Likewise.
22656         (cgraph_create_edge_1): Likewise.
22657         (cgraph_create_indirect_edge): Likewise.
22658         (cgraph_add_asm_node): Likewise.
22659
22660         * cfgrtl.c (init_rtl_bb_info): Likewise.
22661
22662         * cfgloop.c (alloc_loop): Likewise.
22663         (rescan_loop_exit): Likewise.
22664
22665         * cfg.c (init_flow): Likewise.
22666         (alloc_block): Likewise.
22667         (unchecked_make_edge): Likewise.
22668
22669         * c-parser.c (c_parse_init): Likewise.
22670         (c_parse_file): Likewise.
22671
22672         * c-decl.c (bind): Likewise.
22673         (record_inline_static): Likewise.
22674         (push_scope): Likewise.
22675         (make_label): Likewise.
22676         (lookup_label_for_goto): Likewise.
22677         (finish_struct): Likewise.
22678         (finish_enum): Likewise.
22679         (c_push_function_context): Likewise.
22680
22681         * bitmap.c (bitmap_element_allocate): Likewise.
22682         (bitmap_gc_alloc_stat): Likewise.
22683
22684         * alias.c (record_alias_subset): Likewise.
22685         (init_alias_analysis): Likewise.
22686
22687 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
22688
22689         * fold-const.c (fold_comparison): Remove redundant parenthesis.
22690         * tree-inline.c (expand_call_inline): Pass translated return value of
22691         cgraph_inline_failed_string to diagnostic function.
22692
22693 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
22694             Shujing Zhao  <pearly.zhao@oracle.com>
22695
22696         PR c/37724
22697         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
22698         implicit bad conversions is initialization.
22699         (error_init): Use gmsgid instead of msgid for argument name and change
22700         the call for error.
22701         (pedwarn_init): Use gmsgid instead of msgid for argument name and
22702         change the call for pedwarn.
22703         (warning_init): Use gmsgid instead of msgid for argument name and
22704         change the call for warning.
22705
22706 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
22707
22708         * config/mips/mips-protos.h (mips_print_operand): Delete.
22709         (mips_print_operand_address): Delete.
22710         * config/mips/mips.h (mips_print_operand_punct): Delete.
22711         (PRINT_OPERAND): Delete.
22712         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22713         (PRINT_OPERAND_ADDRESS): Delete.
22714         * config/mips/mips.c (mips_print_operand_punct): Make static.
22715         (mips_print_operand_address): Make static.
22716         (mips_print_operand): Make static.  Call
22717         mips_print_operand_punct_valid_p.
22718         (mips_print_operand_punct_valid_p): New function.
22719         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22720         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22721
22722 2010-06-07  Jan Hubicka  <jh@suse.cz>
22723
22724         PR middle-end/44454
22725         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
22726         are allocated.
22727
22728 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
22729
22730         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
22731         name of RECORD.
22732
22733 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22734
22735         * doc/sourcebuild.texi (Effective-Target Keywords, Other
22736         attributes): Document gas.
22737
22738 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
22739
22740         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
22741         <TYPE_LEA>: Split instruction.
22742         <default>: Remove alternative 2 handling.
22743         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
22744         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
22745         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
22746
22747         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
22748         (ashift_zext lea splitter): Use DImode for multiplication.
22749
22750         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
22751         to generate addition.
22752
22753 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
22754
22755         * common.opt (fira-verbose): Use Var.
22756         (fpcc-struct-return): Use Init instead of VarExists.
22757         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
22758         toplev.c.
22759         * flags.h (flag_signed_char, flag_short_enums,
22760         flag_pcc_struct_return, flag_ira_verbose,
22761         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
22762         * toplev.c (flag_detailed_statistics, flag_signed_char,
22763         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
22764         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
22765         * toplev.h (flag_crossjumping, flag_if_conversion,
22766         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
22767         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
22768         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
22769         flag_cprop_registers, time_report, flag_ira_loop_pressure,
22770         flag_ira_coalesce, flag_ira_move_spills,
22771         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
22772
22773 2010-06-07  Jan Hubicka  <jh@suse.cz>
22774
22775         * df-core.c (df_analyze_problem): Do verification after allocation.
22776
22777         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
22778         (df_lr_alloc): Initialize problem data; move bitmaps to
22779         lr_bitmaps obstack.
22780         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
22781         (df_lr_verify_solution_start): Do not initialize problem data;
22782         allocate bitmaps in lr_bitmaps.
22783         (df_lr_verify_solution_end): Do not free problem data.
22784
22785 2010-06-07  Jan Hubicka  <jh@suse.cz>
22786
22787         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
22788         if caller is noreturn.
22789         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
22790         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
22791         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
22792         * ipa-pure-const.c (check_decl): Add IPA parameter.
22793         (state_from_flags): New function.
22794         (better_state, worse_state): New functions.
22795         (check_call): When in IPA mode, do not care about callees.
22796         (check_load, check_store): Update.
22797         (check_ipa_load, check_ipa_store): New.
22798         (check_stmt): When in IPA mode, use IPA checkers.
22799         (analyze_function): Use state_from_flags.
22800         (propagate): Check indirect edges and references.
22801
22802 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
22803
22804         PR rtl-optimization/44404
22805         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
22806         of count_occurrences to see if it's safe to modify mem_insn.
22807
22808 2010-06-07  Richard Guenther  <rguenther@suse.de>
22809
22810         * gimplify.c (gimplify_cleanup_point_expr): For empty body
22811         and EH-only cleanup drop the cleanup instead of inserting it
22812         unconditionally.
22813
22814 2010-06-07  Ira Rosen  <irar@il.ibm.com>
22815
22816         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
22817         documentation.
22818         * targhooks.c (default_builtin_vectorization_cost): New function.
22819         * targhooks.h (default_builtin_vectorization_cost): Declare.
22820         * target.h (enum vect_cost_for_stmt): Define.
22821         (builtin_vectorization_cost): Change argument and comment.
22822         * tree-vectorizer.h: Remove cost model macros.
22823         * tree-vect-loop.c: Include target.h.
22824         (vect_get_cost): New function.
22825         (vect_estimate_min_profitable_iters): Replace cost model macros with
22826         calls to vect_get_cost.
22827         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
22828         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
22829         default implementation.
22830         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
22831         calls to target hook builtin_vectorization_cost.
22832         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
22833         Likewise.
22834         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
22835         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
22836         implementation to return costs.
22837         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
22838         * config/spu/spu.h: Remove vectorizer cost model macros.
22839         * config/i386/i386.h: Likewise.
22840         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
22841         a call to target hook builtin_vectorization_cost.
22842
22843 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
22844
22845         PR target/44319
22846         * config/i386/i386.c (override_options): Turn zee pass on for level 2
22847         and above and defer till target is known.
22848         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
22849         turn off otherwise.
22850
22851 2010-05-25  Jan Hubicka  <jh@suse.cz>
22852
22853         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
22854         (df_compact_blocks): Likewise.
22855         * df.h (struct df): Turn hardware_regs_used,
22856         regular_block_artificial_uses, eh_block_artificial_uses,
22857         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
22858         bitmap_head.
22859         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
22860         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
22861         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
22862         df_scan_blocks, df_insn_delete, df_insn_rescan,
22863         df_insn_rescan_debug_internal, df_insn_rescan_all,
22864         df_process_deferred_rescans, df_process_deferred_rescans,
22865         df_notes_rescan, df_get_call_refs, df_get_call_refs,
22866         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
22867         df_record_entry_block_defs, df_record_exit_block_uses,
22868         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
22869         df_scan_verify): Update.
22870
22871 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
22872
22873         PR c++/44188
22874         * c-common.c (is_typedef_decl): Move this definition ...
22875         * tree.c (is_typedef_decl): ... here.
22876         (typdef_variant_p): Move definition here from cp/tree.c.
22877         * c-common.h (is_typedef_decl): Move this declaration ...
22878         * tree.h (is_typedef_decl): ... here.
22879         (typedef_variant_p): Move declaration here from cp/cp-tree.h
22880         * dwarf2out.c (is_naming_typedef_decl): New function.
22881         (gen_tagged_type_die): Split out of ...
22882         (gen_type_die_with_usage): ... this function. When an anonymous
22883         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
22884         is emitted for the typedef.
22885         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
22886         anonymous tagged types.
22887
22888 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22889
22890         PR c/20000
22891         * c-decl.c (grokdeclarator): Delete warning.
22892
22893 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22894
22895         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
22896         newly built CALL_EXPR.
22897         * tree-profile.c (tree_profiling): Don't profile functions produced
22898         for built-in stuff.
22899
22900 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
22901
22902         PR bootstrap/44427
22903         PR bootstrap/44428
22904         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
22905         endianness-independent.
22906
22907 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
22908
22909         * c-common.c: Move to c-family/.
22910         * c-common.def: Likewise.
22911         * c-common.h: Likewise.
22912         * c-cppbuiltin.c: Likewise.
22913         * c-dump.c: Likewise.
22914         * c-format.c: Likewise.
22915         * c-format.h : Likewise.
22916         * c-gimplify.c: Likewise.
22917         * c-lex.c: Likewise.
22918         * c-omp.c: Likewise.
22919         * c.opt: Likewise.
22920         * c-opts.c: Likewise.
22921         * c-pch.c: Likewise.
22922         * c-ppoutput.c: Likewise.
22923         * c-pragma.c: Likewise.
22924         * c-pragma.h: Likewise.
22925         * c-pretty-print.c: Likewise.
22926         * c-pretty-print.h: Likewise.
22927         * c-semantics.c: Likewise.
22928         * stub-objc.c: Likewise.
22929
22930         * gengtype.c (get_file_langdir): Special-case files in c-family/.
22931         (get_output_file_with_visibility): Fix name for c-common.h.
22932         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
22933
22934         * c-tree.h: Update include path for moved files.
22935         * c-lang.c: Likewise.
22936         * c-lang.h: Likewise.
22937         * c-parser.c: Likewise.
22938         * c-convert.c: Likewise.
22939         * c-decl.c: Likewise.
22940         * c-objc-common.c: Likewise.
22941         * configure.ac: Make sure c-family/ exists in the build directory.
22942         * configure: Regenerate.
22943         * Makefile.in: Update paths for moved files.  Regroup files per
22944         location and update dependencies.  Move generated_files down after
22945         ALL_GTFILES_H.
22946
22947         * config/spu/spu-c.c: Update paths for moved files.
22948         * config/mep/mep-pragma.c: Likewise.
22949         * config/darwin-c.c: Likewise.
22950         * config/i386/msformat-c.c: Likewise.
22951         * config/i386/i386-c.c: Likewise.
22952         * config/avr/avr-c.c: Likewise.
22953         * config/sol2-c.c: Likewise.
22954         * config/ia64/ia64-c.c: Likewise.
22955         * config/rs6000/rs6000-c.c: Likewise.
22956         * config/arm/arm.c: Likewise.
22957         * config/arm/arm-c.c: Likewise.
22958         * config/h8300/h8300.c: Likewise.
22959         * config/v850/v850-c.c: Likewise.
22960
22961         * config/t-darwin: Fix dependencies for moved files.
22962         * config/t-sol2: Fix dependencies for moved files.
22963         * config/mep/t-mep: Fix dependencies for moved files.
22964         * config/ia64/t-ia64: Fix dependencies for moved files.
22965         * config/rs6000/t-rs6000: Fix dependencies for moved files.
22966         * config/v850/t-v850: Fix dependencies for moved files.
22967         * config/v850/t-v850e: Fix dependencies for moved files.
22968
22969         * config/m32c/m32c-pragma.c
22970
22971         * po/exgettext: Look in c-family/ also.
22972
22973 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
22974
22975         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
22976         (mark_control_dependent_edges_necessary): Call it instead of marking
22977         the last statement manually.
22978         (propagate_necessity): Likewise.
22979
22980 2010-06-05  Jan Hubicka  <jh@suse.cz>
22981
22982         * basic-block.h (compute_dominance_frontiers): Updated.
22983         (compute_idf): Likewise.
22984
22985         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
22986         for dominance frontiers.
22987         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
22988         (insert_updated_phi_nodes_for): Likewise.
22989         (update_ssa): Likewise.
22990         * cfganal.c (compute_dominance_frontiers_1): Likewise.
22991         (compute_dominance_frontiers): Likewise.
22992         (compute_idf): Likewise.
22993         * df-problems.c (df_md_local_compute): Likewise.
22994
22995 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
22996
22997         * target.h (struct gcc_target): Add memory_move_cost field.
22998         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
22999         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
23000         * targhooks.c (default_memory_move_cost): New function.
23001         * targhooks.h (default_memory_move_cost): Declare function.
23002         * reload.h (memory_move_cost): Declare.
23003         (memory_move_secondary_cost): Change type of 'in' argument to bool.
23004         * reginfo.c (memory_move_cost): New function.
23005         (memory_move_secondary_cost): Change type of 'in' argument to bool.
23006         * ira.h (ira_memory_move_cost): Update comment.
23007         * ira.c (ira_memory_move_cost): Update comment.
23008         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
23009         with memory_move_cost.
23010         * postreload.c (reload_cse_simplify_set): (Ditto.).
23011         * reload1.c (choose_reload_regs): (Ditto.).
23012         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
23013         (MEMORY_MOVE_COST):  Revise documentation.
23014
23015         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
23016         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
23017         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
23018         type of 'in' argument to bool.
23019         (TARGET_MEMORY_MOVE_COST): Define.
23020
23021 2010-06-05  Jan Hubicka  <jh@suse.cz>
23022
23023         * ipa-pure-const.c (propagate): Fix typo in handling of functions
23024         that cannot return.  Be more careful when merging the results with
23025         previously known ones.
23026
23027 2010-06-05  Matthias Klose  <doko@ubuntu.com>
23028
23029         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
23030         function to add the -iplugindir option.
23031         (find_plugindir_spec_function): Add new declaration and function.
23032         (static_spec_func): Use it for "find-plugindir".
23033
23034 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
23035
23036         PR c++/44361
23037         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
23038         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
23039         statement expression.
23040
23041 2010-06-05  Jan Hubicka  <jh@suse.cz>
23042
23043         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
23044         (df_rd_problem_data): Convert sparse_invalidated_by_call,
23045         dense_invalidated_by_call to bitmap head.
23046         (df_rd_alloc, df_rd_bb_local_compute_process_def,
23047         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
23048         df_rd_start_dump, df_lr_verify_transfer_functions,
23049         df_live_verify_transfer_functions, df_chain_create_bb,
23050         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
23051         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
23052         df_simulate_one_insn_forwards, df_md_alloc,
23053         df_md_bb_local_compute_process_def,
23054         df_md_bb_local_compute_process_def, df_md_local_compute,
23055         df_md_transfer_function df_md_free): Update.
23056
23057 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
23058
23059         PR c/44322
23060         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
23061         target type for ADDR_EXPR; require no changes to qualifiers except
23062         for function types.
23063         * c-tree.h (c_build_type_variant): Remove.
23064
23065 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
23066
23067         * genautomata.c (get_excl_set): Do work per element, not per char.
23068         (check_presence_pattern_sets): Similar.
23069         (check_absence_pattern_sets): Similar.
23070
23071 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
23072
23073         * genautomata.c (curr_state_pass_num): Delete.
23074         (min_issue_delay_pass_states): Delete.
23075         (min_issue_delay): Delete.
23076         (initiate_min_issue_delay_pass_states): Delete.
23077         (output_min_issue_delay_table): Compute min_issue_delay_vect
23078         using a breadth-first search variant.
23079         (output_tables): Don't call initiate_min_issue_delay_pass_states.
23080
23081 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
23082
23083         PR boostrap/44421
23084         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
23085         (df_byte_lr_bb_local_compute): Likewise.
23086
23087 2010-06-03  Jason Merrill  <jason@redhat.com>
23088
23089         Implement noexcept operator (5.3.7)
23090         * c-common.c (c_common_reswords): Add noexcept.
23091         * c-common.h (enum rid): Add RID_NOEXCEPT.
23092
23093 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
23094
23095         * config/darwin-driver.c (darwin_default_min_version): Use
23096         GCC-specific formats in diagnostics.
23097         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
23098         diagnostics.
23099         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
23100         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
23101         eval_spec_function, handle_braces, process_brace_body, main,
23102         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
23103         getenv_spec_function, compare_version_strings,
23104         version_compare_spec_function): Use GCC-specific formats in
23105         diagnostics.
23106
23107 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
23108
23109         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
23110         that operand 0 and operand 1 are equal.
23111         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
23112         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
23113         and operand 1 are equal.
23114         <default>: Ditto.  Remove ??? comment.
23115         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
23116         and operand 1 are equal.
23117         <default>: Ditto.  Remove ??? comment.
23118         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
23119         are equal.
23120         (*add<mode>_4) <default>: Ditto.
23121         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
23122
23123 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
23124
23125         * config/i386/i386-protos.h (ix86_print_operand): Declare.
23126         * config/i386/i386.c (ix86_print_operand): Make non-static.
23127         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
23128         * output.h (output_operand): Declare.
23129         * final.c (output_operand): Make non-static.
23130
23131 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
23132
23133         PR rtl-optimization/44013
23134         * sched-deps.c (add_dependence_list_and_free): Don't free lists
23135         when processing debug insns.
23136
23137         PR debug/41371
23138         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
23139         recursing.  Check that recursion is bounded.  Rename inner var
23140         to avoid hiding incoming argument.
23141
23142 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
23143
23144         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
23145         operands[2] == 255.
23146         (*addqi_3): Ditto.
23147         (*addqi_4): Ditto.
23148         (*addqi_5): Ditto.
23149         (*addqi_ext_1_rex64): Ditto.
23150         (*addqi_ext_1): Ditto.
23151
23152         (*addqi_4): Check for incdec_operand in QImode.
23153
23154         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
23155         using SWI mode iterator.
23156         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
23157         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
23158         mode iterator.
23159         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
23160         using SWI mode iterator.
23161
23162 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23163
23164         PR c/25880
23165         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
23166         * c-format.c (gcc_diag_flag_specs): Add hash.
23167         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
23168         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
23169         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
23170         pp_c_cv_qualifiers. Handle qualifiers spelling here.
23171         (pp_c_type_qualifier_list): Call the function above.
23172         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
23173         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
23174         (WARN_FOR_QUALIFIERS): New macro.
23175         (convert_for_assignment): Use it.
23176
23177 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
23178
23179         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
23180
23181 2010-06-04  Jan Hubicka  <jh@suse.cz>
23182
23183         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
23184         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
23185         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
23186         DF_BYTE_LR_OUT): Update for embedded bitmaps.
23187         * fwprop.c (single_def_use_enter_block): Likewise.
23188         * ddg.c (create_ddg_dep_from_intra_loop_link,
23189         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
23190         * loop-iv.c (latch_dominating_def): Likewise.
23191         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
23192         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
23193         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
23194         df_rd_transfer_function, df_rd_top_dump,
23195         df_rd_bottom_dump): Update.
23196         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
23197         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
23198         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
23199         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
23200         df_lr_verify_solution_start, df_lr_verify_solution_end,
23201         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
23202         df_live_free_bb_info, df_live_alloc, df_live_reset,
23203         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
23204         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
23205         df_live_verify_solution_start, df_live_verify_solution_end,
23206         df_live_verify_transfer_functions, df_chain_create_bb,
23207         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
23208         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
23209         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
23210         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
23211         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
23212         df_byte_lr_transfer_function, df_byte_lr_top_dump,
23213         df_byte_lr_bottom_dump, df_create_unused_note,
23214         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
23215         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
23216         df_md_transfer_function, df_md_init, df_md_confluence_0,
23217         df_md_confluence_n,
23218         df_md_top_dump, df_md_bottom_dump): Update.
23219         (struct df_lr_problem_data): Embedd bitmap headers.
23220
23221 2010-06-04  Jan Hubicka  <jh@suse.cz>
23222
23223         * dce.c (dce_process_block): Do not re-scan already marked
23224         instructions.
23225
23226 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
23227
23228         PR rtl-optimization/39871
23229         PR rtl-optimization/40615
23230         PR rtl-optimization/42500
23231         PR rtl-optimization/42502
23232         * ira.c (init_reg_equiv_memory_loc: New function.
23233         (ira): Call it twice.
23234         * reload.h (calculate_elim_costs_all_insns): Declare.
23235         * ira-costs.c: Include "reload.h".
23236         (regno_equiv_gains): New static variable.
23237         (init_costs): Allocate it.
23238         (finish_costs): Free it.
23239         (ira_costs): Call calculate_elim_costs_all_insns.
23240         (find_costs_and_classes): Take estimated elimination costs
23241         into account.
23242         (ira_adjust_equiv_reg_cost): New function.
23243         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
23244         * reload1.c (init_eliminable_invariants, free_reg_equiv,
23245         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
23246         (elim_bb): New static variable.
23247         (reload): Move code out of here into init_eliminable_invariants and
23248         free_reg_equiv.  Call them.
23249         (calculate_elim_costs_all_insns): New function.
23250         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
23251         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
23252         but call note_reg_elim_costly if we turned a valid memory address
23253         into an invalid one.
23254         * Makefile.in (ira-costs.o): Depend on reload.h.
23255
23256 2010-06-04  Julian Brown  <julian@codesourcery.com>
23257
23258         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
23259         for pool ranges.
23260
23261 2010-06-04  Richard Guenther  <rguenther@suse.de>
23262
23263         PR lto/41584
23264         * cgraph.h (struct varpool_node): Add lto_file_data field.
23265         * lto-cgraph.c (input_varpool_node): Initialize it.
23266
23267 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
23268
23269         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
23270         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
23271         predicate in "type" attribute calculation.
23272         (*addsi_1_zext): Ditto.
23273         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
23274         (*addsi_2_zext): Ditto.
23275         (*add<mode>_3): Ditto.
23276         (*addsi_3_zext): Ditto.
23277         (*add<mode>_5): Ditto.
23278
23279 2010-06-03  Jan Hubicka  <jh@suse.cz>
23280
23281         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
23282         of bitmap_bit_p.
23283         * cfganal.c (compute_dominance_frontiers_1): Likewise.
23284
23285 2010-06-03  Jan Hubicka  <jh@suse.cz>
23286
23287         * df-problems.c (df_create_unused_note, df_note_bb_compute):
23288         micro-optimize the checks when to add new note.
23289
23290 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
23291
23292         * final.c (output_asm_insn): Call
23293         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
23294         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
23295         (output_address): Call targetm.asm_out.print_operand_address.
23296         Update comments.
23297         * target.h (struct gcc_target): Add print_operand,
23298         print_operand_address, and print_operand_punct_valid_p fields.
23299         * targhooks.h (default_print_operand): Declare.
23300         (default_print_operand_address): Declare.
23301         (default_print_operand_punct_valid_p): Declare.
23302         * targhooks.c (default_print_operand): Define.
23303         (default_print_operand_address): Define.
23304         (default_print_operand_punct_valid_p): Define.
23305         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
23306         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
23307         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
23308         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
23309         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
23310         * vmsdbgout.c (addr_const_to_string): Update comment.
23311         * config/i386/i386.c (print_operand): Rename to...
23312         (ix86_print_operand): ...this.  Make static.
23313         (print_operand_address): Rename to...
23314         (ix86_print_operand_address): ...this.  Make static.  Call
23315         ix86_print_operand instead of PRINT_OPERAND.
23316         (ix86_print_operand_punct_valid_p): New function.
23317         (TARGET_PRINT_OPERAND): Define.
23318         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23319         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23320         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
23321         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23322         (PRINT_OPERAND): Delete.
23323         (PRINT_OPERAND_ADDRESS): Delete.
23324         * config/i386/i386-protos.h (print_operand): Delete prototype.
23325         (print_operand_address): Delete prototype.
23326
23327 2010-06-03  Richard Guenther  <rguenther@suse.de>
23328
23329         PR tree-optimization/44403
23330         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23331         Preserve pointer qualifiers.
23332         (vect_create_data_ref_ptr): Likewise.
23333
23334 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
23335
23336         PR c++/44294
23337         * defaults.h (MAX_FIXED_MODE_SIZE): New.
23338
23339         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
23340
23341 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
23342
23343         PR debug/44375
23344         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
23345         return false if merging the bbs would lead to goto_locus
23346         location being lost from the IL.
23347
23348 2010-06-03  Jan Hubicka  <jh@suse.cz>
23349             Jakub Jelinek  <jakub@redhat.com>
23350
23351         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
23352         set->regs[i] is NULL or has just one entry.
23353
23354 2010-06-03  Jan Hubicka  <jh@suse.cz>
23355
23356         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
23357         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
23358
23359 2010-06-03  Paul Brook  <paul@codesourcery.com>
23360
23361         * config/arm/arm.c (FL_TUNE): Define.
23362         (arm_default_cpu, arm_cpu_select): Remove.
23363         (all_cores): Populate core field.
23364         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
23365         (arm_find_cpu): New function.
23366         (arm_handle_option): Lookup cpu/architecture names.
23367         (arm_override_options): Cleanup mcpu/march/mtune handling.
23368         (arm_file_start): Ditto.
23369
23370 2010-06-03  Alan Modra  <amodra@gmail.com>
23371
23372         PR target/44169
23373         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
23374         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
23375         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
23376         (rs6000_emit_load_toc_table): Likewise.
23377
23378 2010-06-02  Jan Hubicka  <jh@suse.cz>
23379
23380         * passes.c (init_optimization_passes): Put ipa reference
23381         after ipa pure-const.
23382
23383 2010-06-02  Jan Hubicka  <jh@suse.cz>
23384
23385         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
23386         calls_read_all and calls_write_all.
23387         (get_reference_optimization_summary): Fix formatting.
23388         (is_proper_for_analysis): Check that decl is not readonly.
23389         (propagate_bits): Check CONST/PURE/noreturn flags.
23390         (ipa_init): Move all_module_statics to optimization_summary_obstack.
23391         (analyze_function): Ignore indirect edges.
23392         (copy_global_bitmap): For all module statics, do nothing.
23393         (generate_summary): Do not print calls_read_all/calls_write_all.
23394         (read_write_all_from_decl): Take node as argument; check
23395         cgraph_node_cannot_return.
23396         (propagate): Reorganize read_all/write_all computation;
23397         check indirect edges; check ecf flags; use all_module_statics
23398         in the results; do not free all_module_statics.
23399         (stream_out_bitmap): Handle all_module_statics.
23400         (ipa_reference_write_optimization_summary): Likewise; use
23401         varpool/cgraph encoders to get boundaries.
23402         (ipa_reference_read_optimization_summary): Read in all_module_statics;
23403         use it when possible.
23404
23405 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23406
23407         PR target/44218
23408         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
23409         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
23410
23411         * doc/extend.texi (powerpc builtins): Document vec_recip,
23412         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
23413
23414         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
23415         (rs6000_emit_swrsqrt): Ditto.
23416         (rs6000_emit_swdivsf): Delete.
23417         (rs6000_emit_swdivdf): Ditto.
23418         (rs6000_emit_swrsqrtsf): Ditto.
23419
23420         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
23421         describe the reciprocal estimate support for each type.
23422         (recip_options): Map -mrecip=<opt> into option bits.
23423         (gen_2arg_fn_t): New typedef for binary rtx gen function.
23424         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
23425         reciprocal estimate instructions.
23426         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
23427         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
23428         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
23429         cost information if -mdebug=cost or -mdebug=reg.
23430         (rs6000_override_options): Set -mrecip-precision for power6, and
23431         power7 machines.  If -mvsx or -mdfp, enable various options that
23432         came in previous instruction set ISAs, unless the option was
23433         explicitly disabled by the command line option.  Parse
23434         -mrecip=<opt> options.
23435         (rs6000_builtin_vectorized_function): Add support for vectorizing
23436         the reciprocal estimate builtins and expansions.
23437         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
23438         (bdesc_2arg): Add reciprocal estimate builtins.
23439         (bdesc_1arg): Add reciprocal square root estimate builtins.
23440         (rs6000_expand_builtin): Rewrite to use a switch statement,
23441         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
23442         (rs6000_init_builtins): Create declarations for reciprocal
23443         estimate builtins.
23444         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
23445         sized, prefer traditional floating point registers, if integer
23446         vector types, prefer altivec registers.  Don't actually look at
23447         the memory address any more.
23448         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
23449         builtins.
23450         (rs6000_load_constant_and_splat): New helper function to load up
23451         the constant for reciprocal estimate instructions.
23452         (rs6000_emit_madd): New helper function for generating
23453         multiply/add type instructions, based on the current switches.
23454         (rs6000_emit_msub): Ditto.
23455         (rs6000_emit_mnsub): Ditto.
23456         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
23457         replace a divide with a reciprocal estimate and fixup, adding
23458         support for machines with high precision and vectors.
23459         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
23460         low precision machines.
23461         (rs6000_emit_swdiv): New common function to be called to replace a
23462         division with reciprocal estimate and fixup.
23463         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
23464         for double and vector types.  Add support for high precision machines.
23465
23466         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
23467         the reciprocal estimate instructions can be generated.
23468         (TARGET_FRE): Ditto.
23469         (TARGET_FRSQRTES): Ditto.
23470         (TARGET_FRSQRTE): Ditto.
23471         (RS6000_RECIP_*): New macros for reciprocal estimate support.
23472
23473         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
23474         square root estimate on vectors.
23475         (re<mode>2): New insn for reciprocal division estimate on vectors.
23476
23477         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
23478         New builtin.
23479         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
23480         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
23481         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
23482         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
23483         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
23484         (RS6000_BUILTIN_RSQRT): Ditto.
23485         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
23486         floating point builtin.
23487
23488         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23489         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
23490         __RECIP_PRECISION__ based on the command line switches.
23491         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
23492
23493         * config/rs6000/rs6000.opt (-mrecip): Document add support for
23494         replacing division instructions with reciprocal estimate and fixup.
23495         (-mrecip=<opt>): New option.
23496         (-mrecip-precision): Ditto.
23497
23498         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
23499         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
23500         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
23501         precision scalar.
23502
23503         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
23504         (UNSPEC_VREFP): Ditto.
23505         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
23506         conterparts with regard to support of -mno-fused-madd and -ffast-math.
23507         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
23508         reciprocal estimate instructions to be generated.
23509         (altivec_vrefp): Ditto.
23510
23511         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
23512         estimate support.
23513         (rreg): New mode attribute for reciprocal estimate support.
23514         (recip<mode>3): New insn for division using reciprocal estimate
23515         and fixup builtins.
23516         (divide define_split): New define_split to convert floating point
23517         division to use reciprocal estimate if the user used the
23518         appropriate options and the split is run when we can add new
23519         pseudo registers for the fixup.
23520         (rsqrt<mode>2): New insn for reciprocal square root support.
23521         (recipsf3): Move into recip<mode>3.
23522         (recipdf3): Ditto.
23523         (fres): Use TARGET_FRES.
23524         (rsqrtsf2): Move into rsqrt<mode>2.
23525         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
23526         (copysignsf3): Add support for VSX.
23527         (fred): Use TARGET_FRE.
23528         (fred_fpr): Ditto.
23529         (rsqrtdf_internal1): New function for frsqrte instruciton.
23530
23531         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
23532         (vec_rsqrt): Ditto.
23533
23534 2010-06-03  Richard Guenther  <rguenther@suse.de>
23535
23536         PR middle-end/44291
23537         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
23538         (set_user_assembler_libfunc): Likewise.
23539
23540 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
23541
23542         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
23543         defaults.h.
23544         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
23545         to defaults.h
23546         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
23547         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
23548         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
23549         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
23550         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
23551         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
23552         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
23553         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
23554         * defaults.h: Updated for above mentioned changes.
23555
23556 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
23557
23558         * c-common.c: Remove header include of tm_p.h.
23559         * Makefile.in (c-common.o): Remove TM_P_H dependency.
23560
23561 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
23562
23563         * tree.h (struct tree_decl_map): New type.
23564         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
23565         (tree_decl_map_hash): New prototype.
23566         (debug_expr_for_decl, value_expr_for_decl): Change into
23567         tree_decl_map hashtab from tree_map.
23568         (init_ttree): Adjust initialization.
23569         (tree_decl_map_hash): New function.
23570         (decl_debug_expr_lookup, decl_debug_expr_insert,
23571         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
23572
23573 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23574
23575         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
23576         linker emulations.
23577         * configure: Regenerate.
23578         * config.in: Regenerate.
23579
23580         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
23581         (X86_64_EMULATION): Define.
23582         (TARGET_LD_EMULATION): Use them.
23583
23584         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
23585         (SPARC64_EMULATION): Define.
23586         (LINK_ARCH_SPEC): Use them.
23587
23588 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
23589
23590         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
23591         smallest_mode_for_size for computing the precision types of new
23592         graphite IVs.  Do not call lang_hooks.types.type_for_size.
23593
23594 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
23595
23596         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
23597         information.
23598         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
23599
23600 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
23601
23602         PR middle-end/44363
23603         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
23604         return false instead.
23605
23606 2010-06-02  Jan Hubicka  <jh@suse.cz>
23607
23608         PR middle-end/44295
23609         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
23610         create new cgraph node to check callee.
23611
23612 2010-06-02  Richard Guenther  <rguenther@suse.de>
23613
23614         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
23615
23616 2010-06-02  Richard Guenther  <rguenther@suse.de>
23617
23618         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
23619         (lto_wrapper_cleanup): ... this.  Do not exit.
23620         (fatal): Adjust.  Exit here.
23621         (fatal_perror): Likewise.
23622         (fatal_signal): New function.
23623         (main): Set up signal handlers to cleanup temporary files.
23624         * Makefile.in (lto-wrapper.o): Adjust dependencies.
23625
23626 2010-06-02  Richard Guenther  <rguenther@suse.de>
23627
23628         PR tree-optimization/44377
23629         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
23630
23631 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23632
23633         * config/s390/2097.md (z10_fhex): Remove insn reservation.
23634         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
23635         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
23636         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
23637         instruction.
23638         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
23639
23640 2010-06-02  Jan Hubicka  <jh@suse.cz>
23641
23642         * bitmap.c (bitmap_descriptor): Add search_iter.
23643         (bitmap_find_bit): Increment it.
23644         (print_statistics): Print it.
23645
23646 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
23647
23648         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
23649         instead of gimple_build_call_vec.  Delete unnecessary local variable.
23650
23651 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
23652
23653         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
23654         change from yesterday.
23655
23656 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
23657
23658         * c-ada-spec.c: Clean up redundant includes.
23659
23660 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
23661
23662         * gimplify.c: Do not include except.h and optabs.h.
23663         (gimplify_body): Do not initialize RTL profiling.
23664         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
23665         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
23666         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
23667         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
23668         langhooks.h.
23669
23670         * tree-pretty-print.h: Include pretty-print.h.
23671         * gimple-pretty-print.h: Include pretty-print.h.
23672
23673         * tree-pretty-print.c: Do not include diagnostic.h.
23674         * tree-vrp.c: Likewise.
23675         * tree-tailcall.c: Likewise
23676         * tree-scalar-evolution.c: Likewise
23677         * tree-ssa-dse.c: Likewise
23678         * tree-chrec.c: Likewise
23679         * tree-ssa-sccvn.c: Likewise
23680         * tree-ssa-copyrename.c: Likewise
23681         * tree-nomudflap.c: Likewise
23682         * tree-call-cdce.c: Likewise
23683         * tree-stdarg.c: Likewise
23684         * tree-ssa-math-opts.c: Likewise
23685         * tree-nrv.c: Likewise
23686         * tree-ssa-sink.c: Likewise
23687         * tree-browser.c: Likewise
23688         * tree-ssa-loop-ivcanon.c: Likewise
23689         * tree-ssa-loop.c: Likewise
23690         * tree-parloops.c: Likewise
23691         * tree-ssa-address.c: Likewise
23692         * tree-ssa-ifcombine.c: Likewise
23693         * tree-if-conv.c: Likewise
23694         * tree-data-ref.c: Likewise
23695         * tree-affine.c: Likewise
23696         * tree-ssa-phiopt.c: Likewise
23697         * tree-ssa-coalesce.c: Likewise
23698         * tree-ssa-pre.c: Likewise
23699         * tree-ssa-live.c: Likewise
23700         * tree-predcom.c: Likewise
23701         * tree-ssa-forwprop.c: Likewise
23702         * tree-ssa-dce.c: Likewise
23703         * tree-ssa-ter.c: Likewise
23704         * tree-ssa-loop-prefetch.c: Likewise
23705         * tree-optimize.c: Likewise
23706         * tree-ssa-phiprop.c: Likewise
23707         * tree-object-size.c: Likewise
23708         * tree-outof-ssa.c: Likewise
23709         * tree-ssa-structalias.c: Likewise
23710         * tree-switch-conversion.c: Likewise
23711         * tree-ssa-reassoc.c: Likewise
23712         * tree-ssa-operands.c: Likewise
23713         * tree-vectorizer.c: Likewise
23714         * tree-vect-data-refs.c: Likewise
23715         * tree-vect-generic.c: Likewise
23716         * tree-vect-stmts.c: Likewise
23717         * tree-vect-patterns.c: Likewise
23718         * tree-vect-slp.c: Likewise
23719         * tree-vect-loop.c: Likewise
23720         * tree-ssa-loop-ivopts.c: Likewise
23721         * tree-ssa-loop-im.c: Likewise
23722         * tree-ssa-loop-niter.c: Likewise
23723         * tree-ssa-loop-unswitch.c: Likewise
23724         * tree-ssa-loop-manip.c: Likewise
23725         * tree-ssa-loop-ch.c: Likewise
23726         * tree-dump.c: Likewise
23727         * tree-complex.c: Likewise
23728
23729         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
23730         * tree-ssa-uninit.c: Likewise
23731         * tree-ssa-threadupdate.c: Likewise
23732         * tree-ssa-uncprop.c: Likewise
23733         * tree-ssa-ccp.c: Likewise
23734         * tree-ssa-dom.c: Likewise
23735         * tree-ssa-propagate.c: Likewise
23736         * tree-ssa-alias.c: Likewise
23737         * tree-dfa.c: Likewise
23738         * tree-cfgcleanup.c: Likewise
23739         * tree-sra.c: Likewise
23740         * tree-ssa-copy.c: Likewise
23741         * tree-ssa.c: Likewise
23742         * tree-profile.c: Likewise
23743         * tree-cfg.c: Likewise
23744         * tree-ssa-threadedge.c: Likewise
23745         * tree-vect-loop-manip.c: Likewise
23746
23747         * tree-inline.c: Do not include diagnostic.h and expr.h.
23748         Include rtl.h.
23749         (copy_decl_for_dup_finish): Do not use NULL_RTX.
23750
23751         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
23752         * tree-loop-distribution.c: Likewise.
23753
23754 2010-06-01  Jan Hubicka  <jh@suse.cz>
23755
23756         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
23757
23758 2010-06-01  Jan Hubicka  <jh@suse.cz>
23759
23760         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
23761         remove return value.
23762         (split_bbs_on_noreturn_calls) .... here.
23763         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
23764         * tree-flow.h (fixup_noreturn_call): New.
23765
23766 2010-06-01  Jan Hubicka  <jh@suse.cz>
23767
23768         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
23769
23770 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
23771
23772         * tree.h (build_nt_call_list): Delete.
23773         * tree.c (build_nt_call_list): Delete.
23774
23775 2010-06-01  Jan Hubicka  <jh@suse.cz>
23776
23777         * fwprop.c: Make emit-rtl.h include last.
23778         * rtlanal.c: Include emit-rtl.h.
23779         * genautomata.c: Output emit-rtl include into insn-automata.c
23780         * df-scan.c: Include emit-rtl.h.
23781         * haifa-sched.c: Indlude emit-rtl.h.
23782         * mode-switching.c: Indlude emit-rtl.h.
23783         * graph.c: Indlude emit-rtl.h.
23784         * sel-sched.c: Include emit-rtl.h.
23785         * sel-sched-ir.c: Include emit-rtl.h.
23786         * ira-build.c: Include emit-rtl.h.
23787         * emit-rtl.c (first_insn, last_insn): Remove defines.
23788         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
23789         Move to emit-rtl.h.
23790         (set_new_first_and_last_insn, get_last_insn_anywhere,
23791         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
23792         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
23793         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
23794         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
23795         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
23796         Use accessor functions.
23797         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
23798          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
23799         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
23800         mem_expr_equal_p): Move here from rtl.h.
23801         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
23802         Move here from emit-rtl.c; make inline.
23803         * cfglayout.h: Include emit-rtl.h.
23804         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
23805          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
23806         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
23807         mem_expr_equal_p, get_insns, set_first-insn,
23808         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
23809         * reg-stack.c: Include emit-rtl.h.
23810         * dce.c: Likewise.
23811
23812 2010-06-01  Jan Hubicka  <jh@suse.cz>
23813
23814         * cgraph.h (tree_function_versioning): Update prototype.
23815         (cgraph_function_versioning): Update prototype.
23816         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
23817         bitmap.
23818         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
23819         (cgraph_materialize_clone, save_inline_function_body): Update use of
23820         tree_function_versioning.
23821         * tree-inline.c (copy_bb): Look for previous copied block to link
23822         after; fix debug output.
23823         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
23824         (copy_body): Likewise.
23825         (expand_call_inline): Update use of copy_body.
23826         (tree_function_versioning): Update use of copy body; accept
23827         blocks_to_copy and new_entry.
23828
23829 2010-06-01  Jan Hubicka  <jh@suse.cz>
23830
23831         * gegenrtl.c: Remove unnecesary prototypes.
23832         (gendecl): Remove.
23833         (gendef): Produce static inline.
23834         (gencode): Remove.
23835         (main): Do not decode parameters; generate header only.
23836         * Makefile.in (genrtl.c): Remove.
23837
23838 2010-06-01  Jan Hubicka  <jh@suse.cz>
23839
23840         * tree-switch-conversion.c (build_one_array): Make it readonly.
23841
23842 2010-06-01  Richard Guenther  <rguenther@suse.de>
23843
23844         * optabs.c (init_optabs): Guard all accesses to reinit.
23845         * ipa-pure-const.c (propagate): Fix another typo.
23846         * opts.c (common_handle_option): Split assignment to bool.
23847         * c-opts.c (c_common_handle_option): Likewise.
23848
23849 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
23850             Matthew Gingell  <gingell@adacore.com>
23851
23852         * doc/invoke.texi: Mention -fdump-ada-spec.
23853         * tree-dump.c (dump_files): Add ada-spec.
23854         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
23855         * tree-pass.h (tree_dump_index): Add TDI_ada.
23856         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
23857         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
23858         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
23859         * c-decl.c: Include c-ada-spec.h.
23860         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
23861         functions.
23862         (c_write_global_declarations): Add handling of -fdump-ada-spec.
23863         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
23864         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
23865         * c-ada-spec.h, c-ada-spec.c: New files.
23866
23867 2010-06-01  Richard Guenther  <rguenther@suse.de>
23868
23869         PR lto/43853
23870         * ipa-pure-const.c (get_function_state): Hand back varying state
23871         if we do not have one.
23872         (has_function_state): New function.
23873         (duplicate_node_data): Adjust.
23874         (remove_node_data): Likewise.
23875         (pure_const_write_summary): Likewise.
23876         (propagate): Likewise.  Fix typo.
23877
23878 2010-06-01  Jan Hubicka  <jh@suse.cz>
23879
23880         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
23881         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
23882         (execute_all_ipa_transforms): Do not play with the states.
23883
23884 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
23885
23886         * config/arm/t-linux-androideabi: New.
23887         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
23888
23889 2010-06-01  Jan Hubicka  <jh@suse.cz>
23890
23891         * tree-inline.c (estimate_num_insns): For stdarg functions look
23892         into call statement to count cost of argument passing.
23893
23894 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
23895
23896         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
23897         argument for fprintf.
23898         (ix86_output_addr_diff_elt): Likewise.
23899         (x86_function_profiler): Likewise.
23900         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
23901         (LPREFIX): Likewise.
23902         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
23903
23904 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
23905
23906         PR target/44338
23907         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
23908         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
23909         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
23910         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
23911         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
23912         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
23913         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
23914         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
23915         TARGET_FUSED_MADD.
23916
23917 2010-05-31  Jan Hubicka  <jh@suse.cz>
23918
23919         * tree.h (tree_range_check_failed): Declare noreturn.
23920
23921 2010-05-31  Jan Hubicka  <jh@suse.cz>
23922
23923         * gimple.c (gimple_call_builtin_p): New function.
23924         * gimple.h (gimple_call_builtin_p): Declare.
23925         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
23926         to exit.
23927         (execute_warn_function_return): BUILT_IN_RETURN is return.
23928         (split_critical_edges): Return edges are not critical.
23929         (is_ctrl_altering_stmt): Builtin_in_return is altering.
23930         (gimple_verify_flow_info): Handle built_in_return.
23931         (execute_warn_function_return): Handle built_in_return.
23932         * ipa-pure-const.c (check_call): Ignore builtin_return.
23933
23934 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
23935
23936         PR middle-end/44337
23937         * expr.c (expand_assignment): Don't store anything for out-of-bounds
23938         array accesses with non-MEM.
23939
23940         PR tree-optimization/44182
23941         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
23942         newly needs to end a bb is followed by debug stmts, instead return
23943         true from the function at the end.
23944         (maybe_move_debug_stmts_to_successors): New function.
23945         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
23946
23947 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
23948
23949         PR target/44161
23950         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
23951
23952 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
23953
23954         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
23955         for nested functions in non-optimized compilation.
23956
23957 2010-05-31  Richard Guenther  <rguenther@suse.de>
23958
23959         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
23960
23961 2010-05-30  Jan Hubicka  <jh@suse.cz>
23962
23963         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
23964
23965 2010-05-30  Richard Guenther  <rguenther@suse.de>
23966
23967         PR lto/42975
23968         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
23969         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
23970         no longer needed.
23971
23972 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
23973
23974         * config/darwin.c (output_objc_section_asm_op): Add comment.
23975         (name_needs_quotes): Add '_' to list of valid comment chars.
23976         (machopic_output_function_base_name): Remove unneeded quotes.
23977         (darwin_encode_section_info): Adjust asm whitespace.
23978         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
23979         (ASM_OUTPUT_LOCAL): Ditto.
23980         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
23981         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
23982         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
23983
23984 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
23985
23986         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
23987         RS6000_OUTPUT_BASENAME unconditionally.
23988         (rs6000_output_function_epilogue): Likewise.
23989
23990 2010-05-30  Jan Hubicka  <jh@suse.cz>
23991
23992         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
23993         nodes.
23994
23995 2010-05-30  Richard Guenther  <rguenther@suse.de>
23996
23997         * tree-cfg.c (verify_gimple_assign_single): Implement
23998         verification for COND_EXPR rhs.
23999
24000 2010-05-30  Jan Hubicka  <jh@suse.cz>
24001
24002         * cgraph.h (cgraph_dump_file): Declare.
24003         * cgraphunit.c (cgraph_dump_file): Export.
24004         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
24005
24006 2010-05-30  Jan Hubicka  <jh@suse.cz>
24007
24008         * dwarf2out.c (reference_to_unused,
24009         premark_types_used_by_global_vars_helper): Avoid creation of new
24010         varpool nodes.
24011
24012 2010-05-30  Jan Hubicka  <jh@suse.cz>
24013
24014         * cgraph.h (cgraph_node_cannot_return,
24015         cgraph_edge_cannot_lead_to_return): New functions.
24016         * cgraph.c (cgraph_node_cannot_return,
24017         cgraph_edge_cannot_lead_to_return): Use them.
24018         * ipa-pure-const.c (pure_const_names): New static var.
24019         (check_call): Handle calls not leading to return.
24020         (pure_const_read_summary): Dump info read.
24021         (propagate): Dump info about propagation process; ignore side effects
24022         of functions not leading to exit; fix handling of pure functions.
24023
24024 2010-05-30  Jan Hubicka  <jh@suse.cz>
24025
24026         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
24027         for tail call epilogues.
24028
24029 2010-05-30  Jan Hubicka  <jh@suse.cz>
24030
24031         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
24032         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
24033         dump files.
24034
24035 2010-05-29  Jan Hubicka  <jh@suse.cz>
24036
24037         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
24038         node; remove references in node we no longer keep in cgrpah but need
24039         body of.
24040
24041 2010-05-29  Jan Hubicka  <jh@suse.cz>
24042
24043         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
24044
24045 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24046
24047         PR target/44165
24048         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
24049
24050 2010-05-29  Jan Hubicka  <jh@suse.cz>
24051
24052         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
24053         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
24054         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
24055         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
24056         debug_names_replaced_by, debug_update_ssa): Likewise.
24057         * sbitmap.c (debug_sbitmap): Likewise.
24058         * genrecog.c (debug_decision, debug_decision_list): Likewise.
24059         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
24060         debug_tree_chain): Likewise.
24061         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
24062         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
24063         * optabs.c (debug_optab_libfuncs): Likewise.
24064         (verify_loop_closed_ssa): Likewise.
24065         * value-prof.c (verify_histograms): Likewise.
24066         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
24067         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
24068         * cfghooks.c (verify_flow_info): Likewise.
24069         * fold-const.c (debug_fold_checksum): Likewise.
24070         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
24071         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
24072         Likewise.
24073         * omega.c (debug_omega_problem): Likewise.
24074         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
24075         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
24076         * dominance.c (verify_dominators, debug_dominance_info,
24077         debug_dominance_tree): Likewise.
24078         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
24079         * df_regno_debug, df_ref_debug,
24080         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
24081         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
24082         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
24083         * sel-sched.c (debug_state): Likewise.
24084         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
24085         Likewise.
24086         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
24087         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
24088         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
24089         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
24090         Likewise.
24091         * c-pretty-print.c (debug_c_tree): Likewise.
24092         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
24093         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
24094         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
24095         * ebitmap.c (debug_ebitmap): Likewise.
24096         * function.c (debug_find_var_in_block_tree): Likewise.
24097         * print-rtl.c (debug_rtx): Likewise.
24098         (debug_rtx_count): Likewise.
24099         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
24100         * stor-layout.c (debug_rli): Likewise.
24101         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
24102         * tree-data-ref.c (debug_data_references,
24103         debug_data_dependence_relations, debug_data_reference,
24104         debug_data_dependence_relation, debug_rdg_vertex,
24105         debug_rdg_component, debug_rdg): Likewise.
24106         * tree-affine.c (debug_aff): Likewise.
24107         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
24108         Likewise.
24109         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
24110         * emit-rtl.c (verify_rtl_sharing): Likewise.
24111         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
24112         debug_value_expressions): Likewise.
24113         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
24114         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
24115         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
24116         * cfglayout.c (verify_insn_chain): Likewise.
24117         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
24118         debug_clast_stmt, debug_generated_program): Likewise.
24119         * ggc-page.c (debug_print_page_list): Likewise.
24120         * tree-ssa-ter.c (debug_ter): Likewise.
24121         * graphite-dependences.c (debug_pddr): Likewise.
24122         * sched-deps.c (debug_ds): Likewise.
24123         * tree-ssa.c (verify_ssa): Likewise.
24124         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
24125         debug_scattering_functions, debug_iteration_domains, debug_pdr,
24126         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
24127         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
24128         * tree-inline.c (debug_find_tree): Likewise.
24129         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
24130         debug_ppl_powerset_matrix): Likewise.
24131         * var-tracking.c (debug_dv): Likewise.
24132         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
24133         * cfgloop.c (verify_loop_structure): Likewise.
24134         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
24135         * c-common.c (verify_sequence_points): Likewise.
24136         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
24137         debug_candidates, debug_rgn_dependencies): Likewise.
24138         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
24139         * debug_constraint_graph, debug_solution_for_var,
24140         debug_sa_points_to_info): Likewise.
24141         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
24142         Likewie.
24143         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
24144         debug_loops, debug_loop, debug_loop_num): Likewise.
24145         * passes.c (debug_pass): Likewise.
24146         (dump_properties): Likewise; add cfglayout property.
24147         (debug_properties): Likewise.
24148         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
24149         * varpool.c (debug_varpool): Likewise.
24150         * regcprop.c (debug_value_data): Likewise.
24151         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
24152         debug_immediate_uses_for): Likewise.
24153
24154 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
24155
24156         PR bootstrap/44315
24157         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
24158         Filter out insn-flags.h.
24159
24160 2010-05-29  Jan Hubicka  <jh@suse.cz>
24161
24162         * cgraph.h (struct varpool_node_set_def,
24163         struct cgraph_node_set_def): Remove unused AUX pointer.
24164         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
24165         VEC_empty macro.
24166
24167 2010-05-29  Jan Hubicka  <jh@suse.cz>
24168
24169         PR middle-end/44324
24170         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
24171
24172 2010-05-29  Richard Guenther  <rguenther@suse.de>
24173
24174         * lto-streamer.c (cached_bp): New global variable.
24175         (bitpack_create): Return the cached bitpack, if available.
24176         (bitpack_delete): Clear and cache the bitpack, if appropriate.
24177         (bp_pack_value): Remove redundant asserts.
24178
24179 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
24180
24181         PR middle-end/44306
24182         * tree-if-conv.c (is_true_predicate): New.
24183         (is_predicated): Use is_true_predicate.
24184         (add_to_predicate_list): Same.  Do not use unshare_expr.
24185         (add_to_dst_predicate_list): Same.
24186
24187 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
24188
24189         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
24190         field on edges.
24191         (predicate_bbs): Same.
24192         (clean_predicate_lists): Same.
24193         (find_phi_replacement_condition): Do not AND the predicate from
24194         edge->aux.
24195
24196 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
24197
24198         PR bootstrap/44315
24199         * Makefile.in (build/gencondmd.o): Add a missing `\'.
24200
24201 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24202
24203         PR target/44261
24204         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
24205         (negdf2): Adjust expander pattern and use negdf2_slow.
24206         (negsf2): Likewise.
24207
24208 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
24209
24210         * basic-block.h (struct control_flow_graph): Move last_label_uid field
24211         up.
24212         * df.h (struct df_base_ref): Move regno field up.
24213         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
24214         * expr.h (struct separate_ops): Move location field up.
24215         * optabs.h (struct optab_d): Move libcall_basename field down.
24216         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
24217         * config/i386/i386.h (struct machine_function): Convert call_abi field
24218         into a bitfield.  Move cfa field to the end of the structure.
24219
24220 2010-05-29  Jan Hubicka  <jh@suse.cz>
24221
24222         * varpool.c (varpool_get_node): Fix lookup.
24223
24224 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
24225
24226         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
24227         RTL specific prototypes with #ifdef RTX_CODE.
24228         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
24229         * config/spu/t-spu-elf: Fix dependencies.
24230
24231         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
24232
24233 2010-05-29  Mike Stump  <mikestump@comcast.net>
24234
24235         PR bootstrap/44315
24236         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
24237         TM_H when building to avoid dependency loops.
24238
24239 2010-05-29  Jan Hubicka  <jh@suse.cz>
24240
24241         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
24242         refs and body; not the whole node for masters of materialized clones.
24243
24244 2010-05-29  Mike Stump  <mikestump@comcast.net>
24245
24246         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
24247
24248 2010-05-29  Jan Hubicka  <jh@suse.cz>
24249
24250         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
24251         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
24252         use of clone_function_name.
24253         * cgraph.h (cgraph_create_virtual_clone,
24254         cgraph_function_versioning): update prototypes.
24255         (clone_function_name): Declare.
24256         * ipa-cp.c (ipcp_insert_stage): Update call of
24257         cgraph_create_virtual_clone.
24258         * omp-low.c (create_omp_child_function_name): Use
24259         cgraph_create_virtual_clone.
24260         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
24261         (cgraph_function_versioning): Take SUFFIX argument; produce new name
24262         and make decl local.
24263
24264 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
24265
24266         * vec.h: Include statistics.h
24267         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
24268         with VEC_H.
24269
24270 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
24271
24272         * c-lex.c: Do not include c-tree.h.
24273         * c-pretty-print.c: Likewise.
24274         * c-opts.c: Likewise.
24275         * c-gimplify.c: Likewise.
24276         * c-common.c: Likewise.
24277         * c-dump.c: Likewise.  Include c-common.h.
24278
24279 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
24280
24281         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
24282         before including diagnostic-core.h.
24283         (c_cpp_error): New prototype moved from c-tree.h.
24284         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
24285         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
24286         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
24287         (c_cpp_error): Prototype moved to c-common.h.
24288         * Makefile.in: Update dependency for C_COMMON_H.
24289
24290 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
24291
24292         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
24293         * c-common.c (c_register_addr_space): Remove here.
24294         * c-decl.c (c_register_addr_space): Re-add here.
24295
24296 2010-05-28  Mike Stump  <mikestump@comcast.net>
24297
24298         * config/darwin-c.c: Remove c-tree.h include.
24299
24300 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
24301
24302         * gcc.c: Include diagnostic.h.
24303         (error_count): Remove.  All users changed to use errorcount.
24304         (programname): Remove.  All users changed to use progname.
24305         (fancy_abort, internal_error, fatal_error, error, warning, inform,
24306         fnotice): Remove.
24307         (execute): Don't include "Internal error" and bug reporting
24308         information in argument of internal_error call.
24309         (process_command): Don't increment error_count after calling
24310         perror_with_name.
24311         (input_filename): Rename to gcc_input_filename.  All users
24312         changed.
24313         (main): Call diagnostic_initialize.  Register delete_temp_files
24314         with atexit.  Use seen_error to test for errors.
24315         * gcc.h: Include diagnostic-core.h.
24316         (fatal_error, error, warning): Remove.
24317         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
24318         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
24319         (gcc.o): Update dependencies.
24320
24321 2010-05-28  Jeff Law  <law@redhat.com>
24322
24323         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
24324         functions.
24325         * ira.h (ira_bad_reload_regno): Declare
24326         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
24327
24328         * ira-color.c (update_curr_costs): Free updated hard reg costs.
24329         (ira_reassign_conflict_allocnos): Remove bogus asserts.
24330         (allocno_reload_assign): Likewise.
24331
24332 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
24333
24334         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
24335         build1_stat.
24336
24337 2010-05-28  Richard Guenther  <rguenther@suse.de>
24338
24339         PR lto/44312
24340         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
24341         Stream fixed-point constants mode.
24342         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
24343         and TYPE_PRECISION.
24344         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
24345         Stream fixed-point constants mode.
24346         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
24347         and TYPE_PRECISION.
24348
24349 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
24350
24351         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
24352         only place it was called from.
24353         (number_of_latch_executions): Do not return chrec_dont_know when the
24354         may_be_zero is a runtime condition: instead, return a COND_EXPR
24355         including the may_be_zero condition.
24356         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
24357         of nb_iterations.
24358         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
24359         COND_EXPRs.
24360
24361 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
24362
24363         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
24364         generate COND_EXPRs for degenerate_phi_result.
24365
24366 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
24367
24368         PR middle-end/44293
24369         * tree-if-conv.c (if_convertible_loop_p): Check the
24370         if-convertibility of phi nodes in non predicated BBs.
24371
24372 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
24373
24374         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
24375
24376 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
24377
24378         PR driver/15303
24379         * gcc.c (inform, warning, inform): New functions.
24380         (fatal_ice): Rename to internal_error; change cmsgid parameter to
24381         gmsgid.  All callers changed.
24382         (notice): Rename to fnotice; add parameter fp.  All callers changed.
24383         (fatal_error): Rename to fatal_signal.  All users changed.
24384         (fatal): Rename to fatal_error; change cmsgid parameter to
24385         gmsgid.  All callers changed.
24386         (process_command): Use warning instead of error for warnings.
24387         (end_going_arg): Don't use _() around argument of error.
24388         (do_spec_1): Use inform for message from %n specs.  Use warning
24389         instead of error for warnings.
24390         (main): Use inform for comparison messages.  Use warning for
24391         message about unused linker input.
24392         (error): Increment error_count.  Print "error: ".
24393         * gcc.h (fatal): Change to fatal_error.
24394         (warning): Declare.
24395         * config/darwin-driver.c (darwin_default_min_version): Use warning
24396         instead of fprintf for warnings.
24397         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
24398
24399 2010-05-28  Julian Brown  <julian@codesourcery.com>
24400
24401         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
24402         (*thumb2_addsi3_compare0_scratch): New.
24403         * config/arm/constraints.md (Pv): New.
24404         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
24405         for ARM mode only.
24406         (*addsi3_compare0_scratch): Likewise.
24407
24408 2010-05-28  Jan Hubicka  <jh@suse.cz>
24409
24410         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
24411         check.
24412         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
24413         only on local statics.
24414
24415 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
24416
24417         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
24418
24419 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
24420
24421         PR bootstrap/44314
24422         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
24423         (OPTION_GLIBC): Define.
24424
24425 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
24426
24427         PR debug/41048
24428         * dwarf2out.c (double_int_type_size_in_bits): New function.
24429         (round_up_to_align): Change first argument and return value to
24430         double_int.
24431         (field_byte_offset): Work internally on double_ints.
24432
24433         PR target/43636
24434         * builtins.c (expand_movstr): Use a temporary pseudo instead
24435         of target even when target is not NULL and not const0_rtx, but
24436         fails movstr predicate.
24437         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
24438
24439 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
24440
24441         * final.c (rest_of_clean_state): Use %m in errors instead of
24442         strerror (errno).
24443         * gengtype.c (read_input_list, close_output_files): Use xstrerror
24444         instead of strerror.
24445         * toplev.c (process_options): Use %m in errors instead of strerror
24446         (errno).
24447         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
24448         (errno).
24449
24450 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
24451
24452         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
24453         (ix86_canonical_va_list_type): Make static.  Add declaration.
24454         (ix86_enum_va_list): Make static.  Reindent.
24455         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
24456         (ix86_canonical_va_list_type): Ditto.
24457         (ix86_enum_va_list): Ditto.
24458
24459 2010-05-28  Richard Guenther  <rguenther@suse.de>
24460
24461         * lto-wrapper.c (run_gcc): With -save-temps generate a
24462         user-visible ltrans filename.  Fixup ltrans unit numbering.
24463
24464 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
24465
24466         * c-common.c (c_common_nodes_and_builtins): Replace use
24467         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
24468         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
24469         to ix86_enum_va_list.
24470         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
24471         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
24472         (TARGET_ENUM_VA_LIST_P): Add hook description.
24473         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
24474         * target.h (gcc_target): Add enum_va_list hook.
24475
24476         PR bootstrap/44299
24477         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
24478         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
24479         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
24480
24481 2010-05-28  Alan Modra  <amodra@gmail.com>
24482
24483         PR target/44266
24484         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
24485         emit_library_call machinery to set up __tls_get_addr calls.
24486
24487 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24488
24489         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
24490
24491 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
24492
24493         Revert fix for PR c++/44188
24494         * c-common.c (is_typedef_decl): Revert the moving of  this
24495         definition ...
24496         * tree.c (is_typedef_decl): ... here.
24497         (typdef_variant_p): Revert the moving of this  definition
24498         here from cp/tree.c.
24499         * c-common.h (is_typedef_decl): Revert the moving of this
24500         declaration ...
24501         * tree.h (is_typedef_decl): ... here.
24502         (typedef_variant_p): Revert the moving of this  declaration here
24503         from cp/cp-tree.h
24504         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
24505         (gen_tagged_type_die): Revert the splitting out of ...
24506         (gen_type_die_with_usage): ... this function. Revert the anonymous
24507         tagged type handling.
24508         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
24509         typedefs naming anonymous tagged types.
24510
24511 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
24512
24513         * config/rs6000/rs6000-modes.def (PSImode): Delete.
24514
24515 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
24516
24517         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
24518         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
24519         throughout.
24520         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
24521         "xer" to "ca".
24522         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
24523         XER_REGS to CA_REGS throughout.
24524         * config/rs6000/rs6000.h: Same.
24525         (ADDITIONAL_REGISTER_NAMES): Add "xer".
24526         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
24527         that mode_iterator "P" is the size for arithmetic carries as well.
24528         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
24529
24530 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
24531
24532         PR bootstrap/44255
24533         * combine.c (struct rtx_subst_pair): Define unconditionally.
24534         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
24535         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
24536         Call make_compound_operation on pair->to.
24537         (propagate_for_debug): Don't call make_compound_operation here.
24538         Always use simplify_replace_fn_rtx.
24539
24540 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
24541
24542         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
24543         * config/xtensa/xtensa.c (override_options): Check
24544           TARGET_FORCE_NO_PIC and set flag_pic.
24545         * config/xtensa/xtensa.opt: Document -mforce-no-pic
24546
24547 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
24548
24549         PR bootstrap/44299
24550         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
24551         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
24552
24553 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
24554
24555         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
24556         toplev.h.
24557         * diagnostic.c: Don't include toplev.h.
24558         (progname): Define.  Moved from toplev.c.
24559         (seen_error): New function.
24560         * diagnostic.h: Include diagnostic-core.h.
24561         (diagnostic_t, emit_diagnostic): Don't declare here.
24562         * toplev.c (progname): Move to toplev.c.
24563         (emit_debug_global_declarations, compile_file, finalize,
24564         do_compile, toplev_main): Use seen_error.
24565         * toplev.h: Include diagnostic-core.h.
24566         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
24567         internal_error, warning, warning_at, error, error_n, error_at,
24568         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
24569         verbatim, fnotice, progname): Move to diagnostic-core.h.
24570         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
24571         (expand_builtin_expect): Use seen_error.
24572         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
24573         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
24574         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
24575         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
24576         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
24577         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
24578         errorcount for errors.
24579         * c-opts.c (c_common_finish): Use seen_error.
24580         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
24581         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
24582         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
24583         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
24584         (get_coverage_counts): Use seen_error.
24585         * dwarf2out.c (dwarf2out_finish): Use seen_error.
24586         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
24587         gimplify_body): Use seen_error.
24588         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
24589         * ipa-pure-const.c (gate_pure_const): Use seen_error.
24590         * ipa-reference.c (gate_reference): Use seen_error.
24591         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
24592         * lambda-code.c: Include diagnostic-core.h instead of
24593         diagnostic.h.
24594         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
24595         * lto-compress.c: Include diagnostic-core.h instead of
24596         diagnostic.h.
24597         * lto-section-in.c: Include diagnostic-core.h instead of
24598         diagnostic.h.
24599         * lto-streamer-out.c: Include diagnostic-core.h instead of
24600         diagnostic.h.
24601         * lto-streamer.c: Include diagnostic-core.h instead of
24602         diagnostic.h.
24603         (gate_lto_out): Use seen_error.
24604         * matrix-reorg.c: Include diagnostic-core.h instead of
24605         diagnostic.h.
24606         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
24607         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
24608         (gate_expand_omp, lower_omp_1): Use seen_error.
24609         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
24610         (rest_of_decl_compilation, rest_of_type_compilation,
24611         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
24612         * tree-cfg.c (label_to_block_fn): Use seen_error.
24613         * tree-inline.c (optimize_inline_calls): Use seen_error.
24614         * tree-mudflap.c (mudflap_finish_file): Use
24615         seen_error.
24616         * tree-optimize.c (gate_all_optimizations,
24617         gate_all_early_local_passes, gate_all_early_optimizations): Use
24618         seen_error.
24619         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
24620         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
24621         (varpool_remove_unreferenced_decls,
24622         varpool_assemble_pending_decls): Use seen_error.
24623         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
24624         (TOPLEV_H, DIAGNOSTIC_H): Update.
24625         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
24626         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
24627         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
24628         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
24629         coverage.o, lambda-code.o): Update dependencies.
24630
24631 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
24632
24633         PR c++/44188
24634         * c-common.c (is_typedef_decl): Move this definition ...
24635         * tree.c (is_typedef_decl): ... here.
24636         (typdef_variant_p): Move definition here from cp/tree.c.
24637         * c-common.h (is_typedef_decl): Move this declaration ...
24638         * tree.h (is_typedef_decl): ... here.
24639         (typedef_variant_p): Move declaration here from cp/cp-tree.h
24640         * dwarf2out.c (is_naming_typedef_decl): New function.
24641         (gen_tagged_type_die): Split out of ...
24642         (gen_type_die_with_usage): ... this function. When an anonymous
24643         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
24644         is emitted for the typedef.
24645         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
24646         anonymous tagged types.
24647
24648 2010-05-27  Jason Merrill  <jason@redhat.com>
24649
24650         * print-tree.c (debug_vec_tree): New fn.
24651         (print_vec_tree): New fn.
24652         * tree.h: Declare them.
24653         * gdbinit.in (pvt): New command.
24654
24655         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
24656
24657         * gdbinit.in (pdd): New command.
24658
24659 2010-05-27  Jan Hubicka  <jh@suse.cz>
24660
24661         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
24662         (update_caller_keys): Return early if there are no callers;
24663         only update fibheap when decresing the key.
24664         (update_callee_keys): Avoid recursion.
24665         (decide_inlining_of_small_functions): When badness does not match;
24666         re-insert into fibheap.
24667
24668 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
24669
24670         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
24671         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
24672         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
24673         (ALL_HOST_OBJS): Now a union of the above two.
24674         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
24675         all files in ALL_HOST_FRONTEND_OBJS.
24676         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
24677
24678         * c-common.c: Pretend to be a backend file by undefining
24679         IN_GCC_FRONTEND (still need rtl.h here).
24680
24681 2010-05-27  Jan Hubicka  <jh@suse.cz>
24682
24683         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
24684         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
24685
24686 2010-05-27  Jan Hubicka  <jh@suse.cz>
24687
24688         * sched-ebb.c: Rename struct deps to struct deps_desc.
24689         * ddg.c: Likewise.
24690         * sel-sched-ir.c: Likewise.
24691         * sched-deps.c: Likewise.
24692         * sched-int.h: Likewise.
24693         * sched-rgn.c: Likewise.
24694
24695 2010-05-27  Jon Beniston  <jon@beniston.com>
24696
24697         PR 43726
24698         * config/lm32/lm32.h: Remove definition of
24699         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
24700
24701 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
24702
24703         PR lto/44230
24704         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
24705
24706 2010-05-27  Richard Guenther  <rguenther@suse.de>
24707
24708         PR tree-optimization/44284
24709         * tree-vect-stmts.c (vectorizable_assignment): Handle
24710         sign-changing conversions as simple copy.
24711
24712 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
24713
24714         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
24715         Bionic C library.
24716         (__gthread_active_p): Check for pthread_create if compiling against
24717         Bionic C library.
24718
24719 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
24720
24721         Support compilation for Android platform.  Reimplement -mandroid.
24722
24723         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
24724         (*android*): Set ANDROID_DEFAULT.
24725         (arm*-*-linux*): Include linux-android.h.
24726         (arm*-*-eabi*): Don't include previous -mandroid implementation.
24727         * config/arm/eabi.h: Remove, move Android-specific parts ...
24728         * config/linux-android.h: ... here.  New file.
24729         * config/arm/eabi.opt: Rename to ...
24730         * config/linux-android.opt: ... this.
24731         (mandroid): Allow -mno-android option.  Initialize based on
24732         ANDROID_DEFAULT.
24733         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
24734         Move logic to corresponding LINUX_TARGET_* macros.
24735         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
24736         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
24737         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
24738         Android definitions.
24739         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
24740         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
24741         Document.
24742
24743 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
24744
24745         Add support for Bionic C library
24746
24747         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
24748         macro.
24749         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
24750         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
24751
24752         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
24753         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
24754         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
24755         to support multiple C libraries.  Handle Bionic.
24756         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
24757         (BIONIC_DYNAMIC_LINKER64): Define.
24758         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
24759         Update.
24760         (TARGET_HAS_SINCOS): Enable for Bionic.
24761
24762         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
24763         the last option specified on command line take effect.
24764         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
24765         (mbionic): New.
24766         (mglibc, muclibc): Update.
24767
24768         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
24769         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
24770         DEFAULT_LIBC.
24771
24772         * doc/invoke.texi (-mglibc, -muclibc): Update.
24773         (-mbionic): Document.
24774
24775 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24776
24777         * c-common.h (c_register_addr_space): Add prototype.
24778         (ADDR_SPACE_KEYWORD): Remove.
24779         * c-common.c (c_register_addr_space): New function.
24780         (c_addr_space_name): Reimplement.
24781         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
24782
24783         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
24784         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
24785
24786         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
24787         Remove TARGET_ADDR_SPACE_KEYWORDS.
24788
24789 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
24790
24791         * input.c: New file.
24792         * input.h (main_input_filename): Move declaration to toplev.h.
24793         * toplev.c (input_location, line_table): Move to input.c
24794         * toplev.h (main_input_filename): Move declaration from input.h.
24795         * tree.c (expand_location): Move to input.c.
24796         * Makefile.in (OBJS-common): Add input.o.
24797         (input.o): Add dependencies.
24798
24799 2010-05-27  Richard Guenther  <rguenther@suse.de>
24800
24801         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
24802         for non-existant files.
24803         (fork_execute): Mark args_name file as deleted.
24804
24805 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
24806
24807         PR bootstrp/44287
24808         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
24809         (narrow_signed_type): Likewise.
24810
24811 2010-05-26  Jan Hubicka  <jh@suse.cz>
24812
24813         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
24814         edge only when checking is enabled; check using former_clone_of;
24815         check inline clones too.
24816         (cgraph_materialize_clone): Record former_clone_of pointer.
24817         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
24818         combining redirections; dump args_to_skip bitmap
24819         (cgraph_materialize_all_clones): Do no redirection here.
24820         * ipa-inline.c (inline_transform): Do redirection here.
24821         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
24822         cheking only).
24823
24824 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24825
24826         * config/avr/avr-c.c: Do not include regs.h.
24827         Include cpplib.h for cpp_define and tree.h for c-common.h.
24828         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
24829         * config/avr/t-avr: Fix dependencies for avr-c.o.
24830
24831 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24832
24833         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
24834         string instead of SYMBOL_REF rtx.
24835         * rtl.h (set_stack_check_libfunc): Move prototype from here...
24836         * libfuncs.h: ...to here.  Adjust for explow.c change.
24837
24838 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
24839
24840         * pretty-print.c: Don't include ggc.h.
24841         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
24842         (identifier_to_locale): Use them for allocation.
24843         * pretty-print.h (identifier_to_locale_alloc,
24844         identifier_to_locale_free): Declare.
24845         * toplev.c (alloc_for_identifier_to_locale): New.
24846         (general_init): Set identifier_to_locale_alloc and
24847         identifier_to_locale_free.
24848         * Makefile.in (pretty-print.o): Update dependencies.
24849
24850 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
24851
24852         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
24853         pointer types if they have different alignment or mode.
24854
24855 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
24856
24857         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24858         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24859         * config/sparc/sparc-protos.h (function_value): Remove declaration.
24860         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
24861         sparc_function_value_regno_p): New functions.
24862         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24863         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24864         (function_value): Rename to...
24865         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
24866         argument to 'outgoing'.
24867         (function_arg_record_value, function_arg_union_value,
24868         function_arg_vector_value): Update comment.
24869
24870 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
24871
24872         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
24873         (fde_needed_for_eh_p): New predicate.
24874         (output_call_frame_info): Use it throughout to decide whether FDEs
24875         are needed for EH purpose.
24876         (dwarf2out_begin_prologue): Reorder assignments.
24877
24878 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24879
24880         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
24881         special case loop->header.
24882         (is_predicated): New.
24883         (if_convertible_loop_p): Call it.
24884
24885 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24886
24887         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
24888         iterator in parameter.  Do not generate code during the analysis.
24889         (tree_if_convert_cond_stmt): Removed.
24890         (tree_if_convert_stmt): Removed.
24891         (predicate_bbs): New.
24892         (if_convertible_loop_p): Call predicate_bbs.
24893         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
24894         now contains all the analysis part.
24895
24896 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24897
24898         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
24899         statements in the analysis part.
24900         (tree_if_convert_stmt): Update comment.
24901         (remove_conditions_and_labels): New.
24902         (combine_blocks): Call remove_conditions_and_labels.
24903         (tree_if_conversion): Update comment.
24904
24905 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24906
24907         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
24908         than 2 predecessors or more than 2 successors.
24909
24910 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24911
24912         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
24913         of loops in which the data dependence analysis fails.
24914
24915 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24916
24917         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
24918         CDI_POST_DOMINATORS.
24919         (tree_if_conversion): Same.
24920
24921 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24922
24923         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
24924
24925 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24926
24927         * tree-if-conv.c: Update copyright years.  Fix comments.
24928         Fix indentation.
24929
24930 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
24931
24932         * builtin-types.def (BT_INT128): New primitive type.
24933         (BT_UINT128): Likewise.
24934         * c-common.c (c_common_r): Add __int128 keyword.
24935         (c_common_type_for_size): Handle __int128.
24936         (c_common_type_for_mode): Likewise.
24937         (c_common_signed_or_unsigned_type): Likewise.
24938         (c_common_nodes_and_builtins): Add builtin type
24939         if target supports 128-bit integer scalar.
24940         * c-common.h (enum rid): Add RID_INT128.
24941         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
24942         if target supports 128-bit integer scalar.
24943         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
24944         (finish_declspecs): Likewise.
24945         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
24946         (c_token_starts_declspecs): Likewise.
24947         (c_parser_declspecs): Likewise.
24948         (c_parser_attributes): Likewise.
24949         (c_parser_objc_selector): Likewise.
24950         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
24951         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
24952         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
24953         * tree.c (make_or_reuse_type): Likewise.
24954         (make_unsigned_type): Likewise.
24955         (build_common_tree_nodes_2): Likewise.
24956         * tree.h (enum integer_type_kind): Add itk_int128 and
24957         itk_unsigned_int128.
24958         (int128_integer_type_node): New define.
24959         (int128_unsigned_type_node): New define.
24960         * doc/extend.texi: Add documentation about __int128 type.
24961
24962 2010-05-26  Richard Guenther  <rguenther@suse.de>
24963
24964         * tree-ssa-sccvn.c (copy_nary): Adjust.
24965         (copy_phis): Rename to ...
24966         (copy_phi): ... this.  Adjust.
24967         (copy_references): Rename to ...
24968         (copy_reference): ... this.  Adjust.
24969         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
24970         result into the valid table.
24971
24972 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24973
24974         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
24975         insn-config.h, insn-codes.h, recog.h, and optabs.h.
24976
24977 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24978
24979         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
24980
24981 2010-05-26  Richard Guenther  <rguenther@suse.de>
24982
24983         * opts.c (common_handle_option): Handle OPT_Ofast.
24984
24985 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
24986
24987         * diagnostic.c: Don't include opts.h.
24988         (permissive_error_option): Define.
24989         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
24990         for classify_diagnostic.  Don't use memset for
24991         classify_diagnostic.  Initialize new and recently added fields.
24992         (diagnostic_classify_diagnostic): Use context->n_opts instead of
24993         N_OPTS.
24994         (diagnostic_report_diagnostic): Pass context parameter to
24995         diagnostic_report_warnings_p.  Use option_enabled and option_name
24996         hooks from context.
24997         (emit_diagnostic): Use permissive_error_option.
24998         (permerror): Likewise.
24999         * diagnostic.h: Don't include options.h.
25000         (struct diagnostic_context): Add n_opts, opt_permissive,
25001         inhibit_warnings, warn_system_headers, option_enabled and
25002         option_name fields.  Change classify_diagnostic to a pointer.
25003         * opts-diagnostic.h: New file.
25004         * opts.c: Include opts-diagnostic.h.
25005         (common_handle_option): Set global_dc fields for -Wfatal-errors,
25006         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
25007         (option_name): New function.
25008         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
25009         (c_common_handle_option): Set global_dc->permissive for
25010         -fpermissive.
25011         * c-common.c (c_cpp_error): Save and restore
25012         global_dc->warn_system_headers, not variable warn_system_headers.
25013         * toplev.c: Include opts-diagnostic.h.
25014         (general_init): Update call to diagnostic_initialize.  Set
25015         global_dc->show_column, global_dc->option_enabled and
25016         global_dc->option_name.
25017         (process_options): Don't set global_dc fields here.
25018         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
25019         (diagnostic.o, opts.o, toplev.o): Update dependencies.
25020
25021 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
25022
25023         * config/picochip/picochip.md (movsi): Split a movsi from a
25024         const after reload.
25025
25026 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25027
25028         * ggc-zone.c: Update copyright year.
25029         (poison_region): Mark memory for Valgrind as undefined before
25030         memset () call and inaccessible afterwards.
25031         (ggc_pch_total_size): Change type of i to int.
25032
25033 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25034
25035         * ggc-common.c (ggc_free_overhead): Allow empty slot.
25036
25037 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25038
25039         * ggc-common.c: Update copyright year.
25040         (ggc_rlimit_bound): Remove prototype.  Compile only if
25041         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
25042         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
25043         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
25044         (ggc_min_heapsize_heuristic): Likewise.
25045
25046 2010-05-26  Richard Guenther  <rguenther@suse.de>
25047
25048         PR rtl-optimization/44164
25049         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
25050         no-common access-path disambiguation.
25051         (indirect_ref_may_alias_decl_p): Adjust.
25052         (indirect_refs_may_alias_p): Likewise.
25053         (refs_may_alias_p_1): Likewise.
25054
25055 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
25056
25057         * c-typeck.c: Do not include expr.h.
25058
25059 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
25060
25061         * rtl.h (decl_default_tls_model): Move prototype from here...
25062         * output.h: ...to here.
25063         * c-decl.c: Do not include rtl.h.
25064         * c-pragma.c: Likewise.
25065         * c-parser.c: Likewise.
25066         * c-gimplify.c: Likewise.  And also not hard-reg-set.
25067         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
25068         FIXME note for it.  Add a FIXME note for expr.h.
25069         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
25070         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
25071         defined.
25072
25073 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
25074
25075         PR target/44199
25076         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
25077         or total_size is larger than red zone size for non-V4 ABI, emit a
25078         stack_tie resp. frame_tie insn before stack pointer restore.
25079         * config/rs6000/rs6000.md (frame_tie): New insn.
25080
25081 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
25082
25083         * function.h (struct function): Add can_throw_non_call_exceptions bit.
25084         * lto-streamer-in.c (input_function): Stream it in.
25085         * lto-streamer-out.c (output_function): Stream it out.
25086         * function.c (allocate_struct_function): Set it.
25087         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
25088         for flag_non_call_exceptions.
25089         * cfgbuild.c (control_flow_insn_p): Likewise.
25090         (make_edges): Likewise.
25091         * cfgexpand.c (expand_stack_alignment): Likewise.
25092         * combine.c (distribute_notes): Likewise.
25093         * cse.c (cse_extended_basic_block): Likewise.
25094         * except.c (insn_could_throw_p): Likewise.
25095         * gcse.c (simple_mem): Likewise.
25096         * ipa-pure-const.c (check_call): Likewise.
25097         (check_stmt ): Likewise.
25098         * lower-subreg.c (lower-subreg.c): Likewise.
25099         * optabs.c (emit_libcall_block): Likewise.
25100         (prepare_cmp_insn): Likewise.
25101         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
25102         * postreload.c (rest_of_handle_postreload): Likewise.
25103         * reload1.c (reload_as_needed): Likewise.
25104         (emit_input_reload_insns): Likewise.
25105         (emit_output_reload_insns): Likewise.
25106         (fixup_abnormal_edges): Likewise.
25107         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
25108         * store-motion.c (find_moveable_store): Likewise.
25109         * tree-eh.c (stmt_could_throw_p): Likewise.
25110         (tree_could_throw_p): Likewise.
25111         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
25112         * config/arm/arm.c (arm_expand_prologue): Likewise.
25113         (thumb1_expand_prologue): Likewise.
25114         * config/rx/rx.md (cbranchsf4): Likewise.
25115         (cmpsf): Likewise.
25116         * config/s390/s390.c (s390_emit_prologue): Likewise.
25117         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
25118         (inline_forbidden_into_p): New predicate.
25119         (expand_call_inline): Use it to forbid inlining.
25120         (tree_can_inline_p): Likewise.
25121
25122 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
25123
25124         * config/i386/i386-c.c: Do not include rtl.h.
25125         * config/i386/t-i386: Update dependencies.
25126
25127 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
25128
25129         * attribs.c: Do not include rtl.h.
25130         * Makefile.in: Update dependencies.
25131
25132 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
25133
25134         * double-int.h (double_int_and): New.
25135         * combine.c (try_combine): Clean up, use double_int_* and
25136         immed_double_int_const functions.
25137
25138 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25139
25140         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
25141         stderr to /dev/null instead of grep -q.
25142         * configure: Regenerate.
25143
25144 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
25145
25146         * Makefile.in (EXCEPT_H): Fix typo.
25147
25148 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
25149
25150         * ira-build.c (update_conflict_hard_reg_costs): New.
25151         (ira_build): Call update_conflict_hard_reg_costs.
25152
25153 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
25154
25155         PR debug/41371
25156         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
25157         ENABLE_CHECKING.
25158         (intersect_loc_chains): Walk the s2var's loc_chain together
25159         with s1node chain as long as the locations are equal, don't
25160         call find_loc_in_1pdv in that case.
25161
25162         PR debug/42801
25163         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
25164         (copy_bind_expr): ... instead of here.
25165         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
25166         if the block hasn't been remapped.
25167         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
25168         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
25169
25170 2010-05-25  Richard Guenther  <rguenther@suse.de>
25171
25172         PR middle-end/44069
25173         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
25174         out-of-bounds array accesses.
25175
25176 2010-05-25  Richard Guenther  <rguenther@suse.de>
25177
25178         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
25179         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
25180         (run_gcc): Re-organize to make cleanup easier.
25181
25182 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25183
25184         * config/s390/s390.c (optimization_options): Fix and move the
25185         flag_prefetch_loop_arrays override ...
25186         (override_options): ... here.
25187
25188 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
25189
25190         * diagnostic.c: Don't include plugin.h.
25191         (diagnostic_report_diagnostic): Don't handle plugins specially
25192         here.  Pass context to internal_error callback.
25193         * diagnostic.h (struct diagnostic_context): Add context parameter
25194         to internal_error callback.
25195         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
25196         * plugin.h (struct diagnostic_context): Declare.
25197         (warn_if_plugins, plugins_internal_error_function): Declare.
25198         * toplev.c (general_init): Set global_dc->internal_error.
25199         * Makefile.in (diagnostic.o): Update dependencies.
25200
25201 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
25202
25203         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
25204         * config/rs6000/t-darwin64: New.
25205         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
25206         build crt2.
25207
25208 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
25209
25210         PR 44203
25211         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
25212         match the original (and intended) behaviour before r159557.  This
25213         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
25214         in two ways.
25215
25216 2010-05-25  Richard Guenther  <rguenther@suse.de>
25217
25218         * doc/invoke.texi: Document -Ofast.
25219         * target.h (struct gcc_target): Add handle_ofast.
25220         * target-def.h (TARGET_HANDLE_OFAST): Add.
25221         (TARGET_INITIALIZER): Adjust.
25222         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
25223         * common.opt (Ofast): Add.
25224
25225 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
25226
25227         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
25228         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
25229
25230 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
25231
25232         PR target/43610
25233         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
25234         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
25235         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
25236         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
25237
25238 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
25239
25240         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
25241         DW_OP_minus with negated offset instead of DW_OP_plus.
25242         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
25243
25244 2010-05-25  Wei Guozhi  <carrot@google.com>
25245
25246         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
25247         tst instruction and a new alternative.
25248         * config/arm/constraints.md (Pu): New constraint.
25249
25250 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
25251
25252         * function.c (assign_stack_local_1): Initialize variable
25253         to avoid warning when bootstrapping at -O3.
25254
25255 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
25256
25257         * configure.ac (all_lang_makefiles): Remove everything related to it.
25258         * configure: Regenerate.
25259         * Makefile.in: Fix reference to ada Make-lang.in.
25260         Remove support for LANG_MAKEFILES.
25261
25262 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
25263             Sandra Loosemore  <sandra@codesourcery.com>
25264
25265         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
25266         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
25267         description.  Add arm_neon_fp16_ok.
25268         (Add Options): Add arm_neon and arm_neon_fp16.
25269
25270 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
25271
25272         * diagnostic.c: Don't include flags.h.
25273         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
25274         context parameters.  Check flags in the context passed as a parameter.
25275         (diagnostic_build_prefix): Add context parameter.  Check
25276         show_column flag in context.
25277         (diagnostic_action_after_output): Check fatal_errors flag in context.
25278         (diagnostic_report_current_module): Check show_column flag in context.
25279         (default_diagnostic_starter): Update call to
25280         diagnostic_build_prefix.
25281         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
25282         (emit_diagnostic): Pass context to permissive_error_kind.
25283         (permerror): Pass context to permissive_error_kind.
25284         * diagnostic.h (struct diagnostic_context): Add show_column,
25285         pedantic_errors, permissive and fatal_errors fields.
25286         (diagnostic_build_prefix): Update prototype.
25287         * langhooks.c
25288         * toplev.c (process_options): Set flags in global_dc from
25289         flag_show_column, flag_pedantic_errors, flag_permissive,
25290         flag_fatal_errors.
25291         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
25292         to diagnostic_build_prefix.
25293         * Makefile.in (diagnostic.o): Update dependencies.
25294
25295 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
25296
25297         * config/i386/ia32intrin.h (__crc32q): Define only if
25298         __SSE4_2__ is defined.
25299
25300 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
25301
25302         PR target/44132
25303         PR middle-end/43602
25304         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
25305         DECL_VISIBILITY_SPECIFIED.
25306         (emutls_decl): Set DECL_PRESERVE_P and copy
25307         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
25308         (emutls_finalize_control_var): New callback.
25309         (emutls_finish): Finalize emutls control variables.
25310         * toplev.c (compile_file): Move the call to emutls_finish ()
25311         before varpool_assemble_pending_decls ().
25312
25313 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
25314
25315         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
25316         added to the preprocessor condition.
25317
25318 2010-05-24  Paul Brook  <paul@codesourcery.com>
25319
25320         * gengtype-lex.l: Add HARD_REG_SET.
25321         * expr.c (expand_expr_real_1): Record writes to hard registers.
25322         * function.c (rtl_data): Add asm_clobbers.
25323         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
25324         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
25325         Use crtl->asm_clobbers.
25326
25327 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25328
25329         * doc/makefile.texi (Makefile): Mention stages 'profile'
25330         and 'feedback' for profiledbootstrap.
25331
25332 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
25333
25334         PR target/44245
25335         * config/i386/i386.c (def_builtin): Properly check
25336         OPTION_MASK_ISA_64BIT.
25337
25338 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
25339
25340         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
25341         typedefs with different but compatible types.  Allow duplicate
25342         typedefs with the same type except for pedantic non-C1X, but give
25343         warning for variably modified types.
25344         * c-typeck.c (tagged_types_tu_compatible_p,
25345         function_types_compatible_p, type_lists_compatible_p,
25346         comptypes_internal): Add parameter different_types_p; set
25347         *different_types_p for different but compatible types.  All
25348         callers changed.
25349         (comptypes_check_different_types): New.
25350         * c-tree.h (comptypes_check_different_types): Declare.
25351
25352 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
25353
25354         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
25355         * jump.c: Include basic-block.h.
25356         * profile.c: Likewise.
25357         * tree-profile.c: Likewise.
25358         * coverage.c: Likewise.
25359         * basic-block.h (optimize_function_for_size_p): Move to function.h.
25360         (optimize_function_for_speed_p): Likewise.
25361         * function.h (optimize_function_for_size_p,
25362         optimize_function_for_speed_p): Moved here from basic-block.h.
25363         * Makefile.in: Update dependencies.
25364
25365 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25366
25367         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
25368         before calling make; allow override through $MAKE.
25369         * doc/invoke.texi (Optimize Options): Document override.
25370
25371 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
25372
25373         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
25374         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25375         (rs6000_mode_dependent_address_ptr): Make static.
25376         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25377         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
25378         Remove.
25379
25380 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
25381
25382         PR target/43869
25383         * config/i386/i386.c: Make sure that the correct regparm is passed.
25384
25385 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
25386
25387         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
25388         * sbitmap.c: ...to here to internalize sbitmap element access.
25389         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
25390         Explain why basic-block.h is included.
25391         * function.h: Include tm.h for CUMULATIVE_ARGS.
25392         * Makefile.in: Update dependencies.
25393
25394 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
25395
25396         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
25397         New core types.
25398         * sbitmap.h (struct sbitmap_def): Do not typedef here.
25399         * sbitmap.c: Include sbitmap.h.
25400         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
25401         hard-reg-set.h.  Split everything related to regsets out from here...
25402         * regset.h: ...to here.  New file.
25403         * df.h: Include regset.h and sbitmap.h.
25404         * tree-flow.h: Likewise.
25405         * cfgloop.h: Likewise.
25406         * except.h: Do not include sbitmap.h.  Include hashtab.h.
25407         * cgraph.h: Include vec.h and function.h.
25408         * reload.h (struct insn_chain): Change types of live_throughout
25409         and dead_or_set from regset_head to bitmap_head.
25410         (compute_use_by_pseudos): Be defined also if regset.h is not included.
25411         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
25412         spilled_regs from regset_head to bitmap_head to avoid dependency
25413         in regset.h.
25414         * sel-sched-ir.h: Include regset.h.
25415         * reload.c: Include df.h before reload.h.
25416         * caller-save.c: Likewise.
25417         * reload1.c: Likewise.
25418         * ira.c: Likewise.
25419         (mark_elimination): Update type of r to bitmap, consistent with
25420         DF_LR_IN.
25421         * dominance.c: Include bitmap.h.
25422         * modulo-sched.c: Include df.h.
25423         * cfganal.c: Include bitmap.h and sbitmap.h.
25424         * cfgbuild.c: Include sbitmap.h.
25425         * lcm.c: Include sbitmap.h.
25426         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
25427         * domwalk.c: Include sbitmap.h, exclude ggc.h.
25428         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
25429         * cselib.c: Include bitmap.h.
25430         * tree-optimize.c: Include regset.h.
25431         * stmt.c: Include bitmap.h.
25432         * Makefile.in: Update dependencies.
25433
25434 2010-05-22  Jan Hubicka  <jh@suse.cz>
25435
25436         * cgraph.h (struct varpool_node): Add same_comdat_group.
25437         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
25438         pointer.
25439         (output_varpool): Update call of lto_output_varpool_node.
25440         (input_varpool): Read same_comdat_group pointer.
25441         (input_varpool_1): Fixup same_comdat_group pointer.
25442         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
25443         group is needed, all are.
25444         * varpool.c (varpool_remove_node): Remove node from same comdat group
25445         linklist too.
25446         (varpool_analyze_pending_decls): Walk same comdat groups.
25447
25448 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
25449
25450         * rtl.h (union rtunion_def): Remove rt_bit member.
25451         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
25452         * print-rtl (print_rtx): Do not print the member.
25453         * gengtype.c (adjust_field_rtx_def): Do not handle it.
25454         * gengenrtl.c (type_from_format): Likewise.
25455         (accessor_from_format): Likewise.
25456
25457 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
25458
25459         * dbgcnt.c: Include toplev.h instead of errors.h.
25460         * ira-emit.c: Don't include errors.h.
25461         * ira.c: Include toplev.h instead of errors.h.
25462         * lto-compress.c: Include toplev.h instead of errors.h.
25463         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
25464         ira.o, dbgcnt.o): Update dependencies.
25465
25466 2010-05-22  Richard Guenther  <rguenther@suse.de>
25467
25468         * gimple.c (gimple_types_compatible_p): Check type qualifications
25469         before merging pointer to complete and pointer to incomplete type.
25470         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
25471         we use our own resolution algorithm.  The gold linker plugin
25472         doesn't do the job we want it to do here.
25473
25474 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
25475
25476         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25477         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25478         (sparc_mode_dependent_address_p): New function.
25479
25480 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
25481
25482         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
25483
25484         * timevar.c: Do not include any core headers.
25485         (timevar_print): De-i18n-ize.
25486         (print_time): Likewise.
25487         * timevar.h (timevar_push, timevar_pop): Make inline functions.
25488
25489 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
25490
25491         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
25492         langhooks-def.h.
25493         (diagnostic_initialize): Initialize x_data not last_function.
25494         (diagnostic_report_current_function): Move to tree-diagnostic.c.
25495         (default_diagnostic_starter): Call
25496         diagnostic_report_current_module not
25497         diagnostic_report_current_function.
25498         (diagnostic_report_diagnostic): Initialize x_data not
25499         abstract_origin.
25500         (verbatim): Likewise.
25501         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
25502         x_data.
25503         (struct diagnostic_context): Change last_function to x_data.
25504         (diagnostic_auxiliary_data): Replace with
25505         diagnostic_context_auxiliary_data and
25506         diagnostic_info_auxiliary_data.
25507         (diagnostic_last_function_changed, diagnostic_set_last_function,
25508         diagnostic_report_current_function): Move to tree-diagnostic.h.
25509         (print_declaration, dump_generic_node, print_generic_stmt,
25510         print_generic_stmt_indented, print_generic_expr,
25511         print_generic_decl, debug_c_tree, dump_omp_clauses,
25512         print_call_name, debug_generic_expr, debug_generic_stmt,
25513         debug_tree_chain, default_tree_printer): Move to
25514         tree-pretty-print.h.
25515         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
25516         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
25517         gimple-pretty-print.h.
25518         * pretty-print.c: Don't include tree.h
25519         (pp_base_format): Don't handle %K here.
25520         (pp_base_tree_identifier): Move to tree-pretty-print.c.
25521         * pretty-print.h (text_info): Change abstract_origin to x_data.
25522         (pp_tree_identifier, pp_unsupported_tree,
25523         pp_base_tree_identifier): Move to tree-pretty-print.h.
25524         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
25525         tree-pretty-print.h: New files.
25526         * tree-pretty-print.c: Include tree-pretty-print.h.
25527         (percent_K_format): New.  Moved from pretty-print.c.
25528         (pp_base_tree_identifier): Move from pretty-print.c.
25529         * c-objc-common.c: Include tree-pretty-print.h.
25530         (c_tree_printer): Handle %K here.
25531         * langhooks.c: Include tree-diagnostic.h.
25532         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
25533         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
25534         (default_tree_printer): Handle %K using percent_K_format.
25535         (general_init): Use default_tree_diagnostic_starter.
25536         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
25537         (free_lang_data): Use default_tree_diagnostic_starter.
25538         * c-pretty-print.c: Include tree-pretty-print.h.
25539         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25540         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25541         * dwarf2out.c: Include tree-pretty-print.h.
25542         * except.c: Include tree-pretty-print.h.
25543         * gimple-pretty-print.c: Include tree-pretty-print.h and
25544         gimple-pretty-print.h.
25545         * gimplify.c: Include tree-pretty-print.h.
25546         * graphite-poly.c: Include tree-pretty-print.h and
25547         gimple-pretty-print.h.
25548         * ipa-cp.c: Include tree-pretty-print.h.
25549         * ipa-inline.c: Include gimple-pretty-print.h.
25550         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25551         * ipa-pure-const.c: Include gimple-pretty-print.h.
25552         * ipa-struct-reorg.c: Include tree-pretty-print.h and
25553         gimple-pretty-print.h.
25554         * ipa-type-escape.c: Include tree-pretty-print.h.
25555         * print-rtl.c: Include tree-pretty-print.h.
25556         * print-tree.c: Include gimple-pretty-print.h.
25557         * sese.c: Include tree-pretty-print.h.
25558         * tree-affine.c: Include tree-pretty-print.h.
25559         * tree-browser.c: Include tree-pretty-print.h.
25560         * tree-call-cdce.c: Include gimple-pretty-print.h.
25561         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25562         * tree-chrec.c: Include tree-pretty-print.h.
25563         * tree-data-ref.c: Include tree-pretty-print.h and
25564         gimple-pretty-print.h.
25565         * tree-dfa.c: Include tree-pretty-print.h.
25566         * tree-if-conv.c: Include tree-pretty-print.h and
25567         gimple-pretty-print.h.
25568         * tree-inline.c: Include tree-pretty-print.h.
25569         * tree-into-ssa.c: Include tree-pretty-print.h and
25570         gimple-pretty-print.h.
25571         * tree-nrv.c: Include tree-pretty-print.h.
25572         * tree-object-size.c: Include tree-pretty-print.h and
25573         gimple-pretty-print.h.
25574         * tree-outof-ssa.c: Include tree-pretty-print.h and
25575         gimple-pretty-print.h.
25576         * tree-parloops.c: Include tree-pretty-print.h and
25577         gimple-pretty-print.h.
25578         * tree-predcom.c: Include tree-pretty-print.h and
25579         gimple-pretty-print.h.
25580         * tree-scalar-evolution.c: Include tree-pretty-print.h and
25581         gimple-pretty-print.h.
25582         * tree-sra.c: Include tree-pretty-print.h.
25583         * tree-ssa-address.c: Include tree-pretty-print.h.
25584         * tree-ssa-alias.c: Include tree-pretty-print.h.
25585         * tree-ssa-ccp.c: Include tree-pretty-print.h and
25586         gimple-pretty-print.h.
25587         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
25588         * tree-ssa-copy.c: Include tree-pretty-print.h and
25589         gimple-pretty-print.h.
25590         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
25591         * tree-ssa-dce.c: Include tree-pretty-print.h and
25592         gimple-pretty-print.h.
25593         * tree-ssa-dom.c: Include tree-pretty-print.h and
25594         gimple-pretty-print.h.
25595         * tree-ssa-dse.c: Include gimple-pretty-print.h.
25596         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
25597         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
25598         * tree-ssa-live.c: Include tree-pretty-print.h and
25599         gimple-pretty-print.h.
25600         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
25601         gimple-pretty-print.h.
25602         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
25603         gimple-pretty-print.h.
25604         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
25605         gimple-pretty-print.h.
25606         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
25607         gimple-pretty-print.h.
25608         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
25609         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
25610         * tree-ssa-operands.c: Include tree-pretty-print.h and
25611         gimple-pretty-print.h.
25612         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
25613         gimple-pretty-print.h.
25614         * tree-ssa-pre.c: Include tree-pretty-print.h and
25615         gimple-pretty-print.h.
25616         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
25617         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
25618         gimple-pretty-print.h.
25619         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
25620         gimple-pretty-print.h.
25621         * tree-ssa-sink.c: Include gimple-pretty-print.h.
25622         * tree-ssa-ter.c: Include tree-pretty-print.h and
25623         gimple-pretty-print.h.
25624         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
25625         * tree-ssa.c: Include tree-pretty-print.h and
25626         gimple-pretty-print.h.
25627         * tree-stdarg.c: Include gimple-pretty-print.h.
25628         * tree-switch-conversion.c: Include gimple-pretty-print.h.
25629         * tree-tailcall.c: Include tree-pretty-print.h and
25630         gimple-pretty-print.h.
25631         * tree-vect-data-refs.c: Include tree-pretty-print.h and
25632         gimple-pretty-print.h.
25633         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
25634         gimple-pretty-print.h.
25635         * tree-vect-loop.c: Include tree-pretty-print.h and
25636         gimple-pretty-print.h.
25637         * tree-vect-patterns.c: Include gimple-pretty-print.h.
25638         * tree-vect-slp.c: Include tree-pretty-print.h and
25639         gimple-pretty-print.h.
25640         * tree-vect-stmts.c: Include tree-pretty-print.h and
25641         gimple-pretty-print.h.
25642         * tree-vectorizer.c: Include tree-pretty-print.h.
25643         * tree-vrp.c: Include tree-pretty-print.h and
25644         gimple-pretty-print.h.
25645         * value-prof.c: Include tree-pretty-print.h and
25646         gimple-pretty-print.h.
25647         * var-tracking.c: Include tree-pretty-print.h.
25648         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
25649         (tree-diagnostic.o): New dependencies.
25650         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
25651         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
25652         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
25653         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
25654         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
25655         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
25656         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
25657         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
25658         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
25659         tree-ssa-address.o, tree-ssa-loop-niter.o,
25660         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
25661         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
25662         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
25663         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
25664         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
25665         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
25666         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
25667         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
25668         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
25669         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
25670         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
25671         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
25672         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
25673         tree-switch-conversion.o, var-tracking.o, value-prof.o,
25674         cfgexpand.o, pretty-print.o): Update dependencies.
25675
25676 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
25677
25678         * tree-ssa-structalias.c: Remove tm_p.h from include.
25679
25680 2010-05-21  Jeff Law  <law@redhat.com>
25681
25682         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
25683
25684 2010-05-21  Jason Merrill  <jason@redhat.com>
25685
25686         * tree-eh.c (cleanup_is_dead_in): New.
25687         (lower_try_finally): Don't generate a dead cleanup region.
25688         (lower_cleanup): Likewise.
25689
25690 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
25691
25692         PR debug/44223
25693         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
25694         unchain each use from the cyclic next_regno_use chain first.
25695
25696 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
25697
25698         * real: Do not include gmp.h, mpfr.h, and mpc.h.
25699         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
25700         (real_value_negate, real_value_abs): New prototypes.
25701         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
25702         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
25703         new include file for interface between MPFR and REAL_VALUE_TYPE.
25704         * real.c: Include realmpfr.h.
25705         (real_arithmetic2): Remove legacy function.
25706         (real_value_negate): New.
25707         (real_value_abs): New.
25708         (mfpr_from_real, real_from_mpfr): Move from here...
25709         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
25710         * builtins.c: Include realmpfr.h.
25711         * fold-const.c: Include realmpfr.h.
25712         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
25713         (fold_negate_const): Likewise.
25714         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
25715         * toplev.c: Include realmpfr.h.
25716         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
25717         and real_value_negate.
25718         * fixed-value.c (check_real_for_fixed_mode): Likewise.
25719         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
25720         (vfp3_const_double_index): Likewise.
25721         (arm_print_operand): Likewise.
25722         * Makefile.in: Update dependencies.
25723
25724 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25725
25726         * config/s390/s390.c (override_options): Increase the default
25727         of max-completely-peel-times.
25728
25729 2010-05-21  Julian Brown  <julian@codesourcery.com>
25730             Mark Mitchell  <mark@codesourcery.com>
25731
25732         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
25733         sibling calls for Thumb-1.
25734         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
25735         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
25736         Thumb-2.
25737         (*call_insn, *call_value_insn): Don't use for Thumb-2.
25738         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
25739         for Thumb-2.
25740         (return): New expander.
25741         (*arm_return): New name for ARM return insn.
25742         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
25743
25744 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
25745
25746         * config.gcc (sparc64-*-rtems*): New target.
25747
25748 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
25749
25750         * tree.c (build_function_decl_skip_args): Fix grammar.
25751         (build_function_type_list_1): Fix typos, adjust formatting.
25752
25753 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
25754
25755         * tree.h: Include real.h and fixed-value.h as basic datatypes.
25756         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
25757         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
25758         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
25759         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
25760         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
25761         tree-pretty-print.c, tree-loop-distribution.c,
25762         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
25763         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
25764         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
25765         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
25766         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
25767         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
25768         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
25769         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
25770         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
25771         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
25772         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
25773         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
25774         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
25775         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
25776         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
25777         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
25778         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
25779         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
25780         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
25781         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
25782         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
25783         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
25784         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
25785         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
25786         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
25787         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
25788         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
25789         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
25790         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
25791         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
25792         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
25793         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
25794         config/score/score7.c, config/score/score.c, config/arm/arm.c,
25795         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
25796         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
25797         config/bfin/bfin.c: Clean up redundant includes.
25798         * Makefile.in: Update accordingly.
25799
25800 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
25801
25802         PR middle-end/44204
25803         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
25804         statement has no arguments.
25805
25806 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
25807
25808         PR/44139
25809         * varasm.c (emutls_decl): Merge attributes to new decl.
25810
25811 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
25812
25813         PR middle-end/44101
25814         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
25815         around the uniquized constructor if its type requires a conversion.
25816
25817 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
25818
25819         PR debug/44205
25820         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
25821         at -O0 goto_locus of any of the incoming edges differs from
25822         goto_locus of outgoing edge, or gimple_location of any of the
25823         labels differs.
25824
25825 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
25826
25827         * ira.c (ira_non_ordered_class_hard_regs): Define.
25828         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
25829         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
25830         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
25831         cost of unaligned hard regs when allocating multi-reg pseudos.
25832
25833 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
25834
25835         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
25836         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
25837         for TARGET_NO_FLOAT.
25838         * config/mips/mips.c (mips_file_start): Expand conditional expression
25839         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
25840         (mips_override_options): Move -mno-float override -msoft-float and
25841         -mhard-float.
25842         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
25843         Condition(TARGET_SUPPORTS_NO_FLOAT).
25844         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
25845         __mips_no_float here.
25846         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
25847         (TARGET_SUPPORTS_NO_FLOAT): Define.
25848         * config/mips/sdemtk.opt: Delete.
25849
25850 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
25851
25852         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
25853
25854 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
25855
25856         PR target/43733
25857         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
25858         * configure: Regenerate.
25859         * config.in: Regenerate.
25860         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
25861         instead of sahf only for 64bit targets.
25862
25863 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
25864
25865         PR debug/44178
25866         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
25867         setup_ref_regs for DEBUG_INSNs.
25868
25869 2010-05-20  Jan Hubicka  <jh@suse.cz>
25870
25871         PR middle-end/44197
25872         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
25873
25874 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
25875
25876         PR bootstrap/43870
25877         * df-scan.c (df_ref_compare): Stabilize sort.
25878
25879 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
25880
25881         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
25882         argument.  Don't use DW_OP_piece if offset is non-zero,
25883         put offset into second DW_OP_bit_piece argument.
25884         (dw_sra_loc_expr): Adjust callers.  For memory expressions
25885         compute offset.
25886
25887 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
25888
25889         PR target/44202
25890         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
25891         settings for 16-bit-constant "addo" alternative.
25892
25893 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
25894
25895         * config/mips/mips-dsp.md (add<DSPV:mode>3,
25896         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
25897
25898         PR target/43764
25899         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
25900         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
25901         Use it.
25902
25903 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
25904
25905         * diagnostic.c (FLOAT, FFS): Don't undefine.
25906         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
25907         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
25908         include ordering.
25909
25910 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25911
25912         * combine.c (propagate_for_debug): Call make_compound_operation
25913         on the source value.
25914         (try_combine): When implementing a split chosen by find_split_point,
25915         either copy i2src or set it to null.  Assert that i2src is not null
25916         before substituting into CALL_INSN_FUNCTION_USAGE.
25917
25918 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
25919
25920         * double-int.h (double_int_ior): New function.
25921         * tree.h (build_int_cst_wide_type): Remove.
25922         * tree.c (build_int_cst_wide_type): Remove.
25923         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
25924         of build_int_cst_wide_type.
25925         * stor-layout.c (set_sizetype): (Ditto.).
25926         * dojump.c (do_jump): Use build_int_cstu instead of
25927         build_int_cst_wide_type.
25928
25929 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
25930
25931         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
25932         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
25933         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
25934         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
25935         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
25936         propagate the 'data' argument to copy_tree_r.
25937         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
25938         Propagate 'data' argument to walk_tree.
25939         (copy_if_shared): New function.
25940         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
25941         (unmark_visited): New function.
25942         (unshare_body): Call copy_if_shared instead of doing it manually.
25943         (unvisit_body): Call unmark_visited instead of doing it manually.
25944
25945 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
25946
25947         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
25948         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
25949         * hooks.c: Likewise.
25950         * target-def.h (TARGET_FOLD_BUILTIN): Define to
25951         hook_tree_tree_int_treep_bool_null.
25952         * target.h (struct gcc_target): Update signature of fold_builtin
25953         field.
25954         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
25955         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
25956         instead of the call expression.
25957         (fold_builtin_call_array): Pass n and argarray directly.
25958         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
25959         consing a list.
25960         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
25961         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
25962         `i' and use it in place of `arity'.
25963         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
25964         Dereference `args' directly.
25965         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
25966
25967 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25968
25969         * doc/sourcebuild.texi (Effective-Target Keywords): Document
25970         3dnow, sse3, sse2.
25971         (Directives): Document optional dg-require-effective-target
25972         selector.
25973
25974 2010-05-19  Richard Guenther  <rguenther@suse.de>
25975
25976         PR lto/44196
25977         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
25978
25979 2010-05-19  Richard Guenther  <rguenther@suse.de>
25980
25981         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
25982         * common.opt (fwhopr=): New.
25983         * opts.c (common_handle_option): Handle OPT_fwhopr.
25984         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
25985         * collect2.c (main): Match -fwhopr*.
25986         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
25987         Execute ltrans stage in parallel when jobs is bigger than 1.
25988
25989 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25990
25991         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
25992         pentiumpro on Solaris 8/x86 with Sun as.
25993         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
25994         hidden alias bug.
25995         (gcc_cv_as_ix86_quad): Check for .quad directive.
25996         * configure: Regenerate.
25997         * config.in: Regenerate.
25998         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
25999
26000 2010-05-19  Martin Jambor  <mjambor@suse.cz>
26001
26002         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
26003         also for indirect edges.  Actual printing moved...
26004         (ipa_print_node_jump_functions_for_edge): ...here.
26005         (ipa_compute_jump_functions): Renamed to
26006         ipa_compute_jump_functions_for_edge and made static.
26007         (ipa_compute_jump_functions): New function.
26008         (make_edge_direct_to_target): Check if the number of arguments on
26009         the newly direct edge is the same as the number of parametrs of
26010         the callee.
26011         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
26012         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
26013         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
26014         analysis functions unconditionally, call the new
26015         ipa_analyze_params_uses on the node instead of every edge.
26016
26017 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
26018
26019         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
26020         to tree.
26021         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
26022         also checks for a constant int vs.  non-constant but
26023         loop-invariant steps.
26024         (find_or_create_group): Change the sort algorithm to only consider
26025         steps that are constant ints.
26026         (idx_analyze_ref): Adopt code to handle a tree instead of a
26027         HOST_WIDE_INT for step.
26028         (gather_memory_references_ref): Handle tree instead of int and be
26029         prepared to see a NULL_TREE.
26030         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
26031         prefetches if the step cannot be calculated at compile time.
26032         (issue_prefetch_ref): Issue prefetches for non-constant but
26033         loop-invariant steps.
26034
26035 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
26036
26037         Revert:
26038         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
26039
26040         * tree.h (build_call_list): Remove.
26041         * tree.c (build_call_list): Remove.
26042
26043 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
26044
26045         * tree.h (build_call_list): Remove.
26046         * tree.c (build_call_list): Remove.
26047
26048 2010-05-18  Jan Hubicka  <jh@suse.cz>
26049
26050         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
26051
26052 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
26053
26054         PR rtl-optimization/43332
26055         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
26056
26057 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
26058
26059         * tree.h (build_int_cstu): Implement as static inline.
26060         * tree.c (build_int_cstu): Remove function.
26061         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
26062         sign extended.
26063
26064 2010-05-18  Richard Guenther  <rguenther@suse.de>
26065
26066         PR lto/44143
26067         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
26068         (debug): Initialize from -save-temps.
26069         (collect_execute): Print command-line when verbose.
26070         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
26071         for ltrans invocation.  Produce -dumpbase flag again.
26072         (process_args): Remove.
26073         (main): Simplify.
26074         * collect2.c (maybe_run_lto_and_relink): Only pass object
26075         files to lto-wrapper.
26076         * gcc.c (LINK_COMMAND_SPEC): Likewise.
26077
26078 2010-05-18  Jan Hubicka  <jh@suse.cz>
26079
26080         * opts.c (decode_options): Do not disable whopr at ipa_cp.
26081         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
26082
26083 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
26084
26085         PR lto/44184
26086         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
26087         in a GIMPLE_ASM.
26088         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
26089         in a GIMPLE_ASM.
26090
26091 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
26092
26093         PR debug/41371
26094         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
26095         rtx_equal_p inline.
26096
26097 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
26098
26099         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
26100         lto-macho as lto_binary_reader.
26101
26102         * darwin.c (darwin_asm_named_section): Do not add assembler comment
26103         after .section directive; just print it before the directive instead.
26104
26105 2010-05-17  Jan Hubicka  <jh@suse.cz>
26106
26107         * cgraph.c (cgraph_create_virtual_clone): Only check
26108         versionable_function_p when not in wpa and checking is enabled.
26109         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
26110         there are no more functions to materialize.
26111
26112 2010-05-17  Jan Hubicka  <jh@suse.cz>
26113
26114         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
26115         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
26116         New functions.
26117         (output_cgraph): Call output_cgraph_opt_summary.
26118         (input_cgrpah): Call input_cgraph_opt_summary.
26119         (output_cgraph_opt_summary_p, output_node_opt_summary,
26120         input_node_opt_summary, input_cgraph_opt_section): New functions.
26121         * lto-section-in.c (lto_section_name): Add cgraphopt.
26122         * tree-inline.c (tree_function_versioning): Handle parm_num.
26123         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
26124         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
26125
26126 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
26127
26128         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
26129         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
26130         the insn to prefetch ratio heuristic to loops with known trip count.
26131
26132 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
26133
26134         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
26135         (schedule_prefetches): Do not generate a prefetch if the unroll factor
26136         is far from what is required by the prefetch.
26137
26138 2010-05-17  Jan Hubicka  <jh@suse.cz>
26139
26140         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
26141         (ipcp_estimate_growth): Likewise.
26142         (ipcp_const_param_count): Likewise.
26143         (ipcp_insert_stage): Likewise.
26144         * ipa-prop.c (visit_load_for_mod_analysis): New function.
26145         (visit_store_addr_for_mod_analysis): Set used flag.
26146         (ipa_detect_param_modifications): Set used flag for SSE params;
26147         update use of walk_stmt_load_store_addr_ops.
26148         (ipa_print_node_params): Print used flag.
26149         (ipa_write_node_info): Stream used flag.
26150         (ipa_read_node_info): Likewise.
26151         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
26152         (ipa_is_param_used): New function.
26153         (lto_ipa_fixup_call_notes): Remove unused declaration.
26154
26155 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26156
26157         PR target/44074
26158         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
26159         * configure: Regenerate.
26160         * config.in: Regenerate.
26161         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
26162         !HAVE_AS_IX86_REP_LOCK_PREFIX.
26163         Don't emit whitespace.
26164         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
26165         (*rep_movsi): Likewise.
26166         (*rep_movsi_rex64): Likewise.
26167         (*rep_movqi): Likewise.
26168         (*rep_movqi_rex64): Likewise.
26169         (*rep_stosdi_rex64): Likewise.
26170         (*rep_stossi): Likewise.
26171         (*rep_stossi_rex64): Likewise.
26172         (*rep_stosqi): Likewise.
26173         (*rep_stosqi_rex64): Likewise.
26174         (*cmpstrnqi_nz_1): Use {%;} after repz.
26175         (*cmpstrnqi_nz_rex_1): Likewise.
26176         (*cmpstrnqi_1): Likewise.
26177         (*cmpstrnqi_rex_1): Likewise.
26178         (*strlenqi_1): Use {%;} after repnz.
26179         (*strlenqi_rex_1): Likewise.
26180         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
26181         (*sync_compare_and_swap<mode>): Likewise.
26182         (sync_double_compare_and_swap<mode>): Likewise.
26183         (*sync_double_compare_and_swapdi_pic): Likewise.
26184         (sync_old_add<mode>): Likewise.
26185         (sync_add<mode>): Likewise.
26186         (sync_sub<mode>): Likewise.
26187         (sync_<code><mode>): Likewise.
26188
26189 2010-05-17  Martin Jambor  <mjambor@suse.cz>
26190
26191         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
26192         otr_token and polymorphic.
26193         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
26194         (cgraph_clone_edge): Copy the above fields.
26195         * tree.c (get_binfo_at_offset): New function.
26196         * tree.h (get_binfo_at_offset): Declare.
26197         * ipa-prop.h (enum jump_func_type): Added known_type jump function
26198         type, reordered items, updated comments.
26199         (union jump_func_value): Added base_type field, reordered fields.
26200         (enum ipa_lattice_type): Moved down in the file.
26201         (struct ipa_param_descriptor): New field polymorphic.
26202         (ipa_is_param_polymorphic): New function.
26203         * ipa-prop.c: Include gimple.h and gimple-fold.h.
26204         (ipa_print_node_jump_functions): Print known type jump functions.
26205         (compute_complex_pass_through): Renamed to...
26206         (compute_complex_assign_jump_func): this.
26207         (compute_complex_ancestor_jump_func): New function.
26208         (compute_known_type_jump_func): Likewise.
26209         (compute_scalar_jump_functions): Create known type and complex ancestor
26210         jump functions.
26211         (ipa_note_param_call): New parameter polymorphic, set the corresponding
26212         flag in the call note accordingly.
26213         (ipa_analyze_call_uses): Renamed to...
26214         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
26215         variable var only in the block where it is used.
26216         (ipa_analyze_virtual_call_uses): New function.
26217         (ipa_analyze_call_uses): Likewise.
26218         (combine_known_type_and_ancestor_jfs): Likewise.
26219         (update_jump_functions_after_inlining): Implemented handling of a
26220         number of new jump function types combination.
26221         (print_edge_addition_message): Removed.
26222         (make_edge_direct_to_target): New function.
26223         (try_make_edge_direct_simple_call): Likewise.
26224         (try_make_edge_direct_virtual_call): Likewise.
26225         (update_call_notes_after_inlining): Renamed to...
26226         (update_indirect_edges_after_inlining): this.  Moved edge creation for
26227         indirect calls to try_make_edge_direct_simple_call, also calls
26228         try_make_edge_direct_virtual_call for virtual calls.
26229         (ipa_print_node_params): Changed the header message.
26230         (ipa_write_jump_function): Stream also known type jump functions.
26231         (ipa_read_jump_function): Likewise.
26232         (ipa_write_indirect_edge_info): Stream new fields in
26233         cgraph_indirect_call_info.
26234         (ipa_read_indirect_edge_info): Likewise.
26235         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
26236         GIMPLE_FOLD_H.
26237
26238 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26239
26240         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
26241
26242 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
26243
26244         * tree.h (CALL_EXPR_ARGS): Delete.
26245         (call_expr_arglist): Delete.
26246         * tree.c (call_expr_arglist): Delete.
26247         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
26248         targetm.fold_builtin.
26249         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
26250         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
26251         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
26252         arglist parameter.  Use CALL_EXPR_ARG.
26253         (picochip_expand_builtin_3op): Likewise.
26254         (picochip_expand_builtin_2opvoid): Likewise.
26255         (picochip_expand_array_get): Likewise.
26256         (picochip_expand_array_put): Likewise.
26257         (picochip_expand_array_testport): Likewise.
26258         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
26259         rather than arglist.
26260         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
26261         CALL_EXPR_ARGS.
26262         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
26263         than TREE_VALUE and TREE_CHAIN.
26264         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
26265         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
26266         the arglist.
26267
26268 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
26269
26270         PR bootstrap/42347
26271         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
26272         to have no fallthru edge.
26273
26274         PR middle-end/44102
26275         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
26276         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
26277         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
26278         add BARRIER after previous bb if needed.
26279
26280 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
26281
26282         * tree.c (build_function_type_list_1): Remove bogus assert condition.
26283
26284 2010-05-17  Alan Modra  <amodra@gmail.com>
26285
26286         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
26287         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
26288         with copy_reg rtx param.
26289         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
26290         Correct cases where code for ABI_V4 did not initialise the reg
26291         used to access frame.  Also leave frame_reg_rtx as sp for large
26292         frames that save no regs.
26293
26294 2010-05-17  Martin Jambor  <mjambor@suse.cz>
26295
26296         PR middle-end/44133
26297         * tree-sra.c (create_access_replacement): New parameter rename, mark
26298         the replaement for renaming only when it is true.
26299         (get_access_replacement): Pass true in the rename parameter of
26300         create_access_replacement.
26301         (get_unrenamed_access_replacement): New function.
26302         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
26303         replacement declaration from it.
26304
26305 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
26306
26307         * function.c (try_fit_stack_local, add_frame_space): New static
26308         functions.
26309         (assign_stack_local_1): Use them.  Look for opportunities to use
26310         space previously wasted on alignment.
26311         * function.h (struct frame_space): New.
26312         (struct rtl_data): Add FRAME_SPACE_LIST member.
26313         * reload1.c (something_was_spilled): New static variable.
26314         (alter_reg): Set it.
26315         (reload): Test it in addition to testing if the frame size changed.
26316
26317 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
26318
26319         * config/s390/s390.c: Define sane prefetch settings and activate
26320         flag_prefetch_loop_arrays on -O3.
26321         * config/s390/s390.h: Declare that read can use write prefetch.
26322
26323 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
26324
26325         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
26326         build.
26327
26328 2010-05-16  Jan Hubicka  <jh@suse.cz>
26329
26330         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
26331         function body; do not check stdarg field of struct function.
26332
26333 2010-05-16  Jan Hubicka  <jh@suse.cz>
26334
26335         * cgraph.c (dump_cgraph_node): Dump versionable flag.
26336         * cgraph.h (cgraph_local_info): Add versionable flag.
26337         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
26338         (ipcp_versionable_function_p): Use it.
26339         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26340         versionable flag.
26341
26342 2010-05-16  Jan Hubicka  <jh@suse.cz>
26343
26344         * cgraph.c (cgraph_clone_node): Take decl argument and insert
26345         clone into hash when it is different from orig.
26346         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
26347         * cgraph.h (cgraph_clone_node): Update prototype.
26348         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
26349         (lto_cgraph_encoder_delete): Delete body map.
26350         (lto_cgraph_encoder_size): Move to header.
26351         (lto_cgraph_encoder_encode_body_p,
26352         lto_set_cgraph_encoder_encode_body): New.
26353         (lto_output_node): Do not take written_decls argument; output clone_of
26354         pointer.
26355         (add_node_to): Add include_body_argument; call
26356         lto_set_cgraph_encoder_encode_body on master of the clone.
26357         (add_references): Update use of add_node_to.
26358         (compute_ltrans_boundary): Likewise.
26359         (output_cgraph): Do not create written_decls bitmap.
26360         (input_node): Take nodes argument; stream in clone_of correctly.
26361         (input_cgraph_1): Update use of input_node.
26362         * lto-streamer-out.c (lto_output): Use encoder info to decide
26363         what bodies to output.
26364         * ipa-inline.c (cgraph_clone_inlined_nodes,
26365         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
26366         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
26367         (lto_cgraph_encoder_size): Define here.
26368         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
26369         Declare.
26370
26371 2010-05-16  Richard Guenther  <rguenther@suse.de>
26372
26373         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
26374         -fipa-type-escape.
26375         * ipa-type-escape.c (gate_type_escape_vars): Run when
26376         -fipa-struct-reorg runs.
26377         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
26378         * common.opt (fipa-type-escape): Remove.
26379
26380 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
26381
26382         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
26383         (decode_options): Likewise.
26384         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
26385
26386 2010-05-16  Jan Hubicka  <jh@suse.cz>
26387
26388         * ipa.c (function_and_variable_visibility): Also bring local all
26389         aliases.
26390
26391 2010-05-16  Richard Guenther  <rguenther@suse.de>
26392
26393         * alias.c (nonoverlapping_memrefs_p): Remove use of
26394         IPA type-escape information.
26395
26396 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
26397
26398         * c-common.c (c_common_reswords): Add _Static_assert for C.
26399         * c-parser.c (c_token_starts_declaration,
26400         c_parser_next_token_starts_declaration,
26401         c_parser_static_assert_declaration_no_semi,
26402         c_parser_static_assert_declaration): New.
26403         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
26404         Handle static assertions if static_assert_ok.
26405         (c_parser_external_declaration, c_parser_declaration_or_fndef,
26406         c_parser_compound_statement_nostart, c_parser_label,
26407         c_parser_for_statement, c_parser_objc_methodprotolist,
26408         c_parser_omp_for_loop): All callers of
26409         c_parser_declaration_or_fndef changed.
26410         (c_parser_struct_declaration): Handle static assertions.
26411         (c_parser_compound_statement_nostart): Use
26412         c_parser_next_token_starts_declaration and
26413         c_token_starts_declaration to detect start of declarations.
26414         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
26415         Likewise.
26416
26417 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
26418
26419         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26420         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26421         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26422         TARGET_FUNCTION_VALUE_REGNO_P): Define.
26423         (mmix_function_outgoing_value): Rename to...
26424         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
26425         (mmix_function_value_regno_p): Make static.
26426         (mmix_libcall_value): New function.
26427         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
26428         mmix_function_value_regno_p): Remove declaration.
26429
26430 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
26431
26432         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
26433         BUILT_IN_ALLOCA if stack checking is enabled.
26434
26435 2010-05-16  Richard Guenther  <rguenther@suse.de>
26436
26437         * var-tracking.c (vars_copy_1): Inline ...
26438         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
26439         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
26440         (variable_merge_over_cur): Adjust.  Merge asserts.
26441         (variable_merge_over_src): Likewise.
26442         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
26443         (variable_post_merge_new_vals): Merge asserts.
26444         (variable_post_merge_perm_vals): Likewise.
26445         (find_mem_expr_in_1pdv): Likewise.
26446         (dataflow_set_different_value): Remove.
26447         (onepart_variable_different_p): Merge asserts.
26448         (variable_different_p): Likewise.
26449         (dataflow_set_different_1): Inline ...
26450         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
26451         (emit_notes_for_differences_1): Merge asserts.
26452
26453 2010-05-16  Richard Guenther  <rguenther@suse.de>
26454
26455         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
26456         * optabs.c (libfunc_decl_hash): Likewise.
26457         * varasm.c (emutls_decl): Likewise.
26458
26459 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
26460
26461         * c-decl.c: Don't include gimple.h.
26462         (merge_decls): Do not copy gimple_body.
26463
26464 2010-05-15  Jason Merrill  <jason@redhat.com>
26465
26466         * c.opt: Add -fnothrow-opt.
26467
26468 2010-05-15  Jan Hubicka  <jh@suse.cz>
26469
26470         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
26471         analyzed.
26472         * passes.c (ipa_write_summaries): Write all analyzed nodes.
26473
26474 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
26475
26476         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
26477         * Makefile.in: Add it.
26478         Fix all other Makefile dependencies for changes below.
26479         * tree.h: Include it instead of defining VEC primitives here.
26480         * gimple.h: Likewise.
26481         * rtl.h: Likewise.
26482         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
26483         * except.h: Include vecir.h, break dependence on tree.h.
26484
26485         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
26486         Move from here...
26487         * tree-iterator.c: ...to here.
26488         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
26489
26490         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
26491         tm_p.h.
26492         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
26493         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
26494         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
26495         tree-mudflap.h, and target.h.
26496         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
26497         predict.h, tree-inline.h, gimple.h, and langhooks.h.
26498         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
26499         Add FIXME for why gimple.h is still included (should be unnecessary
26500         since GCC 4.5 gimplification unit-at-a-time).
26501         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
26502         * c-pragma.c: Add FIXME for why function.h needs to be included just
26503         for cfun, at front-end level.
26504         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
26505         Do not include ggc.h, but include vecprim.h for VEC(char).
26506         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
26507         Explain why target.h is included.
26508         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
26509         Explain why gimple.h is included.
26510         * c-ppoutput.c: Do not include tm.h.
26511         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
26512         * c-parses.c: Explain why rtl.h is included, and that this (and only
26513         this) is also why tm.h must be included.
26514         Do not include except.h.
26515         * c-lang.c: Do not include ggc.h.
26516
26517 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
26518
26519         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
26520
26521 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
26522
26523         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
26524         unions by default if those structs and unions have no tags.  Do
26525         not condition anonymous struct and unions handling on flag_iso.
26526         Allow anonymous structs and unions for C1X.
26527         (finish_struct): Do not diagnose lack of named fields when
26528         anonymous structs and unions present for C1X.  Accept flexible
26529         array members in structure with anonymous structs or unions but no
26530         directly named fields.
26531         * doc/extend.texi (Unnamed Fields): Update.
26532
26533 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
26534
26535         * gimple.h (compare_field_offset): Rename into...
26536         (gimple_compare_field_offset): ...this.
26537         * gimple.c (compare_field_offset): Rename into...
26538         (gimple_compare_field_offset): ...this.  Compare the full access if
26539         the offset is self-referential.
26540         (gimple_types_compatible_p): Adjust for above renaming.
26541         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
26542         DECL_NONADDRESSABLE_P flag of fields before merging them.
26543
26544 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
26545
26546         * tree.h (ctor_to_list): Delete.
26547         * tree.c (ctor_to_list): Delete.
26548
26549 2010-05-15  Jan Hubicka  <jh@suse.cz>
26550
26551         * ipa-reference.c: Include toplev.h
26552         (is_proper_for_analysis): Only add to all_module_statics
26553         if it is allocated.
26554         (write_node_summary_p, stream_out_bitmap,
26555         ipa_reference_write_optimization_summary,
26556         ipa_reference_read_optimization_summary): New.
26557         (struct ipa_opt_pass_d pass_ipa_reference): Add
26558         optimization summary streaming.
26559         * lto-cgraph.c (referenced_from_this_partition_p,
26560         reachable_from_this_partition_p): New functions.
26561         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
26562         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
26563         * opts.c (decode_options): Enable ipa_reference.
26564         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
26565         * lto-streamer.h (referenced_from_this_partition_p,
26566         reachable_from_this_partition_p): Declare.
26567
26568 2010-05-15  Richard Guenther  <rguenther@suse.de>
26569
26570         PR tree-optimization/44038
26571         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
26572         taking the address of a V_C_E of a constant.
26573
26574 2010-05-14  Jan Hubicka  <jh@suse.cz>
26575
26576         * tree.h (memory_identifier_string): Remove.
26577         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
26578         (ipa_reference_global_vars_info_d): Remove statics_not_read and
26579         statics_not_written.
26580         (ipa_reference_optimization_summary_d): New structure.
26581         (ipa_reference_optimization_summary_t): New type and vector.
26582         (ipa_reference_vars_info_d): Embedd structures instead of using
26583         pointers.
26584         (reference_vars_to_consider): Remove out of GGC space.
26585         (module_statics_escape): Remove.
26586         (global_info_obstack): Rename to ...
26587         (optimization_summary_obstack): ... this one.
26588         (initialization_status_t): Remove.
26589         (memory_identifier_string): Remove.
26590         (get_reference_vars_info): Fix indenting.
26591         (set_reference_vars_info): Likewise.
26592         (get_reference_optimization_summary): New.
26593         (set_reference_optimization_summary): New.
26594         (get_global_reference_vars_info): Remove.
26595         (ipa_reference_get_read_global): Remove.
26596         (ipa_reference_get_written_global): Remove.
26597         (ipa_reference_get_not_read_global): Update.
26598         (ipa_reference_get_not_written_global): Update.
26599         (is_proper_for_analysis): Outlaw addressable.
26600         (propagate_bits): Update for new datastructures.
26601         (analyze_variable): Remove.
26602         (init_function_info): Update for new datastructures.
26603         (clean_function_local_data): Remove.
26604         (clean_function): Remove.
26605         (copy_global_bitmap): Use optimizations_summary_obstack.
26606         (duplicate_node_data): Duplicate optimization summary only.
26607         (remove_node_data): Remove optimization summary only.
26608         (generate_summary): Do not analyze variables; do not compute
26609         module_statics_escape; do not prune solutions by it.
26610         (read_write_all_from_decl): Fix typos in comments.
26611         (propagate): Doscover readonly and nonaddressable first;
26612         update for new datastructures; share global bitmaps.
26613         * ipa-reference.h (ipa_reference_get_read_global,
26614         ipa_reference_get_written_global): Remove.
26615         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
26616         * Makefile.in: Remove ipa-refereference from GT files.
26617
26618 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
26619
26620         PR debug/44112
26621         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
26622         for all SYMBOL_REF_DECLs.
26623
26624 2010-05-14  Jan Hubicka  <jh@suse.cz>
26625
26626         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
26627         (varpool_all_refs_explicit_p): New inline function.
26628         * ipa-reference.c: Update comment.
26629         (module_statics_written): Remove.
26630         (get_static_decl): Remove.
26631         (ipa_init): Do not initialize module_statics_written.
26632         (analyze_function): Likewise.
26633         (generate_summary): Likewise; do not compute module_statics_readonly
26634         and do not update variable flags.
26635         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
26636         * ipa.c: Inlucde flags.h
26637         (cgraph_local_node_p): New.
26638         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
26639         promote functions to local.
26640         (ipa_discover_readonly_nonaddressable_vars): New function.
26641         (function_and_variable_visibility): Use cgraph_local_node_p.
26642         * varpool.c (varpool_finalize_decl): Set force_output for
26643         DECL_PRESERVE_P vars.
26644
26645 2010-05-14  Jan Hubicka  <jh@suse.cz>
26646
26647         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
26648
26649 2010-05-14  Richard Guenther  <rguenther@suse.de>
26650
26651         PR tree-optimization/44119
26652         * tree-ssa-pre.c (eliminate): Properly mark replacement of
26653         a PHI node necessary.
26654
26655 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26656
26657         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
26658
26659 2010-05-14  Jason Merrill  <jason@redhat.com>
26660
26661         PR c++/44127
26662         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
26663         (gimple_call_set_nothrow): New.
26664         * gimple.c (gimple_build_call_from_tree): Call it.
26665         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
26666
26667         PR c++/44127
26668         * gimplify.c (gimplify_seq_add_stmt): No longer static.
26669         * gimple.h: Declare it.
26670         * gimple.c (gimple_build_eh_filter): No ops.
26671
26672 2010-05-14  Jan Hubicka  <jh@suse.cz>
26673
26674         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
26675         nodes already in queue.
26676         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
26677         re-enqueueing node.
26678
26679 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
26680
26681         PR debug/44136
26682         * cfgexpand.c (expand_debug_expr): If non-memory op0
26683         has BLKmode, return NULL.
26684
26685 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
26686
26687         * config.gcc: Add support for --with-cpu option for bdver1.
26688         * config/i386/i386.h (TARGET_BDVER1): New macro.
26689         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
26690         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
26691         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
26692         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
26693         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
26694         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
26695         (processor_type): Add PROCESSOR_BDVER1.
26696         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
26697         processor_type in config/i386/i386.h.
26698         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
26699         movaps <reg, reg> instead of movapd <reg, reg> when replacing
26700         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
26701         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
26702         to emit packed xor instead of packed double/packed integer
26703         xor for SSE and AVX when moving a zero value.
26704         * config/i386/sse.md: Add check for
26705         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
26706         movapd/movdqa for SSE and AVX.
26707         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
26708         single logical operations i.e and, or and xor instead of packed double
26709         logical operations for SSE and AVX.
26710         * config/i386/i386-c.c (ix86_target_macros_internal):
26711         Add PROCESSOR_BDVER1.
26712         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
26713         (has_fma4, has_xop): New.
26714         * config/i386/i386.c (bdver1_cost): New variable.
26715         (m_BDVER1): New macro.
26716         (m_AMD_MULTIPLE): Add m_BDVER1.
26717         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
26718         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
26719         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
26720         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
26721         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
26722         x86_tune_sse_partial_reg_dependency,
26723         x86_tune_sse_unaligned_load_optimal,
26724         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
26725         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
26726         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
26727         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
26728         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
26729         Enable/disable for bdver1.
26730         (processor_target_table): Add bdver1_cost.
26731         (cpu_names): Add bdver1.
26732         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
26733          processor_alias_table.
26734         (ix86_expand_vector_move_misalign): Change.
26735         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
26736         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
26737         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
26738         of movupd/movdqu for SSE and AVX.
26739         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
26740         (ix86_tune_adjust_cost): Add code for bdver1.
26741         (standard_sse_constant_opcode): Add check for
26742         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
26743         of packed double xor for SSE and AVX.
26744
26745 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
26746
26747         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
26748         result to unsigned.
26749
26750 2010-05-14  Tristan Gingold  <gingold@adacore.com>
26751
26752         * toplev.c (default_debug_hooks): Remove this variable.
26753         (process_options): Remove assignments to default_debug_hooks.
26754
26755 2010-05-14  Martin Jambor  <mjambor@suse.cz>
26756
26757         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
26758         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
26759         * langhooks.h (struct lang_hooks_for_decls): Removed field
26760         fold_obj_type_ref.
26761         * tree.c (free_lang_data): Remove assignment to
26762         lang_hooks.fold_obj_type_ref.
26763         * tree.def (OBJ_TYPE_REF): Update comment.
26764
26765 2010-05-14  Richard Guenther  <rguenther@suse.de>
26766
26767         PR tree-optimization/44124
26768         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
26769
26770 2010-05-14  Alan Modra  <amodra@gmail.com>
26771
26772         PR target/44075
26773         * config/rs6000/rs6000.c (struct machine_function): Reorder
26774         fields for better packing.  Add lr_save_state.
26775         (rs6000_ra_ever_killed): Return lr_save_state if set.
26776         (rs6000_emit_eh_reg_restore): Set lr_save_state.
26777
26778 2010-05-13  Jan Hubicka  <jh@suse.cz>
26779
26780         * varpool.c (decide_is_variable_needed): Drop code checking
26781         TREE_SYMBOL_REFERENCED.
26782
26783 2010-05-13  Jan Hubicka  <jh@suse.cz>
26784
26785         * final.c (output_addr_const): Do not call mark_decl_referenced.
26786         * cgraphunit.c (process_function_and_variable_attributes): Use
26787         mark_needed_node dirrectly.
26788         (assemble_thunk): Do not call mark_decl_referenced.
26789
26790 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
26791
26792         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
26793
26794 2010-05-13  Jeff Law  <law@redhat.com>
26795
26796         * ira-conflicts.c (print_allocno_conflicts): New function broken out
26797         from...
26798         (print_conflicts): Call print_allocno_conflicts.
26799
26800 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
26801
26802         PR debug/44104
26803         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
26804         if it is NULL.
26805
26806 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
26807
26808         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
26809         t-mingw-w64 or t-mingw-w32 for multilib configuration.
26810         * config/i386/t-mingw-w32: New.
26811         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
26812
26813 2010-05-13  Martin Jambor  <mjambor@suse.cz>
26814
26815         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
26816         gimple-fold.c).
26817         * gimple-fold.c (get_base_binfo_for_type): New function.
26818         (gimple_get_relevant_ref_binfo): Likewise.
26819         (gimple_fold_obj_type_ref_known_binfo): Likewise.
26820         (gimple_fold_obj_type_ref): Likewise.
26821         (fold_gimple_call): Simplify condition for folding virtual calls
26822         and call gimple_fold_obj_type_ref.
26823         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
26824         (gimple_fold_obj_type_ref_known_binfo): Likewise.
26825
26826 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
26827
26828         * config/rs6000/rs6000-protos.h
26829         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
26830         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
26831         (rs6000_debug_mode_dependent_address)
26832         (rs6000_mode_dependent_address_ptr): Likewise.
26833
26834 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
26835
26836         PR debug/43983
26837         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
26838         by SRA.
26839         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
26840         * tree-sra.c (create_access_replacement): Call unshare_expr before
26841         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
26842         * dwarf2out.c: Include tree-flow.h.
26843         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
26844         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
26845         Handle DW_OP_bit_piece.
26846         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
26847         construct_piece_list, adjust_piece_list): New functions.
26848         (add_var_loc_to_decl): Handle SRA optimized variables.
26849         Adjust for var_loc_note to loc field renaming.
26850         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
26851         in VAR_LOCATION note.
26852         (new_loc_descr_op_bit_piece): New function.
26853         (dw_sra_loc_expr): New function.
26854         (dw_loc_list): Use it.  Don't handle the last range after the
26855         loop, handle it inside of the loop.  Adjust for var_loc_note
26856         to loc field renaming.
26857         (add_location_or_const_value_attribute): Only special case
26858         single entry loc lists if loc is NOTE_P.  Adjust for
26859         var_loc_note to loc field renaming.
26860         (dwarf2out_var_location): Don't set newloc->var_loc_note
26861         and newloc->next here.
26862
26863 2010-05-12  Jan Hubicka  <jh@suse.cz>
26864
26865         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
26866         flag.
26867         * cgraph.h (cgraph_only_called_directly_p,
26868         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
26869         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
26870         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
26871         (assemble
26872         * ipa.c (cgraph_remove_unreachable_nodes): Use
26873         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
26874         flags.
26875         * tree-inline.c (copy_bb): Check address_taken flag.
26876         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
26877         externally_visible flag.
26878
26879 2010-05-12  Jason Merrill  <jason@redhat.com>
26880
26881         PR bootstrap/44048
26882         PR target/44099
26883         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
26884         * sdbout.c (plain_type_1): Likewise.
26885         * dwarf2out.c (is_base_type): Likewise.
26886         (gen_type_die_with_usage): Likewise.  Generate
26887         DW_TAG_unspecified_type for any LANG_TYPE.
26888
26889 2010-05-12  Jan Hubicka  <jh@suse.cz>
26890
26891         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
26892         indrect edges too.
26893         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
26894         (cgraph_clone_edge): Update.
26895         (cgraph_node_remove_callees): Remove indirect calls too.
26896         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
26897         (cgraph_create_indirect_edge): Update prototype.
26898         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
26899         is_proper_for_analysis.
26900         (add_new_function, visited_nodes, function_insertion_hook_holder,
26901         get_local_reference_vars_info, mark_address_taken, mark_address,
26902         mark_load, mark_store, check_asm_memory_clobber, check_call,
26903         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
26904         (ipa_init): Do not initialize visited_nodes;
26905         function_insertion_hook_holder.
26906         (analyze_variable): Rewrite.
26907         (analyze_function): Rewrite.
26908         (copy_local_bitmap): Remove.
26909         (duplicate_node_dat): Do not duplicate local info.
26910         (generate_summary): Simplify to only walk cgraph.
26911         (write_node_summary_p, ipa_reference_write_summary,
26912         ipa_reference_read_summary): Remove.
26913         (propagate): Do not remove function insertion;
26914         generate summary.
26915         (pass_ipa_reference): NULLify summary handling fields.
26916         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
26917         (input_edge): Input ecf_flags.
26918         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
26919         (update_indirect_edges_after_inlining): Ignore edges with unknown
26920         param.
26921
26922 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
26923
26924         * implicit-zee.c: New file.
26925         * tree-pass.h (pass_implicit_zee): Declare.
26926         * passes.c (init_optimization_passes): Add zee pass.
26927         * common.opt (fzee): New flag.
26928         * timevar.def (TV_ZEE): Define.
26929         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
26930         and beyond.
26931         * Makefile.in (implicit-zee.o): Add new build file.
26932
26933 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
26934             Nathan Froyd  <froydnj@codesourcery.com>
26935
26936         * c-common.c (sync_resolve_params): Remove write-only variable.
26937
26938 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
26939
26940         * target.h (struct gcc_target): Add mode_dependent_address_p field.
26941         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
26942         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
26943         * targhooks.c (default_mode_dependent_address_p): New function.
26944         * targhooks.h (default_mode_dependent_address_p): Declare function.
26945         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
26946         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
26947         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
26948         target hook. Change return type to bool.
26949         * recog.h (mode_dependent_address_p): Change return type to bool.
26950
26951 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
26952             Nathan Froyd  <froydnj@codesourcery.com>
26953
26954         * tree-mudflap.c (build_function_type_0, build_function_type_1,
26955         build_function_type_2, build_function_type_3): Remove.
26956         (mudflap_init): Use build_function_type_list.
26957
26958 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
26959             Nathan Froyd  <froydnj@codesourcery.com>
26960
26961         * coverage.c (build_fn_info_value): Call build_constructor instead of
26962         build_constructor_from_list.
26963         (build_ctr_info_value): Likewise.
26964         (build_gcov_info): Likewise.
26965
26966 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
26967
26968         * tree.c (build_constructor): Compute TREE_CONSTANT for the
26969         resultant constructor.
26970         (build_constructor_single): Don't set TREE_CONSTANT.
26971         (build_constructor_from_list): Don't compute TREE_CONSTANT.
26972
26973 2010-05-12  Jan Hubicka  <jh@suse.cz>
26974
26975         * cgraph.h (struct varpool_node): Add aux.
26976         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
26977         * varpool.c (varpool_remove_node): Do not remove initializer.
26978         (varpool_reset_queue): Export.
26979         (varpool_finalize_decl): Volatile vars are forced to be output.
26980         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
26981         replaced decl.
26982         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
26983         process_references, varpool_can_remove_if_no_refs): New functions.
26984         (cgraph_remove_unreachable_nodes): Handle variables too.
26985
26986 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
26987
26988         PR target/44088
26989         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
26990
26991 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
26992
26993         PR middle-end/44085
26994         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
26995         change value of ORT_TASK.
26996         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
26997         (omp_notice_threadprivate_variable): New function.
26998         (omp_notice_variable): Call it for threadprivate variables.
26999         If enclosing ctx is a task, print enclosing task rather than
27000         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
27001         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
27002         if task has untied clause.
27003
27004         PR debug/42278
27005         * dwarf2out.c (base_type_die): Don't add name attribute here.
27006         (modified_type_die): Instead of sizetype use
27007         its underlying original type.  If a DW_TAG_base_type doesn't
27008         have name added, add __unknown__.
27009         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
27010         always call force_type_die instead.
27011
27012 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
27013
27014         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
27015         for __stack_chk_guard.
27016
27017 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
27018
27019         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
27020         don't call start_source_file debug hook here...
27021         (finish_options): ... but here, after outputting predefined and
27022         command line defines and undefs.
27023
27024         PR middle-end/44071
27025         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
27026         no fallthru edge.
27027         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
27028         optimizing away empty bb with no successors, move over its
27029         footer chain to fallthru predecessor.
27030         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
27031         (rtl_split_edge): For asm goto call patch_jump_insn even if
27032         splitting fallthru edge.
27033
27034         PR c++/44059
27035         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
27036         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
27037         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
27038         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
27039         on DW.ref.* decls.
27040
27041         PR c++/44062
27042         * c-parser.c (c_parser_expression): Mark LHS of a comma
27043         expression as read if it is a decl, handled component or
27044         COMPOUND_EXPR with that on the RHS.
27045         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
27046         if it is a decl or handled component.
27047
27048 2010-05-11  Jan Hubicka  <jh@suse.cz>
27049
27050         * lto-symtab.c (lto_symtab_free): New function.
27051         * lto-streamer.h (lto_symtab_free): Declare.
27052
27053 2010-05-11  Jan Hubicka  <jh@suse.cz>
27054
27055         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
27056         that if function is needed it is reachable.
27057         (lto_output_node): See if it the function is reachable or referenced.
27058         (output_cgraph): Update call of lto_output_node.
27059         * lto-streamer.h (reachable_from_other_partition_p): Declare.
27060
27061 2010-05-11  Jan Hubicka  <jh@suse.cz>
27062
27063         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
27064         Mark as used.
27065
27066 2010-05-11  Jan Hubicka  <jh@suse.cz>
27067
27068         PR tree-optimize/44063
27069         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
27070         queue.
27071         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
27072         limits.
27073         (estimate_function_body_sizes): Compute sizes even when disregarding.
27074
27075 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
27076
27077         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
27078
27079 2010-05-11  Jan Hubicka  <jh@suse.cz>
27080
27081         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
27082         into every boundary.
27083
27084 2010-05-11  Jan Hubicka  <jh@suse.cz>
27085
27086         * matrix-reorg.c (matrix_reorg): Rebuild edges.
27087
27088 2010-05-11  Jan Hubicka  <jh@suse.cz>
27089
27090         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
27091         lto_streamer_cache_delete): Put nodes into heap.
27092         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
27093         heap.
27094
27095 2010-05-11  Jan Hubicka  <jh@suse.cz>
27096
27097         * cgraphbuild.c (cgraph_rebuild_references): New.
27098         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
27099         out extern inlines.
27100         * cgraph.h (cgraph_rebuild_references): Declare.
27101         * tree-inline.c (tree_function_versioning): Use it.
27102         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
27103
27104 2010-05-11  Jan Hubicka  <jh@suse.cz>
27105
27106         * cgraph.c: Include ipa-utils.h
27107         (cgraph_create_virtual_clone): Update references.
27108         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
27109
27110 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
27111
27112         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
27113         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
27114         cache size.
27115
27116 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
27117
27118         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
27119
27120 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
27121
27122         * gcc.c (execute): For -### don't quote arguments that
27123         contain just alphanumerics and _/-. characters.
27124         * doc/invoke.texi: Document that change for -###.
27125
27126         PR debug/44023
27127         * df-problems.c (struct dead_debug): Add to_rescan field.
27128         (dead_debug_init): Clear to_rescan field.
27129         (dead_debug_finish): Rescan all debug insns in to_rescan
27130         bitmap and free the bitmap.
27131         (dead_debug_insert_before): Instead of rescanning debug insns
27132         immediately queue their rescanning until dead_debug_finish.
27133         (df_note_bb_compute): After dead_debug_add do continue instead
27134         of break.
27135
27136 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
27137
27138         PR debug/44028
27139         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
27140         clear also INSN_REG_USE_LIST.
27141
27142 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27143
27144         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
27145
27146 2010-05-10  Jan Hubicka  <jh@suse.cz>
27147
27148         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
27149         commited change.
27150
27151 2010-05-10  Jan Hubicka  <jh@suse.cz>
27152
27153         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
27154         Allocate encoders.
27155         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
27156         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
27157         (lto_streamer_cache_create): Init alloc pool.
27158         (lto_streamer_cache_delete): Free alloc pool.
27159         * lto-streamer.h: Include alloc pool.
27160         (lto_streamer_cache_d): Use alloc pool.
27161         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
27162
27163 2010-05-10  Jan Hubicka  <jh@suse.cz>
27164
27165         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
27166         * cgraphbuild.c: Include except.h
27167         (record_type_list, record_eh_tables): New function.
27168         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
27169
27170 2010-05-10  Jan Hubicka  <jh@suse.cz>
27171
27172         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
27173         __frame_dummy_init_array_entry, force_to_data): Attribute as used
27174         rather than unused.
27175
27176 2010-05-10  Michael Matz  <matz@suse.de>
27177
27178         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
27179         (can_reassociate_p): Use FLOAT_TYPE_P.
27180         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
27181         (vect_force_simple_reduction): ... this.
27182         * tree-parloops.c (gather_scalar_reductions): Use
27183         vect_force_simple_reduction.
27184         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
27185         vect_is_simple_reduction, add modify argument, if true rewrite
27186         "a-b" into "a+(-b)".
27187         (vect_is_simple_reduction, vect_force_simple_reduction): New
27188         functions.
27189         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
27190
27191 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
27192             Vladimir Makarov  <vmakarov@redhat.com>
27193
27194         PR rtl-optimization/44012
27195         * ira-build.c (remove_unnecessary_allocnos): Nullify
27196         regno_allocno_map of the removed allocno.
27197
27198 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27199
27200         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
27201         to /dev/null.
27202         * configure: Regenerate.
27203
27204 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27205
27206         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
27207         unused.
27208         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
27209         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
27210         support in Sun ld.
27211         * configure: Regenerate.
27212
27213 2010-05-10  Richard Guenther  <rguenther@suse.de>
27214
27215         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
27216         marked if the entry identifier is marked.
27217
27218 2010-05-10  Richard Guenther  <rguenther@suse.de>
27219
27220         * c-common.c (struct c_common_attributes): Add fnspec attribute.
27221         (handle_fnspec_attribute): New function.
27222         * gimple.h (gimple_call_return_flags): Declare.
27223         (gimple_call_arg_flags): Likewise.
27224         * gimple.c (gimple_call_arg_flags): New function.
27225         (gimple_call_return_flags): Likewise.
27226         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
27227         New argument flags.
27228         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
27229         return value flags.
27230         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
27231         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
27232         main work to ...
27233         (make_heapvar_for): ... this new function.
27234         (handle_rhs_call): Handle fnspec attribute argument specifiers.
27235         (handle_lhs_call): Likewise.
27236         (find_func_aliases): Adjust.
27237
27238 2010-05-10  Richard Guenther  <rguenther@suse.de>
27239
27240         PR tree-optimization/44050
27241         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
27242
27243 2010-05-10  Wei Guozhi  <carrot@google.com>
27244
27245         PR target/42879
27246         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
27247
27248 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
27249
27250         PR c/10676
27251         * c-typeck.c (lookup_field): Take a type directly.  Update
27252         recursive calls.
27253         (build_component_ref): Update call to lookup_field.
27254         (set_init_label): Use lookup_field to find initialized field.
27255         Handle returned list of fields like a sequence of designators.
27256
27257 2010-05-09  Richard Guenther  <rguenther@suse.de>
27258
27259         PR middle-end/44024
27260         * fold-const.c (tree_single_nonzero_warnv_p): Properly
27261         handle &FUNCTION_DECL.
27262
27263 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
27264
27265         PR c/4784
27266         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
27267         structures and unions recursively.
27268         (detect_field_duplicates): Move duplicate detection with a hash to
27269         detect_field_duplicates_hash.  Always use a hash if anonymous
27270         structures or unions are present.
27271         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
27272         give errors.
27273
27274 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
27275
27276         PR target/44046
27277         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
27278         detect Atom, Core 2 and Core i7.
27279
27280 2010-05-09  Richard Guenther  <rguenther@suse.de>
27281
27282         * gcc.c (store_arg): Handle temporary file deletion for
27283         joined arguments.
27284
27285 2010-05-09  Richard Guenther  <rguenther@suse.de>
27286
27287         PR middle-end/44043
27288         * ipa-inline.c (estimate_function_body_sizes): Return after
27289         disregarding inline limits.
27290
27291 2010-05-09  Richard Guenther  <rguenther@suse.de>
27292
27293         * gcc.c (store_arg): Revert last change.
27294
27295 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
27296
27297         PR middle-end/28685
27298         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
27299         (optimize_ops_list): Call it.
27300
27301 2010-05-08  Richard Guenther  <rguenther@suse.de>
27302
27303         PR tree-optimization/44030
27304         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
27305         NECESSARY flag if we propagate from a inserted expression.
27306
27307 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
27308
27309         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
27310         domain types as equal if they are both PLACEHOLDER_EXPRs.
27311
27312 2010-05-08  Richard Guenther  <rguenther@suse.de>
27313
27314         * lto-wrapper.c (run_gcc): Remove linker output from
27315         command line for LTRANS invocation.
27316
27317 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
27318
27319         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
27320         lto-macho as lto_binary_reader.
27321         * target.h (struct gcc_target): New hooks lto_start and lto_end.
27322         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
27323         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
27324         in lto_start and lto_end calls.
27325         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
27326         magic numbers.
27327         (scan_prog_file): Update is_elf_or_coff call.
27328         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
27329
27330         * collect2.c (main): Fix enum comparison.
27331
27332         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
27333         Add prototypes.
27334         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
27335         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
27336         and TARGET_ASM_LTO_END.
27337         * darwin.c: Include obstack.h and lto-streamer.h.
27338         (lto_section_names_offset, lto_section_names_obstack,
27339         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
27340         global variables.
27341         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
27342         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
27343         to a temporary file.
27344         (darwin_asm_lto_end): New function.  Restore asm_out_file.
27345         (darwin_asm_named_section): For LTO sections, replace the name with
27346         the offset of the section name in a string table, and build this
27347         table.
27348         (darwin_file_start): Initialize global vars for LTO support.
27349         (darwin_file_end): If output to asm_out_file was redirected, append it
27350         to the proper asm_out_file here.  Add the section names section.
27351
27352 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
27353
27354         * c-pragma.c (pending_weak_d, pending_weak): New.
27355         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
27356         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
27357         handle_pragma_weak): Update the uses of pending_weaks.
27358
27359 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27360
27361         PR documentation/44016
27362         * doc/standards.texi (Standards): Link to unversioned
27363         cxx0x_status.html page.
27364
27365 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
27366
27367         PR target/43708
27368         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
27369         in addition to TREE_USED, to avoid "set but unused" warnings.
27370
27371 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
27372
27373         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
27374         (is_loop_prefetching_profitable): Do not insert prefetches
27375         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
27376         times the prefetch ahead distance.
27377
27378 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
27379
27380         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
27381         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
27382         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
27383         the unroll_factor.
27384
27385 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
27386
27387         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
27388         a diagnostic info when the insn-to-mem ratio is too small.
27389
27390 2010-05-07  Richard Guenther  <rguenther@suse.de>
27391
27392         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
27393         the linker plugin.
27394         (store_arg): Queue temp_filename for deletion instead of
27395         the whole argument.
27396
27397 2010-05-07  Richard Guenther  <rguenther@suse.de>
27398
27399         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
27400         (run_gcc): Handle LTRANS phase invocation.
27401         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
27402
27403 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
27404
27405         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
27406         this is also meaningful on PARM_DECLs and RESULT_DECLs.
27407
27408 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27409
27410         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
27411
27412 2010-05-07  Richard Guenther  <rguenther@suse.de>
27413
27414         PR tree-optimization/44020
27415         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
27416         code when PRE is not yet initialized.
27417
27418 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27419
27420         * config/mips/dbxmdebug.h: Remove.
27421         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
27422
27423 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
27424
27425         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
27426         with null pointer and also warn about ordered comparison of zero with
27427         pointer if -Wextra.
27428
27429 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
27430
27431         * graphite-blocking.c
27432         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
27433         * graphite-clast-to-gimple.c
27434         (clast_to_gcc_expression): Same.
27435         (precision_for_value): Same.
27436         (precision_for_interval): Same.
27437         (gcc_type_for_interval): Same.
27438         (graphite_create_new_guard): Same.
27439         (compute_bounds_for_level): Same.
27440         (graphite_create_new_loop_guard): Same.
27441         * graphite-interchange.c
27442         (build_linearized_memory_access): Same.
27443         (pdr_stride_in_loop): Same.
27444         (memory_strides_in_loop_1): Same.
27445         (memory_strides_in_loop): Same.
27446         (extend_scattering): Same.
27447         (psct_scattering_dim_for_loop_depth): Same.
27448         (pbb_number_of_iterations): Same.
27449         * graphite-poly.h
27450         (debug_iteration_domains): Same.
27451         * graphite-ppl.c
27452         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
27453         (ppl_set_inhomogeneous_gmp): Same.
27454         (ppl_strip_loop): Same.
27455         (ppl_lexico_compare_linear_expressions): Same.
27456         (ppl_read_polyhedron_matrix): Same.
27457         (ppl_max_for_le_pointset): Same.
27458         * graphite-ppl.h
27459         (ppl_read_polyhedron_matrix): Same.
27460         (tree_int_to_gmp): Same.
27461         (gmp_cst_to_tree): Same.
27462         (ppl_set_inhomogeneous): Same.
27463         (ppl_set_inhomogeneous_tree): Same.
27464         (ppl_set_coef): Same.
27465         (ppl_set_coef_tree): Same.
27466         * graphite-sese-to-poly.c
27467         (build_pbb_scattering_polyhedrons): Same.
27468         (build_scop_scattering): Same.
27469         (scan_tree_for_params_right_scev): Same.
27470         (scan_tree_for_params): Same.
27471         (find_params_in_bb): Same.
27472         (find_scop_parameters): Same.
27473         (add_upper_bounds_from_estimated_nit): Same.
27474         (build_loop_iteration_domains): Same.
27475         (add_condition_to_domain): Same.
27476         (pdr_add_memory_accesses): Same.
27477
27478 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
27479
27480         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
27481         CLooG's value_* macros to their respective mpz_* counterparts.
27482         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
27483         (graphite_create_new_loop_guard): Same.
27484         * graphite-interchange.c (build_linearized_memory_access): Same.
27485         (pdr_stride_in_loop): Same.
27486         (memory_strides_in_loop_1): Same.
27487         (1st_interchange_profitable_p): Same.
27488         * graphite-poly.c (extend_scattering): Same.
27489         (psct_scattering_dim_for_loop_depth): Same.
27490         (pbb_number_of_iterations): Same.
27491         (pbb_number_of_iterations_at_time): Same.
27492         * graphite-poly.h (new_1st_loop): Same.
27493         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
27494         (oppose_constraint): Same.
27495         (insert_constraint_into_matrix): Same.
27496         (ppl_set_inhomogeneous_gmp): Same.
27497         (ppl_set_coef_gmp): Same.
27498         (ppl_strip_loop): Same.
27499         (ppl_lexico_compare_linear_expressions): Same.
27500         (ppl_max_for_le_pointset): Same.
27501         (ppl_min_for_le_pointset): Same.
27502         (ppl_build_realtion): Same.
27503         * graphite-ppl.h (gmp_cst_to_tree): Same.
27504         (ppl_set_inhomogeneous): Same.
27505         (ppl_set_inhomogeneous_tree): Same.
27506         (ppl_set_coef): Same.
27507         (ppl_set_coef_tree): Same.
27508         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
27509         (build_scop_scattering): Same.
27510         (add_value_to_dim): Same.
27511         (scan_tree_for_params_right_scev): Same.
27512         (scan_tree_for_params_int): Same.
27513         (scan_tree_for_params): Same.
27514         (find_params_in_bb): Same.
27515         (find_scop_parameters): Same.
27516         (add_upper_bounds_from_estimated_nit): Same.
27517         (build_loop_iteration_domains): Same.
27518         (create_linear_expr_from_tree): Same.
27519         (add_condition_to_domain): Same.
27520         (pdr_add_memory_accesses): Same.
27521
27522 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
27523             Jason Merrill  <jason@redhat.com>
27524
27525         * c-common.c (c_common_reswords): Add nullptr.
27526         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
27527         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
27528         (gen_type_die_with_usage): Likewise.
27529         * dbxout.c (dbxout_type): Likewise.
27530         * sdbout.c (plain_type_1): Likewise.
27531
27532 2010-05-06  Jason Merrill  <jason@redhat.com>
27533
27534         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
27535         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
27536         ret appropriately.
27537         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
27538
27539         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
27540         stripping WITH_SIZE_EXPR.
27541         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
27542         change.
27543
27544 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27545
27546         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
27547         list of obsolete configurations.
27548         Disabled check for obsolete configurations.
27549         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
27550         Removed support for previous versions.
27551         * config/mips/iris.h: Removed.
27552         * config/mips/iris5.h: Removed.
27553         * config/mips/iris6.h: Merged old iris.h contents.
27554         (TARGET_IRIX): Removed.
27555         (DRIVER_SELF_SPECS): Removed mabi=32.
27556         (IDENT_ASM_OP): Removed undef.
27557         (STARTFILE_SPEC): Removed mabi=32.
27558         (ENDFILE_SPEC): Likewise.
27559         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
27560         (MACHINE_TYPE): Update for IRIX 6.5.
27561         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
27562         TARGET_IRIX by TARGET_IRIX6.
27563         (mips_file_start): Likewise.
27564         (mips_output_external): Remove IRIX 5/6 O32 support.
27565         (mips_output_function_prologue): Likewise.
27566         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
27567         TARGET_IRIX6.
27568         (TARGET_CPU_CPP_BUILTINS): Likewise.
27569         (TARGET_IRIX): Removed.
27570         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
27571         (MULTILIB_DIRNAMES): Removed 32.
27572         (MULTILIB_OSDIRNAMES): Removed ../lib.
27573         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
27574         (Specific, mips-sgi-irix5): Document removal.
27575         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
27576         Remove references to older IRIX 6 releases and the O32 ABI.
27577
27578 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
27579
27580         PR bootstrap/43994
27581         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
27582         instead of DF_REF_REAL_REG.
27583
27584 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
27585
27586         PR target/43888
27587         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
27588         handling to still return true for x64 targets.
27589
27590 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
27591
27592         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
27593
27594 2010-05-06  Jan Hubicka  <jh@suse.cz>
27595
27596         PR tree-optimization/43791
27597         * ipa-inline.c (update_caller_keys): Remove bogus
27598         disregard_inline_limits check.
27599
27600 2010-05-06  Michael Matz  <matz@suse.de>
27601
27602         PR tree-optimization/43984
27603         * tree-ssa-pre.c (inserted_phi_names): Remove.
27604         (inserted_exprs): Change to bitmap.
27605         (create_expression_by_pieces): Set bits, don't append to vector.
27606         (insert_into_preds_of_block): Don't handle inserted_phi_names.
27607         (eliminate): Don't look at inserted_phi_names, remove deleted
27608         insns from inserted_exprs.
27609         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
27610         (init_pre, fini_pre): Allocate and free bitmaps.
27611         (execute_pre): Insert insns on edges before elimination.
27612
27613 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
27614
27615         * tree.c (initializer_zerop): Handle STRING_CST.
27616
27617 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27618
27619         PR 40989
27620         * doc/invoke.texi (Wimplicit): Document as C only.
27621         * opts.c (common_handle_option): Add argument kind.
27622         (handle_option): Rename as read_cmdline_option. Factor out code to...
27623         (handle_option): ... here. New.
27624         (handle_options): Rename as read_cmdline_options.
27625         (decode_options): Update call.
27626         (set_option): Use option index instead of option pointer. Classify
27627         diagnostics correctly.
27628         (enable_warning_as_error): Call handle_option.
27629         * opts.h (set_option): Update declaration.
27630         (handle_option): Declare.
27631         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
27632         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
27633         * c-opts.c (set_Wimplicit): Delete.
27634         (c_family_lang_mask): New static constant.
27635         (c_common_handle_option): Add argument kind. Use handle_option
27636         instead of set_Wimplicit.
27637         (c_common_post_options): warn_implicit and warn_implicit_int
27638         are disabled by default.
27639         * c-common.c (warn_implicit): Do not define here.
27640         * c-common.h (warn_implicit): Do not declare here.
27641         (c_common_handle_option): Update declaration.
27642         * lto-opts.c (lto_reissue_options): Update call to set_option.
27643
27644 2010-05-06  Richard Guenther  <rguenther@suse.de>
27645
27646         PR tree-optimization/43571
27647         * domwalk.c (walk_dominator_tree): Walk the dominator
27648         sons in more optimal order.
27649
27650 2010-05-06  Richard Guenther  <rguenther@suse.de>
27651
27652         PR tree-optimization/43934
27653         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
27654         (stmt_cost): Likewise.
27655         (extract_true_false_args_from_phi): New helper.
27656         (determine_max_movement): For PHI nodes verify we can hoist them
27657         and compute their cost.
27658         (determine_invariantness_stmt): Handle PHI nodes.
27659         (move_computations_stmt): Likewise.  Hoist PHI nodes in
27660         if-converted form using COND_EXPRs.
27661         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
27662         (tree_ssa_lim): Likewise.
27663         * tree-flow.h (tree_ssa_lim): Adjust prototype.
27664         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
27665
27666 2010-05-06  Richard Guenther  <rguenther@suse.de>
27667
27668         PR tree-optimization/43987
27669         * tree-ssa-structalias.c (could_have_pointers): For possibly
27670         address-taken variables force pointers to be recorded.
27671         (create_variable_info_for_1): Likewise.
27672         (push_fields_onto_fieldstack): Pass in wheter all fields
27673         must have pointers.
27674         (find_func_aliases): Query types instead of vars whether
27675         they contain pointers where appropriate.
27676
27677 2010-05-06  Jan Hubicka  <jh@suse.cz>
27678
27679         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
27680         (record_reference, mark_address, mark_load, mark_store): Record
27681         references.
27682         (record_references_in_initializer): Update call of record_references.
27683         (rebuild_cgraph_edges): Remove all references before rebuiding.
27684         * cgraph.c (cgraph_create_node): Clear ref list.
27685         (cgraph_remove_node): Remove references.
27686         (dump_cgraph_node): Dump references.
27687         (cgraph_clone_node): Clone references.
27688         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
27689         (struct cgraph_node, varpool_node): Add ref_lst.
27690         * ipa-ref.c: New file.
27691         * ipa-ref.h: New file.
27692         * ipa-ref-inline.h: New file.
27693         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
27694         (referenced_from_other_partition_p): New function.
27695         (lto_output_varpool_node): Take set arugment; call
27696         referenced_from_other_partition.
27697         (lto_output_ref): New.
27698         (add_references): New.
27699         (output_refs): New.
27700         (output_cgraph): Compute boundary based on references; output refs.
27701         (output_varpool): Accept cgraph_node_set argument.
27702         (input_ref): New.
27703         (input_refs): New.
27704         (input_cgraph): Call input_refs.
27705         * lto-section-in.c (lto_section_name): Add refs.
27706         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
27707         (ipa-ref.o): New file.
27708         * varpool.c (varpool_node): Clear ipa ref list.
27709         (varpool_remove_node): Remove references.
27710         (dump_varpool_node): Dump references.
27711         (varpool_assemble_decl): Only compile finalized ones.
27712         (varpool_extra_name_alias): Initialize ref list.
27713         * lto-streamer.c (lto-get_section_name): Add .refs section.
27714         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
27715         (referenced_from_other_partition_p): Declared.
27716
27717 2010-05-06  Ira Rosen  <irar@il.ibm.com>
27718
27719         PR tree-optimization/43901
27720         * tree-vect-stmts.c (vectorizable_call): Assert that vector
27721         type is not NULL if it's transformation phase, and return
27722         FALSE if it's analysis.
27723         (vectorizable_conversion, vectorizable_operation,
27724         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
27725
27726 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
27727
27728         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
27729         Delete.
27730         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
27731         New define.
27732         * config/mips/mips-protos.h
27733         (mips_small_register_classes_for_mode_p): Delete prototype.
27734
27735 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
27736
27737         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
27738         * config/arm/arm.c (multiple_operation_profitable_p,
27739         compute_offset_order): New static functions.
27740         (load_multiple_sequence, store_multiple_sequence): Use them.
27741         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
27742         memory offsets, not register numbers.
27743         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
27744
27745 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
27746
27747         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
27748         (get_pending_sizes, put_pending_size, put_pending_sizes):
27749         Update the uses of pending_sizes.
27750         * c-decl.c (store_parm_decls): Likewise.
27751         * c-tree.h (struct c_arg_info): Likewise.
27752         * tree.h: Update the prototype for get_pending_sizes and
27753         put_pending_sizes.
27754
27755 2010-05-05  Jason Merrill  <jason@redhat.com>
27756
27757         PR debug/43370
27758         * c-common.c (handle_aligned_attribute): Respect
27759         ATTR_FLAG_TYPE_IN_PLACE.
27760
27761         PR testsuite/43758
27762         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
27763         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
27764         (TARGET_INITIALIZER): Use it.
27765         * c-common.c (attribute_takes_identifier_p): Call it.
27766         * c-common.h: Update prototype.
27767         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
27768         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
27769
27770 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
27771
27772         PR debug/43950
27773         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
27774         DW_ID_down_case for Fortran compilation units.
27775
27776 2010-05-05  Jan Hubicka  <jh@suse.cz>
27777
27778         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
27779         handle aliases.
27780
27781 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
27782
27783         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
27784         a variable-sized RESULT_DECL.
27785
27786 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
27787
27788         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
27789
27790 2010-05-05  Jason Merrill  <jason@redhat.com>
27791
27792         PR c++/43787
27793         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
27794         returns GS_OK.
27795         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
27796
27797 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
27798             Jakub Jelinek  <jakub@redhat.com>
27799
27800         PR debug/43478
27801         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
27802         (dead_debug_init, dead_debug_finish): New functions.
27803         (dead_debug_add, dead_debug_insert_before): Likewise.
27804         (df_note_bb_compute): Initialize a dead_debug object, add dead
27805         debug uses to it, insert debug bind insns before death insns,
27806         reset debug insns that refer to pending uses at the end.
27807         * rtl.h (make_debug_expr_from_rtl): New prototype.
27808         * varasm.c (make_debug_expr_from_rtl): New function.
27809
27810 2010-05-05  Jan Hubicka  <jh@suse.cz>
27811
27812         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
27813         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
27814         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
27815         lto_varpool_encoder_deref, lto_varpool_encoder_size,
27816         lto_varpool_encoder_encode_initializer_p,
27817         lto_set_varpool_encoder_encode_initializer): New functions.
27818         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
27819         call output_varpool.
27820         (input_varpool_node): Do not always set analyzed.
27821         (input_cgraph_1): Return vector of cgraph nodes.
27822         (input_varpool_1): Return vector of varpools.
27823         (input_cgraph): Free the vectors.
27824         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27825         output only initializers needed.
27826         (lto_output): Only call output_cgraph.
27827         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
27828         * lto-section-out.c (lto_new_out_decl_state): Initialize
27829         state->varpool_node_encoder.
27830         * lto-streamer.h (lto_varpool_encoder_d): New.
27831         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
27832         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
27833         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
27834         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
27835         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
27836         Declare.
27837         (output_varpool, input_varpool): Remove declarations.
27838
27839 2010-05-05  Jan Hubicka  <jh@suse.cz>
27840
27841         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
27842         with body can prevail.
27843
27844 2010-05-05  Jan Hubicka  <jh@suse.cz>
27845
27846         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
27847         size.
27848
27849 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27850
27851         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
27852
27853         * gengtype.h (erro_at_line): Constify pos argument.
27854
27855         * gengtype.c: Include hashtab.h.
27856         (enum gc_used): Document GC_MAYBE_POINTED_TO.
27857         (error_at_line): Constify pos argument.
27858         (do_typedef): Initialize p->opt field.
27859         (get_file_gtfilename): Fix comment typo.
27860         (struct walk_type_data): Constify line field.
27861         (get_output_file_for_structure): New function.
27862         (write_local_func_for_structure): Constify orig_s argument.
27863         Use get_output_file_for_structure.
27864         (write_func_for_structure): Use get_output_file_for_structure.
27865         (INDENT): New define.
27866         (dump_pair, dump_type, dump_type_list, dump_typekind)
27867         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
27868         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
27869         functions.
27870         (seen_types): New variable.
27871         (main): New variable do_dump.  Process "-d" command line option.
27872         Call dump_everything if dump requested.
27873
27874 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
27875
27876         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
27877         in a temporary instead of invoking the macro multiple times.
27878         (track_expr_p): Likewise.
27879
27880 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
27881
27882         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
27883         per new semantics.
27884         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
27885         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
27886         conditions for printing notes.
27887         * common.opt (-Wcoverage-mismatch): Allow negative, default to
27888         true, update documentation.
27889         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
27890
27891 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
27892
27893         PR c/43981
27894         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
27895         on dimen.
27896
27897 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
27898
27899         PR target/43799
27900         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
27901         (*sse_prologue_save_insn1): Likewise.
27902         (SSE prologue save splitter): Likewise.
27903
27904 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
27905
27906         * tree.c (free_lang_data_in_one_sizepos): New inline function.
27907         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
27908         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
27909         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
27910         all decls.  Call it on DECL_FIELD_OFFSET of fields.
27911         (find_decls_types_r): Follow DECL_VALUE_EXPR.
27912         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
27913
27914 2010-05-04  Martin Jambor  <mjambor@suse.cz>
27915
27916         * tree-sra.c (build_access_from_expr_1): The first parameter type
27917         changed to simple tree.
27918         (build_access_from_expr): Likewise, gsi parameter was eliminated.
27919         (scan_assign_result): Renamed to assignment_mod_result, enum elements
27920         renamed as well.
27921         (build_accesses_from_assign): Removed all parameters except for a
27922         simple gimple statement.  Now returns a simple bool.
27923         (scan_function): All non-analysis parts moved to separate functions
27924         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
27925         parameters and updated both callers.
27926         (sra_modify_expr): Removed parameter data.
27927         (sra_modify_function_body): New function.
27928         (perform_intra_sra): Call sra_modify_function_body to modify the
27929         function body.
27930         (replace_removed_params_ssa_names): Parameter data changed into
27931         adjustments vector.
27932         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
27933         changed the parameter dont_convert to convert with the opposite
27934         meaning.
27935         (sra_ipa_modify_assign): Parameter data changed into adjustments
27936         vector, return value changed to bool.
27937         (ipa_sra_modify_function_body): New function.
27938         (sra_ipa_reset_debug_stmts): Updated a comment.
27939         (modify_function): Use ipa_sra_modify_function_body to modify function
27940         body.
27941
27942 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
27943
27944         PR middle-end/43671
27945         * alias.c (true_dependence): Handle the same VALUE in x and mem.
27946         (canon_true_dependence): Likewise.
27947         (write_dependence_p): Likewise.
27948
27949 2010-05-04  Jan Hubicka  <jh@suse.cz>
27950
27951         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
27952         * cgraphbuild.c: Include ipa-utils.h
27953         (record_reference_ctx): New struct.
27954         (record_reference): Simplify to work on initializers; not statements.
27955         (mark_address, mark_load, mark_store): New.
27956         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
27957         walk PHI nodes too.
27958         (record_references_in_initializer): Update use of record_reference.
27959         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
27960         walk PHI nodes too.
27961
27962 2010-05-04  Jan Hubicka  <jh@suse.cz>
27963
27964         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
27965         node will be removed anyway.
27966         (lto_varpool_replace_node): Allow also unanalyzed nodes;
27967         relink aliases of node into prevailing node.
27968         * varpool.c (varpool_remove_node): Remove aliases properly;
27969         when removing node, remove all its aliases too; remove DECL_INITIAL
27970         of removed node; ggc_free the varpool node.
27971
27972 2010-05-04  Richard Guenther  <rguenther@suse.de>
27973
27974         PR tree-optimization/43879
27975         * tree-ssa-structalias.c (alias_get_name): Use
27976         DECL_ASSEMBLER_NAME if available.
27977         (create_function_info_for): Return the varinfo node.
27978         (ipa_pta_execute): Associate same-body aliases and extra names
27979         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
27980
27981 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
27982
27983         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
27984
27985 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
27986
27987         PR bootstrap/43964
27988         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
27989         only if HONOR_REG_ALLOC_ORDER is not defined.
27990
27991 2010-05-04  Richard Guenther  <rguenther@suse.de>
27992
27993         PR tree-optimization/43949
27994         * tree-vrp.c (extract_range_from_binary_expr): Only handle
27995         TRUNC_MOD_EXPR.
27996
27997 2010-04-26  Jason Merrill  <jason@redhat.com>
27998
27999         * c.opt (-fstrict-enums): New.
28000         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
28001
28002 2010-05-03  David Ung  <davidu@mips.com>
28003             James E. Wilson  <wilson@codesourcery.com>
28004
28005         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
28006         emit the trap instruction before the divide for TUNE_74K.
28007
28008 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
28009
28010         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
28011         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
28012         based on the above, for new target hook.
28013
28014         * hooks.c (hook_bool_mode_true): New generic hook.
28015         * hooks.h (hook_bool_mode_true): Add prototype.
28016
28017         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
28018         target hook.
28019         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
28020         target hook, set to hook_bool_mode_false.
28021         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
28022         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
28023         with targetm.small_register_classes_for_mode_p.
28024         (find_reusable_reload): Likewise.
28025         (combine_reloads): Likewise.
28026         * reload1.c (reload_as_needed): Likewise.
28027         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
28028         * ifcvt.c (noce_process_if_block, check_cond_move_block,
28029         dead_or_predicable): Likewise.
28030         * regmove.c (optimize_reg_copy_1): Likewise.
28031         * calls.c (prepare_call_address): Likewise.
28032         (precompute_register_parameters): Likewise.
28033
28034         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
28035         hook definition.
28036         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
28037         implementation of the hook that considers all register classes
28038         small except for SH64.
28039         (sh_override_options): Use the new hook.
28040         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
28041         Add prototype.
28042
28043         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
28044         hook definition.
28045         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
28046         implementation of the hook that considers all register classes
28047         small for THUMB1.
28048         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
28049         Add prototype.
28050
28051         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
28052         hook definition.
28053         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
28054         implementation of the hook that considers all register classes
28055         small for MIPS16.
28056         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
28057         Add prototype.
28058
28059         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
28060         hook definition.
28061         * config/m32c/m32c.h: Likewise.
28062         * config/pdp11/pdp11.h: Likewise.
28063         * config/avr/avr.h: Likewise.
28064         * config/xtensa/xtensa.h: Likewise.
28065         * config/m68hc11/m68hc11.h: Likewise.
28066         * config/mn10300/mn10300.h: Likewise.
28067         * config/mcore/mcore.h: Likewise.
28068         * config/h8300/h8300.h: Likewise.
28069         * config/bfin/bfin.h: Likewise.
28070
28071         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
28072         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
28073
28074 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
28075
28076         * double-int.h (tree_to_double_int): Remove macro.
28077         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
28078         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
28079         (tree_to_double_int): New function.
28080         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
28081         Move ...
28082         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
28083
28084 2010-05-03  Richard Guenther  <rguenther@suse.de>
28085
28086         PR tree-optimization/43971
28087         * tree-ssa-structalias.c (get_constraint_for_1): Fix
28088         constraints in the !flag_delete_null_pointer_checks case.
28089
28090 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
28091
28092         PR debug/43972
28093         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
28094         result mode matches original rtl mode.
28095
28096 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
28097
28098         PR target/43888
28099         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
28100
28101 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
28102
28103         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
28104         when processing flag options.
28105
28106 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
28107
28108         * gcov-iov.c (main): Change format string placeholder
28109         from %#08x to 0x%08x.
28110         * genchecksum.c (dosum): Change format string placeholder
28111         from %#02x to 0x%02x.
28112
28113 2010-05-02  Richard Guenther  <rguenther@suse.de>
28114
28115         PR tree-optimization/43879
28116         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
28117
28118 2010-05-02  Bruno Haible  <bruno@clisp.org>
28119
28120         * doc/extend.texi (Function Attributes): Fix a typo.
28121
28122 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
28123
28124         Revert:
28125         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
28126         placeholder from 0x%x to %#x.
28127         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
28128         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
28129         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
28130         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
28131         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
28132         * config/i386/i386.c (ix86_target_string): Ditto.
28133         * config/i386/i386.c (output_pic_addr_const): Ditto.
28134         (print_operand): Ditto.
28135
28136 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
28137
28138         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
28139         placeholder from 0x%x to %#x.
28140         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
28141         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
28142         (ASM_OUTPUT_DEBUG_DATA): Ditto.
28143         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
28144         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
28145         * optc-gen.awk: Ditto.
28146         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
28147         (HOST_WIDE_INT_PRINT_HEX): Ditto.
28148         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
28149         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
28150
28151 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
28152
28153         * target.h (struct calls): Add function_value_regno_p field.
28154         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
28155         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
28156         * targhooks.c (default_function_value_regno_p): New function.
28157         * targhooks.h (default_function_value_regno_p): Declare function.
28158         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
28159         * builtins.c. (apply_result_size): (Ditto.).
28160         * combine.c. (likely_spilled_retval_p): (Ditto.).
28161         * mode-switching.c. Include 'target.h'.
28162         (create_pre_exit): Use function_value_regno_p hook.
28163         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
28164         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
28165         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
28166
28167         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
28168         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
28169         (ix86_function_value_regno_p): Declare as static, change argument
28170         type to const unsigned int.
28171         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
28172
28173 2010-05-01  Richard Guenther  <rguenther@suse.de>
28174
28175         PR tree-optimization/43949
28176         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
28177         types.
28178         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
28179
28180 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
28181
28182         * rtl.h (CONST_DOUBLE_P): Define.
28183         (rtx_to_double_int): Declare.
28184         * emit-rtl.c (rtx_to_double_int): New function.
28185         * dwarf2out.c (insert_double): New function.
28186         (loc_descriptor, add_const_value_attribute): Clean up, use
28187         rtx_to_double_int and insert_double functions.
28188
28189 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
28190
28191         * doc/extend.texi (Inline): Add missing return keyword to examples.
28192         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
28193         "command-line".
28194
28195 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
28196
28197         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
28198         the variable part of the offset as well.  Use highest_pow2_factor for
28199         all alignment checks.
28200
28201 2010-04-30  Richard Guenther  <rguenther@suse.de>
28202
28203         PR tree-optimization/43879
28204         * tree-ssa-structalias.c (type_could_have_pointers): Functions
28205         can have pointers.
28206
28207 2010-04-30  Jan Hubicka  <jh@suse.cz>
28208
28209         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
28210         varpool.
28211         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
28212
28213 2010-04-30  Jan Hubicka  <jh@suse.cz>
28214
28215         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
28216         New.
28217         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
28218         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
28219         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
28220         cgraph_node_set_needs_ltrans_p): Remove.
28221
28222 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
28223
28224         * sdbout.c: Include vec.h, do not include varray.h.
28225         (deferred_global_decls, sdbout_global_decl,
28226         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
28227         * toplev.c: Do not include varray.h.
28228         (dump_memory_report): Do not dump VARRAY statistics.
28229         * gengtype.c (open_base_file): Ignore varray.h.
28230         * Makefile.in: Update for abovementioned changes.
28231         Remove all traces of varray.c and varray.h.
28232         * varray.c: Remove file.
28233         * varray.h: Remove file.
28234
28235 2010-04-30  Jan Hubicka  <jh@suse.cz>
28236
28237         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
28238         references.
28239
28240 2010-04-30  Jan Hubicka  <jh@suse.cz>
28241
28242         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
28243         needed.
28244
28245 2010-04-30  Richard Guenther  <rguenther@suse.de>
28246
28247         * tree-ssa-structalias.c (get_constraint_for_1): Generate
28248         constraints for CONSTRUCTOR.
28249
28250 2010-04-30  Richard Guenther  <rguenther@suse.de>
28251
28252         PR lto/43946
28253         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
28254         first after all lowering passes.
28255
28256 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
28257
28258         * toplev.c: Include varray.h for statistics dumping.
28259         * tree.h: Do not declare varray_head_tag.
28260         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
28261         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
28262         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
28263         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
28264         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
28265         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
28266         c-common.c, c-common.h, reg-stack.c, basic-block.h,
28267         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
28268         include varray.h.
28269         * Makefile.in: Update for abovementioned changes.
28270
28271 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
28272
28273         PR debug/43942
28274         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
28275
28276 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
28277
28278         * config/picochip/picochip.c (picochip_legitimize_address): Define.
28279         Use this function to do machine-specific conversion.
28280         (picochip_legitimize_reload_address): Likewise.
28281         (picochip_legitimate_address_p): Check valid base register only if
28282         strict.
28283         (picochip_check_conditional_copy): Check for modw only if opnd is
28284         register.
28285         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
28286         to call the function in c.
28287         * config/picochip/picochip-protos.h
28288         (picochip_legitimize_reload_address): Define.
28289         * config/picochip/picochip.md (supported_compare1): Define.
28290
28291 2010-04-30  Jan Hubicka  <jh@suse.cz>
28292
28293         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
28294         (cgraph_global_info): Remove inlined.
28295         (LTO_cgraph_tag_names): Remove.
28296         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
28297         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
28298         simplify cgraph tags and document.
28299         (lto_output_node): Use only LTO_cgraph_unavail_node and
28300         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
28301         for_functions_valid, global info, process and output flags.
28302         (input_overwrite_node): Initialize estimated stack size and
28303         estimated growth.  Do not read flags we no longer store.
28304         (input_node): Likewise do not read info no longer stored.
28305         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
28306         flag.
28307
28308 2010-04-30  Richard Guenther  <rguenther@suse.de>
28309
28310         PR tree-optimization/43879
28311         * tree-ssa-structalias.c (get_constraint_for_1): Properly
28312         handle non-zero initializers.
28313
28314 2010-04-30  Richard Guenther  <rguenther@suse.de>
28315
28316         * builtins.c (fold_builtin_1): Delete free (0).
28317
28318 2010-04-29  Jan Hubicka  <jh@suse.cz>
28319
28320         * gengtype.c (open_base_files): Add lto-streamer.h
28321         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
28322         (pass_ipa_cp): GGC collect.
28323         * toplev. (compile_file): Do not output symbols.
28324         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
28325         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
28326         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
28327         * lto-section-in.c: Include ggc.h
28328         (lto_new_in_decl_state): Alloc in GGC.
28329         (lto_delete_in_decl_state): Likewise.
28330         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
28331         Collect.
28332
28333 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
28334
28335         PR target/42895
28336         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
28337         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
28338         (HONOR_REG_ALLOC_ORDER): Describe new macro.
28339         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
28340         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
28341         account only if HONOR_REG_ALLOC_ORDER is not defined.
28342         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
28343         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
28344
28345 2010-04-29  Jon Grant  <04@jguk.org>
28346
28347         * collect2.c (vflag): Change type from int to bool.
28348         (debug): Likewise.
28349         (helpflag): New global bool.
28350         (main): Set vflag and debug with boolean, not integer truth values.
28351         Accept new "--help" option and output usage text if found.
28352         * collect2.h (vflag): Update prototype.
28353         (debug): Likewise.
28354
28355 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
28356
28357         PR bootstrap/43936
28358         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
28359
28360 2010-04-29  Richard Guenther  <rguenther@suse.de>
28361
28362         PR bootstrap/43935
28363         * plugin.h (invoke_plugin_callbacks): Annotate arguments
28364         with ATTRIBUTE_UNUSED.
28365
28366 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
28367
28368         PR target/43921
28369         * config/i386/i386.c (get_some_local_dynamic_name): Replace
28370         INSN_P with NONDEBUG_INSN_P.
28371         (distance_non_agu_define): Likewise.
28372         (distance_agu_use): Likewise.
28373
28374 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
28375
28376         From Dominique d'Humieres  <dominiq@lps.ens.fr>
28377         PR bootstrap/43858
28378         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
28379         test_set.
28380
28381 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
28382
28383         * plugin.h (invoke_plugin_callbacks): New inline function.
28384         * plugin.c (flag_plugin_added): New global flag.
28385         (add_new_plugin): Initialize above flag.
28386         (invoke_plugin_callbacks): Rename to ...
28387         (invoke_plugin_callbacks_full): ... this.
28388
28389 2010-04-28  Jan Hubicka  <jh@suse.cz>
28390
28391         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
28392         (lto_varpool_replace_node): New.
28393         (lto_symtab_resolve_symbols): Resolve varpool nodes.
28394         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
28395         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
28396         * cgraph.h (varpool_node_ptr): New type.
28397         (varpool_node_ptr): New vector.
28398         (varpool_node_set_def): New structure.
28399         (varpool_node_set): New type.
28400         (varpool_node_set): New vector.
28401         (varpool_node_set_element_def): New structure.
28402         (varpool_node_set_element, const_varpool_node_set_element): New types.
28403         (varpool_node_set_iterator): New type.
28404         (varpool_node): Add prev pointers, add used_from_other_partition,
28405         in_other_partition.
28406         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
28407         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
28408         varpool_get_node, varpool_remove_node): Declare.
28409         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
28410         varpool_node_set_size): New inlines.
28411         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
28412         * tree-pass.h (varpool_node_set_def): Forward declare.
28413         (ipa_opt_pass_d): Summary writting takes vnode sets too.
28414         (ipa_write_optimization_summaries): Update prototype.
28415         * ipa-cp.c (ipcp_write_summary): Update.
28416         * ipa-reference.c (ipa_reference_write_summary): Update.
28417         * lto-cgraph.c (lto_output_varpool_node): New static function.
28418         (output_varpool): New function.
28419         (input_varpool_node): New static function.
28420         (input_varpool_1): New function.
28421         (input_cgraph): Input varpool.
28422         * ipa-pure-const.c (pure_const_write_summary): Update.
28423         * lto-streamer-out.c (lto_output): Update, output varpool too.
28424         (write_global_stream): Kill WPA hack.
28425         (produce_asm_for_decls): Update.
28426         (output_alias_pair_p): Handle variables.
28427         (output_unreferenced_globals): Output only needed partition of varpool.
28428         * ipa-inline.c (inline_write_summary): Update.
28429         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
28430         cgraph.
28431         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
28432         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
28433         varpool_node_set_new, varpool_node_set_add,
28434         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
28435         debug_varpool_node_set): New functions.
28436         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
28437         (execute_one_pass): Process new decls too.
28438         (ipa_write_summaries_2): Pass around vsets.
28439         (ipa_write_summaries_1): Likewise.
28440         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
28441         to add.
28442         (ipa_write_optimization_summaries_1): Pass around vsets.
28443         (ipa_write_optimization_summaries): Likewise.
28444         * varpool.c (varpool_get_node): New.
28445         (varpool_node): Update doubly linked lists.
28446         (varpool_remove_node): New.
28447         (dump_varpool_node): More dumping.
28448         (varpool_enqueue_needed_node): Update doubly linked lists.
28449         (decide_is_variable_needed): Kill ltrans hack.
28450         (varpool_finalize_decl): Kill lto hack.
28451         (varpool_assemble_decl): Skip decls in other partitions.
28452         (varpool_assemble_pending_decls): Update doubly linkes lists.
28453         (varpool_empty_needed_queue): Likewise.
28454         (varpool_extra_name_alias): Likewise.
28455         * lto-streamer.c (lto_get_section_name): Add vars section.
28456         * lto-streamer.h (lto_section_type): Update.
28457         (output_varpool, input_varpool): Declare.
28458
28459 2010-04-28  Mike Stump  <mikestump@comcast.net>
28460
28461         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
28462
28463 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28464
28465         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
28466         record or union type with RECORD_OR_UNION_TYPE_P predicate.
28467         (lto_input_ts_type_tree_pointers): Likewise.
28468         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
28469         (lto_output_ts_type_tree_pointers): Likewise.
28470
28471 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28472
28473         Uniquization of constants at the Tree level
28474         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
28475         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
28476         bit to the end.
28477         (tree_output_constant_def): Declare.
28478         * gimplify.c (gimplify_init_constructor): When using block copy, first
28479         uniquize the constant constructor on the RHS.
28480         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
28481         DECL_IN_CONSTANT_POOL flag.
28482         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
28483         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
28484         constant pool.
28485         (assemble_variable): Deal with symbols belonging to the tree constant
28486         pool.
28487         (get_constant_section): Add ALIGN parameter and simplify.
28488         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
28489         (assemble_constant_contents): Use the expression of the VAR_DECL.
28490         (output_constant_def_contents): Use the alignment of the VAR_DECL.
28491         (tree_output_constant_def): New global function.
28492         (mark_constant): Use the expression of the VAR_DECL.
28493         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
28494         its expression.
28495         (output_object_block): Likewise and assemble the expression.
28496
28497 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28498
28499         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
28500         hash_tree, eq_tree): New tree hash table.
28501         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
28502         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
28503         lto_orig_address_remove): Reimplement.
28504
28505 2010-04-28  Xinliang David Li  <davidxl@google.com>
28506
28507         PR c/42643
28508         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
28509         (compute_uninit_opnds_pos): New function.
28510         (is_non_loop_exit_postdominating): New function.
28511         (compute_control_dep_chain): New function.
28512         (find_pdom): New function.
28513         (convert_control_dep_chain_into_preds): New function.
28514         (find_predicates): New function.
28515         (find_control_equiv_block): New function.
28516         (collect_phi_def_edges): New function.
28517         (find_def_preds): New function.
28518         (find_dom): New function.
28519         (dump_predicates): New function.
28520         (get_cmp_code): New function.
28521         (is_value_included_in): New function.
28522         (find_matching_predicate_in_rest_chains): New function.
28523         (use_pred_not_overlap_with_undef_path_pred): New function.
28524         (is_use_properly_guarded): New function.
28525         (normalize_cond_1): New function.
28526         (is_and_or_or): New function.
28527         (normalize_cond): New function.
28528         (is_gcond_subset_of): New function.
28529         (is_subset_of_any): New function.
28530         (is_or_set_subset_of): New function.
28531         (is_and_set_subset_of): New function.
28532         (is_norm_cond_subset_of): New function.
28533         (is_pred_expr_subset_of): New function.
28534         (is_pred_chain_subset_of): New function.
28535         (is_included_in): New function.
28536         (is_superset_of): New function.
28537         (find_uninit_use): New function.
28538         (warn_uninitialized_phi): New function.
28539         (compute_possibly_undefined_names): New function.
28540         (ssa_undefined_value_p): New function.
28541         (execute_late_warn_uninitialized): New function.
28542         * tree-ssa.c (ssa_undefined_value_p): Removed.
28543         (warn_uninit): Changed to extern.
28544         (warn_uninitialized_phi): Removed.
28545         (warn_uninitialized_vars): Changed to extern.
28546         (execute_late_warn_uninitialized): Removed
28547         * tree-flow.h: Add new prototypes.
28548         * timevar.def: Add new time variable.
28549         * Makefile.in: Add new build file.
28550
28551 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
28552
28553         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
28554         type if available.
28555
28556 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28557
28558         PR target/22224
28559         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
28560
28561 2010-04-28  Martin Jambor  <mjambor@suse.cz>
28562
28563         * cgraph.h (struct cgraph_node): New field indirect_calls.
28564         (struct cgraph_indirect_call_info): New type.
28565         (struct cgraph_edge): Removed field indirect_call. New fields
28566         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
28567         (cgraph_create_indirect_edge): Declare.
28568         (cgraph_make_edge_direct): Likewise.
28569         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
28570         * ipa-prop.h (struct ipa_param_call_note): Removed.
28571         (struct ipa_node_params): Removed field param_calls.
28572         (ipa_create_all_structures_for_iinln): Declare.
28573         * cgraph.c: Described indirect edges and uids in initial comment.
28574         (cgraph_add_edge_to_call_site_hash): New function.
28575         (cgraph_edge): Search also among the indirect edges, use
28576         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
28577         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
28578         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
28579         site hash.
28580         (initialize_inline_failed): Assign a reason to indirect edges.
28581         (cgraph_create_edge_1): New function.
28582         (cgraph_create_edge): Moved some functionality to
28583         cgraph_create_edge_1.
28584         (cgraph_create_indirect_edge): New function.
28585         (cgraph_edge_remove_callee): Add an assert checking for
28586         non-indirectness.
28587         (cgraph_edge_remove_caller): Special-case indirect edges.
28588         (cgraph_remove_edge): Likewise.
28589         (cgraph_set_edge_callee): New function.
28590         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
28591         (cgraph_make_edge_direct): New function.
28592         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
28593         the declaration of the call statement matches.
28594         (cgraph_node_remove_callees): Special-case indirect edges.
28595         (cgraph_clone_edge): Likewise.
28596         (cgraph_clone_node): Clone also the indirect edges.
28597         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
28598         indirect_call, dump count of indirect_calls edges.
28599         * ipa-prop.c (iinlining_processed_edges): New variable.
28600         (ipa_note_param_call): Create indirect edges instead of
28601         creating notes.  New parameter node.
28602         (ipa_analyze_call_uses): New parameter node, pass it on to
28603         ipa_note_param_call.
28604         (ipa_analyze_stmt_uses): Likewise.
28605         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
28606         (print_edge_addition_message): Work on edges rather than on notes.
28607         (update_call_notes_after_inlining): Likewise, renamed to
28608         update_indirect_edges_after_inlining.
28609         (ipa_create_all_structures_for_iinln): New function.
28610         (ipa_free_node_params_substructures): Do not free notes.
28611         (ipa_edge_duplication_hook): Propagate bits within
28612         iinlining_processed_edges bitmap.
28613         (ipa_node_duplication_hook): Do not duplicate notes.
28614         (free_all_ipa_structures_after_ipa_cp): Renamed to
28615         ipa_free_all_structures_after_ipa_cp.
28616         (free_all_ipa_structures_after_iinln): Renamed to
28617         ipa_free_all_structures_after_iinln.
28618         (ipa_write_param_call_note): Removed.
28619         (ipa_read_param_call_note): Removed.
28620         (ipa_write_indirect_edge_info): New function.
28621         (ipa_read_indirect_edge_info): Likewise.
28622         (ipa_write_node_info): Do not stream notes, do stream information
28623         in indirect edges.
28624         (ipa_read_node_info): Likewise.
28625         (lto_ipa_fixup_call_notes): Removed.
28626         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
28627         * ipa-inline.c (pass_ipa_inline): Likewise.
28628         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
28629         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
28630         * tree-inline.c (copy_bb): Removed an unnecessary double check for
28631         is_gimple_call.
28632         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
28633         edges.
28634         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
28635         (output_cgraph): Stream also indirect edges.
28636         (lto_output_edge): Added capability to stream indirect edges.
28637         (input_edge): Likewise.
28638         (input_cgraph_1): Likewise.
28639         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
28640         of indirect edges.
28641
28642 2010-04-28  Richard Guenther  <rguenther@suse.de>
28643
28644         PR tree-optimization/43879
28645         PR tree-optimization/43909
28646         * tree-ssa-structalias.c (struct variable_info): Add
28647         only_restrict_pointers flag.
28648         (new_var_info): Initialize it.  Increment stats.total_vars here.
28649         (create_function_info_for): Do not increment stats.total_vars here.
28650         (get_function_part_constraint): Fix build with C++.
28651         (insert_into_field_list): Remove.
28652         (push_fields_onto_fieldstack): Properly merge fields.
28653         (create_variable_info_for): Split and simplify.
28654         (create_variable_info_for_1): New piece.
28655         (intra_create_variable_infos): Properly make restrict constraints
28656         from parameters.
28657
28658 2010-04-28  Richard Guenther  <rguenther@suse.de>
28659
28660         PR c++/43880
28661         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
28662
28663 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28664             Jan Hubicka  <hubicka@ucw.cz>
28665
28666         * doc/invoke.texi (-Wsuggest-attribute=const,
28667         -Wsuggest-attribute=pure): Document.
28668         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
28669         (function_always_visible_to_compiler_p,
28670         suggest_attribute, warn_function_pure, warn_function_const):
28671         New functions.
28672         (check_call): Improve debug info.
28673         (analyze_function): Do not check availability.
28674         (add_new_function): Check availability.
28675         (propagate): Output warnings.
28676         (skip_function_for_local_pure_const): New function.
28677         (local_pure_const): Use it; output warnings.
28678         * common.opt (Wsuggest-attribute=const,
28679         Wsuggest-attribute=pure): New.
28680
28681 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
28682
28683         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
28684         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
28685         or DW_CFA_def_cfa_offset{,_sf}.
28686
28687 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28688
28689         * tree.h: Fix truncated long macros.
28690
28691 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
28692
28693         * collect2.c (TARGET_64BIT): Redefine to target's default.
28694         * tlink.c: Likewise.
28695         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
28696         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
28697         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
28698         for underscoring __USER_LABEL_PREFIX__.
28699         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
28700         (SUB_LINK_ENTRY32): New.
28701         (SUB_LINK_ENTRY64): New.
28702         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
28703         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
28704         (SUB_LINK_ENTRY64): New.
28705         (SUB_LINK_ENTRY): New.
28706         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
28707         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
28708         x64 target is choosen.
28709         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
28710         * configure: Regenerated.
28711         * configure.ac (leading-mingw64-underscores): Option added.
28712
28713 2010-04-27  Jan Hubicka  <jh@suse.cz>
28714
28715         * doc/invoke.texi (-fipa-profile): Document.
28716         * opts.c (decode_options): Enable ipa-profile at -O1.
28717         * timevar.def (TV_IPA_PROFILE): Define.
28718         * common.opt (fipa-profile): Add.
28719         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
28720         flag for clones.
28721         (cgraph_propagate_frequency): Handle only local ones.
28722         * tree-pass.h (pass_ipa_profile): Declare.
28723         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
28724         (pass_ipa_profile): Use TV_IPA_PROFILE.
28725         * ipa.c (ipa_profile): New function.
28726         (gate_ipa_profile): Likewise.
28727         (pass_ipa_profile): New global variable.
28728         * passes.c (pass_ipa_profile): New.
28729
28730 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
28731
28732         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
28733
28734 2010-04-27  Martin Jambor  <mjambor@suse.cz>
28735
28736         PR middle-end/43812
28737         * ipa.c (dissolve_same_comdat_group_list): New function.
28738         (function_and_variable_visibility): Call
28739         dissolve_same_comdat_group_list when comdat group contains external or
28740         newly local nodes.
28741         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
28742         lists are circular and that they contain only DECL_ONE_ONLY nodes.
28743
28744 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28745
28746         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
28747         (const_hash_1) <VECTOR_CST>: New case.
28748         (compare_constant) <VECTOR_CST>: Likewise.
28749         <ADDR_EXPR>: Deal with LABEL_REFs.
28750         (copy_constant) <VECTOR_CST>: New case.
28751
28752 2010-04-27  Jan Hubicka  <jh@suse.cz>
28753
28754         * cgraph.c (cgraph_propagate_frequency): New function.
28755         * cgraph.h (cgraph_propagate_frequency): Declare.
28756         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
28757         cgraph_propagate_frequency.
28758
28759 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
28760
28761         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
28762
28763 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
28764
28765         PR target/40657
28766         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
28767         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
28768         here to determine which regs to push and how much stack to reserve.
28769
28770 2010-04-27  Jie Zhang  <jie@codesourcery.com>
28771
28772         * doc/gimple.texi (gimple_statement_with_ops): Remove
28773         addresses_taken field.
28774         (gimple_statement_with_memory_ops): Likewise.
28775
28776 2010-04-27  Jan Hubicka  <jh@suse.cz>
28777
28778         * tree-inline.c (eni_inlining_weights): Remove.
28779         (estimate_num_insns): Special case more builtins.
28780
28781 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
28782
28783         PR c/32207
28784         * c-typeck.c (build_binary_op): Move forward check for comparison
28785         pointer with null pointer constant and adjust the diagnostic message.
28786
28787 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
28788
28789         PR lto/42776
28790         * configure.ac (gcc_cv_as_section_has_align): Set if installed
28791         binutils supports extended .section directive needed by LTO, or
28792         warn if older binutils found.
28793         (LTO_BINARY_READER): New AC_SUBST'd variable.
28794         (LTO_USE_LIBELF): Likewise.
28795         * config.gcc (lto_binary_reader): New target-specific configure
28796         variable.
28797         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
28798         (LTO_USE_LIBELF): Likewise.
28799         * configure: Regenerate.
28800
28801         * collect2.c (is_elf): Rename from this ...
28802         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
28803          object files in addition to ELF-formatted ones.
28804         (scan_prog_file): Caller updated.  Also allow for LTO info marker
28805         symbol to be prefixed or not by an extra underscore.
28806
28807         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
28808         * config/i386/winnt.c: Also #include lto-streamer.h
28809         (i386_pe_asm_named_section): Specify 1-byte section alignment for
28810         LTO named sections.
28811         (i386_pe_asm_output_aligned_decl_common): Add comment.
28812         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
28813
28814 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
28815
28816         PR target/43889
28817         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
28818         Add missing earlyclobber for second alternative.
28819
28820 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
28821
28822         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
28823         bits for artificial defs at the top of the block.
28824         * fwprop.c (single_def_use_enter_block): Don't call it.
28825
28826 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
28827
28828         PR 43715
28829         * configure.ac: Use "$gcc_cv_nm -g" on darwin
28830         instead of "$gcc_cv_objdump -T".
28831         Use "-undefined dynamic_lookup" on darwin.
28832         * configure: Regenerate.
28833
28834 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
28835
28836         PR c/43893
28837         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
28838
28839 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
28840
28841         * c-parser.c (struct c_token): Move location field up.
28842         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
28843         (struct c_declspecs): Convert typespec_word, storage_class, and
28844         default_int_p into bitfields.
28845         (struct c_declarator): Move loc field up.
28846
28847 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
28848
28849         * cfgloop.h (struct loop): Move can_be_parallel field up.
28850         * ipa-prop.h (struct ip_node_params): Move bitfields up.
28851         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
28852         down.
28853         (struct iv_cand): Convert pos field into a bitfield.
28854         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
28855         field up.
28856         (struct _stmt_vec_info): Shuffle fields for better packing.
28857
28858 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
28859
28860         * varasm.c (IN_NAMED_SECTION): Remove guard.
28861         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
28862         (IN_NAMED_SECTION_P): ...this.
28863         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
28864         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
28865
28866 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
28867
28868         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
28869         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
28870         of shadowing it.  Fix comments.
28871
28872 2010-04-26  Jan Hubicka  <jh@suse.cz>
28873
28874         * cgraph.c (cgraph_create_node): Set node frequency to normal.
28875         (cgraph_clone_node): Copy function frequency.
28876         * cgraph.h (node_frequency): New enum
28877         (struct cgraph_node): Add.
28878         * final.c (rest_of_clean_state): Update.
28879         * lto-cgraph.c (lto_output_node): Output node frequency.
28880         (input_overwrite_node): Input node frequency.
28881         * tre-ssa-loop-ivopts (computation_cost): Update.
28882         * lto-streamer-out.c (output_function): Do not output function
28883         frequency.
28884         * predict.c (maybe_hot_frequency_p): Update and handle functions
28885         executed once.
28886         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
28887         attribute lookup.
28888         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
28889         (compute_function_frequency): Set noreturn functions to be executed
28890         once.
28891         (choose_function_section): Update.
28892         * lto-streamer-in.c (input_function): Do not input function frequency.
28893         * function.c (allocate_struct_function): Do not initialize function
28894         frequency.
28895         * function.h (function_frequency): Remove.
28896         (struct function): Remove function frequency.
28897         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
28898         (try_update): Update.
28899         * tree-inline.c (initialize_cfun): Do not update function frequency.
28900         * passes.c (pass_init_dump_file): Update.
28901         * i386.c (ix86_compute_frame_layout): Update.
28902         (ix86_pad_returns): Update.
28903
28904 2010-04-26  Jie Zhang  <jie@codesourcery.com>
28905
28906         PR tree-optimization/43833
28907         * tree-vrp.c (range_int_cst_p): New.
28908         (range_int_cst_singleton_p): New.
28909         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
28910         when both operands are constants.  Use range_int_cst_p in
28911         BIT_IOR_EXPR case.
28912
28913 2010-04-26  Jan Hubicka  <jh@suse.cz>
28914
28915         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
28916
28917 2010-04-26  Richard Guenther  <rguenther@suse.de>
28918
28919         PR lto/43080
28920         * gimple.c (gimple_decl_printable_name): Deal gracefully
28921         with a NULL DECL_NAME.
28922
28923 2010-04-26  Richard Guenther  <rguenther@suse.de>
28924
28925         PR lto/42425
28926         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
28927         if emitting debug information and it is either a function
28928         or a namespace decl.
28929
28930 2010-04-26  Ira Rosen  <irar@il.ibm.com>
28931
28932         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
28933         determine if the statement is vectorizable, and a macro to access it.
28934         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28935         Skip statements that can't be vectorized. If the analysis fails,
28936         mark the statement as unvectorizable if vectorizing basic block.
28937         (vect_compute_data_refs_alignment): Likewise.
28938         (vect_verify_datarefs_alignment): Skip statements marked as
28939         unvectorizable. Add print.
28940         (vect_analyze_group_access): Skip statements that can't be
28941         vectorized. If the analysis fails, mark the statement as
28942         unvectorizable if vectorizing basic block.
28943         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
28944         * tree-vect-stmts.c (vectorizable_store): Fix the number of
28945         generated stmts for SLP.
28946         (new_stmt_vec_info): Initialize the new field.
28947         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
28948         statements marked as unvectorizable.
28949
28950 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
28951
28952         * c-common.c (flag_isoc1x): New.
28953         (flag_isoc99): Update comment.
28954         * c-common.h (flag_isoc1x): New.
28955         (flag_isoc99): Update comment.
28956         * c-cppbuiltin.c (builtin_define_float_constants): Also define
28957         __<type>_DECIMAL_DIG__.
28958         * c-opts.c (set_std_c1x): New.
28959         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
28960         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
28961         * c.opt (-std=c1x, -std=gnu1x): New options.
28962         * doc/cpp.texi: Mention -std=c1x.
28963         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
28964         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
28965         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
28966         * doc/standards.texi: Mention C1X.
28967         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
28968         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
28969         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
28970         Define for C1X.
28971
28972 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
28973
28974         * config/i386/gmon-sol2.c (_mcleanup): Change format string
28975         placeholder from 0x%x to %#x.
28976         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
28977         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
28978         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
28979         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
28980         * config/i386/i386.c (ix86_target_string): Ditto.
28981         (output_pic_addr_const): Ditto.
28982         (print_operand): Ditto.
28983
28984 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
28985
28986         * combine.c (find_split_point): Add third argument.  Use it
28987         to find nested multiply-accumulate instructions.  Adjust calls.
28988         (try_combine): Adjust call to find_split_point.
28989
28990 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
28991
28992         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
28993
28994 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
28995
28996         PR tree-optimization/41442
28997         * fold-const.c (merge_truthop_with_opposite_arm): New function.
28998         (fold_binary_loc): Call it.
28999
29000 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29001
29002         * toplev.c (general_init): Set default for fdiagnostics-show-option.
29003         * opts.c (common_handle_option): Allow disabling it.
29004         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
29005
29006 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
29007
29008         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
29009         between modes if both types are integral.
29010
29011 2010-04-23  Richard Guenther  <rguenther@suse.de>
29012
29013         PR tree-optimization/43572
29014         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
29015
29016 2010-04-23  Richard Guenther  <rguenther@suse.de>
29017
29018         PR lto/43455
29019         * tree-inline.c (tree_can_inline_p): Also check compatibility
29020         of return types.
29021
29022 2010-04-23  Martin Jambor  <mjambor@suse.cz>
29023
29024         PR tree-optimization/43846
29025         * tree-sra.c (struct access): New flag grp_assignment_read.
29026         (build_accesses_from_assign): Set grp_assignment_read.
29027         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
29028         (enum mark_read_status): New type.
29029         (analyze_access_subtree): Propagate grp_assignment_read, create
29030         accesses also if both direct_read and root->grp_assignment_read.
29031
29032 2010-04-23  Martin Jambor  <mjambor@suse.cz>
29033
29034         PR middle-end/43835
29035         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
29036         function does not have type attributes.
29037
29038 2010-04-23  Richard Guenther  <rguenther@suse.de>
29039
29040         PR lto/42653
29041         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
29042         of FUNCTION_DECLs.
29043
29044 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
29045
29046         * sese.h (create_if_region_on_edge): Remove.
29047
29048         * sese.c (create_if_region_on_edge): Make static.
29049
29050         * tree-inline.c: Do not include ggc.h.
29051
29052         * expr.c: Do not include ggc.h.
29053
29054         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
29055         dependencies.
29056
29057 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
29058
29059         PR target/43744
29060         * config/sh/sh.c (find_barrier): Don't emit a constant pool
29061         in the middle of insns for casesi_worker_2.
29062
29063 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
29064
29065         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
29066
29067 2010-04-22  Ira Rosen  <irar@il.ibm.com>
29068
29069         PR tree-optimization/43842
29070         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
29071         loop unrolling in update of exit phis. Fix comment.
29072         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
29073         least two reduction statements in the loop before starting SLP
29074         analysis.
29075
29076 2010-04-22  Nick Clifton  <nickc@redhat.com>
29077
29078         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
29079
29080 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
29081
29082         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
29083         to simplify a + ~a.
29084
29085 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
29086
29087         * tree-parloops.c (loop_parallel_p): New argument
29088         parloop_obstack.  Pass it down.
29089         (parallelize_loops): New variable parloop_obstack.  Initialize it,
29090         pass it down, free it.
29091
29092         * tree-loop-linear.c (linear_transform_loops): Pass down
29093         lambda_obstack.
29094
29095         * tree-data-ref.h (lambda_compute_access_matrices): New argument
29096         of type struct obstack *.
29097
29098         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
29099         scratch_obstack.  Initialize it, pass down, free it.
29100
29101         * lambda.h (lambda_loop_new): Remove.
29102         (lambda_matrix_new, lambda_matrix_inverse)
29103         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
29104         argument of type struct obstack *.
29105
29106         * lambda-trans.c (lambda_trans_matrix_new): New argument
29107         lambda_obstack.  Pass it down, use obstack allocation for ret.
29108         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
29109         it down.
29110
29111         * lambda-mat.c (lambda_matrix_get_column)
29112         (lambda_matrix_project_to_null): Remove.
29113         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
29114         allocation for mat.
29115         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
29116         lambda_obstack.
29117
29118         * lambda-code.c (lambda_loop_new): New function.
29119         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
29120         (lambda_compute_auxillary_space, lambda_compute_target_space)
29121         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
29122         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
29123         (build_access_matrix): New argument lambda_obstack.  Use obstack
29124         allocation for am.
29125         (lambda_compute_step_signs, lambda_compute_access_matrices): New
29126         argument lambda_obstack.  Pass it down.
29127
29128 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
29129
29130         * optabs.h (expand_widening_mult): Declare.
29131
29132 2010-04-22  Richard Guenther  <rguenther@suse.de>
29133
29134         PR tree-optimization/43845
29135         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
29136         lookup the CALL_EXPR function and arguments.
29137
29138 2010-04-22  Nick Clifton  <nickc@redhat.com>
29139
29140         * config/stormy16/stormy16.c
29141         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
29142         * config/stormy16/stormy16.h: Tidy up formatting.
29143         (DONT_USE_BUILTIN_SETJMP): Remove definition.
29144         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
29145         (ineqbranchsi): Delete pattern.
29146         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
29147         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
29148         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
29149         stormy16-lib2-ucmpsi2.c.
29150
29151 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
29152
29153         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
29154         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
29155         extra set merge_set_noclobber, and use it to relax the final test
29156         slightly.
29157         * df.h (df_simulate_find_noclobber_defs): Declare.
29158         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
29159         conditional defs.
29160         (df_simulate_find_noclobber_defs): New function.
29161
29162 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
29163
29164         * config/i386/i386.md: Use {} around multi-line preparation statements.
29165
29166 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
29167
29168         * c-tree.h (push_init_level, pop_init_level, set_init_index)
29169         (process_init_element): New argument of type struct obstack *.
29170
29171         * c-typeck.c (push_init_level, pop_init_level, set_designator)
29172         (set_init_index, set_init_label, set_nonincremental_init)
29173         (set_nonincremental_init_from_string, find_init_member)
29174         (output_init_element, output_pending_init_elements)
29175         (process_init_element): New argument braced_init_obstack.  Pass it
29176         down.
29177         (push_range_stack, add_pending_init): New argument
29178         braced_init_obstack.  Use obstack allocation.
29179
29180         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
29181         braced_init_obstack.  Pass it down.
29182         (c_parser_braced_init): New variables ret, braced_init_obstack.
29183         Initialize obstack, pass it down and finally free it.
29184
29185 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
29186
29187         PR middle-end/29274
29188         * tree-pass.h (pass_optimize_widening_mul): Declare.
29189         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
29190         gate_optimize_widening_mul): New static functions.
29191         (pass_optimize_widening_mul): New.
29192         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
29193         <case MULT_EXPR>: Remove support for widening multiplies.
29194         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
29195         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
29196         simplify_gen_unary rather than directly building extensions.
29197         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
29198         WIDEN_MULT_EXPR.
29199         * expmed.c (expand_widening_mult): New function.
29200         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
29201
29202 2010-04-21  Jan Hubicka  <jh@suse.cz>
29203
29204         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
29205         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
29206         * lto-wpa-fixup.c: Remove.
29207         * Makefile.in (lto-wpa-fixup.o): Remove.
29208         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
29209         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
29210         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
29211
29212 2010-04-21  Jan Hubicka  <jh@suse.cz>
29213
29214         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
29215         add write_optimization_summary, read_optimization_summary.
29216         (ipa_write_summaries_of_cgraph_node_set): Remove.
29217         (ipa_write_optimization_summaries): Declare.
29218         (ipa_read_optimization_summaries): Declare.
29219         * ipa-cp.c (pass_ipa_cp): Update.
29220         * ipa-reference.c (pass_ipa_reference): Update.
29221         * ipa-pure-const.c (pass_ipa_pure_const): Update.
29222         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
29223         Update.
29224         * ipa-inline.c (pass_ipa_inline): Update.
29225         * ipa.c (pass_ipa_whole_program): Update.
29226         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
29227         * passes.c (ipa_write_summaries_1): Do not test wpa.
29228         (ipa_write_optimization_summaries_1): New.
29229         (ipa_write_optimization_summaries): New.
29230         (ipa_read_summaries): Do not test ltrans.
29231         (ipa_read_optimization_summaries_1): New.
29232         (ipa_read_optimization_summaries): New.
29233
29234 2010-04-21  Jan Hubicka  <jh@suse.cz>
29235
29236         * lto-cgraph.c (lto_output_node): Do not output comdat groups
29237         for boundary nodes.
29238         (output_cgraph): Do not arrange comdat groups for boundary nodes.
29239
29240 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
29241
29242         PR debug/40040
29243         * dwarf2out.c (add_name_and_src_coords_attributes): Add
29244         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
29245
29246 2010-04-21  Jan Hubicka  <jh@suse.cz>
29247
29248         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
29249
29250 2010-04-21  Jan Hubicka  <jh@suse.cz>
29251
29252         * varpool.c (decide_is_variable_needed): Variable is always needed
29253         during ltrans.
29254
29255 2010-04-21  Jan Hubicka  <jh@suse.cz>
29256
29257         * opts.c (decode_options): Enable pure-const pass for whopr.
29258
29259 2010-04-21  Jan Hubicka  <jh@suse.cz>
29260
29261         * cgraph.c (dump_cgraph_node): Dump also assembler name.
29262         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
29263         at WPA dumping.
29264         (cgraph_decide_inlining): Do not expect callee to be removed in all
29265         cases.
29266
29267 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
29268
29269         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
29270
29271 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
29272
29273         * config/i386/i386.md (x86_shrd): Add athlon_decode and
29274         amdfam10_decode attributes.
29275
29276 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
29277
29278         PR middle-end/43570
29279         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
29280         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
29281         (lower_copyprivate_clauses): Use private var in outer
29282         context instead of original var.  Make sure the types
29283         are correct for VLAs.
29284
29285 2010-04-21  Richard Guenther  <rguenther@suse.de>
29286
29287         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
29288         to non-pointer objects.
29289
29290 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
29291
29292         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
29293         last chain entry if it starts with the still current label.
29294         (add_location_or_const_value_attribute): Check that
29295         loc_list->first->next is NULL instead of comparing ->first with ->last.
29296         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
29297         to add_var_loc_to_decl.
29298
29299         * dwarf2out.c (output_call_frame_info): For dw_cie_version
29300         >= 4 add also address size and segment size fields into CIE header.
29301
29302         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
29303         long as address size is the same as sizeof (void *) and
29304         segment size is 0.
29305         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
29306         address size or segment size is unexpected, return DW_EH_PE_omit.
29307         (classify_object_over_fdes): If get_cie_encoding returned
29308         DW_EH_PE_omit, return -1.
29309         (init_object): If classify_object_over_fdes returned -1,
29310         pretend there were no FDEs at all.
29311
29312 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
29313
29314         * config/i386/i386.md (bswap<mode>2): Macroize expander from
29315         bswap{si,di}2 using SWI48 mode iterator.
29316         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
29317         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
29318         set modrm attribute of bswap insn to 0 and remove length attribute.
29319         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
29320         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
29321         set mode attribute to <MODE> and remove length attribute.
29322
29323 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
29324
29325         PR rtl-optimization/43520
29326         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
29327         zero available registers.
29328
29329 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29330
29331         * builtins.c (fold_builtin_cproj): Fold more cases.
29332
29333 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29334
29335         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
29336         (fold_builtin_1): Fold builtin cproj.
29337         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
29338         Use ATTR_CONST_NOTHROW_LIST.
29339
29340 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
29341
29342         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
29343         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
29344         ffsi2_no_cmove for !TARGET_CMOVE.
29345         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
29346         (ffssi2): Remove expander.
29347         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
29348         mode iterator.
29349         (ctz<mode>2): Ditto from ctz{si,di}2.
29350         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
29351         mode iterator.
29352         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
29353         mode iterator.
29354
29355 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
29356
29357         * dwarf2out.c (AT_linkage_name): Define.
29358         (clone_as_declaration): Handle DW_AT_linkage_name.
29359         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
29360         of DW_AT_MIPS_linkage_name.
29361         (move_linkage_attr): Likewise.
29362         (dwarf2out_finish): Likewise.
29363
29364 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
29365
29366         PR middle-end/41952
29367         * fold-const.c (fold_comparison): New folding rule.
29368
29369 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
29370
29371         * double-int.h (double_int_setbit): Declare.
29372         * double-int.c (double_int_setbit): New function.
29373         * rtl.h (immed_double_int_const): Declare.
29374         * emit-rtl.c (immed_double_int_const): New function.
29375         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
29376         and immed_double_int_const functions.
29377         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
29378         expand_copysign_bit): (Ditto.).
29379         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
29380         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
29381         * dojump.c (prefer_and_bit_test): (Ditto.).
29382         * expr.c (convert_modes, reduce_to_bit_field_precision,
29383         const_vector_from_tree): (Ditto.).
29384         * expmed.c (mask_rtx, lshift_value): (Ditto.).
29385
29386 2010-04-20  Jan Hubicka  <jh@suse.cz>
29387
29388         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
29389         (dump_cgraph_node): Dump new flags.
29390         * cgraph.h (struct cgraph_node): Add flags
29391         reachable_from_other_partition and in_other_partition.
29392         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
29393         other partition can not be removed.
29394         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
29395         the other partition must be output; silence sanity checking on
29396         leaking functions bodies from other paritition.
29397         * lto-cgraph.c (reachable_from_other_partition_p): New function.
29398         (lto_output_node): Output new flags; do not sanity check that inline
29399         clones are output; drop lto_forced_extern_inline_p code; do not mock
29400         visibility flags at partition boundaries.
29401         (add_node_to): New function.
29402         (output_cgraph): Use it to sort functions so masters appear before
29403         clones.
29404         (input_overwrite_node): Input new flags.
29405         * passes.c (ipa_write_summaries): Do not call
29406         lto_new_extern_inline_states.
29407         * lto-section-out.c (forced_extern_inline,
29408         lto_new_extern_inline_states lto_delete_extern_inline_states,
29409         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
29410         * lto-streamer.h (lto_new_extern_inline_states,
29411         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
29412         lto_forced_extern_inline_p): Kill.
29413
29414 2010-04-20  Richard Guenther  <rguenther@suse.de>
29415
29416         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
29417         from vars that can have pointers.
29418         (process_constraint): Dump useless constraints.
29419
29420 2010-04-20  Richard Guenther  <rguenther@suse.de>
29421
29422         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
29423         (dump_sa_points_to_info): Remove asserts.
29424         (init_base_vars): nothing_id isn't an escape point nor does it
29425         have pointers.
29426
29427 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
29428
29429         * tree.h (TYPE_REF_IS_RVALUE): Define.
29430         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
29431         should_move_die_to_comdat, prune_unused_types_walk): Handle
29432         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
29433         (modified_type_die, gen_reference_type_die): Emit
29434         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
29435         if TYPE_REF_IS_RVALUE and -gdwarf-4.
29436
29437 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29438
29439         PR target/43635
29440         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
29441         calls for -fpic -m31 if they have been sibcall optimized.
29442
29443 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
29444
29445         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
29446         ar.lc fixed and call-used.
29447
29448         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
29449
29450 2010-04-19  Jan Hubicka  <jh@suse.cz>
29451
29452         * opts.c (decode_options): Disable whpr incompatible passes.
29453         * lto/lto.c (lto_1_to_1_map): Skip clones.
29454         (read_cgraph_and_symbols): Do not mark everything as needed.
29455         (do_whole_program_analysis): Do map only after optimizing;
29456         set proper cgraph_state; use passmanager.
29457
29458 2010-04-19  DJ Delorie  <dj@redhat.com>
29459
29460         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
29461         POINTER_PLUS_EXPR and fix them.
29462
29463 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
29464
29465         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
29466         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
29467         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
29468         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
29469         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
29470         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
29471         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
29472         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
29473         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
29474         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
29475         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
29476
29477 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
29478
29479         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
29480         (check_cond_move_block): Likewise.
29481         (cond_move_process_if_block): Likewise.
29482         (noce_find_if_block): Improve formatting.
29483         (find_if_header): Pass 0 to memset and tweak conditions.
29484         (cond_exec_find_if_block): Fix long lines and tweak conditions.
29485
29486 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
29487
29488         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
29489         for -gdwarf-4.
29490
29491         PR middle-end/43337
29492         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
29493         with non-local decl doesn't need chain.
29494
29495 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29496
29497         * ira-color.c (allocno_reload_assign): Avoid accumulating
29498         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
29499
29500 2010-04-19  Martin Jambor  <mjambor@suse.cz>
29501
29502         * gimple.h (create_tmp_reg): Declare.
29503         * gimplify.c (create_tmp_reg): New function.
29504         (gimplify_return_expr): Use create_tmp_reg.
29505         (gimplify_omp_atomic): Likewise.
29506         (gimple_regimplify_operands): Likewise.
29507         * tree-dfa.c (make_rename_temp): Likewise.
29508         * tree-predcom.c (predcom_tmp_var): Likewise.
29509         (reassociate_to_the_same_stmt): Likewise.
29510         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
29511         (get_replaced_param_substitute): Likewise.
29512         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
29513         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
29514         * tree-ssa-pre.c (get_representative_for): Likewise.
29515         (create_expression_by_pieces): Likewise.
29516         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
29517         (create_tailcall_accumulator): Likewise.
29518
29519 2010-04-19  Martin Jambor  <mjambor@suse.cz>
29520
29521         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
29522         new_stmt.
29523         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
29524
29525 2010-04-19  Richard Guenther  <rguenther@suse.de>
29526
29527         PR tree-optimization/43796
29528         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
29529         from SCEV in the lattice.
29530         (vrp_visit_phi_node): Dump change.
29531
29532 2010-04-19  Richard Guenther  <rguenther@suse.de>
29533
29534         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
29535         * configure: Re-generated.
29536
29537 2010-04-19  Richard Guenther  <rguenther@suse.de>
29538
29539         PR tree-optimization/43783
29540         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
29541         constant ARRAY_REF operands two and three if possible.
29542
29543 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
29544
29545         PR target/43766
29546         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
29547
29548 2010-04-19  Jie Zhang  <jie@codesourcery.com>
29549
29550         PR target/43662
29551         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
29552
29553 2010-04-19  Ira Rosen  <irar@il.ibm.com>
29554
29555         PR tree-optimization/37027
29556         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
29557         and macro to access it.
29558         (vectorizable_reduction): Add argument.
29559         (vect_get_slp_defs): Likewise.
29560         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
29561         statements for possible use in SLP.
29562         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
29563         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
29564         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
29565         add new argument.
29566         (vectorizable_reduction): Likewise.
29567         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
29568         vect_get_slp_defs.
29569         (vectorizable_type_demotion, vectorizable_type_promotion,
29570         vectorizable_store): Likewise.
29571         (vect_analyze_stmt): Update call to vectorizable_reduction.
29572         (vect_transform_stmt): Likewise.
29573         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
29574         (vect_build_slp_tree): Fix indentation. Check that there are no loads
29575         from different interleaving chains in same node.
29576         (vect_slp_rearrange_stmts): New function.
29577         (vect_supported_load_permutation_p): Allow load permutations for
29578         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
29579         inside SLP nodes if necessary.
29580         (vect_analyze_slp_instance): Handle reductions.
29581         (vect_analyze_slp): Try to build SLP instances originating from groups
29582         of reductions.
29583         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
29584         (vect_get_constant_vectors): Create initial vectors for reductions
29585         according to reduction code. Add new argument.
29586         (vect_get_slp_defs): Add new argument, pass it to
29587         vect_get_constant_vectors.
29588         (vect_schedule_slp_instance): Remove SLP tree root statements.
29589
29590 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
29591
29592         * tree.h (ENUM_IS_SCOPED): Define.
29593         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
29594         for ENUM_IS_SCOPED enums.
29595
29596 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
29597
29598         * fold-const.c (fold_comparison): Use ssizetype.
29599         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
29600         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
29601         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
29602         * tree-object-size.c (compute_object_sizes): Use size_type_node.
29603
29604         * tree.h (initialize_sizetypes): Remove parameter.
29605         (build_common_tree_nodes): Remove second parameter.
29606         * stor-layout.c (initialize_sizetypes): Remove parameter.
29607         Always create an unsigned type.
29608         (set_sizetype): Assert that the passed type is unsigned and simplify.
29609         * tree.c (build_common_tree_nodes): Remove second parameter.
29610         Adjust call to initialize_sizetypes.
29611         * c-decl.c (c_init_decl_processing): Remove second argument in call to
29612         build_common_tree_nodes.
29613
29614 2010-04-18  Matthias Klose  <doko@ubuntu.com>
29615
29616         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
29617
29618 2010-04-18  Ira Rosen  <irar@il.ibm.com>
29619
29620         PR tree-optimization/43771
29621         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
29622         load permutation doesn't have gaps.
29623
29624 2010-04-18  Jan Hubicka  <jh@suse.cz>
29625
29626         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
29627         (sse_prologue_save_insn expander): Use new pattern.
29628         (sse_prologue_save_insn1): New pattern and splitter.
29629         (sse_prologue_save_insn): Update to deal also with 64bit aligned
29630         blocks.
29631         * i386.c (setup_incoming_varargs_64): Do not compute jump
29632         destination here.
29633         (ix86_gimplify_va_arg): Update alignment needed.
29634         (ix86_local_alignment): Do not align all local arrays to 128bit.
29635
29636 2010-04-17  Jan Hubicka  <jh@suse.cz>
29637
29638         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
29639
29640 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
29641
29642         * arm.md (negdi2): Remove redundant code to force values into a
29643         register.
29644
29645 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
29646
29647         * arm/bpabi.S: Add EABI alignment attributes to objects.
29648         * arm/bpabi-v6m.S: Likewise.
29649         * arm/crti.asm: Likewise.
29650         * arm/crtn.asm: Likewise.
29651         * arm/lib1funcs.asm: Likewise.
29652         * arm/libunwind.S: Likewise.
29653
29654 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
29655
29656         * arm-protos.h (tune_params): New structure.
29657         * arm.c (current_tune): New variable.
29658         (arm_constant_limit): Delete.
29659         (struct processors): Add pointer to the tune parameters.
29660         (arm_slowmul_tune): New tuning option.
29661         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
29662         (all_cores): Adjust to pick up the tuning model.
29663         (arm_constant_limit): New function.
29664         (arm_override_options): Select the appropriate tuning model.  Delete
29665         initialization of arm_const_limit.
29666         (arm_split_constant): Use the new constant-limit model.
29667         (arm_rtx_costs): Pick up the current tuning model.
29668         * arm.md (is_strongarm, is_xscale): Delete.
29669         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
29670         for Xscale variant architectures.
29671         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
29672
29673 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29674
29675         * config/arm/arm.c (arm_gen_constant): Remove unused variable
29676         can_shift.
29677         (arm_rtx_costs_1): Remove unused variable extra_cost.
29678         (arm_unwind_emit_set): Use variable offset.
29679         (thumb1_output_casesi): Remove unused variable flags.
29680
29681 2010-04-16  Jeff Law  <law@redhat.com>
29682
29683         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
29684         needing assignment rather than doing a two-phase assignment.  Remove
29685         unused variable 'm'.
29686
29687 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
29688
29689         PR bootstrap/43767
29690         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
29691
29692 2010-04-16  Doug Kwan  <dougkwan@google.com>
29693
29694         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
29695         (next_operand_entry_id): New static variable.
29696         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
29697         (add_to_ops_vec): Assigned unique ID to operand entry.
29698         (struct oecount_s): New field ID.
29699         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
29700         (undistribute_ops_list): Assign unique IDs to oecounts.
29701         (init_reassoc): reset next_operand_entry_id.
29702
29703 2010-04-16  Doug Kwan  <dougkwan@google.com>
29704
29705         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
29706         missing left parenthesis.
29707
29708 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
29709
29710         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
29711         *btdi_rex64 using SWI48 mode iterator.
29712         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
29713         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
29714         *jcc_btdi_mask_rex64.
29715
29716 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
29717
29718         * double-int.h (tree_to_double_int): Convert to macro.
29719         * double-int.c (tree_to_double_int): Remove.
29720
29721 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
29722
29723         PR debug/43762
29724         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
29725         with want_address 2 and in case a single element list might be
29726         possible, call it again with want_address 0.
29727
29728 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
29729
29730         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
29731         case 'W' print operands for HI mode.
29732         * config/h8300/h8300.h (Y0, Y2) : New constraints.
29733         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
29734         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
29735         * config/h8300/predicate.md (bit_register_indirect_operand): New.
29736
29737         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
29738
29739         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
29740         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
29741         #xx:3 and #xx:4 mode.
29742
29743         * config/h8300/h8300.md (inverted load with HImode dest): Add
29744         support for H8300SX.
29745
29746         * config/h8300/predicate.md (bit_operand): Allow immediate values that
29747         satisfy 'U' constraint.
29748
29749 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29750
29751         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
29752         * configure: Regenerate.
29753         * config.in: Regenerate.
29754         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
29755         works.
29756
29757 2010-04-16  Richard Guenther  <rguenther@suse.de>
29758
29759         * tree.h (struct tree_decl_minimal): Move pt_uid ...
29760         (struct tree_decl_common): ... here.
29761         (DECL_PT_UID): Adjust.
29762         (SET_DECL_PT_UID): Likewise.
29763         (DECL_PT_UID_SET_P): Likewise.
29764
29765 2010-04-16  Richard Guenther  <rguenther@suse.de>
29766
29767         PR tree-optimization/43572
29768         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
29769         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
29770         * tree-flow.h (is_call_clobbered): Remove.
29771         * tree-flow-inline.h (is_call_clobbered): Likewise.
29772         * tree-dfa.c (dump_variable): Do not dump call clobber state.
29773         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
29774         (execute_return_slot_opt): Adjust.
29775         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
29776         check for call clobbered vars here.
29777         (find_tail_calls): Move tailcall verification to the
29778         proper place.
29779
29780 2010-04-16  Diego Novillo  <dnovillo@google.com>
29781
29782         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
29783
29784 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
29785
29786         PR target/40603
29787         * config/arm/arm.md (cbranchqi4): New pattern.
29788         * config/arm/predicates.md (const0_operand,
29789         cbranchqi4_comparison_operator): New predicates.
29790
29791 2010-04-16  Richard Guenther  <rguenther@suse.de>
29792
29793         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
29794         (dump_gimple_stmt): Likewise.
29795
29796 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
29797
29798         * recog.h (struct recog_data): New field is_operator.
29799         (struct insn_operand_data): New field is_operator.
29800         * recog.c (extract_insn): Set recog_data.is_operator.
29801         * genoutput.c (output_operand_data): Emit code to set the
29802         is_operator field.
29803         * reload.c (find_reloads): Use it rather than testing for an
29804         empty constraint string.
29805
29806         PR target/41514
29807         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
29808         If the previous insn is a cbranchsi4_insn with the same arguments,
29809         omit the compare instruction.
29810
29811         * config/arm/arm.md (addsi3_cbranch): If destination is a high
29812         register, inputs must be low registers and we need a low register
29813         scratch.  Handle alternative 2 like alternative 3.
29814
29815 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
29816
29817         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
29818         don't call get_addr on both.  If one expression is a VALUE and
29819         the other a REG, check VALUE's locs if the REG isn't among them.
29820
29821 2010-04-16  Christian Bruel  <christian.bruel@st.com>
29822
29823         * config/sh/sh.h (sh_frame_pointer_required): New function.
29824         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
29825         (flag_omit_frame_pointer) Set.
29826         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
29827         (rounded_frame_size): Adjust size with outgoing_args_size.
29828         (sh_set_return_address): Must return from stack pointer.
29829         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
29830         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
29831         (ACCUMULATE_OUTGOING_ARGS): Define.
29832         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
29833         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
29834
29835 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
29836
29837         PR target/43471
29838         * config/sh/sh.c (sh_legitimize_reload_address): Use
29839         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
29840         Remove a unneeded check for offset_base.
29841
29842 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
29843
29844         * configure: Regenerated.
29845
29846 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29847
29848         * config/s390/s390.c (s390_call_save_register_used): Switch back
29849         to HARD_REGNO_NREGS.
29850
29851 2010-04-15  Richard Guenther  <rguenther@suse.de>
29852
29853         * alias.c (alias_set_subset_of): Handle alias-set zero
29854         child properly.
29855
29856 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
29857             Julian Brown  <julian@codesourcery.com>
29858
29859         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
29860         alternatives according to use of high and low regs.
29861         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
29862         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
29863         optimizing for size on Thumb-2.
29864
29865 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
29866
29867         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
29868
29869 2010-04-15  Richard Guenther  <rguenther@suse.de>
29870
29871         * tree-ssa-structalias.c (struct variable_info): Add
29872         is_fn_info flag.
29873         (new_var_info): Initialize it.
29874         (dump_constraints): Support printing last added constraints.
29875         (debug_constraints): Adjust.
29876         (dump_constraint_graph): Likewise.
29877         (make_heapvar_for): Check for NULL cfun.
29878         (get_function_part_constraint): New function.
29879         (get_fi_for_callee): Likewise.
29880         (find_func_aliases): Properly implement IPA PTA constraints.
29881         (process_ipa_clobber): New function.
29882         (find_func_clobbers): Likewise.
29883         (insert_into_field_list_sorted): Remove.
29884         (create_function_info_for): Properly allocate vars for IPA mode.
29885         Do not use insert_into_field_list_sorted.
29886         (create_variable_info_for): Properly generate constraints for
29887         global vars in IPA mode.
29888         (dump_solution_for_var): Always dump the solution.
29889         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
29890         (find_what_var_points_to): Adjust.
29891         (pt_solution_set): Change.
29892         (pt_solution_ior_into): New function.
29893         (pt_solution_empty_p): Export.
29894         (pt_solution_includes_global): Adjust.
29895         (pt_solution_includes_1): Likewise.
29896         (pt_solutions_intersect_1): Likewise.
29897         (dump_sa_points_to_info): Check some invariants.
29898         (solve_constraints): Move constraint dumping ...
29899         (compute_points_to_sets): ... here.
29900         (ipa_pta_execute): ... and here.
29901         (compute_may_aliases): Do not re-compute points-to info
29902         locally if IPA info is available.
29903         (ipa_escaped_pt): New global var.
29904         (ipa_pta_execute): Properly implement IPA PTA.
29905         * tree-into-ssa.c (dump_decl_set): Support dumping
29906         decls not in referenced-vars.
29907         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
29908         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
29909         (dump_points_to_solution): Likewise.
29910         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
29911         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
29912         (remap_gimple_stmt): Reset call clobber/use information if necessary.
29913         (copy_decl_to_var): Copy DECL_PT_UID.
29914         (copy_result_decl_to_var): Likewise.
29915         * tree.c (make_node_stat): Initialize DECL_PT_UID.
29916         (copy_node_stat): Copy it.
29917         * tree.h (DECL_PT_UID): New macro.
29918         (SET_DECL_PT_UID): Likewise.
29919         (DECL_PT_UID_SET_P): Likewise.
29920         (struct tree_decl_minimal): Add pt_uid member.
29921         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
29922         (pt_solution_empty_p): Declare.
29923         (pt_solution_set): Adjust.
29924         (ipa_escaped_pt): Declare.
29925         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
29926         * gimple-pretty-print.c (pp_points_to_solution): New function.
29927         (dump_gimple_call): Dump call clobber/use information.
29928         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
29929         * tree-pass.h (TDF_ALIAS): New dump option.
29930         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
29931         * doc/invoke.texi (-fipa-pta): Update documentation.
29932
29933 2010-04-15  Richard Guenther  <rguenther@suse.de>
29934
29935         * Makefile.in (OBJS-common): Add gimple-fold.o.
29936         (gimple-fold.o): New rule.
29937         * tree.h (maybe_fold_offset_to_reference,
29938         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
29939         prototypes ...
29940         * gimple.h: ... here.
29941         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
29942         may_propagate_address_into_dereference): Move prototypes ...
29943         * gimple.h: ... here.
29944         * tree-ssa-ccp.c (get_symbol_constant_value,
29945         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
29946         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
29947         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
29948         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
29949         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
29950         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
29951         gimplify_and_update_call_from_tree): Move ...
29952         * gimple-fold.c: ... here.  New file.
29953         (ccp_fold_builtin): Rename to ...
29954         (gimple_fold_builtin): ... this.
29955         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
29956
29957 2010-04-15  Richard Guenther  <rguenther@suse.de>
29958
29959         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
29960         fit_double_type, force_fit_type_double, add_double_with_sign,
29961         neg_double, mul_double_with_sign, lshift_double, rshift_double,
29962         lrotate_double, rrotate_double, div_and_round_double): Move ...
29963         * double-int.c: ... here.
29964         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
29965         add_double, neg_double, mul_double_with_sign, mul_double,
29966         lshift_double, rshift_double, lrotate_double, rrotate_double,
29967         div_and_round_double): Move prototypes ...
29968         * double-int.h: ... here.
29969
29970 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
29971
29972         PR target/43742
29973         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
29974         matching constraints to ensure inputs match the output.
29975
29976 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
29977
29978         PR target/43742
29979         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
29980         in an input-only operand.
29981
29982 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
29983
29984         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
29985         (double_int_not, double_int_lshift, double_int_rshift): Declare.
29986         (double_int_negative_p): Convert to static inline function.
29987         * double-int.c (double_int_lshift, double_int_lshift): New functions.
29988         (double_int_negative_p): Remove.
29989         * tree.h (lshift_double, rshift_double):
29990         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
29991         * fold-const.c (fold_convert_const_int_from_real,
29992         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
29993         (lshift_double): Change type of arith argument to bool.
29994         (rshift_double): Change type of arith argument to bool. Correct
29995         comment.
29996         * expmed.c (mask_rtx, lshift_value): (Ditto.).
29997
29998 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
29999
30000         PR target/21803
30001         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
30002         at the start and end of the then/else blocks, and omit them from the
30003         conversion.
30004         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
30005         argument; all callers changed.  Pass zero to old_insns_match_p instead.
30006         (flow_find_head_matching_sequence): New function.
30007         (old_insns_match_p): Check REG_EH_REGION notes for calls.
30008         * basic-block.h (flow_find_cross_jump,
30009         flow_find_head_matching_sequence): Declare functions.
30010
30011 2010-04-14  Jason Merrill  <jason@redhat.com>
30012
30013         PR c++/36625
30014         * c-common.c (attribute_takes_identifier_p): New fn.
30015         * c-common.h: Declare it.
30016
30017 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
30018
30019         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
30020         splitter condition.
30021         (*udivmod<mode>4): Ditto.
30022
30023 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
30024
30025         * config/i386/i386.md (maxmin_int): Rename code attribute from
30026         maxminiprefix and update all users.
30027         (maxmin_float): Ditto from maxminfprefix.
30028         (logic): Ditto from logicprefix.
30029         (absneg_mnemonic): Ditto from absnegprefix.
30030         * config/i386/mmx.md: Update all users of maxminiprefix,
30031         maxminfprefix and logicprefix for rename.
30032         * config/i386/sse.md: Ditto.
30033         * config/i386/sync.md (sync_<code><mode>): Update for
30034         logicprefix rename.
30035
30036 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30037
30038         PR 42966
30039         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
30040         warnings converted to errors.
30041
30042 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
30043
30044         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
30045         used insn_type variable.
30046         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
30047         to avoid set-but-not-used warning.
30048
30049 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
30050
30051         * df-core.c (df_ref_debug): Change format string placeholder
30052         from 0x%x to %#x.
30053         * dwarf2asm.c (dw2_asm_output_data_raw,
30054         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
30055         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
30056         * dwarf2out.c (output_cfi, output_cfi_directive,
30057         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
30058         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
30059         Ditto.
30060         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
30061         * print-rtl.c (print_rtx): Ditto.
30062
30063 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
30064
30065         PR middle-end/42694
30066         * builtins.c (expand_builtin_pow_root): New function to expand pow
30067         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
30068         series of sqrt and cbrt calls under -ffast-math.
30069         (expand_builtin_pow): Call it.
30070
30071 2010-04-14  Michael Matz  <matz@suse.de>
30072
30073         PR tree-optimization/42963
30074         * tree-cfg.c (touched_switch_bbs): New static variable.
30075         (group_case_labels_stmt): New function broken out from ...
30076         (group_case_labels): ... here, use the above.
30077         (start_recording_case_labels): Allocate touched_switch_bbs.
30078         (end_recording_case_labels): Deallocate it, call
30079         group_case_labels_stmt.
30080         (gimple_redirect_edge_and_branch): Remember index of affected BB.
30081
30082 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
30083
30084         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
30085         from insn template.
30086
30087 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
30088
30089         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
30090
30091 2010-04-13  Jan Hubicka  <jh@suse.cz>
30092
30093         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
30094         of optimized out static functions.
30095         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
30096         cost computation.  Also sanity check for overflows.
30097         (update_caller_keys): Update cgraph_edge_badness call; properly
30098         update fibheap and sanity check that it is up to date.
30099         (add_new_edges_to_heap): Update cgraph_edge_badness.
30100         (cgraph_decide_inlining_of_small_function): Likewise;
30101         add sanity checking that badness in heap is up to date;
30102         improve dumping of reason; Update badness of calls to the
30103         offline copy of function currently inlined; dump badness
30104         of functions not inlined because of unit growth limits.
30105
30106 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
30107
30108         PR middle-end/32628
30109         * c-common.c (pointer_int_sum): Disregard overflow that occured only
30110         because of sign-extension change when converting to sizetype here...
30111         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
30112
30113         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
30114         the folding to constants.  Remove redundant final conversion.
30115         (fold_binary) <associate>: Do not associate if the re-association of
30116         constants alone overflows.
30117         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
30118         to the end of the list.
30119         (multiple_of_p) <COND_EXPR>: New case.
30120
30121 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30122
30123         * opt-functions.awk (opt_sanitized_name): New.
30124         (opt_enum): New.
30125         * optc-gen.awk: Use it
30126         * opth-gen.awk: Use it.
30127
30128 2010-04-13  Martin Jambor  <mjambor@suse.cz>
30129
30130         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
30131         (sra_modify_assign): Delete stmts loading dead data even if racc has no
30132         children.  Call replace_uses_with_default_def_ssa_name to handle
30133         SSA_NAES on lhs.
30134
30135 2010-04-13  Michael Matz  <matz@suse.de>
30136
30137         PR middle-end/43730
30138         * builtins.c (expand_builtin_interclass_mathfn): Also create
30139         a register if the predicate doesn't match.
30140
30141 2010-04-13  Diego Novillo  <dnovillo@google.com>
30142
30143         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
30144         * c-pch.c: Include timevar.h.
30145         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
30146         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
30147         * ggc-common.c: Include timevar.h.
30148         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
30149         * timevar.def (TV_PCH_SAVE): Define.
30150         (TV_PCH_CPP_SAVE): Define.
30151         (TV_PCH_PTR_REALLOC): Define.
30152         (TV_PCH_PTR_SORT): Define.
30153         (TV_PCH_RESTORE): Define.
30154         (TV_PCH_CPP_RESTORE): Define.
30155
30156 2010-04-13  Michael Matz  <matz@suse.de>
30157
30158         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
30159         into MINUS_EXPRs.
30160         (can_reassociate_p): New function.
30161         (break_up_subtract_bb, reassociate_bb): Use it.
30162
30163 2010-04-13  Richard Guenther  <rguenther@suse.de>
30164
30165         PR bootstrap/43737
30166         * builtins.c (c_readstr): Fix assert.
30167
30168 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
30169
30170         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
30171         when generating cltd insn.
30172
30173         (*ashl<mode>3_1): Remove special handling for register operand 2.
30174         (*ashlsi3_1_zext): Ditto.
30175         (*ashlhi3_1): Ditto.
30176         (*ashlhi3_1_lea): Ditto.
30177         (*ashlqi3_1): Ditto.
30178         (*ashlqi3_1_lea): Ditto.
30179         (*<shiftrt_insn><mode>3_1): Ditto.
30180         (*<shiftrt_insn>si3_1_zext): Ditto.
30181         (*<shiftrt_insn>qi3_1_slp): Ditto.
30182         (*<rotate_insn><mode>3_1): Ditto.
30183         (*<rotate_insn>si3_1_zext): Ditto.
30184         (*<rotate_insn>qi3_1_slp): Ditto.
30185
30186 2010-04-13  Richard Guenther  <rguenther@suse.de>
30187
30188         * tree-ssa-structalias.c (callused_id): Remove.
30189         (call_stmt_vars): New.
30190         (get_call_vi): Likewise.
30191         (lookup_call_use_vi): Likewise.
30192         (lookup_call_clobber_vi): Likewise.
30193         (get_call_use_vi): Likewise.
30194         (get_call_clobber_vi): Likewise.
30195         (make_transitive_closure_constraints): Likewise.
30196         (handle_const_call): Adjust to do per-call call-used handling.
30197         (handle_pure_call): Likewise.
30198         (find_what_var_points_to): Remove general callused handling.
30199         (init_base_vars): Likewise.
30200         (init_alias_vars): Initialize call_stmt_vars.
30201         (compute_points_to_sets): Process call-used and call-clobbered
30202         vars for call statements.
30203         (delete_points_to_sets): Free call_stmt_vars.
30204
30205 2010-04-13  Richard Guenther  <rguenther@suse.de>
30206
30207         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30208         Only add RW dependence for dependence distance zero.
30209         Adjust maximal vectorization factor according to dependences.
30210         Move alignment handling ...
30211         (vect_find_same_alignment_drs): ... here.  New function.
30212         (vect_analyze_data_ref_dependences): Adjust.
30213         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
30214         (vect_analyze_data_refs): Adjust minimal vectorization factor
30215         according to data references.
30216         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
30217         dependences before determining the vectorization factor.
30218         Analyze alignment after determining the vectorization factor.
30219         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
30220         dependences before alignment.
30221         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
30222         Adjust prototype.
30223         (vect_analyze_data_refs): Likewise.
30224         (MAX_VECTORIZATION_FACTOR): New define.
30225
30226 2010-04-13  Duncan Sands  <baldrick@free.fr>
30227
30228         * except.h (lang_eh_type_covers): Remove.
30229         * except.c (lang_eh_type_covers): Likewise.
30230
30231 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30232             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30233
30234         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
30235         * config/s390/s390.c: Replace UNTIS_PER_WORD with
30236         UNITS_PER_LONG where it is ABI relevant.
30237         (s390_return_addr_rtx): Likewise.
30238         (s390_back_chain_rtx): Likewise.
30239         (s390_frame_area): Likewise.
30240         (s390_frame_info): Likewise.
30241         (s390_initial_elimination_offset): Likewise.
30242         (save_gprs): Likewise.
30243         (s390_emit_prologue): Likewise.
30244         (s390_emit_epilogue): Likewise.
30245         (s390_function_arg_advance): Likewise.
30246         (s390_function_arg): Likewise.
30247         (s390_va_start): Likewise.
30248         (s390_gimplify_va_arg): Likewise.
30249         (s390_function_profiler): Likewise.
30250         (s390_optimize_prologue): Likewise.
30251         (s390_rtx_costs): Likewise.
30252         (s390_secondary_reload): Likewise.
30253         (s390_promote_function_mode): Likewise.
30254         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
30255         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
30256         registers available.
30257         (s390_unwind_word_mode): New function.
30258         (s390_function_value): Split 64 bit values into register pair if
30259         used as return value.
30260         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
30261         function call parameters.  Handle parallels.
30262         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
30263         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
30264         (DWARF_CIE_DATA_ALIGNMENT): New macro.
30265         (s390_expand_setmem): Remove unused variable src_addr.
30266         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
30267         deal with 64 bit registers.
30268         * config/s390/s390.h: Define __zarch__ predefined macro.
30269         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
30270         (UNITS_PER_LONG): New macro.
30271         * libjava/include/s390-signal.h: Define extended ucontext
30272         structure containing the upper halfs of the 64 bit registers.
30273
30274 2010-04-13  Simon Baldwin  <simonb@google.com>
30275
30276         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
30277
30278 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
30279
30280         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
30281         rvalue on the RHS if the LHS is of a non-renamable type.
30282         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
30283
30284 2010-04-13  Matthias Klose  <doko@ubuntu.com>
30285
30286         * gcc.c (cc1_options): Handle -iplugindir before processing
30287         the cc1 spec. Only add -iplugindir once.
30288         (cpp_unique_options): Add -iplugindir option if -fplugin* options
30289         found.
30290         * common.opt (iplugindir): Remove `Separate' property, initialize.
30291         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
30292         option.
30293         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
30294         (distclean): Remove plugin dir.
30295         * doc/invoke.texi: Document -iplugindir.
30296
30297 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
30298
30299         * doc/plugins.texi (Loading Plugins): Document short
30300         -fplugin=foo option.
30301         (Plugin API): Mention default_plugin_dir_name function.
30302
30303         * gcc.c (find_file_spec_function): Add new declaration.
30304         (static_spec_func): Use it for "find-file".
30305         (find_file_spec_function): Add new function.
30306         (cc1_options): Add -iplugindir option if -fplugin* options found.
30307
30308         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
30309
30310         * plugin.c (add_new_plugin): Updated comment, and handle short
30311         plugin name.
30312         (default_plugin_dir_name): Added new function.
30313
30314         * common.opt (iplugindir): New option to set the plugin directory.
30315
30316 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
30317
30318         * config/i386/i386.md (any_rotate): New code iterator.
30319         (rotate_insn): New code attribute.
30320         (rotate): Ditto.
30321         (SWIM124): New mode iterator.
30322         (<rotate_insn>ti3): New expander.
30323         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
30324         any_rotate code iterator.
30325         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
30326         using any_rotate code iterator and SWIM124 mode iterator.
30327         (ix86_rotlti3): New insn_and_split pattern.
30328         (ix86_rotrti3): Ditto.
30329         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
30330         ix86_rotl{di,ti}3 patterns.
30331         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
30332         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
30333         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
30334         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
30335         code iterator and SWI mode iterator.
30336         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
30337         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
30338         code iterator.
30339         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
30340         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
30341         (bswap rotatert splitter): Add splitter.
30342         (bswap splitter): Macroize splitter using any_rotate code iterator.
30343         Add insn predicate to split only for TARGET_USE_XCHGB or when
30344         optimizing function for size.
30345
30346 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
30347
30348         * config/pa/pa.c (emit_move_sequence): Remove use of
30349         deleted variable flag_argument_noalias.
30350
30351 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30352
30353         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
30354         configurations.
30355         Add to unsupported targets list.
30356         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
30357         sparc*-sun-solaris2.[567]* from target lists.
30358         * configure: Regenerate.
30359         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
30360         removal.
30361         Remove Solaris 7 patch references.
30362         (Specific, sparc-sun-solaris2.7): Removed.
30363         (sparc-sun-solaris2*): Update Solaris 7 example.
30364         (sparc64-*-solaris2*): Likewise.
30365
30366 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30367
30368         * config.build (alpha*-dec-osf4*): Remove.
30369         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
30370         of obsolete configurations.
30371         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
30372         support.
30373         * config/alpha/t-osf4: Renamed to ...
30374         * config/alpha/t-osf5: ... this.
30375         * config/alpha/osf.h: Renamed to ...
30376         * config/alpha/osf5.h: ... this.
30377         Merged old osf5.h contents.
30378         Update comments.
30379         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
30380         (EXTRA_SPECS): Removed.
30381         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
30382         reflect removal of Tru64 UNIX V4.0/V5.0 support.
30383         Document that.
30384
30385 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30386
30387         * doc/contrib.texi (Contributors, Rainer Orth): Update.
30388
30389 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
30390
30391         PR/43702
30392         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
30393         __thiscall convention.
30394
30395 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
30396
30397         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
30398         orig_base.
30399         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
30400
30401 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
30402
30403         * function.c (assign_parms_initialize_all): Add unused attribute
30404         to fntype.
30405
30406 2010-04-12  Richard Guenther  <rguenther@suse.de>
30407
30408         * gsstruct.def (GSS_CALL): New.
30409         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
30410         * gimple.h: Include tree-ssa-alias.h.
30411         (struct gimple_statement_call): New.
30412         (union gimple_statement_struct_d): Add gimple_call member.
30413         (gimple_call_reset_alias_info): Declare.
30414         (gimple_call_use_set): New function.
30415         (gimple_call_clobber_set): Likewise.
30416         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
30417         * gimple.c (gimple_call_reset_alias_info): New function.
30418         (gimple_build_call_1): Call it.
30419         * lto-streamer-in.c (input_gimple_stmt): Likewise.
30420         * tree-inline.c (remap_gimple_stmt): Likewise.
30421         (expand_call_inline): Remove callused handling.
30422         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
30423         * tree-dfa.c (dump_variable): Likewise.
30424         * tree-parloops.c (parallelize_loops): Likewise.
30425         * tree-ssa.c (init_tree_ssa): Likewise.
30426         (delete_tree_ssa): Likewise.
30427         * tree-flow-inline.h (is_call_used): Remove.
30428         * tree-flow.h (struct gimple_df): Remove callused member.
30429         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
30430         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
30431         (ref_maybe_used_by_call_p_1): Simplify.
30432         (call_may_clobber_ref_p_1): Likewise.
30433         * tree-ssa-structalias.c (compute_points_to_sets): Set
30434         the call stmt used and clobbered sets.
30435         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
30436         (find_tail_calls): Verify the tail call.
30437
30438 2010-04-12  Richard Guenther  <rguenther@suse.de>
30439
30440         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
30441         single-iteration always-inline inlining.
30442         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
30443         (cgraph_decide_inlining): Do not handle always-inline specially.
30444         (try_inline): Remove always-inline cycle detection special case.
30445         Do not recurse on always-inlines.
30446         (cgraph_early_inlining): Do not iterate if not optimizing.
30447         (cgraph_gate_early_inlining): remove.
30448         (pass_early_inline): Run unconditionally.
30449         (gate_cgraph_decide_inlining): New function.
30450         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
30451         not inlining or optimizing.
30452         (cgraph_decide_inlining_of_small_functions): Also consider
30453         always-inline functions.
30454         (cgraph_default_inline_p): Return true for nodes which should
30455         disregard inline limits.
30456         (estimate_function_body_sizes): Assume zero size and time for
30457         nodes which are marked as disregarding inline limits.
30458         (cgraph_decide_recursive_inlining): Do not perform recursive
30459         inlining on always-inline nodes.
30460
30461 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
30462
30463         PR bootstrap/43699
30464         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
30465         for exprs satisfying handled_component_p.
30466
30467 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
30468
30469         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
30470         non-constant aggregate elements.
30471
30472         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
30473         is a real initialization.
30474
30475 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
30476
30477         PR c/36774
30478         * c-decl.c (start_function): Move forward check for nested function.
30479
30480 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
30481
30482         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
30483         * config/sh/sh.c: Include reload.h.
30484         (sh_legitimize_reload_address): New.
30485         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
30486         sh_legitimize_reload_address.
30487
30488 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
30489
30490         * config/sh/sh.md (*movqi_pop): New insn pattern.
30491         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
30492
30493 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
30494
30495         * config/i386/i386.md (any_shiftrt): New code iterator.
30496         (shiftrt_insn): New code attribute.
30497         (shiftrt): Ditto.
30498         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
30499         using any_shiftrt code iterator.
30500         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
30501         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
30502         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
30503         pattern from corresponding peephole2 patterns.
30504         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
30505         using any_shiftrt code iterator.
30506         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
30507         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
30508         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
30509         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
30510         *{ashr,lshr}<mode>3_cmp_zext.
30511         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
30512
30513 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
30514
30515         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
30516         scratch register.
30517         (*lshr<mode>3_cconly): Ditto.
30518
30519 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
30520
30521         * config/i386/i386.md (lshr<mode>3): Macroize expander from
30522         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
30523         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
30524         pattern from *lshr{di,ti}3_1 and corresponding splitters using
30525         DWI mode iterator.
30526         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
30527         from corresponding peephole2 patterns.
30528         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
30529         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
30530         and *lshrdi3_1_rex64 using SWI mode iterator.
30531         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
30532         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
30533         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
30534         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
30535         and *lshrdi3_cmp_rex64 using SWI mode iterator.
30536         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
30537         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
30538         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
30539         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
30540         SWI mode iterator.
30541
30542 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
30543
30544         * config/i386/i386.md (ashr<mode>3): Macroize expander from
30545         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
30546         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
30547         pattern from *ashr{di,ti}3_1 and corresponding splitters using
30548         DWI mode iterator.
30549         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
30550         from corresponding peephole2 patterns.
30551         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
30552         (ashrsi3_cvt): Rename from ashrsi3_31.
30553         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
30554         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
30555         and x86_64_shift_adj_3 using SWI48 mode iterator.
30556         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
30557         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
30558         and *ashrdi3_1_rex64 using SWI mode iterator.
30559         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
30560         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
30561         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
30562         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
30563         and *ashrdi3_cmp_rex64 using SWI mode iterator.
30564         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
30565         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
30566         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
30567         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
30568         SWI mode iterator.
30569         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
30570         * config/i386/i386.c (ix86_split_ashr): Update for renamed
30571         x86_shift<mode>_adj_3 expanders.
30572
30573 2010-04-10  Wei Guozhi  <carrot@google.com>
30574
30575         PR target/42601
30576         * config/arm/arm.c (arm_pic_static_addr): New function.
30577         (legitimize_pic_address): Call arm_pic_static_addr when it detects
30578         a static symbol.
30579         (arm_output_addr_const_extra): Output expression for new pattern.
30580         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
30581
30582 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
30583
30584         * ira-costs.c (record_reg_classes): Ignore alternatives that are
30585         not enabled.
30586
30587         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
30588         * web.c: Include "insn-config.h" and "recog.h".
30589         (union_match_dups): New function.
30590         (web_main): Call it.
30591         (union_defs): Don't try to recognize match_dups.
30592
30593         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
30594         if doing so would replace the entire pattern.
30595
30596 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
30597
30598         PR target/43707
30599         PR target/43709
30600         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
30601         and splitter pattern.  Change splitter operand 1 predicate to
30602         nonmemory_operand.
30603
30604 2010-04-09  Martin Jambor  <mjambor@suse.cz>
30605
30606         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
30607         lattices are addresses of CONST_DECLs with the same initial value.
30608         (ipcp_print_all_lattices): Print values of CONST_DECLs.
30609         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
30610
30611 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
30612             Bernd Schmidt  <bernds@codesourcery.com>
30613
30614         * loop-invariant.c (replace_uses): New static function.
30615         (move_invariant_reg): Use it to ensure we can replace the uses.
30616
30617 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
30618
30619         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
30620         function template.
30621         (picochip_override_options): Enable section anchors only above -O1.
30622         (picochip_reorg): Fixed a couple of build warnings.
30623
30624 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30625
30626         * configure.ac (plugin -rdynamic test): Log result.
30627         * configure: Regenerate.
30628         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
30629         (RDYNAMIC_SPEC): Define.
30630         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
30631
30632 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30633
30634         * configure.ac: Determine Sun ld version numbers.
30635         (comdat_group): Restrict GNU ld version checks to gld.
30636         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
30637         (enable_comdat): Support --enable-comdat.
30638         * configure: Regenerate.
30639         * doc/install.texi (Configuration): Document --enable-comdat.
30640
30641 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30642
30643         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
30644         * config/sol2-gld.h: ... here.
30645         * config.gcc (sparc*-*-solaris2*): Reflect this.
30646         (i[34567]86-*-solaris2*): Use it.
30647
30648 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
30649
30650         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
30651         setup_clocks_p.
30652         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
30653
30654 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30655
30656         PR 42965
30657         * diagnostic.c (diagnostic_initialize): Initialize
30658         some_warnings_are_errors.
30659         (diagnostic_finish): New.
30660         (diagnostic_action_after_output): Call it before exiting.
30661         (diagnostic_report_diagnostic): Do not print message here. Set
30662         some_warnings_are_errors.
30663         * diagnostic.h (diagnostic_context): Delete
30664         issue_warnings_are_errors_message. Add some_warnings_are_errors.
30665         (diagnostic_finish): Declare.
30666         * toplev.c (toplev_main): Call it before exit.
30667
30668 2010-04-09  Jason Merrill  <jason@redhat.com>
30669
30670         PR c++/42623
30671         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
30672         for incomplete type.
30673
30674         PR c++/41788
30675         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
30676         based on a warning flag.
30677
30678 2010-04-09  Richard Guenther  <rguenther@suse.de>
30679
30680         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
30681
30682 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
30683
30684         PR bootstrap/43684
30685         * varasm.c (default_assemble_visibility): Wrap vars that are
30686         set, but unused, by targets without GAS.
30687         * config/rs6000/rs6000.c (paired_emit_vector_compare):
30688         Remove set, but unused, vars.
30689         (rs6000_legitimize_tls_address): Likewise.
30690         (altivec_expand_dst_builtin): Likewise.
30691         * config/darwin.c (machopic_classify_symbol): Likewise.
30692         (machopic_indirection_name): Likewise.
30693
30694 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
30695
30696         * config/i386/i386.md (DWI): New mode iterator.
30697         (S): New mode attribute.
30698         (shift_operand): Ditto.
30699         (shift_immediate_operand): Ditto.
30700         (ashl_input_operand): Ditto.
30701         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
30702         using SDWIM mode iterator.
30703         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
30704         pattern from *ashl{di,ti}3_1 and corresponding splitters using
30705         DWI mode iterator.
30706         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
30707         from corresponding peephole2 patterns.
30708         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
30709         and x86_64_shift_adj_1 using SWI48 mode iterator.
30710         (x86_shift<mode>_adj_2): Ditto.
30711         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
30712         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
30713         using SWI48 mode iterator.
30714         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
30715         *ashldi3_cmp_rex64 using SWI mode iterator.
30716         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
30717         *ashldi3_cconly_rex64 using SWI mode iterator.
30718         * config/i386/i386.c (ix86_split_ashl): Update for renamed
30719         x86_shift<mode>_adj_{1,2}.
30720         (ix86_split_ashr): Ditto.
30721         (ix86_split_lshr): Ditto.
30722
30723 2010-04-09  Richard Guenther  <rguenther@suse.de>
30724
30725         * target.h (builtin_conversion): Pass in input and output types.
30726         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
30727         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
30728         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
30729         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
30730
30731         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
30732         Handle AVX modes.
30733         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
30734
30735 2010-04-09  Richard Guenther  <rguenther@suse.de>
30736
30737         PR target/43152
30738         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
30739
30740 2010-04-09  Richard Guenther  <rguenther@suse.de>
30741
30742         * tree-vectorizer.h (struct _stmt_vec_info): Document
30743         that vectype is the type of the LHS.
30744         (supportable_widening_operation, supportable_narrowing_operation):
30745         Get both input and output vector types as arguments.
30746         (vect_is_simple_use_1): Declare.
30747         (get_same_sized_vectype): Likewise.
30748         * tree-vect-loop.c (vect_determine_vectorization_factor):
30749         Set STMT_VINFO_VECTYPE to the vector type of the def.
30750         (vectorizable_reduction): Adjust.
30751         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
30752         Adjust.  Specify the output vector type.
30753         (vect_pattern_recog_1): Adjust.
30754         * tree-vect-stmts.c (get_same_sized_vectype): New function.
30755         (vectorizable_call): Adjust.
30756         (vectorizable_conversion): Likewise.
30757         (vectorizable_operation): Likewise.
30758         (vectorizable_type_demotion): Likewise.
30759         (vectorizable_type_promotion): Likewise.
30760         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
30761         the def.
30762         (vect_is_simple_use_1): New function.
30763         (supportable_widening_operation): Get both input and output
30764         vector types.
30765         (supportable_narrowing_operation): Likewise.
30766         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
30767
30768 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
30769
30770         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
30771         __thiscall and _thiscall as predefined macros.
30772         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
30773         thiscall attribute handling.
30774         (ix86_comp_type_attributes): Likewise.
30775         (ix86_function_regparm): Likewise.
30776         (ix86_return_pops_args): Likewise.
30777         (init_cumulative_args): Likewise.
30778         (find_drap_reg): Likewise.
30779         (ix86_static_chain): Likewise.
30780         (x86_this_parameter): Likewise.
30781         (x86_output_mi_thunk): Likewise.
30782         (ix86_attribute_table): Add description for thiscall attribute.
30783         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
30784         * doc/extend.texi: Add documentation for thiscall.
30785
30786 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30787
30788         PR c++/28584
30789         * c.opt (Wint-to-pointer-cast): Available in C++.
30790         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
30791
30792 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
30793
30794         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
30795         * calls.c (expand_call): Pass the function type to aggregate_value_p.
30796         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
30797         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
30798         function type instead.  Reorder and simplify checks.
30799
30800         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
30801
30802 2010-04-08  Jing Yu  <jingyu@google.com>
30803             Zdenek Dvorak  <ook@ucw.cz>
30804
30805         PR tree-optimization/42720
30806         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
30807         loop unswitch conditions here from ...
30808         (tree_unswitch_single_loop): ... here.
30809
30810 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
30811
30812         * tree-if-conv.c: Fix comments and simplify logic.
30813
30814 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
30815
30816         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
30817         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
30818         (main_tree_if_conversion): Update call to tree_if_conversion.
30819
30820 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30821
30822         PR 42485
30823         * doc/invoke.texi (-b,-V): Delete.
30824         * doc/tm.texi: Do not mention -b.
30825         * gcc.c (display_help): Delete -b and -V.
30826         (process_command): Delete -b and -V.
30827         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
30828
30829 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
30830             Wolfgang Gellerich  <gellerich@de.ibm.com>
30831
30832         Implement target hook for loop unrolling
30833         * target.h (loop_unroll_adjust): Add a new target hook function.
30834         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
30835         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
30836         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
30837         (s390_loop_unroll_adjust): Implement the new target hook for s390.
30838         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
30839         target hook.
30840         (decide_unroll_stupid): Likewise.
30841
30842 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30843
30844         PR target/43643
30845         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
30846
30847 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30848
30849         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
30850         (Specific, *-*-solaris2*): Likewise.
30851         Don't prefer Sun as over GNU as.
30852
30853 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
30854
30855         * config/s390/s390.c (override_options): Adjust the z10 defaults
30856         for max-unroll-times, max-completely-peeled-insns
30857         and max-completely-peel-times.
30858
30859 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30860
30861         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
30862         instructions for z10.
30863         (s390_expand_setmem): Likewise.
30864         (s390_expand_cmpmem): Likewise.
30865
30866 2010-04-08  Richard Guenther  <rguenther@suse.de>
30867
30868         PR tree-optimization/43679
30869         * tree-ssa-pre.c (eliminate): Only propagate copies.
30870
30871 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
30872
30873         PR bootstrap/43681
30874         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
30875         set but not used variable warning.
30876
30877 2010-04-08  Wei Guozhi  <carrot@google.com>
30878
30879         PR target/41653
30880         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
30881         (arm_size_rtx_costs): Call the new function when optimized for size.
30882
30883 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
30884
30885         PR debug/43670
30886         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
30887         op0 is not a MEM, just return NULL instead of assertion
30888         failure.
30889         (discover_nonconstant_array_refs): Don't walk debug stmts.
30890
30891 2010-04-08  Doug Kwan  <dougkwan@google.com>
30892
30893         * configure.ac: Recognize gold and do not use its version number
30894         to test ld features.
30895         * configure: Regenerate.
30896
30897 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
30898
30899         PR middle-end/40815
30900         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
30901         (negate_value): Move code to push elements to broken_up_substracts ...
30902         (eliminate_plus_minus_pair): ... here.  Push operands that have no
30903         negative pair to plus_negates.
30904         (repropagate_negates, init_reassoc, fini_reassoc): Update.
30905
30906 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30907
30908         * doc/install.texi (Configuration): Move description of
30909         --enable-lto, --with-libelf*, --enable-gold from Java section to
30910         general section.
30911
30912         * doc/generic.texi (Working with declarations)
30913         (Function Properties, C and C++ Trees): Fix typos.
30914         * doc/sourcebuild.texi (Top Level): Likewise.
30915
30916 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
30917
30918         PR c/18624
30919         * tree.h (DECL_READ_P): Define.
30920         (struct tree_decl_common): Add decl_read_flag.
30921         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
30922         a set but not used warning.
30923         (merge_decls): Merge DECL_READ_P flag.
30924         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
30925         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
30926         * c-common.c (handle_used_attribute, handle_unused_attribute):
30927         Likewise.
30928         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
30929         New prototypes.
30930         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
30931         New functions.
30932         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
30933         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
30934         c_parser_binary_expression, c_parser_cast_expression,
30935         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
30936         Call default_function_array_read_conversion instead of
30937         default_function_array_conversion where needed.
30938         (c_parser_unary_expression, c_parser_conditional_expression,
30939         c_parser_postfix_expression_after_primary, c_parser_initelt):
30940         Likewise.  Call mark_exp_read where needed.
30941         (c_parser_statement_after_labels, c_parser_asm_operands,
30942         c_parser_typeof_specifier, c_parser_sizeof_expression,
30943         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
30944         where needed.
30945         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
30946         New.
30947         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
30948         (warn_unused_but_set_parameter): Default to warn_unused
30949         && extra_warnings.
30950         * doc/invoke.texi: Document -Wunused-but-set-variable and
30951         -Wunused-but-set-parameter.
30952
30953         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
30954         used count variable.
30955         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
30956         when operandN variables aren't used in the body of the expander
30957         or splitter.
30958         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
30959         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
30960         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
30961         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
30962         FOR_EACH_IMM_USE_ON_STMT): Likewise.
30963         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
30964         * tree.c (PROCESS_ARG): Likewise.
30965
30966 2010-04-07  Simon Baldwin  <simonb@google.com>
30967
30968         * diagnostic.h (diagnostic_override_option_index): New macro to
30969         set a diagnostic's option_index.
30970         * c-tree.h (c_cpp_error): Add warning reason argument.
30971         * opts.c (_warning_as_error_callback): New.
30972         (register_warning_as_error_callback): Store callback for
30973         warnings enabled via enable_warning_as_error.
30974         (enable_warning_as_error): Call callback, minor code tidy.
30975         * opts.h (register_warning_as_error_callback): Declare.
30976         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
30977         response to -Werror=.
30978         (c_common_init_options): Register warning_as_error_callback in opts.c.
30979         * common.opt: Add -Wno-cpp option.
30980         * c-common.c (struct reason_option_codes_t): Map cpp warning
30981         reason codes to gcc option indexes.
30982         * (c_option_controlling_cpp_error): New function, lookup the gcc
30983         option index for a cpp warning reason code.
30984         * (c_cpp_error): Add warning reason argument, call
30985         c_option_controlling_cpp_error for diagnostic_override_option_index.
30986         * doc/invoke.texi: Document -Wno-cpp.
30987
30988 2010-04-07  Richard Guenther  <rguenther@suse.de>
30989
30990         * ipa-reference.c (mark_load): Use get_base_address.
30991         (mark_store): Likewise.
30992
30993         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
30994         inserting GIMPLE_NOPs into the IL.
30995         * tree-ssa-structalias.c (get_constraint_for_component_ref):
30996         Explicitly strip handled components and indirect references.
30997
30998         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
30999         folding address expressions.
31000         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
31001         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
31002         operand_equal_p to compare decls.
31003         (ptr_deref_may_alias_decl_p): Likewise.
31004         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
31005         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
31006         Handle reversed comparison ops.
31007         * tree-sra.c (asm_visit_addr): Use get_base_address.
31008         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
31009         * ipa-reference.c (mark_address): Use get_base_address.
31010
31011 2010-04-07  Richard Guenther  <rguenther@suse.de>
31012
31013         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
31014         Propagate constants everywhere.
31015
31016 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
31017
31018         PR debug/43516
31019         * tree.c (MAX_INT_CACHED_PREC): Define.
31020         (nonstandard_integer_type_cache): New array.
31021         (build_nonstandard_integer_type): Cache results for precision
31022         <= MAX_INT_CACHED_PREC.
31023
31024 2010-04-07  Richard Guenther  <rguenther@suse.de>
31025
31026         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
31027         -fargument-noalias-global, -fargument-noalias-anything): Remove.
31028         * common.opt: Likewise.
31029         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
31030         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
31031         (nonoverlapping_memrefs_p): Likewise.
31032         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
31033         * opts.c (common_handle_option): Handle OPT_fargument_alias,
31034         OPT_fargument_noalias, OPT_fargument_noalias_anything and
31035         OPT_fargument_noalias_global for backward compatibility.
31036
31037 2010-04-07  Richard Guenther  <rguenther@suse.de>
31038
31039         PR tree-optimization/43270
31040         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
31041         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
31042         * tree-ssa-pre.c (phi_translate_1): Adjust.
31043         (fully_constant_expression): Split out vn_reference handling to ...
31044         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
31045         Fold reads from constant strings.
31046         (vn_reference_lookup): Handle fully constant references.
31047         (vn_reference_lookup_pieces): Likewise.
31048         * Makefile.in (expmed.o-warn): Add -Wno-error.
31049
31050 2010-04-07  Martin Jambor  <mjambor@suse.cz>
31051
31052         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
31053
31054 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
31055
31056         PR driver/41594
31057         * gcc.c: Add -static-libstdc++ to list of recognized options.
31058
31059 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31060
31061         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
31062
31063 2010-04-07  Richard Guenther  <rguenther@suse.de>
31064
31065         PR middle-end/42617
31066         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
31067         bases build simple mem attributes to retain points-to information.
31068
31069 2010-04-07  Richard Guenther  <rguenther@suse.de>
31070
31071         PR middle-end/42617
31072         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
31073         preserve points-to related information.
31074
31075 2010-04-07  Richard Guenther  <rguenther@suse.de>
31076
31077         PR middle-end/42617
31078         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
31079         discard plain indirect references.
31080         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
31081         * tree.c (tree_nop_conversion): Likewise.
31082
31083 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
31084
31085         PR debug/43628
31086         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
31087
31088 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
31089
31090         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
31091         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
31092
31093 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
31094
31095         * tree-if-conv.c: Fix indentation and comments.
31096
31097 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
31098
31099         * tree-if-conv.c: Sort static functions in topological order.
31100
31101 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
31102
31103         * tree-if-conv.c: Fix indentation and comments.
31104
31105 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
31106
31107         PR middle-end/43519
31108         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
31109         lang_hooks.types.type_for_size instead of
31110         build_nonstandard_integer_type.
31111         When converting an unsigned type to signed, double its precision.
31112         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
31113         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
31114         (graphite_create_new_loop_guard): When ub + 1 wraps around,
31115         use lb <= ub.
31116
31117 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
31118
31119         PR middle-end/43519
31120         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
31121         POINTER_PLUS_EXPR for pointer types.
31122
31123 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
31124
31125         PR middle-end/43519
31126         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
31127         * graphite-clast-to-gimple.c: Include langhooks.h.
31128         (max_signed_precision_type): New.
31129         (max_precision_type): Takes two types as arguments.
31130         (precision_for_value): New.
31131         (precision_for_interval): New.
31132         (gcc_type_for_interval): New.
31133         (gcc_type_for_value): New.
31134         (gcc_type_for_clast_term): New.
31135         (gcc_type_for_clast_red): New.
31136         (gcc_type_for_clast_bin): New.
31137         (gcc_type_for_clast_expr): Split up into several functions.
31138         (gcc_type_for_clast_eq): Rewritten.
31139         (compute_bounds_for_level): New.
31140         (compute_type_for_level_1): New.
31141         (compute_type_for_level): New.
31142         (gcc_type_for_cloog_iv): Removed.
31143         (gcc_type_for_iv_of_clast_loop): Rewritten.
31144         (graphite_create_new_loop): Compute the lower and upper bound types
31145         with gcc_type_for_clast_expr.
31146         (graphite_create_new_loop_guard): Same.
31147         (find_cloog_iv_in_expr): Removed.
31148         (compute_cloog_iv_types_1): Removed.
31149         (compute_cloog_iv_types): Removed.
31150         (gloog): Do not call compute_cloog_iv_types.
31151         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
31152         GBB_CLOOG_IV_TYPES.
31153         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
31154         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
31155         (GBB_CLOOG_IV_TYPES): Removed.
31156
31157 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
31158
31159         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
31160         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
31161         (detect_commutative_reduction): Same.
31162
31163 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
31164
31165         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
31166         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
31167         argument.
31168         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
31169         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
31170         (rewrite_commutative_reductions_out_of_ssa): Same.
31171         * passes.c (execute_function_todo): Call verify_ssa for every pass
31172         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
31173         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
31174         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
31175         with an extra argument.
31176         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
31177         verify_ssa only when the extra argument is true.
31178         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
31179         with an extra argument.
31180         (tree_transform_and_unroll_loop): Same.
31181
31182 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
31183
31184         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
31185         for all the passes of the LNO having LOOP_CLOSED_SSA.
31186         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
31187         * tree-loop-distribution.c (pass_loop_distribution): Same.
31188         * tree-pass.h (TODO_verify_loops): Removed.
31189         * tree-ssa-loop.c (pass_tree_loop_init): Same.
31190         (pass_lim): Same.
31191         (pass_tree_unswitch): Same.
31192         (pass_predcom): Same.
31193         (pass_vectorize): Same.
31194         (pass_linear_transform): Same.
31195         (pass_graphite_transforms): Same.
31196         (pass_iv_canon): Same.
31197         (pass_complete_unroll): Same.
31198         (pass_complete_unrolli): Same.
31199         (pass_parallelize_loops): Same.
31200         (pass_loop_prefetch): Same.
31201         (pass_iv_optimize): Same.
31202
31203 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
31204
31205         PR middle-end/32824
31206         * passes.c (init_optimization_passes): Move pass_lim before
31207         pass_copy_prop and pass_dce_loop.
31208
31209 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
31210
31211         PR target/43667
31212         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
31213         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
31214         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
31215         MULTI_* defines for 4 argument vpermil2p* builtins.
31216
31217 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
31218
31219         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
31220         * config/i386/i386.c (x86_maybe_negate_const_int): New.
31221         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
31222         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
31223         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
31224         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
31225         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
31226         Use x86_maybe_negate_const_int to output insn mnemonic.
31227         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
31228         check from instruction predicate.  Update comments.
31229         * config/i386/sync.md (sync_add<mode>): Use
31230         x86_maybe_negate_const_int to output insn mnemonic.
31231
31232 2010-04-06  Jan Hubicka  <jh@suse.cz>
31233
31234         PR tree-optimization/42906
31235         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
31236         IGNORE_SELF argument.  Set visited_control_parents for fully
31237         processed BBs.
31238         (find_obviously_necessary_stmts): Update call of
31239         mark_control_dependent_edges_necessary.
31240         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
31241
31242 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
31243
31244         * config/i386/i386.md: Remove comment about 'e' and 'E'
31245         operand modifier.
31246
31247 2010-04-06  Richard Guenther  <rguenther@suse.de>
31248
31249         PR tree-optimization/43627
31250         * tree-vrp.c (extract_range_from_unary_expr): Widenings
31251         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
31252         not varying.
31253
31254 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
31255
31256         * BASE-VER: Change to 4.6.0.
31257
31258         PR target/43638
31259         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
31260         handling.
31261
31262 2010-04-06  Richard Guenther  <rguenther@suse.de>
31263
31264         PR middle-end/43661
31265         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
31266
31267 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31268
31269         * doc/invoke.texi (Optimize Options): Document that LTO
31270         won't remove object access purely due to incompatible
31271         declarations.
31272
31273 2010-04-04  Matthias Klose  <doko@ubuntu.com>
31274
31275         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
31276         Initialize variable.
31277
31278 2010-04-03  Richard Guenther  <rguenther@suse.de>
31279
31280         PR middle-end/42509
31281         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
31282         require a non-NULL MEM_OFFSET.
31283
31284 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
31285
31286         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
31287         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
31288         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
31289         config/alpha/predicates.md, config/arm/arm.md,
31290         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
31291         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
31292         config/darwin9.h, config/darwin.c, config/darwin.h,
31293         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
31294         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
31295         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
31296         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
31297         config/mips/mips.md, config/mn10300/mn10300.c,
31298         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
31299         config/rs6000/aix.h, config/rs6000/dfp.md,
31300         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
31301         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
31302         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
31303         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
31304         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
31305         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
31306         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
31307         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
31308         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
31309         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
31310         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
31311         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
31312         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
31313         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
31314         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
31315         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
31316         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
31317         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
31318         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
31319         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
31320         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
31321         opt-functions.awk, opth-gen.awk, params.def, passes.c,
31322         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
31323         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
31324         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
31325         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
31326         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
31327         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
31328         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
31329         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
31330         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
31331         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
31332         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
31333         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
31334         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
31335         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
31336
31337 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31338
31339         PR other/43620
31340         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
31341         * aclocal.m4: Regenerate.
31342
31343 2010-04-02  Richard Guenther  <rguenther@suse.de>
31344
31345         PR tree-optimization/43629
31346         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
31347         if we have seen a constant value.
31348
31349 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
31350
31351         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
31352
31353 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
31354
31355         PR target/43469
31356         * arm.c (legitimize_tls_address): Adjust call to
31357         gen_tls_load_dot_plus_four.
31358         (arm_note_pic_base): New function.
31359         (arm_cannot_copy_insn_p): Use it.
31360         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
31361         constraint.
31362
31363 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31364
31365         PR bootstrap/43531
31366
31367         Revert:
31368         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31369
31370         * Makefile.in ($(out_object_file)): Depend on
31371         gt-$(basename $(notdir $(out_file))).h.
31372
31373 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
31374
31375         * config.gcc (lm32-*-rtems*): Add t-lm32.
31376
31377 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
31378
31379         * config.gcc: Add lm32-*-rtems*.
31380         * config/lm32/rtems.h: New file.
31381
31382 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
31383
31384         PR target/42609
31385         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
31386
31387 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
31388
31389         * dwarf2out.c (output_compilation_unit_header): For
31390         -gdwarf-4 use version 4 instead of version 3.
31391         (output_line_info): For version 4 and above emit additional
31392         maximum ops per insn header field.
31393         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
31394
31395         * dwarf2out.c (is_c_family, is_java): Remove.
31396         (lower_bound_default): New function.
31397         (add_bound_info, gen_descr_array_type_die): Use it.
31398
31399 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
31400
31401         PR debug/43325
31402         * dwarf2out.c (gen_variable_die): Allow debug info for variable
31403         re-declaration when it happens in a function.
31404
31405 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
31406
31407         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
31408         (cgraph_remove_function_insertion_hook): Same.
31409         (cgraph_call_function_insertion_hooks): Same.
31410
31411 2010-04-01  Richard Guenther  <rguenther@suse.de>
31412
31413         PR middle-end/43614
31414         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
31415         and TREE_THIS_VOLATILE.
31416         (copy_ref_info): Likewise.
31417         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
31418         * tree.c (build6_stat): Ignore side-effects of all but arg5
31419         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
31420         TARGET_MEM_REF.
31421
31422 2010-04-01  Richard Guenther  <rguenther@suse.de>
31423
31424         PR tree-optimization/43607
31425         * ipa-type-escape.c (check_call): Do not access non-existing
31426         arguments.
31427
31428 2010-04-01  Richard Guenther  <rguenther@suse.de>
31429
31430         PR middle-end/43602
31431         Revert
31432         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
31433                     Jack Howarth  <howarth@bromo.med.uc.edu>
31434
31435         * tree-profile.c (tree_init_ic_make_global_vars): Make static
31436         variables TLS.
31437
31438 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31439
31440         * doc/install.texi (Prerequisites): Document libelf usability on
31441         IRIX 5/6 and Solaris 2.
31442         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
31443         Update GNU as, GNU ld requirements.
31444         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
31445         Document Sun Studio compiler download.
31446         Update and simplify as, ld recommendations.
31447         (Specific, *-*-solaris2.7): Note obsoletion, removal.
31448
31449 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31450
31451         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
31452         with_tune_32 to pentium4.
31453
31454 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
31455
31456         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
31457
31458 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31459
31460         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
31461         obsoletion, removal.
31462         Update IDO URL.
31463         Document GNU as requirement.
31464         Update configure requirements.
31465         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
31466         Recomment IRIX 6.5.18+.
31467         Document IDF/IDL requirement.
31468         Document GNU as requirement.
31469         Document GNU ld bootstrap failure.
31470         Remove freeware.sgi.com reference.
31471
31472 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31473
31474         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
31475         UNIX V4.0, V5.0 obsoletion, removal.
31476         Remove --with-gc=simple reference.
31477         Update VM requirements during bootstrap.
31478         Remove -oldas bootstrap description.
31479         Update binutils reference.
31480         Remove comparison failure note.
31481
31482 2010-03-31  Richard Guenther  <rguenther@suse.de>
31483             Zdenek Dvorak  <ook@ucw.cz>
31484             Sebastian Pop  <sebastian.pop@amd.com>
31485
31486         PR middle-end/43464
31487         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
31488         with multiple arguments.
31489         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
31490
31491 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
31492
31493         * graphite-dependences.c (print_pddr): Call print_pdr with an
31494         extra argument.
31495         * graphite-poly.c (debug_pdr): Add an extra argument for the
31496         verbosity level.
31497         (print_pdr): Same.
31498         (print_pbb_domain): Same.
31499         (print_pbb): Same.
31500         (print_scop_context): Same.
31501         (print_scop): Same.
31502         (print_cloog): Same.
31503         (debug_pbb_domain): Same.
31504         (debug_pbb): Same.
31505         (print_pdrs): Same.
31506         (debug_pdrs): Same.
31507         (debug_scop_context): Same.
31508         (debug_scop): Same.
31509         (debug_cloog): Same.
31510         (print_scop_params): Same.
31511         (debug_scop_params): Same.
31512         (print_iteration_domain): Same.
31513         (print_iteration_domains): Same.
31514         (debug_iteration_domain): Same.
31515         (debug_iteration_domains): Same.
31516         (print_scattering_function): Same.
31517         (print_scattering_functions): Same.
31518         (debug_scattering_function): Same.
31519         (debug_scattering_functions): Same.
31520         * graphite-poly.h (debug_pdr): Update declaration.
31521         (print_pdr): Same.
31522         (print_pbb_domain): Same.
31523         (print_pbb): Same.
31524         (print_scop_context): Same.
31525         (print_scop): Same.
31526         (print_cloog): Same.
31527         (debug_pbb_domain): Same.
31528         (debug_pbb): Same.
31529         (print_pdrs): Same.
31530         (debug_pdrs): Same.
31531         (debug_scop_context): Same.
31532         (debug_scop): Same.
31533         (debug_cloog): Same.
31534         (print_scop_params): Same.
31535         (debug_scop_params): Same.
31536         (print_iteration_domain): Same.
31537         (print_iteration_domains): Same.
31538         (debug_iteration_domain): Same.
31539         (debug_iteration_domains): Same.
31540         (print_scattering_function): Same.
31541         (print_scattering_functions): Same.
31542         (debug_scattering_function): Same.
31543         (debug_scattering_functions): Same.
31544
31545 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
31546
31547         * graphite-poly.c (print_scattering_function_1): New.
31548         (print_scattering_function): Call it.
31549         (print_scop_params): Remove spaces at the end of lines.
31550         (print_cloog): New.
31551         (debug_cloog): New.
31552         * graphite-poly.h (print_cloog): Declared.
31553         (debug_cloog): Declared.
31554
31555 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
31556
31557         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
31558         in loop->header.
31559         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
31560         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
31561         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
31562         to switch between adding the IV bump in loop->latch or in loop->header.
31563
31564 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
31565
31566         * graphite-poly.c (print_scattering_function): Pretty print following
31567         the scoplib format.
31568         (print_pdr): Same.
31569         (print_pbb_domain): Same.
31570         (dump_gbb_cases): Same.
31571         (dump_gbb_conditions): Same.
31572         (print_pdrs): Same.
31573         (print_pbb): Same.
31574         (print_scop_params): Same.
31575         (print_scop_context): Same.
31576         (print_scop): Same.
31577         (print_pbb_body): New.
31578         (lst_indent_to): New.
31579         (print_lst): Start new lines with a #.
31580         * graphite-poly.h (pbb_bb): New.
31581         (pbb_index): Use pbb_bb.
31582         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
31583         disjuncts.
31584         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
31585
31586 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
31587
31588         * dwarf2out.c (size_of_die): For -gdwarf-4 use
31589         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
31590         and 0 instead of 1 for dw_val_class_flag.
31591         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
31592         dw_val_class_range_list, dw_val_class_loc_list,
31593         dw_val_class_lineptr and dw_val_class_macptr, use
31594         DW_FORM_flag_present for dw_val_class_flag and
31595         DW_FORM_exprloc for dw_val_class_loc.
31596         (output_die): For -gdwarf-4 print dw_val_class_loc
31597         size as uleb128 instead of 1 or 2 bytes and don't print
31598         anything for dw_val_class_flag.
31599
31600         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
31601         instead of cselib_lookup following by tweaking locs->setting_insn.
31602
31603         PR bootstrap/43596
31604         * cselib.c (cselib_process_insn): Clear cselib_current_insn
31605         even before returning from label, setjmp call or volatile asm
31606         handling.
31607
31608 2010-03-31  Richard Guenther  <rguenther@suse.de>
31609
31610         PR middle-end/43600
31611         * cgraphunit.c (cgraph_output_in_order): Do not allocate
31612         temporary data on stack.
31613
31614 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31615
31616         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
31617         (PUSHSECTION_ASM_OP): Remove.
31618         (POPSECTION_ASM_OP): Remove.
31619         (PUSHSECTION_FORMAT): Remove.
31620         * config/sol2.h (PUSHSECTION_FORMAT): Define.
31621         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
31622         * config/sol2.c (solaris_output_init_fini): Use it.
31623
31624 2010-03-31  Jie Zhang  <jie@codesourcery.com>
31625
31626         PR 43574
31627         * opt-functions.awk (var_type_struct): Use signed char type
31628         for simple variables.
31629
31630 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31631
31632         * config/sol2.c: Include output.h.
31633         (solaris_assemble_visibility): New function.
31634         * config/t-sol2 (sol2.o): Add output.h dependency.
31635         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
31636         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
31637         Redefine.
31638
31639 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
31640
31641         PR target/43580
31642         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
31643         V2SImode or XFmode on PRE_DEC.
31644
31645         PR debug/43557
31646         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
31647         BLKmode.
31648
31649 2010-03-31  Jie Zhang  <jie@codesourcery.com>
31650
31651         PR 43562
31652         * reload.h (caller_save_initialized_p): Declare.
31653         * toplev.c (backend_init_target): Don't call
31654         init_caller_save but set caller_save_initialized_p to false.
31655         * caller-save.c (caller_save_initialized_p): Define.
31656         (init_caller_save): Check caller_save_initialized_p.
31657         * ira.c (ira): Call init_caller_save if flag_caller_saves.
31658
31659 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31660
31661         PR target/39048
31662         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
31663         and soft-fp/t-softfp to tmake_file.
31664         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
31665         (LIBGCC2_TF_CEXT): Define.
31666         (TF_SIZE): Define.
31667
31668 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
31669
31670         PR debug/42977
31671         * cselib.c (n_useless_values): Document handling of debug locs.
31672         (n_useless_debug_values, n_debug_values): New variables.
31673         (new_elt_loc_list): Don't add to debug values, keep count.
31674         (promote_debug_loc): New.
31675         (cselib_reset_table): Zero new variables.
31676         (entry_and_rtx_equal_p): Promote debug locs.
31677         (discard_useless_locs): Increment n_useless_debug_values for
31678         debug values.
31679         (remove_useless_values): Adjust n_useless_values and n_debug_values
31680         with n_useless_debug_values.
31681         (add_mem_for_addr): Promote debug locs.
31682         (cselib_lookup_mem): Likewise.
31683         (cselib_lookup_addr): Renamed to...
31684         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
31685         (cselib_log_lookup): ... this.  Turn into...
31686         (cselib_lookup_addr): ... new wrapper.
31687         (cselib_lookup_from_insn): New.
31688         (cselib_invalidate_regno): Increment n_useless_debug_values for
31689         debug values.
31690         (cselib_invalidate_mem): Likewise.
31691         (cselib_process_insn): Take n_deleted and n_debug_values into
31692         account to guard remove_useless_value call.
31693         (cselib_finish): Zero n_useless_debug_values.
31694         * cselib.h (cselib_lookup_from_insn): Declare.
31695         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
31696         (sched_analyze_2): Likewise.
31697
31698 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
31699
31700         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
31701         functions.
31702         (adjust_mems): Replace narrowing SUBREG of expression containing
31703         just PLUS, MINUS, MULT and ASHIFT of registers and constants
31704         with operations in the narrower mode.
31705
31706         PR debug/43593
31707         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
31708         regs_invalidated_by_call instead all call_used_reg_set registers.
31709
31710 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
31711
31712         PR middle-end/43430
31713         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
31714         pointer comparisons with types_compatible_p.
31715         * tree-vect-stmts.c (vectorizable_call): Same.
31716         (vectorizable_condition): Same.
31717
31718 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31719
31720         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
31721         stack check if the mask would be zero.
31722
31723 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
31724             Jack Howarth  <howarth@bromo.med.uc.edu>
31725
31726         * tree-profile.c (tree_init_ic_make_global_vars): Make static
31727         variables TLS.
31728
31729 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
31730
31731         PR other/25232
31732         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
31733         and __unordtf2.
31734         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
31735         Include ___unordxf2 and ___unordtf2.
31736         * config/i386/libgcc-glibc.ver: Do not define inheritance from
31737         GCC_4.4.0 here.
31738
31739 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
31740
31741         * config/lm32/t-lm32: New file.
31742         * config.gcc: Use the above file when targetting lm32.
31743
31744 2010-03-28  Duncan Sands  <baldrick@free.fr>
31745
31746         * Makefile.in (PLUGIN_HEADERS): Add except.h.
31747
31748 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
31749
31750         PR middle-end/43431
31751         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
31752         Improve vectorization cost model diagnostic.
31753
31754 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
31755
31756         PR middle-end/43436
31757         * tree-vect-data-refs.c (vect_analyze_data_refs): When
31758         compute_data_dependences_for_loop returns false, early exit
31759         and output an extra diagnostic for the failed data reference
31760         analysis.
31761
31762 2010-03-29  Richard Guenther  <rguenther@suse.de>
31763
31764         PR tree-optimization/43560
31765         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
31766         (can_sm_ref_p): Treat stores to readonly locations as trapping.
31767
31768 2010-03-29  Jie Zhang  <jie@codesourcery.com>
31769
31770         PR 43564
31771         * toplev.c (process_options): Set optimization_default_node
31772         and optimization_current_node.
31773         * opts.c (decode_options): Don't set optimization_default_node
31774         and optimization_current_node.
31775
31776 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
31777
31778         * config/rtems.h: Abandon -qrtems_debug.
31779
31780 2010-03-28  Jan Hubicka  <jh@suse.cz>
31781
31782         PR tree-optimization/43505
31783         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
31784         map should not be copied.
31785
31786 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31787
31788         PR middle-end/41674
31789         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
31790         cdtors, set DECL_PRESERVE_P.
31791         * ipa.c (cgraph_externally_visible_p): Return true if declaration
31792         should be preseved.
31793
31794 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
31795
31796         PR tree-optimization/43528
31797         * stor-layout.c (place_field): Check that constant fits into
31798         unsigned HWI when skipping calculation of MS bitfield layout.
31799
31800 2010-03-27  Jan Hubicka  <jh@suse.cz>
31801
31802         PR middle-end/43391
31803         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
31804         notice_global_symbol work.
31805
31806 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
31807
31808         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
31809         instead of dwarf2out_decl.
31810         (struct var_loc_node): Remove section_label field.
31811         (dwarf2out_function_decl): New function.
31812         (dwarf2out_var_location): Don't set section_label field.
31813         (dwarf2out_begin_function): Don't empty decl_loc_table here.
31814
31815 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
31816
31817         PR tree-optimization/43544
31818         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
31819         First argument for builtin vectorized function hook is now a
31820         tree to be able to distinguish between machine specific and
31821         standard builtins.
31822         * targhooks.c (default_builtin_vectorized_function): Ditto.
31823         * targhooks.h (default_builtin_vectorized_function): Ditto.
31824         * target.h (struct gcc_target): Ditto.
31825         * tree-vect-stmts.c (vectorizable_function): Ditto.
31826         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
31827         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
31828         Ditto.
31829
31830 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
31831
31832         PR c/43381
31833         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
31834         nested binding iff it is a FUNCTION_DECL.
31835         (store_parm_decls_newstyle): Pass nested=true to bind for
31836         FUNCTION_DECLs amongst parameters.
31837
31838 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
31839
31840         * var-tracking.c (vt_expand_loc_callback): Don't run
31841         cselib_expand_value_rtx_cb in dummy mode if
31842         cselib_dummy_expand_value_rtx_cb returned false.
31843
31844         * var-tracking.c (emit_note_insn_var_location): For one part
31845         notes with offset 0, don't add EXPR_LIST around the location.
31846         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
31847         add_location_or_const_value_attribute): Adjust for that change.
31848
31849         PR debug/43540
31850         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
31851         into first operand and location into second.
31852         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
31853         dw_cfi_oprnd_loc for DW_CFA_expression.
31854         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
31855         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
31856         assume first argument is regnum and second argument is location.
31857
31858 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
31859
31860         PR target/42113
31861         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
31862         of scratch register to DImode.  Split to DImode comparison operator.
31863         Use SImode subreg of scratch register in the multiplication.
31864         (*cmp_sadd_sidi): Ditto.
31865         (*cmp_ssub_si): Ditto.
31866         (*cmp_ssub_sidi): Ditto.
31867
31868 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
31869
31870         PR target/43524
31871         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
31872         Remove invalid assert and wrong comment.
31873
31874 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
31875
31876         PR debug/43516
31877         * flags.h (final_insns_dump_p): New extern.
31878         * final.c (final_insns_dump_p): New variable.
31879         (rest_of_clean_state): Set it before -fdump-final-insns=
31880         dumping, clear afterwards.
31881         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
31882         MEM_ALIAS_SET on MEMs.
31883
31884 2010-03-26  David S. Miller  <davem@davemloft.net>
31885
31886         * configure.ac: Fix sparc GOTDATA_OP bug check.
31887         * configure: Rebuild.
31888
31889 2010-03-26  Alan Modra  <amodra@gmail.com>
31890
31891         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
31892
31893 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31894
31895         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
31896         TLS_SECTION_ASM_FLAG.
31897
31898 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
31899
31900         PR bootstrap/43511
31901         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
31902         Clear first_function_block_is_cold.
31903
31904         PR c/43385
31905         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
31906         argument if the argument is truth_value_p.
31907
31908 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
31909
31910         * config/rs6000/constraints.md: Update copyright year for my changes.
31911
31912         PR target/43484
31913         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
31914         used in reg+reg addressing, swap registers.
31915
31916 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
31917
31918         PR debug/43293
31919         * target.h (struct gcc_target): Add code_end hook.
31920         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
31921         if not yet defined.
31922         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
31923         * toplev.c (compile_file): Call targetm.asm_out.code_end
31924         hook before unwind info/debug info output.
31925         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
31926         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
31927         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
31928         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
31929         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
31930         * config/i386/i386.c (ix86_file_end): Renamed to...
31931         (ix86_code_end): ... this.  Make static.  Don't call
31932         file_end_indicate_exec_stack.  Emit unwind info using
31933         final_start_function/final_end_function.
31934         (darwin_x86_file_end): Remove.
31935         (TARGET_ASM_CODE_END): Define.
31936         * config/i386/i386.h (TARGET_ASM_FILE_END,
31937         NEED_INDICATE_EXEC_STACK): Don't define.
31938         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
31939         (TARGET_ASM_FILE_END): Define to darwin_file_end.
31940         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
31941         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
31942
31943         PR target/43498
31944         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
31945         at the beginning and final_end_function at the end.
31946         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
31947
31948 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31949
31950         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
31951         and Sun as TLS syntax.
31952         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
31953         * configure: Regenerate.
31954         * config.in: Regenerate.
31955         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
31956         (default_elf_asm_named_section): Use it.
31957         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
31958         (i386_output_dwarf_dtprel): Likewise.
31959         (output_addr_const_extra): Likewise.
31960         (output_pic_addr_const): Lowercase @GOTTPOFF.
31961         (output_addr_const_extra): Likewise.
31962         (output_pic_addr_const): Lowercase @GOTNTPOFF.
31963         (output_addr_const_extra): Likewise.
31964         (output_pic_addr_const): Lowercase @INDNTPOFF.
31965         (output_addr_const_extra): Likewise.
31966         (output_pic_addr_const): Lowercase @NTPOFF.
31967         (output_addr_const_extra): Likewise.
31968         (output_pic_addr_const): Lowercase @TPOFF.
31969         (output_addr_const_extra): Likewise.
31970         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
31971         (*tls_global_dynamic_64): Likewise.
31972         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
31973         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
31974
31975         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
31976         (ASM_OUTPUT_TLS_COMMON): Use it.
31977         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
31978
31979         PR target/38118
31980         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
31981         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
31982         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
31983         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
31984         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
31985         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
31986
31987 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31988
31989         * config/i386/i386.c (override_options): Don't accept
31990         -mtls-dialect=sun any longer.
31991         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
31992         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
31993         (*tls_local_dynamic_base_32_sun): Likewise.
31994         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
31995
31996 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
31997
31998         PR debug/43508
31999         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
32000         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
32001
32002         PR debug/43479
32003         * ira.c (adjust_cleared_regs): New function.
32004         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
32005
32006         PR debug/19192
32007         PR debug/43479
32008         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
32009         from gimple_block.
32010         * expr.c (expand_expr_real): Restore previous
32011         curr_insn_source_location and curr_insn_block after
32012         expand_expr_real_1 call.
32013         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
32014         instead of expand_expr_real_1.
32015
32016 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
32017
32018         PR rtl-optimization/43413
32019         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
32020         hard regs too.
32021
32022 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
32023
32024         PR target/43348
32025         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
32026         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
32027
32028 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
32029
32030         * config/i386/i386.c (ix86_target_string): Add -mfma.
32031         Fix a typo in comment.
32032
32033 2010-03-22  Mike Stump  <mikestump@comcast.net>
32034
32035         PR target/23071
32036         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
32037         Don't overly align based upon packed packed fields.
32038
32039 2010-03-22  Jason Merrill  <jason@redhat.com>
32040
32041         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
32042         Use () rather than [], and move before the element type.
32043
32044 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32045
32046         * doc/configfiles.texi (Configuration Files): Removed
32047         fixinc/Makefile*, intl/Makefile.*.
32048         * doc/makefile.texi: Fixed markup. Abstract from version
32049         control system used.
32050         (Makefile): Removed obsolete java/parse.y example.
32051         * doc/sourcebuild.texi: Likewise.
32052         (Top Level): Added config, gnattools, libdecnumber, libgcc,
32053         libgomp, libssp.  Removed fastjar.
32054         (Miscellaneous Docs): Clarify location.
32055         Added COPYING3, COPYING3.LIB.
32056         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
32057
32058 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32059
32060         PR target/38085
32061         * config/i386/i386.c (x86_function_profiler)
32062         [!NO_PROFILE_COUNTERS]: Fix typo.
32063         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
32064         instead of callq.
32065
32066 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
32067             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32068
32069         * doc/sourcebuild.texi (Test Directives): Split into six
32070         subsections, with most of the current text in new subsections
32071         Directives, Selectors, and Final Actions.
32072         (Directives): Split list of test directives into multiple
32073         subsubsections.
32074         (Selectors): Describe use and syntax of selectors.
32075         (Effective-Target Keywords): Describe all existing keywords.
32076         (Add Options): Describe features for dg-add-options.
32077         (Require Support): Describe variants of dg-require-support.
32078         (Final Actions): Describe commands to use in dg-final.
32079
32080 2010-03-22  Michael Matz  <matz@suse.de>
32081
32082         PR middle-end/43475
32083         * recog.c (validate_replace_rtx_group): Replace also in
32084         REG_EQUAL and REG_EQUIV notes.
32085
32086 2010-03-22  Richard Guenther  <rguenther@suse.de>
32087
32088         PR tree-optimization/43390
32089         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
32090         sure vector extracts are type correct.
32091
32092 2010-03-22  Richard Guenther  <rguenther@suse.de>
32093
32094         PR middle-end/40106
32095         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
32096         x * sqrt (x) even when optimizing for size if the target
32097         has native support for sqrt.
32098
32099 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
32100
32101         * varasm.c (make_decl_rtl_for_debug): Also clear
32102         flag_mudflap for the duration of make_decl_rtl call.
32103
32104         PR debug/43443
32105         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
32106         locs from preserved VALUEs.
32107
32108 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32109
32110         PR middle-end/42718
32111         * pa.md (movmemsi): Set align to one if zero.
32112         (movmemdi): Likewise.
32113
32114 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
32115
32116         PR target/42321
32117         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
32118         with their corresponding prologue pushes.
32119
32120 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
32121
32122         PR target/43156
32123         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
32124         at the begining or end.
32125         (spu_expand_epilogue): Likewise.
32126
32127 2010-03-20  Richard Guenther  <rguenther@suse.de>
32128
32129         PR rtl-optimization/43438
32130         * combine.c (make_extraction): Properly zero-/sign-extend an
32131         extraction of the low part of a CONST_INT.  Also handle
32132         CONST_DOUBLE.
32133
32134 2010-03-19  Mike Stump  <mikestump@comcast.net>
32135
32136         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
32137         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
32138         (override_options): Use SUBTARGET32_DEFAULT_CPU.
32139
32140 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
32141
32142         PR c/43211
32143         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
32144         an error.
32145
32146 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
32147
32148         PR rtl-optimization/42258
32149         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
32150         use that may match DEF.
32151
32152         PR target/40697
32153         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
32154         the cost of loading the constant rather than assuming
32155         COSTS_N_INSNS (1).
32156         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
32157         outer code is AND, do the same tests as the andsi3 expander and
32158         return COSTS_N_INSNS (1) if and is cheap.
32159
32160         * optabs.c (avoid_expensive_constant): Fix formatting.
32161
32162 2010-03-19  Michael Matz  <matz@suse.de>
32163
32164         PR c++/43116
32165         * attribs.c (decl_attributes): When rebuilding a function pointer
32166         type use the same qualifiers as the original pointer type.
32167
32168 2010-03-19  Martin Jambor  <mjambor@suse.cz>
32169
32170         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
32171         and is_gimple_ip_invariant_address.
32172
32173 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32174
32175         Revert
32176         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32177
32178         * config/arm/arm.c (arm_override_options): Turn off
32179         flag_dwarf2_cfi_asm for AAPCS variants.
32180
32181 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32182
32183         PR target/43399
32184         * config/arm/arm.c (emit_multi_reg_push): Update comments.
32185         Use PRE_MODIFY instead of PRE_DEC.
32186         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
32187         (vfp_emit_fstmd): Likewise.
32188
32189 2010-03-19  Michael Matz  <matz@suse.de>
32190
32191         PR target/43305
32192         * builtins.c (expand_builtin_interclass_mathfn,
32193         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
32194         if that fails.
32195
32196 2010-03-19  Richard Guenther  <rguenther@suse.de>
32197
32198         PR tree-optimization/43415
32199         * tree-ssa-pre.c (phi_translate): Split out worker to ...
32200         (phi_translate_1): ... this.
32201         (phi_translate): Move all caching here.  Cache all NARY
32202         and REFERENCE translations.
32203
32204 2010-03-19  David S. Miller  <davem@davemloft.net>
32205
32206         With help from Eric Botcazou.
32207         * config/sparc/sparc.c: Include dwarf2out.h.
32208         (emit_pic_helper): Delete.
32209         (pic_helper_symbol_name): Delete.
32210         (pic_helper_emitted_p): Delete.
32211         (pic_helper_needed): New.
32212         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
32213         (get_pc_thunk_name): New.
32214         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
32215         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
32216         Set pic_helper_needed to true.  Don't call emit_pic_helper.
32217         (sparc_expand_prologue): Update load_pic_register call.
32218         (sparc_output_mi_thunk): Likewise.
32219         (sparc_file_end): Emit a hidden comdat symbol for the PIC
32220         thunk if possible.  Output CFI information as needed.
32221
32222 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
32223             Jack Howarth  <howarth@bromo.med.uc.edu>
32224
32225         PR target/36399
32226         * config/i386/i386.h: Fix ABI on darwin x86-32.
32227
32228 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
32229
32230         * tree.h: Declare make_decl_rtl_for_debug.
32231         * varasm.c (make_decl_rtl_for_debug): New.
32232         * dwarf2out.c (rtl_for_decl_location): Call it.
32233         * cfgexpand.c (expand_debug_expr): Call it.
32234
32235 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
32236
32237         PR bootstrap/43399
32238         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
32239         mem_mode.
32240
32241         PR bootstrap/43403
32242         * var-tracking.c (vt_init_cfa_base): Do nothing if
32243         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
32244
32245 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
32246
32247         PR debug/42873
32248         * var-tracking.c (canonicalize_vars_star): New.
32249         (dataflow_post_merge_adjust): Use it.
32250
32251 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
32252
32253         PR debug/43058
32254         * var-tracking.c (non_suitable_const): New function.
32255         (add_uses): For DEBUG_INSNs with constants, don't record any
32256         value, instead just the constant value itself.
32257         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
32258         is not VAR_LOC_UNKNOWN_P, set var to the constant.
32259         (emit_notes_in_bb): Likewise.
32260         (emit_note_insn_var_location): For onepart variables if
32261         cur_loc is a VOIDmode constant, use DECL_MODE.
32262
32263 2010-03-18  Martin Jambor  <mjambor@suse.cz>
32264
32265         PR middle-end/42450
32266         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
32267         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
32268         all non-clones.  Moved call redirection...
32269         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
32270         (cgraph_materialize_all_clones): Dispose of all
32271         combined_args_to_skip bitmaps.
32272         (verify_cgraph_node): Do not check for edges pointing to wrong
32273         nodes in inline clones.
32274         * tree-inline.c (copy_bb): Call
32275         cgraph_redirect_edge_call_stmt_to_callee.
32276         * ipa.c (cgraph_remove_unreachable_nodes): Call
32277         cgraph_node_remove_callees even when there are used clones.
32278
32279 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
32280
32281         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
32282
32283 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
32284
32285         PR target/43383
32286         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
32287         for 32bit.
32288
32289 2010-03-18  Michael Matz  <matz@suse.de>
32290
32291         PR middle-end/43419
32292         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
32293         into sqrt(x) if we need to preserve signed zeros.
32294
32295 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
32296             Eric Botcazou  <ebotcazou@adacore.com>
32297
32298         PR rtl-optimization/43360
32299         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
32300         note if we don't know its invariant status.
32301
32302 2010-03-18  Michael Matz  <matz@suse.de>
32303
32304         PR tree-optimization/43402
32305         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
32306         PHI chains of ssa names registered for update.
32307
32308 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
32309
32310         PR target/42427
32311         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
32312         non-offsettable and pre_modify update addressing.
32313         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
32314         and "2" alternatives "#".
32315         (*movdd_softfloat32): Make all alternatives "#";
32316         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
32317         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
32318         (*movdf_softfloat32): Make all alternatives "#";
32319         (movdi): Use the new DIFD mode iterator to create a common splitter
32320         for movdi, movdf and movdd patterns.
32321
32322 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
32323
32324         * common.opt (dumpdir): Remove redundant tab.
32325
32326 2010-03-17  Martin Jambor  <mjambor@suse.cz>
32327
32328         PR tree-optimization/43347
32329         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
32330         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
32331
32332 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
32333
32334         PR rtl-optimization/42216
32335         * regrename.c (create_new_chain): New function, broken out from...
32336         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
32337         appending a use to an empty chain.
32338         (build_def_use): Remove previous changes that convert OP_INOUT to
32339         OP_OUT operands; instead detect the case where an OP_INOUT operand
32340         uses a previously untracked register and create an empty chain for it.
32341
32342 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32343
32344         * doc/extend.texi (Function Attributes): Rewrite unfinished
32345         sentence in ms_abi documentation.
32346
32347 2010-03-17  Alan Modra  <amodra@gmail.com>
32348
32349         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
32350         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
32351         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
32352         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
32353
32354 2010-03-16  Richard Henderson  <rth@redhat.com>
32355
32356         PR middle-end/43365
32357         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
32358         (lower_try_finally): Save and restore eh_seq around the expansion
32359         of the try-finally.
32360
32361 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
32362
32363         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
32364         statements before splitting block.
32365
32366 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32367
32368         * doc/sourcebuild.texi (Testsuites): Fix markup.
32369         Use pathnames relative to gcc/testsuite.
32370         (Test Directives): Move description of how timeout is determined.
32371         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
32372         (C Tests): Correct gcc.misc-tests directory.
32373         Framework tests now live in gcc.test-framework.
32374
32375 2010-03-16  Richard Guenther  <rguenther@suse.de>
32376
32377         PR middle-end/43379
32378         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
32379         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
32380
32381 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
32382             Alexandre Oliva  <aoliva@redhat.com>
32383
32384         PR tree-optimization/42917
32385         * lambda-code.c (remove_iv): Skip debug statements.
32386         (lambda_loopnest_to_gcc_loopnest): Likewise.
32387         (not_interesting_stmt): Debug statements are not interesting.
32388
32389 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
32390
32391         PR debug/43051
32392         PR debug/43092
32393         * cselib.c (cselib_preserve_constants,
32394         cfa_base_preserved_val): New static variables.
32395         (preserve_only_constants): New function.
32396         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
32397         clear its REG_VALUES.  If cselib_preserve_constants, don't
32398         empty the whole hash table, but preserve there VALUEs with constants,
32399         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
32400         (cselib_preserve_cfa_base_value): New function.
32401         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
32402         (cselib_init): Change argument to int bitfield.  Set
32403         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
32404         is in it.
32405         (cselib_finish): Clear cselib_preserve_constants and
32406         cfa_base_preserved_val.
32407         * cselib.h (enum cselib_record_what): New enum.
32408         (cselib_init): Change argument to int.
32409         (cselib_preserve_cfa_base_value): New prototype.
32410         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
32411         * dse.c (dse_step1): Likewise.
32412         * cfgcleanup.c (thread_jump): Likewise.
32413         * sched-deps.c (sched_analyze): Likewise.
32414         * gcse.c (local_cprop_pass): Likewise.
32415         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
32416         If FN is non-NULL, call the callback always and whenever it returns
32417         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
32418         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
32419         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
32420         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
32421         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
32422         * var-tracking.c: Include recog.h.
32423         (bb_stack_adjust_offset): Remove.
32424         (vt_stack_adjustments): Don't call it, instead just gather the
32425         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
32426         (adjust_stack_reference): Remove.
32427         (compute_cfa_pointer): New function.
32428         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
32429         (struct adjust_mem_data): New type.
32430         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
32431         functions.
32432         (get_address_mode): New function.
32433         (replace_expr_with_values): Use it.
32434         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
32435         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
32436         (adjust_sets): Remove.
32437         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
32438         Use get_address_mode.
32439         (get_adjusted_src): Remove.
32440         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
32441         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
32442         (add_with_sets): Don't call adjust_sets.
32443         (fp_setter, vt_init_cfa_base): New functions.
32444         (vt_initialize): Change return type to bool.  Move most of pool etc.
32445         initialization to the beginning of the function from end.  Pass
32446         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
32447         If !frame_pointer_needed, call vt_stack_adjustment before mos
32448         vector is filled, call vt_init_cfa_base if argp/framep has been
32449         eliminated to sp.  If frame_pointer_needed and argp/framep has
32450         been eliminated to hard frame pointer, set
32451         hard_frame_pointer_adjustment and call vt_init_cfa_base after
32452         encountering fp setter in the prologue.  For MO_ADJUST, call
32453         log_op_type before pusing the op into mos vector, not afterwards.
32454         Call adjust_insn before cselib_process_insn/add_with_sets,
32455         call cancel_changes (0) afterwards.
32456         (variable_tracking_main_1): Adjust for vt_initialize calling
32457         vt_stack_adjustments and returning whether it succeeded or not.
32458
32459 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
32460
32461         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
32462         debug statements.
32463
32464 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
32465
32466         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
32467         has been set.
32468         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
32469         drap_reg has not been set.
32470
32471 2010-03-15  Michael Matz  <matz@suse.de>
32472
32473         PR middle-end/43300
32474         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
32475         use it to expand block copies.
32476         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
32477         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
32478         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
32479
32480 2010-03-15  Richard Guenther  <rguenther@suse.de>
32481
32482         PR tree-optimization/43367
32483         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
32484         elimination check.
32485
32486 2010-03-15  Richard Guenther  <rguenther@suse.de>
32487
32488         PR tree-optimization/43317
32489         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
32490
32491 2010-03-15  Martin Jambor  <mjambor@suse.cz>
32492
32493         PR tree-optimization/43141
32494         * tree-sra.c (create_abstract_origin): New function.
32495         (modify_function): Call create_abstract_origin.
32496
32497 2010-03-15  Chris Demetriou  <cgd@google.com>
32498
32499         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
32500         wasn't copied.
32501
32502 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32503
32504         PR middle-end/43354
32505         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
32506         call insert_out_of_ssa_copy for default definitions.
32507
32508 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32509
32510         * graphite-clast-to-gimple.c (my_long_long): Defined.
32511         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
32512         * graphite-sese-to-poly.c (my_long_long): Defined.
32513         (scop_ivs_can_be_represented): Use it.
32514
32515 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32516
32517         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
32518         graphite-max-bbs-per-function, and loop-block-tile-size.
32519         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
32520         with "maximum".
32521         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
32522
32523 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32524
32525         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
32526         forward declaration.
32527         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
32528         (add_upper_bounds_from_estimated_nit): New.
32529         (build_loop_iteration_domains): Use it.
32530
32531 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32532
32533         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
32534
32535 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32536
32537         PR middle-end/43306
32538         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
32539         should be an INTEGER_CST.  Also handle CASE_CONVERT.
32540
32541 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32542
32543         * graphite.c (graphite_initialize): To bound the number of bbs per
32544         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
32545         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
32546         * doc/invoke.texi: Document it.
32547
32548 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32549
32550         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
32551         * graphite-sese-to-poly.h (build_poly_scop): Same.
32552
32553 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32554
32555         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
32556         the number of parameters in the scop.  Use as an upper bound
32557         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
32558         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
32559         * doc/invoke.texi: Document it.
32560
32561 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
32562
32563         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
32564         * doc/c-tree.texi: Remove.
32565         * doc/generic.texi: Merge c-tree.texi here.
32566         * doc/gccint.texi (Trees): Remove menu entry.
32567         (c-tree.texi): Remove @include.
32568         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
32569         * doc/languages.texi (Reading RTL): Ditto.
32570
32571 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
32572
32573         PR target/42869
32574         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
32575
32576 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
32577
32578         PR middle-end/42431
32579         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
32580         code added to work around reload clobbering CONST insns.
32581
32582 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
32583
32584         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
32585         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
32586         (cselib_preserve_only_values): Remove retain argument, don't
32587         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
32588         * cselib.h (cselib_preserve_only_values): Remove retain argument.
32589         * var-tracking.c (micro_operation): Move insn field before union.
32590         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
32591         (struct variable_tracking_info_def): Remove n_mos field, change
32592         mos into a vector of micro_operations.
32593         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
32594         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
32595         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
32596         changing into a vector.
32597         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
32598         come before all other uops generated by add_stores.
32599         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
32600         argument removal.
32601         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
32602         a vector.  Run just one pass over the bbs instead of separate counting
32603         and computation phase.
32604         (vt_finalize): Free VTI (bb)->mos vector instead of array.
32605
32606         PR debug/43329
32607         * tree-inline.c (remap_decls): Put old_var rather than origin_var
32608         into *nonlocalized_list vector.
32609         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
32610         even if origin is non-NULL.
32611         (gen_variable_die): Likewise.
32612         (process_scope_var): Don't change origin.
32613         (gen_decl_die): Likewise.
32614         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
32615         before adding new edges instead of after it, fix moving over
32616         debug stmts.
32617
32618 2010-03-11  David S. Miller  <davem@davemloft.net>
32619
32620         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
32621         of four.
32622         * configure: Rebuild.
32623
32624 2010-03-11  Martin Jambor  <mjambor@suse.cz>
32625
32626         PR tree-optimization/43257
32627         * tree.c (assign_assembler_name_if_neeeded): New function.
32628         (free_lang_data_in_cgraph): Assembler name assignment moved to the
32629         above new function.
32630         * tree.h (assign_assembler_name_if_neeeded): Declare.
32631         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
32632         the function if needed.
32633
32634 2010-03-11  Chris Demetriou  <cgd@google.com>
32635
32636         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
32637         include/stdint-gcc.h, and include/stdint.h world-readable.
32638
32639 2010-03-11  Richard Guenther  <rguenther@suse.de>
32640
32641         PR tree-optimization/43255
32642         * tree-vrp.c (process_assert_insertions_for): Do not insert
32643         asserts for trivial conditions.
32644
32645 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32646
32647         PR tree-optimization/43280
32648         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
32649         generation.  Move calculation of size out of the if branch.
32650         (find_bswap): Modify compare number generation.
32651
32652 2010-03-11  Richard Guenther  <rguenther@suse.de>
32653
32654         PR lto/43200
32655         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
32656         (input_gimple_stmt): Fixup handled component types during
32657         operand read.  Also fix up decls in ADDR_EXPRs.
32658
32659 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
32660
32661         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
32662         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
32663
32664 2010-03-10  Jan Hubicka  <jh@suse.cz>
32665
32666         PR c/43288
32667         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
32668         * varasm.c (get_variable_section): Don't do that here...
32669         (make_decl_rtl): ... and here.
32670         (do_assemble_alias): Produce decl RTL.
32671         (assemble_alias): Likewise.
32672
32673 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
32674
32675         PR debug/43290
32676         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
32677         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
32678         of fde->vdrap_reg.
32679         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
32680         (based_loc_descr): Only express drap or vdrap regno based expressions
32681         using DW_OP_fbreg when not optimizing.
32682         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
32683         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
32684         REG_CFA_SET_VDRAP note.
32685
32686 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
32687
32688         PR tree-optimization/43236
32689         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
32690         error in calculation of base address in reverse iteration case.
32691         (generate_builtin): Take number of latch executions if the statement
32692         is in the latch.
32693
32694 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
32695
32696         PR middle-end/42859
32697         * tree-eh.c: Include pointer-set.h.
32698         (lower_eh_dispatch): Filter out duplicate case labels and
32699         remove the unneeded edge when the label is unused.  Return
32700         true when some edges are removed.
32701         (execute_lower_eh_dispatch): When any lowering resulted in
32702         removing an edge, also delete unreachable blocks.
32703
32704 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
32705
32706         PR bootstrap/43287
32707         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
32708         UNSPEC_MACHOPIC_OFFSET.
32709
32710 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
32711
32712         PR target/43294
32713         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
32714         (m68k_delegitimize_address): New function.
32715
32716 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
32717
32718         PR debug/43299
32719         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
32720
32721         PR debug/43299
32722         * var-tracking.c (adjust_sets): New function.
32723         (count_with_sets, add_with_sets): Use it.
32724         (get_adjusted_src): New inline function.
32725         (add_stores): Use it.
32726
32727         PR debug/43304
32728         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
32729         call cselib_dummy_expand_value_rtx_cb instead of
32730         cselib_expand_value_rtx_cb.
32731
32732         PR debug/43293
32733         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
32734         * config/i386/i386.c: Include debug.h and dwarf2out.h.
32735         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
32736         and .cfi_endproc around the pic thunks.
32737         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
32738         all queued unwind info register saves are saved before the call.
32739         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
32740         considered as sp-=4 for unwind info and the pop as sp+=4 which
32741         also clobbers dest, but doesn't actually restore it.
32742
32743         PR debug/43290
32744         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
32745         RTX_FRAME_RELATED_P.
32746
32747 2010-03-09  Jie Zhang  <jie@codesourcery.com>
32748
32749         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
32750         whitespaces in output template.
32751
32752 2010-03-09  Jie Zhang  <jie@codesourcery.com>
32753
32754         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
32755         out array boundary.
32756
32757 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
32758
32759         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
32760         builtins.exp in a separate job.
32761
32762 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32763
32764         * graphite-sese-to-poly.c (add_param_constraints): Use
32765         lower_bound_in_type and upper_bound_in_type.
32766
32767 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32768
32769         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
32770         instead of unsigned_type_node.
32771
32772 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32773             Reza Yazdani  <reza.yazdani@amd.com>
32774
32775         PR middle-end/43065
32776         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
32777         on pointer type parameters.
32778
32779 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
32780
32781         PR middle-end/42644
32782         PR middle-end/42130
32783         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
32784         handle conversions from pointer to integers.
32785         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
32786         induction variable, to be able to work with code generated by CLooG.
32787         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
32788         (build_poly_scop): Bail out if we cannot codegen a loop.
32789
32790 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
32791
32792         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
32793         code generation with gloog_error.
32794
32795 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32796
32797         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
32798         Call fold_convert on all the returned values.
32799         (expand_scalar_variables_expr): Pass to
32800         expand_scalar_variables_ssa_name the type of the resulting expression.
32801
32802 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32803
32804         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
32805         ppl_min_for_le_pointset.
32806         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
32807         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
32808
32809 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32810
32811         * graphite-dependences.c (map_into_dep_poly): Removed.
32812         (dependence_polyhedron_1): Use combine_context_id_scat.
32813
32814 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32815
32816         * graphite-poly.h (struct poly_scattering): Add layout documentation.
32817         (struct poly_bb): Same.
32818         (combine_context_id_scat): New.
32819
32820 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32821
32822         PR middle-end/42326
32823         * sese.c (name_defined_in_loop_p): Return false for default
32824         definitions.
32825
32826 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32827
32828         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
32829         and clean up the logic.
32830
32831 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32832
32833         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
32834         early return.
32835
32836 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
32837
32838         * var-tracking.c (remove_cselib_value_chains): Define only for
32839         ENABLE_CHECKING.
32840         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
32841         delete_slot_part, emit_notes_for_differences_1): Don't call
32842         remove_cselib_value_chains here.
32843         (set_slot_part, emit_notes_for_differences_2): Don't call
32844         add_cselib_value_chains here.
32845         (preserved_values): New vector.
32846         (preserve_value): New function.
32847         (add_uses, add_stores, vt_add_function_parameters): Use it
32848         instead of cselib_preserve_value.
32849         (changed_values_stack): New vector.
32850         (check_changed_vars_0): New function.
32851         (check_changed_vars_1, check_changed_vars_2): Use it.
32852         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
32853         changed_values_stack VALUEs.
32854         (vt_emit_notes): For all preserved_values call
32855         add_cselib_value_chains.  If ENABLE_CHECKING call
32856         remove_cselib_value_chains before verifying value_chains is empty.
32857         Initialize and free changed_values_stack.
32858         (vt_initialize): Initialize preserved_values.
32859         (vt_finalize): Free preserved_values.
32860
32861 2010-03-08  Richard Guenther  <rguenther@suse.de>
32862
32863         PR tree-optimization/43269
32864         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
32865         region detection.
32866
32867 2010-03-08  Martin Jambor  <mjambor@suse.cz>
32868
32869         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
32870         (ipa_is_param_called): Removed.
32871         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
32872         (ipa_print_node_params): Do not print the called flag.
32873         (ipa_write_node_info): Do not stream the called flag.
32874         (ipa_read_node_info): Likewise.
32875
32876 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
32877
32878         PR debug/43176
32879         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
32880         * cselib.c (struct expand_value_data): Add dummy field.
32881         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
32882         dummy to false.
32883         (cselib_dummy_expand_value_rtx_cb): New function.
32884         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
32885         any rtl.
32886         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
32887         * var-tracking.c: Include pointer-set.h.
32888         (variable): Change n_var_parts to char from int.  Add
32889         cur_loc_changed and in_changed_variables fields.
32890         (variable_canonicalize): Remove.
32891         (shared_var_p): New inline function.
32892         (unshare_variable): Maintain cur_loc_changed and
32893         in_changed_variables fields.  If var was in changed_variables,
32894         replace it there with new_var.  Just copy cur_loc instead of
32895         resetting it to something else.
32896         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
32897         (dataflow_set_union): Don't call variable_canonicalize.
32898         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
32899         of their DEBUG_EXPR_TREE_DECLs.
32900         (canonicalize_loc_order_check): Verify that cur_loc is NULL
32901         and in_changed_variables and cur_loc_changed is false.
32902         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
32903         and cur_loc_changed.  Don't update cur_loc here.
32904         (variable_merge_over_src): Don't call variable_canonicalize.
32905         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
32906         removing loc that is equal to cur_loc, clear cur_loc,
32907         set cur_loc_changed and ensure variable_was_changed is called.
32908         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
32909         compare pointers in cur_loc check, if it is equal to loc,
32910         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
32911         (variable_different_p): Remove compare_current_location argument,
32912         don't compare cur_loc.
32913         (dataflow_set_different_1): Adjust variable_different_p caller.
32914         (variable_was_changed): If dv had some var in changed_variables
32915         already, reset in_changed_variables flag for it and propagate
32916         cur_loc_changed over to the new variable.  On empty var
32917         always set cur_loc_changed.  Set in_changed_variables on whatever
32918         var is added to changed_variables.
32919         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
32920         Use shared_var_p.  When removing loc that is equal to cur_loc,
32921         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
32922         end, don't set it to something else, just call variable_was_changed.
32923         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
32924         loc being removed, clear cur_loc and set cur_loc_changed.
32925         Set cur_loc_changed if all locations have been removed.
32926         (struct expand_loc_callback_data): New type.
32927         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
32928         allocated.  Always create SUBREGs if simplify_subreg failed.
32929         Prefer to use cur_loc, when that fails and still in
32930         changed_variables (and seen first time) recompute it.  Set
32931         cur_loc_changed of variables which had to change cur_loc and
32932         compute elcd->cur_loc_changed if any of the subexpressions used
32933         had to change cur_loc.
32934         (vt_expand_loc): Adjust to pass arguments in
32935         expand_loc_callback_data structure.
32936         (vt_expand_loc_dummy): New function.
32937         (emitted_notes): New variable.
32938         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
32939         that weren't used for any other decl in current
32940         emit_notes_for_changes call call vt_expand_loc_dummy to update
32941         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
32942         first loc_chain location if NULL before.  Always use just
32943         cur_loc instead of first loc_chain location.  When cur_loc_changed
32944         is false, when not --enable-checking=rtl just don't emit any note.
32945         When rtl checking, compute the note and assert it is the same
32946         as previous note.  Clear cur_loc_changed and in_changed_variables
32947         at the end before removing from changed_variables.
32948         (check_changed_vars_3): New function.
32949         (emit_notes_for_changes): Traverse changed_vars to call
32950         check_changed_vars_3 on each changed var.
32951         (emit_notes_for_differences_1): Clear cur_loc_changed and
32952         in_changed_variables.  Recompute cur_loc of new_var.
32953         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
32954         (vt_emit_notes): Initialize and destroy emitted_notes.
32955
32956 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
32957
32958         PR rtl-optimization/42220
32959         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
32960         Use verify_reg_tracked to determine if we should use OP_OUT rather
32961         than OP_INOUT.
32962         (build_def_use): If we see an in-out operand for a register that we
32963         know nothing about, treat is an output if possible, fail the block if
32964         not.
32965
32966 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
32967
32968         PR debug/42897
32969         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
32970         permanently.
32971
32972 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
32973
32974         PR debug/42897
32975         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
32976         uses of relevant DEFs that are dead outside the loop too.
32977
32978 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
32979
32980         * var-tracking.c (dataflow_set_merge): Swap src and src2.
32981         Reverted:
32982         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
32983         PR debug/41371
32984         * var-tracking.c (values_to_unmark): New variable.
32985         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
32986         values_to_unmark vector.  Moved body to...
32987         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
32988         instead queue it into values_to_unmark vector.
32989         (vt_find_locations): Free values_to_unmark vector.
32990
32991 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
32992
32993         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
32994         (site.exp): Export them when plugins are enabled.
32995
32996 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
32997
32998         PR middle-end/42326
32999         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
33000         that contain scevs.
33001         (chrec_fold_multiply): Same.
33002
33003 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
33004
33005         PR c/43248
33006         * c-decl.c (build_compound_literal): Return early if init is
33007         an error_mark_node.
33008
33009 2010-03-04  Martin Jambor  <mjambor@suse.cz>
33010
33011         PR tree-optimization/43164
33012         PR tree-optimization/43191
33013         * tree-sra.c (type_consists_of_records_p): Reject records with
33014         zero-size bit-fields at the end.
33015
33016 2010-03-04  Mike Stump  <mikestump@comcast.net>
33017
33018         * Makefile.in (TAGS): Remove *.y.
33019
33020 2010-03-04  Richard Guenther  <rguenther@suse.de>
33021
33022         PR tree-optimization/40761
33023         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
33024         in reverse order.
33025         (my_rev_post_order_compute): New function.
33026         (init_pre): Call it.
33027
33028 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
33029
33030         PR middle-end/43209
33031         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
33032         decrease the cost of an IV candidate when the cost is infinite.
33033
33034 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33035
33036         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
33037         Use '3DNow!' for the extension of that name, ensure normal space
33038         after the string.
33039         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
33040
33041 2010-03-03  Jeff Law  <law@redhat.com>
33042
33043         * PR middle-end/32693
33044         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
33045         than gen_rtx_SUBREG.
33046         (extract_bit_field_1): Likewise.
33047
33048 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
33049
33050         * doc/sourcebuild.texi (Test directives): Document that arguments
33051         include-opts and exclude-opts are now optional for dg-skip-if,
33052         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
33053
33054 2010-03-03  Jason Merrill  <jason@redhat.com>
33055
33056         PR c++/12909
33057         * cgraph.h (varpool_node): Add extra_name field.
33058         * varpool.c (varpool_extra_name_alias): New.
33059         (varpool_assemble_decl): Emit extra name aliases.
33060         (varpool_mark_needed_node): Look past an extra name alias.
33061         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
33062         * lto-streamer-in.c (lto_input_tree): Read it.
33063         * lto-streamer-out.c (output_unreferenced_globals): Write it.
33064
33065 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
33066
33067         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
33068         (sparc*-*-solaris2*): ...this.
33069
33070 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
33071
33072         PR debug/43229
33073         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
33074         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
33075         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
33076         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
33077
33078         PR debug/43237
33079         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
33080         fallthrough to default handling, just with want_address 0 instead of 2.
33081         For single element lists, add_AT_loc directly, otherwise create an
33082         artificial variable DIE and stick location list to it.
33083
33084         PR debug/43177
33085         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
33086         (VAL_EXPR_HAS_REVERSE): Define.
33087         (reverse_op): New function.
33088         (add_stores): For reversible operations add an extra MO_VAL_USE.
33089
33090 2010-03-02  Jason Merrill  <jason@redhat.com>
33091
33092         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
33093
33094 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
33095
33096         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
33097         (sparc64-*-linux*): Likewise.
33098         (sparc64-*-solaris2*): Include assembler files before linker ones.
33099         (sparc-*-solaris2*): Simplify and reorder to match previous case.
33100         * config/sparc/gas.h: Delete.
33101         * config/sparc/sol2-64.h: Add copyright notice.
33102         * config/sparc/sol2-gas-bi.h: Likewise.
33103         * config/sparc/sol2-gld.h: Likewise.
33104         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
33105         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
33106         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
33107         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
33108         (sparc_elf_asm_named_section): Rename into...
33109         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
33110
33111 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
33112
33113         * config/alpha/alpha.c (override_options): Fix -mtune error message.
33114
33115 2010-03-02  Jeff Law  <law@redhat.com>
33116
33117         PR middle-end/42431
33118         * reload1.c (rtx_p, substitute_stack): Declare.
33119         (substitute): Record addresses of changed rtxs.
33120         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
33121         Restore the original rtx when complete.
33122         (reload): Free subsitute_stack when complete.
33123
33124 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
33125
33126         * doc/gccint.texi (menu): Add Testsuites as a chapter.
33127         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
33128         new chapter.
33129         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
33130         LTO Testing, gcov Testing, profopt Testing, compat Testing,
33131         Torture Tests): Change from subsection to section.
33132
33133 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
33134             Steven Bosscher  <steven@gcc.gnu.org>
33135
33136         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
33137         instead of bb.
33138
33139 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
33140
33141         PR middle-end/42640
33142         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
33143         the assignment from the new induction variable to the assignment
33144         of the value from the original loop PHI function.
33145
33146 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
33147             Daniel Jacobowitz  <dan@codesourcery.com>
33148
33149         * doc/sourcebuild.texi (Test directives): Clarify options to
33150         dg-skip-if.
33151
33152 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33153
33154         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
33155         Disable cfi directives unless GCC and gas agree on using read-only
33156         .eh_frame sections for 64-bit.
33157         * configure: Regenerate.
33158
33159 2010-03-01  Richard Guenther  <rguenther@suse.de>
33160
33161         PR tree-optimization/43220
33162         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
33163         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
33164
33165 2010-03-01  Richard Guenther  <rguenther@suse.de>
33166             Martin Jambor  <mjambor@suse.cz>
33167
33168         PR middle-end/41250
33169         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
33170         gimplified parameters.
33171
33172 2010-03-01  Christian Bruel  <christian.bruel@st.com>
33173
33174         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
33175
33176 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
33177
33178         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
33179
33180 2010-03-01  Richard Guenther  <rguenther@suse.de>
33181
33182         PR middle-end/43213
33183         * expr.c (expand_assignment): Use the alias-oracle to tell
33184         if the rhs aliases the result decl.
33185
33186 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33187
33188         PR pch/14940
33189         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
33190         to sol_gt_pch_get_address.
33191         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
33192         64-bit, SPARC and x86.
33193         (sol_gt_pch_get_address): New function.
33194
33195 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
33196
33197         * toplev.h (inform_n, error_n): Declare.
33198         * diagnostic.c (inform_n, error_n): New function.
33199
33200 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
33201
33202         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
33203         has no rtl yet when processing local_decls, queue it and recheck
33204         if deferred stack allocation hasn't assigned it rtl.
33205
33206 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
33207
33208         * config/sh/sh.c (unspec_bbr_uid): New.
33209         (gen_block_redirect): Use it instead of INSN_UID.
33210         (gen_far_branch): Likewise.
33211
33212 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
33213
33214         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
33215         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
33216
33217 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33218
33219         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
33220         (Warning Options): -Wno-conversion-null is valid for
33221         Objective-C++ as well.
33222         * doc/tm.texi (Named Address Spaces): Likewise.
33223         * doc/plugins.texi (Plugins): Replace TABs with spaces.
33224         * doc/tree-ssa.texi (Tree SSA): Likewise.
33225
33226 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
33227
33228         PR bootstrap/43202
33229         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
33230         by default.  Don't set the default arch for
33231         i[34567]86-*-darwin*|x86_64-*-darwin*.
33232
33233 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
33234
33235         PR bootstrap/43202
33236         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
33237         default.  Set the default 32bit/64bit archs with $with_arch
33238         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
33239
33240 2010-02-27  Richard Guenther  <rguenther@suse.de>
33241
33242         PR tree-optimization/43186
33243         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
33244         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
33245         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
33246         unroller iterations.
33247
33248 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
33249
33250         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
33251         required and i[34567]86-*-* targets don't support 64bit ISA.
33252
33253 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
33254
33255         PR ada/43096
33256         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
33257         the same alias set.
33258
33259 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
33260
33261         * config.gcc: Set the default arch at least to Prescott for
33262         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
33263         if SSE math is enabled.
33264
33265 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33266
33267         * diagnostic.c (diagnostic_initialize): Update.
33268         (diagnostic_report_diagnostic): Test inhibit_notes_p for
33269         informative notes.
33270         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
33271         (diagnostic_inhibit_notes): New.
33272         * toplev.c (process_options): inhibit notes with -fcompare-debug.
33273
33274 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33275
33276         PR c/20631
33277         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
33278         * doc/standards.texi: Likewise.
33279         * doc/extend.texi: Likewise.
33280         * doc/trouble.texi: Likewise.
33281         * doc/cppopts.texi: Likewise.
33282         * doc/install.texi: Likewise.
33283         * c.opt (std=c90,std=gnu90): New options.
33284         * c-opts.c (c_common_handle_option): Handle them.
33285
33286 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33287
33288         PR c/24577
33289         * c-decl.c (undeclared_variable): Use an informative note.
33290
33291 2010-02-26  Richard Guenther  <rguenther@suse.de>
33292
33293         PR tree-optimization/43186
33294         * gimple.h (gimple_fold): Remove.
33295         * gimple.c (gimple_fold): Remove.  Inline into single user ...
33296         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
33297         Try harder for conditions.
33298
33299 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
33300
33301         PR debug/43190
33302         * function.c (used_types_insert): Don't skip through named pointer
33303         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
33304         and it is different from the main variant's type.
33305
33306 2010-02-26  Nick Clifton  <nickc@redhat.com>
33307
33308         * config/rx/rx.md (sminsi3): Remove bogus alternative.
33309
33310 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
33311
33312         * config.gcc: Support --with-fpmath=sse for x86.
33313
33314         * config/i386/ssemath.h: New.
33315
33316         * doc/install.texi (--with-fpmath=sse): Documented.
33317
33318 2010-02-26  Richard Guenther  <rguenther@suse.de>
33319
33320         PR tree-optimization/43188
33321         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
33322         vector types of over-aligned element type.
33323
33324 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
33325
33326         PR target/43175
33327         * config/i386/i386.c (expand_vec_perm_blend): Use correct
33328         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
33329
33330 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
33331
33332         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
33333
33334 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
33335
33336         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
33337         * var-tracking.c: Include diagnostic.h.
33338         (debug_dv): New function.
33339         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
33340
33341         PR debug/43160
33342         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
33343         (add_value_chain, add_value_chains, remove_value_chain,
33344         remove_value_chains): Handle DEBUG_EXPRs.
33345         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
33346
33347         PR debug/43161
33348         * regcprop.c (struct queued_debug_insn_change): New type.
33349         (struct value_data_entry): Add debug_insn_changes field.
33350         (struct value_data): Add n_debug_insn_changes field.
33351         (debug_insn_changes_pool): New variable.
33352         (free_debug_insn_changes, apply_debug_insn_changes,
33353         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
33354         (kill_value_one_regno): Call free_debug_insn_changes if needed.
33355         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
33356         fields.
33357         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
33358         changes for them.
33359         (copyprop_hardreg_forward_1): Don't call apply_change_group for
33360         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
33361         changes, call cprop_find_used_regs via note_stores.
33362         (copyprop_hardreg_forward): When copying vd from predecessor
33363         which has any queued DEBUG_INSN changes, make sure the pointers are
33364         cleared.  At the end call df_analyze and then if there are any
33365         DEBUG_INSN changes queued at the end of some basic block for still
33366         live registers, apply them.
33367         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
33368
33369 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
33370
33371         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
33372         (arm*-*-*): Ditto.
33373
33374 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
33375
33376         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
33377         targets.  Set the default with_cpu/with_arch from arch/cpu.
33378         Allow x86-64 and native for with_cpu/with_arch.
33379
33380 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
33381
33382         * ebitmap.c: Change calls to verify_popcount with calls to
33383         sbitmap_verify_popcount.
33384         (ebitmap_clear_bit): Fixed map->cacheindex test and
33385         map>cache update when bit clearing results in an empty
33386         element.
33387
33388 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
33389
33390         PR target/43154
33391         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
33392         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
33393         and support both V2DF and V2DI modes.
33394         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
33395         support both V2DF and V2DI modes.
33396         (general): Delete trailing whitespace from a few patterns.
33397
33398         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
33399         V2DF/V2DI interleave high/low builtins.
33400
33401         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
33402         new VSX builtins.
33403
33404         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
33405         interleave high/low functions.
33406
33407 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
33408
33409         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
33410         #pragma extern_prefix.
33411
33412 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
33413
33414         PR debug/43166
33415         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
33416         BLKmode, assert op0 is a MEM and just adjust its mode.
33417
33418         PR debug/43165
33419         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
33420         if bitpos isn't multiple of mode's bitsize.
33421
33422 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33423
33424         * c.opt (-ftemplate-depth=): New.
33425         (-ftemplate-depth-): Deprecate.
33426         * optc-gen.awk: Handle -ftemplate-depth=.
33427         * opth-gen.awk: Likewise.
33428         * c-opts.c (c_common_handle_option): Likewise.
33429         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
33430
33431 2010-02-24  Jason Merrill  <jason@redhat.com>
33432
33433         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
33434
33435 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33436
33437         * cfg.c (alloc_aux_for_block): Remove inline.
33438         (alloc_aux_for_edge): Likewise.
33439
33440 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33441
33442         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
33443
33444 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33445
33446         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
33447         * config/i386/sol2-gas.h: New file.
33448         * config.gcc (i[34567]86-*-solaris2*): Use it.
33449
33450 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33451
33452         PR c/43128
33453         * c-typeck.c (ep_convert_and_check): New.
33454         (build_conditional_expr): Use it.
33455         (build_binary_op): Likewise.
33456
33457 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
33458
33459         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
33460
33461         PR debug/43150
33462         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
33463         bounds even for -O+.
33464         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
33465         expr needs to have DECL_NAME set.
33466
33467 2010-02-24  Nick Clifton  <nickc@redhat.com>
33468
33469         * config/mep/mep.c: Include gimple.h.
33470         (mep_function_uses_sp): Delete unused function.
33471         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
33472         parameters.  Use unsigned integers to count args.  Return a
33473         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
33474
33475 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
33476
33477         PR target/43107
33478         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
33479         greater or equal to nelt instead of 2 * nelt.
33480         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
33481         with nelt - 1.
33482
33483 2010-02-23  Jason Merrill  <jason@redhat.com>
33484
33485         PR debug/42800
33486         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
33487         in cfun->local_decls even if they have register types.
33488
33489         PR c++/42837
33490         * stor-layout.c (place_field): Don't warn about unnecessary
33491         DECL_PACKED if the type is packed.
33492
33493 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
33494
33495         PR target/43139
33496         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
33497         GOTOFF relocs, even when the base reg isn't pic pointer.
33498
33499 2010-02-23  Michael Matz  <matz@suse.de>
33500
33501         PR debug/43077
33502         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
33503         (expand_gimple_basic_block): Generate and use debug temps if there
33504         are debug uses left after the last real use of TERed ssa names.
33505         Unlink debug immediate uses when they are expanded.
33506
33507 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33508
33509         PR 43123
33510         * config/i386/i386.c (override_options): Reorganise to provide
33511         better error messages.
33512
33513 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
33514
33515         PR middle-end/43083
33516         * graphite-scop-detection.c (create_single_exit_edge): Move
33517         the call to find_single_exit_edge to....
33518         (create_sese_edges): ...here.  Don't handle multiple edges
33519         exiting the function.
33520         (build_graphite_scops): Don't handle multiple edges
33521         exiting the function.
33522
33523 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
33524
33525         PR middle-end/43097
33526         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
33527         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
33528
33529 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
33530
33531         PR middle-end/43026
33532         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
33533
33534 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33535
33536         PR c++/43126
33537         * c-typeck.c (convert_arguments): Print declaration location.
33538         * c-common.c (validate_nargs): Rename as
33539         builtin_function_validate_nargs.
33540         (check_builtin_function_arguments): Update.
33541
33542 2010-02-22  Richard Guenther  <rguenther@suse.de>
33543
33544         PR lto/43045
33545         * tree-inline.c (declare_return_variable): Use the type of
33546         the call stmt lhs if available.
33547
33548 2010-02-22  Duncan Sands  <baldrick@free.fr>
33549
33550         * passes.c (register_pass): Always consider all pass lists when
33551         ref_pass_instance_number is zero.
33552
33553 2010-02-22  Richard Guenther  <rguenther@suse.de>
33554
33555         PR tree-optimization/42749
33556         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
33557         parameter.  Do arithmetic in the original type.
33558         (update_accumulator_with_ops): Likewise.
33559         (adjust_accumulator_values): Adjust.
33560
33561 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33562
33563         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
33564         (QI to BLKmode splitter): New splitter.
33565
33566 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
33567
33568         * config/i386/i386.c (initial_ix86_tune_features): Turn on
33569         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
33570
33571 2010-02-22  Richard Guenther  <rguenther@suse.de>
33572
33573         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
33574
33575 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
33576
33577         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
33578         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
33579         ($(T)crti.o, $(T)crtn.o): Remove rules.
33580
33581 2010-02-21  Tobias Burnus  <burnus@net-b.de>
33582
33583         PR fortran/35259
33584         * doc/invoke.texi (-fassociative-math): Document that this
33585         option is automatically enabled for Fortran.
33586
33587 2010-02-20  David S. Miller  <davem@davemloft.net>
33588
33589         * configure.ac: Test if linker and assembler properly support
33590         GOTDATA_OP relocations.
33591         * configure: Rebuild.
33592         * config.in: Likewise.
33593         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
33594         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
33595         (movsi_high_pic): Likewise.
33596         (movdi_lo_sum_pic): Likewise.
33597         (movdi_high_pic): Likewise.
33598         (movsi_pic_gotdata_op): New pattern.
33599         (movdi_pic_gotdata_op): Likewise.
33600         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
33601         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
33602
33603 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
33604
33605         PR target/43067
33606         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
33607         attribute to ssemul.
33608         (xop_mulv2div2di3_high): Ditto.
33609
33610 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33611
33612         PR c++/35669
33613         * c.opt (Wconversion-null): New option.
33614         * doc/invoke.texi (Wconversion-null): Document.
33615
33616 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33617
33618         * common.opt (Wlarger-than-): Add Undocumented.
33619
33620 2010-02-19  Mike Stump  <mikestump@comcast.net>
33621
33622         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
33623
33624 2010-02-19  Jason Merrill  <jason@redhat.com>
33625
33626         PR target/40332
33627         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
33628         * configure: Likewise.
33629
33630 2010-02-20  Alan Modra  <amodra@gmail.com>
33631
33632         PR middle-end/42344
33633         * cgraph.h (cgraph_make_decl_local): Declare.
33634         * cgraph.c (cgraph_make_decl_local): New function.
33635         (cgraph_make_node_local): Use it.
33636         * cgraphunit.c (cgraph_function_versioning): Likewise.
33637         * ipa.c (function_and_variable_visibility): Likewise.
33638
33639 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33640
33641         PR bootstrap/43121
33642         * except.c (sjlj_emit_function_enter): Don't call
33643         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
33644         directly.
33645         * rtl.h (add_reg_br_prob_note): Remove prototype.
33646
33647 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33648
33649         PR 41779
33650         * c-common.c (conversion_warning): Remove widening conversions
33651         before checking the conversion of integers to reals.
33652
33653 2010-02-19  Mike Stump  <mikestump@comcast.net>
33654
33655         PR middle-end/43125
33656         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
33657
33658         PR objc/43061
33659         * cgraphunit.c (process_function_and_variable_attributes): Check
33660         DECL_PRESERVE_P instead of looking up attribute "used".
33661         * ipa-pure-const.c (check_decl): Likewise.
33662         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
33663         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
33664         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
33665         instead of attribute "used".
33666         * config/sol2-c.c (solaris_pragma_init): Likewise.
33667         (solaris_pragma_fini): Likewise.
33668
33669 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33670
33671         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
33672         Use XCNEW instead of xcalloc.
33673         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
33674         XNEW instead of xmalloc.
33675         (get_fields): Use XNEWVEC instead of xmalloc.
33676
33677         PR debug/43084
33678         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
33679         populate vars array.
33680         (create_new_general_access): For debug stmts just reset value.
33681         (get_stmt_accesses): For accesses within debug stmts just record them
33682         using add_access_to_acc_sites instead of preventing the peeling or
33683         counting them as accesses.
33684
33685         PR middle-end/42233
33686         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
33687
33688 2010-02-19  Richard Guenther  <rguenther@suse.de>
33689
33690         PR tree-optimization/42916
33691         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
33692         instructions.
33693
33694 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
33695
33696         * configure.ac: Replace all uses of changequote in macro arguments
33697         with proper quoting.
33698
33699 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33700
33701         PR middle-end/42233
33702         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
33703
33704 2010-02-19  Richard Guenther  <rguenther@suse.de>
33705
33706         PR tree-optimization/42944
33707         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
33708         test for aliasing with errno.
33709
33710 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33711
33712         PR middle-end/42233
33713         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
33714         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
33715         * dojump.c: Include output.h.
33716         (inv): New inline function.
33717         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
33718         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
33719         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
33720         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
33721         argument, pass it down to other calls.
33722         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
33723         add REG_BR_PROB note to the conditional jump.
33724         * cfgexpand.c (add_reg_br_prob_note): Removed.
33725         (expand_gimple_cond): Don't call it, add the probability
33726         as last argument to jumpif_1/jumpifnot_1.
33727         * Makefile.in (dojump.o): Depend on output.h.
33728         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
33729         callers.
33730         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
33731         * stmt.c (do_jump_if_equal): Likewise.
33732         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
33733         * loop-unswitch.c (compare_and_jump_seq): Likewise.
33734         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
33735         Likewise.
33736         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
33737         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
33738         jumpifnot_1 callers.
33739         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
33740         callers.
33741         (store_expr): Adjust jumpifnot caller.
33742         (store_constructor): Adjust jumpif caller.
33743
33744         PR middle-end/42233
33745         * gimplify.c (gimple_boolify): For __builtin_expect call
33746         gimple_boolify also on its first argument.
33747
33748 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
33749
33750         * configure.ac (gnu-unique-object): Wrap regexps using [] in
33751         changequote block.
33752         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
33753         * configure: Regenerated.
33754
33755 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33756
33757         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
33758         lang_hooks.types_compatible_p instead of comptypes.
33759
33760 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33761
33762         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
33763         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
33764         if __prefer_thumb__ is defined.
33765
33766 2010-02-18  Martin Jambor  <mjambor@suse.cz>
33767
33768         PR tree-optimization/43066
33769         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
33770         array with zero-sized element type.
33771
33772 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
33773
33774         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
33775         rtx, allocate struct var_loc_node here and return it to the
33776         caller, and only if it is actually needed.
33777         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
33778         move it earlier and return immediately if it returns NULL.
33779
33780 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
33781
33782         * config/sparc/gas.h: New file.  Restore
33783         TARGET_ASM_NAMED_SECTION to its ELF default.
33784         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
33785         check !HAVE_GNU_AS.
33786         * config/sparc/sparc.c (sparc_elf_asm_named_section):
33787         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
33788         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
33789         after sparc/sysv4.h.
33790
33791 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
33792
33793         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
33794
33795 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
33796
33797         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
33798         patterns from predicated pattern.
33799
33800 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
33801
33802         PR target/43103
33803         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
33804         for insn mnemonic suffix.
33805
33806 2010-02-17  Richard Guenther  <rguenther@suse.de>
33807
33808         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
33809         to loop PHI nodes.
33810
33811 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
33812
33813         PR debug/42918
33814         * caller-save.c (save_call_clobbered_regs): If BB ends with
33815         a DEBUG_INSN, move any notes in between last real insn and the last
33816         DEBUG_INSN after the last DEBUG_INSN.
33817
33818 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
33819
33820         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
33821         Fix return type.  Fix argument type.  Explain meaning of return value.
33822
33823 2010-02-16  Richard Guenther  <rguenther@suse.de>
33824
33825         PR tree-optimization/41043
33826         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
33827         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
33828         statements ...
33829         (vrp_visit_phi_node): ... but only for loop PHI nodes.
33830
33831 2010-02-16  Ira Rosen  <irar@il.ibm.com>
33832
33833         PR tree-optimization/43074
33834         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
33835         * tree-vect-loop.c (vect_analyze_loop_operations): Add
33836         vectorizable cycles in hybrid SLP check.
33837         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
33838
33839 2010-02-16  Richard Guenther  <rguenther@suse.de>
33840
33841         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
33842         (true_dependence): If memrefs_conflict_p computes must-alias
33843         trust it.  Move TBAA check after offset-based disambiguation.
33844         (canon_true_dependence): Likewise.
33845
33846 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
33847
33848         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
33849         * doc/invoke.texi: Document it.
33850         * var-tracking.c: Include toplev.h and params.h.
33851         (vt_find_locations): Return bool indicating success.  Compute
33852         hash sizes unconditionally.  Check new parameter, report.
33853         (variable_tracking_main_1): Check vt_find_locations results and
33854         retry.  Renamed from...
33855         (variable_tracking_main): ... this.  New wrapper to preserve
33856         flag_var_tracking_assignments.
33857         * Makefile.in (var-tracking.o): Adjust dependencies.
33858
33859 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
33860             Jakub Jelinek  <jakub@redhat.com>
33861
33862         PR target/42854
33863         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
33864         if weak_import attribute is present.
33865         * config/darwin.c (machopic_select_section): Likewise.
33866
33867 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
33868
33869         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
33870         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
33871         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
33872         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
33873
33874         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
33875         types.
33876
33877         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
33878         Fix argument types.
33879
33880         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
33881         Rewrite text to refer to the names.
33882
33883 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
33884
33885         * config/i386/i386-builtin-types.def
33886         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
33887         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
33888         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
33889         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
33890         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
33891         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
33892         IX86_BUILTIN_VPERMIL2PS256.
33893         (MULTI_ARG_4_DF2_DI_I): Defined.
33894         (MULTI_ARG_4_DF2_DI_I1): Defined.
33895         (MULTI_ARG_4_SF2_SI_I): Defined.
33896         (MULTI_ARG_4_SF2_SI_I1): Defined.
33897         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
33898         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
33899         __builtin_ia32_vpermil2ps256.
33900         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
33901         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
33902         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
33903         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
33904         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
33905         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
33906         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
33907         CODE_FOR_xop_vpermil2v8sf3.
33908         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
33909         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
33910         * config/i386/xopintrin.h (_mm_permute2_pd): New.
33911         (_mm256_permute2_pd): New.
33912         (_mm_permute2_ps): New.
33913         (_mm256_permute2_ps): New.
33914
33915 2010-02-15  Nick Clifton  <nickc@redhat.com>
33916
33917         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
33918         boolean parameters.  Use emit_jump_insn when emitting a pop
33919         instruction containing a return insn.
33920         (push): Use 'true' rather than '1' as second parameter to F.
33921         (h8300_expand_prologue): Likewise.
33922         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
33923         (h8300_expand_epilogue): Likewise.
33924
33925 2010-02-15  Richard Guenther  <rguenther@suse.de>
33926
33927         PR middle-end/43068
33928         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
33929         if that is zero.
33930
33931 2010-02-15  Nick Clifton  <nickc@redhat.com>
33932
33933         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
33934         delta.
33935
33936 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
33937
33938         * intl.c (fake_ngettext): New function.
33939         * intl.h (fake_ngettext): Declare.
33940         (ngettext): Define macro.
33941         * collect2.c (notice_translated): New function.
33942         (main): Use notice_translated and ngettext.
33943         * collect2.h (notice_translated): Declare.
33944
33945 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
33946
33947         * reorg.c (delete_computation): Comment fixes.
33948         * caller-save.c (setup_save_areas): Idem.
33949         * sel-sched-dump.c (dump_lv_set): Idem.
33950         * rtl.def: Idem.
33951
33952 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33953
33954         * config/s390/s390.c (s390_sched_init): New function.
33955         (TARGET_SCHED_INIT): Target hook defined.
33956
33957 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
33958             Jack Howarth  <howarth@bromo.med.uc.edu>
33959             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
33960
33961         PR target/42982
33962         Partial revert of unintended change in fix for PR41605.
33963         * config/darwin.h: Fix typo.
33964         * config/darwin9.h: Same.
33965
33966 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
33967
33968         * c-pch.c (pch_init): Clear v.
33969
33970 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
33971
33972         PR middle-end/42930
33973         * graphite-scop-detection.c (graphite_can_represent_scev): Call
33974         graphite_can_represent_init for MULT_EXPR.
33975
33976 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
33977
33978         PR middle-end/42914
33979         PR middle-end/42530
33980         * graphite-sese-to-poly.c (remove_phi): New.
33981         (translate_scalar_reduction_to_array): Call remove_phi.
33982
33983 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
33984
33985         PR middle-end/42771
33986         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
33987         * graphite-clast-to-gimple.h (gloog): Update declaration.
33988         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
33989         * graphite-poly.h (struct poly_bb): Add missing comments.
33990         (struct scop): Add poly_scop_p field.
33991         (POLY_SCOP_P): New.
33992         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
33993         * graphite.c (graphite_transform_loops): Build the polyhedral
33994         representation for each scop before code generation.
33995         * sese.c (rename_variables_in_operand): Removed.
33996         (rename_variables_in_expr): Return the renamed expression.
33997         (rename_sese_parameters): New.
33998         * sese.h (rename_sese_parameters): Declared.
33999
34000 2010-02-11  Richard Guenther  <rguenther@suse.de>
34001
34002         PR tree-optimization/42998
34003         * tree-ssa-pre.c (create_expression_by_pieces): Treat
34004         POINTER_PLUS_EXPR properly.
34005
34006 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
34007             Changpeng Fang  <changpeng.fang@amd.com>
34008
34009         PR middle-end/40886
34010         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
34011         the cost of an IV candidate when the IV is used in a test against zero.
34012
34013         * gcc.dg/tree-ssa/ivopts-3.c: New.
34014
34015 2010-02-11  Richard Guenther  <rguenther@suse.de>
34016
34017         PR lto/41664
34018         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
34019         pointer-vs-decl case by swapping refs.  Handle some cases
34020         of pointer-vs-decl disambiguations more conservatively.
34021         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
34022         to false after expanding.
34023
34024 2010-02-11  Richard Guenther  <rguenther@suse.de>
34025
34026         PR driver/43021
34027         * gcc.c (process_command): Handle LTO file@offset case more
34028         appropriately.
34029
34030 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
34031
34032         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
34033         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
34034         of DEBUG_INSNs.
34035         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
34036
34037         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
34038         if MEM's mode size isn't DWARF2_ADDR_SIZE.
34039         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
34040         Optimize eq/ne comparisons when both arguments are known to be
34041         zero-extended.
34042         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
34043         Don't mask operands unnecessarily if they are known to be already
34044         zero-extended.
34045
34046 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
34047
34048         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
34049         instead of loop.
34050
34051 2010-02-10  Richard Guenther  <rguenther@suse.de>
34052
34053         PR tree-optimization/43017
34054         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
34055         for wrapping signed arithmetic.
34056
34057 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
34058
34059         PR debug/43010
34060         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
34061         if no debug info should be emitted for it.
34062
34063 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
34064
34065         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
34066         note when flag_exceptions is set.
34067
34068 2010-02-10  Duncan Sands  <baldrick@free.fr>
34069
34070         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
34071
34072 2010-02-10  Richard Guenther  <rguenther@suse.de>
34073
34074         PR c/43007
34075         * tree.c (get_unwidened): Handle constants.
34076         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
34077
34078 2010-02-10  Martin Jambor  <mjambor@suse.cz>
34079
34080         PR lto/42985
34081         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
34082         check for variable argument counts independently.
34083
34084 2010-02-10  Christian Bruel  <christian.bruel@st.com>
34085
34086         PR target/42841
34087         * config/sh/sh.c (find_barrier): Increase length for non delayed
34088         conditional branches.
34089
34090 2010-02-10  Christian Bruel  <christian.bruel@st.com>
34091
34092         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
34093
34094 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
34095
34096         * builtins.c (set_builtin_user_assembler_name): Also handle
34097         ffs if int is smaller than word.
34098
34099 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
34100
34101         PR middle-end/42973
34102         * ira-conflicts.c (get_dup): Remove.
34103         (process_reg_shuffles): Add new parameter.  Use it as an
34104         additional guard for copy generation.
34105         (add_insn_allocno_copies): Rewrite.
34106
34107 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
34108
34109         * common.opt (fsched2-use-traces): Preserved for backward
34110         compatibility.
34111         * doc/invoke.texi: Remove the documentation about option
34112         -fsched2-use-traces.
34113         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
34114         flag_sched2_use_traces.
34115         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
34116         the backward compatibility flag section.
34117
34118 2010-02-09  Richard Guenther  <rguenther@suse.de>
34119
34120         PR tree-optimization/43008
34121         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
34122         make HEAP variables initialized from global memory if they
34123         are not known builtin functions.
34124         (find_func_aliases): Adjust.
34125
34126 2010-02-09  Richard Guenther  <rguenther@suse.de>
34127
34128         PR tree-optimization/43000
34129         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
34130         arithmetic manually.
34131
34132 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
34133
34134         PR tree-optimization/42931
34135         * tree-loop-linear.c (try_interchange_loops): Don't call
34136         double_int_mul if estimated_loop_iterations failed.
34137
34138 2010-02-08  Martin Jambor  <mjambor@suse.cz>
34139
34140         PR middle-end/42898
34141         * tree-sra.c (build_accesses_from_assign): Do not mark in
34142         should_scalarize_away_bitmap if stmt has volatile ops.
34143         (sra_modify_assign): Do not process assigns piecemeal if if stmt
34144         has volatile ops.
34145
34146 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
34147
34148         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
34149
34150 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
34151
34152         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
34153         before the pattern.
34154
34155 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
34156
34157         PR middle-end/42946
34158         * df-core.c (df_finish_pass): Change type of saved_flags to int.
34159
34160 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
34161
34162         PR middle-end/42988
34163         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
34164         to unknown_dependence.
34165         (graphite_legal_transform_dr): Handle the unknown_dependence.
34166         (graphite_carried_dependence_level_k): Same.
34167
34168 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
34169
34170         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
34171
34172 2010-02-07  Richard Guenther  <rguenther@suse.de>
34173
34174         PR middle-end/42991
34175         * expr.c (get_inner_reference): Always initialize *pbitsize.
34176
34177 2010-02-07  Richard Guenther  <rguenther@suse.de>
34178
34179         PR middle-end/42956
34180         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
34181         new ARRAY_REFs on variable size element or minimal index arrays.
34182         Complete.
34183         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
34184         gimple_fold_indirect_ref.
34185
34186 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
34187
34188         PR target/42957
34189         * arm.c (arm_override_options): Just return if the user has specified
34190         an invalid fpu name.
34191
34192 2010-02-03  Jason Merrill  <jason@redhat.com>
34193
34194         PR c++/42870
34195         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
34196         i386_pe_maybe_record_exported_symbol.
34197
34198 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
34199
34200         PR target/42924
34201         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
34202         (pa_delegitimize_address): New function.
34203
34204 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
34205
34206         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
34207         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
34208
34209 2010-02-05  Richard Guenther  <rguenther@suse.de>
34210
34211         PR lto/42762
34212         * lto-streamer-in.c (get_resolution): Deal with references
34213         to undefined functions.
34214
34215 2010-02-05  Richard Guenther  <rguenther@suse.de>
34216
34217         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
34218         (fold_const_aggregate_ref): Likewise.
34219         (ccp_fold_stmt): Substitute loads.
34220         (maybe_fold_reference): Verify types before substituting.
34221         Unshare properly.
34222         (fold_gimple_assign): Unshare properly.
34223         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
34224
34225 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
34226
34227         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
34228         for rs6000_gen_cell_microcode.
34229
34230 2010-02-04  Richard Guenther  <rguenther@suse.de>
34231
34232         PR rtl-optimization/42952
34233         * dse.c (const_or_frame_p): Remove MEM handling.
34234
34235 2010-02-04  Nick Clifton  <nickc@redhat.com>
34236
34237         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
34238         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
34239         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
34240         (mn10300_asm_output_mi_thunk): New function.
34241         (mn10300_can_output_mu_thunk): New function.
34242         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
34243         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
34244         (FUNCTION_ARG): Delete incorrect comment.
34245
34246 2010-02-03  Jason Merrill  <jason@redhat.com>
34247
34248         PR c++/40138
34249         * fold-const.c (operand_equal_p): Handle erroneous types.
34250
34251 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
34252
34253         * config/h8300/h8300.md (can_delay): Fix attibute condition.
34254
34255 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
34256
34257         PR rtl-optimization/42941
34258         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
34259         of xmalloc.
34260
34261 2010-02-03  Jason Merrill  <jason@redhat.com>
34262
34263         PR c++/35652
34264         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
34265
34266 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
34267
34268         PR debug/42896
34269         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
34270         (cselib_reset_table): Renamed from...
34271         (cselib_reset_table_with_next_value): ... this.
34272         (cselib_get_next_uid): Renamed from...
34273         (cselib_get_next_unknown_value): ... this.
34274         * cselib.c (next_uid): Renamed from...
34275         (next_unknown_value): ... this.
34276         (cselib_clear_table): Adjust.
34277         (cselib_reset_table): Adjust.  Renamed from...
34278         (cselib_reset_table_with_next_value): ... this.
34279         (cselib_get_next_uid): Adjust.  Renamed from...
34280         (cselib_get_next_unknown_value): ... this.
34281         (get_value_hash): Use hash.
34282         (cselib_hash_rtx): Likewise.
34283         (new_cselib_val): Adjust.  Set and dump uid.
34284         (cselib_lookup_mem): Pass next_uid as hash.
34285         (cselib_subst_to_values): Likewise.
34286         (cselib_log_lookup): Dump uid.
34287         (cselib_lookup): Pass next_uid as hash.  Adjust.
34288         (cselib_process_insn): Adjust.
34289         (cselib_init): Initialize next_uid.
34290         (cselib_finish): Adjust.
34291         (dump_cselib_table): Likewise.
34292         * dse.c (canon_address): Dump value uid.
34293         * print-rtl.c (print_rtx): Print value uid.
34294         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
34295         (dvuid): New type.
34296         (dv_uid): New function, sort of renamed from...
34297         (dv_htab_hash): ... this, reimplemented in terms of it and...
34298         (dv_uid2hash): ... this.  New.
34299         (variable_htab_eq): Drop excess assertions.
34300         (tie_break_pointers): Removed.
34301         (canon_value_cmp): Compare uids.
34302         (variable_post_merge_New_vals): Print uids.
34303         (vt_add_function_parameters): Adjust.
34304         (vt_initialize): Reset table.  Adjust.
34305
34306 2010-02-03  Richard Guenther  <rguenther@suse.de>
34307
34308         PR tree-optimization/42944
34309         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
34310         (call_may_clobber_ref_p_1): Likewise.  Properly handle
34311         malloc and calloc clobbering errno.
34312
34313 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
34314
34315         * doc/invoke.texi: Fix name of sched1 dump.
34316
34317         * opts.c (decode_options): Set flag_tree_switch_conversion
34318         only conditionally on optimize >= 2.
34319
34320         * gcse.c: Assorted comment fixes in pass description.
34321
34322 2010-02-03  Anthony Green  <green@moxielogic.com>
34323
34324         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
34325         nop padding in order to maintain alignment of storage location of
34326         target function address.
34327         (moxie_trampoline_init): Store target function address at newly
34328         aligned location.
34329         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
34330         to 32.
34331         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
34332
34333 2010-02-03  Richard Guenther  <rguenther@suse.de>
34334
34335         PR middle-end/42927
34336         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
34337
34338 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34339
34340         * config.gcc: Reenable check for obsolete targets.
34341         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
34342         mips-sgi-irix6.[0-4]*.
34343
34344 2010-02-02  Nick Clifton  <nickc@redhat.com>
34345
34346         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
34347         constant size of 4 as being the same as 0.
34348         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
34349         can take values in the range 0..4.
34350
34351 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
34352
34353         PR java/41991
34354         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
34355         as _darwin10_Unwind_FindEnclosingFunction().
34356         * libgcc-libsystem.ver: New.
34357
34358 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
34359
34360         PR target/41399
34361         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
34362         implicitly set registers.
34363
34364 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
34365
34366         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
34367         (arm_override_options): Allow automatic selection of the thread
34368         pointer register if thumb2.
34369         (legitimize_pic_address): Improve code sequences for Thumb2.
34370         (arm_call_tls_get_addr): Likewise.
34371         (legitimize_tls_address): Likewise.
34372         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
34373         (pic_load_addr_32bit): ... this.  New named pattern.
34374         * thumb2.md (pic_load_addr_thumb2): Delete.
34375         (pic_load_dot_plus_four): Delete.
34376         (tls_load_dot_plus_four): New named pattern.
34377
34378 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34379
34380         PR libgomp/29986
34381         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
34382         Document fix for TLS bug.
34383
34384 2010-01-31  Richard Guenther  <rguenther@suse.de>
34385
34386         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
34387         conservatively correct.
34388
34389 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34390
34391         PR target/42850
34392         Revert:
34393         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34394
34395         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
34396
34397 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34398
34399         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
34400
34401 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
34402
34403         * config.gcc: Adjust order of makefile fragments for mingw targets.
34404
34405 2010-01-31  Richard Guenther  <rguenther@suse.de>
34406
34407         PR middle-end/42898
34408         * gimplify.c (gimplify_init_constructor): For volatile LHS
34409         initialize a temporary.
34410
34411 2010-01-31  Matthias Klose  <doko@ubuntu.com>
34412
34413         * configure.ac: Fix __stack_chk_fail check for cross builds configured
34414         --with-headers
34415         * configure: Regenerate.
34416
34417 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
34418
34419         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
34420         the same alias set and their sizes different constantness.
34421         (aliasing_component_refs_p): Revert 2009-10-24 change.
34422
34423 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34424
34425         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
34426         unused.
34427
34428 2010-01-29  Richard Guenther  <rguenther@suse.de>
34429
34430         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
34431         Assert we successfully updated the call.
34432
34433 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
34434
34435         PR rtl-optimization/42889
34436         * df.h (df_set_bb_dirty_nonlr): New prototype.
34437         * df-core.c (df_set_bb_dirty_nonlr): New function.
34438         * df-scan.c (df_insn_rescan): Call it instead of
34439         df_set_bb_dirty for DEBUG_INSNs.
34440
34441 2010-01-29  Richard Guenther  <rguenther@suse.de>
34442
34443         PR middle-end/37448
34444         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
34445         quadratic behavior in most cases.
34446
34447 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
34448
34449         PR target/42891
34450         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
34451         in the call to gen_x86_movsicc_0_m1.
34452
34453 2010-01-28  Richard Guenther  <rguenther@suse.de>
34454
34455         PR tree-optimization/42871
34456         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
34457
34458 2010-01-28  Richard Guenther  <rguenther@suse.de>
34459
34460         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
34461         into call arguments.
34462
34463 2010-01-28  Richard Guenther  <rguenther@suse.de>
34464
34465         PR middle-end/42883
34466         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
34467         the forwarder if the destination is an EH landing pad.
34468
34469 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
34470
34471         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
34472         block list passed to gimple_duplicate_sese_tail.
34473         (parallelize_loops): Avoid parallelization when the function
34474         has_nonlocal_label.
34475         Avoid parallelization when the preheader is IRREDUCIBLE.
34476         Try to optimize when estimated_loop_iterations_int is unresolved.
34477         Add the loop's location to the dump file.
34478         * tree-cfg.c (add_phi_args_after_redirect): Remove.
34479         (gimple_duplicate_sese_tail): Remove the check for the latch.
34480         Redirect nexits to the exit block.
34481         Remove handling of the incoming edges to the latch.
34482         Redirect the backedge from the copied latch to the exit bb.
34483
34484 2010-01-28  Michael Matz  <matz@suse.de>
34485
34486         PR target/42881
34487         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
34488         Wrap force_reg into a sequence, emit it before user.
34489
34490 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
34491
34492         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
34493         (arm_rev): New.
34494         (arm_legacy_rev): Likewise.
34495         (thumb_legacy_rev): Likewise.
34496
34497 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
34498
34499         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
34500         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
34501         on MEM's address failed, try avoid_constant_pool_reference and
34502         recurse if it returned something different.
34503         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
34504         address, try avoid_constant_pool_reference and recurse if it
34505         returned something different.
34506         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
34507         address and avoid_constant_pool_reference returned something
34508         different, don't set have_address.
34509
34510 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
34511
34512         PR debug/42861
34513         * var-tracking.c (val_store): Add modified argument, obey it.
34514         Adjust callers.
34515         (count_uses): Move down logging of main.
34516         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
34517         don't need resolution.
34518         (emit_notes_in_bb): Likewise.
34519
34520 2010-01-27  Richard Guenther  <rguenther@suse.de>
34521
34522         PR middle-end/42878
34523         * tree-inline.c (remap_decl): Delay remapping of SSA name
34524         default definitions until we need them.
34525
34526 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
34527
34528         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
34529         (rs6000_delegitimize_address): New function.
34530
34531         * config/s390/s390.c (s390_delegitimize_address): Call
34532         delegitimize_mem_from_attrs.
34533
34534         PR middle-end/42874
34535         * tree-inline.c (cannot_copy_type_1): Removed.
34536         (copy_forbidden): Don't forbid copying of functions containing
34537         records/unions with variable length fields.
34538
34539 2010-01-27  Christian Bruel  <christian.bruel@st.com>
34540
34541         Revert:
34542         PR target/42841
34543         * config/sh/sh.c (find_barrier): Increase length for non delayed
34544         conditional branches.
34545
34546 2010-01-27  Matthias Klose  <doko@ubuntu.com>
34547
34548         * configure.ac (gnu-unique-object): Fix ldd version check.
34549         * configure: Regenerate.
34550
34551 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34552
34553         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
34554         HAVE_GNU_AS value.
34555         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
34556         Test for HAVE_GNU_AS value.
34557
34558 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34559
34560         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
34561         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
34562         INT64_TYPE): Define.
34563         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
34564         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
34565         INT_LEAST64_TYPE): Define.
34566         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
34567         UINT_LEAST64_TYPE): Define.
34568         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
34569         INT_FAST64_TYPE): Define.
34570         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
34571         UINT_FAST64_TYPE): Define.
34572         (INTMAX_TYPE, UINTMAX_TYPE): Define.
34573         (INTPTR_TYPE, UINTPTR_TYPE): Define.
34574         (SIG_ATOMIC_TYPE): Define.
34575
34576 2010-01-26  Richard Guenther  <rguenther@suse.de>
34577
34578         * df-scan.c (df_scan_set_bb_info): Remove assert.
34579         (df_insn_rescan_debug_internal): Merge asserts.
34580         (df_install_ref): Likewise.
34581         (df_mark_reg): Use bitmap_set_range.
34582         (df_hard_reg_used_p): Remove assert.
34583         (df_hard_reg_used_count): Likewise.
34584
34585 2010-01-26  Richard Guenther  <rguenther@suse.de>
34586
34587         PR rtl-optimization/42685
34588         * web.c (web_main): Ignore DEBUG_INSNs.
34589
34590 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
34591
34592         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
34593
34594         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
34595         Fix types of fndecl and arglist parameters.
34596
34597 2010-01-26  Richard Guenther  <rguenther@suse.de>
34598
34599         PR middle-end/42806
34600         * tree-eh.c (unsplit_eh): Skip debug insns.
34601
34602 2010-01-26  Richard Guenther  <rguenther@suse.de>
34603
34604         PR tree-optimization/42250
34605         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
34606
34607 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
34608
34609         PR fortran/42866
34610         * omp-low.c (expand_omp_sections): Only use single_pred if
34611         l2_bb is single_pred_p.
34612
34613 2010-01-25  Christian Bruel  <christian.bruel@st.com>
34614
34615         PR target/42841
34616         * config/sh/sh.c (find_barrier): Increase length for non delayed
34617         conditional branches.
34618         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
34619
34620 2010-01-24  David S. Miller  <davem@davemloft.net>
34621
34622         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
34623         define if not using GAS.
34624         * config/sparc/sparc.c (sparc_elf_asm_named_section):
34625         Likewise.  Delete SECTION_MERGE code, which is only applicable
34626         when using GAS.
34627
34628 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
34629
34630         PR c++/42748
34631         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
34632         mangling of va_list in system headers.
34633
34634 2010-01-23  Toon Moene  <toon@moene.org>
34635
34636         * tree-predcom.c (combine_chains): Return NULL, not false.
34637
34638 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
34639
34640         * tree-loop-distribution.c (distribute_loop): Fix declaration and
34641         initialization of variable res to agree with return type.
34642
34643 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
34644
34645         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
34646         * tree-sra.c: Add include of expr.h.
34647
34648 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
34649
34650         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
34651         insert the debug stmt on the single non-EH edge from the stmt.
34652
34653 2010-01-22  Richard Henderson  <rth@redhat.com>
34654
34655         PR tree-opt/42833
34656         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
34657         the RHS until after generate_subtree_copies has insertted its
34658         code before the current statement.
34659
34660 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
34661
34662         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
34663
34664         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
34665
34666 2010-01-21  Martin Jambor  <mjambor@suse.cz>
34667
34668         PR tree-optimization/42585
34669         * tree-sra.c (struct access): New field grp_total_scalarization.
34670         (dump_access): Dump the new field.
34671         (should_scalarize_away_bitmap): New variable.
34672         (cannot_scalarize_away_bitmap): Likewise.
34673         (sra_initialize): Allocate new bitmaps.
34674         (sra_deinitialize): Free new bitmaps.
34675         (create_access_1): New function.
34676         (create_access): Parts moved to create_access_1.
34677         (type_consists_of_records_p): New function.
34678         (completely_scalarize_record): Likewise.
34679         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
34680         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
34681         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
34682         access.
34683         (analyze_all_variable_accesses): Completely scalarize small eligible
34684         records.
34685
34686 2010-01-21  Martin Jambor  <mjambor@suse.cz>
34687
34688         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
34689
34690 2010-01-21  Andrew Haley  <aph@redhat.com>
34691
34692         * gcc.c (process_command): Move lang_specific_driver before
34693         setting cc_libexec_prefix.
34694
34695 2010-01-21  Richard Guenther  <rguenther@suse.de>
34696
34697         PR middle-end/19988
34698         * fold-const.c (negate_expr_p): Pretend only negative
34699         real constants are easily negatable.
34700
34701 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
34702             Jason Merrill  <jason@redhat.com>
34703
34704         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
34705         (TYPE_TRANSPARENT_AGGR): this, for union and record.
34706         * calls.c (initialize argument_information): Handle it.
34707         * c-common.c (handle_transparent_union_attribute): Use new name.
34708         * c-decl.c (finish_struct): Ditto.
34709         * c-typeck.c (type_lists_compatible_p): Ditto.
34710         (convert_for_assignment): Use new name and also handle record.
34711         * function.c (aggregate_value_p): Handle it.
34712         (pass_by_reference): Ditto.
34713         (assign_parm_data_types): Ditto.
34714         * print-tree.c (print_node): Ditto.
34715         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
34716         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
34717         * tree.c (first_field): New fn.
34718
34719 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
34720
34721         PR target/42818
34722         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
34723         even when linking statically, for now.
34724
34725 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
34726
34727         PR debug/42715
34728         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
34729         without a cselib val.
34730         (count_uses): Accept MO_VAL_SET with no val on stores.
34731         (add_stores): Likewise.
34732
34733 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34734
34735         * var-tracking.c (check_value_val): Add a compile time assertion.
34736         (dv_is_decl_p): Simplify.
34737         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
34738         gcc_assert if ENABLE_CHECKING.
34739
34740 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
34741
34742         PR debug/42782
34743         * var-tracking.c: Include tree-flow.h.
34744         (mem_dies_at_call): New.
34745         (dataflow_set_preserve_mem_locs): Use it.
34746         (dataflow_set_remove_mem_locs): Likewise.
34747         (dump_var): Renamed from dump_variable.  Adjust all callers.
34748         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
34749         * Makefile.in (var-tracking.o): Adjust deps.
34750
34751 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
34752
34753         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
34754
34755 2010-01-20  Richard Guenther  <rguenther@suse.de>
34756
34757         PR tree-optimization/42717
34758         * tree-ssa-dce.c (get_live_post_dom): Remove.
34759         (forward_edge_to_pdom): Take an arbitrary edge to copy
34760         degenerate PHI args from.
34761         (remove_dead_stmt): Use the first post-dominator even if it
34762         does not contain live statements as redirection destination.
34763
34764 2010-01-20  Richard Guenther  <rguenther@suse.de>
34765
34766         * tree-inline.c (estimate_num_insns): Handle EH builtins.
34767
34768 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34769
34770         * sel-sched.c (create_speculation_check): Remove set but not used
34771         variable twin.
34772         (try_transformation_cache): Remove set but not used variable ds.
34773         (calculate_privileged_insns): Remove set but not used variables
34774         cur_insn and min_spec_insn.
34775         (find_best_expr): Remove set but not used variable avail_n.
34776         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
34777         variable e.
34778         * cgraphunit.c (assemble_thunk): Remove set but not used variable
34779         false_label.
34780         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
34781         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
34782         new_scop_exit_edge.
34783
34784 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
34785
34786         PR bootstrap/42786
34787         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
34788         cpu types.  Add support for *-sse3 cpu types.
34789         (x86_64-*-*): Ditto.
34790
34791 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34792
34793         PR middle-end/42803
34794         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
34795         argument, call initializer_constant_valid_p_1 instead of
34796         initializer_constant_valid_p, pass CACHE to it, return NULL
34797         immediately if first call returns NULL.
34798         (initializer_constant_valid_p_1): New function.
34799         (initializer_constant_valid_p): Use it.
34800
34801 2010-01-20  Thomas Quinot  <quinot@adacore.com>
34802
34803         * tree.def (PLACEHOLDER_EXPR): Fix comment.
34804
34805 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34806
34807         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
34808         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
34809         (loc_list_from_tree): Don't handle unsigned division.  Handle
34810         signed modulo using DW_OP_{over,over,div,mul,minus}.
34811         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
34812         modulo instead of signed.
34813
34814 2010-01-20  DJ Delorie  <dj@redhat.com>
34815
34816         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
34817         (Fpa): Pass it
34818         (h8300_emit_stack_adjustment): Propogate it.
34819         (push): Pass it.
34820         (h8300_expand_prologue): Likewise.
34821         (h8300_expand_epilogue): Likewise.
34822
34823 2010-01-19  Michael Matz  <matz@suse.de>
34824
34825         PR tree-optimization/41783
34826         * tree-data-ref.c (toplevel): Include flags.h.
34827         (dump_data_dependence_relation):  Also dump the inputs if the
34828         result will be unknown.
34829         (split_constant_offset_1): Look through some conversions.
34830         * tree-predcom.c (determine_roots_comp): Restart a new chain if
34831         the offset from last element is too large.
34832         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
34833         (reassociate_to_the_same_stmt): Handle vector registers.
34834         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
34835         (e.g. conversions).
34836         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
34837         wide_prolog_niters argument, emit widening instructions.
34838         (vect_do_peeling_for_alignment): Adjust caller, use widened
34839         variant of the iteration cound.
34840         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
34841
34842 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34843
34844         PR target/38697
34845         * config/arm/neon-testgen.m (emit_automatics): New parameter
34846         features. Adjust for Fixed_return_reg feature.
34847         (test_intrinsic): Call emit_automatics with new feature.
34848         * config/arm/neon.ml: Update copyright years.
34849         (features): New Fixed_return_reg feature.
34850         (ops): Update feature for Vget_low.
34851
34852 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
34853
34854         PR tree-optimization/42719
34855         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
34856         stmt uses.
34857
34858         PR debug/42728
34859         * fwprop.c (all_uses_available_at): Return false if def_set dest
34860         is a REG that is used in def_insn.
34861
34862 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
34863
34864         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
34865
34866         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
34867         Add argument names.
34868
34869         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
34870
34871         * target.h (struct gcc_target) <secondary_reload>: Change type
34872         of last argument to secondary_reload_info *.
34873
34874 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
34875
34876         PR target/42774
34877         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
34878         memory references with unaligned offsets.  Remove CQImode handling.
34879         (unaligned_memory_operand): Return 1 for memory references with
34880         unaligned offsets.  Remove CQImode handling.
34881
34882 2010-01-18  Richard Guenther  <rguenther@suse.de>
34883
34884         PR middle-end/39954
34885         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
34886         builtin calls.
34887
34888 2010-01-18  Richard Guenther  <rguenther@suse.de>
34889
34890         PR tree-optimization/42781
34891         * tree-ssa-structalias.c (find_what_var_points_to): Skip
34892         restrict processing only if the original variable was artificial.
34893
34894 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
34895
34896         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
34897         find number of popped argument bytes.
34898
34899         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
34900         Fix the text that describes the return value for invalid insns.
34901
34902         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
34903
34904         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
34905         Clarify what 'cost of the -dependence' is.  Fix quoting.
34906
34907         * toplev.c (default_get_pch_validity): Rename argument to "sz".
34908         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
34909
34910 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
34911
34912         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
34913         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
34914
34915 2010-01-17  Richard Guenther  <rguenther@suse.de>
34916
34917         PR middle-end/42248
34918         * function.c (split_complex_args): Take a VEC to modify.
34919         (assign_parms_augmented_arg_list): Build a VEC instead of
34920         a chain of PARM_DECLs.
34921         (assign_parms_unsplit_complex): Take a VEC of arguments.
34922         Do not fixup unmodified parms.
34923         (assign_parms): Deal with the VEC.
34924         (gimplify_parameters): Likewise.
34925
34926 2010-01-17  Richard Guenther  <rguenther@suse.de>
34927
34928         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
34929         node existence check.
34930         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
34931         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
34932         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
34933         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
34934         (gimple_execute_on_growing_pred): Likewise.
34935
34936 2010-01-17  Richard Guenther  <rguenther@suse.de>
34937
34938         PR tree-optimization/42773
34939         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
34940         (compute_antic_aux): Likewise.
34941         (compute_partial_antic_aux): Likewise.
34942
34943 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
34944
34945         PR debug/42767
34946         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
34947         and US_TRUNCATE.
34948
34949 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
34950
34951         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
34952         appearance.
34953
34954         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
34955         Fix markup for strict argument.
34956
34957         (TARGET_SCHED_REORDER2): Fix argument types.
34958
34959         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
34960         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
34961
34962         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
34963         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
34964
34965         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
34966         Add argument name.
34967
34968         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
34969         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
34970         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
34971         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
34972         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
34973
34974         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
34975
34976         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
34977
34978         (TARGET_ASM_RELOC_RW_MASK): Add return type.
34979         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
34980
34981         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
34982
34983         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
34984         Use prototype.
34985
34986         (TARGET_ASM_NAMED_SECTION): Fix argument list.
34987
34988         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
34989         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
34990
34991         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
34992
34993         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
34994
34995         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
34996         referring to it.  Fix language.
34997
34998         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
34999
35000         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
35001
35002         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
35003
35004         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
35005
35006         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
35007         '@var{stream}.  Remove stray 'and'.
35008
35009         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
35010
35011         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
35012
35013         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
35014
35015         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
35016         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
35017
35018         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
35019         Fix description of return value.
35020         Rename argument "sz" to "len."
35021
35022         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
35023         Clarify meaning of 'true' return value.
35024
35025         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
35026
35027         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
35028         rep_mode versus mode_rep.
35029
35030         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
35031
35032         (TARGET_BUILTIN_DECL): Fix name.
35033
35034         (TARGET_COMMUTATIVE_P): Fix type of first argument.
35035
35036         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
35037
35038         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
35039
35040         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
35041
35042         (TARGET_RELAXED_ORDERING): Use @deftypevr.
35043
35044         (TARGET_GET_DRAP_RTX): Note that this is a hook.
35045         Clarify language.
35046
35047         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
35048         Rename argument tm_fn to md_fn.
35049
35050         (TARGET_OPTION_PRINT): Fix argument list.
35051
35052 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
35053
35054         PR target/42664
35055         * config/i386/i386.c (ix86_fixup_binary_operands):
35056         Revert FMA4 fixup of operands.
35057
35058 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35059
35060         PR other/42525
35061         * Makefile.in (write_entries_to_file, install-plugin):
35062         Use \012 instead of \n with tr.
35063
35064 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
35065
35066         * configure.ac (HAVE_AS_REF): New C macro.
35067         * configure: Regenerate.
35068         * config.in: Likewise.
35069         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
35070         if HAVE_AS_REF.
35071         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
35072         if HAVE_AS_REF.
35073
35074 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
35075
35076         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
35077
35078         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
35079
35080         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
35081
35082         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
35083
35084         (TARGET_IN_SMALL_DATA_P): Fix argument type.
35085
35086         (TARGET_BINDS_LOCAL_P): Fix argument type.
35087
35088         (TARGET_ASM_FILE_END): Use prototype.
35089
35090         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
35091
35092         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
35093
35094         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
35095
35096         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
35097
35098         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
35099         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
35100
35101         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
35102         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
35103
35104         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
35105         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
35106         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
35107         (TARGET_ADDR_SPACE_CONVERT): Likewise.
35108
35109         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
35110
35111         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
35112
35113         (TARGET_INIT_BUILTINS): Use prototype.
35114
35115         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
35116         Put 'const char *' in braces.  Fix parameter types.
35117         (TARGET_INVALID_CONVERSION): Fix parameter types.
35118         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
35119         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
35120
35121         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
35122         Fix argument type.
35123
35124         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
35125
35126         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
35127
35128 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
35129
35130         * doc/tm.texi (TARGET_HELP): Fix return type.
35131
35132         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
35133         in braces.  Fix argument types.
35134
35135         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
35136
35137         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
35138
35139         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
35140
35141         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
35142         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
35143
35144         (TARGET_MANGLE_TYPE): Fix argument types.
35145
35146         (TARGET_IRA_COVER_CLASSES): Use prototype.
35147
35148         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
35149
35150         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
35151
35152         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
35153
35154         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
35155
35156         (TARGET_CALLEE_COPIES): Fix argument types.
35157
35158         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
35159
35160         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
35161
35162         (TARGET_FUNCTION_VALUE): Fix argument types.
35163
35164         (TARGET_RETURN_IN_MSB): Fix argument type.
35165
35166         (TARGET_RETURN_IN_MEMORY): Fix argument types.
35167
35168         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
35169
35170         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
35171
35172         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
35173         agree with return type.
35174
35175         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
35176
35177 2010-01-15  Jing Yu  <jingyu@google.com>
35178
35179         PR rtl-optimization/42691
35180         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
35181         a pseudo to a constant and are merged, and adjust comments.
35182
35183 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
35184
35185         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
35186
35187 2010-01-15  Richard Guenther  <rguenther@suse.de>
35188
35189         PR middle-end/42739
35190         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
35191         labels of computed or non-local gotos to the destination.
35192         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
35193         landing pad label is the first label.
35194
35195 2010-01-15  Richard Guenther  <rguenther@suse.de>
35196
35197         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
35198
35199 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
35200
35201         PR target/42747
35202         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
35203         to allow generation of the xssqrtdp instruction on power7.
35204         (sqrtdf2_fpr): Ditto.
35205
35206 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
35207
35208         PR middle-end/42674
35209         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
35210         functions with noreturn attribute.
35211
35212         PR c++/42608
35213         * varasm.c (declare_weak): Add weak attribute to decl if it
35214         doesn't have one already.
35215         (assemble_external): Only add decls to weak_decls if they also
35216         have weak attribute.
35217
35218 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
35219
35220         * var-tracking.c (var_reg_delete): Don't delete the association
35221         between REGs and values or one-part variables if the register
35222         isn't clobbered.
35223
35224 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
35225
35226         PR debug/42657
35227         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
35228         because its first operand is a non-localized variable.
35229
35230 2010-01-14  Martin Jambor  <mjambor@suse.cz>
35231
35232         PR tree-optimization/42706
35233         * tree-sra.c (encountered_recursive_call): New variable.
35234         (encountered_unchangable_recursive_call): Likewise.
35235         (sra_initialize): Initialize both new variables.
35236         (callsite_has_enough_arguments_p): New function.
35237         (scan_function): Call decl and flags check only for IPA-SRA, check
35238         whether there is a recursive call and whether it has enough arguments.
35239         (all_callers_have_enough_arguments_p): New function.
35240         (convert_callers): Look for recursive calls only when
35241         encountered_recursive_call is set.
35242         (ipa_early_sra): Bail out either if
35243         !all_callers_have_enough_arguments_p or
35244         encountered_unchangable_recursive_call.
35245
35246 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
35247
35248         * sel-sched.c: Add 2010 to copyright years.
35249         * sel-sched-ir.c: Likewise.
35250         * sel-sched-ir.h: Likewise.
35251
35252 2010-01-14  Martin Jambor  <mjambor@suse.cz>
35253
35254         PR tree-optimization/42714
35255         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
35256         constructors specially.
35257
35258 2010-01-14  Andi Kleen  <ak@linux.intel.com>
35259
35260         * config/i386/drivers-i386.c (detect_caches_intel):
35261         Add l2sizekb parameter and fill in.
35262         (host_detect_local_cpu): Add l2sizekb, fill in.
35263         Add Atom small cache heuristic.
35264
35265 2010-01-14  Andi Kleen  <ak@linux.intel.com>
35266
35267         * config/i386/drivers-i386.c (detect_caches_cpuid4):
35268         Add level3 parameter and fill in.
35269         (detect_caches_intel): Handle level3 cache.
35270
35271 2010-01-14  Andi Kleen  <ak@linux.intel.com>
35272
35273         * config/i386/drivers-i386.c (host_detect_local_cpu):
35274         Fix core duo detection.
35275
35276 2010-01-14  Andi Kleen  <ak@linux.intel.com>
35277
35278         * config/i386/drivers-i386.c (host_detect_local_cpu):
35279         Fix Atom detection.
35280
35281 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
35282
35283         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
35284         (rs6000_variable_issue_1): this.  Use...
35285         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
35286
35287 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
35288
35289         * sel-sched-ir.c (sel_restore_other_notes): Rename to
35290         sel_restore_notes.  Update all callers.  Call reemit_notes
35291         for all insns.
35292
35293 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
35294
35295         PR rtl-optimization/42246
35296         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
35297         loops.
35298
35299 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
35300
35301         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
35302         all successors is the same as number of successors in current region.
35303
35304 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
35305
35306         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
35307         to rename is not separable.  Otherwise check that its LHS is not NULL.
35308
35309 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
35310
35311         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
35312
35313 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
35314
35315         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
35316         available registers when failed to discover LHS register class.
35317         Fix indentation.  Update comment.
35318
35319 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
35320             Alexander Monakov  <amonakov@ispras.ru>
35321
35322         PR rtl-optimization/42389
35323         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
35324         to can_issue_more.
35325         (advance_state_on_fence): Likewise.
35326         (sel_target_adjust_priority): Print debug output only when
35327         sched_verbose >= 4, not 2.
35328         (get_expr_cost): Do not issue all unique insns on the next cycle.
35329         (fill_insns): Initialize can_issue_more from the value saved
35330         with the fence.
35331         * sel-sched-ir.c (flist_add): New parameter issue_more.
35332         Init FENCE_ISSUE_MORE with it.
35333         (merge_fences): Likewise.
35334         (init_fences): Update call to flist_add.
35335         (add_to_fences, add_clean_fence_to_fences)
35336         (add_dirty_fence_to_fences): Likewise.
35337         (move_fence_to_fences): Update call to merge_fences.
35338         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
35339         sched groups.
35340         * sel-sched-ir.h (struct _fence): New field issue_more.
35341         (FENCE_ISSUE_MORE): New accessor macro.
35342
35343 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
35344
35345         PR rtl-optimization/42388
35346         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
35347         that have no predecessors nor successors.  Do not call move_bb_info
35348         for empty blocks outside of current region.
35349
35350 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
35351
35352         PR rtl-optimization/42294
35353         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
35354         * sel-sched.c (move_exprs_to_boundary): Transitively add all
35355         originators' originators.
35356
35357 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
35358
35359         PR rtl-optimization/39453
35360         PR rtl-optimization/42246
35361         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
35362         for pipelining_p.
35363         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
35364
35365 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
35366             Alexander Monakov  <amonakov@ispras.ru>
35367
35368         PR middle-end/42245
35369         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
35370         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
35371         argument.  Update all callers.
35372         (tidy_control_flow): ... and here.  Recompute topological order
35373         of basic blocks in region if necessary.
35374         (sel_redirect_edge_and_branch): Change return type.  Return true
35375         if topological order might have been invalidated.
35376         (purge_empty_blocks): Export and move from...
35377         * sel-sched.c (purge_empty_blocks): ... here.
35378         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
35379         (maybe_tidy_empty_bb): Delete prototype.
35380         (purge_empty_blocks): Declare.
35381
35382 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
35383
35384         PR rtl-optimization/42249
35385         * sel-sched.c (try_replace_dest_reg): When chosen register
35386         and original register is the same, do not bail out early, but
35387         still check all original insns for validity of replacing destination
35388         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
35389         in this case.
35390
35391 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
35392
35393         PR c/42721
35394         Port from no-undefined-overflow branch:
35395         2009-03-09  Richard Guenther  <rguenther@suse.de>
35396
35397         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
35398
35399 2010-01-14  Richard Guenther  <rguenther@suse.de>
35400
35401         PR lto/42665
35402         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
35403
35404 2010-01-14  Ira Rosen  <irar@il.ibm.com>
35405
35406         PR tree-optimization/42709
35407         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
35408         as scalar type in creation of constant vector operand.
35409
35410 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35411
35412         PR testsuite/42414
35413         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
35414         (check-parallel-%): Match `testsuite' directory component only
35415         at the end.
35416
35417 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
35418
35419         PR translation/39521
35420         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
35421         strings with _().
35422
35423 2010-01-13  Richard Guenther  <rguenther@suse.de>
35424
35425         PR tree-optimization/42730
35426         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
35427         offset zero.
35428
35429 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
35430
35431         PR target/pr42542
35432         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
35433         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
35434         them signed.
35435
35436 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
35437
35438         * config/bfin/libgcc-bfin.ver: Regenerate based on current
35439         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
35440         ___umulsi3_highpart.
35441
35442         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
35443         rather than schedule_insns if the pass is enabled.
35444
35445 2010-01-13  Martin Jambor  <mjambor@suse.cz>
35446
35447         PR tree-optimization/42704
35448         * tree-sra.c (sra_modify_assign): Do not delete assignments to
35449         SSA_NAMEs.
35450
35451 2010-01-13  Martin Jambor  <mjambor@suse.cz>
35452
35453         PR tree-optimization/42703
35454         * tree-sra.c (analyze_access_subtree): Check that we can build a
35455         reference to the original data within the aggregate.
35456
35457 2010-01-13  Richard Guenther  <rguenther@suse.de>
35458
35459         PR tree-optimization/42705
35460         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
35461
35462 2010-01-13  Richard Guenther  <rguenther@suse.de>
35463
35464         PR middle-end/42716
35465         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
35466
35467 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
35468
35469         PR debug/41371
35470         * var-tracking.c (values_to_unmark): New variable.
35471         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
35472         values_to_unmark vector.  Moved body to...
35473         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
35474         instead queue it into values_to_unmark vector.
35475         (vt_find_locations): Free values_to_unmark vector.
35476
35477 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
35478
35479         * config/s390/s390.c (override_options): Set
35480         default of max-pending-list-length to 256
35481
35482 2010-01-13  Richard Guenther  <rguenther@suse.de>
35483
35484         PR lto/42678
35485         * tree-pass.h (PROP_gimple_lcx): New.
35486         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
35487         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
35488         before the final cleanup_eh.
35489         (dump_properties): Dump PROP_gimple_lcx.
35490         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
35491         (tree_lower_complex_O0): Remove.
35492         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
35493         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
35494         tree_lower_complex, schedule TODO_update_ssa.
35495         * lto-streamer-out.c (output_function): Stream the functions
35496         properties.
35497         * lto-streamer-in.c (input_function): Likewise.
35498         (lto_read_body): Do not override them here.
35499
35500 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
35501
35502         PR c/42708
35503         * c-typeck.c (build_c_cast): Fold value cast to union type before
35504         wrapping it in a CONSTRUCTOR.
35505
35506 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
35507
35508         PR rtl-optimization/42699
35509         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
35510         involved.
35511
35512 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35513
35514         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
35515         SUBTARGET_WARN_UNUSED_SPEC): Move ...
35516         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
35517         SUBTARGET_WARN_UNUSED_SPEC): ... here
35518         * config/mips/iris5.h (LIBGCC_SPEC): Define.
35519
35520 2010-01-12  Julian Brown  <julian@codesourcery.com>
35521
35522         * config/arm/neon-schedgen.ml (Utils): Don't try to
35523         open missing module.
35524         (find_with_result): New.
35525
35526 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
35527
35528         PR debug/42662
35529         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
35530         sharing when canonicalizing ({lt,ge}u (plus a b) b).
35531
35532         PR tree-optimization/42645
35533         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
35534         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
35535         decl_map, set processing_debug_stmt to -1 and return name without
35536         any remapping.
35537
35538 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
35539
35540         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
35541         binutils version, and reword target configuration description.
35542
35543 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
35544
35545         * config/avr/avr.h (LINKER_NAME): Remove.
35546
35547 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
35548
35549         PR target/42416
35550         * config/rs6000/rs6000.c (rs6000_override_options): On targets
35551         that support VSX, warn for -mno-altivec if vsx is not disabled,
35552         and disable vsx.
35553
35554 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
35555             Shujing Zhao  <pearly.zhao@oracle.com>
35556
35557         PR translation/42469
35558         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
35559         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
35560         character between option name and help text.
35561         * c.opt (imultilib): Likewise.
35562
35563 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
35564
35565         * lto-streamer-out.c (output_unreferenced_globals): Output static
35566         variables.
35567
35568 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
35569
35570         PR rtl-optimization/42621
35571         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
35572         optimizing for size.
35573         (duplicate_computed_gotos): Remove now-redundant check.
35574
35575 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
35576
35577         PR target/37454
35578         * configure.ac: Save and restore LDFLAGS and LIBS
35579         * configure: Regenerate.
35580
35581 2010-01-10  Richard Guenther  <rguenther@suse.de>
35582
35583         PR middle-end/42667
35584         * builtins.c (fold_builtin_strlen): Add type argument and
35585         convert the resulting length to it.
35586         (fold_builtin_1): Adjust.
35587
35588 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
35589
35590         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
35591         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
35592         1 insn.
35593         (num_insns_constant_wide): Adjust for that change.
35594
35595 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35596
35597         PR debug/42631
35598         * web.c (union_defs): Add used argument, to combine uses of
35599         uninitialized regs.
35600         (entry_register): Adjust type and tests of used argument.
35601         (web_main): Widen used for new use.  Pass it to union_defs.
35602         * df.h (union_defs): Adjust prototype.
35603
35604 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35605
35606         PR debug/42630
35607         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
35608         uses in new incoming argument.  Free body.
35609         (reset_debug_uses_in_loop): New.
35610         (analyze_insn_to_expand_var): Call the latter if the former found
35611         anything.  Fix whitespace.  Reject invalid dest overlaps before
35612         going through all insns in the loop.
35613
35614 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35615
35616         PR debug/42629
35617         * haifa-sched.c (dying_use_p): Debug insns don't count.
35618
35619 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35620
35621         PR middle-end/42363
35622         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
35623         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
35624         (verify_gimple_call): Reject LHS in noreturn calls.
35625
35626 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35627
35628         PR debug/42604
35629         PR debug/42395
35630         * tree-vect-loop-manip.c (adjust_info): New type.
35631         (adjust_vec): New pointer to vector.
35632         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
35633         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
35634         (slpeel_update_phis_for_duplicate_loop): Use them.
35635         (slpeel_update_phi_nodes_for_guard1): Likewise.
35636         (slpeel_update_phi_nodes_for_guard2): Likewise.
35637         (slpeel_tree_peel_loop_to_edge): Likewise.
35638         (vect_update_ivs_after_vectorizer): Likewise.
35639
35640 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35641
35642         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
35643         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
35644
35645 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35646
35647         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
35648         bogus uninitialized warning.
35649
35650 2010-01-09  Richard Guenther  <rguenther@suse.de>
35651
35652         PR middle-end/42512
35653         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
35654         the evolution is compatible with the initial condition.
35655
35656 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
35657
35658         * gcc.c (process_command): Update copyright notice dates.
35659         * gcov.c (print_version): Likewise.
35660         * gcov-dump.c (print_version): Likewise.
35661         * mips-tfile.c (main): Likewise.
35662         * mips-tdump.c (main): Likewise.
35663
35664 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
35665
35666         PR target/41885
35667         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
35668         (rotlhi3): Delete.
35669         (rotlhi3_8): Delete.
35670         (rotlsi3): Delete.
35671         (rotlsi3_8): Delete.
35672         (rotlsi3_16): Delete.
35673         (rotlsi3_24): Delete.
35674         (rotl<mode>3): New.
35675         (*rotw<mode>3): New.
35676         (*rotb<mode>3): New.
35677         * config/avr/avr.c (avr_rotate_bytes): New function.
35678         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
35679
35680 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
35681
35682         PR target/37454
35683         * configure.ac: Modify -rdynamic check.
35684         * configure: Regenerate.
35685
35686 2010-01-08  DJ Delorie  <dj@redhat.com>
35687
35688         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
35689         register popping order.
35690
35691 2010-01-08  Richard Guenther  <rguenther@suse.de>
35692
35693         PR lto/42528
35694         * c.opt (fsigned-char): Also let LTO handle this option.
35695         (funsigned-char): Likewise.
35696
35697 2010-01-07  Richard Guenther  <rguenther@suse.de>
35698
35699         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
35700         (gimple_op): Likewise.
35701         (gimple_op_ptr): Likewise.
35702         (gimple_assign_set_lhs): Remove gcc_assert.
35703         (gimple_assign_set_rhs1): Likewise.
35704         (gimple_assign_set_rhs2): Likewise.
35705         (gimple_call_set_lhs): Likewise.
35706         (gimple_call_set_fn): Likewise.
35707         (gimple_call_set_fndecl): Likewise.
35708         (gimple_call_fndecl): Likewise.
35709         (gimple_call_return_type): Likewise.
35710         (gimple_call_set_chain): Likewise.
35711         (gimple_call_num_args): Likewise.
35712         (gimple_call_set_arg): Likewise.
35713         (gimple_cond_set_code): Likewise.
35714         (gimple_cond_set_lhs): Likewise.
35715         (gimple_cond_set_rhs): Likewise.
35716         (gimple_cond_set_true_label): Likewise.
35717         (gimple_cond_set_false_label): Likewise.
35718         (gimple_label_set_label): Likewise.
35719         (gimple_goto_set_dest): Likewise.
35720         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
35721         (gimple_debug_bind_get_value): Likewise.
35722         (gimple_debug_bind_get_value_ptr): Likewise.
35723         (gimple_debug_bind_set_var): Likewise.
35724         (gimple_debug_bind_set_value): Likewise.
35725         (gimple_debug_bind_reset_value): Likewise.
35726         (gimple_debug_bind_has_value_p): Likewise.
35727         (gimple_return_retval_ptr): Remove gcc_assert.
35728         (gimple_return_retval): Likewise.
35729         (gimple_return_set_retval): Likewise.
35730         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
35731         (safe_referenced_var_iterator): Remove.
35732         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
35733         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
35734         (fill_referenced_var_vec): Remove.
35735         (first_readonly_imm_use): Remove redundant gcc_assert.
35736         (phi_arg_index_from_use): Combine gcc_asserts.
35737         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
35738         (first_imm_use_stmt): Remove redundant gcc_assert.
35739         * tree-cfg.c (verify_gimple_call): Verify function and chain
35740         operands.  Verify arguments.
35741         (verify_types_in_gimple_stmt): Verify condition code and labels.
35742
35743 2010-01-07  Richard Guenther  <rguenther@suse.de>
35744
35745         PR tree-optimization/42641
35746         * sese.c (rename_map_elt_info): Use the SSA name version, do
35747         not hash pointers.
35748
35749 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
35750
35751         PR tree-optimization/42625
35752         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
35753         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
35754
35755 2010-01-07  Duncan Sands  <baldrick@free.fr>
35756
35757         * Makefile.in (PLUGIN_HEADERS): Add version.h.
35758
35759 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
35760
35761         PR target/42511
35762         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
35763         note itself is not function_invariant_p.
35764
35765 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
35766
35767         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
35768         Do not add the DF_NOTE problem.
35769         * store-motion.c (execute_rtl_store_motion): Likewise.
35770
35771 2010-01-07  Martin Jambor  <mjambor@suse.cz>
35772
35773         PR tree-optimization/42157
35774         * tree-sra.c (compare_access_positions): Stabilize sort if both
35775         accesses have integer types, return zero immediately if they are the
35776         same.
35777
35778 2010-01-06  Richard Henderson  <rth@redhat.com>
35779
35780         PR middle-end/41883
35781         * haifa-sched.c (add_to_note_list): Merge into ...
35782         (concat_note_lists): ... here, and ...
35783         (unlink_other_notes, rm_other_notes): Merge into...
35784         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
35785         NOTE_INSN_EPILOGUE_BEG.
35786
35787 2010-01-06  Richard Guenther  <rguenther@suse.de>
35788
35789         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
35790         not inline regular functions into always-inline functions.
35791
35792 2010-01-06  Nick Clifton  <nickc@redhat.com>
35793
35794         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
35795         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
35796         used together.
35797         (OVERRIDE_OPTIONS): Delete.
35798         (OPTIMIZATION_OPTIONS): Define.
35799         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
35800         * config/rx/rx.c (rx_handle_option): Issue an error message if
35801         -mcpu=rx200 and -fpu are used together.
35802         (rx_set_optimization_options): New function.  Issue an error
35803         message if an optimization attribute attempts to reset the FPU/
35804         math optimization pairing.
35805         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
35806         * config/rx/rx.opt: Set the default to 32-bit doubles.
35807         * config/rx/t-rx: Add multilibs for -nofpu option.
35808         * doc/invoke.texi: Update documentation of RX options.
35809
35810 2010-01-06  Richard Guenther  <rguenther@suse.de>
35811
35812         * tree-ssa-pre.c (name_to_id): New global.
35813         (alloc_expression_id): Simplify SSA name handling.
35814         (lookup_expression_id): Likewise.
35815         (init_pre): Zero name_to_id.
35816         (fini_pre): Free it.
35817
35818 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
35819
35820         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
35821
35822 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
35823
35824         PR target/42542
35825         * config/i386/sse.md (smaxv2di3): New.
35826         (umaxv2di3): Likewise.
35827         (sminv2di3): Likewise.
35828         (uminv2di3): Likewise.
35829
35830 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
35831
35832         PR target/42564
35833         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
35834         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
35835         (legitimize_tls_address): Likewise.
35836         (sparc_tls_referenced_p): Likewise.
35837         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
35838         and adjust calls to legitimize_pic_address.
35839         (legitimate_constant_p) Use sparc_tls_referenced_p.
35840         (legitimate_pic_operand_p): Likewise.
35841         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
35842         (sparc_tls_symbol_ref_1): Delete.
35843         (sparc_tls_referenced_p): Make static, recognize specific patterns.
35844         (legitimize_tls_address): Make static, handle CONST patterns.
35845         (legitimize_pic_address): Make static, remove unused parameter and
35846         adjust recursive calls.
35847         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
35848         and adjust call to legitimize_pic_address.
35849         (sparc_output_mi_thunk): Likewise.
35850
35851 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
35852             H.J. Lu  <hongjiu.lu@intel.com>
35853
35854         PR target/42542
35855         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
35856         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
35857         operands to make them signed.
35858
35859         Revert:
35860         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
35861
35862         PR target/42542
35863         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
35864         GTU to GT for V4SI and V2DI.
35865
35866         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
35867         (umin<mode>3): Removed.
35868         (uminv8hi3): New.
35869         (uminv4si3): Likewise.
35870
35871 2010-01-05  Martin Jambor  <mjambor@suse.cz>
35872
35873         PR tree-optimization/42462
35874         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
35875         current_function_decl to helper functions and macros.
35876
35877 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35878
35879         PR bootstrap/41771
35880         * flags.h: Don't include real.h.
35881         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
35882         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
35883         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
35884         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
35885         * dominance.c: Update copyright.
35886         * gimple.c (walk_gimple_op): Remove inline.
35887         * tree-ssa-reassoc.c: Include real.h.
35888         * Makefile.in (FLAGS_H): Remove $(REAL_H).
35889         (tree-ssa-reassoc.o): Depend on $(REAL_H).
35890
35891 2010-01-05  Nick Clifton  <nickc@redhat.com>
35892
35893         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
35894         register to push into the stack frame when the accumulator has to
35895         be saved during interrupts.
35896
35897 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
35898
35899         * doc/invoke.texi: Remove the documentation about option
35900         -Wunreachable-code.
35901         * common.opt (Wunreachable-code):  Preserved for backward
35902         compatibility.
35903         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
35904         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
35905         the backward compatibility flag section.
35906
35907 2010-01-05  Richard Guenther  <rguenther@suse.de>
35908
35909         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
35910
35911 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
35912
35913         PR other/42611
35914         * cfgexpand.c (expand_one_var): Diagnose too large variables.
35915
35916         PR tree-optimization/42508
35917         * tree-sra.c (convert_callers): Check for recursive call
35918         by comparing cgraph nodes instead of decls.
35919         (modify_function): Call ipa_modify_formal_parameters also
35920         on all same_body aliases.
35921
35922         * cgraphunit.c (cgraph_materialize_all_clones): Compare
35923         cgraph nodes when checking for same_body aliases.
35924
35925 2010-01-05  Richard Guenther  <rguenther@suse.de>
35926
35927         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
35928         allocation and lookup.
35929         (get_or_alloc_expr_for_constant): Likewise.
35930         (phi_translate): Sink allocation.
35931
35932 2010-01-04  Richard Guenther  <rguenther@suse.de>
35933
35934         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
35935         a new entry only if needed.
35936         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
35937         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
35938         hashtable lookup.
35939         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
35940         the result array.
35941         (phi_translate): Handle CONSTANTs early.
35942
35943 2010-01-04  Martin Jambor  <mjambor@suse.cz>
35944
35945         PR tree-optimization/42398
35946         * tree-sra.c (struct access): Removed flag grp_different_types.
35947         (dump_access): Do not dump the removed flag.
35948         (sort_and_splice_var_accesses): Do not set the removed flag.
35949         (sra_modify_expr): Check for type compatibility directly.
35950
35951 2010-01-04  Martin Jambor  <mjambor@suse.cz>
35952
35953         PR tree-optimization/42366
35954         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
35955         edges with variable number of parameters.
35956         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
35957         flag instead of asserting it.
35958         (ipa_read_node_info): Read uses_analysis_done flag.
35959
35960 2010-01-04  Richard Guenther  <rguenther@suse.de>
35961
35962         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
35963         iterative_hash_* as intended.
35964         (vn_reference_compute_hash): Likewise.  Simplify hashing
35965         SSA names.
35966         (vn_reference_lookup_2): Likewise.
35967         (vn_nary_op_compute_hash): Likewise.
35968         (vn_phi_compute_hash): Likewise.
35969         (expressions_equal_p): Remove strange code.
35970         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
35971         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
35972         (bitmap_insert_into_set_1): Take value-id as parameter.
35973         (add_to_value): Pass it.
35974         (bitmap_insert_into_set): Likewise.
35975         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
35976
35977 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
35978
35979         PR driver/42442
35980         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
35981         (do_self_spec): For switches with SWITCH_IGNORE set set also
35982         SWITCH_IGNORE_PERMANENTLY.
35983         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
35984         of SWITCH_IGNORE.
35985
35986 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
35987
35988         * lto-streamer-out.c (output_unreferenced_globals): Output the full
35989         tree of an unreferenced global var.
35990
35991 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
35992
35993         PR target/42542
35994         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
35995         GTU to GT for V4SI and V2DI.
35996
35997         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
35998         (umin<mode>3): Removed.
35999         (uminv8hi3): New.
36000         (uminv4si3): Likewise.
36001
36002 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
36003
36004         PR lto/42581
36005         * collect2.c (main): Turn on trace in collect2 if -v is passed
36006         to gcc with LTO.
36007
36008 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
36009
36010         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
36011         description of expression operand.
36012
36013 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
36014
36015         * configure.ac: Add install-html to target_list for Make-hooks.
36016         * configure: Regenerate.
36017         * fortran/Make-lang.in (F95_HTMLFILES): New.
36018         (fortran.html): Use it.
36019         (fortran.install-html): New.
36020         * Makefile.in (install-html): Add lang.install-html.
36021         * java/Make-lang.in (JAVA_HTMLFILES): New.
36022         (java.html): Use it.
36023         (java.install-html): New.
36024         * objc/Make-lang.in (objc.install-html): New.
36025         * objcp/Make-lang.in (obj-c++.install-html): New.
36026         * cp/Make-lang.in (c++.install-html): New.
36027         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
36028         * lto/Make-lang.in (lto.install-html): New.
36029
36030 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
36031
36032         PR lto/42520
36033         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
36034
36035 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
36036
36037         PR rtl-optimization/41862
36038         * store-motion.c (store_killed_in_insn, compute_store_table,
36039         remove_reachable_equiv_notes, replace_store_insn,
36040         build_store_vectors): Ignore all DEBUG_INSNs.
36041
36042 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
36043
36044         PR lto/41564
36045         * common.opt: Add dumpdir.
36046
36047         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
36048         isn't specified.
36049         (option_map): Add --dumpdir.
36050
36051         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
36052
36053         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
36054
36055         * opts.c (decode_options): Try dump_dir_name first if
36056         dump_base_name isn't an absolute path.
36057         (common_handle_option): Handle OPT_dumpdir.
36058
36059         * toplev.c (dump_dir_name): New.
36060         (print_switch_values): Also ignore -dumpdir.
36061
36062         * toplev.h (dump_dir_name): New.
36063
36064 2010-01-03  Richard Guenther  <rguenther@suse.de>
36065
36066         PR tree-optimization/42589
36067         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
36068         double-word expansion of bswap32.
36069
36070 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
36071
36072         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
36073         with BLOCK_FOR_INSN.
36074         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
36075         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
36076         noce_process_if_block): Likewise.
36077         * gcse.c (compute_local_properties, insert_expr_in_table,
36078         insert_set_in_table, canon_list_insert, find_avail_set,
36079         pre_insert_copy_insn): Likewise.
36080
36081         * basic-block.h (BLOCK_NUM): Move from here...
36082         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
36083
36084 2010-01-03  Richard Guenther  <rguenther@suse.de>
36085
36086         PR tree-optimization/42438
36087         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
36088         contains_may_not_return_call flag.
36089         (BB_MAY_NOTRETURN): New.
36090         (valid_in_sets): Trapping nary operations are not valid
36091         in blocks that may not return.
36092         (insert_into_preds_of_block): Remove check for trapping expressions.
36093         (compute_avail): Compute also BB_MAY_NOTRETURN.
36094
36095 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
36096
36097         * doc/invoke.texi: Add 2010 to copyright years.
36098
36099 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
36100
36101         * config/sparc/sparc.c: Fix formatting nits.
36102
36103 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
36104             Alexander Monakov  <amonakov@ispras.ru>
36105
36106         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
36107
36108 2010-01-02  Richard Guenther  <rguenther@suse.de>
36109
36110         PR middle-end/42577
36111         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
36112         (simplify_switch_using_ranges): Mark to be removed edges
36113         as non-executable.
36114
36115 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36116
36117         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
36118
36119         * collect2.c (scan_libraries): Add missing argument in call to
36120         scan_prog_file.
36121
36122 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
36123
36124         PR target/42448
36125         * config/alpha/predicates.md (aligned_memory_operand): Return false
36126         for CQImode.
36127         (unaligned_memory_operand): Return true for CQImode.
36128         * config/alpha/alpha.c (get_aligned_mem): Assert that location
36129         doesn not cross aligned SImode word boundary.
36130
36131 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
36132
36133         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
36134         Remove.
36135         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
36136         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
36137
36138 2010-01-02  Richard Guenther  <rguenther@suse.de>
36139
36140         PR lto/41597
36141         * toplev.c (compile_file): Emit LTO marker properly.  Change
36142         it to __gnu_lto_v1.
36143         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
36144
36145 2010-01-01  Richard Guenther  <rguenther@suse.de>
36146
36147         PR debug/42455
36148         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
36149
36150 2010-01-01  Richard Guenther  <rguenther@suse.de>
36151
36152         PR c/42570
36153         * c-decl.c (grokdeclarator): For zero-size arrays force
36154         structural equality checks as layout_type does.
36155
36156 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
36157
36158         * builtins.c: Update copyright to 2010.
36159
36160 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
36161
36162         PR lto/42531
36163         * lto-streamer-out.c (produce_asm): Revert the last change.
36164         (copy_function): Likewise.
36165
36166         * lto-streamer.c (lto_get_section_name): Skip any leading
36167         asterisk in name.
36168
36169 2010-01-01  Richard Guenther  <rguenther@suse.de>
36170
36171         PR middle-end/42559
36172         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
36173         for LABEL_DECLs.
36174
36175 \f
36176 Copyright (C) 2010 Free Software Foundation, Inc.
36177
36178 Copying and distribution of this file, with or without modification,
36179 are permitted in any medium without royalty provided the copyright
36180 notice and this notice are preserved.